impaktapps-ui-builder 1.0.109 → 1.0.111

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.
@@ -10369,8 +10369,8 @@ var service = (funcParams) => {
10369
10369
  }
10370
10370
  return {};
10371
10371
  },
10372
- onClick: function() {
10373
- this.callHandler("onClick");
10372
+ onClick: async function() {
10373
+ await this.callHandler("onClick");
10374
10374
  },
10375
10375
  onKeyDown: function() {
10376
10376
  this.callHandler("onKeyDown");
@@ -10468,7 +10468,7 @@ var service = (funcParams) => {
10468
10468
  onBack: async function(functionParameters) {
10469
10469
  var _a, _b;
10470
10470
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10471
- this.callHandler("onBack", functionParameters);
10471
+ await this.callHandler("onBack", functionParameters);
10472
10472
  if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
10473
10473
  functionParameters == null ? void 0 : functionParameters.handleBack();
10474
10474
  }
@@ -10476,7 +10476,7 @@ var service = (funcParams) => {
10476
10476
  onNext: async function(functionParameters) {
10477
10477
  var _a, _b;
10478
10478
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
10479
- this.callHandler("onNext", functionParameters);
10479
+ await this.callHandler("onNext", functionParameters);
10480
10480
  if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
10481
10481
  functionParameters == null ? void 0 : functionParameters.handleNext();
10482
10482
  }
@@ -10489,21 +10489,20 @@ var service = (funcParams) => {
10489
10489
  functionParameters == null ? void 0 : functionParameters.handleReset();
10490
10490
  }
10491
10491
  },
10492
- callHandler: function(eventType, functionParameters) {
10492
+ callHandler: async function(eventType, functionParameters) {
10493
10493
  var _a, _b, _c;
10494
10494
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
10495
10495
  if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
10496
- (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
10496
+ (_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map(async (eventConfig) => {
10497
10497
  executeEventsParameters.store.functionParameters = functionParameters;
10498
10498
  if (eventConfig.Handler === "refresh") {
10499
- executeEvents({
10499
+ await executeRefreshHandler({
10500
10500
  ...executeEventsParameters,
10501
10501
  config: eventConfig,
10502
10502
  componentName: path,
10503
10503
  formDataHolder
10504
- }).then((res) => {
10505
- funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10506
10504
  });
10505
+ funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
10507
10506
  } else {
10508
10507
  executeEvents({
10509
10508
  ...executeEventsParameters,