impaktapps-ui-builder 0.0.101-alpha.58 → 0.0.101-alpha.60
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 +24 -12
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +11 -11
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +26 -17
package/package.json
CHANGED
|
@@ -154,28 +154,37 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
154
154
|
schema.properties.RemoveItemButton.disabled = false;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
const
|
|
157
|
+
const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
158
158
|
const path = store.searchParams?.get("path");
|
|
159
|
+
const id = store.searchParams?.get("id")
|
|
159
160
|
|
|
160
|
-
|
|
161
|
+
let pathArray = [];
|
|
161
162
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
163
|
+
if (path) {
|
|
164
|
+
// let urlRoutes: string = config.name;
|
|
165
|
+
const pathArrayAll = path.split(".");
|
|
166
|
+
const arr: any = []
|
|
167
|
+
pathArrayAll.map((e: string, i: number) => {
|
|
168
|
+
if (i === 0) {
|
|
169
|
+
arr.push(e)
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
arr.push(`${arr[i - 1]}.${e}`)
|
|
173
|
+
})
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
arr.map((e) => {
|
|
177
|
+
const data = _.get(config, e)
|
|
178
|
+
pathArray.push({
|
|
179
|
+
label: data?.name || data?.eventType || "NewComponent",
|
|
180
|
+
path: `/Component?path=${e}&id=${id}`
|
|
181
|
+
});
|
|
182
|
+
})
|
|
183
|
+
}
|
|
175
184
|
|
|
176
|
-
|
|
185
|
+
console.log("pathArray>>",pathArray)
|
|
177
186
|
|
|
178
|
-
|
|
187
|
+
schema.properties.pageName.path = pathArray
|
|
179
188
|
return schema;
|
|
180
189
|
},
|
|
181
190
|
okHandler: () => okHandler(store),
|