@databrainhq/plugin 0.7.8 → 0.7.10
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/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +1 -1
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts +3 -2
- package/dist/index.es.js +367 -252
- package/dist/index.umd.js +56 -55
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +2 -0
- package/dist/types/metricCreate.d.ts +2 -0
- package/dist/utils/generated/graphql.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2512,68 +2512,70 @@ function useQuery(arg1, arg2, arg3) {
|
|
|
2512
2512
|
var parsedOptions = parseQueryArgs(arg1, arg2, arg3);
|
|
2513
2513
|
return useBaseQuery(parsedOptions, QueryObserver);
|
|
2514
2514
|
}
|
|
2515
|
-
const container$g = "
|
|
2516
|
-
const fixed = "
|
|
2517
|
-
const absolute = "
|
|
2518
|
-
const
|
|
2519
|
-
const
|
|
2520
|
-
const
|
|
2521
|
-
const
|
|
2522
|
-
const
|
|
2523
|
-
const
|
|
2524
|
-
const
|
|
2525
|
-
const
|
|
2526
|
-
const
|
|
2527
|
-
const
|
|
2528
|
-
const
|
|
2529
|
-
const
|
|
2530
|
-
const
|
|
2531
|
-
const
|
|
2532
|
-
const
|
|
2515
|
+
const container$g = "_container_10z7z_1";
|
|
2516
|
+
const fixed = "_fixed_10z7z_1";
|
|
2517
|
+
const absolute = "_absolute_10z7z_1";
|
|
2518
|
+
const flex = "_flex_10z7z_1";
|
|
2519
|
+
const table$5 = "_table_10z7z_1";
|
|
2520
|
+
const grid = "_grid_10z7z_1";
|
|
2521
|
+
const hidden = "_hidden_10z7z_1";
|
|
2522
|
+
const transform = "_transform_10z7z_1";
|
|
2523
|
+
const resize = "_resize_10z7z_1";
|
|
2524
|
+
const truncate = "_truncate_10z7z_1";
|
|
2525
|
+
const border = "_border_10z7z_1";
|
|
2526
|
+
const shadow = "_shadow_10z7z_1";
|
|
2527
|
+
const filter$1 = "_filter_10z7z_351";
|
|
2528
|
+
const floatingFilterButton = "_floatingFilterButton_10z7z_359";
|
|
2529
|
+
const floatingFilterButtonIcon = "_floatingFilterButtonIcon_10z7z_367";
|
|
2530
|
+
const floatingButton = "_floatingButton_10z7z_375";
|
|
2531
|
+
const floatingButtonIcon = "_floatingButtonIcon_10z7z_383";
|
|
2532
|
+
const staticContainer = "_staticContainer_10z7z_391";
|
|
2533
|
+
const floatingContainer = "_floatingContainer_10z7z_399";
|
|
2533
2534
|
var styles$B = {
|
|
2534
2535
|
container: container$g,
|
|
2535
|
-
"static": "
|
|
2536
|
+
"static": "_static_10z7z_391",
|
|
2536
2537
|
fixed,
|
|
2537
2538
|
absolute,
|
|
2538
|
-
"left-2": "_left-
|
|
2539
|
-
"top-1": "_top-
|
|
2540
|
-
"mt-2.5": "_mt-2.
|
|
2541
|
-
"mt-2": "_mt-
|
|
2542
|
-
"mb-3": "_mb-
|
|
2539
|
+
"left-2": "_left-2_10z7z_1",
|
|
2540
|
+
"top-1": "_top-1_10z7z_1",
|
|
2541
|
+
"mt-2.5": "_mt-2.5_10z7z_1",
|
|
2542
|
+
"mt-2": "_mt-2_10z7z_1",
|
|
2543
|
+
"mb-3": "_mb-3_10z7z_1",
|
|
2544
|
+
flex,
|
|
2543
2545
|
table: table$5,
|
|
2544
2546
|
grid,
|
|
2545
2547
|
hidden,
|
|
2546
|
-
"h-screen": "_h-
|
|
2547
|
-
"h-[10%]": "_h-[10%]
|
|
2548
|
-
"w-screen": "_w-
|
|
2549
|
-
"w-full": "_w-
|
|
2548
|
+
"h-screen": "_h-screen_10z7z_1",
|
|
2549
|
+
"h-[10%]": "_h-[10%]_10z7z_1",
|
|
2550
|
+
"w-screen": "_w-screen_10z7z_1",
|
|
2551
|
+
"w-full": "_w-full_10z7z_1",
|
|
2550
2552
|
transform,
|
|
2551
2553
|
resize,
|
|
2552
|
-
"overflow-x-hidden": "_overflow-x-
|
|
2554
|
+
"overflow-x-hidden": "_overflow-x-hidden_10z7z_1",
|
|
2553
2555
|
truncate,
|
|
2554
2556
|
border,
|
|
2555
|
-
"p-2": "_p-
|
|
2556
|
-
"text-center": "_text-
|
|
2557
|
-
"text-sm": "_text-
|
|
2558
|
-
"text-xs": "_text-
|
|
2559
|
-
"text-blue-700": "_text-blue-
|
|
2557
|
+
"p-2": "_p-2_10z7z_1",
|
|
2558
|
+
"text-center": "_text-center_10z7z_1",
|
|
2559
|
+
"text-sm": "_text-sm_10z7z_1",
|
|
2560
|
+
"text-xs": "_text-xs_10z7z_1",
|
|
2561
|
+
"text-blue-700": "_text-blue-700_10z7z_1",
|
|
2560
2562
|
shadow,
|
|
2561
2563
|
filter: filter$1,
|
|
2562
|
-
"!filter": "_!
|
|
2563
|
-
"embedDashboard-container": "_embedDashboard-
|
|
2564
|
-
"embedDashboard-header-static": "_embedDashboard-header-
|
|
2565
|
-
"embedDashboard-header-floating": "_embedDashboard-header-
|
|
2566
|
-
"embedDashboard-wrapper": "_embedDashboard-
|
|
2567
|
-
"alt-container": "_alt-
|
|
2564
|
+
"!filter": "_!filter_10z7z_1",
|
|
2565
|
+
"embedDashboard-container": "_embedDashboard-container_10z7z_311",
|
|
2566
|
+
"embedDashboard-header-static": "_embedDashboard-header-static_10z7z_319",
|
|
2567
|
+
"embedDashboard-header-floating": "_embedDashboard-header-floating_10z7z_327",
|
|
2568
|
+
"embedDashboard-wrapper": "_embedDashboard-wrapper_10z7z_335",
|
|
2569
|
+
"alt-container": "_alt-container_10z7z_343",
|
|
2568
2570
|
floatingFilterButton,
|
|
2569
2571
|
floatingFilterButtonIcon,
|
|
2570
2572
|
floatingButton,
|
|
2571
2573
|
floatingButtonIcon,
|
|
2572
2574
|
staticContainer,
|
|
2573
2575
|
floatingContainer,
|
|
2574
|
-
"hover:cursor-pointer": "_hover:cursor-
|
|
2575
|
-
"hover:cursor-text": "_hover:cursor-
|
|
2576
|
-
"disabled:cursor-text": "_disabled:cursor-
|
|
2576
|
+
"hover:cursor-pointer": "_hover:cursor-pointer_10z7z_1",
|
|
2577
|
+
"hover:cursor-text": "_hover:cursor-text_10z7z_1",
|
|
2578
|
+
"disabled:cursor-text": "_disabled:cursor-text_10z7z_1"
|
|
2577
2579
|
};
|
|
2578
2580
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2579
2581
|
function getAugmentedNamespace(n2) {
|
|
@@ -7844,29 +7846,31 @@ var styles$z = {
|
|
|
7844
7846
|
"noMetric-wrapper": "_noMetric-wrapper_1b506_25",
|
|
7845
7847
|
"alt-container": "_alt-container_1b506_33"
|
|
7846
7848
|
};
|
|
7847
|
-
const cardContainer = "
|
|
7848
|
-
const listHeader = "
|
|
7849
|
-
const metricName = "
|
|
7850
|
-
const metricDescription = "
|
|
7851
|
-
const popup$1 = "
|
|
7852
|
-
const
|
|
7853
|
-
const
|
|
7854
|
-
const
|
|
7855
|
-
const
|
|
7856
|
-
const
|
|
7857
|
-
const
|
|
7858
|
-
const
|
|
7859
|
-
const
|
|
7860
|
-
const
|
|
7861
|
-
const
|
|
7862
|
-
const
|
|
7863
|
-
const
|
|
7849
|
+
const cardContainer = "_cardContainer_jf7tb_1";
|
|
7850
|
+
const listHeader = "_listHeader_jf7tb_9";
|
|
7851
|
+
const metricName = "_metricName_jf7tb_17";
|
|
7852
|
+
const metricDescription = "_metricDescription_jf7tb_25";
|
|
7853
|
+
const popup$1 = "_popup_jf7tb_33";
|
|
7854
|
+
const metricFilter = "_metricFilter_jf7tb_41";
|
|
7855
|
+
const popupIcon = "_popupIcon_jf7tb_49";
|
|
7856
|
+
const popupMenu = "_popupMenu_jf7tb_57";
|
|
7857
|
+
const popupItem = "_popupItem_jf7tb_65";
|
|
7858
|
+
const csvBtn = "_csvBtn_jf7tb_73";
|
|
7859
|
+
const metricData = "_metricData_jf7tb_81";
|
|
7860
|
+
const singleValueData = "_singleValueData_jf7tb_89";
|
|
7861
|
+
const singleValue = "_singleValue_jf7tb_89";
|
|
7862
|
+
const noData$2 = "_noData_jf7tb_105";
|
|
7863
|
+
const noDataContent = "_noDataContent_jf7tb_113";
|
|
7864
|
+
const noDataText = "_noDataText_jf7tb_121";
|
|
7865
|
+
const loading = "_loading_jf7tb_129";
|
|
7866
|
+
const features$1 = "_features_jf7tb_137";
|
|
7864
7867
|
var styles$y = {
|
|
7865
7868
|
cardContainer,
|
|
7866
7869
|
listHeader,
|
|
7867
7870
|
metricName,
|
|
7868
7871
|
metricDescription,
|
|
7869
7872
|
popup: popup$1,
|
|
7873
|
+
metricFilter,
|
|
7870
7874
|
popupIcon,
|
|
7871
7875
|
popupMenu,
|
|
7872
7876
|
popupItem,
|
|
@@ -7986,6 +7990,7 @@ const CompanySubsetTableDataDocument = `
|
|
|
7986
7990
|
name
|
|
7987
7991
|
as
|
|
7988
7992
|
}
|
|
7993
|
+
clientColumn
|
|
7989
7994
|
}
|
|
7990
7995
|
}
|
|
7991
7996
|
}
|
|
@@ -81900,14 +81905,15 @@ const SingleValueChart = ({
|
|
|
81900
81905
|
}
|
|
81901
81906
|
case "1s": {
|
|
81902
81907
|
let num = val.toString().slice(0, 1);
|
|
81903
|
-
|
|
81908
|
+
const num2 = Math.floor(parseFloat(val));
|
|
81909
|
+
for (let i2 = 1; i2 < num2.toString().length; i2 += 1) {
|
|
81904
81910
|
num += 0;
|
|
81905
81911
|
}
|
|
81906
81912
|
const value2 = adaptiveFormatter(num, false);
|
|
81907
81913
|
return value2;
|
|
81908
81914
|
}
|
|
81909
81915
|
case "1f": {
|
|
81910
|
-
const num = parseFloat(val.toFixed(1)
|
|
81916
|
+
const num = parseFloat(val).toFixed(1);
|
|
81911
81917
|
const value2 = comaFormatter.format(num);
|
|
81912
81918
|
if (val.toString().includes(".")) {
|
|
81913
81919
|
return value2;
|
|
@@ -81915,26 +81921,29 @@ const SingleValueChart = ({
|
|
|
81915
81921
|
return `${value2}.${Array(2).join("0")}`;
|
|
81916
81922
|
}
|
|
81917
81923
|
case "2f": {
|
|
81918
|
-
const num = parseFloat(val.toFixed(2)
|
|
81924
|
+
const num = parseFloat(val).toFixed(2);
|
|
81919
81925
|
const value2 = comaFormatter.format(num);
|
|
81920
81926
|
if (val.toString().includes(".")) {
|
|
81921
81927
|
const arr = val.toString().split(".");
|
|
81922
81928
|
if (arr[1].length > 1) {
|
|
81923
81929
|
return value2;
|
|
81924
81930
|
}
|
|
81925
|
-
return `${value2}
|
|
81931
|
+
return `${value2}${Array(2).join("0")}`;
|
|
81926
81932
|
}
|
|
81927
81933
|
return `${value2}.${Array(3).join("0")}`;
|
|
81928
81934
|
}
|
|
81929
81935
|
case "3f": {
|
|
81930
|
-
const num = parseFloat(val.toFixed(3)
|
|
81936
|
+
const num = parseFloat(val).toFixed(3);
|
|
81931
81937
|
const value2 = comaFormatter.format(num);
|
|
81932
81938
|
if (val.toString().includes(".")) {
|
|
81933
81939
|
const arr = val.toString().split(".");
|
|
81934
|
-
if (arr[1].length >
|
|
81940
|
+
if (arr[1].length > 2) {
|
|
81935
81941
|
return value2;
|
|
81936
81942
|
}
|
|
81937
|
-
|
|
81943
|
+
if (arr[1].length === 2) {
|
|
81944
|
+
return `${value2}${Array(2).join("0")}`;
|
|
81945
|
+
}
|
|
81946
|
+
return `${value2}${Array(3).join("0")}`;
|
|
81938
81947
|
}
|
|
81939
81948
|
return `${value2}.${Array(4).join("0")}`;
|
|
81940
81949
|
}
|
|
@@ -81942,28 +81951,29 @@ const SingleValueChart = ({
|
|
|
81942
81951
|
return `+${comaFormatter.format(val)}`;
|
|
81943
81952
|
}
|
|
81944
81953
|
case "$": {
|
|
81945
|
-
const num = parseFloat(val.toFixed(2)
|
|
81954
|
+
const num = parseFloat(val).toFixed(2);
|
|
81946
81955
|
const value2 = comaFormatter.format(num);
|
|
81947
81956
|
if (val.toString().includes(".")) {
|
|
81948
81957
|
const arr = val.toString().split(".");
|
|
81949
81958
|
if (arr[1].length > 1) {
|
|
81950
81959
|
return `$${value2}`;
|
|
81951
81960
|
}
|
|
81952
|
-
return `$${value2}
|
|
81961
|
+
return `$${value2}${Array(2).join("0")}`;
|
|
81953
81962
|
}
|
|
81954
81963
|
return `$${value2}.${Array(3).join("0")}`;
|
|
81955
81964
|
}
|
|
81956
81965
|
case "1%": {
|
|
81957
|
-
const num = val * 100;
|
|
81958
|
-
const
|
|
81959
|
-
|
|
81966
|
+
const num = parseFloat(val) * 100;
|
|
81967
|
+
const num2 = parseFloat(num).toFixed(1);
|
|
81968
|
+
const value2 = comaFormatter.format(num2);
|
|
81969
|
+
if (num.toString().includes(".")) {
|
|
81960
81970
|
return `${value2}%`;
|
|
81961
81971
|
}
|
|
81962
81972
|
return `${value2}.${Array(2).join("0")}%`;
|
|
81963
81973
|
}
|
|
81964
81974
|
case "2%": {
|
|
81965
|
-
const num = val * 100;
|
|
81966
|
-
const num2 = parseFloat(
|
|
81975
|
+
const num = parseFloat(val) * 100;
|
|
81976
|
+
const num2 = parseFloat(num).toFixed(2);
|
|
81967
81977
|
const value2 = comaFormatter.format(num2);
|
|
81968
81978
|
if (num.toString().includes(".")) {
|
|
81969
81979
|
const arr = val.toString().split(".");
|
|
@@ -81976,7 +81986,7 @@ const SingleValueChart = ({
|
|
|
81976
81986
|
}
|
|
81977
81987
|
case "3%": {
|
|
81978
81988
|
const num = val * 100;
|
|
81979
|
-
const num2 = parseFloat(
|
|
81989
|
+
const num2 = parseFloat(num).toFixed(3);
|
|
81980
81990
|
const value2 = comaFormatter.format(num2);
|
|
81981
81991
|
if (num.toString().includes(".")) {
|
|
81982
81992
|
const arr = val.toString().split(".");
|
|
@@ -81988,14 +81998,14 @@ const SingleValueChart = ({
|
|
|
81988
81998
|
return `${value2}.${Array(4).join("0")}%`;
|
|
81989
81999
|
}
|
|
81990
82000
|
case "ms1": {
|
|
81991
|
-
const seconds = Math.floor(val / 1e3);
|
|
81992
|
-
const remainingMilliseconds = val % 1e3;
|
|
82001
|
+
const seconds = Math.floor(parseFloat(val) / 1e3);
|
|
82002
|
+
const remainingMilliseconds = parseFloat(val) % 1e3;
|
|
81993
82003
|
return `${seconds}.${remainingMilliseconds.toString().slice(0, 1)}s`;
|
|
81994
82004
|
}
|
|
81995
82005
|
case "ms2": {
|
|
81996
|
-
const seconds = Math.floor(val / 1e3);
|
|
81997
|
-
const remainingMilliseconds = val % 1e3;
|
|
81998
|
-
const deciMiliSec = val - Math.floor(val);
|
|
82006
|
+
const seconds = Math.floor(parseFloat(val) / 1e3);
|
|
82007
|
+
const remainingMilliseconds = Math.floor(parseFloat(val) % 1e3);
|
|
82008
|
+
const deciMiliSec = parseFloat(val) - Math.floor(parseFloat(val));
|
|
81999
82009
|
const microSeconds = Math.floor(deciMiliSec * 1e3);
|
|
82000
82010
|
const deciMicro = deciMiliSec * 1e3 - microSeconds;
|
|
82001
82011
|
const nanoSeconds = Math.floor(deciMicro * 1e3);
|
|
@@ -82010,6 +82020,9 @@ const SingleValueChart = ({
|
|
|
82010
82020
|
finalResult += `${nanoSeconds}ns`;
|
|
82011
82021
|
return finalResult;
|
|
82012
82022
|
}
|
|
82023
|
+
case "4r": {
|
|
82024
|
+
return Math.floor(Math.round(parseFloat(val)));
|
|
82025
|
+
}
|
|
82013
82026
|
default:
|
|
82014
82027
|
return val;
|
|
82015
82028
|
}
|
|
@@ -83994,24 +84007,28 @@ const PopoverMenu = ({
|
|
|
83994
84007
|
});
|
|
83995
84008
|
};
|
|
83996
84009
|
var NoData = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMDAgMzAwIj48ZGVmcz48c3R5bGU+LmNscy0xe3N0cm9rZTojMTgyYzYwO30uY2xzLTEsL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Fzcz0iY2xzLTEiIGQ9Im0yMTUuMzcsMjA2LjA0Yy40Ny0uNzEuOC0xLjUyLjk1LTIuNCwxLjU4LTguODcsMy4xNS0xNy43NSw0LjczLTI2LjYyLDIuMDMtMTEuNDQsNC4wNi0yMi44OCw2LjA5LTM0LjMyLjcyLTQuMDgsMS43Ny04LjI1LDIuMTYtMTIuMzguMzktNC4xNi0xLjY4LTguNzktNS42Ny0xMC4zMSIvPjxwYXRoIGNsYXNzPSJjbHMtNyIgZD0ibTIyMy41MSwxMjAuMDhzLjQ5LDEuNjIuNTMsMS43My4zMiwyLjQ0LjMyLDIuNDRsLS4wNCwxLjkxLTEuMzgsNy4xMy0zLjM5LDE5LjMxLTIuODksMTUuOTItMi45NiwxNi43Ni0yLjQ0LDEzLjE2LS45MiwyLjY1LDQuOTgsNS4xNS44NS0yLjE1LjgxLTQuMDYsMS40OC04LjMzLDIuODItMTUuNzEsMi4xNS0xMi4xMSwxLjk0LTExLjM2LDIuNzUtMTQuNzUuODgtNC42OS4yOC0yLjU4LjA3LTIuMTItLjYtMi43NS0xLjI0LTIuMzYtMS4wOS0xLjU5LTIuMDEtMS4zMS0uOTItLjI4WiIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtNyIgcG9pbnRzPSI4NS42OCAyMDMuOTMgMjA0LjU1IDIwMy44NCAyMDkuMzUgMjA4LjczIDE0OC40OCAyMDguODggOTAuOTUgMjA5LjAyIDg5LjUgMjA4LjY2IDg3Ljk4IDIwNy45MiA4Ni44MiAyMDYuNTggODYuMDEgMjA1LjAzIDg1LjY4IDIwMy45MyIvPjwvc3ZnPg==";
|
|
83997
|
-
const container$d = "
|
|
83998
|
-
const wrapper$3 = "
|
|
83999
|
-
const label$5 = "
|
|
84000
|
-
const floatingLabel$1 = "
|
|
84001
|
-
const
|
|
84002
|
-
const
|
|
84003
|
-
const
|
|
84004
|
-
const
|
|
84005
|
-
const
|
|
84006
|
-
const
|
|
84007
|
-
const
|
|
84008
|
-
const
|
|
84009
|
-
const
|
|
84010
|
+
const container$d = "_container_1w020_1";
|
|
84011
|
+
const wrapper$3 = "_wrapper_1w020_5";
|
|
84012
|
+
const label$5 = "_label_1w020_9";
|
|
84013
|
+
const floatingLabel$1 = "_floatingLabel_1w020_13";
|
|
84014
|
+
const clientText = "_clientText_1w020_17";
|
|
84015
|
+
const normalText = "_normalText_1w020_21";
|
|
84016
|
+
const dropdown$1 = "_dropdown_1w020_25";
|
|
84017
|
+
const options = "_options_1w020_29";
|
|
84018
|
+
const checkedOption = "_checkedOption_1w020_33";
|
|
84019
|
+
const option$1 = "_option_1w020_29";
|
|
84020
|
+
const icon$1 = "_icon_1w020_41";
|
|
84021
|
+
const text$1 = "_text_1w020_45";
|
|
84022
|
+
const floatingText = "_floatingText_1w020_49";
|
|
84023
|
+
const search$1 = "_search_1w020_53";
|
|
84024
|
+
const loadMore$1 = "_loadMore_1w020_57";
|
|
84010
84025
|
var styles$s = {
|
|
84011
84026
|
container: container$d,
|
|
84012
84027
|
wrapper: wrapper$3,
|
|
84013
84028
|
label: label$5,
|
|
84014
84029
|
floatingLabel: floatingLabel$1,
|
|
84030
|
+
clientText,
|
|
84031
|
+
normalText,
|
|
84015
84032
|
dropdown: dropdown$1,
|
|
84016
84033
|
options,
|
|
84017
84034
|
checkedOption,
|
|
@@ -84019,7 +84036,7 @@ var styles$s = {
|
|
|
84019
84036
|
icon: icon$1,
|
|
84020
84037
|
text: text$1,
|
|
84021
84038
|
floatingText,
|
|
84022
|
-
search,
|
|
84039
|
+
search: search$1,
|
|
84023
84040
|
loadMore: loadMore$1
|
|
84024
84041
|
};
|
|
84025
84042
|
var isCheckBoxInput = (element) => element.type === "checkbox";
|
|
@@ -85453,10 +85470,26 @@ function useForm(props = {}) {
|
|
|
85453
85470
|
_formControl.current.formState = getProxyFormState(formState, control._proxyFormState);
|
|
85454
85471
|
return _formControl.current;
|
|
85455
85472
|
}
|
|
85473
|
+
const search = "_search_1klck_1";
|
|
85456
85474
|
var styles$r = {
|
|
85457
|
-
"searchTab-container": "_searchTab-
|
|
85458
|
-
"searchTab-input": "_searchTab-
|
|
85475
|
+
"searchTab-container": "_searchTab-container_1klck_1",
|
|
85476
|
+
"searchTab-input": "_searchTab-input_1klck_5",
|
|
85477
|
+
search
|
|
85459
85478
|
};
|
|
85479
|
+
const iconoirSearch = (props) => /* @__PURE__ */ jsx("svg", {
|
|
85480
|
+
viewBox: "0 0 24 24",
|
|
85481
|
+
width: "1.2em",
|
|
85482
|
+
height: "1.2em",
|
|
85483
|
+
...props,
|
|
85484
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
85485
|
+
fill: "none",
|
|
85486
|
+
stroke: "currentColor",
|
|
85487
|
+
strokeLinecap: "round",
|
|
85488
|
+
strokeLinejoin: "round",
|
|
85489
|
+
strokeWidth: 1.5,
|
|
85490
|
+
d: "M15.5 15.5L19 19M5 11a6 6 0 1 0 12 0a6 6 0 0 0-12 0Z"
|
|
85491
|
+
})
|
|
85492
|
+
});
|
|
85460
85493
|
const SearchTab = ({
|
|
85461
85494
|
setSearchKeyword,
|
|
85462
85495
|
className = ""
|
|
@@ -85469,13 +85502,20 @@ const SearchTab = ({
|
|
|
85469
85502
|
useEffect(() => {
|
|
85470
85503
|
setSearchKeyword(keyword == null ? void 0 : keyword.toLowerCase());
|
|
85471
85504
|
}, [setSearchKeyword, watch, keyword]);
|
|
85472
|
-
return /* @__PURE__ */
|
|
85505
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
85473
85506
|
className: `${styles$r["searchTab-container"]} ${className}`,
|
|
85474
|
-
children: /* @__PURE__ */ jsx("input", {
|
|
85475
|
-
placeholder: "Search
|
|
85507
|
+
children: [/* @__PURE__ */ jsx("input", {
|
|
85508
|
+
placeholder: "Search",
|
|
85476
85509
|
...register2("searchKeyword"),
|
|
85477
85510
|
className: styles$r["searchTab-input"]
|
|
85478
|
-
})
|
|
85511
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
85512
|
+
className: styles$r.search,
|
|
85513
|
+
children: /* @__PURE__ */ jsx(iconoirSearch, {
|
|
85514
|
+
color: "#C7C7C7",
|
|
85515
|
+
width: "30px",
|
|
85516
|
+
height: "30px"
|
|
85517
|
+
})
|
|
85518
|
+
})]
|
|
85479
85519
|
});
|
|
85480
85520
|
};
|
|
85481
85521
|
const materialSymbolsKeyboardArrowDown = (props) => /* @__PURE__ */ jsx("svg", {
|
|
@@ -85540,7 +85580,7 @@ const FloatingDropDown = ({
|
|
|
85540
85580
|
children: [label2 ? /* @__PURE__ */ jsx(Text, {
|
|
85541
85581
|
variant: "span",
|
|
85542
85582
|
styleClass: labelVariant === "floating" ? "custom" : "font-14",
|
|
85543
|
-
className: `${styles$s.label} ${labelVariant === "floating" ? styles$s.floatingLabel : ""}`,
|
|
85583
|
+
className: `${styles$s.label} ${labelVariant === "floating" ? styles$s.floatingLabel : ""} ${label2 === "client" ? styles$s.clientText : styles$s.normalText} `,
|
|
85544
85584
|
children: label2
|
|
85545
85585
|
}) : null, /* @__PURE__ */ jsxs(Button, {
|
|
85546
85586
|
type: "button",
|
|
@@ -85710,8 +85750,14 @@ const MetricCard = ({
|
|
|
85710
85750
|
tenancyLevel: companyTenancyType,
|
|
85711
85751
|
rlsConditions: companyTenancyType === "DATABASE" ? rlsConditions.map((c2) => ({
|
|
85712
85752
|
...c2,
|
|
85713
|
-
tableName: `${client}.${c2.tableName.split(".").slice(1).join(".")}
|
|
85714
|
-
|
|
85753
|
+
tableName: `${client}.${c2.tableName.split(".").slice(1).join(".")}`,
|
|
85754
|
+
dimensionColumn: xAxis || "",
|
|
85755
|
+
measureColumn: yAxisList[0] || ""
|
|
85756
|
+
})) : rlsConditions.map((r2) => ({
|
|
85757
|
+
...r2,
|
|
85758
|
+
dimensionColumn: xAxis || "",
|
|
85759
|
+
measureColumn: yAxisList[0] || ""
|
|
85760
|
+
})),
|
|
85715
85761
|
globalFilters: companyTenancyType === "DATABASE" ? {
|
|
85716
85762
|
...globalFilters,
|
|
85717
85763
|
tableName: `${client}.${globalFilters.tableName.split(".").slice(1).join(".")}`
|
|
@@ -85901,17 +85947,20 @@ const MetricCard = ({
|
|
|
85901
85947
|
})]
|
|
85902
85948
|
}), /* @__PURE__ */ jsxs("div", {
|
|
85903
85949
|
className: styles$y.features,
|
|
85904
|
-
children: [!!rlsConditions.length && /* @__PURE__ */ jsx(
|
|
85905
|
-
|
|
85906
|
-
|
|
85907
|
-
|
|
85908
|
-
|
|
85909
|
-
|
|
85910
|
-
|
|
85911
|
-
|
|
85912
|
-
|
|
85913
|
-
|
|
85914
|
-
|
|
85950
|
+
children: [!!rlsConditions.length && /* @__PURE__ */ jsx("div", {
|
|
85951
|
+
className: styles$y.metricFilter,
|
|
85952
|
+
children: /* @__PURE__ */ jsx(FloatingDropDown, {
|
|
85953
|
+
label: rlsConditions[0].name,
|
|
85954
|
+
selectedOption: {
|
|
85955
|
+
value: rlsConditions[0].value || rlsConditions[0].options[0],
|
|
85956
|
+
label: rlsConditions[0].value || rlsConditions[0].options[0]
|
|
85957
|
+
},
|
|
85958
|
+
options: rlsConditions[0].options.map((o2) => ({
|
|
85959
|
+
value: o2,
|
|
85960
|
+
label: o2
|
|
85961
|
+
})),
|
|
85962
|
+
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value)
|
|
85963
|
+
})
|
|
85915
85964
|
}), /* @__PURE__ */ jsxs(PopoverMenu, {
|
|
85916
85965
|
buttonClass: styles$y.popup,
|
|
85917
85966
|
button: /* @__PURE__ */ jsx(mdiDotsVertical, {
|
|
@@ -86140,17 +86189,20 @@ const SingleValueCard = ({
|
|
|
86140
86189
|
})]
|
|
86141
86190
|
}), /* @__PURE__ */ jsx("div", {
|
|
86142
86191
|
className: styles$y.features,
|
|
86143
|
-
children: !!(rlsConditions == null ? void 0 : rlsConditions.length) && /* @__PURE__ */ jsx(
|
|
86144
|
-
|
|
86145
|
-
|
|
86146
|
-
|
|
86147
|
-
|
|
86148
|
-
|
|
86149
|
-
|
|
86150
|
-
|
|
86151
|
-
|
|
86152
|
-
|
|
86153
|
-
|
|
86192
|
+
children: !!(rlsConditions == null ? void 0 : rlsConditions.length) && /* @__PURE__ */ jsx("div", {
|
|
86193
|
+
className: styles$y.metricFilter,
|
|
86194
|
+
children: /* @__PURE__ */ jsx(FloatingDropDown, {
|
|
86195
|
+
label: rlsConditions[0].name,
|
|
86196
|
+
selectedOption: {
|
|
86197
|
+
value: rlsConditions[0].value || rlsConditions[0].options[0],
|
|
86198
|
+
label: rlsConditions[0].value || rlsConditions[0].options[0]
|
|
86199
|
+
},
|
|
86200
|
+
options: rlsConditions[0].options.map((o2) => ({
|
|
86201
|
+
value: o2,
|
|
86202
|
+
label: o2
|
|
86203
|
+
})),
|
|
86204
|
+
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value)
|
|
86205
|
+
})
|
|
86154
86206
|
})
|
|
86155
86207
|
})]
|
|
86156
86208
|
}), chartType2 && /* @__PURE__ */ jsx("div", {
|
|
@@ -86710,9 +86762,9 @@ var styles$l = {
|
|
|
86710
86762
|
valueLabelWrapper,
|
|
86711
86763
|
singleCheckBox
|
|
86712
86764
|
};
|
|
86713
|
-
const tab$1 = "
|
|
86714
|
-
const button$4 = "
|
|
86715
|
-
const activeTab = "
|
|
86765
|
+
const tab$1 = "_tab_1imil_1";
|
|
86766
|
+
const button$4 = "_button_1imil_7";
|
|
86767
|
+
const activeTab = "_activeTab_1imil_15";
|
|
86716
86768
|
var styles$k = {
|
|
86717
86769
|
tab: tab$1,
|
|
86718
86770
|
button: button$4,
|
|
@@ -86813,37 +86865,37 @@ const InputField = ({
|
|
|
86813
86865
|
})]
|
|
86814
86866
|
});
|
|
86815
86867
|
};
|
|
86816
|
-
const listBoxButton = "
|
|
86817
|
-
const selectedOptionText = "
|
|
86818
|
-
const transitionDiv = "
|
|
86819
|
-
const listboxButtonWrapper = "
|
|
86820
|
-
const arrowicon = "
|
|
86821
|
-
const leave = "
|
|
86822
|
-
const leaveFrom = "
|
|
86823
|
-
const leaveTo = "
|
|
86824
|
-
const notAvailable = "
|
|
86825
|
-
const option = "
|
|
86826
|
-
const activeOption = "
|
|
86827
|
-
const optionSelected = "
|
|
86828
|
-
const inactiveOption = "
|
|
86829
|
-
const optionLabel = "
|
|
86830
|
-
const optionSubLabel = "
|
|
86831
|
-
const selectedLabel = "
|
|
86832
|
-
const nonselectedLabel = "
|
|
86833
|
-
const check = "
|
|
86834
|
-
const checkActive = "
|
|
86835
|
-
const checkInactive = "
|
|
86836
|
-
const checkIcon$1 = "
|
|
86837
|
-
const checkIconSelected = "
|
|
86838
|
-
const checkIconUnselected = "
|
|
86839
|
-
const loadMore = "
|
|
86840
|
-
const selectedList = "
|
|
86841
|
-
const selectedListItem = "
|
|
86868
|
+
const listBoxButton = "_listBoxButton_1mdwz_5";
|
|
86869
|
+
const selectedOptionText = "_selectedOptionText_1mdwz_17";
|
|
86870
|
+
const transitionDiv = "_transitionDiv_1mdwz_21";
|
|
86871
|
+
const listboxButtonWrapper = "_listboxButtonWrapper_1mdwz_25";
|
|
86872
|
+
const arrowicon = "_arrowicon_1mdwz_28";
|
|
86873
|
+
const leave = "_leave_1mdwz_31";
|
|
86874
|
+
const leaveFrom = "_leaveFrom_1mdwz_34";
|
|
86875
|
+
const leaveTo = "_leaveTo_1mdwz_37";
|
|
86876
|
+
const notAvailable = "_notAvailable_1mdwz_40";
|
|
86877
|
+
const option = "_option_1mdwz_43";
|
|
86878
|
+
const activeOption = "_activeOption_1mdwz_46";
|
|
86879
|
+
const optionSelected = "_optionSelected_1mdwz_49";
|
|
86880
|
+
const inactiveOption = "_inactiveOption_1mdwz_52";
|
|
86881
|
+
const optionLabel = "_optionLabel_1mdwz_55";
|
|
86882
|
+
const optionSubLabel = "_optionSubLabel_1mdwz_58";
|
|
86883
|
+
const selectedLabel = "_selectedLabel_1mdwz_61";
|
|
86884
|
+
const nonselectedLabel = "_nonselectedLabel_1mdwz_64";
|
|
86885
|
+
const check = "_check_1mdwz_67";
|
|
86886
|
+
const checkActive = "_checkActive_1mdwz_70";
|
|
86887
|
+
const checkInactive = "_checkInactive_1mdwz_73";
|
|
86888
|
+
const checkIcon$1 = "_checkIcon_1mdwz_76";
|
|
86889
|
+
const checkIconSelected = "_checkIconSelected_1mdwz_79";
|
|
86890
|
+
const checkIconUnselected = "_checkIconUnselected_1mdwz_82";
|
|
86891
|
+
const loadMore = "_loadMore_1mdwz_85";
|
|
86892
|
+
const selectedList = "_selectedList_1mdwz_88";
|
|
86893
|
+
const selectedListItem = "_selectedListItem_1mdwz_91";
|
|
86842
86894
|
var style = {
|
|
86843
|
-
"listBox-label": "_listBox-
|
|
86844
|
-
"listBoxButton-container": "_listBoxButton-
|
|
86895
|
+
"listBox-label": "_listBox-label_1mdwz_1",
|
|
86896
|
+
"listBoxButton-container": "_listBoxButton-container_1mdwz_5",
|
|
86845
86897
|
listBoxButton,
|
|
86846
|
-
"listBox-option": "_listBox-
|
|
86898
|
+
"listBox-option": "_listBox-option_1mdwz_13",
|
|
86847
86899
|
selectedOptionText,
|
|
86848
86900
|
transitionDiv,
|
|
86849
86901
|
listboxButtonWrapper,
|
|
@@ -86910,13 +86962,17 @@ const Select = ({
|
|
|
86910
86962
|
placeHolder,
|
|
86911
86963
|
className = "",
|
|
86912
86964
|
containerClass = "",
|
|
86913
|
-
isSearchEnabled
|
|
86965
|
+
isSearchEnabled,
|
|
86966
|
+
textSize
|
|
86914
86967
|
}) => {
|
|
86915
86968
|
const [searchKeyword, setSearchKeyword] = useState("");
|
|
86916
86969
|
const [limit, setLimit] = useState(20);
|
|
86917
86970
|
const selectedOption = value || defaultValue2 ? options2 == null ? void 0 : options2.find((i2) => i2.value === value || i2.value === defaultValue2) : {
|
|
86918
86971
|
label: placeHolder || "Select an option"
|
|
86919
86972
|
};
|
|
86973
|
+
const fontStyle = {
|
|
86974
|
+
fontSize: textSize
|
|
86975
|
+
};
|
|
86920
86976
|
return /* @__PURE__ */ jsx(pt, {
|
|
86921
86977
|
value,
|
|
86922
86978
|
onChange,
|
|
@@ -86969,6 +87025,7 @@ const Select = ({
|
|
|
86969
87025
|
}) => /* @__PURE__ */ jsxs(Fragment, {
|
|
86970
87026
|
children: [/* @__PURE__ */ jsx("span", {
|
|
86971
87027
|
className: style.optionLabel,
|
|
87028
|
+
style: fontStyle,
|
|
86972
87029
|
children: item.label
|
|
86973
87030
|
}), selected ? /* @__PURE__ */ jsx("span", {
|
|
86974
87031
|
className: style.check,
|
|
@@ -86996,21 +87053,27 @@ const Select = ({
|
|
|
86996
87053
|
const HookSelect = ({
|
|
86997
87054
|
control,
|
|
86998
87055
|
name,
|
|
86999
|
-
|
|
87000
|
-
|
|
87001
|
-
|
|
87002
|
-
|
|
87003
|
-
|
|
87004
|
-
|
|
87056
|
+
options: options2,
|
|
87057
|
+
label: label2,
|
|
87058
|
+
defaultValue: defaultValue2
|
|
87059
|
+
}) => {
|
|
87060
|
+
return /* @__PURE__ */ jsx(Controller, {
|
|
87061
|
+
control,
|
|
87062
|
+
name,
|
|
87063
|
+
render: ({
|
|
87064
|
+
field: {
|
|
87065
|
+
onChange,
|
|
87066
|
+
value
|
|
87067
|
+
}
|
|
87068
|
+
}) => /* @__PURE__ */ jsx(Select, {
|
|
87005
87069
|
onChange,
|
|
87006
|
-
value
|
|
87007
|
-
|
|
87008
|
-
|
|
87009
|
-
|
|
87010
|
-
|
|
87011
|
-
|
|
87012
|
-
|
|
87013
|
-
});
|
|
87070
|
+
value,
|
|
87071
|
+
label: label2,
|
|
87072
|
+
options: options2,
|
|
87073
|
+
defaultValue: defaultValue2
|
|
87074
|
+
})
|
|
87075
|
+
});
|
|
87076
|
+
};
|
|
87014
87077
|
const SelectWithSubValue = ({
|
|
87015
87078
|
label: label2,
|
|
87016
87079
|
options: options2,
|
|
@@ -87237,8 +87300,8 @@ const HookMultiSelect = ({
|
|
|
87237
87300
|
})
|
|
87238
87301
|
});
|
|
87239
87302
|
};
|
|
87240
|
-
const container$a = "
|
|
87241
|
-
const tooltip$1 = "
|
|
87303
|
+
const container$a = "_container_1m5jj_1";
|
|
87304
|
+
const tooltip$1 = "_tooltip_1m5jj_7";
|
|
87242
87305
|
var styles$h = {
|
|
87243
87306
|
container: container$a,
|
|
87244
87307
|
tooltip: tooltip$1
|
|
@@ -87308,8 +87371,8 @@ const ChartConfigure = ({
|
|
|
87308
87371
|
setBackGroundColor
|
|
87309
87372
|
}) => {
|
|
87310
87373
|
const TabList = ["Margins", "Legend", "Custom"];
|
|
87311
|
-
const singleValueTabs = ["
|
|
87312
|
-
const [activeTab2, setActiveTab] = useState("
|
|
87374
|
+
const singleValueTabs = ["Custom"];
|
|
87375
|
+
const [activeTab2, setActiveTab] = useState("Custom");
|
|
87313
87376
|
return /* @__PURE__ */ jsxs("div", {
|
|
87314
87377
|
className: styles$l.container,
|
|
87315
87378
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -87469,7 +87532,7 @@ const ChartConfigure = ({
|
|
|
87469
87532
|
className: styles$l.seriesWrapper,
|
|
87470
87533
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
87471
87534
|
variant: "h1",
|
|
87472
|
-
styleClass: "
|
|
87535
|
+
styleClass: "font-14",
|
|
87473
87536
|
children: "Value labels"
|
|
87474
87537
|
}), /* @__PURE__ */ jsx("div", {
|
|
87475
87538
|
className: styles$l.valueLabelWrapper,
|
|
@@ -87795,6 +87858,7 @@ const ChartConfigure = ({
|
|
|
87795
87858
|
className: styles$l.valueLabelWrapper,
|
|
87796
87859
|
children: /* @__PURE__ */ jsx(Select, {
|
|
87797
87860
|
value: customSettings.numberFormatter,
|
|
87861
|
+
textSize: "12px",
|
|
87798
87862
|
options: [{
|
|
87799
87863
|
label: "Original value",
|
|
87800
87864
|
value: "original"
|
|
@@ -87856,22 +87920,22 @@ const ChartConfigure = ({
|
|
|
87856
87920
|
})]
|
|
87857
87921
|
});
|
|
87858
87922
|
};
|
|
87859
|
-
const chartButtonContainer$1 = "
|
|
87860
|
-
const tabContainer = "
|
|
87861
|
-
const tab = "
|
|
87862
|
-
const tabText = "
|
|
87863
|
-
const chartButtons$1 = "
|
|
87864
|
-
const chartButton$1 = "
|
|
87865
|
-
const chartButtonSelected = "
|
|
87866
|
-
const chartTypesButton = "
|
|
87867
|
-
const button$3 = "
|
|
87868
|
-
const propertyButton = "
|
|
87869
|
-
const settings = "
|
|
87870
|
-
const crossIcon = "
|
|
87923
|
+
const chartButtonContainer$1 = "_chartButtonContainer_1fmoa_1";
|
|
87924
|
+
const tabContainer = "_tabContainer_1fmoa_23";
|
|
87925
|
+
const tab = "_tab_1fmoa_23";
|
|
87926
|
+
const tabText = "_tabText_1fmoa_39";
|
|
87927
|
+
const chartButtons$1 = "_chartButtons_1fmoa_47";
|
|
87928
|
+
const chartButton$1 = "_chartButton_1fmoa_1";
|
|
87929
|
+
const chartButtonSelected = "_chartButtonSelected_1fmoa_63";
|
|
87930
|
+
const chartTypesButton = "_chartTypesButton_1fmoa_71";
|
|
87931
|
+
const button$3 = "_button_1fmoa_79";
|
|
87932
|
+
const propertyButton = "_propertyButton_1fmoa_87";
|
|
87933
|
+
const settings = "_settings_1fmoa_15";
|
|
87934
|
+
const crossIcon = "_crossIcon_1fmoa_103";
|
|
87871
87935
|
var styles$g = {
|
|
87872
87936
|
chartButtonContainer: chartButtonContainer$1,
|
|
87873
|
-
"chartButton-header": "_chartButton-
|
|
87874
|
-
"settingsTab-header-control": "_settingsTab-header-
|
|
87937
|
+
"chartButton-header": "_chartButton-header_1fmoa_7",
|
|
87938
|
+
"settingsTab-header-control": "_settingsTab-header-control_1fmoa_15",
|
|
87875
87939
|
tabContainer,
|
|
87876
87940
|
tab,
|
|
87877
87941
|
tabText,
|
|
@@ -88580,6 +88644,16 @@ const ChartSettings = ({
|
|
|
88580
88644
|
const FIRST_TAB = "Chart types";
|
|
88581
88645
|
const SECOND_TAB = "Chart properties";
|
|
88582
88646
|
const [activeTab2, setActiveTab] = useState(FIRST_TAB);
|
|
88647
|
+
const buttonColor = {
|
|
88648
|
+
background: "#e5e7eb",
|
|
88649
|
+
width: "100%",
|
|
88650
|
+
height: "100%",
|
|
88651
|
+
paddingTop: "8px",
|
|
88652
|
+
paddingBottom: "8px",
|
|
88653
|
+
display: "flex",
|
|
88654
|
+
alignItems: "center",
|
|
88655
|
+
justifyContent: "center"
|
|
88656
|
+
};
|
|
88583
88657
|
return /* @__PURE__ */ jsxs("div", {
|
|
88584
88658
|
className: styles$g.chartButtonContainer,
|
|
88585
88659
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -88599,18 +88673,24 @@ const ChartSettings = ({
|
|
|
88599
88673
|
className: styles$g.chartButtons,
|
|
88600
88674
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
88601
88675
|
className: styles$g["settingsTab-header-control"],
|
|
88602
|
-
children: [/* @__PURE__ */
|
|
88676
|
+
children: [/* @__PURE__ */ jsxs(Button, {
|
|
88603
88677
|
type: "button",
|
|
88604
88678
|
variant: "custom",
|
|
88605
88679
|
className: `${styles$g.chartButton} ${selectedTab2 === GENERAL && styles$g.chartButtonSelected}`,
|
|
88606
88680
|
onClick: () => setSelectedTab(GENERAL),
|
|
88607
|
-
children: "
|
|
88608
|
-
|
|
88681
|
+
children: [selectedTab2 === GENERAL && /* @__PURE__ */ jsx("div", {
|
|
88682
|
+
style: buttonColor,
|
|
88683
|
+
children: "General"
|
|
88684
|
+
}), selectedTab2 !== GENERAL && "General"]
|
|
88685
|
+
}), /* @__PURE__ */ jsxs(Button, {
|
|
88609
88686
|
type: "button",
|
|
88610
88687
|
variant: "custom",
|
|
88611
88688
|
className: `${styles$g.chartButton} ${selectedTab2 === CONFIG && styles$g.chartButtonSelected}`,
|
|
88612
88689
|
onClick: () => setSelectedTab(CONFIG),
|
|
88613
|
-
children: "
|
|
88690
|
+
children: [selectedTab2 === CONFIG && /* @__PURE__ */ jsx("div", {
|
|
88691
|
+
style: buttonColor,
|
|
88692
|
+
children: "Configuration"
|
|
88693
|
+
}), selectedTab2 !== CONFIG && "Configuration"]
|
|
88614
88694
|
})]
|
|
88615
88695
|
}), selectedTab2 === GENERAL && /* @__PURE__ */ jsxs(Fragment, {
|
|
88616
88696
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -88769,7 +88849,15 @@ const ChartTab = ({
|
|
|
88769
88849
|
const [isShowFullScreen, setShowFullScreen] = useState(false);
|
|
88770
88850
|
return /* @__PURE__ */ jsxs("div", {
|
|
88771
88851
|
className: styles$e["chartTab-container"],
|
|
88772
|
-
children: [
|
|
88852
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
88853
|
+
className: styles$e.metricChartHeader,
|
|
88854
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
88855
|
+
styleClass: "primary",
|
|
88856
|
+
variant: "p",
|
|
88857
|
+
className: "",
|
|
88858
|
+
children: "Preview"
|
|
88859
|
+
}), headerChild]
|
|
88860
|
+
}), !(data2 == null ? void 0 : data2.length) && isLoading && /* @__PURE__ */ jsx("div", {
|
|
88773
88861
|
className: styles$e["loader-container"],
|
|
88774
88862
|
children: /* @__PURE__ */ jsx(eosIconsLoading, {
|
|
88775
88863
|
style: {
|
|
@@ -88800,17 +88888,9 @@ const ChartTab = ({
|
|
|
88800
88888
|
children: "No data found! Run a query to display charts"
|
|
88801
88889
|
})
|
|
88802
88890
|
})]
|
|
88803
|
-
}), !!(data2 == null ? void 0 : data2.length) && !isLoading && /* @__PURE__ */
|
|
88891
|
+
}), !!(data2 == null ? void 0 : data2.length) && !isLoading && /* @__PURE__ */ jsx("div", {
|
|
88804
88892
|
className: styles$e.metricChart,
|
|
88805
|
-
children:
|
|
88806
|
-
className: styles$e.metricChartHeader,
|
|
88807
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
88808
|
-
styleClass: "primary",
|
|
88809
|
-
variant: "p",
|
|
88810
|
-
className: "",
|
|
88811
|
-
children: "Preview"
|
|
88812
|
-
}), headerChild]
|
|
88813
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
88893
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
88814
88894
|
className: styles$e["chartTab-wrapper"],
|
|
88815
88895
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
88816
88896
|
className: styles$e["chartTab-wrapper-head"],
|
|
@@ -88919,7 +88999,7 @@ const ChartTab = ({
|
|
|
88919
88999
|
})
|
|
88920
89000
|
})]
|
|
88921
89001
|
})]
|
|
88922
|
-
})
|
|
89002
|
+
})
|
|
88923
89003
|
}), /* @__PURE__ */ jsx(FullScreenChart, {
|
|
88924
89004
|
isShow: isShowFullScreen,
|
|
88925
89005
|
onCancel: () => setShowFullScreen(false),
|
|
@@ -88951,31 +89031,35 @@ const ChartTab = ({
|
|
|
88951
89031
|
})]
|
|
88952
89032
|
});
|
|
88953
89033
|
};
|
|
88954
|
-
const container$8 = "
|
|
88955
|
-
const wrapper$1 = "
|
|
88956
|
-
const text = "
|
|
88957
|
-
const table$3 = "
|
|
89034
|
+
const container$8 = "_container_yjeiv_1";
|
|
89035
|
+
const wrapper$1 = "_wrapper_yjeiv_5";
|
|
89036
|
+
const text = "_text_yjeiv_9";
|
|
89037
|
+
const table$3 = "_table_yjeiv_12";
|
|
88958
89038
|
var styles$d = {
|
|
88959
89039
|
container: container$8,
|
|
88960
89040
|
wrapper: wrapper$1,
|
|
88961
89041
|
text,
|
|
88962
89042
|
table: table$3
|
|
88963
89043
|
};
|
|
88964
|
-
const container$7 = "
|
|
88965
|
-
const table$2 = "
|
|
88966
|
-
const tableHead = "
|
|
88967
|
-
const tableRow$1 = "
|
|
88968
|
-
const tableHeadCol$1 = "
|
|
88969
|
-
const
|
|
88970
|
-
const
|
|
88971
|
-
const
|
|
89044
|
+
const container$7 = "_container_1jkce_1";
|
|
89045
|
+
const table$2 = "_table_1jkce_9";
|
|
89046
|
+
const tableHead = "_tableHead_1jkce_17";
|
|
89047
|
+
const tableRow$1 = "_tableRow_1jkce_25";
|
|
89048
|
+
const tableHeadCol$1 = "_tableHeadCol_1jkce_33";
|
|
89049
|
+
const tableHeadColText = "_tableHeadColText_1jkce_41";
|
|
89050
|
+
const tableRowCol$1 = "_tableRowCol_1jkce_49";
|
|
89051
|
+
const tableColText = "_tableColText_1jkce_57";
|
|
89052
|
+
const empty = "_empty_1jkce_65";
|
|
89053
|
+
const error$2 = "_error_1jkce_73";
|
|
88972
89054
|
var styles$c = {
|
|
88973
89055
|
container: container$7,
|
|
88974
89056
|
table: table$2,
|
|
88975
89057
|
tableHead,
|
|
88976
89058
|
tableRow: tableRow$1,
|
|
88977
89059
|
tableHeadCol: tableHeadCol$1,
|
|
89060
|
+
tableHeadColText,
|
|
88978
89061
|
tableRowCol: tableRowCol$1,
|
|
89062
|
+
tableColText,
|
|
88979
89063
|
empty,
|
|
88980
89064
|
error: error$2
|
|
88981
89065
|
};
|
|
@@ -88998,6 +89082,7 @@ const MetricTable = ({
|
|
|
88998
89082
|
children: /* @__PURE__ */ jsx(Text, {
|
|
88999
89083
|
styleClass: "font-14c",
|
|
89000
89084
|
variant: "h1",
|
|
89085
|
+
className: styles$c.tableHeadColText,
|
|
89001
89086
|
children: item
|
|
89002
89087
|
})
|
|
89003
89088
|
}, item);
|
|
@@ -89010,6 +89095,7 @@ const MetricTable = ({
|
|
|
89010
89095
|
children: /* @__PURE__ */ jsx(Text, {
|
|
89011
89096
|
styleClass: "font-14",
|
|
89012
89097
|
variant: "p",
|
|
89098
|
+
className: styles$c.tableColText,
|
|
89013
89099
|
children: JSON.stringify(item[d2])
|
|
89014
89100
|
})
|
|
89015
89101
|
}, index2))
|
|
@@ -89049,36 +89135,36 @@ const InputTables = ({
|
|
|
89049
89135
|
})
|
|
89050
89136
|
});
|
|
89051
89137
|
};
|
|
89052
|
-
const container$6 = "
|
|
89053
|
-
const header$1 = "
|
|
89054
|
-
const tabButton$1 = "
|
|
89055
|
-
const selectedTab = "
|
|
89056
|
-
const table$1 = "
|
|
89138
|
+
const container$6 = "_container_38zl3_1";
|
|
89139
|
+
const header$1 = "_header_38zl3_5";
|
|
89140
|
+
const tabButton$1 = "_tabButton_38zl3_16";
|
|
89141
|
+
const selectedTab = "_selectedTab_38zl3_19";
|
|
89142
|
+
const table$1 = "_table_38zl3_22";
|
|
89057
89143
|
var styles$b = {
|
|
89058
89144
|
container: container$6,
|
|
89059
89145
|
header: header$1,
|
|
89060
|
-
"text-container": "_text-
|
|
89061
|
-
"btn-container": "_btn-
|
|
89146
|
+
"text-container": "_text-container_38zl3_9",
|
|
89147
|
+
"btn-container": "_btn-container_38zl3_13",
|
|
89062
89148
|
tabButton: tabButton$1,
|
|
89063
89149
|
selectedTab,
|
|
89064
89150
|
table: table$1
|
|
89065
89151
|
};
|
|
89066
|
-
const tableData = "
|
|
89067
|
-
const tableHeadCol = "
|
|
89068
|
-
const tableRow = "
|
|
89069
|
-
const tableRowCol = "
|
|
89070
|
-
const row = "
|
|
89071
|
-
const container$5 = "
|
|
89072
|
-
const table = "
|
|
89073
|
-
const previewTable = "
|
|
89074
|
-
const preview = "
|
|
89075
|
-
const previewText = "
|
|
89076
|
-
const noData = "
|
|
89077
|
-
const error$1 = "
|
|
89078
|
-
const errorMsg = "
|
|
89079
|
-
const tableIcon = "
|
|
89152
|
+
const tableData = "_tableData_o6rhd_7";
|
|
89153
|
+
const tableHeadCol = "_tableHeadCol_o6rhd_13";
|
|
89154
|
+
const tableRow = "_tableRow_o6rhd_19";
|
|
89155
|
+
const tableRowCol = "_tableRowCol_o6rhd_25";
|
|
89156
|
+
const row = "_row_o6rhd_31";
|
|
89157
|
+
const container$5 = "_container_o6rhd_37";
|
|
89158
|
+
const table = "_table_o6rhd_1";
|
|
89159
|
+
const previewTable = "_previewTable_o6rhd_49";
|
|
89160
|
+
const preview = "_preview_o6rhd_49";
|
|
89161
|
+
const previewText = "_previewText_o6rhd_61";
|
|
89162
|
+
const noData = "_noData_o6rhd_67";
|
|
89163
|
+
const error$1 = "_error_o6rhd_73";
|
|
89164
|
+
const errorMsg = "_errorMsg_o6rhd_79";
|
|
89165
|
+
const tableIcon = "_tableIcon_o6rhd_85";
|
|
89080
89166
|
var styles$a = {
|
|
89081
|
-
"table-loader-container": "_table-loader-
|
|
89167
|
+
"table-loader-container": "_table-loader-container_o6rhd_1",
|
|
89082
89168
|
tableData,
|
|
89083
89169
|
tableHeadCol,
|
|
89084
89170
|
tableRow,
|
|
@@ -89198,6 +89284,16 @@ const TableTab = ({
|
|
|
89198
89284
|
previewTableDataList
|
|
89199
89285
|
}) => {
|
|
89200
89286
|
const [selectedTab2, setSelectedTab] = useState(OUTPUT_TABLE);
|
|
89287
|
+
const buttonColor = {
|
|
89288
|
+
background: "#e5e7eb",
|
|
89289
|
+
width: "100%",
|
|
89290
|
+
height: "100%",
|
|
89291
|
+
paddingTop: "4px",
|
|
89292
|
+
paddingBottom: "4px",
|
|
89293
|
+
display: "flex",
|
|
89294
|
+
alignItems: "center",
|
|
89295
|
+
justifyContent: "center"
|
|
89296
|
+
};
|
|
89201
89297
|
return /* @__PURE__ */ jsxs("div", {
|
|
89202
89298
|
className: styles$b.container,
|
|
89203
89299
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -89215,18 +89311,24 @@ const TableTab = ({
|
|
|
89215
89311
|
})]
|
|
89216
89312
|
}), /* @__PURE__ */ jsxs("div", {
|
|
89217
89313
|
className: styles$b["btn-container"],
|
|
89218
|
-
children: [/* @__PURE__ */
|
|
89314
|
+
children: [/* @__PURE__ */ jsxs(Button, {
|
|
89219
89315
|
type: "button",
|
|
89220
89316
|
variant: "custom",
|
|
89221
|
-
className:
|
|
89317
|
+
className: styles$b.tabButton,
|
|
89222
89318
|
onClick: () => setSelectedTab(INPUT_TABLE),
|
|
89223
|
-
children: "
|
|
89224
|
-
|
|
89319
|
+
children: [selectedTab2 === INPUT_TABLE && /* @__PURE__ */ jsx("div", {
|
|
89320
|
+
style: buttonColor,
|
|
89321
|
+
children: "Input Table"
|
|
89322
|
+
}), selectedTab2 !== INPUT_TABLE && "Input Table"]
|
|
89323
|
+
}), /* @__PURE__ */ jsxs(Button, {
|
|
89225
89324
|
type: "button",
|
|
89226
89325
|
variant: "custom",
|
|
89227
|
-
className:
|
|
89326
|
+
className: styles$b.tabButton,
|
|
89228
89327
|
onClick: () => setSelectedTab(OUTPUT_TABLE),
|
|
89229
|
-
children: "
|
|
89328
|
+
children: [selectedTab2 === OUTPUT_TABLE && /* @__PURE__ */ jsx("div", {
|
|
89329
|
+
style: buttonColor,
|
|
89330
|
+
children: "Output Table"
|
|
89331
|
+
}), selectedTab2 !== OUTPUT_TABLE && "Output Table"]
|
|
89230
89332
|
})]
|
|
89231
89333
|
})]
|
|
89232
89334
|
}), selectedTab2 === INPUT_TABLE && /* @__PURE__ */ jsx(InputTables, {
|
|
@@ -89888,7 +89990,9 @@ const MetricForm = ({
|
|
|
89888
89990
|
setLoading,
|
|
89889
89991
|
setQuery,
|
|
89890
89992
|
isEnableGroupBy,
|
|
89891
|
-
setSelectedGroupBy
|
|
89993
|
+
setSelectedGroupBy,
|
|
89994
|
+
clientId,
|
|
89995
|
+
clientColumn
|
|
89892
89996
|
}) => {
|
|
89893
89997
|
const [metrics, setMetrics] = useState([]);
|
|
89894
89998
|
const [timeGrainValue, setTimeGrainValue] = useState("");
|
|
@@ -90484,7 +90588,11 @@ const MetricForm = ({
|
|
|
90484
90588
|
as: (_c2 = columnList.find((c2) => c2.value === timeColumn.value)) == null ? void 0 : _c2.label
|
|
90485
90589
|
},
|
|
90486
90590
|
isInclude: isIncludeTime
|
|
90487
|
-
}
|
|
90591
|
+
},
|
|
90592
|
+
clientColumnFilter: clientColumn ? {
|
|
90593
|
+
value: Number(clientId) || clientId,
|
|
90594
|
+
column: isBigQuery || isMySql ? `${clientColumn}` : isMongoDb ? `\`${clientColumn}\`` : `"${clientColumn}"`
|
|
90595
|
+
} : void 0
|
|
90488
90596
|
}
|
|
90489
90597
|
}, {
|
|
90490
90598
|
onSuccess(data2) {
|
|
@@ -90591,7 +90699,9 @@ const ConstructMetric = ({
|
|
|
90591
90699
|
setQuery,
|
|
90592
90700
|
isEnableGroupBy,
|
|
90593
90701
|
setEnableGroupBy,
|
|
90594
|
-
setSelectedGroupBy
|
|
90702
|
+
setSelectedGroupBy,
|
|
90703
|
+
clientId,
|
|
90704
|
+
clientColumn
|
|
90595
90705
|
}) => {
|
|
90596
90706
|
return /* @__PURE__ */ jsxs("div", {
|
|
90597
90707
|
className: styles$6.container,
|
|
@@ -90613,7 +90723,9 @@ const ConstructMetric = ({
|
|
|
90613
90723
|
setQuery,
|
|
90614
90724
|
setLoading,
|
|
90615
90725
|
isEnableGroupBy,
|
|
90616
|
-
setSelectedGroupBy
|
|
90726
|
+
setSelectedGroupBy,
|
|
90727
|
+
clientId,
|
|
90728
|
+
clientColumn
|
|
90617
90729
|
})]
|
|
90618
90730
|
});
|
|
90619
90731
|
};
|
|
@@ -90836,6 +90948,7 @@ const EmbeddedMetricCreation = ({
|
|
|
90836
90948
|
label: table2.tableName
|
|
90837
90949
|
})), [companySubsetTableList]);
|
|
90838
90950
|
const selectedTableData = useMemo(() => companySubsetTableList.find((table2) => table2.tableName === selectTable.value), [selectTable.value, companySubsetTableList]);
|
|
90951
|
+
const clientColumn = useMemo(() => selectedTableData == null ? void 0 : selectedTableData.clientColumn, [selectedTableData]);
|
|
90839
90952
|
const columnList = useMemo(() => (selectedTableData == null ? void 0 : selectedTableData.columns.map(({
|
|
90840
90953
|
name,
|
|
90841
90954
|
as
|
|
@@ -91090,7 +91203,9 @@ const EmbeddedMetricCreation = ({
|
|
|
91090
91203
|
setLoading,
|
|
91091
91204
|
isEnableGroupBy,
|
|
91092
91205
|
setEnableGroupBy,
|
|
91093
|
-
setSelectedGroupBy
|
|
91206
|
+
setSelectedGroupBy,
|
|
91207
|
+
clientId,
|
|
91208
|
+
clientColumn
|
|
91094
91209
|
}), /* @__PURE__ */ jsx(MetricOutput, {
|
|
91095
91210
|
data: isEnableGroupBy ? groupedData : data2,
|
|
91096
91211
|
error: error2,
|