impaktapps-ui-builder 0.0.343 → 0.0.345
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 +12 -7
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +4 -2
- package/src/impaktapps-ui-builder/builder/services/event.ts +4 -2
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +2 -1
package/package.json
CHANGED
|
@@ -97,9 +97,11 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
97
97
|
},
|
|
98
98
|
savePageHandler: async () => {
|
|
99
99
|
const id = store.searchParams?.get("id");
|
|
100
|
-
|
|
100
|
+
const path = store.searchParams?.get("path");
|
|
101
|
+
saveFormdataInLocalStorage(store.ctx.core.data, path);
|
|
101
102
|
const config = localStorage.getItem("pageFormdata");
|
|
102
|
-
const
|
|
103
|
+
const actualConfig = JSON.parse(config);
|
|
104
|
+
const isSubmitted = await saveHandler(store, service, submitHandler,actualConfig);
|
|
103
105
|
if (isSubmitted) {
|
|
104
106
|
localStorage.removeItem("pageFormdata");
|
|
105
107
|
store.navigate(`/PageMaster?id=${id}`);
|
|
@@ -60,9 +60,11 @@ export default (
|
|
|
60
60
|
},
|
|
61
61
|
savePageHandler: async () => {
|
|
62
62
|
const id = store.searchParams?.get("id");
|
|
63
|
-
|
|
63
|
+
const path = store.searchParams?.get("path");
|
|
64
|
+
saveFormdataInLocalStorage(store.ctx.core.data,path);
|
|
64
65
|
const config = localStorage.getItem("pageFormdata");
|
|
65
|
-
const
|
|
66
|
+
const actualConfig = JSON.parse(config);
|
|
67
|
+
const isSubmitted = await saveHandler(store, service, submitHandler,actualConfig);
|
|
66
68
|
if (isSubmitted) {
|
|
67
69
|
localStorage.removeItem("pageFormdata");
|
|
68
70
|
store.navigate(`/PageMaster?id=${id}`);
|
|
@@ -68,7 +68,8 @@ export default (funcParams: funcParamsProps) => {
|
|
|
68
68
|
savePageHandler: async () => {
|
|
69
69
|
saveFormdataInLocalStorage(store.ctx.core.data);
|
|
70
70
|
const config = localStorage.getItem("pageFormdata");
|
|
71
|
-
const
|
|
71
|
+
const actualConfig = JSON.parse(config);
|
|
72
|
+
const isSubmitted = await saveHandler(store, service, submitHandler,actualConfig);
|
|
72
73
|
if (isSubmitted) {
|
|
73
74
|
localStorage.removeItem("pageFormdata");
|
|
74
75
|
store.navigate('/PageMasterRecords');
|