impaktapps-ui-builder 1.0.2 → 1.0.4
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/package.json
CHANGED
|
@@ -65,7 +65,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
65
65
|
let executeEventsParameters: handlersProps = {
|
|
66
66
|
config: {}, componentName: "",
|
|
67
67
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
68
|
-
serviceHolder: { downloadFile, download: doDownload, ...funcParams.functionsProvider },eventGroups,
|
|
68
|
+
serviceHolder: { downloadFile, download: doDownload, ...funcParams.functionsProvider }, eventGroups,
|
|
69
69
|
functionsProvider: funcParams.functionsProvider, formDataHolder
|
|
70
70
|
};
|
|
71
71
|
return {
|
|
@@ -190,19 +190,17 @@ export default (funcParams: funcParamsProps) => {
|
|
|
190
190
|
}
|
|
191
191
|
);
|
|
192
192
|
const schema = pageData?.schema ?? { type: "object", properties: {} };
|
|
193
|
-
|
|
194
|
-
console.log("newEventGroups", newEventGroups,eventGroups)
|
|
195
|
-
eventGroups = newEventGroups;
|
|
193
|
+
eventGroups = extractEvents(config);
|
|
196
194
|
executeEventsParameters = {
|
|
197
195
|
config: {}, componentName: "",
|
|
198
196
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
199
197
|
functionsProvider: funcParams.functionsProvider,
|
|
200
|
-
serviceHolder: this, eventGroups
|
|
198
|
+
serviceHolder: this, eventGroups, formDataHolder
|
|
201
199
|
}
|
|
202
200
|
await executeRefreshHandler({
|
|
203
201
|
config: {}, componentName: "",
|
|
204
202
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
205
|
-
serviceHolder: this, eventGroups
|
|
203
|
+
serviceHolder: this, eventGroups, formDataHolder: {}
|
|
206
204
|
})
|
|
207
205
|
funcParams.store.setSchema(
|
|
208
206
|
(pre: any) => {
|
|
@@ -262,7 +260,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
262
260
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
263
261
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
264
262
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
265
|
-
{ key: "filters", value: paginationValues.
|
|
263
|
+
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
266
264
|
{ key: "globalFilter", value: paginationValues.globalFilter ?? '' }
|
|
267
265
|
]
|
|
268
266
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
@@ -299,7 +297,8 @@ export default (funcParams: funcParamsProps) => {
|
|
|
299
297
|
},
|
|
300
298
|
callExecuteEvents: async function (paramValue, apiBody, eventType: string) {
|
|
301
299
|
let LastCallResponse = undefined;
|
|
302
|
-
|
|
300
|
+
const eventsGroupClone = _.cloneDeep(eventGroups)
|
|
301
|
+
for (const eventConfig of eventsGroupClone?.[eventType]?.[paramValue.path]) {
|
|
303
302
|
if (eventConfig.body) {
|
|
304
303
|
eventConfig.body = [
|
|
305
304
|
...eventConfig.body,
|