impaktapps-ui-builder 0.0.295 → 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 +6 -8
- 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 +3 -6
- 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");
|
|
@@ -9920,7 +9917,7 @@ async function executeCustomHandler(params) {
|
|
|
9920
9917
|
return response;
|
|
9921
9918
|
}
|
|
9922
9919
|
async function mergeFormdata(handlerResponse, componentName, eventConfig, store2) {
|
|
9923
|
-
if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse) && handlerResponse)) {
|
|
9920
|
+
if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
9924
9921
|
store2.setSchema((pre) => {
|
|
9925
9922
|
var _a;
|
|
9926
9923
|
return {
|
|
@@ -9934,7 +9931,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
9934
9931
|
}
|
|
9935
9932
|
};
|
|
9936
9933
|
});
|
|
9937
|
-
} else if (eventConfig.type === "MultipleSelect" && !(_.isEmpty(handlerResponse) && handlerResponse)) {
|
|
9934
|
+
} else if (eventConfig.type === "MultipleSelect" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
9938
9935
|
store2.setSchema((pre) => {
|
|
9939
9936
|
var _a;
|
|
9940
9937
|
return {
|
|
@@ -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) {
|