impaktapps-ui-builder 0.0.101-alpha.45 → 0.0.101-alpha.46

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.101-alpha.45",
3
+ "version": "0.0.101-alpha.46",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -67,18 +67,6 @@ export function refreshPage (type: string, store: any) {
67
67
 
68
68
  const parentObj = _.get(currentConfig, parentPath)
69
69
 
70
- console.log("currentConfig", currentConfig);
71
- console.log("path", path);
72
- console.log("parentObj", parentObj)
73
-
74
- // const parentObj = pathArrayAll.reduce((currObj, path, index)=>{
75
- // if(index === pathArrayAll.length - 1){
76
- // return currObj
77
- // }
78
- // const currElemIndexWithBracket = path.split('[')[1];
79
- // const currElemIndex = parseInt(currElemIndexWithBracket.slice(0,-1));
80
- // return currObj?.["elements"]?.[currElemIndex]
81
- // }, currentConfig)
82
70
  if(parentObj?.type === "Table"){
83
71
  UiSchema.elements[0].elements[0].elements[4] =
84
72
  {
@@ -111,11 +99,27 @@ export function refreshPage (type: string, store: any) {
111
99
  },
112
100
  };
113
101
  UiSchema.elements[0].elements[0].elements[6] =
102
+ {
103
+ type: "Control",
104
+ scope: "#/properties/enableFilter",
105
+ options: {
106
+ widget: "RadioInputField",
107
+ },
108
+ config: {
109
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
110
+ main: {
111
+ label: "Enable Filter",
112
+ options: ["YES", "NO"],
113
+ errorMessage: "Active is not marked YES or NO",
114
+ },
115
+ },
116
+ },
117
+ UiSchema.elements[0].elements[0].elements[6] =
114
118
  {
115
119
  type: "Control",
116
120
  scope: "#/properties/proc",
117
121
  config: {
118
- layout: { xs: 6, sm: 6, md: 4, lg: 9 },
122
+ layout: { xs: 0, sm: 0, md: 0, lg: 6 },
119
123
  },
120
124
  options: {
121
125
  widget: "EmptyBox",