impaktapps-ui-builder 0.0.101-alpha.67 → 0.0.101-alpha.69

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.
@@ -9636,6 +9636,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9636
9636
  this.refreshPage(formdata.Handler, store2);
9637
9637
  },
9638
9638
  refreshPage: (handlerType, store22) => {
9639
+ var _a, _b;
9639
9640
  const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
9640
9641
  const schema2 = _.cloneDeep(EventSchema);
9641
9642
  if (handlerType) {
@@ -9720,6 +9721,30 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9720
9721
  );
9721
9722
  schema2.properties.RemoveItemButton.disabled = false;
9722
9723
  }
9724
+ const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
9725
+ const path = (_a = store22.searchParams) == null ? void 0 : _a.get("path");
9726
+ const id = (_b = store22.searchParams) == null ? void 0 : _b.get("id");
9727
+ let pathArray = [];
9728
+ if (path) {
9729
+ const pathArrayAll = path.split(".");
9730
+ const arr = [];
9731
+ pathArrayAll.map((e, i) => {
9732
+ if (i === 0) {
9733
+ arr.push(e);
9734
+ return;
9735
+ }
9736
+ arr.push(`${arr[i - 1]}.${e}`);
9737
+ });
9738
+ arr.map((e) => {
9739
+ const data = _.get(config2, e);
9740
+ pathArray.push({
9741
+ label: (data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType) || "NewComponent",
9742
+ path: (data == null ? void 0 : data.eventType) ? `/ComponentEvents?path=${e}&id=${id}` : `/Component?path=${e}&id=${id}`
9743
+ });
9744
+ });
9745
+ }
9746
+ console.log("pathArray>>", pathArray);
9747
+ schema2.properties.pageName.path = pathArray;
9723
9748
  store22.setSchema(schema2);
9724
9749
  store22.setUiSchema(uiSchema);
9725
9750
  },
@@ -9756,7 +9781,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9756
9781
  });
9757
9782
  }
9758
9783
  console.log("pathArray>>", pathArray);
9759
- schema2.properties.pageName.path = pathArray;
9784
+ schema2.properties.pageName.path = _.cloneDeep(pathArray);
9760
9785
  return schema2;
9761
9786
  },
9762
9787
  okHandler: () => okHandler(store2),