impaktapps-ui-builder 0.0.375 → 0.0.376

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.
@@ -6018,20 +6018,6 @@ const ComponentSchema = {
6018
6018
  }
6019
6019
  }
6020
6020
  },
6021
- sizeHolder: {
6022
- type: "array",
6023
- items: {
6024
- type: "object",
6025
- properties: {
6026
- keyName: {
6027
- type: "string"
6028
- },
6029
- value: {
6030
- type: "string"
6031
- }
6032
- }
6033
- }
6034
- },
6035
6021
  legendLabels: {
6036
6022
  type: "array",
6037
6023
  items: {
@@ -6896,10 +6882,10 @@ const buildPropertiesSection = function(type) {
6896
6882
  case "Stepper":
6897
6883
  uiSchema.elements = [
6898
6884
  getRadioInputField("resetButton", "Reset Button", ["YES", "NO"]),
6899
- getRadioInputField("defaultButtonAvailable", "Use Default Buttons ", ["YES", "NO"]),
6900
6885
  getInputField("resetText", "Reset Text"),
6901
6886
  getInputField("completeText", "Complete Text"),
6902
6887
  getSelectField("orientation", "Orientation Type"),
6888
+ EmptyBox,
6903
6889
  getArrayControl("sectionLabels", "label")
6904
6890
  ];
6905
6891
  break;
@@ -7012,8 +6998,7 @@ const buildPropertiesSection = function(type) {
7012
6998
  getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
7013
6999
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
7014
7000
  getInputField("selectKey", "Selection Key"),
7015
- getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
7016
- sizeHolder
7001
+ getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name")
7017
7002
  ];
7018
7003
  break;
7019
7004
  case "Radio":
@@ -7466,8 +7451,7 @@ const sectionLabels = {
7466
7451
  Text: ["Core", "Properties", "style", "Event", "Validation"],
7467
7452
  TextArea: ["Core", "Properties", "style", "Event", "Validation"],
7468
7453
  PopUp: ["Core", "Components", "Properties", "style"],
7469
- Stepper: ["Core", "Components", "Properties", "Event", "style"],
7470
- DataGrid: ["Core", "Components", "Properties", "Event", "style"]
7454
+ Stepper: ["Core", "Components", "Properties", "Event", "style"]
7471
7455
  };
7472
7456
  const refreshPage = (type, store2) => {
7473
7457
  var _a;
@@ -8318,7 +8302,7 @@ const download = (response2) => {
8318
8302
  const url = window.URL.createObjectURL(new Blob([response2.data]));
8319
8303
  const link = document.createElement("a");
8320
8304
  link.href = url;
8321
- link.setAttribute("download", `${response2.headers.data}`);
8305
+ link.setAttribute("download", `${response2.headers.filename}`);
8322
8306
  document.body.appendChild(link);
8323
8307
  link.click();
8324
8308
  link.parentNode.removeChild(link);
@@ -8591,7 +8575,7 @@ var service = (funcParams) => {
8591
8575
  dynamicData: funcParams.dynamicData,
8592
8576
  userValue: funcParams.userValue,
8593
8577
  service: funcParams.service,
8594
- serviceHolder: { downloadFile: downloadFile$1 },
8578
+ serviceHolder: { downloadFile: downloadFile$1, download },
8595
8579
  eventGroups
8596
8580
  };
8597
8581
  return {
@@ -9563,9 +9547,6 @@ const buildWrapperSection = (config, componentScope) => {
9563
9547
  if (config.style) {
9564
9548
  wrapper.config.style = JSON.parse(config.style);
9565
9549
  }
9566
- if (config.layout) {
9567
- wrapper.config.layout = createLayoutFormat(config.layout);
9568
- }
9569
9550
  return wrapper;
9570
9551
  };
9571
9552
  var TextInputField = {
@@ -9749,7 +9730,7 @@ const buildTable = (config, componentScope) => {
9749
9730
  table.config.main.Selection = config.SelectionAvailable === "YES" ? true : false;
9750
9731
  }
9751
9732
  if (config.ColumnResizingAvailable) {
9752
- table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? false : true;
9733
+ table.config.main.disableColumnResizing = config.ColumnResizingAvailable === "YES" ? true : false;
9753
9734
  }
9754
9735
  if (config.DragAvailable) {
9755
9736
  table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false;
@@ -10472,14 +10453,11 @@ const buildStepper = (config, componentScope) => {
10472
10453
  const stepper = _.cloneDeep(Stepper);
10473
10454
  stepper.scope = componentScope;
10474
10455
  stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
10475
- if (config.defaultButtonAvailable) {
10476
- stepper.config.main.defaultButtonAvailable = config.defaultButtonAvailable === "YES" ? true : false;
10477
- }
10478
10456
  stepper.config.main.resetText = config.resetText || "ResetData";
10479
10457
  stepper.config.main.completeText = config.completeText || "Complete Text";
10480
10458
  stepper.config.main.orientation = config.orientation || "horizontal";
10481
10459
  if (config.sectionLabels) {
10482
- stepper.config.main.steps = config.sectionLabels.map((e, i) => {
10460
+ stepper.config.main.label = config.sectionLabels.map((e, i) => {
10483
10461
  return { label: e.label, id: i };
10484
10462
  });
10485
10463
  }
@@ -10819,25 +10797,17 @@ const buildUiSchema = (config) => {
10819
10797
  if ((config == null ? void 0 : config.type) === "LeaderBoard") {
10820
10798
  return elements;
10821
10799
  } else if (config.type == "Table") {
10822
- const sizeMap = {};
10823
- if (config.sizeHolder) {
10824
- config.sizeHolder.map((e, i) => {
10825
- sizeMap[e.keyName] = e.value;
10826
- });
10827
- }
10828
10800
  elements.elements = config.elements.map((e, elemInd) => {
10829
10801
  if (e.type) {
10830
10802
  return {
10831
10803
  accessorKey: e.name,
10832
10804
  header: e.label || e.name,
10833
- size: sizeMap[e.name] || 180,
10834
10805
  widget: buildUiSchema(e)
10835
10806
  };
10836
10807
  }
10837
10808
  return {
10838
10809
  accessorKey: e.name,
10839
- header: e.label || e.name,
10840
- size: sizeMap[e.name] || 180
10810
+ header: e.label || e.name
10841
10811
  };
10842
10812
  });
10843
10813
  } else if (config.type == "Array") {