impaktapps-ui-builder 0.0.101-alpha.31 → 0.0.101-alpha.33
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.
|
@@ -8426,7 +8426,7 @@ const sectionLabels = {
|
|
|
8426
8426
|
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8427
8427
|
};
|
|
8428
8428
|
function refreshPage(type, store2) {
|
|
8429
|
-
var _a;
|
|
8429
|
+
var _a, _b;
|
|
8430
8430
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8431
8431
|
if (type) {
|
|
8432
8432
|
const sectionUiSchema = {
|
|
@@ -8442,6 +8442,14 @@ function refreshPage(type, store2) {
|
|
|
8442
8442
|
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8443
8443
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8444
8444
|
}
|
|
8445
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8446
|
+
const pathArrayAll = path.split(".");
|
|
8447
|
+
const parentObj = pathArrayAll.reduce((currObj, path2) => {
|
|
8448
|
+
const currElemIndexWithBracket = path2.split("[")[1];
|
|
8449
|
+
const currElemIndex = parseInt(currElemIndexWithBracket.slice(0, -1));
|
|
8450
|
+
return currObj["elements"][currElemIndex];
|
|
8451
|
+
});
|
|
8452
|
+
console.log("parentObj", parentObj);
|
|
8445
8453
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8446
8454
|
this.ElementPathSetter(UiSchema);
|
|
8447
8455
|
}
|