@databrainhq/plugin 0.7.8 → 0.7.9
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/Select/index.d.ts +3 -2
- package/dist/index.es.js +187 -135
- package/dist/index.umd.js +40 -40
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +2 -0
- package/package.json +1 -1
|
@@ -16,13 +16,14 @@ declare type SelectInput = {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
containerClass?: string;
|
|
18
18
|
isSearchEnabled?: boolean;
|
|
19
|
+
textSize?: string;
|
|
19
20
|
};
|
|
20
21
|
declare type HookSelectInput = Omit<SelectInput, 'value'> & {
|
|
21
22
|
control: Control;
|
|
22
23
|
name: string;
|
|
23
24
|
};
|
|
24
|
-
export declare const Select: ({ label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, }: SelectInput) => JSX.Element;
|
|
25
|
-
export declare const HookSelect: ({ control, name,
|
|
25
|
+
export declare const Select: ({ label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize, }: SelectInput) => JSX.Element;
|
|
26
|
+
export declare const HookSelect: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
|
|
26
27
|
export declare const SelectWithSubValue: ({ label, options, onChange, value, defaultValue, }: any) => JSX.Element;
|
|
27
28
|
export declare const DropDown: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
|
|
28
29
|
declare type MultiSelectProps = {
|
package/dist/index.es.js
CHANGED
|
@@ -2515,6 +2515,7 @@ function useQuery(arg1, arg2, arg3) {
|
|
|
2515
2515
|
const container$g = "_container_1hfou_1";
|
|
2516
2516
|
const fixed = "_fixed_1hfou_1";
|
|
2517
2517
|
const absolute = "_absolute_1hfou_1";
|
|
2518
|
+
const flex = "_flex_1hfou_1";
|
|
2518
2519
|
const table$5 = "_table_1hfou_1";
|
|
2519
2520
|
const grid = "_grid_1hfou_1";
|
|
2520
2521
|
const hidden = "_hidden_1hfou_1";
|
|
@@ -2540,6 +2541,7 @@ var styles$B = {
|
|
|
2540
2541
|
"mt-2.5": "_mt-2.5_1hfou_1",
|
|
2541
2542
|
"mt-2": "_mt-2_1hfou_1",
|
|
2542
2543
|
"mb-3": "_mb-3_1hfou_1",
|
|
2544
|
+
flex,
|
|
2543
2545
|
table: table$5,
|
|
2544
2546
|
grid,
|
|
2545
2547
|
hidden,
|
|
@@ -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,
|
|
@@ -81900,14 +81904,15 @@ const SingleValueChart = ({
|
|
|
81900
81904
|
}
|
|
81901
81905
|
case "1s": {
|
|
81902
81906
|
let num = val.toString().slice(0, 1);
|
|
81903
|
-
|
|
81907
|
+
const num2 = Math.floor(parseFloat(val));
|
|
81908
|
+
for (let i2 = 1; i2 < num2.toString().length; i2 += 1) {
|
|
81904
81909
|
num += 0;
|
|
81905
81910
|
}
|
|
81906
81911
|
const value2 = adaptiveFormatter(num, false);
|
|
81907
81912
|
return value2;
|
|
81908
81913
|
}
|
|
81909
81914
|
case "1f": {
|
|
81910
|
-
const num = parseFloat(val.toFixed(1)
|
|
81915
|
+
const num = parseFloat(val).toFixed(1);
|
|
81911
81916
|
const value2 = comaFormatter.format(num);
|
|
81912
81917
|
if (val.toString().includes(".")) {
|
|
81913
81918
|
return value2;
|
|
@@ -81915,26 +81920,29 @@ const SingleValueChart = ({
|
|
|
81915
81920
|
return `${value2}.${Array(2).join("0")}`;
|
|
81916
81921
|
}
|
|
81917
81922
|
case "2f": {
|
|
81918
|
-
const num = parseFloat(val.toFixed(2)
|
|
81923
|
+
const num = parseFloat(val).toFixed(2);
|
|
81919
81924
|
const value2 = comaFormatter.format(num);
|
|
81920
81925
|
if (val.toString().includes(".")) {
|
|
81921
81926
|
const arr = val.toString().split(".");
|
|
81922
81927
|
if (arr[1].length > 1) {
|
|
81923
81928
|
return value2;
|
|
81924
81929
|
}
|
|
81925
|
-
return `${value2}
|
|
81930
|
+
return `${value2}${Array(2).join("0")}`;
|
|
81926
81931
|
}
|
|
81927
81932
|
return `${value2}.${Array(3).join("0")}`;
|
|
81928
81933
|
}
|
|
81929
81934
|
case "3f": {
|
|
81930
|
-
const num = parseFloat(val.toFixed(3)
|
|
81935
|
+
const num = parseFloat(val).toFixed(3);
|
|
81931
81936
|
const value2 = comaFormatter.format(num);
|
|
81932
81937
|
if (val.toString().includes(".")) {
|
|
81933
81938
|
const arr = val.toString().split(".");
|
|
81934
|
-
if (arr[1].length >
|
|
81939
|
+
if (arr[1].length > 2) {
|
|
81935
81940
|
return value2;
|
|
81936
81941
|
}
|
|
81937
|
-
|
|
81942
|
+
if (arr[1].length === 2) {
|
|
81943
|
+
return `${value2}${Array(2).join("0")}`;
|
|
81944
|
+
}
|
|
81945
|
+
return `${value2}${Array(3).join("0")}`;
|
|
81938
81946
|
}
|
|
81939
81947
|
return `${value2}.${Array(4).join("0")}`;
|
|
81940
81948
|
}
|
|
@@ -81942,28 +81950,29 @@ const SingleValueChart = ({
|
|
|
81942
81950
|
return `+${comaFormatter.format(val)}`;
|
|
81943
81951
|
}
|
|
81944
81952
|
case "$": {
|
|
81945
|
-
const num = parseFloat(val.toFixed(2)
|
|
81953
|
+
const num = parseFloat(val).toFixed(2);
|
|
81946
81954
|
const value2 = comaFormatter.format(num);
|
|
81947
81955
|
if (val.toString().includes(".")) {
|
|
81948
81956
|
const arr = val.toString().split(".");
|
|
81949
81957
|
if (arr[1].length > 1) {
|
|
81950
81958
|
return `$${value2}`;
|
|
81951
81959
|
}
|
|
81952
|
-
return `$${value2}
|
|
81960
|
+
return `$${value2}${Array(2).join("0")}`;
|
|
81953
81961
|
}
|
|
81954
81962
|
return `$${value2}.${Array(3).join("0")}`;
|
|
81955
81963
|
}
|
|
81956
81964
|
case "1%": {
|
|
81957
|
-
const num = val * 100;
|
|
81958
|
-
const
|
|
81959
|
-
|
|
81965
|
+
const num = parseFloat(val) * 100;
|
|
81966
|
+
const num2 = parseFloat(num).toFixed(1);
|
|
81967
|
+
const value2 = comaFormatter.format(num2);
|
|
81968
|
+
if (num.toString().includes(".")) {
|
|
81960
81969
|
return `${value2}%`;
|
|
81961
81970
|
}
|
|
81962
81971
|
return `${value2}.${Array(2).join("0")}%`;
|
|
81963
81972
|
}
|
|
81964
81973
|
case "2%": {
|
|
81965
|
-
const num = val * 100;
|
|
81966
|
-
const num2 = parseFloat(
|
|
81974
|
+
const num = parseFloat(val) * 100;
|
|
81975
|
+
const num2 = parseFloat(num).toFixed(2);
|
|
81967
81976
|
const value2 = comaFormatter.format(num2);
|
|
81968
81977
|
if (num.toString().includes(".")) {
|
|
81969
81978
|
const arr = val.toString().split(".");
|
|
@@ -81976,7 +81985,7 @@ const SingleValueChart = ({
|
|
|
81976
81985
|
}
|
|
81977
81986
|
case "3%": {
|
|
81978
81987
|
const num = val * 100;
|
|
81979
|
-
const num2 = parseFloat(
|
|
81988
|
+
const num2 = parseFloat(num).toFixed(3);
|
|
81980
81989
|
const value2 = comaFormatter.format(num2);
|
|
81981
81990
|
if (num.toString().includes(".")) {
|
|
81982
81991
|
const arr = val.toString().split(".");
|
|
@@ -81988,14 +81997,14 @@ const SingleValueChart = ({
|
|
|
81988
81997
|
return `${value2}.${Array(4).join("0")}%`;
|
|
81989
81998
|
}
|
|
81990
81999
|
case "ms1": {
|
|
81991
|
-
const seconds = Math.floor(val / 1e3);
|
|
81992
|
-
const remainingMilliseconds = val % 1e3;
|
|
82000
|
+
const seconds = Math.floor(parseFloat(val) / 1e3);
|
|
82001
|
+
const remainingMilliseconds = parseFloat(val) % 1e3;
|
|
81993
82002
|
return `${seconds}.${remainingMilliseconds.toString().slice(0, 1)}s`;
|
|
81994
82003
|
}
|
|
81995
82004
|
case "ms2": {
|
|
81996
|
-
const seconds = Math.floor(val / 1e3);
|
|
81997
|
-
const remainingMilliseconds = val % 1e3;
|
|
81998
|
-
const deciMiliSec = val - Math.floor(val);
|
|
82005
|
+
const seconds = Math.floor(parseFloat(val) / 1e3);
|
|
82006
|
+
const remainingMilliseconds = Math.floor(parseFloat(val) % 1e3);
|
|
82007
|
+
const deciMiliSec = parseFloat(val) - Math.floor(parseFloat(val));
|
|
81999
82008
|
const microSeconds = Math.floor(deciMiliSec * 1e3);
|
|
82000
82009
|
const deciMicro = deciMiliSec * 1e3 - microSeconds;
|
|
82001
82010
|
const nanoSeconds = Math.floor(deciMicro * 1e3);
|
|
@@ -82010,6 +82019,9 @@ const SingleValueChart = ({
|
|
|
82010
82019
|
finalResult += `${nanoSeconds}ns`;
|
|
82011
82020
|
return finalResult;
|
|
82012
82021
|
}
|
|
82022
|
+
case "4r": {
|
|
82023
|
+
return Math.floor(Math.round(parseFloat(val)));
|
|
82024
|
+
}
|
|
82013
82025
|
default:
|
|
82014
82026
|
return val;
|
|
82015
82027
|
}
|
|
@@ -85710,8 +85722,14 @@ const MetricCard = ({
|
|
|
85710
85722
|
tenancyLevel: companyTenancyType,
|
|
85711
85723
|
rlsConditions: companyTenancyType === "DATABASE" ? rlsConditions.map((c2) => ({
|
|
85712
85724
|
...c2,
|
|
85713
|
-
tableName: `${client}.${c2.tableName.split(".").slice(1).join(".")}
|
|
85714
|
-
|
|
85725
|
+
tableName: `${client}.${c2.tableName.split(".").slice(1).join(".")}`,
|
|
85726
|
+
dimensionColumn: xAxis || "",
|
|
85727
|
+
measureColumn: yAxisList[0] || ""
|
|
85728
|
+
})) : rlsConditions.map((r2) => ({
|
|
85729
|
+
...r2,
|
|
85730
|
+
dimensionColumn: xAxis || "",
|
|
85731
|
+
measureColumn: yAxisList[0] || ""
|
|
85732
|
+
})),
|
|
85715
85733
|
globalFilters: companyTenancyType === "DATABASE" ? {
|
|
85716
85734
|
...globalFilters,
|
|
85717
85735
|
tableName: `${client}.${globalFilters.tableName.split(".").slice(1).join(".")}`
|
|
@@ -85901,17 +85919,20 @@ const MetricCard = ({
|
|
|
85901
85919
|
})]
|
|
85902
85920
|
}), /* @__PURE__ */ jsxs("div", {
|
|
85903
85921
|
className: styles$y.features,
|
|
85904
|
-
children: [!!rlsConditions.length && /* @__PURE__ */ jsx(
|
|
85905
|
-
|
|
85906
|
-
|
|
85907
|
-
|
|
85908
|
-
|
|
85909
|
-
|
|
85910
|
-
|
|
85911
|
-
|
|
85912
|
-
|
|
85913
|
-
|
|
85914
|
-
|
|
85922
|
+
children: [!!rlsConditions.length && /* @__PURE__ */ jsx("div", {
|
|
85923
|
+
className: styles$y.metricFilter,
|
|
85924
|
+
children: /* @__PURE__ */ jsx(FloatingDropDown, {
|
|
85925
|
+
label: rlsConditions[0].name,
|
|
85926
|
+
selectedOption: {
|
|
85927
|
+
value: rlsConditions[0].value || rlsConditions[0].options[0],
|
|
85928
|
+
label: rlsConditions[0].value || rlsConditions[0].options[0]
|
|
85929
|
+
},
|
|
85930
|
+
options: rlsConditions[0].options.map((o2) => ({
|
|
85931
|
+
value: o2,
|
|
85932
|
+
label: o2
|
|
85933
|
+
})),
|
|
85934
|
+
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value)
|
|
85935
|
+
})
|
|
85915
85936
|
}), /* @__PURE__ */ jsxs(PopoverMenu, {
|
|
85916
85937
|
buttonClass: styles$y.popup,
|
|
85917
85938
|
button: /* @__PURE__ */ jsx(mdiDotsVertical, {
|
|
@@ -86140,17 +86161,20 @@ const SingleValueCard = ({
|
|
|
86140
86161
|
})]
|
|
86141
86162
|
}), /* @__PURE__ */ jsx("div", {
|
|
86142
86163
|
className: styles$y.features,
|
|
86143
|
-
children: !!(rlsConditions == null ? void 0 : rlsConditions.length) && /* @__PURE__ */ jsx(
|
|
86144
|
-
|
|
86145
|
-
|
|
86146
|
-
|
|
86147
|
-
|
|
86148
|
-
|
|
86149
|
-
|
|
86150
|
-
|
|
86151
|
-
|
|
86152
|
-
|
|
86153
|
-
|
|
86164
|
+
children: !!(rlsConditions == null ? void 0 : rlsConditions.length) && /* @__PURE__ */ jsx("div", {
|
|
86165
|
+
className: styles$y.metricFilter,
|
|
86166
|
+
children: /* @__PURE__ */ jsx(FloatingDropDown, {
|
|
86167
|
+
label: rlsConditions[0].name,
|
|
86168
|
+
selectedOption: {
|
|
86169
|
+
value: rlsConditions[0].value || rlsConditions[0].options[0],
|
|
86170
|
+
label: rlsConditions[0].value || rlsConditions[0].options[0]
|
|
86171
|
+
},
|
|
86172
|
+
options: rlsConditions[0].options.map((o2) => ({
|
|
86173
|
+
value: o2,
|
|
86174
|
+
label: o2
|
|
86175
|
+
})),
|
|
86176
|
+
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value)
|
|
86177
|
+
})
|
|
86154
86178
|
})
|
|
86155
86179
|
})]
|
|
86156
86180
|
}), chartType2 && /* @__PURE__ */ jsx("div", {
|
|
@@ -86813,37 +86837,37 @@ const InputField = ({
|
|
|
86813
86837
|
})]
|
|
86814
86838
|
});
|
|
86815
86839
|
};
|
|
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 = "
|
|
86840
|
+
const listBoxButton = "_listBoxButton_9tjjc_5";
|
|
86841
|
+
const selectedOptionText = "_selectedOptionText_9tjjc_17";
|
|
86842
|
+
const transitionDiv = "_transitionDiv_9tjjc_21";
|
|
86843
|
+
const listboxButtonWrapper = "_listboxButtonWrapper_9tjjc_25";
|
|
86844
|
+
const arrowicon = "_arrowicon_9tjjc_28";
|
|
86845
|
+
const leave = "_leave_9tjjc_31";
|
|
86846
|
+
const leaveFrom = "_leaveFrom_9tjjc_34";
|
|
86847
|
+
const leaveTo = "_leaveTo_9tjjc_37";
|
|
86848
|
+
const notAvailable = "_notAvailable_9tjjc_40";
|
|
86849
|
+
const option = "_option_9tjjc_43";
|
|
86850
|
+
const activeOption = "_activeOption_9tjjc_46";
|
|
86851
|
+
const optionSelected = "_optionSelected_9tjjc_49";
|
|
86852
|
+
const inactiveOption = "_inactiveOption_9tjjc_52";
|
|
86853
|
+
const optionLabel = "_optionLabel_9tjjc_55";
|
|
86854
|
+
const optionSubLabel = "_optionSubLabel_9tjjc_58";
|
|
86855
|
+
const selectedLabel = "_selectedLabel_9tjjc_61";
|
|
86856
|
+
const nonselectedLabel = "_nonselectedLabel_9tjjc_64";
|
|
86857
|
+
const check = "_check_9tjjc_67";
|
|
86858
|
+
const checkActive = "_checkActive_9tjjc_70";
|
|
86859
|
+
const checkInactive = "_checkInactive_9tjjc_73";
|
|
86860
|
+
const checkIcon$1 = "_checkIcon_9tjjc_76";
|
|
86861
|
+
const checkIconSelected = "_checkIconSelected_9tjjc_79";
|
|
86862
|
+
const checkIconUnselected = "_checkIconUnselected_9tjjc_82";
|
|
86863
|
+
const loadMore = "_loadMore_9tjjc_85";
|
|
86864
|
+
const selectedList = "_selectedList_9tjjc_88";
|
|
86865
|
+
const selectedListItem = "_selectedListItem_9tjjc_91";
|
|
86842
86866
|
var style = {
|
|
86843
|
-
"listBox-label": "_listBox-
|
|
86844
|
-
"listBoxButton-container": "_listBoxButton-
|
|
86867
|
+
"listBox-label": "_listBox-label_9tjjc_1",
|
|
86868
|
+
"listBoxButton-container": "_listBoxButton-container_9tjjc_5",
|
|
86845
86869
|
listBoxButton,
|
|
86846
|
-
"listBox-option": "_listBox-
|
|
86870
|
+
"listBox-option": "_listBox-option_9tjjc_13",
|
|
86847
86871
|
selectedOptionText,
|
|
86848
86872
|
transitionDiv,
|
|
86849
86873
|
listboxButtonWrapper,
|
|
@@ -86910,13 +86934,17 @@ const Select = ({
|
|
|
86910
86934
|
placeHolder,
|
|
86911
86935
|
className = "",
|
|
86912
86936
|
containerClass = "",
|
|
86913
|
-
isSearchEnabled
|
|
86937
|
+
isSearchEnabled,
|
|
86938
|
+
textSize
|
|
86914
86939
|
}) => {
|
|
86915
86940
|
const [searchKeyword, setSearchKeyword] = useState("");
|
|
86916
86941
|
const [limit, setLimit] = useState(20);
|
|
86917
86942
|
const selectedOption = value || defaultValue2 ? options2 == null ? void 0 : options2.find((i2) => i2.value === value || i2.value === defaultValue2) : {
|
|
86918
86943
|
label: placeHolder || "Select an option"
|
|
86919
86944
|
};
|
|
86945
|
+
const fontStyle = {
|
|
86946
|
+
fontSize: textSize
|
|
86947
|
+
};
|
|
86920
86948
|
return /* @__PURE__ */ jsx(pt, {
|
|
86921
86949
|
value,
|
|
86922
86950
|
onChange,
|
|
@@ -86969,6 +86997,7 @@ const Select = ({
|
|
|
86969
86997
|
}) => /* @__PURE__ */ jsxs(Fragment, {
|
|
86970
86998
|
children: [/* @__PURE__ */ jsx("span", {
|
|
86971
86999
|
className: style.optionLabel,
|
|
87000
|
+
style: fontStyle,
|
|
86972
87001
|
children: item.label
|
|
86973
87002
|
}), selected ? /* @__PURE__ */ jsx("span", {
|
|
86974
87003
|
className: style.check,
|
|
@@ -86996,21 +87025,27 @@ const Select = ({
|
|
|
86996
87025
|
const HookSelect = ({
|
|
86997
87026
|
control,
|
|
86998
87027
|
name,
|
|
86999
|
-
|
|
87000
|
-
|
|
87001
|
-
|
|
87002
|
-
|
|
87003
|
-
|
|
87004
|
-
|
|
87028
|
+
options: options2,
|
|
87029
|
+
label: label2,
|
|
87030
|
+
defaultValue: defaultValue2
|
|
87031
|
+
}) => {
|
|
87032
|
+
return /* @__PURE__ */ jsx(Controller, {
|
|
87033
|
+
control,
|
|
87034
|
+
name,
|
|
87035
|
+
render: ({
|
|
87036
|
+
field: {
|
|
87037
|
+
onChange,
|
|
87038
|
+
value
|
|
87039
|
+
}
|
|
87040
|
+
}) => /* @__PURE__ */ jsx(Select, {
|
|
87005
87041
|
onChange,
|
|
87006
|
-
value
|
|
87007
|
-
|
|
87008
|
-
|
|
87009
|
-
|
|
87010
|
-
|
|
87011
|
-
|
|
87012
|
-
|
|
87013
|
-
});
|
|
87042
|
+
value,
|
|
87043
|
+
label: label2,
|
|
87044
|
+
options: options2,
|
|
87045
|
+
defaultValue: defaultValue2
|
|
87046
|
+
})
|
|
87047
|
+
});
|
|
87048
|
+
};
|
|
87014
87049
|
const SelectWithSubValue = ({
|
|
87015
87050
|
label: label2,
|
|
87016
87051
|
options: options2,
|
|
@@ -87795,6 +87830,7 @@ const ChartConfigure = ({
|
|
|
87795
87830
|
className: styles$l.valueLabelWrapper,
|
|
87796
87831
|
children: /* @__PURE__ */ jsx(Select, {
|
|
87797
87832
|
value: customSettings.numberFormatter,
|
|
87833
|
+
textSize: "12px",
|
|
87798
87834
|
options: [{
|
|
87799
87835
|
label: "Original value",
|
|
87800
87836
|
value: "original"
|
|
@@ -87856,22 +87892,22 @@ const ChartConfigure = ({
|
|
|
87856
87892
|
})]
|
|
87857
87893
|
});
|
|
87858
87894
|
};
|
|
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 = "
|
|
87895
|
+
const chartButtonContainer$1 = "_chartButtonContainer_1fmoa_1";
|
|
87896
|
+
const tabContainer = "_tabContainer_1fmoa_23";
|
|
87897
|
+
const tab = "_tab_1fmoa_23";
|
|
87898
|
+
const tabText = "_tabText_1fmoa_39";
|
|
87899
|
+
const chartButtons$1 = "_chartButtons_1fmoa_47";
|
|
87900
|
+
const chartButton$1 = "_chartButton_1fmoa_1";
|
|
87901
|
+
const chartButtonSelected = "_chartButtonSelected_1fmoa_63";
|
|
87902
|
+
const chartTypesButton = "_chartTypesButton_1fmoa_71";
|
|
87903
|
+
const button$3 = "_button_1fmoa_79";
|
|
87904
|
+
const propertyButton = "_propertyButton_1fmoa_87";
|
|
87905
|
+
const settings = "_settings_1fmoa_15";
|
|
87906
|
+
const crossIcon = "_crossIcon_1fmoa_103";
|
|
87871
87907
|
var styles$g = {
|
|
87872
87908
|
chartButtonContainer: chartButtonContainer$1,
|
|
87873
|
-
"chartButton-header": "_chartButton-
|
|
87874
|
-
"settingsTab-header-control": "_settingsTab-header-
|
|
87909
|
+
"chartButton-header": "_chartButton-header_1fmoa_7",
|
|
87910
|
+
"settingsTab-header-control": "_settingsTab-header-control_1fmoa_15",
|
|
87875
87911
|
tabContainer,
|
|
87876
87912
|
tab,
|
|
87877
87913
|
tabText,
|
|
@@ -88580,6 +88616,16 @@ const ChartSettings = ({
|
|
|
88580
88616
|
const FIRST_TAB = "Chart types";
|
|
88581
88617
|
const SECOND_TAB = "Chart properties";
|
|
88582
88618
|
const [activeTab2, setActiveTab] = useState(FIRST_TAB);
|
|
88619
|
+
const buttonColor = {
|
|
88620
|
+
background: "#e5e7eb",
|
|
88621
|
+
width: "100%",
|
|
88622
|
+
height: "100%",
|
|
88623
|
+
paddingTop: "8px",
|
|
88624
|
+
paddingBottom: "8px",
|
|
88625
|
+
display: "flex",
|
|
88626
|
+
alignItems: "center",
|
|
88627
|
+
justifyContent: "center"
|
|
88628
|
+
};
|
|
88583
88629
|
return /* @__PURE__ */ jsxs("div", {
|
|
88584
88630
|
className: styles$g.chartButtonContainer,
|
|
88585
88631
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -88599,18 +88645,24 @@ const ChartSettings = ({
|
|
|
88599
88645
|
className: styles$g.chartButtons,
|
|
88600
88646
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
88601
88647
|
className: styles$g["settingsTab-header-control"],
|
|
88602
|
-
children: [/* @__PURE__ */
|
|
88648
|
+
children: [/* @__PURE__ */ jsxs(Button, {
|
|
88603
88649
|
type: "button",
|
|
88604
88650
|
variant: "custom",
|
|
88605
88651
|
className: `${styles$g.chartButton} ${selectedTab2 === GENERAL && styles$g.chartButtonSelected}`,
|
|
88606
88652
|
onClick: () => setSelectedTab(GENERAL),
|
|
88607
|
-
children: "
|
|
88608
|
-
|
|
88653
|
+
children: [selectedTab2 === GENERAL && /* @__PURE__ */ jsx("div", {
|
|
88654
|
+
style: buttonColor,
|
|
88655
|
+
children: "General"
|
|
88656
|
+
}), selectedTab2 !== GENERAL && "General"]
|
|
88657
|
+
}), /* @__PURE__ */ jsxs(Button, {
|
|
88609
88658
|
type: "button",
|
|
88610
88659
|
variant: "custom",
|
|
88611
88660
|
className: `${styles$g.chartButton} ${selectedTab2 === CONFIG && styles$g.chartButtonSelected}`,
|
|
88612
88661
|
onClick: () => setSelectedTab(CONFIG),
|
|
88613
|
-
children: "
|
|
88662
|
+
children: [selectedTab2 === CONFIG && /* @__PURE__ */ jsx("div", {
|
|
88663
|
+
style: buttonColor,
|
|
88664
|
+
children: "Configuration"
|
|
88665
|
+
}), selectedTab2 !== CONFIG && "Configuration"]
|
|
88614
88666
|
})]
|
|
88615
88667
|
}), selectedTab2 === GENERAL && /* @__PURE__ */ jsxs(Fragment, {
|
|
88616
88668
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -88769,7 +88821,15 @@ const ChartTab = ({
|
|
|
88769
88821
|
const [isShowFullScreen, setShowFullScreen] = useState(false);
|
|
88770
88822
|
return /* @__PURE__ */ jsxs("div", {
|
|
88771
88823
|
className: styles$e["chartTab-container"],
|
|
88772
|
-
children: [
|
|
88824
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
88825
|
+
className: styles$e.metricChartHeader,
|
|
88826
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
88827
|
+
styleClass: "primary",
|
|
88828
|
+
variant: "p",
|
|
88829
|
+
className: "",
|
|
88830
|
+
children: "Preview"
|
|
88831
|
+
}), headerChild]
|
|
88832
|
+
}), !(data2 == null ? void 0 : data2.length) && isLoading && /* @__PURE__ */ jsx("div", {
|
|
88773
88833
|
className: styles$e["loader-container"],
|
|
88774
88834
|
children: /* @__PURE__ */ jsx(eosIconsLoading, {
|
|
88775
88835
|
style: {
|
|
@@ -88800,17 +88860,9 @@ const ChartTab = ({
|
|
|
88800
88860
|
children: "No data found! Run a query to display charts"
|
|
88801
88861
|
})
|
|
88802
88862
|
})]
|
|
88803
|
-
}), !!(data2 == null ? void 0 : data2.length) && !isLoading && /* @__PURE__ */
|
|
88863
|
+
}), !!(data2 == null ? void 0 : data2.length) && !isLoading && /* @__PURE__ */ jsx("div", {
|
|
88804
88864
|
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", {
|
|
88865
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
88814
88866
|
className: styles$e["chartTab-wrapper"],
|
|
88815
88867
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
88816
88868
|
className: styles$e["chartTab-wrapper-head"],
|
|
@@ -88919,7 +88971,7 @@ const ChartTab = ({
|
|
|
88919
88971
|
})
|
|
88920
88972
|
})]
|
|
88921
88973
|
})]
|
|
88922
|
-
})
|
|
88974
|
+
})
|
|
88923
88975
|
}), /* @__PURE__ */ jsx(FullScreenChart, {
|
|
88924
88976
|
isShow: isShowFullScreen,
|
|
88925
88977
|
onCancel: () => setShowFullScreen(false),
|