impaktapps-ui-builder 1.0.147-test.1 → 1.0.147-test.11

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