impaktapps-ui-builder 0.0.339 → 0.0.341
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 +15 -15
- 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 +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +7 -7
- package/src/impaktapps-ui-builder/builder/services/event.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -4
package/package.json
CHANGED
|
@@ -81,7 +81,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
81
81
|
const path = store.searchParams?.get("path");
|
|
82
82
|
console.log(store.ctx.core.errors)
|
|
83
83
|
if (_.isEmpty(store.ctx.core.errors)) {
|
|
84
|
-
saveFormdataInLocalStorage(store.
|
|
84
|
+
saveFormdataInLocalStorage(store.ctx.core.data,path)
|
|
85
85
|
store.navigate(-1)
|
|
86
86
|
store.setNotify({
|
|
87
87
|
SuccessMessage: "Save Successfully",
|
|
@@ -126,7 +126,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
126
126
|
const rowId = dynamicData.path.split(".")[1];
|
|
127
127
|
const path = store.searchParams?.get("path");
|
|
128
128
|
const id = store.searchParams?.get("id");
|
|
129
|
-
saveFormdataInLocalStorage(store.
|
|
129
|
+
saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
130
130
|
if (path) {
|
|
131
131
|
const path = store.searchParams?.get("path");
|
|
132
132
|
const finalPath = `${path}.elements[${rowId}]`
|
|
@@ -141,7 +141,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
141
141
|
const path = store.searchParams?.get("path");
|
|
142
142
|
const rowId = dynamicData.path.split(".")[1];
|
|
143
143
|
store.formData.elements.splice(rowId, 1);
|
|
144
|
-
const response = saveFormdataInLocalStorage(store.
|
|
144
|
+
const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
145
145
|
const data = path ? _.get(response, path) : response;
|
|
146
146
|
store.setFormdata(data);
|
|
147
147
|
},
|
|
@@ -149,7 +149,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
149
149
|
const path = store.searchParams?.get("path");
|
|
150
150
|
const rowId = dynamicData.path.split(".")[1];
|
|
151
151
|
store.formData.events.splice(rowId, 1);
|
|
152
|
-
const response = saveFormdataInLocalStorage(store.
|
|
152
|
+
const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
153
153
|
store.setFormdata(_.get(response, path));
|
|
154
154
|
},
|
|
155
155
|
widgetAddClickHandler: async function () {
|
|
@@ -157,7 +157,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
157
157
|
store.formData.elements = []
|
|
158
158
|
}
|
|
159
159
|
const path = store.searchParams?.get("path");
|
|
160
|
-
saveFormdataInLocalStorage(store.
|
|
160
|
+
saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
161
161
|
const finalPath = `${path}.elements[${store.formData.elements.length}]`
|
|
162
162
|
store.searchParams.set("path", finalPath)
|
|
163
163
|
store.setSearchParams(store.searchParams)
|
|
@@ -168,7 +168,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
168
168
|
const rowId = dynamicData.path.split(".")[1];
|
|
169
169
|
const path = store.searchParams?.get("path");
|
|
170
170
|
const id = store.searchParams?.get("id");
|
|
171
|
-
saveFormdataInLocalStorage(store.
|
|
171
|
+
saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
172
172
|
const finalPath = `${path}.events[${rowId}]`
|
|
173
173
|
store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
|
|
174
174
|
},
|
|
@@ -178,7 +178,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
178
178
|
if (!Array.isArray(store.formData.events)) {
|
|
179
179
|
store.formData.events = []
|
|
180
180
|
}
|
|
181
|
-
saveFormdataInLocalStorage(store.
|
|
181
|
+
saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
182
182
|
const finalPath = `${path}.events[${store.formData.events.length}]`
|
|
183
183
|
store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
|
|
184
184
|
},
|
|
@@ -92,7 +92,7 @@ export default (
|
|
|
92
92
|
if (!Array.isArray(store.formData.events)) {
|
|
93
93
|
store.formData.events = []
|
|
94
94
|
}
|
|
95
|
-
saveFormdataInLocalStorage(store.
|
|
95
|
+
saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
96
96
|
const finalPath = `${path}.events[${store.formData?.events?.length}]`
|
|
97
97
|
store.searchParams.set("path", finalPath)
|
|
98
98
|
store.setSearchParams(store.searchParams)
|
|
@@ -101,7 +101,7 @@ export default (
|
|
|
101
101
|
editEvent: async function () {
|
|
102
102
|
const rowId = dynamicData.path.split(".")[1];
|
|
103
103
|
const path = store.searchParams?.get("path");
|
|
104
|
-
saveFormdataInLocalStorage(store.
|
|
104
|
+
saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
105
105
|
const finalPath = `${path}.events[${rowId}]`
|
|
106
106
|
store.searchParams.set("path", finalPath)
|
|
107
107
|
store.setSearchParams(store.searchParams)
|
|
@@ -60,7 +60,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
60
60
|
if (!Array.isArray(store.formData.elements)) {
|
|
61
61
|
store.formData.elements = []
|
|
62
62
|
}
|
|
63
|
-
const response = saveFormdataInLocalStorage(store.
|
|
63
|
+
const response = saveFormdataInLocalStorage(store.ctx.core.data)
|
|
64
64
|
store.navigate(
|
|
65
65
|
`/Component?path=${`elements[${response?.elements.length}]`}&id=${id}`
|
|
66
66
|
);
|
|
@@ -89,21 +89,21 @@ export default (funcParams: funcParamsProps) => {
|
|
|
89
89
|
if (!Array.isArray(store.formData.events)) {
|
|
90
90
|
store.formData.events = []
|
|
91
91
|
}
|
|
92
|
-
saveFormdataInLocalStorage(store.
|
|
92
|
+
saveFormdataInLocalStorage(store.ctx.core.data)
|
|
93
93
|
const finalPath = `events[${store.formData.events.length}]`
|
|
94
94
|
store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
|
|
95
95
|
},
|
|
96
96
|
editEvent: async function () {
|
|
97
97
|
const rowId = dynamicData.path.split(".")[1];
|
|
98
98
|
const id = store.searchParams?.get("id");
|
|
99
|
-
saveFormdataInLocalStorage(store.
|
|
99
|
+
saveFormdataInLocalStorage(store.ctx.core.data)
|
|
100
100
|
const finalPath = `events[${rowId}]`
|
|
101
101
|
store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
|
|
102
102
|
},
|
|
103
103
|
deleteEvent: async function () {
|
|
104
104
|
const rowId = dynamicData.path.split(".")[1];
|
|
105
105
|
store.formData.events.splice(rowId, 1);
|
|
106
|
-
const response = saveFormdataInLocalStorage(store.
|
|
106
|
+
const response = saveFormdataInLocalStorage(store.ctx.core.data)
|
|
107
107
|
store.setFormdata(response);
|
|
108
108
|
},
|
|
109
109
|
}
|