impaktapps-ui-builder 0.0.101-alpha.58 → 0.0.101-alpha.60
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/dist/impaktapps-ui-builder.es.js +24 -12
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +11 -11
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +26 -17
|
@@ -8516,23 +8516,35 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8516
8516
|
return getFormdataFromSessionStorage(path);
|
|
8517
8517
|
},
|
|
8518
8518
|
getSchema: function() {
|
|
8519
|
-
var _a;
|
|
8519
|
+
var _a, _b;
|
|
8520
8520
|
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8521
8521
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8522
8522
|
schema2.properties.RemoveItemButton.disabled = false;
|
|
8523
8523
|
}
|
|
8524
|
-
const
|
|
8524
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8525
8525
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8526
|
-
const
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8526
|
+
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8527
|
+
let pathArray = [];
|
|
8528
|
+
if (path) {
|
|
8529
|
+
const pathArrayAll = path.split(".");
|
|
8530
|
+
const arr = [];
|
|
8531
|
+
pathArrayAll.map((e, i) => {
|
|
8532
|
+
if (i === 0) {
|
|
8533
|
+
arr.push(e);
|
|
8534
|
+
return;
|
|
8535
|
+
}
|
|
8536
|
+
arr.push(`${arr[i - 1]}.${e}`);
|
|
8537
|
+
});
|
|
8538
|
+
arr.map((e) => {
|
|
8539
|
+
const data = _.get(config2, e);
|
|
8540
|
+
pathArray.push({
|
|
8541
|
+
label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
|
|
8542
|
+
path: `/Component?path=${e}&id=${id}`
|
|
8543
|
+
});
|
|
8544
|
+
});
|
|
8545
|
+
}
|
|
8546
|
+
console.log("pathArray>>", pathArray);
|
|
8547
|
+
schema2.properties.pageName.path = pathArray;
|
|
8536
8548
|
return schema2;
|
|
8537
8549
|
},
|
|
8538
8550
|
okHandler: () => okHandler(store2),
|