impaktapps-ui-builder 0.0.101-alpha.262 → 0.0.101-alpha.264

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.
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  main: {
10
10
  onMount: string;
11
11
  enableExpandAll: boolean;
12
+ headerIcons: {};
12
13
  allRowData: any[];
13
14
  downloadAllData: boolean;
14
15
  columns: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.101-alpha.262",
3
+ "version": "0.0.101-alpha.264",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -370,21 +370,21 @@ const buildUiSchema = (config: any, store?: any) => {
370
370
  tableHeaderElements.push(headerElem);
371
371
  return false;
372
372
  }
373
-
374
- rowElements.push({
373
+ const tableElem = {
375
374
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
376
375
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : [],
377
376
  ...commonProperties
378
377
 
379
- })
378
+ }
379
+ rowElements.push(tableElem)
380
380
  } else {
381
- rowElements.push(commonProperties)
381
+ rowElements.push({ ...commonProperties })
382
382
  }
383
383
 
384
384
  })
385
385
  elements.elements = rowElements;
386
- elements.config.main.action = tableActionElement;
387
- elements.config.main.headerIcons = tableHeaderElements;
386
+ elements.config.action = tableActionElement;
387
+ elements.config.main.headerIcons.elements = tableHeaderElements;
388
388
  }
389
389
 
390
390
  else if (config.type == "Array") {
@@ -9,6 +9,7 @@ export default {
9
9
  main: {
10
10
  onMount: "onMount",
11
11
  enableExpandAll: true,
12
+ headerIcons:{},
12
13
  allRowData: [],
13
14
  downloadAllData: false,
14
15
  columns: {
@@ -285,7 +285,7 @@ export default (funcParams: funcParamsProps) => {
285
285
  { key: "searchValue", value: param.serachValue },
286
286
  { key: "currentValue", value: param.currentValue }
287
287
  ]
288
- const response = await this.callExecuteEvents(param, apiBody);
288
+ const response = await this.callExecuteEvents(param, apiBody,"onLoad");
289
289
  return response?.data;
290
290
  }
291
291
  },