impaktapps-ui-builder 1.0.64-alpha.1 → 1.0.64-alpha.101

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.64-alpha.1",
3
+ "version": "1.0.64-alpha.101",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -355,7 +355,7 @@ const buildUiSchema = (config: any, store?: any) => {
355
355
  config.elements.filter((cellElem, elemInd) => {
356
356
  const commonProperties = {
357
357
  accessorKey: cellElem.name,
358
- type: cellElem.columnFormat,
358
+ type: cellElem.type === "ColumnGroup" ? "ColumnGroup" : cellElem.columnFormat,
359
359
  header: cellElem.label || cellElem.name,
360
360
  size: sizeMap[cellElem.name] || 180,
361
361
  enableColumnFilter: cellElem.enableFilter === "No" ? false : true,
@@ -375,7 +375,8 @@ const buildUiSchema = (config: any, store?: any) => {
375
375
  return false;
376
376
  }
377
377
  const tableElem = {
378
- widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
378
+ widget: buildUiSchema(cellElem, store),
379
+ // widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store) : undefined,
379
380
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store)) : [],
380
381
  ...commonProperties
381
382
 
@@ -337,7 +337,6 @@ export const ComponentSchema: any = {
337
337
  { title: "Error Icon", const: "ErrorIcon" },
338
338
  { title: "Refresh Icon", const: "RefreshIcon" },
339
339
  { title: "Download Icon", const: "DownloadIcon" },
340
- { title: "Download All Icon", const: "DownloadAllIcon" },
341
340
  { title: "Exception Icon", const: "ExceptionIcon" },
342
341
  { "title": "Alarm Icon", "const": "AlarmIcon" },
343
342
  { "title": "Click Icon", "const": "ClickIcon" },
@@ -70,7 +70,7 @@ export function refreshPage(type: string, store: any) {
70
70
 
71
71
  const parentObj = _.get(currentConfig, parentPath)
72
72
 
73
- if(parentObj?.type === "Table"){
73
+ if(parentObj?.type === "Table" || parentObj?.type === "ColumnGroup"){
74
74
  UiSchema.elements[0].elements[0].elements[4] =
75
75
  {
76
76
  type: "Control",