impaktapps-ui-builder 0.0.101-alpha.42 → 0.0.101-alpha.43
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
|
@@ -9,7 +9,6 @@ import { TableSection } from "../build/uischema/tableSection";
|
|
|
9
9
|
import { ValueTab } from "../build/uischema/valueTab";
|
|
10
10
|
import { ValidationSection } from "../build/uischema/validationSections";
|
|
11
11
|
import { getFormdataFromSessionStorage, okHandler, saveFormdataInSessionStorage, saveHandler } from "./utils";
|
|
12
|
-
import buildConfig from "../build/buildConfig";
|
|
13
12
|
const sectionLabels = {
|
|
14
13
|
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
15
14
|
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
@@ -65,14 +64,16 @@ export function refreshPage (type: string, store: any) {
|
|
|
65
64
|
const path = store.searchParams?.get("path");
|
|
66
65
|
const pathArrayAll = path.split(".");
|
|
67
66
|
|
|
68
|
-
const parentObj =
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
67
|
+
const parentObj = _.get(currentConfig, path)
|
|
68
|
+
|
|
69
|
+
// const parentObj = pathArrayAll.reduce((currObj, path, index)=>{
|
|
70
|
+
// if(index === pathArrayAll.length - 1){
|
|
71
|
+
// return currObj
|
|
72
|
+
// }
|
|
73
|
+
// const currElemIndexWithBracket = path.split('[')[1];
|
|
74
|
+
// const currElemIndex = parseInt(currElemIndexWithBracket.slice(0,-1));
|
|
75
|
+
// return currObj?.["elements"]?.[currElemIndex]
|
|
76
|
+
// }, currentConfig)
|
|
76
77
|
if(parentObj?.type === "Table"){
|
|
77
78
|
UiSchema.elements[0].elements[0].elements[4] =
|
|
78
79
|
{
|
|
@@ -88,7 +89,8 @@ export function refreshPage (type: string, store: any) {
|
|
|
88
89
|
|
|
89
90
|
},
|
|
90
91
|
},
|
|
91
|
-
};
|
|
92
|
+
};
|
|
93
|
+
UiSchema.elements[0].elements[0].elements[5] =
|
|
92
94
|
{
|
|
93
95
|
type: "Control",
|
|
94
96
|
scope: "#/properties/filteringOptions",
|