@databrainhq/plugin 0.8.18 → 0.8.19
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/index.es.js +186 -239
- package/dist/index.umd.js +59 -59
- package/dist/style.css +1 -1
- 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", {
|
|
@@ -86566,12 +86559,12 @@ const InfoTooltip = ({
|
|
|
86566
86559
|
});
|
|
86567
86560
|
};
|
|
86568
86561
|
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-
|
|
86562
|
+
"header-container": "_header-container_t2r6v_1",
|
|
86563
|
+
"btn-container": "_btn-container_t2r6v_5",
|
|
86564
|
+
"back-btn": "_back-btn_t2r6v_9",
|
|
86565
|
+
"sql-btn": "_sql-btn_t2r6v_13",
|
|
86566
|
+
"save-btn": "_save-btn_t2r6v_17",
|
|
86567
|
+
"save-btn-icon": "_save-btn-icon_t2r6v_21"
|
|
86575
86568
|
};
|
|
86576
86569
|
const Header = ({
|
|
86577
86570
|
setShowMetricCreateModal,
|
|
@@ -86624,20 +86617,20 @@ const Header = ({
|
|
|
86624
86617
|
});
|
|
86625
86618
|
};
|
|
86626
86619
|
var styles$k = {
|
|
86627
|
-
"create-btn": "_create-
|
|
86628
|
-
"modal-container": "_modal-
|
|
86629
|
-
"query-modal": "_query-
|
|
86620
|
+
"create-btn": "_create-btn_ihjk8_1",
|
|
86621
|
+
"modal-container": "_modal-container_ihjk8_5",
|
|
86622
|
+
"query-modal": "_query-modal_ihjk8_9"
|
|
86630
86623
|
};
|
|
86631
|
-
const container$7 = "
|
|
86632
|
-
const header$3 = "
|
|
86633
|
-
const wrapper$2 = "
|
|
86634
|
-
const column = "
|
|
86635
|
-
const columnText$1 = "
|
|
86624
|
+
const container$7 = "_container_1q2ss_1";
|
|
86625
|
+
const header$3 = "_header_1q2ss_5";
|
|
86626
|
+
const wrapper$2 = "_wrapper_1q2ss_9";
|
|
86627
|
+
const column = "_column_1q2ss_17";
|
|
86628
|
+
const columnText$1 = "_columnText_1q2ss_21";
|
|
86636
86629
|
var styles$j = {
|
|
86637
86630
|
container: container$7,
|
|
86638
86631
|
header: header$3,
|
|
86639
86632
|
wrapper: wrapper$2,
|
|
86640
|
-
"col-container": "_col-
|
|
86633
|
+
"col-container": "_col-container_1q2ss_13",
|
|
86641
86634
|
column,
|
|
86642
86635
|
columnText: columnText$1
|
|
86643
86636
|
};
|
|
@@ -88018,10 +88011,10 @@ const ChartTab = ({
|
|
|
88018
88011
|
})]
|
|
88019
88012
|
});
|
|
88020
88013
|
};
|
|
88021
|
-
const container$5 = "
|
|
88022
|
-
const wrapper$1 = "
|
|
88023
|
-
const text = "
|
|
88024
|
-
const table$2 = "
|
|
88014
|
+
const container$5 = "_container_yjeiv_1";
|
|
88015
|
+
const wrapper$1 = "_wrapper_yjeiv_5";
|
|
88016
|
+
const text = "_text_yjeiv_9";
|
|
88017
|
+
const table$2 = "_table_yjeiv_12";
|
|
88025
88018
|
var styles$e = {
|
|
88026
88019
|
container: container$5,
|
|
88027
88020
|
wrapper: wrapper$1,
|
|
@@ -88054,16 +88047,16 @@ const InputTables = ({
|
|
|
88054
88047
|
})
|
|
88055
88048
|
});
|
|
88056
88049
|
};
|
|
88057
|
-
const container$4 = "
|
|
88058
|
-
const header$1 = "
|
|
88059
|
-
const tabButton$1 = "
|
|
88060
|
-
const selectedTab = "
|
|
88061
|
-
const table$1 = "
|
|
88050
|
+
const container$4 = "_container_38zl3_1";
|
|
88051
|
+
const header$1 = "_header_38zl3_5";
|
|
88052
|
+
const tabButton$1 = "_tabButton_38zl3_16";
|
|
88053
|
+
const selectedTab = "_selectedTab_38zl3_19";
|
|
88054
|
+
const table$1 = "_table_38zl3_22";
|
|
88062
88055
|
var styles$d = {
|
|
88063
88056
|
container: container$4,
|
|
88064
88057
|
header: header$1,
|
|
88065
|
-
"text-container": "_text-
|
|
88066
|
-
"btn-container": "_btn-
|
|
88058
|
+
"text-container": "_text-container_38zl3_9",
|
|
88059
|
+
"btn-container": "_btn-container_38zl3_13",
|
|
88067
88060
|
tabButton: tabButton$1,
|
|
88068
88061
|
selectedTab,
|
|
88069
88062
|
table: table$1
|
|
@@ -88144,17 +88137,17 @@ const TableTab = ({
|
|
|
88144
88137
|
})]
|
|
88145
88138
|
});
|
|
88146
88139
|
};
|
|
88147
|
-
const mainContainerUpdate = "
|
|
88148
|
-
const wrapper = "
|
|
88149
|
-
const updateWrapper = "
|
|
88150
|
-
const updateWrapperContent = "
|
|
88151
|
-
const searchCommand = "
|
|
88152
|
-
const tabButton = "
|
|
88153
|
-
const tabActive = "
|
|
88140
|
+
const mainContainerUpdate = "_mainContainerUpdate_19iy1_4";
|
|
88141
|
+
const wrapper = "_wrapper_19iy1_12";
|
|
88142
|
+
const updateWrapper = "_updateWrapper_19iy1_15";
|
|
88143
|
+
const updateWrapperContent = "_updateWrapperContent_19iy1_18";
|
|
88144
|
+
const searchCommand = "_searchCommand_19iy1_21";
|
|
88145
|
+
const tabButton = "_tabButton_19iy1_24";
|
|
88146
|
+
const tabActive = "_tabActive_19iy1_27";
|
|
88154
88147
|
var styles$c = {
|
|
88155
|
-
"main-container": "_main-
|
|
88148
|
+
"main-container": "_main-container_19iy1_1",
|
|
88156
88149
|
mainContainerUpdate,
|
|
88157
|
-
"outputTab-header": "_outputTab-
|
|
88150
|
+
"outputTab-header": "_outputTab-header_19iy1_8",
|
|
88158
88151
|
wrapper,
|
|
88159
88152
|
updateWrapper,
|
|
88160
88153
|
updateWrapperContent,
|
|
@@ -88291,30 +88284,30 @@ const MetricOutput = ({
|
|
|
88291
88284
|
})]
|
|
88292
88285
|
});
|
|
88293
88286
|
};
|
|
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 = "
|
|
88287
|
+
const fieldValueIcon = "_fieldValueIcon_z8ldj_25";
|
|
88288
|
+
const fieldAddBtnIcon = "_fieldAddBtnIcon_z8ldj_33";
|
|
88289
|
+
const group = "_group_z8ldj_1";
|
|
88290
|
+
const tooltipWrapper = "_tooltipWrapper_z8ldj_45";
|
|
88291
|
+
const tooltip = "_tooltip_z8ldj_45";
|
|
88292
|
+
const dropdown = "_dropdown_z8ldj_57";
|
|
88293
|
+
const filterDropdown = "_filterDropdown_z8ldj_61";
|
|
88294
|
+
const filterValues = "_filterValues_z8ldj_65";
|
|
88295
|
+
const columnText = "_columnText_z8ldj_69";
|
|
88296
|
+
const disabled = "_disabled_z8ldj_73";
|
|
88297
|
+
const checkIcon = "_checkIcon_z8ldj_77";
|
|
88298
|
+
const generateButton = "_generateButton_z8ldj_81";
|
|
88306
88299
|
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-
|
|
88300
|
+
"form-container": "_form-container_z8ldj_1",
|
|
88301
|
+
"field-container": "_field-container_z8ldj_5",
|
|
88302
|
+
"field-label": "_field-label_z8ldj_9",
|
|
88303
|
+
"field-wrapper": "_field-wrapper_z8ldj_13",
|
|
88304
|
+
"field-inner-container": "_field-inner-container_z8ldj_17",
|
|
88305
|
+
"field-value": "_field-value_z8ldj_21",
|
|
88313
88306
|
fieldValueIcon,
|
|
88314
|
-
"field-add-btn": "_field-add-
|
|
88307
|
+
"field-add-btn": "_field-add-btn_z8ldj_29",
|
|
88315
88308
|
fieldAddBtnIcon,
|
|
88316
|
-
"field-value-container": "_field-value-
|
|
88317
|
-
"field-prompt": "_field-
|
|
88309
|
+
"field-value-container": "_field-value-container_z8ldj_37",
|
|
88310
|
+
"field-prompt": "_field-prompt_z8ldj_41",
|
|
88318
88311
|
group,
|
|
88319
88312
|
tooltipWrapper,
|
|
88320
88313
|
tooltip,
|
|
@@ -89515,10 +89508,10 @@ const MetricForm = ({
|
|
|
89515
89508
|
})]
|
|
89516
89509
|
});
|
|
89517
89510
|
};
|
|
89518
|
-
const container$2 = "
|
|
89519
|
-
const header = "
|
|
89520
|
-
const enableGroupBy = "
|
|
89521
|
-
const enableGroupButton = "
|
|
89511
|
+
const container$2 = "_container_rofqe_1";
|
|
89512
|
+
const header = "_header_rofqe_5";
|
|
89513
|
+
const enableGroupBy = "_enableGroupBy_rofqe_8";
|
|
89514
|
+
const enableGroupButton = "_enableGroupButton_rofqe_11";
|
|
89522
89515
|
var styles$9 = {
|
|
89523
89516
|
container: container$2,
|
|
89524
89517
|
header,
|
|
@@ -95317,8 +95310,8 @@ const ChartImageDownloadButton = ({
|
|
|
95317
95310
|
}), text2]
|
|
95318
95311
|
});
|
|
95319
95312
|
};
|
|
95320
|
-
const metricFilter = "
|
|
95321
|
-
const customContainer = "
|
|
95313
|
+
const metricFilter = "_metricFilter_k2gef_1";
|
|
95314
|
+
const customContainer = "_customContainer_k2gef_4";
|
|
95322
95315
|
var styles$5 = {
|
|
95323
95316
|
metricFilter,
|
|
95324
95317
|
customContainer
|
|
@@ -95341,8 +95334,8 @@ const MetricFilterDropDown = ({
|
|
|
95341
95334
|
label: o2
|
|
95342
95335
|
})),
|
|
95343
95336
|
onChange: (options2) => onChangeFilterValue(rlsConditions[0].name, options2 == null ? void 0 : options2[0].value, void 0, options2),
|
|
95344
|
-
|
|
95345
|
-
|
|
95337
|
+
labelDesign: "client",
|
|
95338
|
+
label: rlsConditions[0].name
|
|
95346
95339
|
})
|
|
95347
95340
|
}) : /* @__PURE__ */ jsx("div", {
|
|
95348
95341
|
className: styles$5.metricFilter,
|
|
@@ -95359,9 +95352,8 @@ const MetricFilterDropDown = ({
|
|
|
95359
95352
|
companyId,
|
|
95360
95353
|
isSearchEnabled: true,
|
|
95361
95354
|
autoSelected: Array.isArray(rlsConditions[0].value) && !rlsConditions[0].value.length,
|
|
95362
|
-
labelVariant: "static",
|
|
95363
95355
|
labelDesign: "client",
|
|
95364
|
-
label:
|
|
95356
|
+
label: rlsConditions[0].name
|
|
95365
95357
|
})
|
|
95366
95358
|
}) : /* @__PURE__ */ jsx("div", {
|
|
95367
95359
|
className: styles$5.metricFilter,
|
|
@@ -95422,24 +95414,24 @@ const MetricFilterDropDown = ({
|
|
|
95422
95414
|
}) : void 0
|
|
95423
95415
|
});
|
|
95424
95416
|
};
|
|
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 = "
|
|
95417
|
+
const container$1 = "_container_14i90_1";
|
|
95418
|
+
const popover = "_popover_14i90_5";
|
|
95419
|
+
const button = "_button_14i90_9";
|
|
95420
|
+
const buttonOpen = "_buttonOpen_14i90_13";
|
|
95421
|
+
const menu = "_menu_14i90_17";
|
|
95422
|
+
const enter = "_enter_14i90_21";
|
|
95423
|
+
const enterFrom = "_enterFrom_14i90_25";
|
|
95424
|
+
const enterTo = "_enterTo_14i90_29";
|
|
95425
|
+
const leave = "_leave_14i90_33";
|
|
95426
|
+
const leaveFrom = "_leaveFrom_14i90_37";
|
|
95427
|
+
const leaveTo = "_leaveTo_14i90_41";
|
|
95428
|
+
const center = "_center_14i90_45";
|
|
95429
|
+
const top = "_top_14i90_49";
|
|
95430
|
+
const bottom = "_bottom_14i90_53";
|
|
95431
|
+
const left = "_left_14i90_57";
|
|
95432
|
+
const right = "_right_14i90_61";
|
|
95433
|
+
const chartOptionBtn = "_chartOptionBtn_14i90_113";
|
|
95434
|
+
const chartpopup = "_chartpopup_14i90_117";
|
|
95443
95435
|
var styles$4 = {
|
|
95444
95436
|
container: container$1,
|
|
95445
95437
|
popover,
|
|
@@ -95457,23 +95449,23 @@ var styles$4 = {
|
|
|
95457
95449
|
bottom,
|
|
95458
95450
|
left,
|
|
95459
95451
|
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-
|
|
95452
|
+
"left-top-end": "_left-top-end_14i90_65",
|
|
95453
|
+
"right-top-end": "_right-top-end_14i90_69",
|
|
95454
|
+
"left-bottom-end": "_left-bottom-end_14i90_73",
|
|
95455
|
+
"right-bottom-end": "_right-bottom-end_14i90_77",
|
|
95456
|
+
"top-left": "_top-left_14i90_81",
|
|
95457
|
+
"top-right": "_top-right_14i90_85",
|
|
95458
|
+
"bottom-left": "_bottom-left_14i90_89",
|
|
95459
|
+
"bottom-right": "_bottom-right_14i90_93",
|
|
95460
|
+
"left-top": "_left-top_14i90_65",
|
|
95461
|
+
"left-bottom": "_left-bottom_14i90_73",
|
|
95462
|
+
"right-top": "_right-top_14i90_69",
|
|
95463
|
+
"right-bottom": "_right-bottom_14i90_77",
|
|
95472
95464
|
chartOptionBtn,
|
|
95473
95465
|
chartpopup
|
|
95474
95466
|
};
|
|
95475
|
-
const fullscreen = "
|
|
95476
|
-
const loading = "
|
|
95467
|
+
const fullscreen = "_fullscreen_1gpy3_1";
|
|
95468
|
+
const loading = "_loading_1gpy3_5";
|
|
95477
95469
|
var styles$3 = {
|
|
95478
95470
|
fullscreen,
|
|
95479
95471
|
loading
|
|
@@ -95734,8 +95726,8 @@ const asEmail = {
|
|
|
95734
95726
|
}
|
|
95735
95727
|
};
|
|
95736
95728
|
var styles$2 = {
|
|
95737
|
-
"dbc-container": "_dbc-
|
|
95738
|
-
"active-dimension": "_active-
|
|
95729
|
+
"dbc-container": "_dbc-container_1dw7c_1",
|
|
95730
|
+
"active-dimension": "_active-dimension_1dw7c_5"
|
|
95739
95731
|
};
|
|
95740
95732
|
const DrillBreadCrumb = ({
|
|
95741
95733
|
dimensions,
|
|
@@ -96400,7 +96392,7 @@ const SingleValueCard = ({
|
|
|
96400
96392
|
const chartData = [{
|
|
96401
96393
|
value: singleValueData2[0]
|
|
96402
96394
|
}];
|
|
96403
|
-
const onChangeFilterValue = (name, value, customValue) => {
|
|
96395
|
+
const onChangeFilterValue = (name, value, customValue, stringValues) => {
|
|
96404
96396
|
if (customValue) {
|
|
96405
96397
|
setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
|
|
96406
96398
|
...rls,
|
|
@@ -96410,6 +96402,11 @@ const SingleValueCard = ({
|
|
|
96410
96402
|
...customValue
|
|
96411
96403
|
} : option2)
|
|
96412
96404
|
} : rls));
|
|
96405
|
+
} else if (stringValues) {
|
|
96406
|
+
setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
|
|
96407
|
+
...rls,
|
|
96408
|
+
value: stringValues.map((v4) => v4.value)
|
|
96409
|
+
} : rls));
|
|
96413
96410
|
} else {
|
|
96414
96411
|
setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
|
|
96415
96412
|
...rls,
|
|
@@ -96442,61 +96439,11 @@ const SingleValueCard = ({
|
|
|
96442
96439
|
})]
|
|
96443
96440
|
}), /* @__PURE__ */ jsxs("div", {
|
|
96444
96441
|
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, {
|
|
96442
|
+
children: [/* @__PURE__ */ jsx(MetricFilterDropDown, {
|
|
96443
|
+
rlsConditions,
|
|
96444
|
+
onChangeFilterValue,
|
|
96445
|
+
companyId: metricItem == null ? void 0 : metricItem.companyId
|
|
96446
|
+
}), (onEdit || onArchive) && /* @__PURE__ */ jsxs(PopoverMenu, {
|
|
96500
96447
|
buttonClass: styles$6.popup,
|
|
96501
96448
|
button: /* @__PURE__ */ jsx(Icons, {
|
|
96502
96449
|
name: "more-icon",
|