impaktapps-ui-builder 0.0.382-alpha.331 → 0.0.382-alpha.332
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.
- package/dist/impaktapps-ui-builder.es.js +14 -5
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +14 -5
- package/src/impaktapps-ui-builder/runtime/services/service.ts +2 -2
|
@@ -8902,13 +8902,19 @@ const executeEvents = async (params2) => {
|
|
|
8902
8902
|
async function executeEventsHandler(params2) {
|
|
8903
8903
|
var _a, _b, _c;
|
|
8904
8904
|
if (params2.config.Handler === "api") {
|
|
8905
|
-
|
|
8905
|
+
const res = await executeApiEventHandler(params2);
|
|
8906
|
+
await asyncOperation();
|
|
8907
|
+
return res;
|
|
8906
8908
|
} else if (params2.config.Handler === "inBuiltFunction") {
|
|
8907
8909
|
return await executeInBuiltFunctionHandler(params2);
|
|
8908
8910
|
} else if (params2.config.Handler === "custom") {
|
|
8909
|
-
|
|
8911
|
+
const res = await executeCustomHandler(params2);
|
|
8912
|
+
await asyncOperation();
|
|
8913
|
+
return res;
|
|
8910
8914
|
} else if (params2.config.Handler === "refresh") {
|
|
8911
|
-
|
|
8915
|
+
const res = await executeRefreshHandler(params2);
|
|
8916
|
+
await asyncOperation();
|
|
8917
|
+
return res;
|
|
8912
8918
|
} else if (params2.config.Handler === "mergeFormdata") {
|
|
8913
8919
|
const result = await mergeFormdata(
|
|
8914
8920
|
params2.parentEventOutput,
|
|
@@ -8917,7 +8923,9 @@ async function executeEventsHandler(params2) {
|
|
|
8917
8923
|
params2.store,
|
|
8918
8924
|
params2.service
|
|
8919
8925
|
);
|
|
8920
|
-
|
|
8926
|
+
const res = result;
|
|
8927
|
+
await asyncOperation();
|
|
8928
|
+
return res;
|
|
8921
8929
|
} else if (params2.config.Handler === "onBackHandler") {
|
|
8922
8930
|
return (_a = params2.store.functionParameters) == null ? void 0 : _a.handleBack();
|
|
8923
8931
|
} else if (params2.config.Handler === "onNextHandler") {
|
|
@@ -8999,6 +9007,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
8999
9007
|
store2.setFormdata((pre) => {
|
|
9000
9008
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
9001
9009
|
});
|
|
9010
|
+
await asyncOperation();
|
|
9002
9011
|
}
|
|
9003
9012
|
} else {
|
|
9004
9013
|
if (handlerResponse) {
|
|
@@ -9086,7 +9095,7 @@ function asyncOperation() {
|
|
|
9086
9095
|
resolve("Operation completed successfully!");
|
|
9087
9096
|
reject(new Error("Operation failed!"));
|
|
9088
9097
|
}
|
|
9089
|
-
},
|
|
9098
|
+
}, 400);
|
|
9090
9099
|
});
|
|
9091
9100
|
}
|
|
9092
9101
|
let compType;
|