impaktapps-ui-builder 0.0.382-alpha.338 → 0.0.382-alpha.340

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.
@@ -9198,9 +9198,10 @@ var service = (funcParams) => {
9198
9198
  });
9199
9199
  },
9200
9200
  onClick: async function() {
9201
- funcParams.dynamicData(true);
9201
+ var _a, _b;
9202
+ (_a = funcParams.dynamicData) == null ? void 0 : _a.setLoading(true);
9202
9203
  await this.callHandler("onClick");
9203
- funcParams.dynamicData(true);
9204
+ (_b = funcParams.dynamicData) == null ? void 0 : _b.setLoading(false);
9204
9205
  },
9205
9206
  onFileDownload: async function() {
9206
9207
  await this.callHandler("onDownload");
@@ -9230,20 +9231,21 @@ var service = (funcParams) => {
9230
9231
  }
9231
9232
  },
9232
9233
  onChange: async function() {
9234
+ var _a, _b;
9233
9235
  if (eventGroups.onChange) {
9234
- funcParams.dynamicData(true);
9236
+ (_a = funcParams.dynamicData) == null ? void 0 : _a.setLoading(true);
9235
9237
  const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
9236
9238
  await Promise.all(
9237
9239
  ChangeEventsKeysArray.map(async (componentName) => {
9238
- var _a, _b;
9239
- if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) !== funcParams.store.newData[componentName] && ((_b = funcParams.store) == null ? void 0 : _b.newData[componentName]) !== void 0) {
9240
+ var _a2, _b2;
9241
+ if (((_a2 = funcParams.store) == null ? void 0 : _a2.formData[componentName]) !== funcParams.store.newData[componentName] && ((_b2 = funcParams.store) == null ? void 0 : _b2.newData[componentName]) !== void 0) {
9240
9242
  for (const eventConfig of eventGroups.onChange[componentName]) {
9241
9243
  await debouncedExecuteEvents(eventConfig, componentName);
9242
9244
  }
9243
9245
  }
9244
9246
  })
9245
9247
  );
9246
- funcParams.dynamicData(false);
9248
+ (_b = funcParams.dynamicData) == null ? void 0 : _b.setLoading(false);
9247
9249
  }
9248
9250
  },
9249
9251
  updateConfigApiBody: async function(paramValue, apiBody) {