impaktapps-ui-builder 0.0.296 → 0.0.297
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 +4 -6
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +1 -4
- package/src/impaktapps-ui-builder/runtime/services/service.ts +3 -2
|
@@ -9849,9 +9849,6 @@ const executeEvents = async (params2) => {
|
|
|
9849
9849
|
const response2 = await executeEventsHandler(params2);
|
|
9850
9850
|
finalResponse = response2;
|
|
9851
9851
|
const SuccessEvent = (_a = params2.config) == null ? void 0 : _a.events.filter((e) => e.eventType === "Success");
|
|
9852
|
-
if (params2.config.returnNeeded) {
|
|
9853
|
-
return finalResponse;
|
|
9854
|
-
}
|
|
9855
9852
|
nextEvent = SuccessEvent;
|
|
9856
9853
|
} catch (err) {
|
|
9857
9854
|
const FailEvent = (_c = (_b = params2.config) == null ? void 0 : _b.events) == null ? void 0 : _c.filter((e) => e.eventType === "Fail");
|
|
@@ -9958,7 +9955,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
9958
9955
|
} else {
|
|
9959
9956
|
if (handlerResponse) {
|
|
9960
9957
|
store2.setFormdata((pre) => {
|
|
9961
|
-
return { ...pre, [componentName]: handlerResponse.data };
|
|
9958
|
+
return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data };
|
|
9962
9959
|
});
|
|
9963
9960
|
}
|
|
9964
9961
|
}
|
|
@@ -10059,7 +10056,7 @@ const extractEvents = (eventConfig) => {
|
|
|
10059
10056
|
return elem.eventType === "Success";
|
|
10060
10057
|
});
|
|
10061
10058
|
if (!!!SuccessEvent && event2.eventType === "onLoad") {
|
|
10062
|
-
event2.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType });
|
|
10059
|
+
event2.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType, lazyLoading: eventConfig.lazyLoading === "YES" ? true : false });
|
|
10063
10060
|
}
|
|
10064
10061
|
eventGroups[event2.eventType][eventConfigObj.name].push({ ...event2, type: compType });
|
|
10065
10062
|
});
|
|
@@ -10129,7 +10126,8 @@ var service = (funcParams) => {
|
|
|
10129
10126
|
{ key: "filters", value: paginationValues.columnFilters || [] },
|
|
10130
10127
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" }
|
|
10131
10128
|
];
|
|
10132
|
-
|
|
10129
|
+
const response2 = await this.updateConfigApiBody(paginationValues, apiBody);
|
|
10130
|
+
return response2 == null ? void 0 : response2.data;
|
|
10133
10131
|
},
|
|
10134
10132
|
getSelectOptions: async function(param) {
|
|
10135
10133
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|