@databrainhq/plugin 0.9.8 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2648,17 +2648,17 @@ var classnames$1 = { exports: {} };
2648
2648
  })(classnames$1);
2649
2649
  var classnames = classnames$1.exports;
2650
2650
  var styles$K = {
2651
- "btn-primary": "_btn-primary_u81u9_1",
2652
- "btn-secondary": "_btn-secondary_u81u9_9",
2653
- "btn-reject": "_btn-reject_u81u9_17",
2654
- "btn-outlined": "_btn-outlined_u81u9_27",
2655
- "btn-tertiary": "_btn-tertiary_u81u9_35",
2656
- "btn-default": "_btn-default_u81u9_43",
2657
- "btn-large": "_btn-large_u81u9_49",
2658
- "btn-small": "_btn-small_u81u9_55",
2659
- "btn-xs": "_btn-xs_u81u9_61",
2660
- "btn-medium": "_btn-medium_u81u9_67",
2661
- "btn-11rem": "_btn-11rem_u81u9_75"
2651
+ "btn-primary": "_btn-primary_17kvk_1",
2652
+ "btn-secondary": "_btn-secondary_17kvk_5",
2653
+ "btn-reject": "_btn-reject_17kvk_9",
2654
+ "btn-outlined": "_btn-outlined_17kvk_14",
2655
+ "btn-tertiary": "_btn-tertiary_17kvk_18",
2656
+ "btn-default": "_btn-default_17kvk_22",
2657
+ "btn-large": "_btn-large_17kvk_25",
2658
+ "btn-small": "_btn-small_17kvk_28",
2659
+ "btn-xs": "_btn-xs_17kvk_31",
2660
+ "btn-medium": "_btn-medium_17kvk_34",
2661
+ "btn-11rem": "_btn-11rem_17kvk_38"
2662
2662
  };
2663
2663
  var jsxRuntime$1 = { exports: {} };
2664
2664
  var reactJsxRuntime_production_min = {};
@@ -4953,42 +4953,42 @@ let xe = "div", ne = S.RenderStrategy, re = C$2(function(e2, s2) {
4953
4953
  let n2 = useContext(F) !== null, m2 = s() !== null;
4954
4954
  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 }));
4955
4955
  }), We = Object.assign(q, { Child: Pe, Root: q });
4956
- const listBoxButton = "_listBoxButton_ln4ru_17";
4957
- const selectedOptionText = "_selectedOptionText_ln4ru_49";
4958
- const transitionDiv = "_transitionDiv_ln4ru_57";
4959
- const listboxButtonWrapper = "_listboxButtonWrapper_ln4ru_65";
4960
- const arrowicon = "_arrowicon_ln4ru_71";
4961
- const leave$2 = "_leave_ln4ru_77";
4962
- const leaveFrom$2 = "_leaveFrom_ln4ru_83";
4963
- const leaveTo$2 = "_leaveTo_ln4ru_89";
4964
- const notAvailable = "_notAvailable_ln4ru_95";
4965
- const option$1 = "_option_ln4ru_101";
4966
- const activeOption = "_activeOption_ln4ru_107";
4967
- const optionSelected = "_optionSelected_ln4ru_113";
4968
- const inactiveOption = "_inactiveOption_ln4ru_119";
4969
- const optionLabel = "_optionLabel_ln4ru_125";
4970
- const optionSubLabel = "_optionSubLabel_ln4ru_131";
4971
- const selectedLabel = "_selectedLabel_ln4ru_137";
4972
- const nonselectedLabel = "_nonselectedLabel_ln4ru_143";
4973
- const check = "_check_ln4ru_149";
4974
- const checkActive = "_checkActive_ln4ru_155";
4975
- const checkInactive = "_checkInactive_ln4ru_161";
4976
- const checkIcon$1 = "_checkIcon_ln4ru_167";
4977
- const checkIconSelected = "_checkIconSelected_ln4ru_173";
4978
- const checkIconUnselected = "_checkIconUnselected_ln4ru_179";
4979
- const loadMore$1 = "_loadMore_ln4ru_185";
4980
- const loadMoreIcon$1 = "_loadMoreIcon_ln4ru_191";
4981
- const selectedList = "_selectedList_ln4ru_197";
4982
- const selectedListItem = "_selectedListItem_ln4ru_203";
4983
- const label$7 = "_label_ln4ru_209";
4984
- const clientText$1 = "_clientText_ln4ru_215";
4956
+ const listBoxButton = "_listBoxButton_1jb3f_9";
4957
+ const selectedOptionText = "_selectedOptionText_1jb3f_25";
4958
+ const transitionDiv = "_transitionDiv_1jb3f_29";
4959
+ const listboxButtonWrapper = "_listboxButtonWrapper_1jb3f_33";
4960
+ const arrowicon = "_arrowicon_1jb3f_36";
4961
+ const leave$2 = "_leave_1jb3f_39";
4962
+ const leaveFrom$2 = "_leaveFrom_1jb3f_42";
4963
+ const leaveTo$2 = "_leaveTo_1jb3f_45";
4964
+ const notAvailable = "_notAvailable_1jb3f_48";
4965
+ const option$1 = "_option_1jb3f_51";
4966
+ const activeOption = "_activeOption_1jb3f_54";
4967
+ const optionSelected = "_optionSelected_1jb3f_57";
4968
+ const inactiveOption = "_inactiveOption_1jb3f_60";
4969
+ const optionLabel = "_optionLabel_1jb3f_63";
4970
+ const optionSubLabel = "_optionSubLabel_1jb3f_66";
4971
+ const selectedLabel = "_selectedLabel_1jb3f_69";
4972
+ const nonselectedLabel = "_nonselectedLabel_1jb3f_72";
4973
+ const check = "_check_1jb3f_75";
4974
+ const checkActive = "_checkActive_1jb3f_78";
4975
+ const checkInactive = "_checkInactive_1jb3f_81";
4976
+ const checkIcon$1 = "_checkIcon_1jb3f_84";
4977
+ const checkIconSelected = "_checkIconSelected_1jb3f_87";
4978
+ const checkIconUnselected = "_checkIconUnselected_1jb3f_90";
4979
+ const loadMore$1 = "_loadMore_1jb3f_93";
4980
+ const loadMoreIcon$1 = "_loadMoreIcon_1jb3f_96";
4981
+ const selectedList = "_selectedList_1jb3f_99";
4982
+ const selectedListItem = "_selectedListItem_1jb3f_102";
4983
+ const label$7 = "_label_1jb3f_105";
4984
+ const clientText$1 = "_clientText_1jb3f_108";
4985
4985
  var style = {
4986
- "listBox-label": "_listBox-label_ln4ru_1",
4987
- "listBox-labelFloating": "_listBox-labelFloating_ln4ru_9",
4988
- "listBoxButton-container": "_listBoxButton-container_ln4ru_17",
4989
- "listBoxButton-containerFloating": "_listBoxButton-containerFloating_ln4ru_25",
4986
+ "listBox-label": "_listBox-label_1jb3f_1",
4987
+ "listBox-labelFloating": "_listBox-labelFloating_1jb3f_5",
4988
+ "listBoxButton-container": "_listBoxButton-container_1jb3f_9",
4989
+ "listBoxButton-containerFloating": "_listBoxButton-containerFloating_1jb3f_13",
4990
4990
  listBoxButton,
4991
- "listBox-option": "_listBox-option_ln4ru_41",
4991
+ "listBox-option": "_listBox-option_1jb3f_21",
4992
4992
  selectedOptionText,
4993
4993
  transitionDiv,
4994
4994
  listboxButtonWrapper,
@@ -5018,22 +5018,22 @@ var style = {
5018
5018
  label: label$7,
5019
5019
  clientText: clientText$1
5020
5020
  };
5021
- const primary$1 = "_primary_1ipyg_1";
5022
- const secondary = "_secondary_1ipyg_9";
5023
- const tertiary = "_tertiary_1ipyg_19";
5021
+ const primary$1 = "_primary_18yak_1";
5022
+ const secondary = "_secondary_18yak_5";
5023
+ const tertiary = "_tertiary_18yak_10";
5024
5024
  var styles$I = {
5025
5025
  primary: primary$1,
5026
5026
  secondary,
5027
5027
  tertiary,
5028
- "font-18": "_font-18_1ipyg_27",
5029
- "font-20": "_font-20_1ipyg_35",
5030
- "font-14": "_font-14_1ipyg_43",
5031
- "font-14a": "_font-14a_1ipyg_51",
5032
- "font-14b": "_font-14b_1ipyg_59",
5033
- "font-14c": "_font-14c_1ipyg_67",
5034
- "font-14d": "_font-14d_1ipyg_75",
5035
- "font-15": "_font-15_1ipyg_83",
5036
- "font-34": "_font-34_1ipyg_89"
5028
+ "font-18": "_font-18_18yak_14",
5029
+ "font-20": "_font-20_18yak_18",
5030
+ "font-14": "_font-14_18yak_22",
5031
+ "font-14a": "_font-14a_18yak_26",
5032
+ "font-14b": "_font-14b_18yak_30",
5033
+ "font-14c": "_font-14c_18yak_34",
5034
+ "font-14d": "_font-14d_18yak_38",
5035
+ "font-15": "_font-15_18yak_42",
5036
+ "font-34": "_font-34_18yak_45"
5037
5037
  };
5038
5038
  const variants = {
5039
5039
  h1: "h1",
@@ -5061,10 +5061,10 @@ const Text = ({
5061
5061
  children: children2
5062
5062
  });
5063
5063
  };
5064
- const search$1 = "_search_qirxg_1";
5064
+ const search$1 = "_search_1klck_1";
5065
5065
  var styles$H = {
5066
- "searchTab-container": "_searchTab-container_qirxg_1",
5067
- "searchTab-input": "_searchTab-input_qirxg_9",
5066
+ "searchTab-container": "_searchTab-container_1klck_1",
5067
+ "searchTab-input": "_searchTab-input_1klck_5",
5068
5068
  search: search$1
5069
5069
  };
5070
5070
  const iconoirSearch = (props) => /* @__PURE__ */ jsx("svg", {
@@ -7361,23 +7361,23 @@ const ExternalMetricForm = ({
7361
7361
  })]
7362
7362
  });
7363
7363
  };
7364
- const container$d = "_container_1dkbf_1";
7365
- const wrapper$2 = "_wrapper_1dkbf_9";
7366
- const label$3 = "_label_1dkbf_17";
7367
- const floatingLabel = "_floatingLabel_1dkbf_25";
7368
- const floatingText = "_floatingText_1dkbf_31";
7369
- const clientText = "_clientText_1dkbf_39";
7370
- const normalText = "_normalText_1dkbf_47";
7371
- const dropdown$1 = "_dropdown_1dkbf_55";
7372
- const options = "_options_1dkbf_63";
7373
- const checkedOption = "_checkedOption_1dkbf_71";
7374
- const option = "_option_1dkbf_63";
7375
- const icon$1 = "_icon_1dkbf_87";
7376
- const text$1 = "_text_1dkbf_95";
7377
- const search = "_search_1dkbf_103";
7378
- const loadMore = "_loadMore_1dkbf_111";
7379
- const loadMoreIcon = "_loadMoreIcon_1dkbf_119";
7380
- const aboveList = "_aboveList_1dkbf_127";
7364
+ const container$d = "_container_1f7qx_1";
7365
+ const wrapper$2 = "_wrapper_1f7qx_5";
7366
+ const label$3 = "_label_1f7qx_9";
7367
+ const floatingLabel = "_floatingLabel_1f7qx_13";
7368
+ const floatingText = "_floatingText_1f7qx_16";
7369
+ const clientText = "_clientText_1f7qx_20";
7370
+ const normalText = "_normalText_1f7qx_24";
7371
+ const dropdown$1 = "_dropdown_1f7qx_28";
7372
+ const options = "_options_1f7qx_32";
7373
+ const checkedOption = "_checkedOption_1f7qx_36";
7374
+ const option = "_option_1f7qx_32";
7375
+ const icon$1 = "_icon_1f7qx_44";
7376
+ const text$1 = "_text_1f7qx_48";
7377
+ const search = "_search_1f7qx_52";
7378
+ const loadMore = "_loadMore_1f7qx_56";
7379
+ const loadMoreIcon = "_loadMoreIcon_1f7qx_60";
7380
+ const aboveList = "_aboveList_1f7qx_64";
7381
7381
  var styles$y = {
7382
7382
  container: container$d,
7383
7383
  wrapper: wrapper$2,
@@ -85673,46 +85673,50 @@ function getAccessorAttributes(accessor) {
85673
85673
  ...accessor
85674
85674
  };
85675
85675
  }
85676
- const tableData = "_tableData_1bay1_7";
85677
- const tableHeadCol$1 = "_tableHeadCol_1bay1_13";
85678
- const tableRow$1 = "_tableRow_1bay1_19";
85679
- const tableRowCol$1 = "_tableRowCol_1bay1_25";
85680
- const row = "_row_1bay1_31";
85681
- const container$b = "_container_1bay1_37";
85682
- const table$2 = "_table_1bay1_1";
85683
- const previewTable = "_previewTable_1bay1_49";
85684
- const preview = "_preview_1bay1_49";
85685
- const searchButton = "_searchButton_1bay1_61";
85686
- const previewText = "_previewText_1bay1_67";
85687
- const noData$1 = "_noData_1bay1_73";
85688
- const error$2 = "_error_1bay1_79";
85689
- const errorMsg = "_errorMsg_1bay1_85";
85690
- const tableIcon = "_tableIcon_1bay1_91";
85691
- const stripedRow = "_stripedRow_1bay1_97";
85692
- const rowHover = "_rowHover_1bay1_103";
85693
- const rightBorder = "_rightBorder_1bay1_109";
85694
- const searchContainer = "_searchContainer_1bay1_115";
85695
- const sortButton = "_sortButton_1bay1_121";
85696
- const searchTab = "_searchTab_1bay1_127";
85697
- const searchTabInput = "_searchTabInput_1bay1_133";
85698
- const searchTabIcon = "_searchTabIcon_1bay1_139";
85699
- const noDataHead = "_noDataHead_1bay1_145";
85700
- const noDataBody = "_noDataBody_1bay1_151";
85701
- const showSort = "_showSort_1bay1_157";
85702
- const noSort = "_noSort_1bay1_163";
85703
- const pagination = "_pagination_1bay1_169";
85704
- const rowStyle = "_rowStyle_1bay1_175";
85705
- const rowText = "_rowText_1bay1_181";
85706
- const rowsDropdown = "_rowsDropdown_1bay1_187";
85707
- const pageStyle = "_pageStyle_1bay1_193";
85708
- const buttonContainer = "_buttonContainer_1bay1_199";
85709
- const button$6 = "_button_1bay1_199";
85710
- const paginationWrapper = "_paginationWrapper_1bay1_217";
85711
- const current = "_current_1bay1_223";
85676
+ const tableData = "_tableData_2dwtv_7";
85677
+ const tableHeadCol$1 = "_tableHeadCol_2dwtv_13";
85678
+ const resizer = "_resizer_2dwtv_19";
85679
+ const resizing = "_resizing_2dwtv_31";
85680
+ const tableRow$1 = "_tableRow_2dwtv_37";
85681
+ const tableRowCol$1 = "_tableRowCol_2dwtv_43";
85682
+ const row = "_row_2dwtv_49";
85683
+ const container$b = "_container_2dwtv_55";
85684
+ const table$2 = "_table_2dwtv_1";
85685
+ const previewTable = "_previewTable_2dwtv_67";
85686
+ const preview = "_preview_2dwtv_67";
85687
+ const searchButton = "_searchButton_2dwtv_79";
85688
+ const previewText = "_previewText_2dwtv_85";
85689
+ const noData$1 = "_noData_2dwtv_91";
85690
+ const error$2 = "_error_2dwtv_97";
85691
+ const errorMsg = "_errorMsg_2dwtv_103";
85692
+ const tableIcon = "_tableIcon_2dwtv_109";
85693
+ const stripedRow = "_stripedRow_2dwtv_115";
85694
+ const rowHover = "_rowHover_2dwtv_121";
85695
+ const rightBorder = "_rightBorder_2dwtv_127";
85696
+ const searchContainer = "_searchContainer_2dwtv_133";
85697
+ const sortButton = "_sortButton_2dwtv_139";
85698
+ const searchTab = "_searchTab_2dwtv_145";
85699
+ const searchTabInput = "_searchTabInput_2dwtv_151";
85700
+ const searchTabIcon = "_searchTabIcon_2dwtv_157";
85701
+ const noDataHead = "_noDataHead_2dwtv_163";
85702
+ const noDataBody = "_noDataBody_2dwtv_169";
85703
+ const showSort = "_showSort_2dwtv_175";
85704
+ const noSort = "_noSort_2dwtv_181";
85705
+ const pagination = "_pagination_2dwtv_187";
85706
+ const rowStyle = "_rowStyle_2dwtv_193";
85707
+ const rowText = "_rowText_2dwtv_199";
85708
+ const rowsDropdown = "_rowsDropdown_2dwtv_205";
85709
+ const pageStyle = "_pageStyle_2dwtv_211";
85710
+ const buttonContainer = "_buttonContainer_2dwtv_217";
85711
+ const button$6 = "_button_2dwtv_217";
85712
+ const paginationWrapper = "_paginationWrapper_2dwtv_235";
85713
+ const current = "_current_2dwtv_241";
85712
85714
  var styles$u = {
85713
- "table-loader-container": "_table-loader-container_1bay1_1",
85715
+ "table-loader-container": "_table-loader-container_2dwtv_1",
85714
85716
  tableData,
85715
85717
  tableHeadCol: tableHeadCol$1,
85718
+ resizer,
85719
+ resizing,
85716
85720
  tableRow: tableRow$1,
85717
85721
  tableRowCol: tableRowCol$1,
85718
85722
  row,
@@ -85802,6 +85806,50 @@ const eosIconsLoading = (props) => /* @__PURE__ */ jsxs("svg", {
85802
85806
  })
85803
85807
  })]
85804
85808
  });
85809
+ const carbonChevronSort = (props) => /* @__PURE__ */ jsx("svg", {
85810
+ viewBox: "0 0 32 32",
85811
+ width: "1.2em",
85812
+ height: "1.2em",
85813
+ ...props,
85814
+ children: /* @__PURE__ */ jsx("path", {
85815
+ fill: "currentColor",
85816
+ d: "m16 28l-7-7l1.41-1.41L16 25.17l5.59-5.58L23 21l-7 7zm0-24l7 7l-1.41 1.41L16 6.83l-5.59 5.58L9 11l7-7z"
85817
+ })
85818
+ });
85819
+ const carbonChevronSortUp = (props) => /* @__PURE__ */ jsx("svg", {
85820
+ viewBox: "0 0 32 32",
85821
+ width: "1.2em",
85822
+ height: "1.2em",
85823
+ ...props,
85824
+ children: /* @__PURE__ */ jsx("path", {
85825
+ fill: "currentColor",
85826
+ d: "m16 4l7 7l-1.4 1.4L16 6.8l-5.6 5.6L9 11z"
85827
+ })
85828
+ });
85829
+ const carbonChevronSortDown = (props) => /* @__PURE__ */ jsx("svg", {
85830
+ viewBox: "0 0 32 32",
85831
+ width: "1.2em",
85832
+ height: "1.2em",
85833
+ ...props,
85834
+ children: /* @__PURE__ */ jsx("path", {
85835
+ fill: "currentColor",
85836
+ d: "m16 28l-7-7l1.4-1.4l5.6 5.6l5.6-5.6L23 21z"
85837
+ })
85838
+ });
85839
+ const rowSizeList = [{
85840
+ label: "Show 25",
85841
+ value: "25"
85842
+ }, {
85843
+ label: "Show 50",
85844
+ value: "50"
85845
+ }, {
85846
+ label: "Show 75",
85847
+ value: "75"
85848
+ }, {
85849
+ label: "Show 100",
85850
+ value: "100"
85851
+ }];
85852
+ const columnHelper = createColumnHelper();
85805
85853
  const Table = ({
85806
85854
  data,
85807
85855
  isLoading,
@@ -85810,66 +85858,37 @@ const Table = ({
85810
85858
  tableName,
85811
85859
  className = ""
85812
85860
  }) => {
85813
- var _a2, _b2, _c2, _d;
85814
- const columnHelper = createColumnHelper();
85815
- const columns = [];
85816
- const tableData2 = (data == null ? void 0 : data.length) ? data : [];
85817
- const divStyle = {
85818
- width: "100%",
85819
- height: (tableSettings == null ? void 0 : tableSettings.lineGap) === "small" ? "1.5rem" : "2.5rem",
85820
- fontSize: (tableSettings == null ? void 0 : tableSettings.lineGap) === "small" ? "0.7rem" : "1rem",
85821
- display: "flex",
85822
- alignItems: "center",
85823
- justifyContent: (tableSettings == null ? void 0 : tableSettings.contentAlignment) ? `${tableSettings.contentAlignment}` : ""
85824
- };
85825
- const headerStyle = {
85826
- width: "100%",
85827
- color: "#182c60",
85828
- fontSize: (tableSettings == null ? void 0 : tableSettings.lineGap) === "small" ? "0.7rem" : "1rem",
85829
- height: (tableSettings == null ? void 0 : tableSettings.lineGap) === "small" ? "1.5rem" : "2.5rem",
85830
- display: "flex",
85831
- alignItems: "center",
85832
- justifyContent: "center",
85833
- fontWeight: "500"
85834
- };
85861
+ const {
85862
+ divStyle,
85863
+ headerStyle
85864
+ } = useMemo(() => {
85865
+ const div2 = {
85866
+ width: "100%",
85867
+ height: (tableSettings == null ? void 0 : tableSettings.lineGap) === "small" ? "1.5rem" : "2.5rem",
85868
+ fontSize: (tableSettings == null ? void 0 : tableSettings.lineGap) === "small" ? "0.7rem" : "1rem",
85869
+ display: "flex",
85870
+ alignItems: "center",
85871
+ justifyContent: (tableSettings == null ? void 0 : tableSettings.contentAlignment) ? `${tableSettings.contentAlignment}` : ""
85872
+ };
85873
+ const header2 = {
85874
+ width: "100%",
85875
+ color: "#182c60",
85876
+ fontSize: (tableSettings == null ? void 0 : tableSettings.lineGap) === "small" ? "0.7rem" : "1rem",
85877
+ height: (tableSettings == null ? void 0 : tableSettings.lineGap) === "small" ? "1.5rem" : "2.5rem",
85878
+ display: "flex",
85879
+ alignItems: "center",
85880
+ justifyContent: "center",
85881
+ fontWeight: "500"
85882
+ };
85883
+ return {
85884
+ divStyle: div2,
85885
+ headerStyle: header2
85886
+ };
85887
+ }, [tableSettings == null ? void 0 : tableSettings.lineGap, tableSettings == null ? void 0 : tableSettings.contentAlignment]);
85835
85888
  const [sorting, setSorting] = useState([]);
85836
85889
  const [rowSelection, setRowSelection] = useState({});
85837
- const [rowSize, setRowSize] = useState({
85838
- value: "25",
85839
- label: "Show 25"
85840
- });
85841
- const rowSizeList = [{
85842
- label: "Show 25",
85843
- value: "25"
85844
- }, {
85845
- label: "Show 50",
85846
- value: "50"
85847
- }, {
85848
- label: "Show 75",
85849
- value: "75"
85850
- }, {
85851
- label: "Show 100",
85852
- value: "100"
85853
- }];
85890
+ const [rowSize, setRowSize] = useState((tableSettings == null ? void 0 : tableSettings.defaultRowSize) && rowSizeList.find((row2) => row2.value === tableSettings.defaultRowSize) || rowSizeList[0]);
85854
85891
  const [globalFilter, setGlobalFilter] = useState("");
85855
- let fetchData;
85856
- if (data) {
85857
- for (const key in data[0]) {
85858
- const colName = key;
85859
- const col = columnHelper.accessor(colName, {
85860
- header: () => key,
85861
- cell: (info) => info.getValue()
85862
- });
85863
- columns.push(col);
85864
- }
85865
- fetchData = async (options2) => {
85866
- await new Promise((r2) => setTimeout(r2, 500));
85867
- return {
85868
- rows: data.slice(options2.pageIndex * options2.pageSize, (options2.pageIndex + 1) * options2.pageSize),
85869
- pageCount: Math.ceil(data.length / options2.pageSize)
85870
- };
85871
- };
85872
- }
85873
85892
  const fuzzyFilter = (row2, columnId, value, addMeta) => {
85874
85893
  const itemRank = rankItem(row2.getValue(columnId), value);
85875
85894
  addMeta({
@@ -85877,29 +85896,28 @@ const Table = ({
85877
85896
  });
85878
85897
  return itemRank.passed;
85879
85898
  };
85880
- const [isHovered, setHovered] = useState("");
85881
- const [{
85882
- pageIndex,
85883
- pageSize
85884
- }, setPagination] = React__default.useState({
85899
+ const [pagination2, setPagination] = useState({
85885
85900
  pageIndex: 0,
85886
85901
  pageSize: 10
85887
85902
  });
85888
- const fetchDataOptions = {
85889
- pageIndex,
85890
- pageSize
85891
- };
85892
- const dataQuery = useQuery(["data", fetchDataOptions], () => fetchData(fetchDataOptions), {
85893
- keepPreviousData: true
85894
- });
85895
- const pagination2 = React__default.useMemo(() => ({
85896
- pageIndex,
85897
- pageSize
85898
- }), [pageIndex, pageSize]);
85903
+ const tableData2 = useMemo(() => {
85904
+ if (!data)
85905
+ return [];
85906
+ const {
85907
+ pageIndex,
85908
+ pageSize
85909
+ } = pagination2;
85910
+ return data.slice(pageIndex * pageSize, (pageIndex + 1) * pageSize);
85911
+ }, [pagination2, data, globalFilter]);
85912
+ const columns = useMemo(() => {
85913
+ return Object.keys((data == null ? void 0 : data[0]) || {}).map((colName) => columnHelper.accessor(colName, {
85914
+ header: () => colName,
85915
+ cell: (info) => info.getValue()
85916
+ }));
85917
+ }, [data == null ? void 0 : data[0]]);
85899
85918
  const table2 = useReactTable({
85900
- data: (_b2 = (_a2 = dataQuery.data) == null ? void 0 : _a2.rows) != null ? _b2 : tableData2,
85919
+ data: globalFilter ? data || [] : tableData2,
85901
85920
  columns,
85902
- pageCount: (_d = (_c2 = dataQuery.data) == null ? void 0 : _c2.pageCount) != null ? _d : -1,
85903
85921
  filterFns: {
85904
85922
  fuzzy: fuzzyFilter
85905
85923
  },
@@ -85918,28 +85936,44 @@ const Table = ({
85918
85936
  onGlobalFilterChange: setGlobalFilter,
85919
85937
  onPaginationChange: setPagination,
85920
85938
  manualPagination: true,
85921
- debugTable: true
85939
+ debugTable: true,
85940
+ enableColumnResizing: true,
85941
+ columnResizeMode: "onChange"
85922
85942
  });
85923
85943
  useEffect(() => {
85924
85944
  table2.setPageSize(Number(rowSize.value));
85925
85945
  }, [rowSize, table2]);
85946
+ const pageMetaData = useMemo(() => {
85947
+ const {
85948
+ pageIndex,
85949
+ pageSize
85950
+ } = table2.getState().pagination;
85951
+ const from = pageSize * pageIndex + 1;
85952
+ const total = globalFilter ? table2.getRowModel().rows.length : (data == null ? void 0 : data.length) || 0;
85953
+ const to = total <= pageSize * (pageIndex + 1) ? total : pageSize * (pageIndex + 1);
85954
+ return {
85955
+ from,
85956
+ to,
85957
+ total
85958
+ };
85959
+ }, [globalFilter, data, table2.getState().pagination, table2.getRowModel().rows.length]);
85926
85960
  return /* @__PURE__ */ jsx("div", {
85927
85961
  className: `${styles$u.container} ${className}`,
85928
85962
  children: /* @__PURE__ */ jsxs("div", {
85929
85963
  className: styles$u.previewTable,
85930
- children: [/* @__PURE__ */ jsxs("div", {
85931
- className: (tableSettings == null ? void 0 : tableSettings.showTableTitle) ? styles$u.preview : styles$u.searchButton,
85932
- children: [(tableSettings == null ? void 0 : tableSettings.showTableTitle) && /* @__PURE__ */ jsx(Text, {
85964
+ children: [(tableSettings == null ? void 0 : tableSettings.enableTableSearch) || (tableSettings == null ? void 0 : tableSettings.showTableTitle) ? /* @__PURE__ */ jsxs("div", {
85965
+ className: tableSettings.showTableTitle ? styles$u.preview : styles$u.searchButton,
85966
+ children: [tableSettings.showTableTitle && /* @__PURE__ */ jsx(Text, {
85933
85967
  styleClass: "font-14c",
85934
85968
  variant: "h1",
85935
85969
  className: styles$u.previewText,
85936
85970
  children: tableName
85937
- }), (tableSettings == null ? void 0 : tableSettings.enableTableSearch) && /* @__PURE__ */ jsx(DebouncedInput, {
85971
+ }), tableSettings.enableTableSearch && /* @__PURE__ */ jsx(DebouncedInput, {
85938
85972
  value: globalFilter,
85939
85973
  onChange: (value) => setGlobalFilter(String(value)),
85940
85974
  placeholder: "Search"
85941
85975
  })]
85942
- }), /* @__PURE__ */ jsxs("div", {
85976
+ }) : null, /* @__PURE__ */ jsxs("div", {
85943
85977
  className: styles$u.tableData,
85944
85978
  children: [isLoading && !(data == null ? void 0 : data.length) && /* @__PURE__ */ jsx("div", {
85945
85979
  className: styles$u["table-loader-container"],
@@ -85957,37 +85991,47 @@ const Table = ({
85957
85991
  children: table2.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx("tr", {
85958
85992
  className: styles$u.row,
85959
85993
  children: headerGroup.headers.map((header2) => {
85960
- var _a3;
85961
- return /* @__PURE__ */ jsx("th", {
85994
+ var _a2;
85995
+ return /* @__PURE__ */ jsxs("th", {
85962
85996
  className: styles$u.tableHeadCol,
85963
85997
  colSpan: header2.colSpan,
85964
- children: (tableSettings == null ? void 0 : tableSettings.enableSorting) ? /* @__PURE__ */ jsx("div", {
85965
- className: header2.column.getCanSort() ? styles$u.sortButton : "",
85966
- onClick: header2.column.getToggleSortingHandler(),
85967
- onMouseOver: () => setHovered(header2.id),
85968
- onMouseOut: () => setHovered(""),
85969
- children: header2.isPlaceholder ? null : /* @__PURE__ */ jsxs("div", {
85970
- style: headerStyle,
85971
- children: [flexRender(header2.column.columnDef.header, header2.getContext()), /* @__PURE__ */ jsx("div", {
85972
- className: isHovered === header2.id ? styles$u.showSort : styles$u.noSort,
85973
- children: (_a3 = {
85974
- asc: " \u{1F53C}",
85975
- desc: " \u{1F53D}"
85976
- }[header2.column.getIsSorted()]) != null ? _a3 : null
85977
- })]
85978
- })
85979
- }) : /* @__PURE__ */ jsx(Fragment, {
85998
+ style: {
85999
+ width: header2.getSize()
86000
+ },
86001
+ children: [/* @__PURE__ */ jsx("button", {
86002
+ onMouseDown: header2.getResizeHandler(),
86003
+ onTouchStart: header2.getResizeHandler(),
86004
+ className: `${styles$u.resizer} ${header2.column.getIsResizing() ? styles$u.resizing : ""}`,
86005
+ type: "button",
86006
+ title: "Resize Column"
86007
+ }), !(tableSettings == null ? void 0 : tableSettings.enableSorting) ? /* @__PURE__ */ jsx(Fragment, {
85980
86008
  children: header2.isPlaceholder ? null : /* @__PURE__ */ jsx("div", {
85981
86009
  style: headerStyle,
85982
86010
  children: flexRender(header2.column.columnDef.header, header2.getContext())
85983
86011
  })
85984
- })
86012
+ }) : /* @__PURE__ */ jsxs("div", {
86013
+ className: header2.column.getCanSort() ? styles$u.sortButton : "",
86014
+ onClick: header2.column.getToggleSortingHandler(),
86015
+ children: [header2.isPlaceholder ? null : /* @__PURE__ */ jsx("div", {
86016
+ style: headerStyle,
86017
+ children: flexRender(header2.column.columnDef.header, header2.getContext())
86018
+ }), (_a2 = {
86019
+ asc: /* @__PURE__ */ jsx(carbonChevronSortUp, {
86020
+ color: "#182c60"
86021
+ }),
86022
+ desc: /* @__PURE__ */ jsx(carbonChevronSortDown, {
86023
+ color: "#182c60"
86024
+ })
86025
+ }[header2.column.getIsSorted()]) != null ? _a2 : /* @__PURE__ */ jsx(carbonChevronSort, {
86026
+ color: "#182c60"
86027
+ })]
86028
+ })]
85985
86029
  }, header2.id);
85986
86030
  })
85987
86031
  }, headerGroup.id))
85988
86032
  }), /* @__PURE__ */ jsx("tbody", {
85989
- children: table2.getRowModel().rows.map((row2) => /* @__PURE__ */ jsx("tr", {
85990
- className: `${styles$u.tableRow} ${(tableSettings == null ? void 0 : tableSettings.showRowHover) ? styles$u.rowHover : ""} ${(tableSettings == null ? void 0 : tableSettings.enableStripedRows) && Number(row2.id) % 2 !== 0 ? styles$u.stripedRow : ""}`,
86033
+ children: (globalFilter ? table2.getRowModel().rows.slice(pagination2.pageSize * pagination2.pageIndex, pagination2.pageSize * (1 + pagination2.pageIndex)) : table2.getRowModel().rows).map((row2, index2) => /* @__PURE__ */ jsx("tr", {
86034
+ className: `${styles$u.tableRow} ${(tableSettings == null ? void 0 : tableSettings.showRowHover) ? styles$u.rowHover : ""} ${(tableSettings == null ? void 0 : tableSettings.enableStripedRows) && Number(index2) % 2 !== 0 ? styles$u.stripedRow : ""}`,
85991
86035
  children: row2.getVisibleCells().map((cell) => /* @__PURE__ */ jsxs("td", {
85992
86036
  className: `${styles$u.tableRowCol} ${!(tableSettings == null ? void 0 : tableSettings.hideVerticalDivider) ? styles$u.rightBorder : ""}`,
85993
86037
  children: [!!tableSettings && /* @__PURE__ */ jsx("div", {
@@ -86031,7 +86075,7 @@ const Table = ({
86031
86075
  children: error2
86032
86076
  })
86033
86077
  })]
86034
- }), data && /* @__PURE__ */ jsxs("div", {
86078
+ }), data && !(tableSettings == null ? void 0 : tableSettings.disablePagination) && /* @__PURE__ */ jsxs("div", {
86035
86079
  className: styles$u.pagination,
86036
86080
  children: [/* @__PURE__ */ jsx("div", {
86037
86081
  className: styles$u.rowStyle,
@@ -86045,20 +86089,22 @@ const Table = ({
86045
86089
  })
86046
86090
  }), /* @__PURE__ */ jsxs("span", {
86047
86091
  className: styles$u.pageStyle,
86048
- children: [table2.getState().pagination.pageSize * table2.getState().pagination.pageIndex + 1, "-", data.length <= table2.getState().pagination.pageSize * (table2.getState().pagination.pageIndex + 1) ? data.length : table2.getState().pagination.pageSize * (table2.getState().pagination.pageIndex + 1), " ", "of ", data.length]
86092
+ children: [pageMetaData.from, "-", pageMetaData.to, " of ", pageMetaData.total]
86049
86093
  }), /* @__PURE__ */ jsxs("div", {
86050
86094
  className: styles$u.buttonContainer,
86051
86095
  children: [/* @__PURE__ */ jsx(Button, {
86052
86096
  variant: "custom",
86097
+ type: "button",
86053
86098
  className: styles$u.button,
86054
86099
  onClick: () => table2.previousPage(),
86055
- disabled: !table2.getCanPreviousPage(),
86100
+ isDisabled: !table2.getCanPreviousPage(),
86056
86101
  children: "Prev"
86057
86102
  }), /* @__PURE__ */ jsx(Button, {
86058
86103
  variant: "custom",
86104
+ type: "button",
86059
86105
  className: styles$u.button,
86060
86106
  onClick: () => table2.nextPage(),
86061
- disabled: !table2.getCanNextPage(),
86107
+ isDisabled: !table2.getCanNextPage(),
86062
86108
  children: "Next"
86063
86109
  })]
86064
86110
  })]
@@ -86946,12 +86992,12 @@ const InfoTooltip = ({
86946
86992
  });
86947
86993
  };
86948
86994
  var styles$p = {
86949
- "header-container": "_header-container_1pbz4_1",
86950
- "btn-container": "_btn-container_1pbz4_9",
86951
- "back-btn": "_back-btn_1pbz4_17",
86952
- "sql-btn": "_sql-btn_1pbz4_25",
86953
- "save-btn": "_save-btn_1pbz4_33",
86954
- "save-btn-icon": "_save-btn-icon_1pbz4_41"
86995
+ "header-container": "_header-container_t2r6v_1",
86996
+ "btn-container": "_btn-container_t2r6v_5",
86997
+ "back-btn": "_back-btn_t2r6v_9",
86998
+ "sql-btn": "_sql-btn_t2r6v_13",
86999
+ "save-btn": "_save-btn_t2r6v_17",
87000
+ "save-btn-icon": "_save-btn-icon_t2r6v_21"
86955
87001
  };
86956
87002
  const Header = ({
86957
87003
  setShowMetricCreateModal,
@@ -87004,20 +87050,20 @@ const Header = ({
87004
87050
  });
87005
87051
  };
87006
87052
  var styles$o = {
87007
- "create-btn": "_create-btn_zxqu9_1",
87008
- "modal-container": "_modal-container_zxqu9_9",
87009
- "query-modal": "_query-modal_zxqu9_17"
87053
+ "create-btn": "_create-btn_ihjk8_1",
87054
+ "modal-container": "_modal-container_ihjk8_5",
87055
+ "query-modal": "_query-modal_ihjk8_9"
87010
87056
  };
87011
- const container$7 = "_container_u2z1d_1";
87012
- const header$3 = "_header_u2z1d_9";
87013
- const wrapper$1 = "_wrapper_u2z1d_17";
87014
- const column = "_column_u2z1d_33";
87015
- const columnText$1 = "_columnText_u2z1d_41";
87057
+ const container$7 = "_container_1q2ss_1";
87058
+ const header$3 = "_header_1q2ss_5";
87059
+ const wrapper$1 = "_wrapper_1q2ss_9";
87060
+ const column = "_column_1q2ss_17";
87061
+ const columnText$1 = "_columnText_1q2ss_21";
87016
87062
  var styles$n = {
87017
87063
  container: container$7,
87018
87064
  header: header$3,
87019
87065
  wrapper: wrapper$1,
87020
- "col-container": "_col-container_u2z1d_25",
87066
+ "col-container": "_col-container_1q2ss_13",
87021
87067
  column,
87022
87068
  columnText: columnText$1
87023
87069
  };
@@ -87228,6 +87274,36 @@ const ChartConfigure = ({
87228
87274
  }))
87229
87275
  })
87230
87276
  })]
87277
+ }), /* @__PURE__ */ jsxs("div", {
87278
+ className: styles$m.seriesWrapper,
87279
+ children: [/* @__PURE__ */ jsx(Text, {
87280
+ variant: "h1",
87281
+ styleClass: "font-14",
87282
+ className: "font-medium",
87283
+ children: "Default Row Size"
87284
+ }), /* @__PURE__ */ jsx("div", {
87285
+ className: styles$m.select,
87286
+ children: /* @__PURE__ */ jsx(Select, {
87287
+ value: tableSettings.defaultRowSize || "25",
87288
+ options: [{
87289
+ label: "25",
87290
+ value: "25"
87291
+ }, {
87292
+ label: "50",
87293
+ value: "50"
87294
+ }, {
87295
+ label: "75",
87296
+ value: "75"
87297
+ }, {
87298
+ label: "100",
87299
+ value: "100"
87300
+ }],
87301
+ onChange: (value) => setTableSettings((s2) => ({
87302
+ ...s2,
87303
+ defaultRowSize: value
87304
+ }))
87305
+ })
87306
+ })]
87231
87307
  }), /* @__PURE__ */ jsxs("div", {
87232
87308
  className: styles$m.seriesCheckContainer,
87233
87309
  children: [/* @__PURE__ */ jsxs("div", {
@@ -87322,6 +87398,7 @@ const ChartConfigure = ({
87322
87398
  children: [/* @__PURE__ */ jsx(InputField, {
87323
87399
  type: "checkbox",
87324
87400
  label: "Enable Table sorting",
87401
+ defaultChecked: true,
87325
87402
  checked: tableSettings.enableSorting,
87326
87403
  onChange: (e2) => setTableSettings((settings2) => ({
87327
87404
  ...settings2,
@@ -87330,6 +87407,19 @@ const ChartConfigure = ({
87330
87407
  }), /* @__PURE__ */ jsx(InfoTooltip, {
87331
87408
  children: "Enable Table Sorting"
87332
87409
  })]
87410
+ }), /* @__PURE__ */ jsxs("div", {
87411
+ className: styles$m.seriesCheck,
87412
+ children: [/* @__PURE__ */ jsx(InputField, {
87413
+ type: "checkbox",
87414
+ label: "Disable Pagination",
87415
+ checked: tableSettings.disablePagination,
87416
+ onChange: (e2) => setTableSettings((settings2) => ({
87417
+ ...settings2,
87418
+ disablePagination: e2.target.checked
87419
+ }))
87420
+ }), /* @__PURE__ */ jsx(InfoTooltip, {
87421
+ children: "Disable Pagination"
87422
+ })]
87333
87423
  })]
87334
87424
  })]
87335
87425
  })]
@@ -88394,45 +88484,16 @@ const ChartTab = ({
88394
88484
  })]
88395
88485
  });
88396
88486
  };
88397
- const container$5 = "_container_1r4rr_1";
88487
+ const container$5 = "_container_38zl3_1";
88488
+ const header$1 = "_header_38zl3_5";
88489
+ const tabButton$1 = "_tabButton_38zl3_16";
88490
+ const selectedTab = "_selectedTab_38zl3_19";
88491
+ const table$1 = "_table_38zl3_22";
88398
88492
  var styles$i = {
88399
- container: container$5
88400
- };
88401
- const InputTables = ({
88402
- previewTableDataList
88403
- }) => {
88404
- return /* @__PURE__ */ jsx("div", {
88405
- className: styles$i.container,
88406
- children: previewTableDataList == null ? void 0 : previewTableDataList.map((table2) => /* @__PURE__ */ jsx(Table, {
88407
- data: table2.data,
88408
- error: table2.isError,
88409
- isLoading: false,
88410
- tableName: table2.name,
88411
- tableSettings: {
88412
- showTableTitle: true,
88413
- hideVerticalDivider: false,
88414
- showRowHover: false,
88415
- enableStripedRows: false,
88416
- enableTableSearch: false,
88417
- contentAlignment: "center",
88418
- enableFilter: false,
88419
- enableSorting: false,
88420
- lineGap: "",
88421
- showTableDesc: false
88422
- }
88423
- }, table2.name))
88424
- });
88425
- };
88426
- const container$4 = "_container_127xg_1";
88427
- const header$1 = "_header_127xg_9";
88428
- const tabButton$1 = "_tabButton_127xg_31";
88429
- const selectedTab = "_selectedTab_127xg_37";
88430
- const table$1 = "_table_127xg_43";
88431
- var styles$h = {
88432
- container: container$4,
88493
+ container: container$5,
88433
88494
  header: header$1,
88434
- "text-container": "_text-container_127xg_17",
88435
- "btn-container": "_btn-container_127xg_25",
88495
+ "text-container": "_text-container_38zl3_9",
88496
+ "btn-container": "_btn-container_38zl3_13",
88436
88497
  tabButton: tabButton$1,
88437
88498
  selectedTab,
88438
88499
  table: table$1
@@ -88465,11 +88526,11 @@ const TableTab = ({
88465
88526
  setSelectedTab(OUTPUT_TABLE);
88466
88527
  }, [isUpdateMetric]);
88467
88528
  return /* @__PURE__ */ jsxs("div", {
88468
- className: styles$h.container,
88529
+ className: styles$i.container,
88469
88530
  children: [/* @__PURE__ */ jsxs("div", {
88470
- className: styles$h.header,
88531
+ className: styles$i.header,
88471
88532
  children: [/* @__PURE__ */ jsxs("div", {
88472
- className: styles$h["text-container"],
88533
+ className: styles$i["text-container"],
88473
88534
  children: [/* @__PURE__ */ jsx(Text, {
88474
88535
  styleClass: "font-14c",
88475
88536
  variant: "h1",
@@ -88480,11 +88541,11 @@ const TableTab = ({
88480
88541
  children: "Preview your selected table & output table values"
88481
88542
  })]
88482
88543
  }), /* @__PURE__ */ jsxs("div", {
88483
- className: styles$h["btn-container"],
88544
+ className: styles$i["btn-container"],
88484
88545
  children: [/* @__PURE__ */ jsxs(Button, {
88485
88546
  type: "button",
88486
88547
  variant: "custom",
88487
- className: styles$h.tabButton,
88548
+ className: styles$i.tabButton,
88488
88549
  onClick: () => setSelectedTab(INPUT_TABLE),
88489
88550
  children: [selectedTab2 === INPUT_TABLE && /* @__PURE__ */ jsx("div", {
88490
88551
  style: buttonColor,
@@ -88493,7 +88554,7 @@ const TableTab = ({
88493
88554
  }), /* @__PURE__ */ jsxs(Button, {
88494
88555
  type: "button",
88495
88556
  variant: "custom",
88496
- className: styles$h.tabButton,
88557
+ className: styles$i.tabButton,
88497
88558
  onClick: () => setSelectedTab(OUTPUT_TABLE),
88498
88559
  children: [selectedTab2 === OUTPUT_TABLE && /* @__PURE__ */ jsx("div", {
88499
88560
  style: buttonColor,
@@ -88501,30 +88562,60 @@ const TableTab = ({
88501
88562
  }), selectedTab2 !== OUTPUT_TABLE && "Output Table"]
88502
88563
  })]
88503
88564
  })]
88504
- }), selectedTab2 === INPUT_TABLE && /* @__PURE__ */ jsx(InputTables, {
88505
- previewTableDataList
88565
+ }), selectedTab2 === INPUT_TABLE && /* @__PURE__ */ jsx("div", {
88566
+ className: styles$i.table,
88567
+ children: previewTableDataList == null ? void 0 : previewTableDataList.map((table2) => /* @__PURE__ */ jsx(Table, {
88568
+ data: table2.data,
88569
+ isLoading: false,
88570
+ error: table2.isError,
88571
+ tableName: table2.name,
88572
+ tableSettings: {
88573
+ showTableTitle: true,
88574
+ hideVerticalDivider: false,
88575
+ showRowHover: false,
88576
+ enableStripedRows: false,
88577
+ enableTableSearch: false,
88578
+ contentAlignment: "center",
88579
+ enableFilter: false,
88580
+ enableSorting: true,
88581
+ lineGap: "",
88582
+ showTableDesc: false
88583
+ }
88584
+ }, table2.name))
88506
88585
  }), selectedTab2 === OUTPUT_TABLE && /* @__PURE__ */ jsx("div", {
88507
- className: styles$h.table,
88586
+ className: styles$i.table,
88508
88587
  children: /* @__PURE__ */ jsx(Table, {
88509
88588
  data: outpuTableData,
88510
88589
  isLoading: isOutputLoading,
88511
- error: outputError
88590
+ error: outputError,
88591
+ tableSettings: {
88592
+ showTableTitle: false,
88593
+ hideVerticalDivider: false,
88594
+ showRowHover: false,
88595
+ enableStripedRows: false,
88596
+ enableTableSearch: false,
88597
+ contentAlignment: "center",
88598
+ enableFilter: false,
88599
+ enableSorting: true,
88600
+ lineGap: "",
88601
+ showTableDesc: false
88602
+ }
88512
88603
  })
88513
88604
  })]
88514
88605
  });
88515
88606
  };
88516
- const mainContainerUpdate = "_mainContainerUpdate_z1gwh_7";
88517
- const wrapper = "_wrapper_z1gwh_23";
88518
- const updateWrapper = "_updateWrapper_z1gwh_29";
88519
- const updateWrapperContent = "_updateWrapperContent_z1gwh_35";
88520
- const createWrapperContent = "_createWrapperContent_z1gwh_41";
88521
- const searchCommand = "_searchCommand_z1gwh_47";
88522
- const tabButton = "_tabButton_z1gwh_53";
88523
- const tabActive = "_tabActive_z1gwh_59";
88524
- var styles$g = {
88525
- "main-container": "_main-container_z1gwh_1",
88607
+ const mainContainerUpdate = "_mainContainerUpdate_70jy1_4";
88608
+ const wrapper = "_wrapper_70jy1_12";
88609
+ const updateWrapper = "_updateWrapper_70jy1_15";
88610
+ const updateWrapperContent = "_updateWrapperContent_70jy1_18";
88611
+ const createWrapperContent = "_createWrapperContent_70jy1_21";
88612
+ const searchCommand = "_searchCommand_70jy1_24";
88613
+ const tabButton = "_tabButton_70jy1_27";
88614
+ const tabActive = "_tabActive_70jy1_30";
88615
+ var styles$h = {
88616
+ "main-container": "_main-container_70jy1_1",
88526
88617
  mainContainerUpdate,
88527
- "outputTab-header": "_outputTab-header_z1gwh_15",
88618
+ "outputTab-header": "_outputTab-header_70jy1_8",
88528
88619
  wrapper,
88529
88620
  updateWrapper,
88530
88621
  updateWrapperContent,
@@ -88581,13 +88672,13 @@ const MetricOutput = ({
88581
88672
  tableName = item.name;
88582
88673
  });
88583
88674
  return /* @__PURE__ */ jsxs("div", {
88584
- className: `${styles$g["main-container"]} ${isUpdateMetric ? styles$g.mainContainerUpdate : ""}`,
88675
+ className: `${styles$h["main-container"]} ${isUpdateMetric ? styles$h.mainContainerUpdate : ""}`,
88585
88676
  children: [!isUpdateMetric && /* @__PURE__ */ jsxs("div", {
88586
- className: styles$g["outputTab-header"],
88677
+ className: styles$h["outputTab-header"],
88587
88678
  children: [/* @__PURE__ */ jsxs(Button, {
88588
88679
  type: "button",
88589
88680
  variant: "custom",
88590
- className: `${styles$g.tabButton} ${selectedTab2 === TABLE_TAB && styles$g.tabActive}`,
88681
+ className: `${styles$h.tabButton} ${selectedTab2 === TABLE_TAB && styles$h.tabActive}`,
88591
88682
  onClick: () => setSelectedTab(TABLE_TAB),
88592
88683
  children: [/* @__PURE__ */ jsx(Icons, {
88593
88684
  name: "table-tab-icon"
@@ -88595,7 +88686,7 @@ const MetricOutput = ({
88595
88686
  }), /* @__PURE__ */ jsxs(Button, {
88596
88687
  type: "button",
88597
88688
  variant: "custom",
88598
- className: `${styles$g.tabButton} ${selectedTab2 === CHART_TAB && styles$g.tabActive}`,
88689
+ className: `${styles$h.tabButton} ${selectedTab2 === CHART_TAB && styles$h.tabActive}`,
88599
88690
  onClick: () => setSelectedTab(CHART_TAB),
88600
88691
  children: [/* @__PURE__ */ jsx(Icons, {
88601
88692
  name: "visualization-icon"
@@ -88603,14 +88694,14 @@ const MetricOutput = ({
88603
88694
  }), moreTabs == null ? void 0 : moreTabs.map((tabObj) => /* @__PURE__ */ jsx(Button, {
88604
88695
  type: "button",
88605
88696
  variant: "custom",
88606
- className: `${styles$g.tabButton} ${selectedTab2 === tabObj.name && styles$g.tabActive}`,
88697
+ className: `${styles$h.tabButton} ${selectedTab2 === tabObj.name && styles$h.tabActive}`,
88607
88698
  onClick: () => setSelectedTab(tabObj.name),
88608
88699
  children: tabObj.tab
88609
88700
  }, tabObj.name))]
88610
88701
  }), /* @__PURE__ */ jsxs("div", {
88611
- className: `${styles$g.wrapper} ${isUpdateMetric ? styles$g.updateWrapper : ""}`,
88702
+ className: `${styles$h.wrapper} ${isUpdateMetric ? styles$h.updateWrapper : ""}`,
88612
88703
  children: [(selectedTab2 === TABLE_TAB || isUpdateMetric) && /* @__PURE__ */ jsx("div", {
88613
- className: isUpdateMetric ? styles$g.updateWrapperContent : styles$g.createWrapperContent,
88704
+ className: isUpdateMetric ? styles$h.updateWrapperContent : styles$h.createWrapperContent,
88614
88705
  children: /* @__PURE__ */ jsx(TableTab, {
88615
88706
  outpuTableData: data,
88616
88707
  isOutputLoading: isLoading,
@@ -88619,7 +88710,7 @@ const MetricOutput = ({
88619
88710
  isUpdateMetric
88620
88711
  })
88621
88712
  }), (selectedTab2 === CHART_TAB || isUpdateMetric) && /* @__PURE__ */ jsx("div", {
88622
- className: isUpdateMetric ? styles$g.updateWrapperContent : styles$g.createWrapperContent,
88713
+ className: isUpdateMetric ? styles$h.updateWrapperContent : styles$h.createWrapperContent,
88623
88714
  children: /* @__PURE__ */ jsx(ChartTab, {
88624
88715
  labels: labels2,
88625
88716
  funnelData,
@@ -88662,30 +88753,30 @@ const MetricOutput = ({
88662
88753
  })]
88663
88754
  });
88664
88755
  };
88665
- const fieldValueIcon = "_fieldValueIcon_107sf_49";
88666
- const fieldAddBtnIcon = "_fieldAddBtnIcon_107sf_65";
88667
- const group = "_group_107sf_1";
88668
- const tooltipWrapper = "_tooltipWrapper_107sf_89";
88669
- const tooltip = "_tooltip_107sf_89";
88670
- const dropdown = "_dropdown_107sf_113";
88671
- const filterDropdown = "_filterDropdown_107sf_121";
88672
- const filterValues = "_filterValues_107sf_129";
88673
- const columnText = "_columnText_107sf_137";
88674
- const disabled = "_disabled_107sf_145";
88675
- const checkIcon = "_checkIcon_107sf_153";
88676
- const generateButton = "_generateButton_107sf_161";
88677
- var styles$f = {
88678
- "form-container": "_form-container_107sf_1",
88679
- "field-container": "_field-container_107sf_9",
88680
- "field-label": "_field-label_107sf_17",
88681
- "field-wrapper": "_field-wrapper_107sf_25",
88682
- "field-inner-container": "_field-inner-container_107sf_33",
88683
- "field-value": "_field-value_107sf_41",
88756
+ const fieldValueIcon = "_fieldValueIcon_14dsc_25";
88757
+ const fieldAddBtnIcon = "_fieldAddBtnIcon_14dsc_33";
88758
+ const group = "_group_14dsc_1";
88759
+ const tooltipWrapper = "_tooltipWrapper_14dsc_45";
88760
+ const tooltip = "_tooltip_14dsc_45";
88761
+ const dropdown = "_dropdown_14dsc_57";
88762
+ const filterDropdown = "_filterDropdown_14dsc_61";
88763
+ const filterValues = "_filterValues_14dsc_65";
88764
+ const columnText = "_columnText_14dsc_69";
88765
+ const disabled = "_disabled_14dsc_73";
88766
+ const checkIcon = "_checkIcon_14dsc_77";
88767
+ const generateButton = "_generateButton_14dsc_81";
88768
+ var styles$g = {
88769
+ "form-container": "_form-container_14dsc_1",
88770
+ "field-container": "_field-container_14dsc_5",
88771
+ "field-label": "_field-label_14dsc_9",
88772
+ "field-wrapper": "_field-wrapper_14dsc_13",
88773
+ "field-inner-container": "_field-inner-container_14dsc_17",
88774
+ "field-value": "_field-value_14dsc_21",
88684
88775
  fieldValueIcon,
88685
- "field-add-btn": "_field-add-btn_107sf_57",
88776
+ "field-add-btn": "_field-add-btn_14dsc_29",
88686
88777
  fieldAddBtnIcon,
88687
- "field-value-container": "_field-value-container_107sf_73",
88688
- "field-prompt": "_field-prompt_107sf_81",
88778
+ "field-value-container": "_field-value-container_14dsc_37",
88779
+ "field-prompt": "_field-prompt_14dsc_41",
88689
88780
  group,
88690
88781
  tooltipWrapper,
88691
88782
  tooltip,
@@ -88696,12 +88787,12 @@ var styles$f = {
88696
88787
  disabled,
88697
88788
  checkIcon,
88698
88789
  generateButton,
88699
- "saved-container": "_saved-container_107sf_169",
88700
- "custom-container": "_custom-container_107sf_177",
88701
- "simple-container": "_simple-container_107sf_185",
88702
- "filter-dropdown": "_filter-dropdown_107sf_193",
88703
- "editor-field": "_editor-field_107sf_201",
88704
- "tab-border": "_tab-border_107sf_209"
88790
+ "saved-container": "_saved-container_14dsc_85",
88791
+ "custom-container": "_custom-container_14dsc_89",
88792
+ "simple-container": "_simple-container_14dsc_93",
88793
+ "filter-dropdown": "_filter-dropdown_14dsc_97",
88794
+ "editor-field": "_editor-field_14dsc_101",
88795
+ "tab-border": "_tab-border_14dsc_105"
88705
88796
  };
88706
88797
  const button$1 = "_button_18a2n_1";
88707
88798
  const menu$1 = "_menu_18a2n_7";
@@ -88710,8 +88801,8 @@ const input = "_input_18a2n_13";
88710
88801
  const label = "_label_18a2n_25";
88711
88802
  const menuContainer = "_menuContainer_18a2n_31";
88712
88803
  const icon = "_icon_18a2n_37";
88713
- const container$3 = "_container_18a2n_43";
88714
- var styles$e = {
88804
+ const container$4 = "_container_18a2n_43";
88805
+ var styles$f = {
88715
88806
  button: button$1,
88716
88807
  menu: menu$1,
88717
88808
  inputLabel,
@@ -88719,7 +88810,7 @@ var styles$e = {
88719
88810
  label,
88720
88811
  menuContainer,
88721
88812
  icon,
88722
- container: container$3
88813
+ container: container$4
88723
88814
  };
88724
88815
  const timeGrainOptions = [{
88725
88816
  label: "Last Week",
@@ -88803,16 +88894,16 @@ const TimeGrainField = ({
88803
88894
  children: [isShowlabel ? /* @__PURE__ */ jsx(Text, {
88804
88895
  styleClass: "font-14c",
88805
88896
  variant: "p",
88806
- className: styles$e.label,
88897
+ className: styles$f.label,
88807
88898
  children: "Time Grain"
88808
88899
  }) : null, /* @__PURE__ */ jsx(PopoverMenu, {
88809
88900
  className,
88810
- buttonClass: styles$e.button,
88901
+ buttonClass: styles$f.button,
88811
88902
  isDisabled,
88812
- menuClass: styles$e.menu,
88813
- menuContainerClass: styles$e.menuContainer,
88903
+ menuClass: styles$f.menu,
88904
+ menuContainerClass: styles$f.menuContainer,
88814
88905
  button: /* @__PURE__ */ jsx(InputField, {
88815
- inputClass: styles$e.input,
88906
+ inputClass: styles$f.input,
88816
88907
  type: "text",
88817
88908
  placeholder: "time range",
88818
88909
  register: register2 == null ? void 0 : register2("timeGrain"),
@@ -88827,12 +88918,12 @@ const TimeGrainField = ({
88827
88918
  })),
88828
88919
  isDisabled: true,
88829
88920
  icon: /* @__PURE__ */ jsx("span", {
88830
- className: styles$e.icon,
88921
+ className: styles$f.icon,
88831
88922
  children: /* @__PURE__ */ jsx(materialSymbolsKeyboardArrowDown, {})
88832
88923
  })
88833
88924
  }),
88834
88925
  children: /* @__PURE__ */ jsxs("div", {
88835
- className: styles$e.container,
88926
+ className: styles$f.container,
88836
88927
  children: [/* @__PURE__ */ jsx(Select, {
88837
88928
  options: timeGrainOptions,
88838
88929
  label: "Select Time Range",
@@ -116352,18 +116443,18 @@ const MetricForm = ({
116352
116443
  return false;
116353
116444
  };
116354
116445
  return /* @__PURE__ */ jsxs("div", {
116355
- className: styles$f["form-container"],
116446
+ className: styles$g["form-container"],
116356
116447
  children: [!isDisableTimeColumn && /* @__PURE__ */ jsxs("div", {
116357
- className: styles$f["field-container"],
116448
+ className: styles$g["field-container"],
116358
116449
  children: [/* @__PURE__ */ jsx(Text, {
116359
116450
  variant: "h1",
116360
116451
  styleClass: "custom",
116361
- className: styles$f["field-label"],
116452
+ className: styles$g["field-label"],
116362
116453
  children: "Time Filter"
116363
116454
  }), /* @__PURE__ */ jsx("div", {
116364
- className: styles$f["field-wrapper"],
116455
+ className: styles$g["field-wrapper"],
116365
116456
  children: /* @__PURE__ */ jsxs("div", {
116366
- className: styles$f["field-inner-container"],
116457
+ className: styles$g["field-inner-container"],
116367
116458
  children: [/* @__PURE__ */ jsx(FloatingDropDown, {
116368
116459
  onChange: setTimeColumn,
116369
116460
  selectedOption: timeColumn,
@@ -116385,28 +116476,28 @@ const MetricForm = ({
116385
116476
  }), timeGrainValue && /* @__PURE__ */ jsxs(Button, {
116386
116477
  type: "button",
116387
116478
  variant: "custom",
116388
- className: styles$f["field-value"],
116479
+ className: styles$g["field-value"],
116389
116480
  onClick: () => setTimeGrainValue(""),
116390
116481
  children: [timeGrainValue, " ", /* @__PURE__ */ jsx(Icons, {
116391
116482
  name: "close-icon",
116392
- className: styles$f.fieldValueIcon
116483
+ className: styles$g.fieldValueIcon
116393
116484
  })]
116394
116485
  })]
116395
116486
  })
116396
116487
  })]
116397
116488
  }), !isDisableAddMetric && /* @__PURE__ */ jsxs("div", {
116398
- className: styles$f["field-container"],
116489
+ className: styles$g["field-container"],
116399
116490
  children: [/* @__PURE__ */ jsxs(Text, {
116400
116491
  variant: "h1",
116401
116492
  styleClass: "custom",
116402
- className: styles$f["field-label"],
116493
+ className: styles$g["field-label"],
116403
116494
  children: ["Metric Creation", /* @__PURE__ */ jsx(InfoTooltip, {
116404
116495
  children: "configure metric columns"
116405
116496
  })]
116406
116497
  }), /* @__PURE__ */ jsx("div", {
116407
- className: styles$f["field-wrapper"],
116498
+ className: styles$g["field-wrapper"],
116408
116499
  children: /* @__PURE__ */ jsxs("div", {
116409
- className: styles$f["field-inner-container"],
116500
+ className: styles$g["field-inner-container"],
116410
116501
  children: [/* @__PURE__ */ jsx(Text, {
116411
116502
  variant: "p",
116412
116503
  styleClass: "font-14",
@@ -116414,7 +116505,7 @@ const MetricForm = ({
116414
116505
  }), /* @__PURE__ */ jsxs(Button, {
116415
116506
  type: "button",
116416
116507
  variant: "secondary",
116417
- className: styles$f["field-add-btn"],
116508
+ className: styles$g["field-add-btn"],
116418
116509
  onClick: () => {
116419
116510
  setFieldConfigModal({
116420
116511
  isShow: true,
@@ -116425,18 +116516,18 @@ const MetricForm = ({
116425
116516
  isDisabled: isDisableAddMetric,
116426
116517
  children: [/* @__PURE__ */ jsx(Icons, {
116427
116518
  name: "plus-icon",
116428
- className: styles$f.fieldAddBtnIcon
116519
+ className: styles$g.fieldAddBtnIcon
116429
116520
  }), "Add Aggregate Column"]
116430
116521
  }), /* @__PURE__ */ jsx("div", {
116431
- className: styles$f["field-value-container"],
116522
+ className: styles$g["field-value-container"],
116432
116523
  children: metrics.map((metric) => /* @__PURE__ */ jsxs(Button, {
116433
116524
  type: "button",
116434
116525
  variant: "custom",
116435
- className: styles$f["field-value"],
116526
+ className: styles$g["field-value"],
116436
116527
  onClick: () => setMetrics((prev) => prev.filter((m2) => m2.as !== metric.as)),
116437
116528
  children: [metric.as, " ", /* @__PURE__ */ jsx(Icons, {
116438
116529
  name: "close-icon",
116439
- className: styles$f.fieldValueIcon
116530
+ className: styles$g.fieldValueIcon
116440
116531
  })]
116441
116532
  }, metric.as))
116442
116533
  }), /* @__PURE__ */ jsx(Text, {
@@ -116454,13 +116545,13 @@ const MetricForm = ({
116454
116545
  setAliasValue("");
116455
116546
  },
116456
116547
  isDisabled: !!columns.length,
116457
- className: styles$f["field-add-btn"],
116548
+ className: styles$g["field-add-btn"],
116458
116549
  children: [/* @__PURE__ */ jsx(Icons, {
116459
116550
  name: "plus-icon",
116460
- className: styles$f.fieldAddBtnIcon
116551
+ className: styles$g.fieldAddBtnIcon
116461
116552
  }), " ", "Add New"]
116462
116553
  }), selectedDimensions.map((c2) => /* @__PURE__ */ jsxs("div", {
116463
- className: styles$f["field-value-container"],
116554
+ className: styles$g["field-value-container"],
116464
116555
  children: [/* @__PURE__ */ jsx(Text, {
116465
116556
  variant: "p",
116466
116557
  styleClass: "font-14",
@@ -116470,7 +116561,7 @@ const MetricForm = ({
116470
116561
  type: "button",
116471
116562
  variant: "secondary",
116472
116563
  onClick: () => setSelectedDimensions((prev) => prev.filter((m2) => m2 !== c2)),
116473
- className: styles$f["field-value"],
116564
+ className: styles$g["field-value"],
116474
116565
  children: /* @__PURE__ */ jsx(Icons, {
116475
116566
  name: "close-icon"
116476
116567
  })
@@ -116479,18 +116570,18 @@ const MetricForm = ({
116479
116570
  })
116480
116571
  })]
116481
116572
  }), !isDisableAddColumn && /* @__PURE__ */ jsxs("div", {
116482
- className: styles$f["field-container"],
116573
+ className: styles$g["field-container"],
116483
116574
  children: [/* @__PURE__ */ jsxs(Text, {
116484
116575
  variant: "h1",
116485
116576
  styleClass: "custom",
116486
- className: styles$f["field-label"],
116577
+ className: styles$g["field-label"],
116487
116578
  children: ["Columns", /* @__PURE__ */ jsx(InfoTooltip, {
116488
116579
  children: "select columns for raw records query"
116489
116580
  })]
116490
116581
  }), /* @__PURE__ */ jsx("div", {
116491
- className: styles$f["field-wrapper"],
116582
+ className: styles$g["field-wrapper"],
116492
116583
  children: /* @__PURE__ */ jsxs("div", {
116493
- className: styles$f["field-inner-container"],
116584
+ className: styles$g["field-inner-container"],
116494
116585
  children: [/* @__PURE__ */ jsx(Text, {
116495
116586
  variant: "p",
116496
116587
  styleClass: "font-14",
@@ -116498,7 +116589,7 @@ const MetricForm = ({
116498
116589
  }), /* @__PURE__ */ jsxs(Button, {
116499
116590
  type: "button",
116500
116591
  variant: "secondary",
116501
- className: styles$f["field-add-btn"],
116592
+ className: styles$g["field-add-btn"],
116502
116593
  onClick: () => {
116503
116594
  setFieldConfigModal({
116504
116595
  isShow: true,
@@ -116509,34 +116600,34 @@ const MetricForm = ({
116509
116600
  isDisabled: isDisableAddColumn,
116510
116601
  children: [/* @__PURE__ */ jsx(Icons, {
116511
116602
  name: "plus-icon",
116512
- className: styles$f.fieldAddBtnIcon
116603
+ className: styles$g.fieldAddBtnIcon
116513
116604
  }), " ", "Add Column"]
116514
116605
  }), /* @__PURE__ */ jsx("div", {
116515
- className: styles$f["field-value-container"],
116606
+ className: styles$g["field-value-container"],
116516
116607
  children: columns.map((c2) => /* @__PURE__ */ jsxs(Button, {
116517
116608
  type: "button",
116518
116609
  variant: "custom",
116519
- className: styles$f["field-value"],
116610
+ className: styles$g["field-value"],
116520
116611
  onClick: () => setColumns((prev) => prev.filter((m2) => m2.as !== c2.as)),
116521
116612
  children: [c2.as, " ", /* @__PURE__ */ jsx(Icons, {
116522
116613
  name: "close-icon",
116523
- className: styles$f.fieldValueIcon
116614
+ className: styles$g.fieldValueIcon
116524
116615
  })]
116525
116616
  }, c2.as))
116526
116617
  })]
116527
116618
  })
116528
116619
  })]
116529
116620
  }), /* @__PURE__ */ jsxs("div", {
116530
- className: styles$f["field-container"],
116621
+ className: styles$g["field-container"],
116531
116622
  children: [/* @__PURE__ */ jsx(Text, {
116532
116623
  variant: "h1",
116533
116624
  styleClass: "custom",
116534
- className: styles$f["field-label"],
116625
+ className: styles$g["field-label"],
116535
116626
  children: "category filters"
116536
116627
  }), /* @__PURE__ */ jsx("div", {
116537
- className: styles$f["field-wrapper"],
116628
+ className: styles$g["field-wrapper"],
116538
116629
  children: /* @__PURE__ */ jsxs("div", {
116539
- className: styles$f["field-inner-container"],
116630
+ className: styles$g["field-inner-container"],
116540
116631
  children: [/* @__PURE__ */ jsx(Text, {
116541
116632
  variant: "p",
116542
116633
  styleClass: "font-14",
@@ -116544,7 +116635,7 @@ const MetricForm = ({
116544
116635
  }), /* @__PURE__ */ jsxs(Button, {
116545
116636
  type: "button",
116546
116637
  variant: "secondary",
116547
- className: styles$f["field-add-btn"],
116638
+ className: styles$g["field-add-btn"],
116548
116639
  onClick: () => {
116549
116640
  setFieldConfigModal({
116550
116641
  isShow: true,
@@ -116554,18 +116645,18 @@ const MetricForm = ({
116554
116645
  },
116555
116646
  children: [/* @__PURE__ */ jsx(Icons, {
116556
116647
  name: "plus-icon",
116557
- className: styles$f.fieldAddBtnIcon
116648
+ className: styles$g.fieldAddBtnIcon
116558
116649
  }), " Add Filter Category"]
116559
116650
  }), /* @__PURE__ */ jsx("div", {
116560
- className: styles$f["field-value-container"],
116651
+ className: styles$g["field-value-container"],
116561
116652
  children: filters2.map((filter2) => /* @__PURE__ */ jsxs(Button, {
116562
116653
  type: "button",
116563
116654
  variant: "custom",
116564
- className: styles$f["field-value"],
116655
+ className: styles$g["field-value"],
116565
116656
  onClick: () => setFilters((prev) => prev.filter((m2) => m2 !== filter2)),
116566
116657
  children: [filter2, " ", /* @__PURE__ */ jsx(Icons, {
116567
116658
  name: "close-icon",
116568
- className: styles$f.fieldValueIcon
116659
+ className: styles$g.fieldValueIcon
116569
116660
  })]
116570
116661
  }, filter2))
116571
116662
  }), /* @__PURE__ */ jsx(Text, {
@@ -116575,7 +116666,7 @@ const MetricForm = ({
116575
116666
  }), /* @__PURE__ */ jsxs(Button, {
116576
116667
  type: "button",
116577
116668
  variant: "secondary",
116578
- className: styles$f["field-add-btn"],
116669
+ className: styles$g["field-add-btn"],
116579
116670
  onClick: () => {
116580
116671
  setFieldConfigModal({
116581
116672
  isShow: true,
@@ -116585,16 +116676,16 @@ const MetricForm = ({
116585
116676
  },
116586
116677
  children: [sort2 ? /* @__PURE__ */ jsx(mdiCircleEditOutline, {}) : /* @__PURE__ */ jsx(Icons, {
116587
116678
  name: "plus-icon",
116588
- className: styles$f.fieldAddBtnIcon
116679
+ className: styles$g.fieldAddBtnIcon
116589
116680
  }), " ", sort2 ? "Edit" : "Add", " Sort Category"]
116590
116681
  }), sort2 && /* @__PURE__ */ jsxs(Button, {
116591
116682
  type: "button",
116592
116683
  variant: "custom",
116593
- className: styles$f["field-value"],
116684
+ className: styles$g["field-value"],
116594
116685
  onClick: () => setSort(""),
116595
116686
  children: [sort2, " ", /* @__PURE__ */ jsx(Icons, {
116596
116687
  name: "close-icon",
116597
- className: styles$f.fieldValueIcon
116688
+ className: styles$g.fieldValueIcon
116598
116689
  })]
116599
116690
  })]
116600
116691
  })
@@ -116608,32 +116699,32 @@ const MetricForm = ({
116608
116699
  }), !columns.length && !!dateTimeColumnList.length && /* @__PURE__ */ jsxs(Text, {
116609
116700
  styleClass: "font-14",
116610
116701
  variant: "p",
116611
- className: styles$f.columnText,
116702
+ className: styles$g.columnText,
116612
116703
  children: [/* @__PURE__ */ jsx(Button, {
116613
116704
  type: "button",
116614
116705
  variant: "custom",
116615
116706
  onClick: () => setIncludeTime((s2) => !s2),
116616
116707
  isDisabled: !timeColumn.value || !!columns.length,
116617
116708
  children: isIncludeTime ? /* @__PURE__ */ jsx(materialSymbolsCheckBoxRounded, {
116618
- className: styles$f.checkIcon
116709
+ className: styles$g.checkIcon
116619
116710
  }) : /* @__PURE__ */ jsx(materialSymbolsCheckBoxOutlineBlank, {})
116620
116711
  }), "Include Time"]
116621
116712
  }), /* @__PURE__ */ jsxs(Text, {
116622
116713
  styleClass: "font-14",
116623
116714
  variant: "p",
116624
- className: styles$f.columnText,
116715
+ className: styles$g.columnText,
116625
116716
  children: [/* @__PURE__ */ jsx(Button, {
116626
116717
  type: "button",
116627
116718
  variant: "custom",
116628
116719
  onClick: () => setSortDescending((s2) => !s2),
116629
116720
  children: isSortDescending ? /* @__PURE__ */ jsx(materialSymbolsCheckBoxRounded, {
116630
- className: styles$f.checkIcon
116721
+ className: styles$g.checkIcon
116631
116722
  }) : /* @__PURE__ */ jsx(materialSymbolsCheckBoxOutlineBlank, {})
116632
116723
  }), "Sort Descending"]
116633
116724
  }), /* @__PURE__ */ jsx(Button, {
116634
116725
  type: "button",
116635
116726
  variant: "primary",
116636
- className: styles$f.generateButton,
116727
+ className: styles$g.generateButton,
116637
116728
  isDisabled: isGeneratingDataset || isDisableGenerate,
116638
116729
  onClick: () => onGenerateMetric(),
116639
116730
  children: "Generate"
@@ -116649,10 +116740,10 @@ const MetricForm = ({
116649
116740
  activeTab: selectedTab2,
116650
116741
  options: configTabs,
116651
116742
  setActiveTab: setSeletedTab,
116652
- className: styles$f["tab-border"]
116743
+ className: styles$g["tab-border"]
116653
116744
  })
116654
116745
  }), selectedTab2 === "simple" && /* @__PURE__ */ jsxs("div", {
116655
- className: styles$f["simple-container"],
116746
+ className: styles$g["simple-container"],
116656
116747
  children: [fieldConfigModal.type === "filter" && /* @__PURE__ */ jsxs(Fragment, {
116657
116748
  children: [/* @__PURE__ */ jsx(FloatingDropDown, {
116658
116749
  onChange: setFilterColumn,
@@ -116667,7 +116758,7 @@ const MetricForm = ({
116667
116758
  label: "Operator",
116668
116759
  labelVariant: "static"
116669
116760
  }), isInFilter ? /* @__PURE__ */ jsxs("div", {
116670
- className: styles$f["filter-dropdown"],
116761
+ className: styles$g["filter-dropdown"],
116671
116762
  children: [/* @__PURE__ */ jsx(Text, {
116672
116763
  variant: "p",
116673
116764
  styleClass: "font-14",
@@ -116739,7 +116830,7 @@ const MetricForm = ({
116739
116830
  })
116740
116831
  })]
116741
116832
  }), selectedTab2 === "custom" && /* @__PURE__ */ jsxs("div", {
116742
- className: styles$f["custom-container"],
116833
+ className: styles$g["custom-container"],
116743
116834
  children: [/* @__PURE__ */ jsx(InputField, {
116744
116835
  label: "name",
116745
116836
  labelClass: "mb-2",
@@ -116750,7 +116841,7 @@ const MetricForm = ({
116750
116841
  name: getColumnString(e2.target.value)
116751
116842
  })
116752
116843
  }), /* @__PURE__ */ jsxs("div", {
116753
- className: styles$f["editor-field"],
116844
+ className: styles$g["editor-field"],
116754
116845
  children: [/* @__PURE__ */ jsx(Text, {
116755
116846
  styleClass: "font-14b",
116756
116847
  variant: "p",
@@ -116766,7 +116857,7 @@ const MetricForm = ({
116766
116857
  })]
116767
116858
  })]
116768
116859
  }), selectedTab2 === "saved" && /* @__PURE__ */ jsxs("div", {
116769
- className: styles$f["saved-container"],
116860
+ className: styles$g["saved-container"],
116770
116861
  children: [/* @__PURE__ */ jsx(MultiFloatingDropDown, {
116771
116862
  onChange: (options2) => setSelectedCustomColumnList(options2),
116772
116863
  selectedOptions: selectedCustomColumnList,
@@ -116778,7 +116869,7 @@ const MetricForm = ({
116778
116869
  label: "custom",
116779
116870
  labelVariant: "floating"
116780
116871
  }), selectedCustomColumnList.map((c2) => /* @__PURE__ */ jsx("div", {
116781
- className: styles$f["field-value-container"],
116872
+ className: styles$g["field-value-container"],
116782
116873
  children: /* @__PURE__ */ jsxs(Text, {
116783
116874
  variant: "p",
116784
116875
  styleClass: "font-14",
@@ -116806,12 +116897,12 @@ const MetricForm = ({
116806
116897
  })]
116807
116898
  });
116808
116899
  };
116809
- const container$2 = "_container_1v000_1";
116810
- const header = "_header_1v000_9";
116811
- const enableGroupBy = "_enableGroupBy_1v000_15";
116812
- const enableGroupButton = "_enableGroupButton_1v000_21";
116813
- var styles$d = {
116814
- container: container$2,
116900
+ const container$3 = "_container_rofqe_1";
116901
+ const header = "_header_rofqe_5";
116902
+ const enableGroupBy = "_enableGroupBy_rofqe_8";
116903
+ const enableGroupButton = "_enableGroupButton_rofqe_11";
116904
+ var styles$e = {
116905
+ container: container$3,
116815
116906
  header,
116816
116907
  enableGroupBy,
116817
116908
  enableGroupButton
@@ -116831,9 +116922,9 @@ const ConstructMetric = ({
116831
116922
  databaseId
116832
116923
  }) => {
116833
116924
  return /* @__PURE__ */ jsxs("div", {
116834
- className: styles$d.container,
116925
+ className: styles$e.container,
116835
116926
  children: [/* @__PURE__ */ jsx("div", {
116836
- className: styles$d.header,
116927
+ className: styles$e.header,
116837
116928
  children: "Data"
116838
116929
  }), /* @__PURE__ */ jsx(MetricForm, {
116839
116930
  dateTimeColumnList,
@@ -117228,6 +117319,35 @@ const EmbeddedMetricCreation = ({
117228
117319
  })]
117229
117320
  });
117230
117321
  };
117322
+ const container$2 = "_container_epyr2_1";
117323
+ var styles$d = {
117324
+ container: container$2
117325
+ };
117326
+ const InputTables = ({
117327
+ previewTableDataList
117328
+ }) => {
117329
+ return /* @__PURE__ */ jsx("div", {
117330
+ className: styles$d.container,
117331
+ children: previewTableDataList == null ? void 0 : previewTableDataList.map((table2) => /* @__PURE__ */ jsx(Table, {
117332
+ data: table2.data,
117333
+ error: table2.isError,
117334
+ isLoading: false,
117335
+ tableName: table2.name,
117336
+ tableSettings: {
117337
+ showTableTitle: true,
117338
+ hideVerticalDivider: false,
117339
+ showRowHover: false,
117340
+ enableStripedRows: false,
117341
+ enableTableSearch: false,
117342
+ contentAlignment: "center",
117343
+ enableFilter: false,
117344
+ enableSorting: true,
117345
+ lineGap: "",
117346
+ showTableDesc: false
117347
+ }
117348
+ }, table2.name))
117349
+ });
117350
+ };
117231
117351
  var reactGridLayout = { exports: {} };
117232
117352
  var ReactGridLayout$1 = {};
117233
117353
  function r(e2) {
@@ -121961,8 +122081,8 @@ const ChartImageDownloadButton = ({
121961
122081
  }), text2]
121962
122082
  });
121963
122083
  };
121964
- const metricFilter = "_metricFilter_1xge8_1";
121965
- const customContainer = "_customContainer_1xge8_7";
122084
+ const metricFilter = "_metricFilter_k2gef_1";
122085
+ const customContainer = "_customContainer_k2gef_4";
121966
122086
  var styles$9 = {
121967
122087
  metricFilter,
121968
122088
  customContainer
@@ -122065,24 +122185,24 @@ const MetricFilterDropDown = ({
122065
122185
  }) : void 0
122066
122186
  });
122067
122187
  };
122068
- const container$1 = "_container_a6fvx_1";
122069
- const popover = "_popover_a6fvx_9";
122070
- const button = "_button_a6fvx_17";
122071
- const buttonOpen = "_buttonOpen_a6fvx_25";
122072
- const menu = "_menu_a6fvx_33";
122073
- const enter = "_enter_a6fvx_41";
122074
- const enterFrom = "_enterFrom_a6fvx_49";
122075
- const enterTo = "_enterTo_a6fvx_57";
122076
- const leave = "_leave_a6fvx_65";
122077
- const leaveFrom = "_leaveFrom_a6fvx_73";
122078
- const leaveTo = "_leaveTo_a6fvx_81";
122079
- const center = "_center_a6fvx_89";
122080
- const top = "_top_a6fvx_97";
122081
- const bottom = "_bottom_a6fvx_105";
122082
- const left = "_left_a6fvx_113";
122083
- const right = "_right_a6fvx_121";
122084
- const chartOptionBtn = "_chartOptionBtn_a6fvx_225";
122085
- const chartpopup = "_chartpopup_a6fvx_233";
122188
+ const container$1 = "_container_14i90_1";
122189
+ const popover = "_popover_14i90_5";
122190
+ const button = "_button_14i90_9";
122191
+ const buttonOpen = "_buttonOpen_14i90_13";
122192
+ const menu = "_menu_14i90_17";
122193
+ const enter = "_enter_14i90_21";
122194
+ const enterFrom = "_enterFrom_14i90_25";
122195
+ const enterTo = "_enterTo_14i90_29";
122196
+ const leave = "_leave_14i90_33";
122197
+ const leaveFrom = "_leaveFrom_14i90_37";
122198
+ const leaveTo = "_leaveTo_14i90_41";
122199
+ const center = "_center_14i90_45";
122200
+ const top = "_top_14i90_49";
122201
+ const bottom = "_bottom_14i90_53";
122202
+ const left = "_left_14i90_57";
122203
+ const right = "_right_14i90_61";
122204
+ const chartOptionBtn = "_chartOptionBtn_14i90_113";
122205
+ const chartpopup = "_chartpopup_14i90_117";
122086
122206
  var styles$8 = {
122087
122207
  container: container$1,
122088
122208
  popover,
@@ -122100,23 +122220,23 @@ var styles$8 = {
122100
122220
  bottom,
122101
122221
  left,
122102
122222
  right,
122103
- "left-top-end": "_left-top-end_a6fvx_129",
122104
- "right-top-end": "_right-top-end_a6fvx_137",
122105
- "left-bottom-end": "_left-bottom-end_a6fvx_145",
122106
- "right-bottom-end": "_right-bottom-end_a6fvx_153",
122107
- "top-left": "_top-left_a6fvx_161",
122108
- "top-right": "_top-right_a6fvx_169",
122109
- "bottom-left": "_bottom-left_a6fvx_177",
122110
- "bottom-right": "_bottom-right_a6fvx_185",
122111
- "left-top": "_left-top_a6fvx_129",
122112
- "left-bottom": "_left-bottom_a6fvx_145",
122113
- "right-top": "_right-top_a6fvx_137",
122114
- "right-bottom": "_right-bottom_a6fvx_153",
122223
+ "left-top-end": "_left-top-end_14i90_65",
122224
+ "right-top-end": "_right-top-end_14i90_69",
122225
+ "left-bottom-end": "_left-bottom-end_14i90_73",
122226
+ "right-bottom-end": "_right-bottom-end_14i90_77",
122227
+ "top-left": "_top-left_14i90_81",
122228
+ "top-right": "_top-right_14i90_85",
122229
+ "bottom-left": "_bottom-left_14i90_89",
122230
+ "bottom-right": "_bottom-right_14i90_93",
122231
+ "left-top": "_left-top_14i90_65",
122232
+ "left-bottom": "_left-bottom_14i90_73",
122233
+ "right-top": "_right-top_14i90_69",
122234
+ "right-bottom": "_right-bottom_14i90_77",
122115
122235
  chartOptionBtn,
122116
122236
  chartpopup
122117
122237
  };
122118
- const fullscreen = "_fullscreen_19jec_1";
122119
- const loading = "_loading_19jec_9";
122238
+ const fullscreen = "_fullscreen_1gpy3_1";
122239
+ const loading = "_loading_1gpy3_5";
122120
122240
  var styles$7 = {
122121
122241
  fullscreen,
122122
122242
  loading
@@ -122299,8 +122419,8 @@ const ChartPopup = ({
122299
122419
  };
122300
122420
  var ChartPopup$1 = React__default.memo(ChartPopup);
122301
122421
  var styles$6 = {
122302
- "dbc-container": "_dbc-container_nmp4f_1",
122303
- "active-dimension": "_active-dimension_nmp4f_9"
122422
+ "dbc-container": "_dbc-container_1dw7c_1",
122423
+ "active-dimension": "_active-dimension_1dw7c_5"
122304
122424
  };
122305
122425
  const DrillBreadCrumb = ({
122306
122426
  dimensions,
@@ -124251,10 +124371,11 @@ var index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
124251
124371
  Dataset,
124252
124372
  Header,
124253
124373
  MetricOutput,
124374
+ InputTables,
124375
+ ChartConfigure,
124376
+ ChartSettings,
124254
124377
  ChartTab,
124255
124378
  TableTab,
124256
- ChartSettings,
124257
- ChartConfigure,
124258
124379
  GridLayout,
124259
124380
  ExternalMetricList,
124260
124381
  MetricCard,
@@ -124296,33 +124417,33 @@ const mdiPlus = (props) => /* @__PURE__ */ jsx("svg", {
124296
124417
  d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2Z"
124297
124418
  })
124298
124419
  });
124299
- const scheduleEmailButton = "_scheduleEmailButton_101bq_1";
124420
+ const scheduleEmailButton = "_scheduleEmailButton_13nzt_1";
124300
124421
  var styles$2 = {
124301
124422
  scheduleEmailButton
124302
124423
  };
124303
124424
  var styles$1 = {
124304
- "form-container": "_form-container_63pgj_1",
124305
- "form-wrapper": "_form-wrapper_63pgj_7",
124306
- "form-primary-text": "_form-primary-text_63pgj_15",
124307
- "week-days-container": "_week-days-container_63pgj_23",
124308
- "main-label": "_main-label_63pgj_29",
124309
- "time-element": "_time-element_63pgj_37",
124310
- "cancel-btn": "_cancel-btn_63pgj_45",
124311
- "delete-btn": "_delete-btn_63pgj_51",
124312
- "field-width": "_field-width_63pgj_57",
124313
- "timezone-field": "_timezone-field_63pgj_65",
124314
- "success-text": "_success-text_63pgj_73"
124425
+ "form-container": "_form-container_1odg5_1",
124426
+ "form-wrapper": "_form-wrapper_1odg5_4",
124427
+ "form-primary-text": "_form-primary-text_1odg5_8",
124428
+ "week-days-container": "_week-days-container_1odg5_12",
124429
+ "main-label": "_main-label_1odg5_15",
124430
+ "time-element": "_time-element_1odg5_19",
124431
+ "cancel-btn": "_cancel-btn_1odg5_23",
124432
+ "delete-btn": "_delete-btn_1odg5_26",
124433
+ "field-width": "_field-width_1odg5_29",
124434
+ "timezone-field": "_timezone-field_1odg5_33",
124435
+ "success-text": "_success-text_1odg5_37"
124315
124436
  };
124316
- const tag = "_tag_akdrv_1";
124317
- const tagBtn = "_tagBtn_akdrv_13";
124318
- const inputFieldContainer = "_inputFieldContainer_akdrv_21";
124437
+ const tag = "_tag_qld84_1";
124438
+ const tagBtn = "_tagBtn_qld84_7";
124439
+ const inputFieldContainer = "_inputFieldContainer_qld84_11";
124319
124440
  var styles = {
124320
124441
  tag,
124321
- "tag-text": "_tag-text_akdrv_7",
124442
+ "tag-text": "_tag-text_qld84_4",
124322
124443
  tagBtn,
124323
124444
  inputFieldContainer,
124324
- "tag-container": "_tag-container_akdrv_29",
124325
- "cross-icon": "_cross-icon_akdrv_37"
124445
+ "tag-container": "_tag-container_qld84_15",
124446
+ "cross-icon": "_cross-icon_qld84_19"
124326
124447
  };
124327
124448
  const TagInputField = ({
124328
124449
  control,