impaktapps-ui-builder 0.0.101-alpha.37 → 0.0.101-alpha.39
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.
|
@@ -8445,15 +8445,40 @@ function refreshPage(type, store2) {
|
|
|
8445
8445
|
}
|
|
8446
8446
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8447
8447
|
const pathArrayAll = path.split(".");
|
|
8448
|
-
const parentObj = pathArrayAll.reduce((currObj, path2) => {
|
|
8448
|
+
const parentObj = pathArrayAll.reduce((currObj, path2, index) => {
|
|
8449
8449
|
var _a2;
|
|
8450
|
+
if (index === pathArrayAll.length - 1) {
|
|
8451
|
+
return currObj;
|
|
8452
|
+
}
|
|
8450
8453
|
const currElemIndexWithBracket = path2.split("[")[1];
|
|
8451
8454
|
const currElemIndex = parseInt(currElemIndexWithBracket.slice(0, -1));
|
|
8452
|
-
console.log(currObj);
|
|
8453
8455
|
return (_a2 = currObj == null ? void 0 : currObj["elements"]) == null ? void 0 : _a2[currElemIndex];
|
|
8454
8456
|
}, currentConfig);
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8458
|
+
UiSchema.elements[0].elements[0].elements[3] = {
|
|
8459
|
+
type: "Control",
|
|
8460
|
+
scope: "#/properties/columnFormat",
|
|
8461
|
+
options: {
|
|
8462
|
+
widget: "SelectInputField"
|
|
8463
|
+
},
|
|
8464
|
+
config: {
|
|
8465
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8466
|
+
main: {
|
|
8467
|
+
label: "Column Format"
|
|
8468
|
+
}
|
|
8469
|
+
}
|
|
8470
|
+
};
|
|
8471
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8472
|
+
type: "Control",
|
|
8473
|
+
scope: "#/properties/proc",
|
|
8474
|
+
config: {
|
|
8475
|
+
layout: { xs: 0, sm: 0, md: 8, lg: 0 }
|
|
8476
|
+
},
|
|
8477
|
+
options: {
|
|
8478
|
+
widget: "EmptyBox"
|
|
8479
|
+
}
|
|
8480
|
+
};
|
|
8481
|
+
}
|
|
8457
8482
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8458
8483
|
this.ElementPathSetter(UiSchema);
|
|
8459
8484
|
}
|