@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/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-primary_u81u9_1",
2649
- "btn-secondary": "_btn-secondary_u81u9_9",
2650
- "btn-reject": "_btn-reject_u81u9_17",
2651
- "btn-outlined": "_btn-outlined_u81u9_27",
2652
- "btn-tertiary": "_btn-tertiary_u81u9_35",
2653
- "btn-default": "_btn-default_u81u9_43",
2654
- "btn-large": "_btn-large_u81u9_49",
2655
- "btn-small": "_btn-small_u81u9_55",
2656
- "btn-xs": "_btn-xs_u81u9_61",
2657
- "btn-medium": "_btn-medium_u81u9_67",
2658
- "btn-11rem": "_btn-11rem_u81u9_75"
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 = "_listBoxButton_kdipy_9";
4948
- const selectedOptionText = "_selectedOptionText_kdipy_33";
4949
- const transitionDiv = "_transitionDiv_kdipy_41";
4950
- const listboxButtonWrapper = "_listboxButtonWrapper_kdipy_49";
4951
- const arrowicon = "_arrowicon_kdipy_55";
4952
- const leave$2 = "_leave_kdipy_61";
4953
- const leaveFrom$2 = "_leaveFrom_kdipy_67";
4954
- const leaveTo$2 = "_leaveTo_kdipy_73";
4955
- const notAvailable = "_notAvailable_kdipy_79";
4956
- const option$1 = "_option_kdipy_85";
4957
- const activeOption = "_activeOption_kdipy_91";
4958
- const optionSelected = "_optionSelected_kdipy_97";
4959
- const inactiveOption = "_inactiveOption_kdipy_103";
4960
- const optionLabel = "_optionLabel_kdipy_109";
4961
- const optionSubLabel = "_optionSubLabel_kdipy_115";
4962
- const selectedLabel = "_selectedLabel_kdipy_121";
4963
- const nonselectedLabel = "_nonselectedLabel_kdipy_127";
4964
- const check = "_check_kdipy_133";
4965
- const checkActive = "_checkActive_kdipy_139";
4966
- const checkInactive = "_checkInactive_kdipy_145";
4967
- const checkIcon$1 = "_checkIcon_kdipy_151";
4968
- const checkIconSelected = "_checkIconSelected_kdipy_157";
4969
- const checkIconUnselected = "_checkIconUnselected_kdipy_163";
4970
- const loadMore$1 = "_loadMore_kdipy_169";
4971
- const selectedList = "_selectedList_kdipy_175";
4972
- const selectedListItem = "_selectedListItem_kdipy_181";
4973
- const label$7 = "_label_kdipy_187";
4974
- const clientText$1 = "_clientText_kdipy_193";
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-label_kdipy_1",
4977
- "listBoxButton-container": "_listBoxButton-container_kdipy_9",
4968
+ "listBox-label": "_listBox-label_fw8xj_1",
4969
+ "listBoxButton-container": "_listBoxButton-container_fw8xj_5",
4978
4970
  listBoxButton,
4979
- "listBox-option": "_listBox-option_kdipy_25",
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 = "_primary_1ipyg_1";
5009
- const secondary = "_secondary_1ipyg_9";
5010
- const tertiary = "_tertiary_1ipyg_19";
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-18_1ipyg_27",
5016
- "font-20": "_font-20_1ipyg_35",
5017
- "font-14": "_font-14_1ipyg_43",
5018
- "font-14a": "_font-14a_1ipyg_51",
5019
- "font-14b": "_font-14b_1ipyg_59",
5020
- "font-14c": "_font-14c_1ipyg_67",
5021
- "font-14d": "_font-14d_1ipyg_75",
5022
- "font-15": "_font-15_1ipyg_83",
5023
- "font-34": "_font-34_1ipyg_89"
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 = "_search_qirxg_1";
5043
+ const search$1 = "_search_1klck_1";
5052
5044
  var styles$D = {
5053
- "searchTab-container": "_searchTab-container_qirxg_1",
5054
- "searchTab-input": "_searchTab-input_qirxg_9",
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 = "_container_1b6ua_1";
7146
- const wrapper$3 = "_wrapper_1b6ua_9";
7147
- const label$3 = "_label_1b6ua_17";
7148
- const floatingLabel = "_floatingLabel_1b6ua_25";
7149
- const clientText = "_clientText_1b6ua_33";
7150
- const normalText = "_normalText_1b6ua_41";
7151
- const dropdown$1 = "_dropdown_1b6ua_49";
7152
- const options = "_options_1b6ua_57";
7153
- const checkedOption = "_checkedOption_1b6ua_65";
7154
- const option = "_option_1b6ua_57";
7155
- const icon$1 = "_icon_1b6ua_81";
7156
- const text$2 = "_text_1b6ua_89";
7157
- const floatingText = "_floatingText_1b6ua_97";
7158
- const search = "_search_1b6ua_105";
7159
- const loadMore = "_loadMore_1b6ua_113";
7160
- const loadMoreIcon = "_loadMoreIcon_1b6ua_121";
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" ? "absolute left-2 top-1 text-xs" : ""}`,
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" ? "mt-2.5" : "",
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-container_1pbz4_1",
86570
- "btn-container": "_btn-container_1pbz4_9",
86571
- "back-btn": "_back-btn_1pbz4_17",
86572
- "sql-btn": "_sql-btn_1pbz4_25",
86573
- "save-btn": "_save-btn_1pbz4_33",
86574
- "save-btn-icon": "_save-btn-icon_1pbz4_41"
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-btn_zxqu9_1",
86628
- "modal-container": "_modal-container_zxqu9_9",
86629
- "query-modal": "_query-modal_zxqu9_17"
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 = "_container_u2z1d_1";
86632
- const header$3 = "_header_u2z1d_9";
86633
- const wrapper$2 = "_wrapper_u2z1d_17";
86634
- const column = "_column_u2z1d_33";
86635
- const columnText$1 = "_columnText_u2z1d_41";
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-container_u2z1d_25",
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 = "_container_wjdaz_1";
88022
- const wrapper$1 = "_wrapper_wjdaz_9";
88023
- const text = "_text_wjdaz_17";
88024
- const table$2 = "_table_wjdaz_23";
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 = "_container_127xg_1";
88058
- const header$1 = "_header_127xg_9";
88059
- const tabButton$1 = "_tabButton_127xg_31";
88060
- const selectedTab = "_selectedTab_127xg_37";
88061
- const table$1 = "_table_127xg_43";
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-container_127xg_17",
88066
- "btn-container": "_btn-container_127xg_25",
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 = "_mainContainerUpdate_o2f8j_7";
88148
- const wrapper = "_wrapper_o2f8j_23";
88149
- const updateWrapper = "_updateWrapper_o2f8j_29";
88150
- const updateWrapperContent = "_updateWrapperContent_o2f8j_35";
88151
- const searchCommand = "_searchCommand_o2f8j_41";
88152
- const tabButton = "_tabButton_o2f8j_47";
88153
- const tabActive = "_tabActive_o2f8j_53";
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-container_o2f8j_1",
88148
+ "main-container": "_main-container_19iy1_1",
88156
88149
  mainContainerUpdate,
88157
- "outputTab-header": "_outputTab-header_o2f8j_15",
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 = "_fieldValueIcon_fl6kw_49";
88295
- const fieldAddBtnIcon = "_fieldAddBtnIcon_fl6kw_65";
88296
- const group = "_group_fl6kw_1";
88297
- const tooltipWrapper = "_tooltipWrapper_fl6kw_89";
88298
- const tooltip = "_tooltip_fl6kw_89";
88299
- const dropdown = "_dropdown_fl6kw_113";
88300
- const filterDropdown = "_filterDropdown_fl6kw_121";
88301
- const filterValues = "_filterValues_fl6kw_129";
88302
- const columnText = "_columnText_fl6kw_137";
88303
- const disabled = "_disabled_fl6kw_145";
88304
- const checkIcon = "_checkIcon_fl6kw_153";
88305
- const generateButton = "_generateButton_fl6kw_161";
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-container_fl6kw_1",
88308
- "field-container": "_field-container_fl6kw_9",
88309
- "field-label": "_field-label_fl6kw_17",
88310
- "field-wrapper": "_field-wrapper_fl6kw_25",
88311
- "field-inner-container": "_field-inner-container_fl6kw_33",
88312
- "field-value": "_field-value_fl6kw_41",
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-btn_fl6kw_57",
88307
+ "field-add-btn": "_field-add-btn_z8ldj_29",
88315
88308
  fieldAddBtnIcon,
88316
- "field-value-container": "_field-value-container_fl6kw_73",
88317
- "field-prompt": "_field-prompt_fl6kw_81",
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 = "_container_1v000_1";
89519
- const header = "_header_1v000_9";
89520
- const enableGroupBy = "_enableGroupBy_1v000_15";
89521
- const enableGroupButton = "_enableGroupButton_1v000_21";
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 = "_metricFilter_1xge8_1";
95321
- const customContainer = "_customContainer_1xge8_7";
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
- labelVariant: "static",
95345
- labelDesign: "client"
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 = "_container_a6fvx_1";
95426
- const popover = "_popover_a6fvx_9";
95427
- const button = "_button_a6fvx_17";
95428
- const buttonOpen = "_buttonOpen_a6fvx_25";
95429
- const menu = "_menu_a6fvx_33";
95430
- const enter = "_enter_a6fvx_41";
95431
- const enterFrom = "_enterFrom_a6fvx_49";
95432
- const enterTo = "_enterTo_a6fvx_57";
95433
- const leave = "_leave_a6fvx_65";
95434
- const leaveFrom = "_leaveFrom_a6fvx_73";
95435
- const leaveTo = "_leaveTo_a6fvx_81";
95436
- const center = "_center_a6fvx_89";
95437
- const top = "_top_a6fvx_97";
95438
- const bottom = "_bottom_a6fvx_105";
95439
- const left = "_left_a6fvx_113";
95440
- const right = "_right_a6fvx_121";
95441
- const chartOptionBtn = "_chartOptionBtn_a6fvx_225";
95442
- const chartpopup = "_chartpopup_a6fvx_233";
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-end_a6fvx_129",
95461
- "right-top-end": "_right-top-end_a6fvx_137",
95462
- "left-bottom-end": "_left-bottom-end_a6fvx_145",
95463
- "right-bottom-end": "_right-bottom-end_a6fvx_153",
95464
- "top-left": "_top-left_a6fvx_161",
95465
- "top-right": "_top-right_a6fvx_169",
95466
- "bottom-left": "_bottom-left_a6fvx_177",
95467
- "bottom-right": "_bottom-right_a6fvx_185",
95468
- "left-top": "_left-top_a6fvx_129",
95469
- "left-bottom": "_left-bottom_a6fvx_145",
95470
- "right-top": "_right-top_a6fvx_137",
95471
- "right-bottom": "_right-bottom_a6fvx_153",
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 = "_fullscreen_19jec_1";
95476
- const loading = "_loading_19jec_9";
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-container_nmp4f_1",
95738
- "active-dimension": "_active-dimension_nmp4f_9"
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: [!!rlsConditions.length && (rlsConditions[0].datatype !== "date" ? /* @__PURE__ */ jsx("div", {
96446
- className: styles$6.metricFilter,
96447
- children: /* @__PURE__ */ jsx(FloatingDropDown, {
96448
- label: rlsConditions[0].name,
96449
- selectedOption: {
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",