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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.101-alpha.54",
3
+ "version": "0.0.101-alpha.56",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -623,31 +623,31 @@ export const componentBasicUiSchema: any = (theme)=>{
623
623
  },
624
624
  ]
625
625
  },
626
- {
627
- type: "Control",
628
- scope: "#/properties/pageName",
626
+ // {
627
+ // type: "Control",
628
+ // scope: "#/properties/pageName",
629
629
 
630
- options: {
631
- widget: "Box",
632
- },
633
- config: {
634
- layout: 12,
635
- main: {
636
- heading: "",
637
- },
638
- style: {
639
- paddingLeft: theme.spacing(3),
640
- width:"100%",
641
- fontSize:"10px",
642
- color:theme.palette.grey[600],
643
- position: "fixed",
644
- bottom: "24px",
645
- backgroundColor: theme.palette.background.default,
646
- borderBottom: `1px solid ${theme.palette.common.black}29`,
647
- borderTop: `1px solid ${theme.palette.common.black}29`,
648
- },
649
- },
650
- },
630
+ // options: {
631
+ // widget: "Box",
632
+ // },
633
+ // config: {
634
+ // layout: 12,
635
+ // main: {
636
+ // heading: "",
637
+ // },
638
+ // style: {
639
+ // paddingLeft: theme.spacing(3),
640
+ // width:"100%",
641
+ // fontSize:"10px",
642
+ // color:theme.palette.grey[600],
643
+ // position: "fixed",
644
+ // bottom: "24px",
645
+ // backgroundColor: theme.palette.background.default,
646
+ // borderBottom: `1px solid ${theme.palette.common.black}29`,
647
+ // borderTop: `1px solid ${theme.palette.common.black}29`,
648
+ // },
649
+ // },
650
+ // },
651
651
  {
652
652
  type: "Control",
653
653
  scope: "#/properties/pageName",
@@ -156,12 +156,20 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
156
156
 
157
157
  const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
158
158
  const path = store.searchParams?.get("path");
159
+
160
+ const pathArrayAll = path.split(".");
161
+
162
+ const breadPathArray = pathArrayAll.reduce((elem, i)=>{
163
+ const currObj = _.get(currentConfig, elem)
164
+ console.log("currObj>>",currObj, "index>>", i)
165
+ },currentConfig)
159
166
 
160
- const lastDotIndex = path.lastIndexOf('.')
161
- const currPath = path.slice(lastDotIndex+1)
167
+ // const lastDotIndex = path.lastIndexOf('.')
168
+ // const currPath = path.slice(lastDotIndex+1)
169
+
170
+ // const currObj = _.get(currentConfig, currPath)
162
171
 
163
- const currObj = _.get(currentConfig, currPath)
164
- schema.properties.pageName.path.push({label: currObj?.config?.main?.label || "undefined", path: path})
172
+ // schema.properties.pageName.path.push({label: currObj?.config?.main?.label || "undefined", path: path})
165
173
  return schema;
166
174
  },
167
175
  okHandler: () => okHandler(store),