impaktapps-ui-builder 0.0.282 → 0.0.284

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.
@@ -6925,7 +6925,7 @@ const buildPropertiesSection = function(type) {
6925
6925
  getRadioInputField("SelectionAvailable", "Selection Available", ["YES", "NO"]),
6926
6926
  getRadioInputField("ColumnResizingAvailable", "ColumnResizing Available", ["YES", "NO"]),
6927
6927
  getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
6928
- EmptyBox
6928
+ getInputField("selectKey", "Selection Key")
6929
6929
  ];
6930
6930
  } else if (type === "Radio") {
6931
6931
  uiSchema.elements = [
@@ -8287,6 +8287,9 @@ const buildTable = (config, componentScope) => {
8287
8287
  if (config.DragAvailable) {
8288
8288
  table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false;
8289
8289
  }
8290
+ if (config.selectKey) {
8291
+ table.config.main.selectKey = config.selectKey;
8292
+ }
8290
8293
  return table;
8291
8294
  };
8292
8295
  const buildLazyLoadingTable = (config, componentScope) => {
@@ -8304,6 +8307,9 @@ const buildLazyLoadingTable = (config, componentScope) => {
8304
8307
  if (config.DragAvailable) {
8305
8308
  table.config.main.enableDrag = config.DragAvailable === "YES" ? true : false;
8306
8309
  }
8310
+ if (config.selectKey) {
8311
+ table.config.main.selectKey = config.selectKey;
8312
+ }
8307
8313
  table.config.main.label = config.label;
8308
8314
  return table;
8309
8315
  };
@@ -9726,6 +9732,9 @@ const executeEvents = async (config, componentName2, store2, dynamicData2, userV
9726
9732
  eventGroups2,
9727
9733
  parentEventOutput2
9728
9734
  );
9735
+ if (config.returnResponse) {
9736
+ return response2;
9737
+ }
9729
9738
  LoadResponse = response2;
9730
9739
  nextEvent = events;
9731
9740
  } else {
@@ -9786,6 +9795,9 @@ const executetOnLoadEvent = async (config, componentName2, store2, dynamicData2,
9786
9795
  eventGroups2,
9787
9796
  parentEventOutput2
9788
9797
  );
9798
+ if (config.returnResponse) {
9799
+ return { response: response2 };
9800
+ }
9789
9801
  const SuccessEvent = config == null ? void 0 : config.events.filter((e) => e.eventType === "Success");
9790
9802
  const setEvent = SuccessEvent.length > 0 ? SuccessEvent : [{ Handler: "mergeFormdata", eventType: "Success", type: config.type }];
9791
9803
  return { response: response2, events: setEvent };
@@ -9865,6 +9877,9 @@ async function executeApiEventHandler(apiHandlerConfig, componentName2, store2,
9865
9877
  body2,
9866
9878
  headers2 && { headers: headers2 }
9867
9879
  );
9880
+ if (apiHandlerConfig.returnResponse) {
9881
+ return { response: response2 };
9882
+ }
9868
9883
  return { response: response2, events: apiHandlerConfig == null ? void 0 : apiHandlerConfig.events };
9869
9884
  }
9870
9885
  async function executeInBuiltFunctionHandler(refreshHandlerConfig, componentName, store, dynamicData, userValue, service, serviceHolder, parentEventOutput) {
@@ -9895,10 +9910,6 @@ async function mergeFormdata(handlerResponse, componentName2, eventConfig, store
9895
9910
  }
9896
9911
  };
9897
9912
  });
9898
- } else if (eventConfig.type === "LazyLoadingTable") {
9899
- store2.setFormdata((pre) => {
9900
- return { ...pre, [`${componentName2}Backend`]: handlerResponse };
9901
- });
9902
9913
  } else if (eventConfig.type === "page") {
9903
9914
  store2.setFormdata((pre) => {
9904
9915
  return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
@@ -10074,11 +10085,13 @@ var service = (funcParams) => {
10074
10085
  { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
10075
10086
  ];
10076
10087
  if (eventConfig.body) {
10088
+ eventConfig.returnResponse = true;
10077
10089
  eventConfig.body = [
10078
10090
  ...eventConfig.body,
10079
10091
  ...bodyValues
10080
10092
  ];
10081
10093
  } else {
10094
+ eventConfig.returnResponse = true;
10082
10095
  eventConfig.body = bodyValues;
10083
10096
  }
10084
10097
  await executeEvents(