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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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
- const newEventGroups = extractEvents(config);
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: newEventGroups, formDataHolder
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: newEventGroups, formDataHolder: {}
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.columnFilters || [] },
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
- for (const eventConfig of eventGroups?.[eventType]?.[paramValue.path]) {
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,