impaktapps-ui-builder 0.0.101-alpha.49 → 0.0.101-alpha.50

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.49",
3
+ "version": "0.0.101-alpha.50",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -648,6 +648,29 @@ export const componentBasicUiSchema: any = (theme)=>{
648
648
  },
649
649
  },
650
650
  },
651
+ {
652
+ type: "Control",
653
+ scope: "#/properties/pageName",
654
+
655
+ options: {
656
+ widget: "Breadcrumb",
657
+ },
658
+ config: {
659
+ layout: 12,
660
+ main: {
661
+ },
662
+ style: {
663
+ // paddingLeft: theme.spacing(3),
664
+ // width:"100%",
665
+ color:theme.palette.grey[600],
666
+ fontSize:"10px",
667
+ position: "fixed",
668
+ bottom: "24px",
669
+ borderBottom: `1px solid ${theme.palette.common.black}29`,
670
+ borderTop: `1px solid ${theme.palette.common.black}29`,
671
+ },
672
+ },
673
+ },
651
674
  {
652
675
  type: "Control",
653
676
  scope: "#/properties/notify",
@@ -153,6 +153,15 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
153
153
  if (sessionStorage.getItem("copiedConfig") ) {
154
154
  schema.properties.RemoveItemButton.disabled = false;
155
155
  }
156
+
157
+ const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
158
+ const path = store.searchParams?.get("path");
159
+
160
+ const lastDotIndex = path.lastIndexOf('.')
161
+ const currPath = path.slice(lastDotIndex+1)
162
+
163
+ const currObj = _.get(currentConfig, currPath)
164
+ schema.properties.pageName.path.add({label: currObj.config.main.label || "undefined", path: path})
156
165
  return schema;
157
166
  },
158
167
  okHandler: () => okHandler(store),