impaktapps-ui-builder 0.0.382-alpha.332 → 0.0.382-alpha.334
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 +6 -3
- 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/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +4 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +6 -2
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { handlersProps } from "./interface";
|
|
2
|
-
export declare const executeEvents: (params: handlersProps) => Promise<
|
|
2
|
+
export declare const executeEvents: (params: handlersProps) => Promise<{
|
|
3
|
+
response: any;
|
|
4
|
+
events: any;
|
|
5
|
+
}>;
|
|
3
6
|
export declare function executeRefreshHandler(params: handlersProps): Promise<void>;
|
|
4
7
|
export declare function buildApiPayload(compConfig: any, body: any, headers: any, store: any, dynamicData: any, userValue: any, service: any): Promise<{
|
|
5
8
|
body: any;
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ export const executeEvents = async (
|
|
|
26
26
|
await executeEvents({ ...params, config: actionConfig, parentEventOutput: finalResponse })
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
finalResponse;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
async function executeEventsHandler(params: handlersProps) {
|
|
@@ -230,6 +230,6 @@ function asyncOperation() {
|
|
|
230
230
|
resolve("Operation completed successfully!");
|
|
231
231
|
reject(new Error("Operation failed!"));
|
|
232
232
|
}
|
|
233
|
-
},
|
|
233
|
+
}, 50);
|
|
234
234
|
});
|
|
235
235
|
}
|
|
@@ -228,8 +228,12 @@ export default (funcParams: funcParamsProps) => {
|
|
|
228
228
|
funcParams.dynamicData.path.split(".")[0];
|
|
229
229
|
if (eventGroups?.[eventType]?.[path] !== undefined) {
|
|
230
230
|
for (const eventConfig of eventGroups?.[eventType]?.[path]) {
|
|
231
|
-
executeEventsParameters.store.functionParameters = functionParameters
|
|
232
|
-
await
|
|
231
|
+
executeEventsParameters.store.functionParameters = functionParameters
|
|
232
|
+
await executeEvents({
|
|
233
|
+
...executeEventsParameters,
|
|
234
|
+
config: eventConfig,
|
|
235
|
+
componentName: path
|
|
236
|
+
})
|
|
233
237
|
}
|
|
234
238
|
}
|
|
235
239
|
},
|