impaktapps-ui-builder 1.0.58 → 1.0.59-flcikering.0.1

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.
@@ -4795,7 +4795,7 @@ var lodash = { exports: {} };
4795
4795
  customizer = typeof customizer == "function" ? customizer : undefined$1;
4796
4796
  return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
4797
4797
  }
4798
- function cloneDeep(value) {
4798
+ function cloneDeep2(value) {
4799
4799
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
4800
4800
  }
4801
4801
  function cloneDeepWith(value, customizer) {
@@ -5921,7 +5921,7 @@ var lodash = { exports: {} };
5921
5921
  lodash2.ceil = ceil;
5922
5922
  lodash2.clamp = clamp;
5923
5923
  lodash2.clone = clone;
5924
- lodash2.cloneDeep = cloneDeep;
5924
+ lodash2.cloneDeep = cloneDeep2;
5925
5925
  lodash2.cloneDeepWith = cloneDeepWith;
5926
5926
  lodash2.cloneWith = cloneWith;
5927
5927
  lodash2.conformsTo = conformsTo;
@@ -10117,7 +10117,7 @@ function executeCustomHandler(params) {
10117
10117
  }
10118
10118
  }
10119
10119
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10120
- var _a, _b, _c;
10120
+ var _a, _b, _c, _d, _e;
10121
10121
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10122
10122
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
10123
10123
  store2.setSchema((pre) => {
@@ -10165,10 +10165,15 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
10165
10165
  }
10166
10166
  } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10167
10167
  if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10168
- formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10169
- formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10170
- store2.setFormdata((pre) => {
10171
- return { ...pre, ...formDataHolder };
10168
+ const tableData = Array.isArray((_a = handlerResponse.data) == null ? void 0 : _a.data) ? cloneDeep(handlerResponse.data.data) : cloneDeep((_b = handlerResponse.data) == null ? void 0 : _b.data);
10169
+ const rowCount = (_e = (_d = (_c = handlerResponse.data) == null ? void 0 : _c.meta) == null ? void 0 : _d.totalRowCount) != null ? _e : null;
10170
+ const newFormDataHolder = {
10171
+ ...formDataHolder,
10172
+ [componentName]: tableData,
10173
+ [`${componentName}_RowCount`]: rowCount
10174
+ };
10175
+ store2.setFormdata((prev) => {
10176
+ return { ...prev, ...newFormDataHolder };
10172
10177
  });
10173
10178
  }
10174
10179
  } else {
@@ -10255,6 +10260,9 @@ function buildApiPayload(compConfig, body, headers, store, dynamicData, userValu
10255
10260
  }
10256
10261
  return promiseChain;
10257
10262
  }
10263
+ function cloneDeep(data) {
10264
+ throw new Error("Function not implemented.");
10265
+ }
10258
10266
  let compType;
10259
10267
  let eventGroups = {};
10260
10268
  const notifyUiSchema = {
@@ -10500,7 +10508,7 @@ var service = (funcParams) => {
10500
10508
  onKeyDown: function() {
10501
10509
  this.callHandler("onKeyDown");
10502
10510
  },
10503
- onFileDelete: function() {
10511
+ onFileDelete: async function() {
10504
10512
  this.callHandler("onFileDelete");
10505
10513
  },
10506
10514
  onMount: function() {