impaktapps-ui-builder 0.0.101-alpha.44 → 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
|
@@ -62,21 +62,11 @@ export function refreshPage (type: string, store: any) {
|
|
|
62
62
|
|
|
63
63
|
// Get Widget Type of parent
|
|
64
64
|
const path = store.searchParams?.get("path");
|
|
65
|
+
const lastDotIndex = path.lastIndexOf('.')
|
|
66
|
+
const parentPath = path.slice(0,lastDotIndex)
|
|
65
67
|
|
|
66
|
-
const parentObj = _.get(currentConfig,
|
|
68
|
+
const parentObj = _.get(currentConfig, parentPath)
|
|
67
69
|
|
|
68
|
-
console.log("currentConfig", currentConfig);
|
|
69
|
-
console.log("path", path);
|
|
70
|
-
console.log("parentObj", parentObj)
|
|
71
|
-
|
|
72
|
-
// const parentObj = pathArrayAll.reduce((currObj, path, index)=>{
|
|
73
|
-
// if(index === pathArrayAll.length - 1){
|
|
74
|
-
// return currObj
|
|
75
|
-
// }
|
|
76
|
-
// const currElemIndexWithBracket = path.split('[')[1];
|
|
77
|
-
// const currElemIndex = parseInt(currElemIndexWithBracket.slice(0,-1));
|
|
78
|
-
// return currObj?.["elements"]?.[currElemIndex]
|
|
79
|
-
// }, currentConfig)
|
|
80
70
|
if(parentObj?.type === "Table"){
|
|
81
71
|
UiSchema.elements[0].elements[0].elements[4] =
|
|
82
72
|
{
|
|
@@ -109,11 +99,27 @@ export function refreshPage (type: string, store: any) {
|
|
|
109
99
|
},
|
|
110
100
|
};
|
|
111
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] =
|
|
112
118
|
{
|
|
113
119
|
type: "Control",
|
|
114
120
|
scope: "#/properties/proc",
|
|
115
121
|
config: {
|
|
116
|
-
layout: { xs:
|
|
122
|
+
layout: { xs: 0, sm: 0, md: 0, lg: 6 },
|
|
117
123
|
},
|
|
118
124
|
options: {
|
|
119
125
|
widget: "EmptyBox",
|