impaktapps-ui-builder 0.0.1062 → 0.0.1064

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": "0.0.1062",
3
+ "version": "0.0.1064",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -363,7 +363,7 @@ const buildUiSchema = (config: any, store?: any) => {
363
363
  enableColumnFilter: Object.keys(filterMap).length === 0 ? true : filterMap[cellElem.name] ?? false,
364
364
  columnFilterModeOptions: config.filteringOptions,
365
365
  enableSorting: config.enableSorting === "No" ? false : true,
366
- columnKey: config.columnKey
366
+ columnKey: cellElem.columnKey
367
367
  }
368
368
  if (cellElem.type) {
369
369
  return {
@@ -203,6 +203,7 @@ export default (funcParams: funcParamsProps) => {
203
203
  ],
204
204
  }
205
205
  );
206
+ eventGroups = {}
206
207
  const schema = pageData?.schema ?? { type: "object", properties: {} };
207
208
  eventGroups = extractEvents(config);
208
209
  executeEventsParameters = {
@@ -274,7 +275,7 @@ export default (funcParams: funcParamsProps) => {
274
275
  { key: "size", value: paginationValues.pagination.pageSize },
275
276
  { key: "pageIndex", value: paginationValues.pagination.pageIndex },
276
277
  { key: "sorting", value: paginationValues.sorting || [] },
277
- { key: "filters", value: paginationValues.columnFilters || [] },
278
+ { key: "filters", value:paginationValues.tableColumnConfig|| paginationValues.columnFilters || [] },
278
279
  { key: "globalFilter", value: paginationValues.globalFilter ?? '' }
279
280
  ]
280
281
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
@@ -352,7 +353,7 @@ export default (funcParams: funcParamsProps) => {
352
353
  }
353
354
  },
354
355
  callHandler: async function (eventType: string, functionParameters?: any) {
355
- const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[ funcParams.dynamicData.path.split(".").length -1];
356
+ const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
356
357
  if (eventGroups?.[eventType]?.[path] !== undefined) {
357
358
  Promise.all(eventGroups?.[eventType]?.[path].map((eventConfig) => {
358
359
  executeEventsParameters.store.functionParameters = functionParameters