@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,15 +2,15 @@ import "react";
|
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
4
|
import { a as e, c as t, i as n } from "./cardStates-DiUMQ7_o.mjs";
|
|
5
|
-
import { et as r, ot as i } from "./metric.mutation-
|
|
6
|
-
import { $i as a, Aa as o, C as s, Cr as c, Ei as l, Gt as u, H as d, Ia as f, Jr as p, Kn as m, L as h, Li as g, Lr as _, Lt as v, N as y, Ni as b, P as x, Pi as S, Rr as ee, Ti as te, Ua as C, ai as ne, an as w, bn as T, ca as E, ci as D, f as O,
|
|
7
|
-
import {
|
|
8
|
-
import { E as pe, T as me, a as he, b as ge, c as R, d as _e, f as ve, g as z, h as ye, m as be, n as xe, o as Se, p as B, r as Ce, u as we, y as Te } from "./TextAreaField-
|
|
9
|
-
import { a as Ee, s as De } from "./permissions-
|
|
10
|
-
import { t as Oe } from "./RadioButton-
|
|
5
|
+
import { et as r, ot as i } from "./metric.mutation-cOoqy5Bi.mjs";
|
|
6
|
+
import { $i as a, Aa as o, C as s, Cr as c, Ei as l, Gt as u, H as d, Ia as f, Jr as p, Kn as m, L as h, Li as g, Lr as _, Lt as v, N as y, Ni as b, P as x, Pi as S, Rr as ee, Ti as te, Ua as C, ai as ne, an as w, bn as T, ca as E, ci as D, f as O, h as k, ki as re, la as A, m as ie, mi as ae, o as j, p as M, sa as N, sr as P, u as F, ui as I, w as oe, wa as L, xa as se, xi as ce, xn as le } from "./Portal-CuJ3yA9x.mjs";
|
|
7
|
+
import { b as ue, r as de, y as fe } from "./timeseries-D_nzmvUF.mjs";
|
|
8
|
+
import { E as pe, T as me, a as he, b as ge, c as R, d as _e, f as ve, g as z, h as ye, m as be, n as xe, o as Se, p as B, r as Ce, u as we, y as Te } from "./TextAreaField-CLmioFXe.mjs";
|
|
9
|
+
import { a as Ee, s as De } from "./permissions-CxZW60Bd.mjs";
|
|
10
|
+
import { t as Oe } from "./RadioButton-BagXnWOk.mjs";
|
|
11
11
|
import { t as ke } from "./No_data-BIO-IPxg.mjs";
|
|
12
|
-
import { t as V } from "./Accordion-
|
|
13
|
-
import { t as Ae } from "./Panel-
|
|
12
|
+
import { t as V } from "./Accordion-BhLebRAm.mjs";
|
|
13
|
+
import { t as Ae } from "./Panel-oW--_1YF.mjs";
|
|
14
14
|
import { t as H } from "./Switch-CqsadJBs.mjs";
|
|
15
15
|
import { useCallback as je, useEffect as U, useMemo as W, useRef as G, useState as K } from "react";
|
|
16
16
|
import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
|
|
@@ -246,7 +246,7 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
246
246
|
}
|
|
247
247
|
return n;
|
|
248
248
|
}, Ie = ({ ...a }) => {
|
|
249
|
-
let { clientId: s, companyId: c, isLiveMode: l, externalDashboardId: u, userProvidedDashboardId: d, setShowMetricCreateModal: f, metric: p, metricData: m, chartColors: h, setEditMetric: g, onServerEvent: v, refetchDashboardData: y, customChartSettings: b } = a, [x, S] = K(!1), [te, C] = K(""), [w, E] = K(), [D, O] = K(_), [k,
|
|
249
|
+
let { clientId: s, companyId: c, isLiveMode: l, externalDashboardId: u, userProvidedDashboardId: d, setShowMetricCreateModal: f, metric: p, metricData: m, chartColors: h, setEditMetric: g, onServerEvent: v, refetchDashboardData: y, customChartSettings: b } = a, [x, S] = K(!1), [te, C] = K(""), [w, E] = K(), [D, O] = K(_), [k, re] = K(ee), [A, ie] = K(!1), [ae, j] = K(!1), [M, N] = K(""), [P, F] = K(), [I, oe] = K("100"), [ce, ue] = K([]), [de, fe] = K(!1), [he, R] = K(!1), [_e, ve] = K({
|
|
250
250
|
value: "",
|
|
251
251
|
label: ""
|
|
252
252
|
}), [z, ye] = K([]), [be, xe] = K({
|
|
@@ -442,12 +442,12 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
442
442
|
z.length,
|
|
443
443
|
D.chartType
|
|
444
444
|
]), U(() => {
|
|
445
|
-
|
|
445
|
+
A && (O((e) => ({
|
|
446
446
|
...e,
|
|
447
447
|
chartColors: h,
|
|
448
448
|
isCustomColorApplied: !1
|
|
449
|
-
})),
|
|
450
|
-
}, [
|
|
449
|
+
})), ie(!1));
|
|
450
|
+
}, [A]), U(() => {
|
|
451
451
|
(!D.chartColors?.length || !pe(h, D.chartColors) && !D?.isCustomColorApplied) && h?.length && O((e) => ({
|
|
452
452
|
...e,
|
|
453
453
|
chartColors: h
|
|
@@ -531,7 +531,7 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
531
531
|
}
|
|
532
532
|
}));
|
|
533
533
|
}, [p?.updatedAt, D?.customSettings?.markers]), U(() => {
|
|
534
|
-
p && (p?.id && (N(o(p?.query || "", c || "") || ""), ue(p?.rlsConditions || []),
|
|
534
|
+
p && (p?.id && (N(o(p?.query || "", c || "") || ""), ue(p?.rlsConditions || []), re(p?.clickActions || ee), F(p?.datasetMetricSettings), xe({
|
|
535
535
|
isEnableGroupBy: !!p?.drillDownSettings?.isEnableGroupBy,
|
|
536
536
|
drilldownChartSettings: p?.drillDownSettings?.isEnableGroupBy ? p?.drillDownSettings?.drilldownChartSettings : [],
|
|
537
537
|
isEnableCrossFilter: !!p?.drillDownSettings?.isEnableCrossFilter,
|
|
@@ -803,7 +803,7 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
803
803
|
isEnablePivotTable: we,
|
|
804
804
|
isEnableGauge: Oe,
|
|
805
805
|
groupByList: z,
|
|
806
|
-
hasNumberKeys:
|
|
806
|
+
hasNumberKeys: ae,
|
|
807
807
|
setShowChartCustomProperties: je,
|
|
808
808
|
isShowFullScreen: J,
|
|
809
809
|
setShowFullScreen: Y,
|
|
@@ -833,7 +833,7 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
833
833
|
limit: I,
|
|
834
834
|
setLimit: oe,
|
|
835
835
|
enabledCharts: Ye,
|
|
836
|
-
setResetPallete:
|
|
836
|
+
setResetPallete: ie,
|
|
837
837
|
dbName: Se?.name || "",
|
|
838
838
|
setDatatsetSettings: F,
|
|
839
839
|
drillDownSettings: be,
|
|
@@ -842,7 +842,7 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
842
842
|
rlsConditions: ce,
|
|
843
843
|
setRlsConditions: ue,
|
|
844
844
|
clickBehaviourConfigs: k,
|
|
845
|
-
setClickBehaviourConfigs:
|
|
845
|
+
setClickBehaviourConfigs: re
|
|
846
846
|
};
|
|
847
847
|
}, Le = ({ description: e }) => e?.trim() ? /* @__PURE__ */ J(C, {
|
|
848
848
|
variant: "body-text-3",
|
|
@@ -921,7 +921,7 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
921
921
|
firstOperand: e?.[0],
|
|
922
922
|
operator: S?.[0],
|
|
923
923
|
secondOperand: e?.[0]
|
|
924
|
-
}), [D, O] = K(""),
|
|
924
|
+
}), [D, O] = K(""), k = W(() => e?.map((e) => ({
|
|
925
925
|
label: e?.label || e?.alias,
|
|
926
926
|
value: e?.alias,
|
|
927
927
|
column: e
|
|
@@ -947,10 +947,10 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
947
947
|
s(!0);
|
|
948
948
|
},
|
|
949
949
|
isDisabled: a,
|
|
950
|
-
children: [i === "METRIC" ? /* @__PURE__ */ J(
|
|
950
|
+
children: [i === "METRIC" ? /* @__PURE__ */ J(P, {
|
|
951
951
|
name: "plus",
|
|
952
952
|
size: "xs"
|
|
953
|
-
}) : null, /* @__PURE__ */ J(
|
|
953
|
+
}) : null, /* @__PURE__ */ J(P, {
|
|
954
954
|
name: "function",
|
|
955
955
|
size: "xs"
|
|
956
956
|
})]
|
|
@@ -1008,11 +1008,11 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
1008
1008
|
className: Re.radioButton
|
|
1009
1009
|
}, e?.value))
|
|
1010
1010
|
}) : null,
|
|
1011
|
-
/* @__PURE__ */ Y(
|
|
1011
|
+
/* @__PURE__ */ Y(M, {
|
|
1012
1012
|
direction: "col",
|
|
1013
1013
|
className: "dbn:gap-3 dbn:p-5 dbn:py-3 dbn:flex-grow",
|
|
1014
1014
|
children: [
|
|
1015
|
-
/* @__PURE__ */ Y(
|
|
1015
|
+
/* @__PURE__ */ Y(M, {
|
|
1016
1016
|
direction: "col",
|
|
1017
1017
|
className: "dbn:gap-3 dbn:p-3 dbn:border dbn:border-[rgb(0_0_0_/_0.1)] dbn:rounded-lg dbn:bg-neutral-100",
|
|
1018
1018
|
children: [/* @__PURE__ */ J(y, {
|
|
@@ -1026,7 +1026,7 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
}));
|
|
1028
1028
|
},
|
|
1029
|
-
options:
|
|
1029
|
+
options: k,
|
|
1030
1030
|
selectedOption: {
|
|
1031
1031
|
value: X(T?.firstOperand)?.alias || "",
|
|
1032
1032
|
label: X(T?.firstOperand)?.alias || ""
|
|
@@ -1035,7 +1035,7 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
1035
1035
|
menuWidth: "100%",
|
|
1036
1036
|
label: "Column",
|
|
1037
1037
|
isSearchEnabled: !0
|
|
1038
|
-
}), /* @__PURE__ */ Y(
|
|
1038
|
+
}), /* @__PURE__ */ Y(M, {
|
|
1039
1039
|
direction: "row",
|
|
1040
1040
|
alignItems: "end",
|
|
1041
1041
|
className: "dbn:gap-3 dbn:w-full",
|
|
@@ -1086,7 +1086,7 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
1086
1086
|
})
|
|
1087
1087
|
})
|
|
1088
1088
|
}),
|
|
1089
|
-
/* @__PURE__ */ Y(
|
|
1089
|
+
/* @__PURE__ */ Y(M, {
|
|
1090
1090
|
direction: "col",
|
|
1091
1091
|
className: "dbn:gap-3 dbn:p-3 dbn:border dbn:border-[rgb(0_0_0_/_0.1)] dbn:rounded-lg dbn:bg-neutral-100",
|
|
1092
1092
|
children: [/* @__PURE__ */ J(y, {
|
|
@@ -1130,7 +1130,7 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
}));
|
|
1132
1132
|
},
|
|
1133
|
-
options:
|
|
1133
|
+
options: k,
|
|
1134
1134
|
selectedOption: {
|
|
1135
1135
|
value: X(T?.secondOperand)?.alias || "",
|
|
1136
1136
|
label: X(T?.secondOperand)?.alias || ""
|
|
@@ -1139,7 +1139,7 @@ var Me = ({ identifier: e, events: t, modifiers: n }) => {
|
|
|
1139
1139
|
menuWidth: "100%",
|
|
1140
1140
|
label: "Column",
|
|
1141
1141
|
isSearchEnabled: !0
|
|
1142
|
-
}), /* @__PURE__ */ Y(
|
|
1142
|
+
}), /* @__PURE__ */ Y(M, {
|
|
1143
1143
|
direction: "row",
|
|
1144
1144
|
alignItems: "end",
|
|
1145
1145
|
className: "dbn:gap-3 ",
|
|
@@ -1699,7 +1699,7 @@ var We = (e) => [
|
|
|
1699
1699
|
className: "dbn:flex dbn:gap-2 dbn:items-center",
|
|
1700
1700
|
children: [/* @__PURE__ */ J(f, {
|
|
1701
1701
|
variant: "popover",
|
|
1702
|
-
leftIcon: /* @__PURE__ */ J(
|
|
1702
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
1703
1703
|
name: "pencil-simple-line",
|
|
1704
1704
|
size: "xs"
|
|
1705
1705
|
}),
|
|
@@ -1715,7 +1715,7 @@ var We = (e) => [
|
|
|
1715
1715
|
})
|
|
1716
1716
|
}), /* @__PURE__ */ J(f, {
|
|
1717
1717
|
variant: "popover",
|
|
1718
|
-
leftIcon: /* @__PURE__ */ J(
|
|
1718
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
1719
1719
|
name: "cross",
|
|
1720
1720
|
size: "xs"
|
|
1721
1721
|
}),
|
|
@@ -1758,7 +1758,7 @@ var We = (e) => [
|
|
|
1758
1758
|
className: "dbn:w-full dbn:flex dbn:justify-end",
|
|
1759
1759
|
children: /* @__PURE__ */ J(f, {
|
|
1760
1760
|
variant: "tab",
|
|
1761
|
-
leftIcon: /* @__PURE__ */ J(
|
|
1761
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
1762
1762
|
name: "plus",
|
|
1763
1763
|
size: "xs"
|
|
1764
1764
|
}),
|
|
@@ -1819,7 +1819,7 @@ var We = (e) => [
|
|
|
1819
1819
|
className: "dbn:flex dbn:gap-2 dbn:items-center",
|
|
1820
1820
|
children: [/* @__PURE__ */ J(f, {
|
|
1821
1821
|
variant: "popover",
|
|
1822
|
-
leftIcon: /* @__PURE__ */ J(
|
|
1822
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
1823
1823
|
name: "pencil-simple-line",
|
|
1824
1824
|
size: "xs"
|
|
1825
1825
|
}),
|
|
@@ -1835,7 +1835,7 @@ var We = (e) => [
|
|
|
1835
1835
|
})
|
|
1836
1836
|
}), /* @__PURE__ */ J(f, {
|
|
1837
1837
|
variant: "popover",
|
|
1838
|
-
leftIcon: /* @__PURE__ */ J(
|
|
1838
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
1839
1839
|
name: "cross",
|
|
1840
1840
|
size: "xs"
|
|
1841
1841
|
}),
|
|
@@ -1871,7 +1871,7 @@ var We = (e) => [
|
|
|
1871
1871
|
className: "dbn:w-full dbn:flex dbn:justify-end",
|
|
1872
1872
|
children: /* @__PURE__ */ J(f, {
|
|
1873
1873
|
variant: "tab",
|
|
1874
|
-
leftIcon: /* @__PURE__ */ J(
|
|
1874
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
1875
1875
|
name: "plus",
|
|
1876
1876
|
size: "xs"
|
|
1877
1877
|
}),
|
|
@@ -1930,7 +1930,7 @@ var We = (e) => [
|
|
|
1930
1930
|
max: 0,
|
|
1931
1931
|
color: "#000000",
|
|
1932
1932
|
operator: "isEqualTo"
|
|
1933
|
-
}), [D, re] = K(""), [ie, ae] = K(!1), [
|
|
1933
|
+
}), [D, re] = K(""), [ie, ae] = K(!1), [j, F] = K({
|
|
1934
1934
|
label: "",
|
|
1935
1935
|
upperLimit: 0,
|
|
1936
1936
|
lowerLimit: 0
|
|
@@ -1938,10 +1938,10 @@ var We = (e) => [
|
|
|
1938
1938
|
value: e,
|
|
1939
1939
|
label: e
|
|
1940
1940
|
})) || [], [se]), le = W(() => [L.linearGaugeV2, L.progressBarV2].includes(e?.chartType || "") && [L.progressBarV2].includes(e?.chartType || "") ? [
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
...
|
|
1944
|
-
] :
|
|
1941
|
+
N[1],
|
|
1942
|
+
N[2],
|
|
1943
|
+
...A
|
|
1944
|
+
] : A, [e?.chartType]), pe = [
|
|
1945
1945
|
L.pie,
|
|
1946
1946
|
L.doughnut,
|
|
1947
1947
|
L.rose,
|
|
@@ -2072,22 +2072,22 @@ var We = (e) => [
|
|
|
2072
2072
|
});
|
|
2073
2073
|
}, Ae = () => {
|
|
2074
2074
|
let n = e?.customSettings?.YaxislabelFormatters || [];
|
|
2075
|
-
|
|
2075
|
+
j?.isEdit ? t((e) => ({
|
|
2076
2076
|
...e,
|
|
2077
2077
|
customSettings: {
|
|
2078
2078
|
...e.customSettings,
|
|
2079
|
-
YaxislabelFormatters: n?.map((e, t) => t ===
|
|
2080
|
-
upperLimit:
|
|
2081
|
-
lowerLimit:
|
|
2082
|
-
color:
|
|
2083
|
-
label:
|
|
2079
|
+
YaxislabelFormatters: n?.map((e, t) => t === j?.index ? {
|
|
2080
|
+
upperLimit: j?.upperLimit,
|
|
2081
|
+
lowerLimit: j?.lowerLimit,
|
|
2082
|
+
color: j?.color,
|
|
2083
|
+
label: j?.label
|
|
2084
2084
|
} : e)
|
|
2085
2085
|
}
|
|
2086
2086
|
})) : t((e) => ({
|
|
2087
2087
|
...e,
|
|
2088
2088
|
customSettings: {
|
|
2089
2089
|
...e.customSettings,
|
|
2090
|
-
YaxislabelFormatters: [...n,
|
|
2090
|
+
YaxislabelFormatters: [...n, j]
|
|
2091
2091
|
}
|
|
2092
2092
|
})), F({
|
|
2093
2093
|
label: "",
|
|
@@ -2220,7 +2220,7 @@ var We = (e) => [
|
|
|
2220
2220
|
L.bubble,
|
|
2221
2221
|
L.bubbleV2,
|
|
2222
2222
|
L.timeSeries
|
|
2223
|
-
].includes(e?.chartType), X =
|
|
2223
|
+
].includes(e?.chartType), X = fe(e?.chartType), Z = je((e, t) => t ? e?.canEdit === !0 : e?.canEdit !== !1, [g]), Q = (e, t) => !_ && t ? e.some((e) => Z(e, !0)) : e.some((e) => Z(e, !1)), Ve = [
|
|
2224
2224
|
g?.labelSettings?.XAxisStyle?.axisName,
|
|
2225
2225
|
g?.labelSettings?.XAxisStyle?.axisPadding,
|
|
2226
2226
|
g?.labelSettings?.XAxisStyle?.axisNameFontConfig?.fontFamily,
|
|
@@ -2323,7 +2323,7 @@ var We = (e) => [
|
|
|
2323
2323
|
value: e?.customSettings?.numberFormatter || "Original",
|
|
2324
2324
|
label: `${e?.customSettings?.numberFormatter?.toString().charAt(0).toUpperCase()}${e.customSettings?.numberFormatter?.toString()?.slice(1)}` || "Original"
|
|
2325
2325
|
},
|
|
2326
|
-
options:
|
|
2326
|
+
options: A,
|
|
2327
2327
|
onChange: (e) => t((t) => ({
|
|
2328
2328
|
...t,
|
|
2329
2329
|
customSettings: {
|
|
@@ -2362,7 +2362,7 @@ var We = (e) => [
|
|
|
2362
2362
|
}), Z(g?.customSettings?.subHeaderAlignment, !1) && /* @__PURE__ */ J("div", {
|
|
2363
2363
|
className: B.featTabsContainer,
|
|
2364
2364
|
"data-testid": "sub-header-alignment",
|
|
2365
|
-
children: /* @__PURE__ */ J(
|
|
2365
|
+
children: /* @__PURE__ */ J(k, {
|
|
2366
2366
|
isDisabled: !e?.customSettings.displayText,
|
|
2367
2367
|
selectedOption: {
|
|
2368
2368
|
value: e?.customSettings.displayText ? e?.customSettings?.subHeaderAlignment || "center" : "",
|
|
@@ -2418,7 +2418,7 @@ var We = (e) => [
|
|
|
2418
2418
|
children: [
|
|
2419
2419
|
/* @__PURE__ */ J("div", {
|
|
2420
2420
|
className: "dbn:col-span-4 dbn:flex dbn:items-end",
|
|
2421
|
-
children: /* @__PURE__ */ Y(
|
|
2421
|
+
children: /* @__PURE__ */ Y(M, {
|
|
2422
2422
|
direction: "row",
|
|
2423
2423
|
className: "dbn:gap-4",
|
|
2424
2424
|
children: [/* @__PURE__ */ J(Oe, {
|
|
@@ -2568,7 +2568,7 @@ var We = (e) => [
|
|
|
2568
2568
|
className: "dbn:flex dbn:gap-4 dbn:items-center",
|
|
2569
2569
|
children: [/* @__PURE__ */ J(f, {
|
|
2570
2570
|
variant: "popover",
|
|
2571
|
-
leftIcon: /* @__PURE__ */ J(
|
|
2571
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
2572
2572
|
name: "pencil-simple",
|
|
2573
2573
|
size: "sm"
|
|
2574
2574
|
}),
|
|
@@ -2583,7 +2583,7 @@ var We = (e) => [
|
|
|
2583
2583
|
}), /* @__PURE__ */ J(f, {
|
|
2584
2584
|
variant: "popover",
|
|
2585
2585
|
onClick: () => ke(e),
|
|
2586
|
-
leftIcon: /* @__PURE__ */ J(
|
|
2586
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
2587
2587
|
name: "cross",
|
|
2588
2588
|
size: "sm"
|
|
2589
2589
|
})
|
|
@@ -2620,7 +2620,7 @@ var We = (e) => [
|
|
|
2620
2620
|
onClick: (e) => {
|
|
2621
2621
|
ne(!0), v === "Conditional Formatting" && e.stopPropagation();
|
|
2622
2622
|
},
|
|
2623
|
-
leftIcon: /* @__PURE__ */ J(
|
|
2623
|
+
leftIcon: /* @__PURE__ */ J(P, { name: "plus" }),
|
|
2624
2624
|
children: "Add Rule"
|
|
2625
2625
|
})
|
|
2626
2626
|
})]
|
|
@@ -2679,7 +2679,7 @@ var We = (e) => [
|
|
|
2679
2679
|
className: "dbn:flex dbn:gap-2 dbn:items-center dbn:flex-shrink-0",
|
|
2680
2680
|
children: [/* @__PURE__ */ J(f, {
|
|
2681
2681
|
variant: "popover",
|
|
2682
|
-
leftIcon: /* @__PURE__ */ J(
|
|
2682
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
2683
2683
|
name: "pencil-simple",
|
|
2684
2684
|
size: "sm"
|
|
2685
2685
|
}),
|
|
@@ -2705,7 +2705,7 @@ var We = (e) => [
|
|
|
2705
2705
|
}), /* @__PURE__ */ J(f, {
|
|
2706
2706
|
variant: "popover",
|
|
2707
2707
|
onClick: () => Ne(e.columnName, n),
|
|
2708
|
-
leftIcon: /* @__PURE__ */ J(
|
|
2708
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
2709
2709
|
name: "cross",
|
|
2710
2710
|
size: "sm"
|
|
2711
2711
|
})
|
|
@@ -2743,7 +2743,7 @@ var We = (e) => [
|
|
|
2743
2743
|
onClick: (e) => {
|
|
2744
2744
|
ne(!0), v === "Conditional Formatting" && e.stopPropagation();
|
|
2745
2745
|
},
|
|
2746
|
-
leftIcon: /* @__PURE__ */ J(
|
|
2746
|
+
leftIcon: /* @__PURE__ */ J(P, { name: "plus" }),
|
|
2747
2747
|
children: "Add Rule"
|
|
2748
2748
|
})
|
|
2749
2749
|
}), Q(qe) && /* @__PURE__ */ J(V, {
|
|
@@ -4233,7 +4233,7 @@ var We = (e) => [
|
|
|
4233
4233
|
"data-testid": "custom-vertical-input",
|
|
4234
4234
|
type: "number",
|
|
4235
4235
|
isDisabled: !e?.legendSettings?.customise,
|
|
4236
|
-
leftIcon: /* @__PURE__ */ J(
|
|
4236
|
+
leftIcon: /* @__PURE__ */ J(P, { name: "align-top" }),
|
|
4237
4237
|
value: e?.legendSettings?.top,
|
|
4238
4238
|
onChange: (e) => t((t) => ({
|
|
4239
4239
|
...t,
|
|
@@ -4245,7 +4245,7 @@ var We = (e) => [
|
|
|
4245
4245
|
}), Z(g?.legendSettings?.left, !_) && /* @__PURE__ */ J(d, {
|
|
4246
4246
|
"data-testid": "custom-horizontal-input",
|
|
4247
4247
|
isDisabled: !e?.legendSettings?.customise,
|
|
4248
|
-
leftIcon: /* @__PURE__ */ J(
|
|
4248
|
+
leftIcon: /* @__PURE__ */ J(P, { name: "align-left" }),
|
|
4249
4249
|
type: "number",
|
|
4250
4250
|
value: e?.legendSettings?.left,
|
|
4251
4251
|
onChange: (e) => t((t) => ({
|
|
@@ -4259,7 +4259,7 @@ var We = (e) => [
|
|
|
4259
4259
|
}) : null,
|
|
4260
4260
|
Z(g?.legendSettings?.position, !_) && /* @__PURE__ */ J("div", {
|
|
4261
4261
|
className: B.featTabsContainer,
|
|
4262
|
-
children: /* @__PURE__ */ J(
|
|
4262
|
+
children: /* @__PURE__ */ J(k, {
|
|
4263
4263
|
label: "Orientation",
|
|
4264
4264
|
selectedOption: {
|
|
4265
4265
|
value: e?.legendSettings?.position || "horizontal",
|
|
@@ -4285,7 +4285,7 @@ var We = (e) => [
|
|
|
4285
4285
|
}),
|
|
4286
4286
|
Z(g?.legendSettings?.legendShape, !_) && /* @__PURE__ */ J("div", {
|
|
4287
4287
|
className: B.featTabsContainer,
|
|
4288
|
-
children: /* @__PURE__ */ J(
|
|
4288
|
+
children: /* @__PURE__ */ J(k, {
|
|
4289
4289
|
label: "Legend Shape",
|
|
4290
4290
|
selectedOption: {
|
|
4291
4291
|
value: e?.legendSettings?.legendShape || "rectangle",
|
|
@@ -4558,7 +4558,7 @@ var We = (e) => [
|
|
|
4558
4558
|
children: [
|
|
4559
4559
|
Z(g?.labelSettings?.position, !1) && /* @__PURE__ */ J("div", {
|
|
4560
4560
|
className: B.featTabsContainer,
|
|
4561
|
-
children: /* @__PURE__ */ J(
|
|
4561
|
+
children: /* @__PURE__ */ J(k, {
|
|
4562
4562
|
label: "Label Position",
|
|
4563
4563
|
selectedOption: {
|
|
4564
4564
|
value: e?.labelSettings?.position || "hidden",
|
|
@@ -4695,7 +4695,7 @@ var We = (e) => [
|
|
|
4695
4695
|
text: "Reset",
|
|
4696
4696
|
children: /* @__PURE__ */ J(f, {
|
|
4697
4697
|
variant: "popover",
|
|
4698
|
-
leftIcon: /* @__PURE__ */ J(
|
|
4698
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
4699
4699
|
name: "undo",
|
|
4700
4700
|
size: "sm"
|
|
4701
4701
|
}),
|
|
@@ -4771,7 +4771,7 @@ var We = (e) => [
|
|
|
4771
4771
|
L.timeSeries
|
|
4772
4772
|
].includes(e?.chartType)) && /* @__PURE__ */ J("div", {
|
|
4773
4773
|
className: B.featTabsContainer,
|
|
4774
|
-
children: /* @__PURE__ */ J(
|
|
4774
|
+
children: /* @__PURE__ */ J(k, {
|
|
4775
4775
|
label: "Pointer Style",
|
|
4776
4776
|
selectedOption: {
|
|
4777
4777
|
value: e?.customSettings?.axisPointerStyle ?? "dashed",
|
|
@@ -5574,7 +5574,7 @@ var We = (e) => [
|
|
|
5574
5574
|
variant: "tertiary",
|
|
5575
5575
|
onClick: () => ae(!0),
|
|
5576
5576
|
size: "small",
|
|
5577
|
-
leftIcon: /* @__PURE__ */ J(
|
|
5577
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
5578
5578
|
name: "plus",
|
|
5579
5579
|
size: "sm"
|
|
5580
5580
|
}),
|
|
@@ -5592,7 +5592,7 @@ var We = (e) => [
|
|
|
5592
5592
|
...t,
|
|
5593
5593
|
lowerLimit: Number.isNaN(Number(e.target.value)) ? e.target.value : Number(e.target.value)
|
|
5594
5594
|
})),
|
|
5595
|
-
value:
|
|
5595
|
+
value: j.lowerLimit
|
|
5596
5596
|
})
|
|
5597
5597
|
}),
|
|
5598
5598
|
/* @__PURE__ */ J("div", {
|
|
@@ -5603,7 +5603,7 @@ var We = (e) => [
|
|
|
5603
5603
|
...t,
|
|
5604
5604
|
upperLimit: Number.isNaN(Number(e.target.value)) ? e.target.value : Number(e.target.value)
|
|
5605
5605
|
})),
|
|
5606
|
-
value:
|
|
5606
|
+
value: j.upperLimit
|
|
5607
5607
|
})
|
|
5608
5608
|
}),
|
|
5609
5609
|
/* @__PURE__ */ J("div", {
|
|
@@ -5616,7 +5616,7 @@ var We = (e) => [
|
|
|
5616
5616
|
...t,
|
|
5617
5617
|
label: e.target.value
|
|
5618
5618
|
})),
|
|
5619
|
-
value:
|
|
5619
|
+
value: j.label
|
|
5620
5620
|
})
|
|
5621
5621
|
}),
|
|
5622
5622
|
/* @__PURE__ */ J("div", {
|
|
@@ -5629,7 +5629,7 @@ var We = (e) => [
|
|
|
5629
5629
|
color: e
|
|
5630
5630
|
})),
|
|
5631
5631
|
defaultValue: "#000000",
|
|
5632
|
-
value:
|
|
5632
|
+
value: j.color || "#000000"
|
|
5633
5633
|
})
|
|
5634
5634
|
}),
|
|
5635
5635
|
/* @__PURE__ */ Y("div", {
|
|
@@ -5648,9 +5648,9 @@ var We = (e) => [
|
|
|
5648
5648
|
}), /* @__PURE__ */ J(f, {
|
|
5649
5649
|
variant: "primary",
|
|
5650
5650
|
onClick: Ae,
|
|
5651
|
-
isDisabled: !
|
|
5651
|
+
isDisabled: !j.label || !j.lowerLimit.toString() || !j.upperLimit.toString() || j.upperLimit === j.lowerLimit,
|
|
5652
5652
|
className: "cta-primary",
|
|
5653
|
-
children:
|
|
5653
|
+
children: j?.isEdit ? "Update" : "Save"
|
|
5654
5654
|
})]
|
|
5655
5655
|
})
|
|
5656
5656
|
]
|
|
@@ -5662,7 +5662,7 @@ var We = (e) => [
|
|
|
5662
5662
|
children: [/* @__PURE__ */ Y("div", { children: [
|
|
5663
5663
|
/* @__PURE__ */ J(C, {
|
|
5664
5664
|
variant: "body-text-2",
|
|
5665
|
-
children:
|
|
5665
|
+
children: de(e.label, 22)
|
|
5666
5666
|
}),
|
|
5667
5667
|
/* @__PURE__ */ J(C, {
|
|
5668
5668
|
variant: "body-text-3",
|
|
@@ -5682,7 +5682,7 @@ var We = (e) => [
|
|
|
5682
5682
|
className: "dbn:flex dbn:gap-4 dbn:mx-3",
|
|
5683
5683
|
children: [/* @__PURE__ */ J(f, {
|
|
5684
5684
|
variant: "popover",
|
|
5685
|
-
leftIcon: /* @__PURE__ */ J(
|
|
5685
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
5686
5686
|
name: "pencil-simple",
|
|
5687
5687
|
size: "sm"
|
|
5688
5688
|
}),
|
|
@@ -5695,7 +5695,7 @@ var We = (e) => [
|
|
|
5695
5695
|
}
|
|
5696
5696
|
}), /* @__PURE__ */ J(f, {
|
|
5697
5697
|
variant: "popover",
|
|
5698
|
-
leftIcon: /* @__PURE__ */ J(
|
|
5698
|
+
leftIcon: /* @__PURE__ */ J(P, {
|
|
5699
5699
|
name: "delete",
|
|
5700
5700
|
color: "alert"
|
|
5701
5701
|
}),
|
|
@@ -5842,7 +5842,7 @@ var We = (e) => [
|
|
|
5842
5842
|
...t.customSettings,
|
|
5843
5843
|
limitDatapoints: {
|
|
5844
5844
|
...t.customSettings?.limitDatapoints,
|
|
5845
|
-
limit:
|
|
5845
|
+
limit: ue(e.target.value)
|
|
5846
5846
|
}
|
|
5847
5847
|
}
|
|
5848
5848
|
}))
|
|
@@ -6186,11 +6186,11 @@ var We = (e) => [
|
|
|
6186
6186
|
let t = (e) => e.toString().padStart(2, "0");
|
|
6187
6187
|
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}`;
|
|
6188
6188
|
}, it = ({ filtersPanelProps: { isOpen: e, onClose: t, filters: n, setCreatedFilters: r, columnOptions: i, getFilterDropDownType: a, editorRef: o, workspaceId: c, onApplyFilter: p, savedFilterListOptions: h, currentSelectedTable: _, datasourceId: v, dbName: b, databaseName: x, joinTableOption: S, setCurrentSelectedTable: ee, clientId: C, clientColumnType: ne, globalFilters: T, token: E } }) => {
|
|
6189
|
-
let [O,
|
|
6189
|
+
let [O, k] = K(!0), A = W(() => n?.map((e, t) => ({
|
|
6190
6190
|
filter: e,
|
|
6191
6191
|
index: t
|
|
6192
|
-
}))?.filter(({ filter: e }) => e.type !== "client") || [], [n]),
|
|
6193
|
-
let e =
|
|
6192
|
+
}))?.filter(({ filter: e }) => e.type !== "client") || [], [n]), M = W(() => {
|
|
6193
|
+
let e = A?.slice(-1)?.[0]?.filter;
|
|
6194
6194
|
return !e || !(e.type === "custom" && (!e.sql || !e?.name) || e.type === "default" && (!e?.columnName?.value || !e?.operator?.value || [
|
|
6195
6195
|
"INPUT_TEXT_FIELD",
|
|
6196
6196
|
"INPUT_NUMBER_FIELD",
|
|
@@ -6203,7 +6203,7 @@ var We = (e) => [
|
|
|
6203
6203
|
datatype: e?.columnName?.column?.datatype || "",
|
|
6204
6204
|
operator: e?.operator?.value
|
|
6205
6205
|
}) || "") && !e.value) || e.type === "client" && !e?.columnName?.value);
|
|
6206
|
-
}, [
|
|
6206
|
+
}, [A, a]);
|
|
6207
6207
|
return /* @__PURE__ */ J(Ae, {
|
|
6208
6208
|
isOpen: e,
|
|
6209
6209
|
onClose: t,
|
|
@@ -6212,7 +6212,7 @@ var We = (e) => [
|
|
|
6212
6212
|
hideFooter: !0,
|
|
6213
6213
|
headerTitle: "Filters",
|
|
6214
6214
|
zIndex: 9999,
|
|
6215
|
-
children:
|
|
6215
|
+
children: A.length ? /* @__PURE__ */ Y("div", {
|
|
6216
6216
|
className: "dbn:w-full dbn:h-full dbn:p-5 dbn:flex dbn:flex-col dbn:justify-between",
|
|
6217
6217
|
children: [/* @__PURE__ */ Y("div", {
|
|
6218
6218
|
className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-5",
|
|
@@ -6225,7 +6225,7 @@ var We = (e) => [
|
|
|
6225
6225
|
"data-testid": `select-${e?.label.replace(".", "-")}`,
|
|
6226
6226
|
variant: _?.value === e?.value ? "secondary" : "tab",
|
|
6227
6227
|
onClick: () => ee(e),
|
|
6228
|
-
isDisabled: !
|
|
6228
|
+
isDisabled: !M,
|
|
6229
6229
|
children: e?.label
|
|
6230
6230
|
}, e.value))
|
|
6231
6231
|
}), /* @__PURE__ */ J(f, {
|
|
@@ -6237,21 +6237,21 @@ var We = (e) => [
|
|
|
6237
6237
|
})]
|
|
6238
6238
|
}),
|
|
6239
6239
|
/* @__PURE__ */ J(Le, { description: _?.table?.description }),
|
|
6240
|
-
|
|
6241
|
-
let [n, o, h, b, ee] = e.columnName.value?.split("^^^^^^"), O = e?.columnName?.badge === "New" ? e?.columnName?.column?.datatype || "string" : e?.columnName?.dimension?.dataType || "string",
|
|
6242
|
-
|
|
6243
|
-
let
|
|
6240
|
+
A?.map(({ filter: e, index: t }) => {
|
|
6241
|
+
let [n, o, h, b, ee] = e.columnName.value?.split("^^^^^^"), O = e?.columnName?.badge === "New" ? e?.columnName?.column?.datatype || "string" : e?.columnName?.dimension?.dataType || "string", k = e?.columnName?.column, A, ie;
|
|
6242
|
+
k?.type === "CUSTOM" && (A = k?.sql, ie = k?.parentAlias), k?.type === "HELPER_FUNCTION" && (ie = k?.parentAlias);
|
|
6243
|
+
let M = a({
|
|
6244
6244
|
datatype: O,
|
|
6245
6245
|
operator: e.operator.value
|
|
6246
6246
|
});
|
|
6247
6247
|
if (e?.tableName?.value !== _.value) return /* @__PURE__ */ J(q, {});
|
|
6248
|
-
let
|
|
6249
|
-
columnName: e?.applyOnTables?.find((e) => e.tableName === `${
|
|
6248
|
+
let N = S.find((t) => t.value === e?.tableName?.value)?.table, F = (T?.[0]?.columns?.filter((e) => e.isAppFilter && e?.applyOnTables?.some((e) => e.tableName === `${N?.schemaName}.${N?.tableName}`)) || []).map((e) => ({
|
|
6249
|
+
columnName: e?.applyOnTables?.find((e) => e.tableName === `${N?.schemaName}.${N?.tableName}`)?.columnName,
|
|
6250
6250
|
value: e.defaultValue,
|
|
6251
6251
|
as: e.as
|
|
6252
6252
|
})) || [], L;
|
|
6253
|
-
|
|
6254
|
-
columnName:
|
|
6253
|
+
N?.clientColumn && C && ne && (L = {
|
|
6254
|
+
columnName: N?.clientColumn,
|
|
6255
6255
|
value: C,
|
|
6256
6256
|
as: ne
|
|
6257
6257
|
});
|
|
@@ -6292,7 +6292,7 @@ var We = (e) => [
|
|
|
6292
6292
|
isDisabled: !i,
|
|
6293
6293
|
buttonWidth: "250px",
|
|
6294
6294
|
menuWidth: "250px"
|
|
6295
|
-
}), /* @__PURE__ */ J(Le, { description:
|
|
6295
|
+
}), /* @__PURE__ */ J(Le, { description: N?.columnsWithDataType?.find((e) => e.name === o)?.description })]
|
|
6296
6296
|
}), e.type === "default" && /* @__PURE__ */ Y(q, { children: [
|
|
6297
6297
|
" ",
|
|
6298
6298
|
/* @__PURE__ */ J(y, {
|
|
@@ -6325,16 +6325,16 @@ var We = (e) => [
|
|
|
6325
6325
|
buttonWidth: "250px",
|
|
6326
6326
|
menuWidth: "250px"
|
|
6327
6327
|
}),
|
|
6328
|
-
|
|
6328
|
+
M === "MULTI_FILTER_DROPDOWN" && /* @__PURE__ */ J(oe, {
|
|
6329
6329
|
clientId: C || "",
|
|
6330
6330
|
encryptedClientId: C || "",
|
|
6331
6331
|
isFrontendApp: !1,
|
|
6332
6332
|
token: E,
|
|
6333
6333
|
tableAlias: ie,
|
|
6334
|
-
customColumnSql:
|
|
6335
|
-
parentAlias:
|
|
6336
|
-
helperFunction:
|
|
6337
|
-
functionConfiguration:
|
|
6334
|
+
customColumnSql: A || void 0,
|
|
6335
|
+
parentAlias: k?.parentAlias,
|
|
6336
|
+
helperFunction: k?.helperFunction,
|
|
6337
|
+
functionConfiguration: k?.functionConfiguration,
|
|
6338
6338
|
filterClause: se,
|
|
6339
6339
|
databaseName: x,
|
|
6340
6340
|
datasourceId: v,
|
|
@@ -6358,16 +6358,16 @@ var We = (e) => [
|
|
|
6358
6358
|
buttonWidth: "250px",
|
|
6359
6359
|
menuWidth: "250px"
|
|
6360
6360
|
}),
|
|
6361
|
-
|
|
6361
|
+
M === "FILTER_DROPDOWN" && /* @__PURE__ */ J(s, {
|
|
6362
6362
|
clientId: C || "",
|
|
6363
6363
|
encryptedClientId: C || "",
|
|
6364
6364
|
isFrontendApp: !1,
|
|
6365
6365
|
token: E,
|
|
6366
6366
|
tableAlias: ie,
|
|
6367
|
-
customColumnSql:
|
|
6368
|
-
parentAlias:
|
|
6369
|
-
helperFunction:
|
|
6370
|
-
functionConfiguration:
|
|
6367
|
+
customColumnSql: A || void 0,
|
|
6368
|
+
parentAlias: k?.parentAlias,
|
|
6369
|
+
helperFunction: k?.helperFunction,
|
|
6370
|
+
functionConfiguration: k?.functionConfiguration,
|
|
6371
6371
|
isSearchEnabled: !0,
|
|
6372
6372
|
autoSelected: !1,
|
|
6373
6373
|
isDisabled: !o,
|
|
@@ -6391,7 +6391,7 @@ var We = (e) => [
|
|
|
6391
6391
|
value: { stringValue: e.value }
|
|
6392
6392
|
} : n))
|
|
6393
6393
|
}),
|
|
6394
|
-
|
|
6394
|
+
M === "TIME_FILTER" && /* @__PURE__ */ J(nt, {
|
|
6395
6395
|
isDisabled: !o || !O,
|
|
6396
6396
|
excludedOptions: ["Life Time"],
|
|
6397
6397
|
timeGrainValue: e.value.timeValue?.timeFilter || "Last Year",
|
|
@@ -6405,7 +6405,7 @@ var We = (e) => [
|
|
|
6405
6405
|
} }
|
|
6406
6406
|
} : n))
|
|
6407
6407
|
}),
|
|
6408
|
-
|
|
6408
|
+
M === "INPUT_NUMBER_FIELD" && /* @__PURE__ */ J(d, {
|
|
6409
6409
|
type: "number",
|
|
6410
6410
|
onChange: ({ target: { value: e } }) => r((n) => n?.map((n, r) => t === r ? {
|
|
6411
6411
|
...n,
|
|
@@ -6413,9 +6413,9 @@ var We = (e) => [
|
|
|
6413
6413
|
} : n)),
|
|
6414
6414
|
value: e?.value.numberValue || 0
|
|
6415
6415
|
}),
|
|
6416
|
-
|
|
6416
|
+
M === "DATE_RANGE" && /* @__PURE__ */ J("div", {
|
|
6417
6417
|
className: "dbn:min-w-[200px]",
|
|
6418
|
-
children: /* @__PURE__ */ J(
|
|
6418
|
+
children: /* @__PURE__ */ J(j, {
|
|
6419
6419
|
label: "Select Range",
|
|
6420
6420
|
variant: "floatingLabel",
|
|
6421
6421
|
onChange: (e) => {
|
|
@@ -6438,9 +6438,9 @@ var We = (e) => [
|
|
|
6438
6438
|
isDisabled: !o || !O
|
|
6439
6439
|
})
|
|
6440
6440
|
}),
|
|
6441
|
-
|
|
6441
|
+
M === "DATE_PICKER" && /* @__PURE__ */ J("div", {
|
|
6442
6442
|
className: "dbn:min-w-[200px]",
|
|
6443
|
-
children: /* @__PURE__ */ J(
|
|
6443
|
+
children: /* @__PURE__ */ J(j, {
|
|
6444
6444
|
label: "Select Date",
|
|
6445
6445
|
isEnableSingleDate: !0,
|
|
6446
6446
|
variant: "floatingLabel",
|
|
@@ -6459,7 +6459,7 @@ var We = (e) => [
|
|
|
6459
6459
|
isDisabled: !o || !O
|
|
6460
6460
|
})
|
|
6461
6461
|
}),
|
|
6462
|
-
|
|
6462
|
+
M === "INPUT_TEXT_FIELD" && /* @__PURE__ */ J(d, {
|
|
6463
6463
|
type: "text",
|
|
6464
6464
|
onChange: ({ target: { value: e } }) => r((n) => n?.map((n, r) => t === r ? {
|
|
6465
6465
|
...n,
|
|
@@ -6473,7 +6473,7 @@ var We = (e) => [
|
|
|
6473
6473
|
onClick: () => {
|
|
6474
6474
|
p(() => r((e) => e.filter((e, n) => n !== t)), !1, t);
|
|
6475
6475
|
},
|
|
6476
|
-
children: /* @__PURE__ */ J(
|
|
6476
|
+
children: /* @__PURE__ */ J(P, { name: "delete" })
|
|
6477
6477
|
})
|
|
6478
6478
|
]
|
|
6479
6479
|
}, `${e.tableName?.value}_${t}`);
|
|
@@ -6483,7 +6483,7 @@ var We = (e) => [
|
|
|
6483
6483
|
children: /* @__PURE__ */ J(ie, {
|
|
6484
6484
|
buttonContent: /* @__PURE__ */ J(f, {
|
|
6485
6485
|
variant: "popover",
|
|
6486
|
-
leftIcon: /* @__PURE__ */ J(
|
|
6486
|
+
leftIcon: /* @__PURE__ */ J(P, { name: "plus" }),
|
|
6487
6487
|
children: "Add Filter"
|
|
6488
6488
|
}),
|
|
6489
6489
|
position: "bottom-start",
|
|
@@ -6539,7 +6539,7 @@ var We = (e) => [
|
|
|
6539
6539
|
children: /* @__PURE__ */ J(ie, {
|
|
6540
6540
|
buttonContent: /* @__PURE__ */ J(f, {
|
|
6541
6541
|
variant: "secondary",
|
|
6542
|
-
leftIcon: /* @__PURE__ */ J(
|
|
6542
|
+
leftIcon: /* @__PURE__ */ J(P, { name: "plus" }),
|
|
6543
6543
|
className: "cta-secondary",
|
|
6544
6544
|
children: "Add Filter"
|
|
6545
6545
|
}),
|
|
@@ -6649,13 +6649,13 @@ var We = (e) => [
|
|
|
6649
6649
|
onClick: () => {
|
|
6650
6650
|
r((e) => e.filter((e, n) => n !== t)), a(() => r(n.filter((e, n) => n !== t)), !1, t);
|
|
6651
6651
|
},
|
|
6652
|
-
children: /* @__PURE__ */ J(
|
|
6652
|
+
children: /* @__PURE__ */ J(P, { name: "delete" })
|
|
6653
6653
|
})
|
|
6654
6654
|
]
|
|
6655
6655
|
}, `${e.columnName.value}_${e.tableName.value}_${e.method.value}_${t?.toString()}`) : /* @__PURE__ */ J(q, {})),
|
|
6656
6656
|
/* @__PURE__ */ J(f, {
|
|
6657
6657
|
variant: "popover",
|
|
6658
|
-
leftIcon: /* @__PURE__ */ J(
|
|
6658
|
+
leftIcon: /* @__PURE__ */ J(P, { name: "plus" }),
|
|
6659
6659
|
onClick: () => r((e) => [...e, {
|
|
6660
6660
|
columnName: {
|
|
6661
6661
|
label: "",
|
|
@@ -6693,7 +6693,7 @@ var We = (e) => [
|
|
|
6693
6693
|
}), /* @__PURE__ */ J(f, {
|
|
6694
6694
|
variant: "secondary",
|
|
6695
6695
|
className: "cta-secondary",
|
|
6696
|
-
leftIcon: /* @__PURE__ */ J(
|
|
6696
|
+
leftIcon: /* @__PURE__ */ J(P, { name: "plus" }),
|
|
6697
6697
|
onClick: () => r((e) => [...e, {
|
|
6698
6698
|
columnName: {
|
|
6699
6699
|
label: "",
|