@databrainhq/plugin 0.8.18 → 0.8.20
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/README.md +26 -26
- package/dist/components/InfoTooltip/index.d.ts +1 -0
- package/dist/index.es.js +295 -282
- package/dist/index.umd.js +61 -60
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +2 -0
- package/dist/typings.d.ts +17 -17
- package/package.json +98 -98
package/dist/index.es.js
CHANGED
|
@@ -2514,7 +2514,6 @@ function useQuery(arg1, arg2, arg3) {
|
|
|
2514
2514
|
}
|
|
2515
2515
|
const container$h = "_container_1o0ns_1";
|
|
2516
2516
|
const fixed = "_fixed_1o0ns_1";
|
|
2517
|
-
const absolute = "_absolute_1o0ns_1";
|
|
2518
2517
|
const flex = "_flex_1o0ns_1";
|
|
2519
2518
|
const table$4 = "_table_1o0ns_1";
|
|
2520
2519
|
const grid = "_grid_1o0ns_1";
|
|
@@ -2536,11 +2535,6 @@ var styles$H = {
|
|
|
2536
2535
|
container: container$h,
|
|
2537
2536
|
"static": "_static_1o0ns_413",
|
|
2538
2537
|
fixed,
|
|
2539
|
-
absolute,
|
|
2540
|
-
"left-2": "_left-2_1o0ns_1",
|
|
2541
|
-
"top-1": "_top-1_1o0ns_1",
|
|
2542
|
-
"mt-2.5": "_mt-2.5_1o0ns_1",
|
|
2543
|
-
"mt-2": "_mt-2_1o0ns_1",
|
|
2544
2538
|
"mb-3": "_mb-3_1o0ns_1",
|
|
2545
2539
|
flex,
|
|
2546
2540
|
table: table$4,
|
|
@@ -2556,10 +2550,8 @@ var styles$H = {
|
|
|
2556
2550
|
truncate,
|
|
2557
2551
|
border,
|
|
2558
2552
|
"p-2": "_p-2_1o0ns_1",
|
|
2559
|
-
"p-1": "_p-1_1o0ns_1",
|
|
2560
2553
|
"text-center": "_text-center_1o0ns_1",
|
|
2561
2554
|
"text-sm": "_text-sm_1o0ns_1",
|
|
2562
|
-
"text-xs": "_text-xs_1o0ns_1",
|
|
2563
2555
|
"text-blue-700": "_text-blue-700_1o0ns_1",
|
|
2564
2556
|
shadow,
|
|
2565
2557
|
filter: filter$1,
|
|
@@ -2645,17 +2637,17 @@ var classnames$1 = { exports: {} };
|
|
|
2645
2637
|
})(classnames$1);
|
|
2646
2638
|
var classnames = classnames$1.exports;
|
|
2647
2639
|
var styles$G = {
|
|
2648
|
-
"btn-primary": "_btn-
|
|
2649
|
-
"btn-secondary": "_btn-
|
|
2650
|
-
"btn-reject": "_btn-
|
|
2651
|
-
"btn-outlined": "_btn-
|
|
2652
|
-
"btn-tertiary": "_btn-
|
|
2653
|
-
"btn-default": "_btn-
|
|
2654
|
-
"btn-large": "_btn-
|
|
2655
|
-
"btn-small": "_btn-
|
|
2656
|
-
"btn-xs": "_btn-
|
|
2657
|
-
"btn-medium": "_btn-
|
|
2658
|
-
"btn-11rem": "_btn-
|
|
2640
|
+
"btn-primary": "_btn-primary_17kvk_1",
|
|
2641
|
+
"btn-secondary": "_btn-secondary_17kvk_5",
|
|
2642
|
+
"btn-reject": "_btn-reject_17kvk_9",
|
|
2643
|
+
"btn-outlined": "_btn-outlined_17kvk_14",
|
|
2644
|
+
"btn-tertiary": "_btn-tertiary_17kvk_18",
|
|
2645
|
+
"btn-default": "_btn-default_17kvk_22",
|
|
2646
|
+
"btn-large": "_btn-large_17kvk_25",
|
|
2647
|
+
"btn-small": "_btn-small_17kvk_28",
|
|
2648
|
+
"btn-xs": "_btn-xs_17kvk_31",
|
|
2649
|
+
"btn-medium": "_btn-medium_17kvk_34",
|
|
2650
|
+
"btn-11rem": "_btn-11rem_17kvk_38"
|
|
2659
2651
|
};
|
|
2660
2652
|
var jsxRuntime = { exports: {} };
|
|
2661
2653
|
var reactJsxRuntime_production_min = {};
|
|
@@ -4944,39 +4936,39 @@ let xe = "div", ne = S.RenderStrategy, re = C$2(function(e2, s2) {
|
|
|
4944
4936
|
let n2 = useContext(F) !== null, m2 = s() !== null;
|
|
4945
4937
|
return React__default.createElement(React__default.Fragment, null, !n2 && m2 ? React__default.createElement(q, { ref: s$12, ...e2 }) : React__default.createElement(re, { ref: s$12, ...e2 }));
|
|
4946
4938
|
}), We = Object.assign(q, { Child: Pe, Root: q });
|
|
4947
|
-
const listBoxButton = "
|
|
4948
|
-
const selectedOptionText = "
|
|
4949
|
-
const transitionDiv = "
|
|
4950
|
-
const listboxButtonWrapper = "
|
|
4951
|
-
const arrowicon = "
|
|
4952
|
-
const leave$2 = "
|
|
4953
|
-
const leaveFrom$2 = "
|
|
4954
|
-
const leaveTo$2 = "
|
|
4955
|
-
const notAvailable = "
|
|
4956
|
-
const option$1 = "
|
|
4957
|
-
const activeOption = "
|
|
4958
|
-
const optionSelected = "
|
|
4959
|
-
const inactiveOption = "
|
|
4960
|
-
const optionLabel = "
|
|
4961
|
-
const optionSubLabel = "
|
|
4962
|
-
const selectedLabel = "
|
|
4963
|
-
const nonselectedLabel = "
|
|
4964
|
-
const check = "
|
|
4965
|
-
const checkActive = "
|
|
4966
|
-
const checkInactive = "
|
|
4967
|
-
const checkIcon$1 = "
|
|
4968
|
-
const checkIconSelected = "
|
|
4969
|
-
const checkIconUnselected = "
|
|
4970
|
-
const loadMore$1 = "
|
|
4971
|
-
const selectedList = "
|
|
4972
|
-
const selectedListItem = "
|
|
4973
|
-
const label$7 = "
|
|
4974
|
-
const clientText$1 = "
|
|
4939
|
+
const listBoxButton = "_listBoxButton_fw8xj_5";
|
|
4940
|
+
const selectedOptionText = "_selectedOptionText_fw8xj_17";
|
|
4941
|
+
const transitionDiv = "_transitionDiv_fw8xj_21";
|
|
4942
|
+
const listboxButtonWrapper = "_listboxButtonWrapper_fw8xj_25";
|
|
4943
|
+
const arrowicon = "_arrowicon_fw8xj_28";
|
|
4944
|
+
const leave$2 = "_leave_fw8xj_31";
|
|
4945
|
+
const leaveFrom$2 = "_leaveFrom_fw8xj_34";
|
|
4946
|
+
const leaveTo$2 = "_leaveTo_fw8xj_37";
|
|
4947
|
+
const notAvailable = "_notAvailable_fw8xj_40";
|
|
4948
|
+
const option$1 = "_option_fw8xj_43";
|
|
4949
|
+
const activeOption = "_activeOption_fw8xj_46";
|
|
4950
|
+
const optionSelected = "_optionSelected_fw8xj_49";
|
|
4951
|
+
const inactiveOption = "_inactiveOption_fw8xj_52";
|
|
4952
|
+
const optionLabel = "_optionLabel_fw8xj_55";
|
|
4953
|
+
const optionSubLabel = "_optionSubLabel_fw8xj_58";
|
|
4954
|
+
const selectedLabel = "_selectedLabel_fw8xj_61";
|
|
4955
|
+
const nonselectedLabel = "_nonselectedLabel_fw8xj_64";
|
|
4956
|
+
const check = "_check_fw8xj_67";
|
|
4957
|
+
const checkActive = "_checkActive_fw8xj_70";
|
|
4958
|
+
const checkInactive = "_checkInactive_fw8xj_73";
|
|
4959
|
+
const checkIcon$1 = "_checkIcon_fw8xj_76";
|
|
4960
|
+
const checkIconSelected = "_checkIconSelected_fw8xj_79";
|
|
4961
|
+
const checkIconUnselected = "_checkIconUnselected_fw8xj_82";
|
|
4962
|
+
const loadMore$1 = "_loadMore_fw8xj_85";
|
|
4963
|
+
const selectedList = "_selectedList_fw8xj_88";
|
|
4964
|
+
const selectedListItem = "_selectedListItem_fw8xj_91";
|
|
4965
|
+
const label$7 = "_label_fw8xj_94";
|
|
4966
|
+
const clientText$1 = "_clientText_fw8xj_97";
|
|
4975
4967
|
var style = {
|
|
4976
|
-
"listBox-label": "_listBox-
|
|
4977
|
-
"listBoxButton-container": "_listBoxButton-
|
|
4968
|
+
"listBox-label": "_listBox-label_fw8xj_1",
|
|
4969
|
+
"listBoxButton-container": "_listBoxButton-container_fw8xj_5",
|
|
4978
4970
|
listBoxButton,
|
|
4979
|
-
"listBox-option": "_listBox-
|
|
4971
|
+
"listBox-option": "_listBox-option_fw8xj_13",
|
|
4980
4972
|
selectedOptionText,
|
|
4981
4973
|
transitionDiv,
|
|
4982
4974
|
listboxButtonWrapper,
|
|
@@ -5005,22 +4997,22 @@ var style = {
|
|
|
5005
4997
|
label: label$7,
|
|
5006
4998
|
clientText: clientText$1
|
|
5007
4999
|
};
|
|
5008
|
-
const primary = "
|
|
5009
|
-
const secondary = "
|
|
5010
|
-
const tertiary = "
|
|
5000
|
+
const primary = "_primary_18yak_1";
|
|
5001
|
+
const secondary = "_secondary_18yak_5";
|
|
5002
|
+
const tertiary = "_tertiary_18yak_10";
|
|
5011
5003
|
var styles$E = {
|
|
5012
5004
|
primary,
|
|
5013
5005
|
secondary,
|
|
5014
5006
|
tertiary,
|
|
5015
|
-
"font-18": "_font-
|
|
5016
|
-
"font-20": "_font-
|
|
5017
|
-
"font-14": "_font-
|
|
5018
|
-
"font-14a": "_font-
|
|
5019
|
-
"font-14b": "_font-
|
|
5020
|
-
"font-14c": "_font-
|
|
5021
|
-
"font-14d": "_font-
|
|
5022
|
-
"font-15": "_font-
|
|
5023
|
-
"font-34": "_font-
|
|
5007
|
+
"font-18": "_font-18_18yak_14",
|
|
5008
|
+
"font-20": "_font-20_18yak_18",
|
|
5009
|
+
"font-14": "_font-14_18yak_22",
|
|
5010
|
+
"font-14a": "_font-14a_18yak_26",
|
|
5011
|
+
"font-14b": "_font-14b_18yak_30",
|
|
5012
|
+
"font-14c": "_font-14c_18yak_34",
|
|
5013
|
+
"font-14d": "_font-14d_18yak_38",
|
|
5014
|
+
"font-15": "_font-15_18yak_42",
|
|
5015
|
+
"font-34": "_font-34_18yak_45"
|
|
5024
5016
|
};
|
|
5025
5017
|
const variants = {
|
|
5026
5018
|
h1: "h1",
|
|
@@ -5048,10 +5040,10 @@ const Text = ({
|
|
|
5048
5040
|
children: children2
|
|
5049
5041
|
});
|
|
5050
5042
|
};
|
|
5051
|
-
const search$1 = "
|
|
5043
|
+
const search$1 = "_search_1klck_1";
|
|
5052
5044
|
var styles$D = {
|
|
5053
|
-
"searchTab-container": "_searchTab-
|
|
5054
|
-
"searchTab-input": "_searchTab-
|
|
5045
|
+
"searchTab-container": "_searchTab-container_1klck_1",
|
|
5046
|
+
"searchTab-input": "_searchTab-input_1klck_5",
|
|
5055
5047
|
search: search$1
|
|
5056
5048
|
};
|
|
5057
5049
|
const iconoirSearch = (props) => /* @__PURE__ */ jsx("svg", {
|
|
@@ -7142,22 +7134,22 @@ const ExternalMetricForm = ({
|
|
|
7142
7134
|
})]
|
|
7143
7135
|
});
|
|
7144
7136
|
};
|
|
7145
|
-
const container$d = "
|
|
7146
|
-
const wrapper$3 = "
|
|
7147
|
-
const label$3 = "
|
|
7148
|
-
const floatingLabel = "
|
|
7149
|
-
const clientText = "
|
|
7150
|
-
const normalText = "
|
|
7151
|
-
const dropdown$1 = "
|
|
7152
|
-
const options = "
|
|
7153
|
-
const checkedOption = "
|
|
7154
|
-
const option = "
|
|
7155
|
-
const icon$1 = "
|
|
7156
|
-
const text$2 = "
|
|
7157
|
-
const floatingText = "
|
|
7158
|
-
const search = "
|
|
7159
|
-
const loadMore = "
|
|
7160
|
-
const loadMoreIcon = "
|
|
7137
|
+
const container$d = "_container_q0qrl_1";
|
|
7138
|
+
const wrapper$3 = "_wrapper_q0qrl_5";
|
|
7139
|
+
const label$3 = "_label_q0qrl_9";
|
|
7140
|
+
const floatingLabel = "_floatingLabel_q0qrl_13";
|
|
7141
|
+
const clientText = "_clientText_q0qrl_17";
|
|
7142
|
+
const normalText = "_normalText_q0qrl_21";
|
|
7143
|
+
const dropdown$1 = "_dropdown_q0qrl_25";
|
|
7144
|
+
const options = "_options_q0qrl_29";
|
|
7145
|
+
const checkedOption = "_checkedOption_q0qrl_33";
|
|
7146
|
+
const option = "_option_q0qrl_29";
|
|
7147
|
+
const icon$1 = "_icon_q0qrl_41";
|
|
7148
|
+
const text$2 = "_text_q0qrl_45";
|
|
7149
|
+
const floatingText = "_floatingText_q0qrl_49";
|
|
7150
|
+
const search = "_search_q0qrl_53";
|
|
7151
|
+
const loadMore = "_loadMore_q0qrl_57";
|
|
7152
|
+
const loadMoreIcon = "_loadMoreIcon_q0qrl_61";
|
|
7161
7153
|
var styles$u = {
|
|
7162
7154
|
container: container$d,
|
|
7163
7155
|
wrapper: wrapper$3,
|
|
@@ -8002,6 +7994,7 @@ const MultiFloatingDropDown = React__default.memo(({
|
|
|
8002
7994
|
options: options2,
|
|
8003
7995
|
isDisabled,
|
|
8004
7996
|
children: children2,
|
|
7997
|
+
labelDesign,
|
|
8005
7998
|
isSearchEnabled
|
|
8006
7999
|
}) => {
|
|
8007
8000
|
const [isShow, setIsShow] = useState(false);
|
|
@@ -8018,7 +8011,7 @@ const MultiFloatingDropDown = React__default.memo(({
|
|
|
8018
8011
|
children: [label2 ? /* @__PURE__ */ jsx(Text, {
|
|
8019
8012
|
variant: "span",
|
|
8020
8013
|
styleClass: labelVariant === "floating" ? "custom" : "font-14",
|
|
8021
|
-
className: `${styles$u.label} ${labelVariant === "floating" ? "
|
|
8014
|
+
className: `${styles$u.label} ${labelVariant === "floating" ? styles$u.floatingLabel : ""} ${labelDesign === "client" ? styles$u.clientText : styles$u.normalText} `,
|
|
8022
8015
|
children: label2
|
|
8023
8016
|
}) : null, /* @__PURE__ */ jsxs(Button, {
|
|
8024
8017
|
type: "button",
|
|
@@ -8029,7 +8022,7 @@ const MultiFloatingDropDown = React__default.memo(({
|
|
|
8029
8022
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
8030
8023
|
variant: "p",
|
|
8031
8024
|
styleClass: "font-14",
|
|
8032
|
-
className: labelVariant === "floating" ?
|
|
8025
|
+
className: labelVariant === "floating" ? styles$u.floatingText : "",
|
|
8033
8026
|
children: "Select 1 or more option"
|
|
8034
8027
|
}), /* @__PURE__ */ jsx(materialSymbolsKeyboardArrowDown, {})]
|
|
8035
8028
|
}), isShow && !isDisabled && /* @__PURE__ */ jsxs("div", {
|
|
@@ -80461,7 +80454,14 @@ const FunnelChart = ({
|
|
|
80461
80454
|
const option2 = {
|
|
80462
80455
|
tooltip: {
|
|
80463
80456
|
trigger: "item",
|
|
80464
|
-
formatter:
|
|
80457
|
+
formatter: customSettings.showConversionRate ? (context) => {
|
|
80458
|
+
var _a2, _b2;
|
|
80459
|
+
let percent = 100;
|
|
80460
|
+
if (context.dataIndex > 0) {
|
|
80461
|
+
percent = (((_a2 = funnelData[context.dataIndex]) == null ? void 0 : _a2.value) || 0) / (((_b2 = funnelData[context.dataIndex - 1]) == null ? void 0 : _b2.value) || 1) * 100;
|
|
80462
|
+
}
|
|
80463
|
+
return `${context.name}: ${percent.toFixed(0)}%`;
|
|
80464
|
+
} : customSettings.showLabelValues ? "{b}: {c}" : customSettings.labelFormat || "{b}",
|
|
80465
80465
|
backgroundColor: "black",
|
|
80466
80466
|
textStyle: {
|
|
80467
80467
|
color: "white"
|
|
@@ -80498,12 +80498,19 @@ const FunnelChart = ({
|
|
|
80498
80498
|
max: 100,
|
|
80499
80499
|
minSize: "0%",
|
|
80500
80500
|
maxSize: "100%",
|
|
80501
|
-
sort: "
|
|
80501
|
+
sort: "none",
|
|
80502
80502
|
gap: 3,
|
|
80503
80503
|
label: {
|
|
80504
80504
|
show: labelSettings.show,
|
|
80505
80505
|
position: labelSettings.position,
|
|
80506
|
-
formatter: customSettings.
|
|
80506
|
+
formatter: customSettings.showConversionRate ? (context) => {
|
|
80507
|
+
var _a2, _b2;
|
|
80508
|
+
let percent = 100;
|
|
80509
|
+
if (context.dataIndex > 0) {
|
|
80510
|
+
percent = (((_a2 = funnelData[context.dataIndex]) == null ? void 0 : _a2.value) || 0) / (((_b2 = funnelData[context.dataIndex - 1]) == null ? void 0 : _b2.value) || 1) * 100;
|
|
80511
|
+
}
|
|
80512
|
+
return `${context.name}: ${percent.toFixed(0)}%`;
|
|
80513
|
+
} : customSettings.showLabelValues ? "{b}: {c}" : customSettings.labelFormat || "{b}"
|
|
80507
80514
|
},
|
|
80508
80515
|
labelLine: {
|
|
80509
80516
|
length: 10,
|
|
@@ -86146,10 +86153,10 @@ const leave$1 = "_leave_1qflp_65";
|
|
|
86146
86153
|
const leaveFrom$1 = "_leaveFrom_1qflp_73";
|
|
86147
86154
|
const leaveTo$1 = "_leaveTo_1qflp_81";
|
|
86148
86155
|
const center$1 = "_center_1qflp_89";
|
|
86149
|
-
const top$
|
|
86150
|
-
const bottom$
|
|
86151
|
-
const left$
|
|
86152
|
-
const right$
|
|
86156
|
+
const top$2 = "_top_1qflp_97";
|
|
86157
|
+
const bottom$3 = "_bottom_1qflp_105";
|
|
86158
|
+
const left$2 = "_left_1qflp_113";
|
|
86159
|
+
const right$2 = "_right_1qflp_121";
|
|
86153
86160
|
var styles$o = {
|
|
86154
86161
|
container: container$a,
|
|
86155
86162
|
popover: popover$1,
|
|
@@ -86163,10 +86170,10 @@ var styles$o = {
|
|
|
86163
86170
|
leaveFrom: leaveFrom$1,
|
|
86164
86171
|
leaveTo: leaveTo$1,
|
|
86165
86172
|
center: center$1,
|
|
86166
|
-
top: top$
|
|
86167
|
-
bottom: bottom$
|
|
86168
|
-
left: left$
|
|
86169
|
-
right: right$
|
|
86173
|
+
top: top$2,
|
|
86174
|
+
bottom: bottom$3,
|
|
86175
|
+
left: left$2,
|
|
86176
|
+
right: right$2,
|
|
86170
86177
|
"left-top-end": "_left-top-end_1qflp_129",
|
|
86171
86178
|
"right-top-end": "_right-top-end_1qflp_137",
|
|
86172
86179
|
"left-bottom-end": "_left-bottom-end_1qflp_145",
|
|
@@ -86532,21 +86539,42 @@ const GlobalFilters = ({
|
|
|
86532
86539
|
})
|
|
86533
86540
|
});
|
|
86534
86541
|
};
|
|
86535
|
-
const container$8 = "
|
|
86536
|
-
const tooltip$1 = "
|
|
86542
|
+
const container$8 = "_container_nbkwy_1";
|
|
86543
|
+
const tooltip$1 = "_tooltip_nbkwy_9";
|
|
86544
|
+
const top$1 = "_top_nbkwy_25";
|
|
86545
|
+
const bottom$2 = "_bottom_nbkwy_33";
|
|
86546
|
+
const left$1 = "_left_nbkwy_41";
|
|
86547
|
+
const right$1 = "_right_nbkwy_49";
|
|
86537
86548
|
var styles$m = {
|
|
86538
86549
|
container: container$8,
|
|
86539
|
-
tooltip: tooltip$1
|
|
86550
|
+
tooltip: tooltip$1,
|
|
86551
|
+
top: top$1,
|
|
86552
|
+
bottom: bottom$2,
|
|
86553
|
+
left: left$1,
|
|
86554
|
+
right: right$1,
|
|
86555
|
+
"left-top-end": "_left-top-end_nbkwy_57",
|
|
86556
|
+
"right-top-end": "_right-top-end_nbkwy_65",
|
|
86557
|
+
"left-bottom-end": "_left-bottom-end_nbkwy_73",
|
|
86558
|
+
"right-bottom-end": "_right-bottom-end_nbkwy_81",
|
|
86559
|
+
"top-left": "_top-left_nbkwy_89",
|
|
86560
|
+
"top-right": "_top-right_nbkwy_97",
|
|
86561
|
+
"bottom-left": "_bottom-left_nbkwy_105",
|
|
86562
|
+
"bottom-right": "_bottom-right_nbkwy_113",
|
|
86563
|
+
"left-top": "_left-top_nbkwy_57",
|
|
86564
|
+
"left-bottom": "_left-bottom_nbkwy_73",
|
|
86565
|
+
"right-top": "_right-top_nbkwy_65",
|
|
86566
|
+
"right-bottom": "_right-bottom_nbkwy_81"
|
|
86540
86567
|
};
|
|
86541
86568
|
const Tooltip = ({
|
|
86542
86569
|
children: children2,
|
|
86543
86570
|
content: content2,
|
|
86544
|
-
className = ""
|
|
86571
|
+
className = "",
|
|
86572
|
+
position: position2 = "bottom"
|
|
86545
86573
|
}) => {
|
|
86546
86574
|
return /* @__PURE__ */ jsxs("span", {
|
|
86547
86575
|
className: `${styles$m.container} ${className}`,
|
|
86548
86576
|
children: [content2, /* @__PURE__ */ jsx("span", {
|
|
86549
|
-
className: styles$m.tooltip
|
|
86577
|
+
className: `${styles$m.tooltip} ${styles$m[position2]}`,
|
|
86550
86578
|
children: children2
|
|
86551
86579
|
})]
|
|
86552
86580
|
});
|
|
@@ -86554,7 +86582,8 @@ const Tooltip = ({
|
|
|
86554
86582
|
const InfoTooltip = ({
|
|
86555
86583
|
children: children2,
|
|
86556
86584
|
className,
|
|
86557
|
-
iconClass
|
|
86585
|
+
iconClass,
|
|
86586
|
+
position: position2
|
|
86558
86587
|
}) => {
|
|
86559
86588
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
86560
86589
|
className,
|
|
@@ -86562,16 +86591,17 @@ const InfoTooltip = ({
|
|
|
86562
86591
|
name: "info-icon",
|
|
86563
86592
|
className: iconClass
|
|
86564
86593
|
}),
|
|
86594
|
+
position: position2,
|
|
86565
86595
|
children: children2
|
|
86566
86596
|
});
|
|
86567
86597
|
};
|
|
86568
86598
|
var styles$l = {
|
|
86569
|
-
"header-container": "_header-
|
|
86570
|
-
"btn-container": "_btn-
|
|
86571
|
-
"back-btn": "_back-
|
|
86572
|
-
"sql-btn": "_sql-
|
|
86573
|
-
"save-btn": "_save-
|
|
86574
|
-
"save-btn-icon": "_save-btn-
|
|
86599
|
+
"header-container": "_header-container_t2r6v_1",
|
|
86600
|
+
"btn-container": "_btn-container_t2r6v_5",
|
|
86601
|
+
"back-btn": "_back-btn_t2r6v_9",
|
|
86602
|
+
"sql-btn": "_sql-btn_t2r6v_13",
|
|
86603
|
+
"save-btn": "_save-btn_t2r6v_17",
|
|
86604
|
+
"save-btn-icon": "_save-btn-icon_t2r6v_21"
|
|
86575
86605
|
};
|
|
86576
86606
|
const Header = ({
|
|
86577
86607
|
setShowMetricCreateModal,
|
|
@@ -86624,20 +86654,20 @@ const Header = ({
|
|
|
86624
86654
|
});
|
|
86625
86655
|
};
|
|
86626
86656
|
var styles$k = {
|
|
86627
|
-
"create-btn": "_create-
|
|
86628
|
-
"modal-container": "_modal-
|
|
86629
|
-
"query-modal": "_query-
|
|
86657
|
+
"create-btn": "_create-btn_ihjk8_1",
|
|
86658
|
+
"modal-container": "_modal-container_ihjk8_5",
|
|
86659
|
+
"query-modal": "_query-modal_ihjk8_9"
|
|
86630
86660
|
};
|
|
86631
|
-
const container$7 = "
|
|
86632
|
-
const header$3 = "
|
|
86633
|
-
const wrapper$2 = "
|
|
86634
|
-
const column = "
|
|
86635
|
-
const columnText$1 = "
|
|
86661
|
+
const container$7 = "_container_1q2ss_1";
|
|
86662
|
+
const header$3 = "_header_1q2ss_5";
|
|
86663
|
+
const wrapper$2 = "_wrapper_1q2ss_9";
|
|
86664
|
+
const column = "_column_1q2ss_17";
|
|
86665
|
+
const columnText$1 = "_columnText_1q2ss_21";
|
|
86636
86666
|
var styles$j = {
|
|
86637
86667
|
container: container$7,
|
|
86638
86668
|
header: header$3,
|
|
86639
86669
|
wrapper: wrapper$2,
|
|
86640
|
-
"col-container": "_col-
|
|
86670
|
+
"col-container": "_col-container_1q2ss_13",
|
|
86641
86671
|
column,
|
|
86642
86672
|
columnText: columnText$1
|
|
86643
86673
|
};
|
|
@@ -86686,24 +86716,25 @@ const Dataset = ({
|
|
|
86686
86716
|
})]
|
|
86687
86717
|
});
|
|
86688
86718
|
};
|
|
86689
|
-
const container$6 = "
|
|
86690
|
-
const header$2 = "
|
|
86691
|
-
const tab$2 = "
|
|
86692
|
-
const tabText$1 = "
|
|
86693
|
-
const tabHeading = "
|
|
86694
|
-
const form = "
|
|
86695
|
-
const inputWrapper = "
|
|
86696
|
-
const input$1 = "
|
|
86697
|
-
const selectWrapper = "
|
|
86698
|
-
const select = "
|
|
86699
|
-
const label$1 = "
|
|
86700
|
-
const
|
|
86701
|
-
const
|
|
86702
|
-
const
|
|
86703
|
-
const
|
|
86704
|
-
const
|
|
86705
|
-
const
|
|
86706
|
-
const
|
|
86719
|
+
const container$6 = "_container_1pfol_1";
|
|
86720
|
+
const header$2 = "_header_1pfol_7";
|
|
86721
|
+
const tab$2 = "_tab_1pfol_13";
|
|
86722
|
+
const tabText$1 = "_tabText_1pfol_19";
|
|
86723
|
+
const tabHeading = "_tabHeading_1pfol_25";
|
|
86724
|
+
const form = "_form_1pfol_31";
|
|
86725
|
+
const inputWrapper = "_inputWrapper_1pfol_37";
|
|
86726
|
+
const input$1 = "_input_1pfol_37";
|
|
86727
|
+
const selectWrapper = "_selectWrapper_1pfol_49";
|
|
86728
|
+
const select = "_select_1pfol_49";
|
|
86729
|
+
const label$1 = "_label_1pfol_61";
|
|
86730
|
+
const labelFormatTooltip = "_labelFormatTooltip_1pfol_67";
|
|
86731
|
+
const series = "_series_1pfol_73";
|
|
86732
|
+
const legendWrapper = "_legendWrapper_1pfol_79";
|
|
86733
|
+
const seriesWrapper = "_seriesWrapper_1pfol_85";
|
|
86734
|
+
const valueLabelWrapper = "_valueLabelWrapper_1pfol_91";
|
|
86735
|
+
const singleCheckBox = "_singleCheckBox_1pfol_97";
|
|
86736
|
+
const seriesCheck = "_seriesCheck_1pfol_103";
|
|
86737
|
+
const seriesCheckContainer = "_seriesCheckContainer_1pfol_109";
|
|
86707
86738
|
var styles$i = {
|
|
86708
86739
|
container: container$6,
|
|
86709
86740
|
header: header$2,
|
|
@@ -86716,6 +86747,7 @@ var styles$i = {
|
|
|
86716
86747
|
selectWrapper,
|
|
86717
86748
|
select,
|
|
86718
86749
|
label: label$1,
|
|
86750
|
+
labelFormatTooltip,
|
|
86719
86751
|
series,
|
|
86720
86752
|
legendWrapper,
|
|
86721
86753
|
seriesWrapper,
|
|
@@ -87145,14 +87177,41 @@ const ChartConfigure = ({
|
|
|
87145
87177
|
}))
|
|
87146
87178
|
})
|
|
87147
87179
|
})]
|
|
87148
|
-
}), chartType2 === "funnel" && /* @__PURE__ */
|
|
87149
|
-
|
|
87150
|
-
|
|
87151
|
-
|
|
87152
|
-
|
|
87153
|
-
|
|
87154
|
-
|
|
87155
|
-
|
|
87180
|
+
}), chartType2 === "funnel" && /* @__PURE__ */ jsxs(Fragment, {
|
|
87181
|
+
children: [/* @__PURE__ */ jsx(InputField, {
|
|
87182
|
+
type: "checkbox",
|
|
87183
|
+
label: "Show labels with values",
|
|
87184
|
+
checked: customSettings.showLabelValues,
|
|
87185
|
+
onChange: (e2) => setCustomSettings((settings2) => ({
|
|
87186
|
+
...settings2,
|
|
87187
|
+
showLabelValues: e2.target.checked
|
|
87188
|
+
}))
|
|
87189
|
+
}), /* @__PURE__ */ jsx(InputField, {
|
|
87190
|
+
type: "checkbox",
|
|
87191
|
+
label: "Show Conversion Rate",
|
|
87192
|
+
checked: customSettings.showConversionRate,
|
|
87193
|
+
onChange: (e2) => setCustomSettings((settings2) => ({
|
|
87194
|
+
...settings2,
|
|
87195
|
+
showConversionRate: e2.target.checked
|
|
87196
|
+
}))
|
|
87197
|
+
}), /* @__PURE__ */ jsx(InputField, {
|
|
87198
|
+
type: "text",
|
|
87199
|
+
label: "Label Format",
|
|
87200
|
+
icon: /* @__PURE__ */ jsx("span", {
|
|
87201
|
+
className: styles$i.labelFormatTooltip,
|
|
87202
|
+
children: /* @__PURE__ */ jsx(InfoTooltip, {
|
|
87203
|
+
position: "left-top-end",
|
|
87204
|
+
children: `Please use {b} to show the label name, {c} to show the label value.
|
|
87205
|
+
Note: Only works if the above options are not selected.`
|
|
87206
|
+
})
|
|
87207
|
+
}),
|
|
87208
|
+
placeholder: "{b}",
|
|
87209
|
+
value: customSettings.labelFormat,
|
|
87210
|
+
onChange: (e2) => setCustomSettings((settings2) => ({
|
|
87211
|
+
...settings2,
|
|
87212
|
+
labelFormat: e2.target.value
|
|
87213
|
+
}))
|
|
87214
|
+
})]
|
|
87156
87215
|
}), chartType2 !== "pie" && chartType2 !== "doughnut" && chartType2 !== "funnel" && chartType2 !== "gauge" && chartType2 !== "sankey" && chartType2 !== "singleValue" && chartType2 !== "table" && /* @__PURE__ */ jsxs(Fragment, {
|
|
87157
87216
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
87158
87217
|
className: styles$i.seriesWrapper,
|
|
@@ -88018,10 +88077,10 @@ const ChartTab = ({
|
|
|
88018
88077
|
})]
|
|
88019
88078
|
});
|
|
88020
88079
|
};
|
|
88021
|
-
const container$5 = "
|
|
88022
|
-
const wrapper$1 = "
|
|
88023
|
-
const text = "
|
|
88024
|
-
const table$2 = "
|
|
88080
|
+
const container$5 = "_container_yjeiv_1";
|
|
88081
|
+
const wrapper$1 = "_wrapper_yjeiv_5";
|
|
88082
|
+
const text = "_text_yjeiv_9";
|
|
88083
|
+
const table$2 = "_table_yjeiv_12";
|
|
88025
88084
|
var styles$e = {
|
|
88026
88085
|
container: container$5,
|
|
88027
88086
|
wrapper: wrapper$1,
|
|
@@ -88054,16 +88113,16 @@ const InputTables = ({
|
|
|
88054
88113
|
})
|
|
88055
88114
|
});
|
|
88056
88115
|
};
|
|
88057
|
-
const container$4 = "
|
|
88058
|
-
const header$1 = "
|
|
88059
|
-
const tabButton$1 = "
|
|
88060
|
-
const selectedTab = "
|
|
88061
|
-
const table$1 = "
|
|
88116
|
+
const container$4 = "_container_38zl3_1";
|
|
88117
|
+
const header$1 = "_header_38zl3_5";
|
|
88118
|
+
const tabButton$1 = "_tabButton_38zl3_16";
|
|
88119
|
+
const selectedTab = "_selectedTab_38zl3_19";
|
|
88120
|
+
const table$1 = "_table_38zl3_22";
|
|
88062
88121
|
var styles$d = {
|
|
88063
88122
|
container: container$4,
|
|
88064
88123
|
header: header$1,
|
|
88065
|
-
"text-container": "_text-
|
|
88066
|
-
"btn-container": "_btn-
|
|
88124
|
+
"text-container": "_text-container_38zl3_9",
|
|
88125
|
+
"btn-container": "_btn-container_38zl3_13",
|
|
88067
88126
|
tabButton: tabButton$1,
|
|
88068
88127
|
selectedTab,
|
|
88069
88128
|
table: table$1
|
|
@@ -88144,17 +88203,17 @@ const TableTab = ({
|
|
|
88144
88203
|
})]
|
|
88145
88204
|
});
|
|
88146
88205
|
};
|
|
88147
|
-
const mainContainerUpdate = "
|
|
88148
|
-
const wrapper = "
|
|
88149
|
-
const updateWrapper = "
|
|
88150
|
-
const updateWrapperContent = "
|
|
88151
|
-
const searchCommand = "
|
|
88152
|
-
const tabButton = "
|
|
88153
|
-
const tabActive = "
|
|
88206
|
+
const mainContainerUpdate = "_mainContainerUpdate_19iy1_4";
|
|
88207
|
+
const wrapper = "_wrapper_19iy1_12";
|
|
88208
|
+
const updateWrapper = "_updateWrapper_19iy1_15";
|
|
88209
|
+
const updateWrapperContent = "_updateWrapperContent_19iy1_18";
|
|
88210
|
+
const searchCommand = "_searchCommand_19iy1_21";
|
|
88211
|
+
const tabButton = "_tabButton_19iy1_24";
|
|
88212
|
+
const tabActive = "_tabActive_19iy1_27";
|
|
88154
88213
|
var styles$c = {
|
|
88155
|
-
"main-container": "_main-
|
|
88214
|
+
"main-container": "_main-container_19iy1_1",
|
|
88156
88215
|
mainContainerUpdate,
|
|
88157
|
-
"outputTab-header": "_outputTab-
|
|
88216
|
+
"outputTab-header": "_outputTab-header_19iy1_8",
|
|
88158
88217
|
wrapper,
|
|
88159
88218
|
updateWrapper,
|
|
88160
88219
|
updateWrapperContent,
|
|
@@ -88291,30 +88350,30 @@ const MetricOutput = ({
|
|
|
88291
88350
|
})]
|
|
88292
88351
|
});
|
|
88293
88352
|
};
|
|
88294
|
-
const fieldValueIcon = "
|
|
88295
|
-
const fieldAddBtnIcon = "
|
|
88296
|
-
const group = "
|
|
88297
|
-
const tooltipWrapper = "
|
|
88298
|
-
const tooltip = "
|
|
88299
|
-
const dropdown = "
|
|
88300
|
-
const filterDropdown = "
|
|
88301
|
-
const filterValues = "
|
|
88302
|
-
const columnText = "
|
|
88303
|
-
const disabled = "
|
|
88304
|
-
const checkIcon = "
|
|
88305
|
-
const generateButton = "
|
|
88353
|
+
const fieldValueIcon = "_fieldValueIcon_z8ldj_25";
|
|
88354
|
+
const fieldAddBtnIcon = "_fieldAddBtnIcon_z8ldj_33";
|
|
88355
|
+
const group = "_group_z8ldj_1";
|
|
88356
|
+
const tooltipWrapper = "_tooltipWrapper_z8ldj_45";
|
|
88357
|
+
const tooltip = "_tooltip_z8ldj_45";
|
|
88358
|
+
const dropdown = "_dropdown_z8ldj_57";
|
|
88359
|
+
const filterDropdown = "_filterDropdown_z8ldj_61";
|
|
88360
|
+
const filterValues = "_filterValues_z8ldj_65";
|
|
88361
|
+
const columnText = "_columnText_z8ldj_69";
|
|
88362
|
+
const disabled = "_disabled_z8ldj_73";
|
|
88363
|
+
const checkIcon = "_checkIcon_z8ldj_77";
|
|
88364
|
+
const generateButton = "_generateButton_z8ldj_81";
|
|
88306
88365
|
var styles$b = {
|
|
88307
|
-
"form-container": "_form-
|
|
88308
|
-
"field-container": "_field-
|
|
88309
|
-
"field-label": "_field-
|
|
88310
|
-
"field-wrapper": "_field-
|
|
88311
|
-
"field-inner-container": "_field-inner-
|
|
88312
|
-
"field-value": "_field-
|
|
88366
|
+
"form-container": "_form-container_z8ldj_1",
|
|
88367
|
+
"field-container": "_field-container_z8ldj_5",
|
|
88368
|
+
"field-label": "_field-label_z8ldj_9",
|
|
88369
|
+
"field-wrapper": "_field-wrapper_z8ldj_13",
|
|
88370
|
+
"field-inner-container": "_field-inner-container_z8ldj_17",
|
|
88371
|
+
"field-value": "_field-value_z8ldj_21",
|
|
88313
88372
|
fieldValueIcon,
|
|
88314
|
-
"field-add-btn": "_field-add-
|
|
88373
|
+
"field-add-btn": "_field-add-btn_z8ldj_29",
|
|
88315
88374
|
fieldAddBtnIcon,
|
|
88316
|
-
"field-value-container": "_field-value-
|
|
88317
|
-
"field-prompt": "_field-
|
|
88375
|
+
"field-value-container": "_field-value-container_z8ldj_37",
|
|
88376
|
+
"field-prompt": "_field-prompt_z8ldj_41",
|
|
88318
88377
|
group,
|
|
88319
88378
|
tooltipWrapper,
|
|
88320
88379
|
tooltip,
|
|
@@ -89515,10 +89574,10 @@ const MetricForm = ({
|
|
|
89515
89574
|
})]
|
|
89516
89575
|
});
|
|
89517
89576
|
};
|
|
89518
|
-
const container$2 = "
|
|
89519
|
-
const header = "
|
|
89520
|
-
const enableGroupBy = "
|
|
89521
|
-
const enableGroupButton = "
|
|
89577
|
+
const container$2 = "_container_rofqe_1";
|
|
89578
|
+
const header = "_header_rofqe_5";
|
|
89579
|
+
const enableGroupBy = "_enableGroupBy_rofqe_8";
|
|
89580
|
+
const enableGroupButton = "_enableGroupButton_rofqe_11";
|
|
89522
89581
|
var styles$9 = {
|
|
89523
89582
|
container: container$2,
|
|
89524
89583
|
header,
|
|
@@ -95317,8 +95376,8 @@ const ChartImageDownloadButton = ({
|
|
|
95317
95376
|
}), text2]
|
|
95318
95377
|
});
|
|
95319
95378
|
};
|
|
95320
|
-
const metricFilter = "
|
|
95321
|
-
const customContainer = "
|
|
95379
|
+
const metricFilter = "_metricFilter_k2gef_1";
|
|
95380
|
+
const customContainer = "_customContainer_k2gef_4";
|
|
95322
95381
|
var styles$5 = {
|
|
95323
95382
|
metricFilter,
|
|
95324
95383
|
customContainer
|
|
@@ -95341,8 +95400,8 @@ const MetricFilterDropDown = ({
|
|
|
95341
95400
|
label: o2
|
|
95342
95401
|
})),
|
|
95343
95402
|
onChange: (options2) => onChangeFilterValue(rlsConditions[0].name, options2 == null ? void 0 : options2[0].value, void 0, options2),
|
|
95344
|
-
|
|
95345
|
-
|
|
95403
|
+
labelDesign: "client",
|
|
95404
|
+
label: rlsConditions[0].name
|
|
95346
95405
|
})
|
|
95347
95406
|
}) : /* @__PURE__ */ jsx("div", {
|
|
95348
95407
|
className: styles$5.metricFilter,
|
|
@@ -95359,9 +95418,8 @@ const MetricFilterDropDown = ({
|
|
|
95359
95418
|
companyId,
|
|
95360
95419
|
isSearchEnabled: true,
|
|
95361
95420
|
autoSelected: Array.isArray(rlsConditions[0].value) && !rlsConditions[0].value.length,
|
|
95362
|
-
labelVariant: "static",
|
|
95363
95421
|
labelDesign: "client",
|
|
95364
|
-
label:
|
|
95422
|
+
label: rlsConditions[0].name
|
|
95365
95423
|
})
|
|
95366
95424
|
}) : /* @__PURE__ */ jsx("div", {
|
|
95367
95425
|
className: styles$5.metricFilter,
|
|
@@ -95422,24 +95480,24 @@ const MetricFilterDropDown = ({
|
|
|
95422
95480
|
}) : void 0
|
|
95423
95481
|
});
|
|
95424
95482
|
};
|
|
95425
|
-
const container$1 = "
|
|
95426
|
-
const popover = "
|
|
95427
|
-
const button = "
|
|
95428
|
-
const buttonOpen = "
|
|
95429
|
-
const menu = "
|
|
95430
|
-
const enter = "
|
|
95431
|
-
const enterFrom = "
|
|
95432
|
-
const enterTo = "
|
|
95433
|
-
const leave = "
|
|
95434
|
-
const leaveFrom = "
|
|
95435
|
-
const leaveTo = "
|
|
95436
|
-
const center = "
|
|
95437
|
-
const top = "
|
|
95438
|
-
const bottom = "
|
|
95439
|
-
const left = "
|
|
95440
|
-
const right = "
|
|
95441
|
-
const chartOptionBtn = "
|
|
95442
|
-
const chartpopup = "
|
|
95483
|
+
const container$1 = "_container_14i90_1";
|
|
95484
|
+
const popover = "_popover_14i90_5";
|
|
95485
|
+
const button = "_button_14i90_9";
|
|
95486
|
+
const buttonOpen = "_buttonOpen_14i90_13";
|
|
95487
|
+
const menu = "_menu_14i90_17";
|
|
95488
|
+
const enter = "_enter_14i90_21";
|
|
95489
|
+
const enterFrom = "_enterFrom_14i90_25";
|
|
95490
|
+
const enterTo = "_enterTo_14i90_29";
|
|
95491
|
+
const leave = "_leave_14i90_33";
|
|
95492
|
+
const leaveFrom = "_leaveFrom_14i90_37";
|
|
95493
|
+
const leaveTo = "_leaveTo_14i90_41";
|
|
95494
|
+
const center = "_center_14i90_45";
|
|
95495
|
+
const top = "_top_14i90_49";
|
|
95496
|
+
const bottom = "_bottom_14i90_53";
|
|
95497
|
+
const left = "_left_14i90_57";
|
|
95498
|
+
const right = "_right_14i90_61";
|
|
95499
|
+
const chartOptionBtn = "_chartOptionBtn_14i90_113";
|
|
95500
|
+
const chartpopup = "_chartpopup_14i90_117";
|
|
95443
95501
|
var styles$4 = {
|
|
95444
95502
|
container: container$1,
|
|
95445
95503
|
popover,
|
|
@@ -95457,23 +95515,23 @@ var styles$4 = {
|
|
|
95457
95515
|
bottom,
|
|
95458
95516
|
left,
|
|
95459
95517
|
right,
|
|
95460
|
-
"left-top-end": "_left-top-
|
|
95461
|
-
"right-top-end": "_right-top-
|
|
95462
|
-
"left-bottom-end": "_left-bottom-
|
|
95463
|
-
"right-bottom-end": "_right-bottom-
|
|
95464
|
-
"top-left": "_top-
|
|
95465
|
-
"top-right": "_top-
|
|
95466
|
-
"bottom-left": "_bottom-
|
|
95467
|
-
"bottom-right": "_bottom-
|
|
95468
|
-
"left-top": "_left-
|
|
95469
|
-
"left-bottom": "_left-
|
|
95470
|
-
"right-top": "_right-
|
|
95471
|
-
"right-bottom": "_right-
|
|
95518
|
+
"left-top-end": "_left-top-end_14i90_65",
|
|
95519
|
+
"right-top-end": "_right-top-end_14i90_69",
|
|
95520
|
+
"left-bottom-end": "_left-bottom-end_14i90_73",
|
|
95521
|
+
"right-bottom-end": "_right-bottom-end_14i90_77",
|
|
95522
|
+
"top-left": "_top-left_14i90_81",
|
|
95523
|
+
"top-right": "_top-right_14i90_85",
|
|
95524
|
+
"bottom-left": "_bottom-left_14i90_89",
|
|
95525
|
+
"bottom-right": "_bottom-right_14i90_93",
|
|
95526
|
+
"left-top": "_left-top_14i90_65",
|
|
95527
|
+
"left-bottom": "_left-bottom_14i90_73",
|
|
95528
|
+
"right-top": "_right-top_14i90_69",
|
|
95529
|
+
"right-bottom": "_right-bottom_14i90_77",
|
|
95472
95530
|
chartOptionBtn,
|
|
95473
95531
|
chartpopup
|
|
95474
95532
|
};
|
|
95475
|
-
const fullscreen = "
|
|
95476
|
-
const loading = "
|
|
95533
|
+
const fullscreen = "_fullscreen_1gpy3_1";
|
|
95534
|
+
const loading = "_loading_1gpy3_5";
|
|
95477
95535
|
var styles$3 = {
|
|
95478
95536
|
fullscreen,
|
|
95479
95537
|
loading
|
|
@@ -95734,8 +95792,8 @@ const asEmail = {
|
|
|
95734
95792
|
}
|
|
95735
95793
|
};
|
|
95736
95794
|
var styles$2 = {
|
|
95737
|
-
"dbc-container": "_dbc-
|
|
95738
|
-
"active-dimension": "_active-
|
|
95795
|
+
"dbc-container": "_dbc-container_1dw7c_1",
|
|
95796
|
+
"active-dimension": "_active-dimension_1dw7c_5"
|
|
95739
95797
|
};
|
|
95740
95798
|
const DrillBreadCrumb = ({
|
|
95741
95799
|
dimensions,
|
|
@@ -96400,7 +96458,7 @@ const SingleValueCard = ({
|
|
|
96400
96458
|
const chartData = [{
|
|
96401
96459
|
value: singleValueData2[0]
|
|
96402
96460
|
}];
|
|
96403
|
-
const onChangeFilterValue = (name, value, customValue) => {
|
|
96461
|
+
const onChangeFilterValue = (name, value, customValue, stringValues) => {
|
|
96404
96462
|
if (customValue) {
|
|
96405
96463
|
setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
|
|
96406
96464
|
...rls,
|
|
@@ -96410,6 +96468,11 @@ const SingleValueCard = ({
|
|
|
96410
96468
|
...customValue
|
|
96411
96469
|
} : option2)
|
|
96412
96470
|
} : rls));
|
|
96471
|
+
} else if (stringValues) {
|
|
96472
|
+
setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
|
|
96473
|
+
...rls,
|
|
96474
|
+
value: stringValues.map((v4) => v4.value)
|
|
96475
|
+
} : rls));
|
|
96413
96476
|
} else {
|
|
96414
96477
|
setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
|
|
96415
96478
|
...rls,
|
|
@@ -96442,61 +96505,11 @@ const SingleValueCard = ({
|
|
|
96442
96505
|
})]
|
|
96443
96506
|
}), /* @__PURE__ */ jsxs("div", {
|
|
96444
96507
|
className: styles$6.features,
|
|
96445
|
-
children: [
|
|
96446
|
-
|
|
96447
|
-
|
|
96448
|
-
|
|
96449
|
-
|
|
96450
|
-
value: rlsConditions[0].value || rlsConditions[0].options[0],
|
|
96451
|
-
label: rlsConditions[0].value || rlsConditions[0].options[0]
|
|
96452
|
-
},
|
|
96453
|
-
options: rlsConditions[0].options.map((o2) => ({
|
|
96454
|
-
value: o2,
|
|
96455
|
-
label: o2
|
|
96456
|
-
})),
|
|
96457
|
-
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value)
|
|
96458
|
-
})
|
|
96459
|
-
}) : /* @__PURE__ */ jsx("div", {
|
|
96460
|
-
className: styles$6.metricFilter,
|
|
96461
|
-
children: /* @__PURE__ */ jsx(FloatingDropDown, {
|
|
96462
|
-
label: rlsConditions[0].name,
|
|
96463
|
-
selectedOption: {
|
|
96464
|
-
value: rlsConditions[0].value.name || rlsConditions[0].options[0].name,
|
|
96465
|
-
label: rlsConditions[0].value.name || rlsConditions[0].options[0].name
|
|
96466
|
-
},
|
|
96467
|
-
options: rlsConditions[0].options.map((o2) => ({
|
|
96468
|
-
value: o2.name,
|
|
96469
|
-
label: o2.name
|
|
96470
|
-
})),
|
|
96471
|
-
onChange: (option2) => onChangeFilterValue(rlsConditions[0].name, option2.value),
|
|
96472
|
-
children: rlsConditions[0].value === "Custom" ? /* @__PURE__ */ jsxs("div", {
|
|
96473
|
-
className: "p-1",
|
|
96474
|
-
children: [/* @__PURE__ */ jsx(InputField, {
|
|
96475
|
-
label: "From Date",
|
|
96476
|
-
type: "date",
|
|
96477
|
-
onChange: ({
|
|
96478
|
-
target: {
|
|
96479
|
-
value
|
|
96480
|
-
}
|
|
96481
|
-
}) => {
|
|
96482
|
-
onChangeFilterValue(rlsConditions[0].name, "Custom", {
|
|
96483
|
-
from: new Date(Date.parse(value))
|
|
96484
|
-
});
|
|
96485
|
-
}
|
|
96486
|
-
}), /* @__PURE__ */ jsx(InputField, {
|
|
96487
|
-
label: "To Date",
|
|
96488
|
-
type: "date",
|
|
96489
|
-
onChange: ({
|
|
96490
|
-
target: {
|
|
96491
|
-
value
|
|
96492
|
-
}
|
|
96493
|
-
}) => onChangeFilterValue(rlsConditions[0].name, "Custom", {
|
|
96494
|
-
to: new Date(Date.parse(value))
|
|
96495
|
-
})
|
|
96496
|
-
})]
|
|
96497
|
-
}) : null
|
|
96498
|
-
})
|
|
96499
|
-
})), (onEdit || onArchive) && /* @__PURE__ */ jsxs(PopoverMenu, {
|
|
96508
|
+
children: [/* @__PURE__ */ jsx(MetricFilterDropDown, {
|
|
96509
|
+
rlsConditions,
|
|
96510
|
+
onChangeFilterValue,
|
|
96511
|
+
companyId: metricItem == null ? void 0 : metricItem.companyId
|
|
96512
|
+
}), (onEdit || onArchive) && /* @__PURE__ */ jsxs(PopoverMenu, {
|
|
96500
96513
|
buttonClass: styles$6.popup,
|
|
96501
96514
|
button: /* @__PURE__ */ jsx(Icons, {
|
|
96502
96515
|
name: "more-icon",
|