impaktapps-ui-builder 1.0.146 → 1.0.147-test.2

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.
@@ -7968,9 +7968,10 @@ const buildPropertiesSection = function(type) {
7968
7968
  uiSchema.elements = [
7969
7969
  getInputField("url", "Image Url"),
7970
7970
  getInputField("label", "Label"),
7971
+ getInputField("value", "Value"),
7971
7972
  getInputField("titleIcon", "Unicode of Icon for title"),
7972
7973
  getInputField("description", "Description"),
7973
- emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
7974
+ emptyBox$1("cardEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
7974
7975
  ];
7975
7976
  break;
7976
7977
  case "Button":
@@ -8115,8 +8116,7 @@ const buildPropertiesSection = function(type) {
8115
8116
  getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
8116
8117
  getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
8117
8118
  getInputField("description", "Enter description"),
8118
- getInputField("errorMessage", "Error Message"),
8119
- emptyBox$1("FileInputEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8119
+ emptyBox$1("FileInputEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
8120
8120
  ];
8121
8121
  break;
8122
8122
  }
@@ -8480,12 +8480,12 @@ const createLayoutFormat = (layout, type) => {
8480
8480
  });
8481
8481
  return data;
8482
8482
  };
8483
- const flatObjectValueInArray = (config2 = []) => {
8484
- if (config2.length < 1) {
8483
+ const flatObjectValueInArray = (config = []) => {
8484
+ if (config.length < 1) {
8485
8485
  return;
8486
8486
  }
8487
- const keyName = Object.keys(config2[0])[0];
8488
- const data = config2.map((e) => {
8487
+ const keyName = Object.keys(config[0])[0];
8488
+ const data = config.map((e) => {
8489
8489
  return e[keyName];
8490
8490
  });
8491
8491
  return data;
@@ -8493,9 +8493,9 @@ const flatObjectValueInArray = (config2 = []) => {
8493
8493
  const clearFromSessionStorage = () => {
8494
8494
  sessionStorage.removeItem("pageFormdata");
8495
8495
  };
8496
- const getNavigationHistory = (config2, path) => {
8496
+ const getNavigationHistory = (config, path) => {
8497
8497
  if (path) {
8498
- let urlRoutes = config2.name;
8498
+ let urlRoutes = config.name;
8499
8499
  const pathArrayAll = path.split(".");
8500
8500
  const arr = [];
8501
8501
  pathArrayAll.map((e, i) => {
@@ -8506,7 +8506,7 @@ const getNavigationHistory = (config2, path) => {
8506
8506
  arr.push(`${arr[i - 1]}.${e}`);
8507
8507
  });
8508
8508
  arr.map((e) => {
8509
- const data = _.get(config2, e);
8509
+ const data = _.get(config, e);
8510
8510
  if (data) {
8511
8511
  urlRoutes = urlRoutes + ` > ${(data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType)}`;
8512
8512
  } else {
@@ -8545,10 +8545,10 @@ async function saveHandler(store2, service2, submitHandler) {
8545
8545
  (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8546
8546
  const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8547
8547
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
8548
- const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
8548
+ const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
8549
8549
  if (_.isEmpty(store2.ctx.core.errors)) {
8550
8550
  try {
8551
- const saveReturn = await submitHandler(store2, service2, config2);
8551
+ const saveReturn = await submitHandler(store2, service2, config);
8552
8552
  navigateHandler(store2, true, "/PageMasterRecords");
8553
8553
  } catch (err) {
8554
8554
  navigateHandler(store2, false);
@@ -8792,10 +8792,10 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8792
8792
  if (sessionStorage.getItem("copiedConfig")) {
8793
8793
  schema2.properties.RemoveItemButton.disabled = false;
8794
8794
  }
8795
- const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
8795
+ const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
8796
8796
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8797
8797
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8798
- let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
8798
+ let pathArray = [{ label: (_c = config.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
8799
8799
  if (path) {
8800
8800
  const pathArrayAll = path.split(".");
8801
8801
  const arr = [];
@@ -8807,7 +8807,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8807
8807
  arr.push(`${arr[i - 1]}.${e}`);
8808
8808
  });
8809
8809
  arr.map((e) => {
8810
- const data = _.get(config2, e);
8810
+ const data = _.get(config, e);
8811
8811
  pathArray.push({
8812
8812
  label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
8813
8813
  path: `/Component?path=${e}${id ? `&id=${id}` : ""}`
@@ -9034,13 +9034,13 @@ var pageMaster = (funcParams) => {
9034
9034
  getFormdata: async function() {
9035
9035
  var _a;
9036
9036
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9037
- const config2 = await funcParams.pageConfigProvider(id);
9037
+ const config = await funcParams.pageConfigProvider(id);
9038
9038
  const formData = getFormdataFromSessionStorage();
9039
9039
  if (formData) {
9040
9040
  return formData;
9041
9041
  }
9042
- saveFormdataInSessionStorage(config2);
9043
- return { ...config2, type: "page" };
9042
+ saveFormdataInSessionStorage(config);
9043
+ return { ...config, type: "page" };
9044
9044
  },
9045
9045
  getUiSchema: function() {
9046
9046
  const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
@@ -10000,10 +10000,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10000
10000
  );
10001
10001
  schema2.properties.RemoveItemButton.disabled = false;
10002
10002
  }
10003
- const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
10003
+ const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
10004
10004
  const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
10005
10005
  const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
10006
- let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
10006
+ let pathArray = [{ label: (_c = config.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
10007
10007
  if (path) {
10008
10008
  const pathArrayAll = path.split(".");
10009
10009
  const arr = [];
@@ -10015,7 +10015,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10015
10015
  arr.push(`${arr[i - 1]}.${e}`);
10016
10016
  });
10017
10017
  arr.map((e) => {
10018
- const data = _.get(config2, e);
10018
+ const data = _.get(config, e);
10019
10019
  pathArray.push({
10020
10020
  label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
10021
10021
  path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
@@ -10036,10 +10036,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10036
10036
  if (sessionStorage.getItem("copiedConfig")) {
10037
10037
  schema2.properties.RemoveItemButton.disabled = false;
10038
10038
  }
10039
- const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
10039
+ const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
10040
10040
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
10041
10041
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
10042
- let pathArray = [{ label: (_c = config2.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
10042
+ let pathArray = [{ label: (_c = config.name) != null ? _c : "NewPage", path: `/PageMaster${id ? `?id=${id}` : ""}` }];
10043
10043
  if (path) {
10044
10044
  const pathArrayAll = path.split(".");
10045
10045
  const arr = [];
@@ -10051,7 +10051,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10051
10051
  arr.push(`${arr[i - 1]}.${e}`);
10052
10052
  });
10053
10053
  arr.map((e) => {
10054
- const data = _.get(config2, e);
10054
+ const data = _.get(config, e);
10055
10055
  pathArray.push({
10056
10056
  label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
10057
10057
  path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}${id ? `&id=${id}` : ""}` : `/Component?path=${e}${id ? `&id=${id}` : ""}`
@@ -10518,15 +10518,15 @@ var service = (funcParams) => {
10518
10518
  funcParams.store.newData = {};
10519
10519
  eventGroups = {};
10520
10520
  pageData = await funcParams.pageDataProvider();
10521
- const config2 = pageData == null ? void 0 : pageData.config;
10521
+ const config = pageData == null ? void 0 : pageData.config;
10522
10522
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10523
10523
  const event2 = new CustomEvent("pageNameChanged", {
10524
- detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10524
+ detail: { pageName: config.label, hasBackIcon: config.hasBackIcon === "NO" ? false : true }
10525
10525
  });
10526
10526
  window.dispatchEvent(event2);
10527
10527
  (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
10528
10528
  const schema2 = (_c = pageData == null ? void 0 : pageData.schema) != null ? _c : { type: "object", properties: {} };
10529
- eventGroups = extractEvents(config2);
10529
+ eventGroups = extractEvents(config);
10530
10530
  executeEventsParameters = {
10531
10531
  config: {},
10532
10532
  componentName: "",
@@ -10757,10 +10757,10 @@ var leaderBoard = {
10757
10757
  main: {}
10758
10758
  }
10759
10759
  };
10760
- const buildLeaderBoard = (config2) => {
10760
+ const buildLeaderBoard = (config) => {
10761
10761
  const LeaderBoard = _.cloneDeep(leaderBoard);
10762
- if (config2.elements) {
10763
- const modifyColumns = config2.elements.map((e, i) => {
10762
+ if (config.elements) {
10763
+ const modifyColumns = config.elements.map((e, i) => {
10764
10764
  if (!e.type) {
10765
10765
  return { accessorKey: e.name, header: e.label || e.name };
10766
10766
  }
@@ -10769,36 +10769,36 @@ const buildLeaderBoard = (config2) => {
10769
10769
  });
10770
10770
  LeaderBoard.elements = modifyColumns;
10771
10771
  }
10772
- LeaderBoard.config.main.label = config2.label;
10773
- if (config2.name) {
10774
- LeaderBoard.scope = `#/properties/${config2.name}`;
10772
+ LeaderBoard.config.main.label = config.label;
10773
+ if (config.name) {
10774
+ LeaderBoard.scope = `#/properties/${config.name}`;
10775
10775
  }
10776
- if (config2.firstImage) {
10777
- LeaderBoard.config.main.firstImage = config2.firstImage;
10776
+ if (config.firstImage) {
10777
+ LeaderBoard.config.main.firstImage = config.firstImage;
10778
10778
  }
10779
- if (config2.secondImage) {
10780
- LeaderBoard.config.main.secondImage = config2.secondImage;
10779
+ if (config.secondImage) {
10780
+ LeaderBoard.config.main.secondImage = config.secondImage;
10781
10781
  }
10782
- if (config2.thirdImage) {
10783
- LeaderBoard.config.main.thirdImage = config2.thirdImage;
10782
+ if (config.thirdImage) {
10783
+ LeaderBoard.config.main.thirdImage = config.thirdImage;
10784
10784
  }
10785
- if (config2.nameKey) {
10786
- LeaderBoard.config.main.nameKey = config2.nameKey;
10785
+ if (config.nameKey) {
10786
+ LeaderBoard.config.main.nameKey = config.nameKey;
10787
10787
  }
10788
- if (config2.imageKey) {
10789
- LeaderBoard.config.main.imageKey = config2.imageKey;
10788
+ if (config.imageKey) {
10789
+ LeaderBoard.config.main.imageKey = config.imageKey;
10790
10790
  }
10791
- if (config2.scoreKey) {
10792
- LeaderBoard.config.main.scoreKey = config2.scoreKey;
10791
+ if (config.scoreKey) {
10792
+ LeaderBoard.config.main.scoreKey = config.scoreKey;
10793
10793
  }
10794
- if (config2.isScoreAmount) {
10795
- LeaderBoard.config.main.isScoreAmount = config2.isScoreAmount === "YES" ? true : false;
10794
+ if (config.isScoreAmount) {
10795
+ LeaderBoard.config.main.isScoreAmount = config.isScoreAmount === "YES" ? true : false;
10796
10796
  }
10797
- if (config2.layout) {
10798
- LeaderBoard.config.layout = createLayoutFormat(config2.layout, config2.type);
10797
+ if (config.layout) {
10798
+ LeaderBoard.config.layout = createLayoutFormat(config.layout, config.type);
10799
10799
  }
10800
- if (config2.style) {
10801
- LeaderBoard.config.style = JSON.parse(config2.style);
10800
+ if (config.style) {
10801
+ LeaderBoard.config.style = JSON.parse(config.style);
10802
10802
  }
10803
10803
  return LeaderBoard;
10804
10804
  };
@@ -10817,44 +10817,44 @@ var progressBar = {
10817
10817
  }
10818
10818
  }
10819
10819
  };
10820
- const buildProgressBarCard = (config2, myScope) => {
10820
+ const buildProgressBarCard = (config, myScope) => {
10821
10821
  const progressBarCard = _.cloneDeep(progressBar);
10822
10822
  progressBarCard.scope = myScope;
10823
- if (config2.heading) {
10824
- progressBarCard.config.main.heading = config2.heading;
10823
+ if (config.heading) {
10824
+ progressBarCard.config.main.heading = config.heading;
10825
10825
  }
10826
- if (config2.bottomLabel_3) {
10827
- progressBarCard.config.main.bottomLabel_3 = config2.bottomLabel_3;
10826
+ if (config.bottomLabel_3) {
10827
+ progressBarCard.config.main.bottomLabel_3 = config.bottomLabel_3;
10828
10828
  }
10829
- if (config2.bottomLabel_2) {
10830
- progressBarCard.config.main.bottomLabel_2 = config2.bottomLabel_2;
10829
+ if (config.bottomLabel_2) {
10830
+ progressBarCard.config.main.bottomLabel_2 = config.bottomLabel_2;
10831
10831
  }
10832
- if (config2.bottomLabel_1) {
10833
- progressBarCard.elements[0].config.main.bottomLabel_1 = config2.bottomLabel_1;
10832
+ if (config.bottomLabel_1) {
10833
+ progressBarCard.elements[0].config.main.bottomLabel_1 = config.bottomLabel_1;
10834
10834
  }
10835
- if (config2.layout) {
10836
- progressBarCard.config.layout = createLayoutFormat(config2.layout);
10835
+ if (config.layout) {
10836
+ progressBarCard.config.layout = createLayoutFormat(config.layout);
10837
10837
  }
10838
10838
  return progressBarCard;
10839
10839
  };
10840
- const buildProgressBar = (config2, componentScope2) => {
10840
+ const buildProgressBar = (config, componentScope) => {
10841
10841
  const ProgressBar = _.cloneDeep(progressBar);
10842
- ProgressBar.scope = componentScope2;
10843
- if (config2.layout) {
10844
- ProgressBar.config.layout = config2.layout;
10842
+ ProgressBar.scope = componentScope;
10843
+ if (config.layout) {
10844
+ ProgressBar.config.layout = config.layout;
10845
10845
  }
10846
- ProgressBar.config.main.heading = config2.label;
10847
- if (config2.bottomLabel_3) {
10848
- ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
10846
+ ProgressBar.config.main.heading = config.label;
10847
+ if (config.bottomLabel_3) {
10848
+ ProgressBar.config.main.bottomLabel_3 = config.bottomLabel_3;
10849
10849
  }
10850
- if (config2.layout) {
10851
- ProgressBar.config.layout = createLayoutFormat(config2.layout);
10850
+ if (config.layout) {
10851
+ ProgressBar.config.layout = createLayoutFormat(config.layout);
10852
10852
  }
10853
- if (config2.bottomLabel_2) {
10854
- ProgressBar.config.main.bottomLabel_2 = config2.bottomLabel_2;
10853
+ if (config.bottomLabel_2) {
10854
+ ProgressBar.config.main.bottomLabel_2 = config.bottomLabel_2;
10855
10855
  }
10856
- if (config2.bottomLabel_1) {
10857
- ProgressBar.config.main.bottomLabel_1 = config2.bottomLabel_1;
10856
+ if (config.bottomLabel_1) {
10857
+ ProgressBar.config.main.bottomLabel_1 = config.bottomLabel_1;
10858
10858
  }
10859
10859
  return ProgressBar;
10860
10860
  };
@@ -10918,49 +10918,49 @@ const HorizontalBarGraph = {
10918
10918
  style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
10919
10919
  }
10920
10920
  };
10921
- const buildHorizontalBarGraph = (config2, componentScope2) => {
10921
+ const buildHorizontalBarGraph = (config, componentScope) => {
10922
10922
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
10923
- horizontalBarGraph.scope = componentScope2;
10924
- if (config2.layout) {
10925
- horizontalBarGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
10923
+ horizontalBarGraph.scope = componentScope;
10924
+ if (config.layout) {
10925
+ horizontalBarGraph.config.layout = createLayoutFormat(config.layout, config.type);
10926
10926
  }
10927
- horizontalBarGraph.config.main.type = config2.graphType;
10928
- horizontalBarGraph.scope = componentScope2;
10929
- horizontalBarGraph.config.main.header = config2.heading;
10930
- if (config2.legendHide) {
10931
- horizontalBarGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
10927
+ horizontalBarGraph.config.main.type = config.graphType;
10928
+ horizontalBarGraph.scope = componentScope;
10929
+ horizontalBarGraph.config.main.header = config.heading;
10930
+ if (config.legendHide) {
10931
+ horizontalBarGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
10932
10932
  }
10933
- if (config2.bottomAxisAngle) {
10934
- horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
10933
+ if (config.bottomAxisAngle) {
10934
+ horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
10935
10935
  }
10936
- if (config2.legendLabels) {
10937
- horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
10936
+ if (config.legendLabels) {
10937
+ horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
10938
10938
  }
10939
- if (config2.legendDirection) {
10940
- horizontalBarGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
10939
+ if (config.legendDirection) {
10940
+ horizontalBarGraph.config.main.legendDirection = config.legendDirection === "Row" ? "row" : "column";
10941
10941
  }
10942
- if (config2.pieArcColors) {
10943
- horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
10942
+ if (config.pieArcColors) {
10943
+ horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
10944
10944
  }
10945
- if (config2.xAxisValue) {
10946
- horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
10945
+ if (config.xAxisValue) {
10946
+ horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
10947
10947
  }
10948
- if (config2.height) {
10949
- horizontalBarGraph.config.style.containerStyle.height = config2.height;
10948
+ if (config.height) {
10949
+ horizontalBarGraph.config.style.containerStyle.height = config.height;
10950
10950
  }
10951
- if (config2.leftMargin) {
10951
+ if (config.leftMargin) {
10952
10952
  horizontalBarGraph.config.style.labelStyle.margin = {
10953
- left: config2.leftMargin
10953
+ left: config.leftMargin
10954
10954
  };
10955
10955
  }
10956
- if (config2.bottomLabel) {
10957
- horizontalBarGraph.config.main.bottomLabel = config2.bottomLabel;
10956
+ if (config.bottomLabel) {
10957
+ horizontalBarGraph.config.main.bottomLabel = config.bottomLabel;
10958
10958
  }
10959
- if (config2.leftLabel) {
10960
- horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
10959
+ if (config.leftLabel) {
10960
+ horizontalBarGraph.config.main.leftLabel = config.leftLabel;
10961
10961
  }
10962
- if (config2.disableLeftLabel) {
10963
- horizontalBarGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
10962
+ if (config.disableLeftLabel) {
10963
+ horizontalBarGraph.config.main.disableLeftLabel = config.disableLeftLabel === "YES" ? true : false;
10964
10964
  }
10965
10965
  return horizontalBarGraph;
10966
10966
  };
@@ -11010,20 +11010,20 @@ var SpeedoMeter = {
11010
11010
  }
11011
11011
  }
11012
11012
  };
11013
- const buildSpeedoMeter = (config2, componentScope2) => {
11013
+ const buildSpeedoMeter = (config, componentScope) => {
11014
11014
  const speedoMeter = _.cloneDeep(SpeedoMeter);
11015
- speedoMeter.scope = componentScope2;
11016
- if (config2.layout) {
11017
- speedoMeter.config.layout = createLayoutFormat(config2.layout);
11015
+ speedoMeter.scope = componentScope;
11016
+ if (config.layout) {
11017
+ speedoMeter.config.layout = createLayoutFormat(config.layout);
11018
11018
  }
11019
- if (config2.heading) {
11020
- speedoMeter.config.main.header = config2.heading;
11019
+ if (config.heading) {
11020
+ speedoMeter.config.main.header = config.heading;
11021
11021
  }
11022
- if (config2.segments) {
11023
- speedoMeter.config.main.segments = config2.segments;
11022
+ if (config.segments) {
11023
+ speedoMeter.config.main.segments = config.segments;
11024
11024
  }
11025
- if (config2.style) {
11026
- const styleObj = JSON.parse(config2.style);
11025
+ if (config.style) {
11026
+ const styleObj = JSON.parse(config.style);
11027
11027
  if (styleObj == null ? void 0 : styleObj.style) {
11028
11028
  speedoMeter.config.style = { ...speedoMeter.config.style, ...styleObj.style };
11029
11029
  }
@@ -11031,104 +11031,104 @@ const buildSpeedoMeter = (config2, componentScope2) => {
11031
11031
  speedoMeter.config.style.containerStyle = { ...speedoMeter.config.style.containerStyle, ...styleObj.containerStyle };
11032
11032
  }
11033
11033
  }
11034
- if (config2.width) {
11035
- speedoMeter.config.main.width = config2.width;
11034
+ if (config.width) {
11035
+ speedoMeter.config.main.width = config.width;
11036
11036
  }
11037
- if (config2.speedoCaption) {
11038
- speedoMeter.config.main.currentValueText = config2.speedoCaption;
11037
+ if (config.speedoCaption) {
11038
+ speedoMeter.config.main.currentValueText = config.speedoCaption;
11039
11039
  }
11040
- if (config2.data) {
11041
- speedoMeter.config.main.data = config2.data;
11040
+ if (config.data) {
11041
+ speedoMeter.config.main.data = config.data;
11042
11042
  }
11043
- if (config2.needleColor) {
11044
- speedoMeter.config.style.needleColor = config2.needleColor;
11043
+ if (config.needleColor) {
11044
+ speedoMeter.config.style.needleColor = config.needleColor;
11045
11045
  }
11046
- if (config2.segments) {
11047
- speedoMeter.config.style.segments = config2.segments;
11046
+ if (config.segments) {
11047
+ speedoMeter.config.style.segments = config.segments;
11048
11048
  }
11049
- if (config2.endColor) {
11050
- speedoMeter.config.style.endColor = config2.endColor;
11049
+ if (config.endColor) {
11050
+ speedoMeter.config.style.endColor = config.endColor;
11051
11051
  }
11052
- if (config2.startColor) {
11053
- speedoMeter.config.style.startColor = config2.startColor;
11052
+ if (config.startColor) {
11053
+ speedoMeter.config.style.startColor = config.startColor;
11054
11054
  }
11055
- if (config2.segmentColors) {
11056
- speedoMeter.config.style.segmentColors = config2.segmentColors;
11055
+ if (config.segmentColors) {
11056
+ speedoMeter.config.style.segmentColors = config.segmentColors;
11057
11057
  }
11058
11058
  return speedoMeter;
11059
11059
  };
11060
- const buildPieGraph = (config2, componentScope2) => {
11060
+ const buildPieGraph = (config, componentScope) => {
11061
11061
  const pieGraph = _.cloneDeep(PieGraph);
11062
- if (config2.layout) {
11063
- pieGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
11062
+ if (config.layout) {
11063
+ pieGraph.config.layout = createLayoutFormat(config.layout, config.type);
11064
11064
  }
11065
- if (config2.height) {
11066
- pieGraph.config.style.containerStyle.height = config2.height;
11065
+ if (config.height) {
11066
+ pieGraph.config.style.containerStyle.height = config.height;
11067
11067
  }
11068
- if (config2.legendHide) {
11069
- pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
11068
+ if (config.legendHide) {
11069
+ pieGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
11070
11070
  }
11071
- if (config2.legendDirection) {
11072
- pieGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
11071
+ if (config.legendDirection) {
11072
+ pieGraph.config.main.legendDirection = config.legendDirection === "Row" ? "row" : "column";
11073
11073
  }
11074
- pieGraph.scope = componentScope2;
11075
- pieGraph.config.main.header = config2.heading;
11076
- if (config2.legendLabels) {
11077
- pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11074
+ pieGraph.scope = componentScope;
11075
+ pieGraph.config.main.header = config.heading;
11076
+ if (config.legendLabels) {
11077
+ pieGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
11078
11078
  }
11079
- if (config2.xAxisValue) {
11080
- pieGraph.config.main.xAxisValue = config2.xAxisValue;
11079
+ if (config.xAxisValue) {
11080
+ pieGraph.config.main.xAxisValue = config.xAxisValue;
11081
11081
  }
11082
- if (config2.pieArcColors) {
11083
- pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11082
+ if (config.pieArcColors) {
11083
+ pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
11084
11084
  }
11085
11085
  return pieGraph;
11086
11086
  };
11087
- const buildStackbarGraph = (config2, componentScope2) => {
11087
+ const buildStackbarGraph = (config, componentScope) => {
11088
11088
  var _a;
11089
11089
  const barGraph = _.cloneDeep(BarGraph);
11090
- if (config2.layout) {
11091
- barGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
11090
+ if (config.layout) {
11091
+ barGraph.config.layout = createLayoutFormat(config.layout, config.type);
11092
11092
  }
11093
- if (config2.legendHide) {
11094
- barGraph.config.main.legendAvailable = config2.legendHide;
11095
- barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
11093
+ if (config.legendHide) {
11094
+ barGraph.config.main.legendAvailable = config.legendHide;
11095
+ barGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
11096
11096
  }
11097
- if (config2.legendDirection) {
11098
- barGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
11097
+ if (config.legendDirection) {
11098
+ barGraph.config.main.legendDirection = config.legendDirection === "Row" ? "row" : "column";
11099
11099
  }
11100
- if (config2.bottomAxisAngle) {
11101
- barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
11100
+ if (config.bottomAxisAngle) {
11101
+ barGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
11102
11102
  }
11103
- barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
11104
- barGraph.config.main.header = config2.heading;
11105
- if (config2.legendLabels) {
11106
- barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
11103
+ barGraph.config.main.type = (_a = config == null ? void 0 : config.graphType) != null ? _a : "BarGraph";
11104
+ barGraph.config.main.header = config.heading;
11105
+ if (config.legendLabels) {
11106
+ barGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
11107
11107
  }
11108
- if (config2.pieArcColors) {
11109
- barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
11108
+ if (config.pieArcColors) {
11109
+ barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
11110
11110
  }
11111
- if (config2.xAxisValue) {
11112
- barGraph.config.main.xAxisValue = config2.xAxisValue;
11111
+ if (config.xAxisValue) {
11112
+ barGraph.config.main.xAxisValue = config.xAxisValue;
11113
11113
  }
11114
- if (config2.height) {
11115
- barGraph.config.style.containerStyle.height = config2.height;
11114
+ if (config.height) {
11115
+ barGraph.config.style.containerStyle.height = config.height;
11116
11116
  }
11117
- if (config2.leftMargin) {
11117
+ if (config.leftMargin) {
11118
11118
  barGraph.config.style.labelStyle.margin = {
11119
- left: config2.leftMargin
11119
+ left: config.leftMargin
11120
11120
  };
11121
11121
  }
11122
- if (config2.bottomLabel) {
11123
- barGraph.config.main.bottomLabel = config2.bottomLabel;
11122
+ if (config.bottomLabel) {
11123
+ barGraph.config.main.bottomLabel = config.bottomLabel;
11124
11124
  }
11125
- if (config2.leftLabel) {
11126
- barGraph.config.main.leftLabel = config2.leftLabel;
11125
+ if (config.leftLabel) {
11126
+ barGraph.config.main.leftLabel = config.leftLabel;
11127
11127
  }
11128
- if (config2.disableLeftLabel) {
11129
- barGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
11128
+ if (config.disableLeftLabel) {
11129
+ barGraph.config.main.disableLeftLabel = config.disableLeftLabel === "YES" ? true : false;
11130
11130
  }
11131
- barGraph.scope = componentScope2;
11131
+ barGraph.scope = componentScope;
11132
11132
  return barGraph;
11133
11133
  };
11134
11134
  var RunnerBoyProgressBar = {
@@ -11142,11 +11142,11 @@ var RunnerBoyProgressBar = {
11142
11142
  main: {}
11143
11143
  }
11144
11144
  };
11145
- const RunnerBoyProgressbar = (config2, componentScope2) => {
11145
+ const RunnerBoyProgressbar = (config, componentScope) => {
11146
11146
  const RunnerBoy = _.cloneDeep(RunnerBoyProgressBar);
11147
- RunnerBoy.scope = componentScope2;
11148
- if (config2.layout) {
11149
- RunnerBoy.config.layout = createLayoutFormat(config2.layout);
11147
+ RunnerBoy.scope = componentScope;
11148
+ if (config.layout) {
11149
+ RunnerBoy.config.layout = createLayoutFormat(config.layout);
11150
11150
  }
11151
11151
  return RunnerBoy;
11152
11152
  };
@@ -11161,22 +11161,22 @@ var Tabsection = {
11161
11161
  },
11162
11162
  elements: []
11163
11163
  };
11164
- const buildTabSection = (config2, componentScope2) => {
11164
+ const buildTabSection = (config, componentScope) => {
11165
11165
  const tab = _.cloneDeep(Tabsection);
11166
- tab.scope = componentScope2;
11167
- if (config2.lazyLoad) {
11168
- tab.config.main.lazyLoad = config2.lazyLoad === "YES" ? true : false;
11166
+ tab.scope = componentScope;
11167
+ if (config.lazyLoad) {
11168
+ tab.config.main.lazyLoad = config.lazyLoad === "YES" ? true : false;
11169
11169
  }
11170
- if (config2.orientation) {
11171
- tab.config.main.orientation = config2.orientation === "YES" ? "vertical" : "horizontal";
11170
+ if (config.orientation) {
11171
+ tab.config.main.orientation = config.orientation === "YES" ? "vertical" : "horizontal";
11172
11172
  }
11173
- if (config2.sectionLabels) {
11174
- tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
11173
+ if (config.sectionLabels) {
11174
+ tab.config.main.tabLabels = config.sectionLabels.map((e) => e.label);
11175
11175
  }
11176
- if (config2.style) {
11177
- tab.config.style = JSON.parse(config2.style);
11176
+ if (config.style) {
11177
+ tab.config.style = JSON.parse(config.style);
11178
11178
  }
11179
- tab.config.main.id = config2.name;
11179
+ tab.config.main.id = config.name;
11180
11180
  return tab;
11181
11181
  };
11182
11182
  var WrapperSection = {
@@ -11192,20 +11192,20 @@ var WrapperSection = {
11192
11192
  },
11193
11193
  elements: []
11194
11194
  };
11195
- const buildWrapperSection = (config2, componentScope2) => {
11195
+ const buildWrapperSection = (config, componentScope) => {
11196
11196
  const wrapper = _.cloneDeep(WrapperSection);
11197
- wrapper.scope = componentScope2;
11198
- wrapper.config.main.label = config2.label;
11199
- wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11200
- wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11201
- if (config2.defaultStyle) {
11202
- wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11197
+ wrapper.scope = componentScope;
11198
+ wrapper.config.main.label = config.label;
11199
+ wrapper.config.main.divider = config.divider === "YES" ? true : false;
11200
+ wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
11201
+ if (config.defaultStyle) {
11202
+ wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
11203
11203
  }
11204
- if (config2.style) {
11205
- wrapper.config.style = JSON.parse(config2.style);
11204
+ if (config.style) {
11205
+ wrapper.config.style = JSON.parse(config.style);
11206
11206
  }
11207
- if (config2.layout) {
11208
- wrapper.config.layout = createLayoutFormat(config2.layout, config2.type);
11207
+ if (config.layout) {
11208
+ wrapper.config.layout = createLayoutFormat(config.layout, config.type);
11209
11209
  }
11210
11210
  return wrapper;
11211
11211
  };
@@ -11223,32 +11223,32 @@ var TextInputField = {
11223
11223
  style: {}
11224
11224
  }
11225
11225
  };
11226
- const buildTextField = (config2, componentScope2) => {
11226
+ const buildTextField = (config, componentScope) => {
11227
11227
  const inputField = _.cloneDeep(TextInputField);
11228
- inputField.config.main.label = config2.label;
11229
- if (config2.style) {
11230
- inputField.config.style = JSON.parse(config2.style);
11228
+ inputField.config.main.label = config.label;
11229
+ if (config.style) {
11230
+ inputField.config.style = JSON.parse(config.style);
11231
11231
  }
11232
- if (config2.multiline) {
11233
- inputField.config.main.multiline = config2.multiline === "YES" ? true : false;
11232
+ if (config.multiline) {
11233
+ inputField.config.main.multiline = config.multiline === "YES" ? true : false;
11234
11234
  }
11235
- if (config2.keyName) {
11236
- inputField.config.main.keyName = config2.keyName;
11235
+ if (config.keyName) {
11236
+ inputField.config.main.keyName = config.keyName;
11237
11237
  }
11238
- if (config2.InputFormatingAndMasking) {
11239
- inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
11238
+ if (config.InputFormatingAndMasking) {
11239
+ inputField.config.main.formatStrArray = config.InputFormatingAndMasking.map((e) => e.formatElement);
11240
11240
  }
11241
- if (config2.placeholder) {
11242
- inputField.config.main.placeholder = config2.placeholder;
11241
+ if (config.placeholder) {
11242
+ inputField.config.main.placeholder = config.placeholder;
11243
11243
  }
11244
- if (config2.variant) {
11245
- inputField.config.main.variant = config2.variant;
11244
+ if (config.variant) {
11245
+ inputField.config.main.variant = config.variant;
11246
11246
  }
11247
- if (config2.layout) {
11248
- inputField.config.layout = createLayoutFormat(config2.layout);
11247
+ if (config.layout) {
11248
+ inputField.config.layout = createLayoutFormat(config.layout);
11249
11249
  }
11250
- inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11251
- inputField.scope = componentScope2;
11250
+ inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11251
+ inputField.scope = componentScope;
11252
11252
  return inputField;
11253
11253
  };
11254
11254
  var SelectInputField = {
@@ -11266,25 +11266,25 @@ var SelectInputField = {
11266
11266
  }
11267
11267
  }
11268
11268
  };
11269
- const buildSelect = (config2, componentScope2) => {
11269
+ const buildSelect = (config, componentScope) => {
11270
11270
  const selectInputField = _.cloneDeep(SelectInputField);
11271
- selectInputField.config.main.label = config2.label;
11272
- if (config2.value) {
11273
- selectInputField.config.main.options = config2.value;
11271
+ selectInputField.config.main.label = config.label;
11272
+ if (config.value) {
11273
+ selectInputField.config.main.options = config.value;
11274
11274
  }
11275
- if (config2.freeSolo) {
11276
- selectInputField.config.main.freeSolo = config2.freeSolo === "YES" ? true : false;
11275
+ if (config.freeSolo) {
11276
+ selectInputField.config.main.freeSolo = config.freeSolo === "YES" ? true : false;
11277
11277
  }
11278
- if (config2.lazyLoading) {
11279
- selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11278
+ if (config.lazyLoading) {
11279
+ selectInputField.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
11280
11280
  }
11281
- if (config2.variant) {
11282
- selectInputField.config.main.variant = config2.variant;
11281
+ if (config.variant) {
11282
+ selectInputField.config.main.variant = config.variant;
11283
11283
  }
11284
- if (config2.layout) {
11285
- selectInputField.config.layout = createLayoutFormat(config2.layout);
11284
+ if (config.layout) {
11285
+ selectInputField.config.layout = createLayoutFormat(config.layout);
11286
11286
  }
11287
- selectInputField.scope = componentScope2;
11287
+ selectInputField.scope = componentScope;
11288
11288
  return selectInputField;
11289
11289
  };
11290
11290
  var Button = {
@@ -11308,37 +11308,37 @@ var Button = {
11308
11308
  style: {}
11309
11309
  }
11310
11310
  };
11311
- const buildButton = (config2, componentScope2) => {
11311
+ const buildButton = (config, componentScope) => {
11312
11312
  const button = _.cloneDeep(Button);
11313
- if (config2.buttonType) {
11314
- button.options.widget = config2.buttonType === "IconButton" ? "IconButton" : "Button";
11315
- config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
11313
+ if (config.buttonType) {
11314
+ button.options.widget = config.buttonType === "IconButton" ? "IconButton" : "Button";
11315
+ config.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config.iconName : button.config.main.icon = config.iconName;
11316
11316
  }
11317
- if (config2.layout) {
11318
- button.config.layout = createLayoutFormat(config2.layout, config2.type);
11317
+ if (config.layout) {
11318
+ button.config.layout = createLayoutFormat(config.layout, config.type);
11319
11319
  }
11320
- if (config2.tooltipMessage) {
11321
- button.config.main.tooltipMessage = config2.tooltipMessage;
11320
+ if (config.tooltipMessage) {
11321
+ button.config.main.tooltipMessage = config.tooltipMessage;
11322
11322
  }
11323
- if (config2.defaultStyle) {
11324
- if (config2.buttonType === "IconButton") {
11325
- button.config.main.styleDefault = config2.defaultStyle === "true" ? true : false;
11323
+ if (config.defaultStyle) {
11324
+ if (config.buttonType === "IconButton") {
11325
+ button.config.main.styleDefault = config.defaultStyle === "true" ? true : false;
11326
11326
  } else {
11327
- button.config.main.enableDefaultStyle = config2.defaultStyle === "true" ? false : true;
11327
+ button.config.main.enableDefaultStyle = config.defaultStyle === "true" ? false : true;
11328
11328
  }
11329
11329
  }
11330
- button.scope = componentScope2;
11331
- if (config2.style) {
11332
- button.config.style = JSON.parse(config2.style);
11330
+ button.scope = componentScope;
11331
+ if (config.style) {
11332
+ button.config.style = JSON.parse(config.style);
11333
11333
  }
11334
- if (config2.size) {
11335
- button.config.main.size = config2.size;
11334
+ if (config.size) {
11335
+ button.config.main.size = config.size;
11336
11336
  }
11337
- if (config2.color) {
11338
- button.config.main.color = config2.color;
11337
+ if (config.color) {
11338
+ button.config.main.color = config.color;
11339
11339
  }
11340
- if (config2.label) {
11341
- button.config.main.name = config2.label;
11340
+ if (config.label) {
11341
+ button.config.main.name = config.label;
11342
11342
  }
11343
11343
  return button;
11344
11344
  };
@@ -11364,83 +11364,83 @@ var Table = {
11364
11364
  }
11365
11365
  }
11366
11366
  };
11367
- const buildTable = (config2, componentScope2) => {
11367
+ const buildTable = (config, componentScope) => {
11368
11368
  const table = _.cloneDeep(Table);
11369
- table.scope = componentScope2;
11370
- if (config2.style) {
11371
- table.config.style = JSON.parse(config2.style);
11369
+ table.scope = componentScope;
11370
+ if (config.style) {
11371
+ table.config.style = JSON.parse(config.style);
11372
11372
  }
11373
- if (config2.lazyLoading) {
11374
- table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11373
+ if (config.lazyLoading) {
11374
+ table.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
11375
11375
  }
11376
- if (config2.defaultColumnSize) {
11377
- table.config.main.defaultColumnSize = config2.defaultColumnSize;
11376
+ if (config.defaultColumnSize) {
11377
+ table.config.main.defaultColumnSize = config.defaultColumnSize;
11378
11378
  }
11379
- if (config2.enableRowMovement) {
11380
- table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
11379
+ if (config.enableRowMovement) {
11380
+ table.config.main.enableRowMovement = config.enableRowMovement === "YES" ? true : false;
11381
11381
  }
11382
- if (config2.enableExpanding) {
11383
- table.config.main.enableExpanding = config2.enableExpanding === "YES" ? true : false;
11382
+ if (config.enableExpanding) {
11383
+ table.config.main.enableExpanding = config.enableExpanding === "YES" ? true : false;
11384
11384
  }
11385
- if (config2.enableExpandAll) {
11386
- table.config.main.enableExpandAll = config2.enableExpandAll === "YES" ? true : false;
11385
+ if (config.enableExpandAll) {
11386
+ table.config.main.enableExpandAll = config.enableExpandAll === "YES" ? true : false;
11387
11387
  }
11388
- if (config2.filterFromLeafRows) {
11389
- table.config.main.filterFromLeafRows = config2.filterFromLeafRows === "YES" ? true : false;
11388
+ if (config.filterFromLeafRows) {
11389
+ table.config.main.filterFromLeafRows = config.filterFromLeafRows === "YES" ? true : false;
11390
11390
  }
11391
- if (config2.paginateExpandedRows) {
11392
- table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
11391
+ if (config.paginateExpandedRows) {
11392
+ table.config.main.paginateExpandedRows = config.paginateExpandedRows === "YES" ? true : false;
11393
11393
  }
11394
- if (config2.treeStructure) {
11395
- table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
11394
+ if (config.treeStructure) {
11395
+ table.config.main.treeStructure = config.treeStructure === "YES" ? "flatTreeMap" : false;
11396
11396
  }
11397
- if (config2.SelectionAvailable) {
11398
- table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
11397
+ if (config.SelectionAvailable) {
11398
+ table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false;
11399
11399
  }
11400
- if (config2.ColumnResizingAvailable) {
11401
- table.config.main.disableColumnResizing = config2.ColumnResizingAvailable === "YES" ? false : true;
11400
+ if (config.ColumnResizingAvailable) {
11401
+ table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? false : true;
11402
11402
  }
11403
- if (config2.DragAvailable) {
11404
- table.config.main.enableDrag = config2.DragAvailable === "YES" ? true : false;
11403
+ if (config.DragAvailable) {
11404
+ table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false;
11405
11405
  }
11406
- if (config2.downloadAllData) {
11407
- table.config.main.downloadAllData = config2.downloadAllData === "YES" ? true : false;
11406
+ if (config.downloadAllData) {
11407
+ table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
11408
11408
  }
11409
- if (config2.disableGlobalSearch) {
11410
- table.config.main.disableGlobalSearch = config2.disableGlobalSearch === "YES" ? true : false;
11409
+ if (config.disableGlobalSearch) {
11410
+ table.config.main.disableGlobalSearch = config.disableGlobalSearch === "YES" ? true : false;
11411
11411
  }
11412
- if (config2.disableColumnFilter) {
11413
- table.config.main.disableColumnFilter = config2.disableColumnFilter === "YES" ? true : false;
11412
+ if (config.disableColumnFilter) {
11413
+ table.config.main.disableColumnFilter = config.disableColumnFilter === "YES" ? true : false;
11414
11414
  }
11415
- if (config2.disableSorting) {
11416
- table.config.main.disableSorting = config2.disableSorting === "YES" ? true : false;
11415
+ if (config.disableSorting) {
11416
+ table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
11417
11417
  }
11418
- if (config2.disableEditColumn) {
11419
- table.config.main.disableEditColumn = config2.disableEditColumn === "YES" ? true : false;
11418
+ if (config.disableEditColumn) {
11419
+ table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false;
11420
11420
  }
11421
- if (config2.disableFullScreenToggle) {
11422
- table.config.main.disableFullScreenToggle = config2.disableFullScreenToggle === "YES" ? true : false;
11421
+ if (config.disableFullScreenToggle) {
11422
+ table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false;
11423
11423
  }
11424
- if (config2.disableDensityToggle) {
11425
- table.config.main.disableDensityToggle = config2.disableDensityToggle === "YES" ? true : false;
11424
+ if (config.disableDensityToggle) {
11425
+ table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false;
11426
11426
  }
11427
- if (config2.disableDownloadFile) {
11428
- table.config.main.disableDownloadFile = config2.disableDownloadFile === "YES" ? true : false;
11427
+ if (config.disableDownloadFile) {
11428
+ table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false;
11429
11429
  }
11430
- if (config2.disablePagination) {
11431
- table.config.main.disablePagination = config2.disablePagination === "YES" ? true : false;
11430
+ if (config.disablePagination) {
11431
+ table.config.main.disablePagination = config.disablePagination === "YES" ? true : false;
11432
11432
  }
11433
- if (config2.Table_Download_Keys_Name) {
11434
- table.config.main.TableDownloadKeysName = config2.Table_Download_Keys_Name.map((e) => e.KeyName);
11433
+ if (config.Table_Download_Keys_Name) {
11434
+ table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map((e) => e.KeyName);
11435
11435
  }
11436
- if (config2.selectKey) {
11437
- table.config.main.selectKey = config2.selectKey;
11436
+ if (config.selectKey) {
11437
+ table.config.main.selectKey = config.selectKey;
11438
11438
  }
11439
- if (config2.maxPageSize) {
11440
- table.config.main.maxPageSize = config2.maxPageSize;
11439
+ if (config.maxPageSize) {
11440
+ table.config.main.maxPageSize = config.maxPageSize;
11441
11441
  }
11442
- if (config2.initialDensity) {
11443
- table.config.main.initialDensity = config2.initialDensity;
11442
+ if (config.initialDensity) {
11443
+ table.config.main.initialDensity = config.initialDensity;
11444
11444
  }
11445
11445
  return table;
11446
11446
  };
@@ -11458,18 +11458,18 @@ const Box = {
11458
11458
  style: {}
11459
11459
  }
11460
11460
  };
11461
- const buildLabel = (config2, componentScope2) => {
11461
+ const buildLabel = (config, componentScope) => {
11462
11462
  const box = _.cloneDeep(Box);
11463
- box.scope = componentScope2;
11464
- box.config.main.heading = config2.label;
11465
- if (config2.layout) {
11466
- box.config.layout = createLayoutFormat(config2.layout);
11463
+ box.scope = componentScope;
11464
+ box.config.main.heading = config.label;
11465
+ if (config.layout) {
11466
+ box.config.layout = createLayoutFormat(config.layout);
11467
11467
  }
11468
- if (config2.iconName) {
11469
- box.config.main.iconName = config2.iconName;
11468
+ if (config.iconName) {
11469
+ box.config.main.iconName = config.iconName;
11470
11470
  }
11471
- if (config2.style) {
11472
- box.config.style = JSON.parse(config2.style);
11471
+ if (config.style) {
11472
+ box.config.style = JSON.parse(config.style);
11473
11473
  }
11474
11474
  return box;
11475
11475
  };
@@ -11509,40 +11509,40 @@ const downloadFile = {
11509
11509
  "widget": "DownloadFile"
11510
11510
  }
11511
11511
  };
11512
- const buildUploadFile = (config2, componentScope2) => {
11512
+ const buildUploadFile = (config, componentScope) => {
11513
11513
  const UploadFile = _.cloneDeep(uploadFile);
11514
- UploadFile.scope = componentScope2;
11515
- UploadFile.config.main.label = config2.label;
11516
- if (config2.layout) {
11517
- UploadFile.config.layout = createLayoutFormat(config2.layout);
11514
+ UploadFile.scope = componentScope;
11515
+ UploadFile.config.main.label = config.label;
11516
+ if (config.layout) {
11517
+ UploadFile.config.layout = createLayoutFormat(config.layout);
11518
11518
  }
11519
- if (config2.style) {
11520
- UploadFile.config.style = config2.style;
11519
+ if (config.style) {
11520
+ UploadFile.config.style = config.style;
11521
11521
  }
11522
- if (config2.required) {
11522
+ if (config.required) {
11523
11523
  UploadFile.config.main.required = true;
11524
11524
  }
11525
- UploadFile.config.main.errorMessage = config2.errorMessage;
11525
+ UploadFile.config.main.errorMessage = config.errorMessage;
11526
11526
  return UploadFile;
11527
11527
  };
11528
- const buildDownloadFile = (config2, componentScope2) => {
11528
+ const buildDownloadFile = (config, componentScope) => {
11529
11529
  const DownloadFile = _.cloneDeep(downloadFile);
11530
- DownloadFile.scope = componentScope2;
11531
- DownloadFile.config.main.label = config2.label;
11532
- if (config2.layout) {
11533
- DownloadFile.config.layout = config2.layout;
11530
+ DownloadFile.scope = componentScope;
11531
+ DownloadFile.config.main.label = config.label;
11532
+ if (config.layout) {
11533
+ DownloadFile.config.layout = config.layout;
11534
11534
  }
11535
- if (config2.style) {
11536
- DownloadFile.config.style = config2.style;
11535
+ if (config.style) {
11536
+ DownloadFile.config.style = config.style;
11537
11537
  }
11538
- if (config2.required) {
11538
+ if (config.required) {
11539
11539
  DownloadFile.config.main.required = true;
11540
11540
  }
11541
- if (config2.layout) {
11542
- DownloadFile.config.layout = createLayoutFormat(config2.layout);
11541
+ if (config.layout) {
11542
+ DownloadFile.config.layout = createLayoutFormat(config.layout);
11543
11543
  }
11544
- if (config2.errorMessage) {
11545
- DownloadFile.config.main.errorMessage = config2.errorMessage;
11544
+ if (config.errorMessage) {
11545
+ DownloadFile.config.main.errorMessage = config.errorMessage;
11546
11546
  }
11547
11547
  return DownloadFile;
11548
11548
  };
@@ -11551,184 +11551,38 @@ function Card(theme) {
11551
11551
  type: "WrapperLayout",
11552
11552
  config: {
11553
11553
  main: {},
11554
- wrapperStyle: {
11555
- position: "relative",
11556
- top: "50%",
11557
- transform: "translateY(-50%)",
11558
- marginBottom: 0
11559
- },
11560
- componentsBoxStyle: {
11561
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
11562
- flexDirection: "row",
11563
- flexWrap: "nowrap",
11564
- width: "100% !important",
11565
- background: "transparent",
11566
- border: `1.5px solid ${theme.palette.primary.light}`,
11567
- borderRadius: "8px",
11568
- padding: "0px 4px",
11569
- height: "100%",
11570
- alignItems: "center",
11571
- marginLeft: "0px",
11572
- "&: hover": {
11573
- background: `${theme.palette.primary.main}`,
11574
- border: `1.5px solid black`,
11575
- "& p": {
11576
- color: "white"
11554
+ style: {
11555
+ wrapperStyle: {
11556
+ position: "relative",
11557
+ top: "50%",
11558
+ transform: "translateY(-50%)",
11559
+ marginBottom: 0
11560
+ },
11561
+ componentsBoxStyle: {
11562
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
11563
+ flexDirection: "column",
11564
+ flexWrap: "nowrap",
11565
+ width: "100% !important",
11566
+ background: "transparent",
11567
+ border: `1.5px solid ${theme.palette.primary.light}`,
11568
+ borderRadius: "8px",
11569
+ padding: "20px 20px 20px 14px",
11570
+ height: "100%",
11571
+ minHeight: "140px",
11572
+ position: "relative",
11573
+ marginLeft: "0px",
11574
+ "&: hover": {
11575
+ background: `${theme.palette.primary.main}`,
11576
+ border: `1.5px solid black`,
11577
+ "& p": {
11578
+ color: "white"
11579
+ }
11577
11580
  }
11578
11581
  }
11579
11582
  },
11580
- layout: { xs: 12, sm: 12, md: 6, lg: 6 }
11583
+ layout: { xs: 12, sm: 12, md: 6, lg: 3 }
11581
11584
  },
11582
11585
  elements: [
11583
- {
11584
- type: "HorizontalLayout",
11585
- config: {
11586
- layout: 9
11587
- },
11588
- elements: [
11589
- {
11590
- type: "WrapperLayout",
11591
- config: {
11592
- main: {
11593
- columnSpacing: 0,
11594
- gap: 0
11595
- },
11596
- wrapperStyle: {
11597
- background: "transparent",
11598
- marginBottom: 0
11599
- },
11600
- componentsBoxStyle: {
11601
- flexDirection: "column",
11602
- flexWrap: "nowrap",
11603
- width: "100%",
11604
- height: "inherit",
11605
- background: "transparent",
11606
- borderRadius: "0px",
11607
- paddingRight: 0
11608
- },
11609
- layout: 12
11610
- },
11611
- elements: [
11612
- {
11613
- type: "WrapperLayout",
11614
- config: {
11615
- main: {
11616
- columnSpacing: 0,
11617
- gap: 0
11618
- },
11619
- wrapperStyle: {
11620
- background: "transparent",
11621
- marginBottom: 0
11622
- },
11623
- componentsBoxStyle: {
11624
- flexDirection: "row",
11625
- flexWrap: "nowrap",
11626
- width: "100%",
11627
- height: "0",
11628
- background: "transparent",
11629
- borderRadius: "0px",
11630
- marginLeft: "-10px",
11631
- marginTop: "-8px",
11632
- justifyContent: "start",
11633
- position: "relative"
11634
- },
11635
- layout: 12
11636
- },
11637
- elements: [
11638
- {
11639
- type: "Control",
11640
- scope: "#/properties/programType",
11641
- config: {
11642
- main: {
11643
- heading: ""
11644
- },
11645
- style: {
11646
- color: "black",
11647
- display: "flex",
11648
- fontSize: { xs: "24px", md: "28px" },
11649
- fontWeight: "bold",
11650
- background: "inherit",
11651
- justifyContent: "flex-start",
11652
- width: "auto",
11653
- margin: "-8px",
11654
- marginLeft: "-24px",
11655
- height: 0
11656
- }
11657
- },
11658
- options: {
11659
- widget: "Box"
11660
- }
11661
- },
11662
- {
11663
- type: "Control",
11664
- scope: "#/properties/programType",
11665
- config: {
11666
- main: {
11667
- heading: "5000.00"
11668
- },
11669
- style: {
11670
- color: "black",
11671
- display: "flex",
11672
- fontSize: { xs: "24px", md: "25px" },
11673
- fontWeight: "bold",
11674
- background: "inherit",
11675
- justifyContent: "flex-start",
11676
- width: "auto",
11677
- margin: "-8px",
11678
- marginTop: "-6px",
11679
- position: "absolute",
11680
- left: "7px",
11681
- whiteSpace: "nowrap",
11682
- overflowX: "auto",
11683
- overflowY: "hidden",
11684
- scrollbarWidth: "none",
11685
- msOverflowStyle: "none",
11686
- maxWidth: "calc(100% + 20px)",
11687
- "&::-webkit-scrollbar": {
11688
- display: "none"
11689
- }
11690
- }
11691
- },
11692
- options: {
11693
- widget: "Box"
11694
- }
11695
- }
11696
- ]
11697
- },
11698
- {
11699
- type: "Control",
11700
- scope: "#/properties/programType",
11701
- config: {
11702
- main: {
11703
- heading: "Total Earnings"
11704
- },
11705
- style: {
11706
- color: "black",
11707
- fontSize: "16px",
11708
- justifyContent: "center",
11709
- whiteSpace: "nowrap",
11710
- overflowX: "auto",
11711
- overflowY: "hidden",
11712
- scrollbarWidth: "none",
11713
- msOverflowStyle: "none",
11714
- background: "inherit",
11715
- width: "calc(100% + 8px)",
11716
- margin: "-8px",
11717
- marginTop: { xs: "16px", md: "20px" },
11718
- "&::-webkit-scrollbar": {
11719
- display: "none"
11720
- }
11721
- },
11722
- layout: 12
11723
- },
11724
- options: {
11725
- widget: "Box"
11726
- }
11727
- }
11728
- ]
11729
- }
11730
- ]
11731
- },
11732
11586
  {
11733
11587
  type: "Control",
11734
11588
  scope: "#/properties/programType",
@@ -11738,51 +11592,140 @@ function Card(theme) {
11738
11592
  },
11739
11593
  style: {
11740
11594
  containerStyle: {
11741
- height: "100%",
11595
+ position: "absolute",
11596
+ top: "12px",
11597
+ right: "12px",
11742
11598
  display: "flex",
11743
- justifyContent: "end"
11599
+ justifyContent: "flex-end",
11600
+ alignItems: "flex-start"
11744
11601
  },
11745
11602
  imageStyle: {
11746
- width: "unset",
11747
- fontSize: "none",
11748
- padding: "4px",
11749
- margin: "0px 0px 0px 8px",
11750
- height: "64px"
11603
+ width: "48px",
11604
+ height: "48px",
11605
+ padding: "0px",
11606
+ margin: "0px"
11751
11607
  }
11752
- },
11753
- layout: 3
11608
+ }
11754
11609
  },
11755
11610
  options: {
11756
11611
  widget: "Image"
11757
11612
  }
11613
+ },
11614
+ {
11615
+ type: "Control",
11616
+ scope: "#/properties/programType",
11617
+ config: {
11618
+ main: {
11619
+ heading: "Total Earnings"
11620
+ },
11621
+ style: {
11622
+ color: "black",
11623
+ fontSize: "17px",
11624
+ fontWeight: "200",
11625
+ justifyContent: "flex-start",
11626
+ background: "inherit",
11627
+ margin: "0px",
11628
+ marginTop: "-8px",
11629
+ marginBottom: "12px",
11630
+ maxWidth: "160px",
11631
+ whiteSpace: "nowrap",
11632
+ overflowX: "auto",
11633
+ scrollbarWidth: "none",
11634
+ "&::-webkit-scrollbar": {
11635
+ display: "none"
11636
+ }
11637
+ }
11638
+ },
11639
+ options: {
11640
+ widget: "Box"
11641
+ }
11642
+ },
11643
+ {
11644
+ type: "Control",
11645
+ scope: "#/properties/programType",
11646
+ config: {
11647
+ main: {
11648
+ heading: "5000.00"
11649
+ },
11650
+ style: {
11651
+ color: "black",
11652
+ display: "flex",
11653
+ fontSize: { xs: "22px", md: "30px" },
11654
+ fontWeight: "450",
11655
+ background: "inherit",
11656
+ justifyContent: "flex-start",
11657
+ width: "100%",
11658
+ margin: "0px",
11659
+ marginBottom: "8px",
11660
+ lineHeight: "1",
11661
+ maxWidth: "200px",
11662
+ whiteSpace: "nowrap",
11663
+ overflowX: "auto",
11664
+ scrollbarWidth: "none",
11665
+ "&::-webkit-scrollbar": {
11666
+ display: "none"
11667
+ }
11668
+ }
11669
+ },
11670
+ options: {
11671
+ widget: "Box"
11672
+ }
11673
+ },
11674
+ {
11675
+ type: "Control",
11676
+ scope: "#/properties/programType",
11677
+ config: {
11678
+ main: {
11679
+ heading: "Increased from last month"
11680
+ },
11681
+ style: {
11682
+ color: "#767677ff",
11683
+ fontSize: "11px",
11684
+ fontWeight: "400",
11685
+ justifyContent: "flex-start",
11686
+ background: "inherit",
11687
+ margin: "0px",
11688
+ paddingLeft: "2px",
11689
+ maxWidth: "200px",
11690
+ whiteSpace: "nowrap",
11691
+ overflowX: "auto",
11692
+ scrollbarWidth: "none",
11693
+ "&::-webkit-scrollbar": {
11694
+ display: "none"
11695
+ }
11696
+ }
11697
+ },
11698
+ options: {
11699
+ widget: "Box"
11700
+ }
11758
11701
  }
11759
11702
  ]
11760
11703
  };
11761
11704
  return uiSchema;
11762
11705
  }
11763
- const buildCard = (config, componentScope, store) => {
11764
- const card = _.cloneDeep(Card(store.theme.myTheme));
11706
+ const buildCard = (config, componentScope, store2) => {
11707
+ const card = _.cloneDeep(Card(store2.theme.myTheme));
11765
11708
  if (config.style) {
11766
11709
  card.config.wrapperStyle = JSON.parse(config.style);
11767
11710
  }
11768
- card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
11769
- card.elements[1].scope = `#/properties/${config.name}/properties/url`;
11770
- card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
11711
+ card.elements[2].scope = `#/properties/${config.name}/properties/value`;
11712
+ card.elements[0].scope = `#/properties/${config.name}/properties/url`;
11713
+ card.elements[3].scope = `#/properties/${config.name}/properties/description`;
11714
+ card.elements[1].scope = `#/properties/${config.name}/properties/label`;
11771
11715
  if (config.layout) {
11772
11716
  card.config.layout = createLayoutFormat(config.layout);
11773
11717
  }
11774
- if (config == null ? void 0 : config.titleIcon) {
11775
- card.elements[0].elements[0].elements[0].elements[0].config.main.heading = eval(`'\\${config.titleIcon}'`);
11776
- card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
11777
- }
11778
11718
  if (config.label) {
11779
- card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
11719
+ card.elements[1].config.main.heading = config.label;
11780
11720
  }
11781
11721
  if (config.url) {
11782
- card.elements[1].config.main.url = config.url;
11722
+ card.elements[0].config.main.url = config.url;
11783
11723
  }
11784
11724
  if (config.description) {
11785
- card.elements[0].elements[0].elements[1].config.main.heading = config.description;
11725
+ card.elements[3].config.main.heading = config.description;
11726
+ }
11727
+ if (config.value) {
11728
+ card.elements[2].config.main.heading = config.value;
11786
11729
  }
11787
11730
  return card;
11788
11731
  };
@@ -11814,29 +11757,29 @@ const DateTime = {
11814
11757
  }
11815
11758
  }
11816
11759
  };
11817
- const buildDate = (config2, componentScope2) => {
11760
+ const buildDate = (config, componentScope) => {
11818
11761
  const dateInputField = _.cloneDeep(DateInputField);
11819
- dateInputField.config.main.label = config2.label;
11820
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11821
- dateInputField.scope = componentScope2;
11822
- if (config2.layout) {
11823
- dateInputField.config.layout = createLayoutFormat(config2.layout);
11762
+ dateInputField.config.main.label = config.label;
11763
+ dateInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11764
+ dateInputField.scope = componentScope;
11765
+ if (config.layout) {
11766
+ dateInputField.config.layout = createLayoutFormat(config.layout);
11824
11767
  }
11825
- if (config2.variant) {
11826
- dateInputField.config.main.variant = config2.variant;
11768
+ if (config.variant) {
11769
+ dateInputField.config.main.variant = config.variant;
11827
11770
  }
11828
11771
  return dateInputField;
11829
11772
  };
11830
- const buildDateTime = (config2, componentScope2) => {
11773
+ const buildDateTime = (config, componentScope) => {
11831
11774
  const dateTimeInputField = _.cloneDeep(DateTime);
11832
- dateTimeInputField.config.main.label = config2.label;
11833
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11834
- dateTimeInputField.scope = componentScope2;
11835
- if (config2.layout) {
11836
- dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
11775
+ dateTimeInputField.config.main.label = config.label;
11776
+ dateTimeInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
11777
+ dateTimeInputField.scope = componentScope;
11778
+ if (config.layout) {
11779
+ dateTimeInputField.config.layout = createLayoutFormat(config.layout);
11837
11780
  }
11838
- if (config2.variant) {
11839
- dateTimeInputField.config.main.variant = config2.variant;
11781
+ if (config.variant) {
11782
+ dateTimeInputField.config.main.variant = config.variant;
11840
11783
  }
11841
11784
  return dateTimeInputField;
11842
11785
  };
@@ -11851,17 +11794,17 @@ var RankCard = {
11851
11794
  main: {}
11852
11795
  }
11853
11796
  };
11854
- const buildRankCard = (config2, componentScope2) => {
11797
+ const buildRankCard = (config, componentScope) => {
11855
11798
  const rankCard = _.cloneDeep(RankCard);
11856
- rankCard.scope = componentScope2;
11857
- if (config2.rank) {
11858
- rankCard.config.main.rank = `${config2.rank}`;
11799
+ rankCard.scope = componentScope;
11800
+ if (config.rank) {
11801
+ rankCard.config.main.rank = `${config.rank}`;
11859
11802
  }
11860
- if (config2.height) {
11861
- rankCard.config.main.height = `${config2.height}px`;
11803
+ if (config.height) {
11804
+ rankCard.config.main.height = `${config.height}px`;
11862
11805
  }
11863
- if (config2.layout) {
11864
- rankCard.config.layout = createLayoutFormat(config2.layout);
11806
+ if (config.layout) {
11807
+ rankCard.config.layout = createLayoutFormat(config.layout);
11865
11808
  }
11866
11809
  return rankCard;
11867
11810
  };
@@ -11876,13 +11819,13 @@ var RollAndDice = {
11876
11819
  main: {}
11877
11820
  }
11878
11821
  };
11879
- const buildRollAndDice = (config2, componentScope2) => {
11822
+ const buildRollAndDice = (config, componentScope) => {
11880
11823
  const rank = _.cloneDeep(RollAndDice);
11881
- if (config2.name) {
11882
- rank.scope = componentScope2;
11824
+ if (config.name) {
11825
+ rank.scope = componentScope;
11883
11826
  }
11884
- if (config2.layout) {
11885
- rank.config.layout = createLayoutFormat(config2.layout);
11827
+ if (config.layout) {
11828
+ rank.config.layout = createLayoutFormat(config.layout);
11886
11829
  }
11887
11830
  return rank;
11888
11831
  };
@@ -11903,14 +11846,14 @@ var Timer = {
11903
11846
  style: {}
11904
11847
  }
11905
11848
  };
11906
- const buildTimer = (config2, componentScope2) => {
11849
+ const buildTimer = (config, componentScope) => {
11907
11850
  const timer = _.cloneDeep(Timer);
11908
- timer.scope = componentScope2;
11909
- if (config2.label) {
11910
- timer.config.main.label = config2.label;
11851
+ timer.scope = componentScope;
11852
+ if (config.label) {
11853
+ timer.config.main.label = config.label;
11911
11854
  }
11912
- if (config2.layout) {
11913
- timer.config.layout = createLayoutFormat(config2.layout);
11855
+ if (config.layout) {
11856
+ timer.config.layout = createLayoutFormat(config.layout);
11914
11857
  }
11915
11858
  return timer;
11916
11859
  };
@@ -11931,33 +11874,33 @@ var MultipleSelect = {
11931
11874
  }
11932
11875
  }
11933
11876
  };
11934
- const buildMultiSelect = (config2, componentScope2) => {
11877
+ const buildMultiSelect = (config, componentScope) => {
11935
11878
  const multipleSelect = _.cloneDeep(MultipleSelect);
11936
- multipleSelect.scope = componentScope2;
11937
- if (config2.label) {
11938
- multipleSelect.config.main.label = config2.label;
11879
+ multipleSelect.scope = componentScope;
11880
+ if (config.label) {
11881
+ multipleSelect.config.main.label = config.label;
11939
11882
  }
11940
- if (config2.layout) {
11941
- multipleSelect.config.layout = createLayoutFormat(config2.layout);
11883
+ if (config.layout) {
11884
+ multipleSelect.config.layout = createLayoutFormat(config.layout);
11942
11885
  }
11943
- if (config2.value) {
11944
- multipleSelect.config.main.options = config2.value;
11886
+ if (config.value) {
11887
+ multipleSelect.config.main.options = config.value;
11945
11888
  }
11946
- if (config2.variant) {
11947
- multipleSelect.config.main.variant = config2.variant;
11889
+ if (config.variant) {
11890
+ multipleSelect.config.main.variant = config.variant;
11948
11891
  }
11949
- if (config2.lazyLoading) {
11950
- multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
11892
+ if (config.lazyLoading) {
11893
+ multipleSelect.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
11951
11894
  }
11952
11895
  return multipleSelect;
11953
11896
  };
11954
- const buildBasicUiSchema = (config2) => {
11897
+ const buildBasicUiSchema = (config) => {
11955
11898
  return {
11956
11899
  "type": "HorizontalLayout",
11957
- pageName: config2.name,
11958
- name: config2.name,
11959
- accessorKey: config2.name,
11960
- heading: config2.label || config2.name,
11900
+ pageName: config.name,
11901
+ name: config.name,
11902
+ accessorKey: config.name,
11903
+ heading: config.label || config.name,
11961
11904
  "elements": []
11962
11905
  };
11963
11906
  };
@@ -11988,25 +11931,25 @@ const TextArea = {
11988
11931
  }
11989
11932
  }
11990
11933
  };
11991
- const buildTextArea = (config2, componentScope2) => {
11934
+ const buildTextArea = (config, componentScope) => {
11992
11935
  const textArea = _.cloneDeep(TextArea);
11993
- textArea.config.main.heading = config2.label;
11994
- if (config2.layout) {
11995
- textArea.config.layout = createLayoutFormat(config2.layout, config2.type);
11936
+ textArea.config.main.heading = config.label;
11937
+ if (config.layout) {
11938
+ textArea.config.layout = createLayoutFormat(config.layout, config.type);
11996
11939
  }
11997
- if (config2.style) {
11998
- textArea.config.style = JSON.parse(config2.style);
11940
+ if (config.style) {
11941
+ textArea.config.style = JSON.parse(config.style);
11999
11942
  }
12000
- if (config2.placeholder) {
12001
- textArea.config.main.placeholder = config2.placeholder;
11943
+ if (config.placeholder) {
11944
+ textArea.config.main.placeholder = config.placeholder;
12002
11945
  }
12003
- if (config2.enableCodeEditor) {
12004
- textArea.config.main.enableCodeEditor = config2.enableCodeEditor === "YES" ? true : false;
11946
+ if (config.enableCodeEditor) {
11947
+ textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false;
12005
11948
  }
12006
- if (config2.codeEditorLanguage) {
12007
- textArea.config.main.codeEditorLanguage = config2.codeEditorLanguage;
11949
+ if (config.codeEditorLanguage) {
11950
+ textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
12008
11951
  }
12009
- textArea.scope = componentScope2;
11952
+ textArea.scope = componentScope;
12010
11953
  return textArea;
12011
11954
  };
12012
11955
  var cardSlider = {
@@ -12021,13 +11964,13 @@ var cardSlider = {
12021
11964
  main: {}
12022
11965
  }
12023
11966
  };
12024
- const buildSlider = (config2, componentScope2) => {
11967
+ const buildSlider = (config, componentScope) => {
12025
11968
  const slider = _.cloneDeep(cardSlider);
12026
- if (config2.name) {
12027
- slider.scope = componentScope2;
11969
+ if (config.name) {
11970
+ slider.scope = componentScope;
12028
11971
  }
12029
- if (config2.layout) {
12030
- slider.config.layout = createLayoutFormat(config2.layout);
11972
+ if (config.layout) {
11973
+ slider.config.layout = createLayoutFormat(config.layout);
12031
11974
  }
12032
11975
  return slider;
12033
11976
  };
@@ -12044,63 +11987,63 @@ const Checkbox = {
12044
11987
  }
12045
11988
  }
12046
11989
  };
12047
- const buildCheckbox = (config2, componentScope2) => {
11990
+ const buildCheckbox = (config, componentScope) => {
12048
11991
  const check = _.cloneDeep(Checkbox);
12049
- check.scope = componentScope2;
12050
- check.config.main.label = config2.label;
12051
- if (config2.layout) {
12052
- check.config.layout = createLayoutFormat(config2.layout);
11992
+ check.scope = componentScope;
11993
+ check.config.main.label = config.label;
11994
+ if (config.layout) {
11995
+ check.config.layout = createLayoutFormat(config.layout);
12053
11996
  }
12054
- if (config2.style) {
12055
- check.config.style = JSON.parse(config2.style);
11997
+ if (config.style) {
11998
+ check.config.style = JSON.parse(config.style);
12056
11999
  }
12057
12000
  return check;
12058
12001
  };
12059
- const buildLineGraph = (config2, componentScope2) => {
12002
+ const buildLineGraph = (config, componentScope) => {
12060
12003
  const lineGraph = _.cloneDeep(LineGraph);
12061
- if (config2.layout) {
12062
- lineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
12004
+ if (config.layout) {
12005
+ lineGraph.config.layout = createLayoutFormat(config.layout, config.type);
12063
12006
  }
12064
- lineGraph.config.main.header = config2.heading;
12065
- if (config2.height) {
12066
- lineGraph.config.style.containerStyle.height = config2.height;
12007
+ lineGraph.config.main.header = config.heading;
12008
+ if (config.height) {
12009
+ lineGraph.config.style.containerStyle.height = config.height;
12067
12010
  }
12068
- if (config2.leftMargin) {
12011
+ if (config.leftMargin) {
12069
12012
  lineGraph.config.style.labelStyle.margin = {
12070
- left: config2.leftMargin
12013
+ left: config.leftMargin
12071
12014
  };
12072
12015
  }
12073
- if (config2.bottomLabel) {
12074
- lineGraph.config.main.bottomLabel = config2.bottomLabel;
12016
+ if (config.bottomLabel) {
12017
+ lineGraph.config.main.bottomLabel = config.bottomLabel;
12075
12018
  }
12076
- if (config2.yAxisValue) {
12077
- lineGraph.config.main.yAxisValue = config2.yAxisValue;
12019
+ if (config.yAxisValue) {
12020
+ lineGraph.config.main.yAxisValue = config.yAxisValue;
12078
12021
  }
12079
- if (config2.xAxisValue) {
12080
- lineGraph.config.main.xAxisValue = config2.xAxisValue;
12022
+ if (config.xAxisValue) {
12023
+ lineGraph.config.main.xAxisValue = config.xAxisValue;
12081
12024
  }
12082
- if (config2.leftLabel) {
12083
- lineGraph.config.main.leftLabel = config2.leftLabel;
12025
+ if (config.leftLabel) {
12026
+ lineGraph.config.main.leftLabel = config.leftLabel;
12084
12027
  }
12085
- if (config2.disableLeftLabel) {
12086
- lineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
12028
+ if (config.disableLeftLabel) {
12029
+ lineGraph.config.main.disableLeftLabel = config.disableLeftLabel === "YES" ? true : false;
12087
12030
  }
12088
- if (config2.legendHide) {
12089
- lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
12031
+ if (config.legendHide) {
12032
+ lineGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
12090
12033
  }
12091
- if (config2.legendDirection) {
12092
- lineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
12034
+ if (config.legendDirection) {
12035
+ lineGraph.config.main.legendDirection = config.legendDirection === "Row" ? "row" : "column";
12093
12036
  }
12094
- if (config2.bottomAxisAngle) {
12095
- lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
12037
+ if (config.bottomAxisAngle) {
12038
+ lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
12096
12039
  }
12097
- if (config2.legendLabels) {
12098
- lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
12040
+ if (config.legendLabels) {
12041
+ lineGraph.config.main.legendLabels = flatObjectValueInArray(config.legendLabels);
12099
12042
  }
12100
- if (config2.pieArcColors) {
12101
- lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
12043
+ if (config.pieArcColors) {
12044
+ lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
12102
12045
  }
12103
- lineGraph.scope = componentScope2;
12046
+ lineGraph.scope = componentScope;
12104
12047
  return lineGraph;
12105
12048
  };
12106
12049
  const RadioUiSchema = {
@@ -12117,21 +12060,21 @@ const RadioUiSchema = {
12117
12060
  }
12118
12061
  }
12119
12062
  };
12120
- const buildRadio = (config2, componentScope2) => {
12063
+ const buildRadio = (config, componentScope) => {
12121
12064
  const Radio = _.cloneDeep(RadioUiSchema);
12122
- Radio.scope = componentScope2;
12123
- Radio.config.main.label = config2.label;
12124
- if (config2.layout) {
12125
- Radio.config.layout = createLayoutFormat(config2.layout);
12065
+ Radio.scope = componentScope;
12066
+ Radio.config.main.label = config.label;
12067
+ if (config.layout) {
12068
+ Radio.config.layout = createLayoutFormat(config.layout);
12126
12069
  }
12127
- if (config2.sectionLabels) {
12128
- Radio.config.main.options = config2.sectionLabels.map((e) => e.label || e.Options);
12070
+ if (config.sectionLabels) {
12071
+ Radio.config.main.options = config.sectionLabels.map((e) => e.label || e.Options);
12129
12072
  }
12130
- if (config2.style) {
12131
- Radio.config.style = JSON.parse(config2.style);
12073
+ if (config.style) {
12074
+ Radio.config.style = JSON.parse(config.style);
12132
12075
  }
12133
- if (config2.errorMessage) {
12134
- Radio.config.main.errorMessage = config2.errorMessage;
12076
+ if (config.errorMessage) {
12077
+ Radio.config.main.errorMessage = config.errorMessage;
12135
12078
  }
12136
12079
  return Radio;
12137
12080
  };
@@ -12147,10 +12090,10 @@ var emptyBox = {
12147
12090
  style: {}
12148
12091
  }
12149
12092
  };
12150
- const buildEmptyBox = (config2, componentScope2) => {
12093
+ const buildEmptyBox = (config, componentScope) => {
12151
12094
  const EmptyBox = _.cloneDeep(emptyBox);
12152
- if (config2.layout) {
12153
- EmptyBox.config.layout = createLayoutFormat(config2.layout);
12095
+ if (config.layout) {
12096
+ EmptyBox.config.layout = createLayoutFormat(config.layout);
12154
12097
  }
12155
12098
  return EmptyBox;
12156
12099
  };
@@ -12163,26 +12106,26 @@ const ArrayUiSchema = {
12163
12106
  main: {}
12164
12107
  }
12165
12108
  };
12166
- const buildArray = (config2, componentScope2) => {
12109
+ const buildArray = (config, componentScope) => {
12167
12110
  const array = _.cloneDeep(ArrayUiSchema);
12168
- if (config2.allExpanded) {
12169
- array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
12111
+ if (config.allExpanded) {
12112
+ array.config.main.allExpanded = config.allExpanded === "YES" ? true : false;
12170
12113
  }
12171
- if (config2.disableAddButton) {
12172
- array.config.main.disableAddButton = config2.disableAddButton === "YES" ? true : false;
12114
+ if (config.disableAddButton) {
12115
+ array.config.main.disableAddButton = config.disableAddButton === "YES" ? true : false;
12173
12116
  }
12174
- if (config2.disableExpandAllButton) {
12175
- array.config.main.disableExpandAllButton = config2.disableExpandAllButton === "YES" ? true : false;
12117
+ if (config.disableExpandAllButton) {
12118
+ array.config.main.disableExpandAllButton = config.disableExpandAllButton === "YES" ? true : false;
12176
12119
  }
12177
- if (config2.disableRowActions) {
12178
- array.config.main.disableRowActions = config2.disableRowActions === "YES" ? true : false;
12120
+ if (config.disableRowActions) {
12121
+ array.config.main.disableRowActions = config.disableRowActions === "YES" ? true : false;
12179
12122
  }
12180
- if (config2.style) {
12181
- array.config.style = JSON.parse(config2.style);
12123
+ if (config.style) {
12124
+ array.config.style = JSON.parse(config.style);
12182
12125
  }
12183
- array.config.main.childElementLabel = config2.childElementLabel;
12184
- array.config.main.label = config2.label;
12185
- array.scope = componentScope2;
12126
+ array.config.main.childElementLabel = config.childElementLabel;
12127
+ array.config.main.label = config.label;
12128
+ array.scope = componentScope;
12186
12129
  return array;
12187
12130
  };
12188
12131
  const TextField = {
@@ -12201,17 +12144,17 @@ const TextField = {
12201
12144
  }
12202
12145
  }
12203
12146
  };
12204
- const buildAdhaarField = (config2, componentScope2) => {
12147
+ const buildAdhaarField = (config, componentScope) => {
12205
12148
  const inputField = _.cloneDeep(TextField);
12206
- inputField.config.main.label = config2.label;
12207
- if (config2.style) {
12208
- inputField.config.style = JSON.parse(config2.style);
12149
+ inputField.config.main.label = config.label;
12150
+ if (config.style) {
12151
+ inputField.config.style = JSON.parse(config.style);
12209
12152
  }
12210
- if (config2.layout) {
12211
- inputField.config.layout = createLayoutFormat(config2.layout);
12153
+ if (config.layout) {
12154
+ inputField.config.layout = createLayoutFormat(config.layout);
12212
12155
  }
12213
- inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12214
- inputField.scope = componentScope2;
12156
+ inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
12157
+ inputField.scope = componentScope;
12215
12158
  return inputField;
12216
12159
  };
12217
12160
  const PanField = {
@@ -12230,17 +12173,17 @@ const PanField = {
12230
12173
  }
12231
12174
  }
12232
12175
  };
12233
- const buildPanField = (config2, componentScope2) => {
12176
+ const buildPanField = (config, componentScope) => {
12234
12177
  const inputField = _.cloneDeep(PanField);
12235
- inputField.config.main.label = config2.label;
12236
- if (config2.style) {
12237
- inputField.config.style = JSON.parse(config2.style);
12178
+ inputField.config.main.label = config.label;
12179
+ if (config.style) {
12180
+ inputField.config.style = JSON.parse(config.style);
12238
12181
  }
12239
- if (config2.layout) {
12240
- inputField.config.layout = createLayoutFormat(config2.layout);
12182
+ if (config.layout) {
12183
+ inputField.config.layout = createLayoutFormat(config.layout);
12241
12184
  }
12242
- inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12243
- inputField.scope = componentScope2;
12185
+ inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
12186
+ inputField.scope = componentScope;
12244
12187
  return inputField;
12245
12188
  };
12246
12189
  const FileInput = {
@@ -12262,33 +12205,30 @@ const FileInput = {
12262
12205
  }
12263
12206
  }
12264
12207
  };
12265
- const buildFileInput = (config2, componentScope2) => {
12208
+ const buildFileInput = (config, componentScope) => {
12266
12209
  const box = _.cloneDeep(FileInput);
12267
- box.scope = componentScope2;
12268
- box.config.main.label = config2.label;
12269
- if (config2.layout) {
12270
- box.config.layout = createLayoutFormat(config2.layout);
12271
- }
12272
- if (config2.style) {
12273
- box.config.style = JSON.parse(config2.style);
12210
+ box.scope = componentScope;
12211
+ box.config.main.label = config.label;
12212
+ if (config.layout) {
12213
+ box.config.layout = createLayoutFormat(config.layout);
12274
12214
  }
12275
- if (config2.variant) {
12276
- box.config.main.variant = config2.variant;
12215
+ if (config.style) {
12216
+ box.config.style = JSON.parse(config.style);
12277
12217
  }
12278
- if (config2.disableUpload) {
12279
- box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
12218
+ if (config.variant) {
12219
+ box.config.main.variant = config.variant;
12280
12220
  }
12281
- if (config2.disableDownload) {
12282
- box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
12221
+ if (config.disableUpload) {
12222
+ box.config.main.disableUpload = config.disableUpload === "YES" ? true : false;
12283
12223
  }
12284
- if (config2.disableDelete) {
12285
- box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
12224
+ if (config.disableDownload) {
12225
+ box.config.main.disableDownload = config.disableDownload === "YES" ? true : false;
12286
12226
  }
12287
- if (config2.description) {
12288
- box.config.main.description = config2.description;
12227
+ if (config.disableDelete) {
12228
+ box.config.main.disableDelete = config.disableDelete === "YES" ? true : false;
12289
12229
  }
12290
- if (config2.errorMessage) {
12291
- box.config.main.errorMessage = config2.errorMessage;
12230
+ if (config.description) {
12231
+ box.config.main.description = config.description;
12292
12232
  }
12293
12233
  return box;
12294
12234
  };
@@ -12308,26 +12248,26 @@ const Stepper = {
12308
12248
  },
12309
12249
  "elements": []
12310
12250
  };
12311
- const buildStepper = (config2, componentScope2) => {
12251
+ const buildStepper = (config, componentScope) => {
12312
12252
  const stepper = _.cloneDeep(Stepper);
12313
- stepper.scope = componentScope2;
12314
- stepper.config.main.resetButton = config2.resetButton === "YES" ? true : false;
12315
- if (config2.defaultButtonAvailable) {
12316
- stepper.config.main.defaultButtonAvailable = config2.defaultButtonAvailable === "YES" ? true : false;
12317
- }
12318
- stepper.config.main.resetText = config2.resetText || "ResetData";
12319
- stepper.config.main.completeText = config2.completeText || "Complete Text";
12320
- stepper.config.main.orientation = config2.orientation || "horizontal";
12321
- if (config2.sectionLabels) {
12322
- stepper.config.main.steps = config2.sectionLabels.map((e, i) => {
12253
+ stepper.scope = componentScope;
12254
+ stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
12255
+ if (config.defaultButtonAvailable) {
12256
+ stepper.config.main.defaultButtonAvailable = config.defaultButtonAvailable === "YES" ? true : false;
12257
+ }
12258
+ stepper.config.main.resetText = config.resetText || "ResetData";
12259
+ stepper.config.main.completeText = config.completeText || "Complete Text";
12260
+ stepper.config.main.orientation = config.orientation || "horizontal";
12261
+ if (config.sectionLabels) {
12262
+ stepper.config.main.steps = config.sectionLabels.map((e, i) => {
12323
12263
  return { label: e.label, id: i };
12324
12264
  });
12325
12265
  }
12326
- if (config2.layout) {
12327
- stepper.config.layout = createLayoutFormat(config2.layout);
12266
+ if (config.layout) {
12267
+ stepper.config.layout = createLayoutFormat(config.layout);
12328
12268
  }
12329
- if (config2.style) {
12330
- stepper.config.style = JSON.parse(config2.style);
12269
+ if (config.style) {
12270
+ stepper.config.style = JSON.parse(config.style);
12331
12271
  }
12332
12272
  return stepper;
12333
12273
  };
@@ -12355,18 +12295,18 @@ const PopUP = {
12355
12295
  style: {}
12356
12296
  }
12357
12297
  };
12358
- const buildPopUp = (config2, componentScope2) => {
12298
+ const buildPopUp = (config, componentScope) => {
12359
12299
  const popup = _.cloneDeep(PopUP);
12360
- popup.scope = componentScope2;
12361
- popup.config.main.title = config2.label;
12362
- popup.config.main.fullScreen = config2.fullScreen === "YES" ? true : false;
12363
- popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
12364
- popup.config.main.maxWidth = config2.maxWidth || false;
12365
- if (config2.layout) {
12366
- popup.config.layout = createLayoutFormat(config2.layout, config2.type);
12300
+ popup.scope = componentScope;
12301
+ popup.config.main.title = config.label;
12302
+ popup.config.main.fullScreen = config.fullScreen === "YES" ? true : false;
12303
+ popup.config.main.fullWidth = config.fullWidth === "YES" ? true : false;
12304
+ popup.config.main.maxWidth = config.maxWidth || false;
12305
+ if (config.layout) {
12306
+ popup.config.layout = createLayoutFormat(config.layout, config.type);
12367
12307
  }
12368
- if (config2.style) {
12369
- popup.config.style = JSON.parse(config2.style);
12308
+ if (config.style) {
12309
+ popup.config.style = JSON.parse(config.style);
12370
12310
  }
12371
12311
  return popup;
12372
12312
  };
@@ -12386,30 +12326,30 @@ const dataGrid = {
12386
12326
  style: {}
12387
12327
  }
12388
12328
  };
12389
- const buildDataGrid = (config2, componentScope2) => {
12329
+ const buildDataGrid = (config, componentScope) => {
12390
12330
  const DataGrid = _.cloneDeep(dataGrid);
12391
- DataGrid.scope = componentScope2;
12392
- if (config2.elevation) {
12393
- DataGrid.config.main.elevation = +config2.elevation;
12331
+ DataGrid.scope = componentScope;
12332
+ if (config.elevation) {
12333
+ DataGrid.config.main.elevation = +config.elevation;
12394
12334
  }
12395
- DataGrid.config.main.divider = config2.divider === "NO" ? false : true;
12396
- if (config2.height) {
12397
- DataGrid.config.main.height = `${config2.height}px`;
12335
+ DataGrid.config.main.divider = config.divider === "NO" ? false : true;
12336
+ if (config.height) {
12337
+ DataGrid.config.main.height = `${config.height}px`;
12398
12338
  }
12399
- if (config2.justifyContent) {
12400
- DataGrid.config.main.justifyContent = config2.justifyContent;
12339
+ if (config.justifyContent) {
12340
+ DataGrid.config.main.justifyContent = config.justifyContent;
12401
12341
  }
12402
- if (config2.label) {
12403
- DataGrid.config.main.label = config2.label;
12342
+ if (config.label) {
12343
+ DataGrid.config.main.label = config.label;
12404
12344
  }
12405
- if (config2.layout) {
12406
- DataGrid.config.layout = createLayoutFormat(config2.layout, config2.type);
12345
+ if (config.layout) {
12346
+ DataGrid.config.layout = createLayoutFormat(config.layout, config.type);
12407
12347
  }
12408
- if (config2.cardLayout) {
12409
- DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout, config2.type);
12348
+ if (config.cardLayout) {
12349
+ DataGrid.config.cardLayout = createLayoutFormat(config.cardLayout, config.type);
12410
12350
  }
12411
- if (config2.style) {
12412
- DataGrid.config.style = JSON.parse(config2.style);
12351
+ if (config.style) {
12352
+ DataGrid.config.style = JSON.parse(config.style);
12413
12353
  }
12414
12354
  return DataGrid;
12415
12355
  };
@@ -12430,27 +12370,27 @@ const InputSlider = {
12430
12370
  }
12431
12371
  }
12432
12372
  };
12433
- const buildInputSlider = (config2, componentScope2) => {
12373
+ const buildInputSlider = (config, componentScope) => {
12434
12374
  const inputSlider = _.cloneDeep(InputSlider);
12435
- inputSlider.scope = componentScope2;
12436
- inputSlider.config.main.label = config2.label;
12437
- if (config2.layout) {
12438
- inputSlider.config.layout = createLayoutFormat(config2.layout);
12375
+ inputSlider.scope = componentScope;
12376
+ inputSlider.config.main.label = config.label;
12377
+ if (config.layout) {
12378
+ inputSlider.config.layout = createLayoutFormat(config.layout);
12439
12379
  }
12440
- if (config2.limitToMax) {
12441
- inputSlider.config.main.limitToMax = config2.limitToMax === "YES" ? true : false;
12380
+ if (config.limitToMax) {
12381
+ inputSlider.config.main.limitToMax = config.limitToMax === "YES" ? true : false;
12442
12382
  }
12443
- if (config2.max) {
12444
- inputSlider.config.main.max = config2.max;
12383
+ if (config.max) {
12384
+ inputSlider.config.main.max = config.max;
12445
12385
  }
12446
- if (config2.step) {
12447
- inputSlider.config.main.step = config2.step;
12386
+ if (config.step) {
12387
+ inputSlider.config.main.step = config.step;
12448
12388
  }
12449
- if (config2.min) {
12450
- inputSlider.config.main.min = config2.min;
12389
+ if (config.min) {
12390
+ inputSlider.config.main.min = config.min;
12451
12391
  }
12452
- if (config2.style) {
12453
- inputSlider.config.main.defaultStyle = JSON.parse(config2.style);
12392
+ if (config.style) {
12393
+ inputSlider.config.main.defaultStyle = JSON.parse(config.style);
12454
12394
  }
12455
12395
  return inputSlider;
12456
12396
  };
@@ -12477,35 +12417,35 @@ const TreeMap = {
12477
12417
  },
12478
12418
  elements: []
12479
12419
  };
12480
- const buildTreeMap = (config2, componentScope2) => {
12420
+ const buildTreeMap = (config, componentScope) => {
12481
12421
  const treMap = _.cloneDeep(TreeMap);
12482
- treMap.scope = componentScope2;
12483
- if (config2.label) {
12484
- treMap.config.main.header = config2.label;
12422
+ treMap.scope = componentScope;
12423
+ if (config.label) {
12424
+ treMap.config.main.header = config.label;
12485
12425
  }
12486
- if (config2.layout) {
12487
- treMap.config.layout = createLayoutFormat(config2.layout, config2.type);
12426
+ if (config.layout) {
12427
+ treMap.config.layout = createLayoutFormat(config.layout, config.type);
12488
12428
  }
12489
- if (config2.orientation) {
12490
- treMap.config.main.orientation = config2.orientation;
12429
+ if (config.orientation) {
12430
+ treMap.config.main.orientation = config.orientation;
12491
12431
  }
12492
- if (config2.linkType) {
12493
- treMap.config.main.linkType = config2.linkType;
12432
+ if (config.linkType) {
12433
+ treMap.config.main.linkType = config.linkType;
12494
12434
  }
12495
- if (config2.graphHeight) {
12496
- treMap.config.main.graphHeight = config2.graphHeight;
12435
+ if (config.graphHeight) {
12436
+ treMap.config.main.graphHeight = config.graphHeight;
12497
12437
  }
12498
- if (config2.graphWidth) {
12499
- treMap.config.main.graphWidth = config2.graphWidth;
12438
+ if (config.graphWidth) {
12439
+ treMap.config.main.graphWidth = config.graphWidth;
12500
12440
  }
12501
- if (config2.graphZoomHeight) {
12502
- treMap.config.main.graphZoomHeight = config2.graphZoomHeight;
12441
+ if (config.graphZoomHeight) {
12442
+ treMap.config.main.graphZoomHeight = config.graphZoomHeight;
12503
12443
  }
12504
- if (config2.graphZoomWidth) {
12505
- treMap.config.main.graphZoomWidth = config2.graphZoomWidth;
12444
+ if (config.graphZoomWidth) {
12445
+ treMap.config.main.graphZoomWidth = config.graphZoomWidth;
12506
12446
  }
12507
- if (config2.style) {
12508
- treMap.config.style = JSON.parse(config2.style);
12447
+ if (config.style) {
12448
+ treMap.config.style = JSON.parse(config.style);
12509
12449
  }
12510
12450
  return treMap;
12511
12451
  };
@@ -12520,20 +12460,20 @@ var Thought = {
12520
12460
  main: {}
12521
12461
  }
12522
12462
  };
12523
- const buildThoughtOfTheDay = (config2, componentScope2) => {
12463
+ const buildThoughtOfTheDay = (config, componentScope) => {
12524
12464
  const thought = _.cloneDeep(Thought);
12525
- thought.scope = componentScope2;
12526
- if (config2.thought) {
12527
- thought.config.main.thought = `${config2.thought}`;
12465
+ thought.scope = componentScope;
12466
+ if (config.thought) {
12467
+ thought.config.main.thought = `${config.thought}`;
12528
12468
  }
12529
- if (config2.layout) {
12530
- thought.config.layout = createLayoutFormat(config2.layout, config2.type);
12469
+ if (config.layout) {
12470
+ thought.config.layout = createLayoutFormat(config.layout, config.type);
12531
12471
  }
12532
- if (config2.label) {
12533
- thought.config.main.label = config2.label;
12472
+ if (config.label) {
12473
+ thought.config.main.label = config.label;
12534
12474
  }
12535
- if (config2.style) {
12536
- thought.config.style = JSON.parse(config2.style);
12475
+ if (config.style) {
12476
+ thought.config.style = JSON.parse(config.style);
12537
12477
  }
12538
12478
  return thought;
12539
12479
  };
@@ -12549,14 +12489,14 @@ var horizontalLayout = {
12549
12489
  },
12550
12490
  elements: []
12551
12491
  };
12552
- const buildHorizontalLayout = (config2, componentScope2) => {
12492
+ const buildHorizontalLayout = (config, componentScope) => {
12553
12493
  const horizontal = _.cloneDeep(horizontalLayout);
12554
- horizontal.scope = componentScope2;
12555
- if (config2.style) {
12556
- horizontal.config.style = JSON.parse(config2.style);
12494
+ horizontal.scope = componentScope;
12495
+ if (config.style) {
12496
+ horizontal.config.style = JSON.parse(config.style);
12557
12497
  }
12558
- if (config2.layout) {
12559
- horizontal.config.layout = createLayoutFormat(config2.layout, config2.type);
12498
+ if (config.layout) {
12499
+ horizontal.config.layout = createLayoutFormat(config.layout, config.type);
12560
12500
  }
12561
12501
  return horizontal;
12562
12502
  };
@@ -12574,18 +12514,18 @@ const imageUiSchema = {
12574
12514
  style: {}
12575
12515
  }
12576
12516
  };
12577
- const buildImage = (config2, componentScope2) => {
12517
+ const buildImage = (config, componentScope) => {
12578
12518
  const image = _.cloneDeep(imageUiSchema);
12579
- image.scope = componentScope2;
12580
- image.config.main.url = config2.imageUrl;
12581
- if (config2.layout) {
12582
- image.config.layout = createLayoutFormat(config2.layout);
12519
+ image.scope = componentScope;
12520
+ image.config.main.url = config.imageUrl;
12521
+ if (config.layout) {
12522
+ image.config.layout = createLayoutFormat(config.layout);
12583
12523
  }
12584
- if (config2.style) {
12585
- image.config.style = JSON.parse(config2.style);
12524
+ if (config.style) {
12525
+ image.config.style = JSON.parse(config.style);
12586
12526
  }
12587
- if (config2.height) {
12588
- image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
12527
+ if (config.height) {
12528
+ image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config.height };
12589
12529
  }
12590
12530
  return image;
12591
12531
  };
@@ -12594,12 +12534,12 @@ let schema = {
12594
12534
  properties: {},
12595
12535
  required: []
12596
12536
  };
12597
- function buildSchemaFromConfig(config2, parentSchema) {
12537
+ function buildSchemaFromConfig(config, parentSchema) {
12598
12538
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
12599
- if (config2.elements) {
12600
- if (config2.type === "Array") {
12539
+ if (config.elements) {
12540
+ if (config.type === "Array") {
12601
12541
  (_a = parentSchema.properties) != null ? _a : parentSchema.properties = {};
12602
- (_d = (_b = parentSchema.properties)[_c = config2.name]) != null ? _d : _b[_c] = {
12542
+ (_d = (_b = parentSchema.properties)[_c = config.name]) != null ? _d : _b[_c] = {
12603
12543
  type: "array",
12604
12544
  items: {
12605
12545
  type: "object",
@@ -12607,26 +12547,26 @@ function buildSchemaFromConfig(config2, parentSchema) {
12607
12547
  required: []
12608
12548
  }
12609
12549
  };
12610
- const arrayItemSchema = parentSchema.properties[config2.name].items;
12611
- (_e = config2.elements) == null ? void 0 : _e.forEach(
12550
+ const arrayItemSchema = parentSchema.properties[config.name].items;
12551
+ (_e = config.elements) == null ? void 0 : _e.forEach(
12612
12552
  (child) => buildSchemaFromConfig(child, arrayItemSchema)
12613
12553
  );
12614
12554
  return;
12615
12555
  } else {
12616
- (_f = config2.elements) == null ? void 0 : _f.forEach(
12556
+ (_f = config.elements) == null ? void 0 : _f.forEach(
12617
12557
  (child) => buildSchemaFromConfig(child, parentSchema)
12618
12558
  );
12619
12559
  return;
12620
12560
  }
12621
12561
  }
12622
12562
  (_g = parentSchema.properties) != null ? _g : parentSchema.properties = {};
12623
- (_j = (_h = parentSchema.properties)[_i = config2.name]) != null ? _j : _h[_i] = {};
12624
- const fieldSchema = parentSchema.properties[config2.name];
12625
- (_k = config2.validation) == null ? void 0 : _k.forEach((v) => {
12563
+ (_j = (_h = parentSchema.properties)[_i = config.name]) != null ? _j : _h[_i] = {};
12564
+ const fieldSchema = parentSchema.properties[config.name];
12565
+ (_k = config.validation) == null ? void 0 : _k.forEach((v) => {
12626
12566
  var _a2;
12627
12567
  if (v.validationType === "required") {
12628
12568
  (_a2 = parentSchema.required) != null ? _a2 : parentSchema.required = [];
12629
- parentSchema.required.push(config2.name);
12569
+ parentSchema.required.push(config.name);
12630
12570
  } else if (v.validationType === "readOnly") {
12631
12571
  fieldSchema.type = "string";
12632
12572
  fieldSchema.disabled = true;
@@ -12635,171 +12575,171 @@ function buildSchemaFromConfig(config2, parentSchema) {
12635
12575
  fieldSchema[v.validationType] = isNaN(v.validationValue) ? v.validationValue : Number(v.validationValue);
12636
12576
  }
12637
12577
  });
12638
- if (config2.type === "Select" && ((_l = config2.value) == null ? void 0 : _l.length)) {
12639
- fieldSchema.oneOf = config2.value.map((v) => ({
12578
+ if (config.type === "Select" && ((_l = config.value) == null ? void 0 : _l.length)) {
12579
+ fieldSchema.oneOf = config.value.map((v) => ({
12640
12580
  const: v.value,
12641
12581
  title: v.label
12642
12582
  }));
12643
12583
  }
12644
- if (config2.type === "MultipleSelect" && ((_m = config2.value) == null ? void 0 : _m.length)) {
12584
+ if (config.type === "MultipleSelect" && ((_m = config.value) == null ? void 0 : _m.length)) {
12645
12585
  fieldSchema.type = "array";
12646
12586
  fieldSchema.items = {
12647
- oneOf: config2.value.map((v) => ({
12587
+ oneOf: config.value.map((v) => ({
12648
12588
  const: v.value,
12649
12589
  title: v.label
12650
12590
  }))
12651
12591
  };
12652
12592
  }
12653
12593
  }
12654
- const buildSchema = (config2) => {
12655
- buildSchemaFromConfig(config2, schema);
12594
+ const buildSchema = (config) => {
12595
+ buildSchemaFromConfig(config, schema);
12656
12596
  return schema;
12657
12597
  };
12658
- const buildUiSchema = (config2, store2) => {
12598
+ const buildUiSchema = (config, store2) => {
12659
12599
  let elements = {};
12660
- const componentScope2 = `#/properties/${config2.name}`;
12661
- switch (config2.type) {
12600
+ const componentScope = `#/properties/${config.name}`;
12601
+ switch (config.type) {
12662
12602
  case "TreeMap":
12663
- elements = buildTreeMap(config2, componentScope2);
12603
+ elements = buildTreeMap(config, componentScope);
12664
12604
  break;
12665
12605
  case "DateTime":
12666
- elements = buildDateTime(config2, componentScope2);
12606
+ elements = buildDateTime(config, componentScope);
12667
12607
  break;
12668
12608
  case "InputSlider":
12669
- elements = buildInputSlider(config2, componentScope2);
12609
+ elements = buildInputSlider(config, componentScope);
12670
12610
  break;
12671
12611
  case "DataGrid":
12672
- elements = buildDataGrid(config2, componentScope2);
12612
+ elements = buildDataGrid(config, componentScope);
12673
12613
  break;
12674
12614
  case "Stepper":
12675
- elements = buildStepper(config2, componentScope2);
12615
+ elements = buildStepper(config, componentScope);
12676
12616
  break;
12677
12617
  case "PopUp":
12678
- elements = buildPopUp(config2, componentScope2);
12618
+ elements = buildPopUp(config, componentScope);
12679
12619
  break;
12680
12620
  case "FileInput":
12681
- elements = buildFileInput(config2, componentScope2);
12621
+ elements = buildFileInput(config, componentScope);
12682
12622
  break;
12683
12623
  case "AadharcardText":
12684
- elements = buildAdhaarField(config2, componentScope2);
12624
+ elements = buildAdhaarField(config, componentScope);
12685
12625
  break;
12686
12626
  case "PanCardText":
12687
- elements = buildPanField(config2, componentScope2);
12627
+ elements = buildPanField(config, componentScope);
12688
12628
  break;
12689
12629
  case "TabSection":
12690
- elements = buildTabSection(config2, componentScope2);
12630
+ elements = buildTabSection(config, componentScope);
12691
12631
  break;
12692
12632
  case "RunnerBoyProgressBar":
12693
- elements = RunnerBoyProgressbar(config2, componentScope2);
12633
+ elements = RunnerBoyProgressbar(config, componentScope);
12694
12634
  break;
12695
12635
  case "WrapperSection":
12696
- elements = buildWrapperSection(config2, componentScope2);
12636
+ elements = buildWrapperSection(config, componentScope);
12697
12637
  break;
12698
12638
  case "HorizontalLayout":
12699
- elements = buildHorizontalLayout(config2, componentScope2);
12639
+ elements = buildHorizontalLayout(config, componentScope);
12700
12640
  break;
12701
12641
  case "Text":
12702
- elements = buildTextField(config2, componentScope2);
12642
+ elements = buildTextField(config, componentScope);
12703
12643
  break;
12704
12644
  case "TextArea":
12705
- elements = buildTextArea(config2, componentScope2);
12645
+ elements = buildTextArea(config, componentScope);
12706
12646
  break;
12707
12647
  case "Date":
12708
- elements = buildDate(config2, componentScope2);
12648
+ elements = buildDate(config, componentScope);
12709
12649
  break;
12710
12650
  case "Select":
12711
- elements = buildSelect(config2, componentScope2);
12651
+ elements = buildSelect(config, componentScope);
12712
12652
  break;
12713
12653
  case "Radio":
12714
- elements = buildRadio(config2, componentScope2);
12654
+ elements = buildRadio(config, componentScope);
12715
12655
  break;
12716
12656
  case "Button":
12717
- elements = buildButton(config2, componentScope2);
12657
+ elements = buildButton(config, componentScope);
12718
12658
  break;
12719
12659
  case "Table":
12720
- elements = buildTable(config2, componentScope2);
12660
+ elements = buildTable(config, componentScope);
12721
12661
  break;
12722
12662
  case "Array":
12723
- elements = buildArray(config2, componentScope2);
12663
+ elements = buildArray(config, componentScope);
12724
12664
  break;
12725
12665
  case "Box":
12726
- elements = buildLabel(config2, componentScope2);
12666
+ elements = buildLabel(config, componentScope);
12727
12667
  break;
12728
12668
  case "CheckBox":
12729
- elements = buildCheckbox(config2, componentScope2);
12669
+ elements = buildCheckbox(config, componentScope);
12730
12670
  break;
12731
12671
  case "UploadFile":
12732
- elements = buildUploadFile(config2, componentScope2);
12672
+ elements = buildUploadFile(config, componentScope);
12733
12673
  break;
12734
12674
  case "DownloadFile":
12735
- elements = buildDownloadFile(config2, componentScope2);
12675
+ elements = buildDownloadFile(config, componentScope);
12736
12676
  break;
12737
12677
  case "EmptyBox":
12738
- elements = buildEmptyBox(config2);
12678
+ elements = buildEmptyBox(config);
12739
12679
  break;
12740
12680
  case "card":
12741
- elements = buildCard(config2, componentScope2, store2);
12681
+ elements = buildCard(config, componentScope, store2);
12742
12682
  break;
12743
12683
  case "Graph":
12744
- switch (config2.graphType) {
12684
+ switch (config.graphType) {
12745
12685
  case "BarGraph":
12746
12686
  case "StackBarGraph":
12747
- elements = buildStackbarGraph(config2, componentScope2);
12687
+ elements = buildStackbarGraph(config, componentScope);
12748
12688
  break;
12749
12689
  case "LineGraph":
12750
- elements = buildLineGraph(config2, componentScope2);
12690
+ elements = buildLineGraph(config, componentScope);
12751
12691
  break;
12752
12692
  case "PieGraph":
12753
- elements = buildPieGraph(config2, componentScope2);
12693
+ elements = buildPieGraph(config, componentScope);
12754
12694
  break;
12755
12695
  case "HorizontalBarGraph":
12756
12696
  case "HorizontalStackBarGraph":
12757
- elements = buildHorizontalBarGraph(config2, componentScope2);
12697
+ elements = buildHorizontalBarGraph(config, componentScope);
12758
12698
  break;
12759
12699
  default:
12760
- elements = buildStackbarGraph(config2, componentScope2);
12700
+ elements = buildStackbarGraph(config, componentScope);
12761
12701
  break;
12762
12702
  }
12763
12703
  break;
12764
12704
  case "ProgressBar":
12765
- elements = buildProgressBar(config2, componentScope2);
12705
+ elements = buildProgressBar(config, componentScope);
12766
12706
  break;
12767
12707
  case "SpeedoMeter":
12768
- elements = buildSpeedoMeter(config2, componentScope2);
12708
+ elements = buildSpeedoMeter(config, componentScope);
12769
12709
  break;
12770
12710
  case "ProgressBarCard":
12771
- elements = buildProgressBarCard(config2, componentScope2);
12711
+ elements = buildProgressBarCard(config, componentScope);
12772
12712
  break;
12773
12713
  case "RankCard":
12774
- elements = buildRankCard(config2, componentScope2);
12714
+ elements = buildRankCard(config, componentScope);
12775
12715
  break;
12776
12716
  case "Rank":
12777
- elements = buildRollAndDice(config2, componentScope2);
12717
+ elements = buildRollAndDice(config, componentScope);
12778
12718
  break;
12779
12719
  case "Slider":
12780
- elements = buildSlider(config2, componentScope2);
12720
+ elements = buildSlider(config, componentScope);
12781
12721
  break;
12782
12722
  case "Timer":
12783
- elements = buildTimer(config2, componentScope2);
12723
+ elements = buildTimer(config, componentScope);
12784
12724
  break;
12785
12725
  case "ColumnGroup":
12786
12726
  elements = {
12787
- accessorKey: config2.name,
12788
- header: config2.label || config2.name,
12727
+ accessorKey: config.name,
12728
+ header: config.label || config.name,
12789
12729
  elements: []
12790
12730
  };
12791
12731
  break;
12792
12732
  case "MultipleSelect":
12793
- elements = buildMultiSelect(config2, componentScope2);
12733
+ elements = buildMultiSelect(config, componentScope);
12794
12734
  break;
12795
12735
  case "LeaderBoard":
12796
- elements = buildLeaderBoard(config2);
12736
+ elements = buildLeaderBoard(config);
12797
12737
  break;
12798
12738
  case "Thought":
12799
- elements = buildThoughtOfTheDay(config2, componentScope2);
12739
+ elements = buildThoughtOfTheDay(config, componentScope);
12800
12740
  break;
12801
12741
  case "Image":
12802
- elements = buildImage(config2, componentScope2);
12742
+ elements = buildImage(config, componentScope);
12803
12743
  break;
12804
12744
  default:
12805
12745
  schema = {
@@ -12807,12 +12747,12 @@ const buildUiSchema = (config2, store2) => {
12807
12747
  properties: {},
12808
12748
  required: []
12809
12749
  };
12810
- elements = buildBasicUiSchema(config2);
12750
+ elements = buildBasicUiSchema(config);
12811
12751
  }
12812
- if (config2 == null ? void 0 : config2.elements) {
12813
- if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
12752
+ if (config == null ? void 0 : config.elements) {
12753
+ if ((config == null ? void 0 : config.type) === "LeaderBoard") {
12814
12754
  const rowElements = [];
12815
- config2.elements.map((cellElem) => {
12755
+ config.elements.map((cellElem) => {
12816
12756
  const commonProperties = {
12817
12757
  accessorKey: cellElem.name,
12818
12758
  type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
@@ -12822,14 +12762,14 @@ const buildUiSchema = (config2, store2) => {
12822
12762
  rowElements.push({ ...commonProperties });
12823
12763
  });
12824
12764
  elements.elements = rowElements;
12825
- } else if (config2.type == "ColumnGroup") {
12765
+ } else if (config.type == "ColumnGroup") {
12826
12766
  const sizeMap = {};
12827
- if (config2.sizeHolder) {
12828
- config2.sizeHolder.map((e, i) => {
12767
+ if (config.sizeHolder) {
12768
+ config.sizeHolder.map((e, i) => {
12829
12769
  sizeMap[e.keyName] = e.value;
12830
12770
  });
12831
12771
  }
12832
- elements.elements = config2.elements.map((cellElem, elemInd) => {
12772
+ elements.elements = config.elements.map((cellElem, elemInd) => {
12833
12773
  const commonProperties = {
12834
12774
  accessorKey: cellElem.name,
12835
12775
  type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
@@ -12852,17 +12792,17 @@ const buildUiSchema = (config2, store2) => {
12852
12792
  return { ...commonProperties };
12853
12793
  }
12854
12794
  });
12855
- } else if (config2.type == "Table") {
12795
+ } else if (config.type == "Table") {
12856
12796
  const sizeMap = {};
12857
- if (config2.sizeHolder) {
12858
- config2.sizeHolder.map((e, i) => {
12797
+ if (config.sizeHolder) {
12798
+ config.sizeHolder.map((e, i) => {
12859
12799
  sizeMap[e.keyName] = e.value;
12860
12800
  });
12861
12801
  }
12862
12802
  const tableHeaderElements = [];
12863
12803
  const tableActionElement = [];
12864
12804
  const rowElements = [];
12865
- config2.elements.filter((cellElem, elemInd) => {
12805
+ config.elements.filter((cellElem, elemInd) => {
12866
12806
  const commonProperties = {
12867
12807
  accessorKey: cellElem.name,
12868
12808
  type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
@@ -12899,7 +12839,7 @@ const buildUiSchema = (config2, store2) => {
12899
12839
  elements.config.action = tableActionElement;
12900
12840
  elements.config.main.headerIcons.elements = tableHeaderElements;
12901
12841
  } else {
12902
- elements.elements = config2.elements.map((e, elemInd) => {
12842
+ elements.elements = config.elements.map((e, elemInd) => {
12903
12843
  return buildUiSchema(e, store2);
12904
12844
  });
12905
12845
  }