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/dist/impaktapps-ui-builder.es.js +6 -29
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +24 -24
- package/src/impaktapps-ui-builder/builder/services/component.ts +12 -4
package/package.json
CHANGED
|
@@ -623,31 +623,31 @@ export const componentBasicUiSchema: any = (theme)=>{
|
|
|
623
623
|
},
|
|
624
624
|
]
|
|
625
625
|
},
|
|
626
|
-
{
|
|
627
|
-
|
|
628
|
-
|
|
626
|
+
// {
|
|
627
|
+
// type: "Control",
|
|
628
|
+
// scope: "#/properties/pageName",
|
|
629
629
|
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
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
|
-
|
|
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),
|