@databrainhq/plugin 0.8.17 → 0.8.18

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
@@ -2645,17 +2645,17 @@ var classnames$1 = { exports: {} };
2645
2645
  })(classnames$1);
2646
2646
  var classnames = classnames$1.exports;
2647
2647
  var styles$G = {
2648
- "btn-primary": "_btn-primary_17kvk_1",
2649
- "btn-secondary": "_btn-secondary_17kvk_5",
2650
- "btn-reject": "_btn-reject_17kvk_9",
2651
- "btn-outlined": "_btn-outlined_17kvk_14",
2652
- "btn-tertiary": "_btn-tertiary_17kvk_18",
2653
- "btn-default": "_btn-default_17kvk_22",
2654
- "btn-large": "_btn-large_17kvk_25",
2655
- "btn-small": "_btn-small_17kvk_28",
2656
- "btn-xs": "_btn-xs_17kvk_31",
2657
- "btn-medium": "_btn-medium_17kvk_34",
2658
- "btn-11rem": "_btn-11rem_17kvk_38"
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"
2659
2659
  };
2660
2660
  var jsxRuntime = { exports: {} };
2661
2661
  var reactJsxRuntime_production_min = {};
@@ -4944,39 +4944,39 @@ let xe = "div", ne = S.RenderStrategy, re = C$2(function(e2, s2) {
4944
4944
  let n2 = useContext(F) !== null, m2 = s() !== null;
4945
4945
  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
4946
  }), We = Object.assign(q, { Child: Pe, Root: q });
4947
- const listBoxButton = "_listBoxButton_fw8xj_5";
4948
- const selectedOptionText = "_selectedOptionText_fw8xj_17";
4949
- const transitionDiv = "_transitionDiv_fw8xj_21";
4950
- const listboxButtonWrapper = "_listboxButtonWrapper_fw8xj_25";
4951
- const arrowicon = "_arrowicon_fw8xj_28";
4952
- const leave$2 = "_leave_fw8xj_31";
4953
- const leaveFrom$2 = "_leaveFrom_fw8xj_34";
4954
- const leaveTo$2 = "_leaveTo_fw8xj_37";
4955
- const notAvailable = "_notAvailable_fw8xj_40";
4956
- const option$1 = "_option_fw8xj_43";
4957
- const activeOption = "_activeOption_fw8xj_46";
4958
- const optionSelected = "_optionSelected_fw8xj_49";
4959
- const inactiveOption = "_inactiveOption_fw8xj_52";
4960
- const optionLabel = "_optionLabel_fw8xj_55";
4961
- const optionSubLabel = "_optionSubLabel_fw8xj_58";
4962
- const selectedLabel = "_selectedLabel_fw8xj_61";
4963
- const nonselectedLabel = "_nonselectedLabel_fw8xj_64";
4964
- const check = "_check_fw8xj_67";
4965
- const checkActive = "_checkActive_fw8xj_70";
4966
- const checkInactive = "_checkInactive_fw8xj_73";
4967
- const checkIcon$1 = "_checkIcon_fw8xj_76";
4968
- const checkIconSelected = "_checkIconSelected_fw8xj_79";
4969
- const checkIconUnselected = "_checkIconUnselected_fw8xj_82";
4970
- const loadMore$1 = "_loadMore_fw8xj_85";
4971
- const selectedList = "_selectedList_fw8xj_88";
4972
- const selectedListItem = "_selectedListItem_fw8xj_91";
4973
- const label$7 = "_label_fw8xj_94";
4974
- const clientText$1 = "_clientText_fw8xj_97";
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";
4975
4975
  var style = {
4976
- "listBox-label": "_listBox-label_fw8xj_1",
4977
- "listBoxButton-container": "_listBoxButton-container_fw8xj_5",
4976
+ "listBox-label": "_listBox-label_kdipy_1",
4977
+ "listBoxButton-container": "_listBoxButton-container_kdipy_9",
4978
4978
  listBoxButton,
4979
- "listBox-option": "_listBox-option_fw8xj_13",
4979
+ "listBox-option": "_listBox-option_kdipy_25",
4980
4980
  selectedOptionText,
4981
4981
  transitionDiv,
4982
4982
  listboxButtonWrapper,
@@ -5005,22 +5005,22 @@ var style = {
5005
5005
  label: label$7,
5006
5006
  clientText: clientText$1
5007
5007
  };
5008
- const primary = "_primary_18yak_1";
5009
- const secondary = "_secondary_18yak_5";
5010
- const tertiary = "_tertiary_18yak_10";
5008
+ const primary = "_primary_1ipyg_1";
5009
+ const secondary = "_secondary_1ipyg_9";
5010
+ const tertiary = "_tertiary_1ipyg_19";
5011
5011
  var styles$E = {
5012
5012
  primary,
5013
5013
  secondary,
5014
5014
  tertiary,
5015
- "font-18": "_font-18_18yak_14",
5016
- "font-20": "_font-20_18yak_18",
5017
- "font-14": "_font-14_18yak_22",
5018
- "font-14a": "_font-14a_18yak_26",
5019
- "font-14b": "_font-14b_18yak_30",
5020
- "font-14c": "_font-14c_18yak_34",
5021
- "font-14d": "_font-14d_18yak_38",
5022
- "font-15": "_font-15_18yak_42",
5023
- "font-34": "_font-34_18yak_45"
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"
5024
5024
  };
5025
5025
  const variants = {
5026
5026
  h1: "h1",
@@ -5048,10 +5048,10 @@ const Text = ({
5048
5048
  children: children2
5049
5049
  });
5050
5050
  };
5051
- const search$1 = "_search_1klck_1";
5051
+ const search$1 = "_search_qirxg_1";
5052
5052
  var styles$D = {
5053
- "searchTab-container": "_searchTab-container_1klck_1",
5054
- "searchTab-input": "_searchTab-input_1klck_5",
5053
+ "searchTab-container": "_searchTab-container_qirxg_1",
5054
+ "searchTab-input": "_searchTab-input_qirxg_9",
5055
5055
  search: search$1
5056
5056
  };
5057
5057
  const iconoirSearch = (props) => /* @__PURE__ */ jsx("svg", {
@@ -7142,22 +7142,22 @@ const ExternalMetricForm = ({
7142
7142
  })]
7143
7143
  });
7144
7144
  };
7145
- const container$d = "_container_q0qrl_1";
7146
- const wrapper$3 = "_wrapper_q0qrl_5";
7147
- const label$3 = "_label_q0qrl_9";
7148
- const floatingLabel = "_floatingLabel_q0qrl_13";
7149
- const clientText = "_clientText_q0qrl_17";
7150
- const normalText = "_normalText_q0qrl_21";
7151
- const dropdown$1 = "_dropdown_q0qrl_25";
7152
- const options = "_options_q0qrl_29";
7153
- const checkedOption = "_checkedOption_q0qrl_33";
7154
- const option = "_option_q0qrl_29";
7155
- const icon$1 = "_icon_q0qrl_41";
7156
- const text$2 = "_text_q0qrl_45";
7157
- const floatingText = "_floatingText_q0qrl_49";
7158
- const search = "_search_q0qrl_53";
7159
- const loadMore = "_loadMore_q0qrl_57";
7160
- const loadMoreIcon = "_loadMoreIcon_q0qrl_61";
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";
7161
7161
  var styles$u = {
7162
7162
  container: container$d,
7163
7163
  wrapper: wrapper$3,
@@ -8119,6 +8119,7 @@ const MultiFilterDropdown = React__default.memo(({
8119
8119
  autoSelected,
8120
8120
  onChange,
8121
8121
  selectedOptions,
8122
+ label: label2,
8122
8123
  ...rest
8123
8124
  }) => {
8124
8125
  const [data, setData] = useState([]);
@@ -8160,7 +8161,7 @@ const MultiFilterDropdown = React__default.memo(({
8160
8161
  }] : selectedOptions,
8161
8162
  isDisabled: !!filter2.defaultValue,
8162
8163
  options: data,
8163
- label: filter2.columnName,
8164
+ label: label2 || filter2.columnName,
8164
8165
  ...rest
8165
8166
  });
8166
8167
  });
@@ -86565,12 +86566,12 @@ const InfoTooltip = ({
86565
86566
  });
86566
86567
  };
86567
86568
  var styles$l = {
86568
- "header-container": "_header-container_t2r6v_1",
86569
- "btn-container": "_btn-container_t2r6v_5",
86570
- "back-btn": "_back-btn_t2r6v_9",
86571
- "sql-btn": "_sql-btn_t2r6v_13",
86572
- "save-btn": "_save-btn_t2r6v_17",
86573
- "save-btn-icon": "_save-btn-icon_t2r6v_21"
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"
86574
86575
  };
86575
86576
  const Header = ({
86576
86577
  setShowMetricCreateModal,
@@ -86623,20 +86624,20 @@ const Header = ({
86623
86624
  });
86624
86625
  };
86625
86626
  var styles$k = {
86626
- "create-btn": "_create-btn_ihjk8_1",
86627
- "modal-container": "_modal-container_ihjk8_5",
86628
- "query-modal": "_query-modal_ihjk8_9"
86627
+ "create-btn": "_create-btn_zxqu9_1",
86628
+ "modal-container": "_modal-container_zxqu9_9",
86629
+ "query-modal": "_query-modal_zxqu9_17"
86629
86630
  };
86630
- const container$7 = "_container_1q2ss_1";
86631
- const header$3 = "_header_1q2ss_5";
86632
- const wrapper$2 = "_wrapper_1q2ss_9";
86633
- const column = "_column_1q2ss_17";
86634
- const columnText$1 = "_columnText_1q2ss_21";
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";
86635
86636
  var styles$j = {
86636
86637
  container: container$7,
86637
86638
  header: header$3,
86638
86639
  wrapper: wrapper$2,
86639
- "col-container": "_col-container_1q2ss_13",
86640
+ "col-container": "_col-container_u2z1d_25",
86640
86641
  column,
86641
86642
  columnText: columnText$1
86642
86643
  };
@@ -88017,10 +88018,10 @@ const ChartTab = ({
88017
88018
  })]
88018
88019
  });
88019
88020
  };
88020
- const container$5 = "_container_yjeiv_1";
88021
- const wrapper$1 = "_wrapper_yjeiv_5";
88022
- const text = "_text_yjeiv_9";
88023
- const table$2 = "_table_yjeiv_12";
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";
88024
88025
  var styles$e = {
88025
88026
  container: container$5,
88026
88027
  wrapper: wrapper$1,
@@ -88053,16 +88054,16 @@ const InputTables = ({
88053
88054
  })
88054
88055
  });
88055
88056
  };
88056
- const container$4 = "_container_38zl3_1";
88057
- const header$1 = "_header_38zl3_5";
88058
- const tabButton$1 = "_tabButton_38zl3_16";
88059
- const selectedTab = "_selectedTab_38zl3_19";
88060
- const table$1 = "_table_38zl3_22";
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";
88061
88062
  var styles$d = {
88062
88063
  container: container$4,
88063
88064
  header: header$1,
88064
- "text-container": "_text-container_38zl3_9",
88065
- "btn-container": "_btn-container_38zl3_13",
88065
+ "text-container": "_text-container_127xg_17",
88066
+ "btn-container": "_btn-container_127xg_25",
88066
88067
  tabButton: tabButton$1,
88067
88068
  selectedTab,
88068
88069
  table: table$1
@@ -88143,17 +88144,17 @@ const TableTab = ({
88143
88144
  })]
88144
88145
  });
88145
88146
  };
88146
- const mainContainerUpdate = "_mainContainerUpdate_19iy1_4";
88147
- const wrapper = "_wrapper_19iy1_12";
88148
- const updateWrapper = "_updateWrapper_19iy1_15";
88149
- const updateWrapperContent = "_updateWrapperContent_19iy1_18";
88150
- const searchCommand = "_searchCommand_19iy1_21";
88151
- const tabButton = "_tabButton_19iy1_24";
88152
- const tabActive = "_tabActive_19iy1_27";
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";
88153
88154
  var styles$c = {
88154
- "main-container": "_main-container_19iy1_1",
88155
+ "main-container": "_main-container_o2f8j_1",
88155
88156
  mainContainerUpdate,
88156
- "outputTab-header": "_outputTab-header_19iy1_8",
88157
+ "outputTab-header": "_outputTab-header_o2f8j_15",
88157
88158
  wrapper,
88158
88159
  updateWrapper,
88159
88160
  updateWrapperContent,
@@ -88290,30 +88291,30 @@ const MetricOutput = ({
88290
88291
  })]
88291
88292
  });
88292
88293
  };
88293
- const fieldValueIcon = "_fieldValueIcon_z8ldj_25";
88294
- const fieldAddBtnIcon = "_fieldAddBtnIcon_z8ldj_33";
88295
- const group = "_group_z8ldj_1";
88296
- const tooltipWrapper = "_tooltipWrapper_z8ldj_45";
88297
- const tooltip = "_tooltip_z8ldj_45";
88298
- const dropdown = "_dropdown_z8ldj_57";
88299
- const filterDropdown = "_filterDropdown_z8ldj_61";
88300
- const filterValues = "_filterValues_z8ldj_65";
88301
- const columnText = "_columnText_z8ldj_69";
88302
- const disabled = "_disabled_z8ldj_73";
88303
- const checkIcon = "_checkIcon_z8ldj_77";
88304
- const generateButton = "_generateButton_z8ldj_81";
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";
88305
88306
  var styles$b = {
88306
- "form-container": "_form-container_z8ldj_1",
88307
- "field-container": "_field-container_z8ldj_5",
88308
- "field-label": "_field-label_z8ldj_9",
88309
- "field-wrapper": "_field-wrapper_z8ldj_13",
88310
- "field-inner-container": "_field-inner-container_z8ldj_17",
88311
- "field-value": "_field-value_z8ldj_21",
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",
88312
88313
  fieldValueIcon,
88313
- "field-add-btn": "_field-add-btn_z8ldj_29",
88314
+ "field-add-btn": "_field-add-btn_fl6kw_57",
88314
88315
  fieldAddBtnIcon,
88315
- "field-value-container": "_field-value-container_z8ldj_37",
88316
- "field-prompt": "_field-prompt_z8ldj_41",
88316
+ "field-value-container": "_field-value-container_fl6kw_73",
88317
+ "field-prompt": "_field-prompt_fl6kw_81",
88317
88318
  group,
88318
88319
  tooltipWrapper,
88319
88320
  tooltip,
@@ -88559,7 +88560,7 @@ const cteQuery = (queryStr, groupedConditions, dbName) => {
88559
88560
  const asStrings = Object.keys(groupedConditions).map(
88560
88561
  (key, index2) => `${cteNames[index2]} AS (
88561
88562
  SELECT * FROM ${groupedConditions[key][0].tableName} WHERE ${groupedConditions[key].map(
88562
- (c2) => c2.datatype === "date" ? `${c2.value}` : `${getConvertedColumn(c2.columnName, c2.datatype, dbName)} = ${typeof c2.value === "string" ? `'${c2.value}'` : c2.value}`
88563
+ (c2) => c2.datatype === "date" ? `${c2.value}` : `${getConvertedColumn(c2.columnName, c2.datatype, dbName)} ${Array.isArray(c2.value) ? "IN" : "="} ${Array.isArray(c2.value) ? `(${c2.value.map((v4) => typeof v4 === "string" ? `'${v4}'` : v4).join(", ")})` : typeof c2.value === "string" ? `'${c2.value}'` : c2.value}`
88563
88564
  ).join(" AND ")}
88564
88565
  )`
88565
88566
  );
@@ -89514,10 +89515,10 @@ const MetricForm = ({
89514
89515
  })]
89515
89516
  });
89516
89517
  };
89517
- const container$2 = "_container_rofqe_1";
89518
- const header = "_header_rofqe_5";
89519
- const enableGroupBy = "_enableGroupBy_rofqe_8";
89520
- const enableGroupButton = "_enableGroupButton_rofqe_11";
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";
89521
89522
  var styles$9 = {
89522
89523
  container: container$2,
89523
89524
  header,
@@ -95316,18 +95317,53 @@ const ChartImageDownloadButton = ({
95316
95317
  }), text2]
95317
95318
  });
95318
95319
  };
95319
- const metricFilter = "_metricFilter_k2gef_1";
95320
- const customContainer = "_customContainer_k2gef_4";
95320
+ const metricFilter = "_metricFilter_1xge8_1";
95321
+ const customContainer = "_customContainer_1xge8_7";
95321
95322
  var styles$5 = {
95322
95323
  metricFilter,
95323
95324
  customContainer
95324
95325
  };
95325
95326
  const MetricFilterDropDown = ({
95326
95327
  rlsConditions,
95327
- onChangeFilterValue
95328
+ onChangeFilterValue,
95329
+ companyId
95328
95330
  }) => {
95329
95331
  return /* @__PURE__ */ jsx("div", {
95330
- children: !!(rlsConditions == null ? void 0 : rlsConditions.length) && onChangeFilterValue ? rlsConditions[0].datatype !== "date" ? /* @__PURE__ */ jsx("div", {
95332
+ children: !!(rlsConditions == null ? void 0 : rlsConditions.length) && onChangeFilterValue ? rlsConditions[0].datatype !== "date" ? rlsConditions[0].datatype === "string" ? rlsConditions[0].options.length ? /* @__PURE__ */ jsx("div", {
95333
+ className: styles$5.metricFilter,
95334
+ children: /* @__PURE__ */ jsx(MultiFloatingDropDown, {
95335
+ selectedOptions: Array.isArray(rlsConditions[0].value) && rlsConditions[0].value.length ? rlsConditions[0].value.map((val) => ({
95336
+ label: val,
95337
+ value: val
95338
+ })) : [],
95339
+ options: rlsConditions[0].options.map((o2) => ({
95340
+ value: o2,
95341
+ label: o2
95342
+ })),
95343
+ onChange: (options2) => onChangeFilterValue(rlsConditions[0].name, options2 == null ? void 0 : options2[0].value, void 0, options2),
95344
+ labelVariant: "static",
95345
+ labelDesign: "client"
95346
+ })
95347
+ }) : /* @__PURE__ */ jsx("div", {
95348
+ className: styles$5.metricFilter,
95349
+ children: /* @__PURE__ */ jsx(MultiFilterDropdown, {
95350
+ selectedOptions: Array.isArray(rlsConditions[0].value) && rlsConditions[0].value.length ? rlsConditions[0].value.map((val) => ({
95351
+ label: val,
95352
+ value: val
95353
+ })) : [],
95354
+ onChange: (options2) => onChangeFilterValue(rlsConditions[0].name, options2 == null ? void 0 : options2[0].value, void 0, options2),
95355
+ filter: {
95356
+ tableName: rlsConditions[0].tableName,
95357
+ columnName: rlsConditions[0].columnName
95358
+ },
95359
+ companyId,
95360
+ isSearchEnabled: true,
95361
+ autoSelected: Array.isArray(rlsConditions[0].value) && !rlsConditions[0].value.length,
95362
+ labelVariant: "static",
95363
+ labelDesign: "client",
95364
+ label: " "
95365
+ })
95366
+ }) : /* @__PURE__ */ jsx("div", {
95331
95367
  className: styles$5.metricFilter,
95332
95368
  children: /* @__PURE__ */ jsx(FloatingDropDown, {
95333
95369
  label: rlsConditions[0].name,
@@ -95386,24 +95422,24 @@ const MetricFilterDropDown = ({
95386
95422
  }) : void 0
95387
95423
  });
95388
95424
  };
95389
- const container$1 = "_container_14i90_1";
95390
- const popover = "_popover_14i90_5";
95391
- const button = "_button_14i90_9";
95392
- const buttonOpen = "_buttonOpen_14i90_13";
95393
- const menu = "_menu_14i90_17";
95394
- const enter = "_enter_14i90_21";
95395
- const enterFrom = "_enterFrom_14i90_25";
95396
- const enterTo = "_enterTo_14i90_29";
95397
- const leave = "_leave_14i90_33";
95398
- const leaveFrom = "_leaveFrom_14i90_37";
95399
- const leaveTo = "_leaveTo_14i90_41";
95400
- const center = "_center_14i90_45";
95401
- const top = "_top_14i90_49";
95402
- const bottom = "_bottom_14i90_53";
95403
- const left = "_left_14i90_57";
95404
- const right = "_right_14i90_61";
95405
- const chartOptionBtn = "_chartOptionBtn_14i90_113";
95406
- const chartpopup = "_chartpopup_14i90_117";
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";
95407
95443
  var styles$4 = {
95408
95444
  container: container$1,
95409
95445
  popover,
@@ -95421,23 +95457,23 @@ var styles$4 = {
95421
95457
  bottom,
95422
95458
  left,
95423
95459
  right,
95424
- "left-top-end": "_left-top-end_14i90_65",
95425
- "right-top-end": "_right-top-end_14i90_69",
95426
- "left-bottom-end": "_left-bottom-end_14i90_73",
95427
- "right-bottom-end": "_right-bottom-end_14i90_77",
95428
- "top-left": "_top-left_14i90_81",
95429
- "top-right": "_top-right_14i90_85",
95430
- "bottom-left": "_bottom-left_14i90_89",
95431
- "bottom-right": "_bottom-right_14i90_93",
95432
- "left-top": "_left-top_14i90_65",
95433
- "left-bottom": "_left-bottom_14i90_73",
95434
- "right-top": "_right-top_14i90_69",
95435
- "right-bottom": "_right-bottom_14i90_77",
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",
95436
95472
  chartOptionBtn,
95437
95473
  chartpopup
95438
95474
  };
95439
- const fullscreen = "_fullscreen_1gpy3_1";
95440
- const loading = "_loading_1gpy3_5";
95475
+ const fullscreen = "_fullscreen_19jec_1";
95476
+ const loading = "_loading_19jec_9";
95441
95477
  var styles$3 = {
95442
95478
  fullscreen,
95443
95479
  loading
@@ -95698,8 +95734,8 @@ const asEmail = {
95698
95734
  }
95699
95735
  };
95700
95736
  var styles$2 = {
95701
- "dbc-container": "_dbc-container_1dw7c_1",
95702
- "active-dimension": "_active-dimension_1dw7c_5"
95737
+ "dbc-container": "_dbc-container_nmp4f_1",
95738
+ "active-dimension": "_active-dimension_nmp4f_9"
95703
95739
  };
95704
95740
  const DrillBreadCrumb = ({
95705
95741
  dimensions,
@@ -95932,7 +95968,7 @@ const MetricCard = ({
95932
95968
  updateDrilledData(dataDb, setGroupedData, drillDownSettings.selectedMeasures, drillDownSettings.selectedDimensions[0]);
95933
95969
  }
95934
95970
  }, [dataDb, drillDownSettings]);
95935
- const onChangeFilterValue = (name, value, customValue) => {
95971
+ const onChangeFilterValue = (name, value, customValue, stringValues) => {
95936
95972
  if (customValue) {
95937
95973
  setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
95938
95974
  ...rls,
@@ -95942,6 +95978,11 @@ const MetricCard = ({
95942
95978
  ...customValue
95943
95979
  } : option2)
95944
95980
  } : rls));
95981
+ } else if (stringValues) {
95982
+ setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
95983
+ ...rls,
95984
+ value: stringValues.map((v4) => v4.value)
95985
+ } : rls));
95945
95986
  } else {
95946
95987
  setRlsConditions((prev) => prev.map((rls) => rls.name === name ? {
95947
95988
  ...rls,
@@ -96013,7 +96054,8 @@ const MetricCard = ({
96013
96054
  className: styles$6.features,
96014
96055
  children: [/* @__PURE__ */ jsx(MetricFilterDropDown, {
96015
96056
  rlsConditions,
96016
- onChangeFilterValue
96057
+ onChangeFilterValue,
96058
+ companyId: metricItem == null ? void 0 : metricItem.companyId
96017
96059
  }), /* @__PURE__ */ jsxs(PopoverMenu, {
96018
96060
  buttonClass: styles$6.popup,
96019
96061
  button: /* @__PURE__ */ jsx(Icons, {
@@ -96989,7 +97031,8 @@ var index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
96989
97031
  ToggleButton,
96990
97032
  Icons,
96991
97033
  ChartPopup,
96992
- DrillBreadCrumb
97034
+ DrillBreadCrumb,
97035
+ MetricFilterDropDown
96993
97036
  }, Symbol.toStringTag, { value: "Module" }));
96994
97037
  const icOutlineFilterAltOff = (props) => /* @__PURE__ */ jsx("svg", {
96995
97038
  viewBox: "0 0 24 24",