impaktapps-ui-builder 0.0.101-alpha.54 → 0.0.101-alpha.56

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.
@@ -7040,30 +7040,6 @@ const componentBasicUiSchema = (theme) => {
7040
7040
  }
7041
7041
  ]
7042
7042
  },
7043
- {
7044
- type: "Control",
7045
- scope: "#/properties/pageName",
7046
- options: {
7047
- widget: "Box"
7048
- },
7049
- config: {
7050
- layout: 12,
7051
- main: {
7052
- heading: ""
7053
- },
7054
- style: {
7055
- paddingLeft: theme.spacing(3),
7056
- width: "100%",
7057
- fontSize: "10px",
7058
- color: theme.palette.grey[600],
7059
- position: "fixed",
7060
- bottom: "24px",
7061
- backgroundColor: theme.palette.background.default,
7062
- borderBottom: `1px solid ${theme.palette.common.black}29`,
7063
- borderTop: `1px solid ${theme.palette.common.black}29`
7064
- }
7065
- }
7066
- },
7067
7043
  {
7068
7044
  type: "Control",
7069
7045
  scope: "#/properties/pageName",
@@ -8540,17 +8516,18 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8540
8516
  return getFormdataFromSessionStorage(path);
8541
8517
  },
8542
8518
  getSchema: function() {
8543
- var _a, _b, _c;
8519
+ var _a;
8544
8520
  const schema2 = _.cloneDeep(ComponentSchema);
8545
8521
  if (sessionStorage.getItem("copiedConfig")) {
8546
8522
  schema2.properties.RemoveItemButton.disabled = false;
8547
8523
  }
8548
8524
  const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8549
8525
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8550
- const lastDotIndex = path.lastIndexOf(".");
8551
- const currPath = path.slice(lastDotIndex + 1);
8552
- const currObj = _.get(currentConfig, currPath);
8553
- schema2.properties.pageName.path.push({ label: ((_c = (_b = currObj == null ? void 0 : currObj.config) == null ? void 0 : _b.main) == null ? void 0 : _c.label) || "undefined", path });
8526
+ const pathArrayAll = path.split(".");
8527
+ pathArrayAll.reduce((elem, i) => {
8528
+ const currObj = _.get(currentConfig, elem);
8529
+ console.log("currObj>>", currObj, "index>>", i);
8530
+ }, currentConfig);
8554
8531
  return schema2;
8555
8532
  },
8556
8533
  okHandler: () => okHandler(store2),