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
package/package.json
CHANGED
|
@@ -14,9 +14,6 @@ export const executeEvents = async (
|
|
|
14
14
|
const response = await executeEventsHandler(params)
|
|
15
15
|
finalResponse = response;
|
|
16
16
|
const SuccessEvent = params.config?.events.filter(e => e.eventType === "Success");
|
|
17
|
-
if(params.config.returnNeeded){
|
|
18
|
-
return finalResponse
|
|
19
|
-
}
|
|
20
17
|
nextEvent = SuccessEvent;
|
|
21
18
|
} catch (err) {
|
|
22
19
|
const FailEvent = params.config?.events?.filter(e => e.eventType === "Fail")
|
|
@@ -121,7 +118,7 @@ async function mergeFormdata(handlerResponse: any, componentName: string, eventC
|
|
|
121
118
|
}
|
|
122
119
|
else {
|
|
123
120
|
if (handlerResponse) {
|
|
124
|
-
store.setFormdata((pre) => { return { ...pre, [componentName]: handlerResponse.data } });
|
|
121
|
+
store.setFormdata((pre) => { return { ...pre, [componentName]:eventConfig.lazyLoading?handlerResponse.data.data: handlerResponse.data } });
|
|
125
122
|
}
|
|
126
123
|
}
|
|
127
124
|
}
|
|
@@ -30,7 +30,7 @@ export const extractEvents = (eventConfig: any) => {
|
|
|
30
30
|
return elem.eventType === "Success"
|
|
31
31
|
})
|
|
32
32
|
if (!(!!SuccessEvent) && event.eventType === "onLoad") {
|
|
33
|
-
event.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType })
|
|
33
|
+
event.events.push({ Handler: "mergeFormdata", eventType: "Success", type: compType,lazyLoading:eventConfig.lazyLoading==="YES"?true:false })
|
|
34
34
|
}
|
|
35
35
|
eventGroups[event.eventType][eventConfigObj.name].push({ ...event, type: compType })
|
|
36
36
|
});
|
|
@@ -98,7 +98,8 @@ export default (funcParams: funcParamsProps) => {
|
|
|
98
98
|
{ key: "filters", value: paginationValues.columnFilters || [] },
|
|
99
99
|
{ key: "globalFilter", value: paginationValues.globalFilter ?? '' }
|
|
100
100
|
]
|
|
101
|
-
|
|
101
|
+
const response = await this.updateConfigApiBody(paginationValues, apiBody);
|
|
102
|
+
return response?.data;
|
|
102
103
|
},
|
|
103
104
|
getSelectOptions: async function (param) {
|
|
104
105
|
if (param.serachValue !== "" && param.serachValue !== undefined) {
|