impaktapps-ui-builder 0.0.963-CopyComponent.2 → 0.0.963-CopyComponent.3
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 +4 -4
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- 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/pageMaster.ts +3 -2
package/package.json
CHANGED
|
@@ -182,7 +182,8 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
182
182
|
const updatedPath = path ? `${path}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
183
183
|
|
|
184
184
|
const formData = getFormdataFromSessionStorage(updatedPath);
|
|
185
|
-
sessionStorage.setItem('copiedComponent',formData);
|
|
185
|
+
// sessionStorage.setItem('copiedComponent',formData);
|
|
186
|
+
sessionStorage.setItem('copiedComponent',JSON.stringify(formData));
|
|
186
187
|
|
|
187
188
|
},
|
|
188
189
|
|
|
@@ -195,7 +196,8 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
195
196
|
|
|
196
197
|
const finalPath = `${updatedPath}.elements[${insertComponentPath}]`;
|
|
197
198
|
|
|
198
|
-
const copiedData = sessionStorage.getItem('copiedComponent');
|
|
199
|
+
// const copiedData = sessionStorage.getItem('copiedComponent');
|
|
200
|
+
const copiedData = JSON.parse(sessionStorage.getItem("copiedComponent"));
|
|
199
201
|
saveFormdataInSessionStorage(copiedData, finalPath);
|
|
200
202
|
sessionStorage.removeItem('copiedComponent')
|
|
201
203
|
|
|
@@ -109,7 +109,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
109
109
|
const updatedPath = path ? `${path}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
110
110
|
|
|
111
111
|
const formData = getFormdataFromSessionStorage(updatedPath);
|
|
112
|
-
sessionStorage.setItem('copiedComponent',formData);
|
|
112
|
+
sessionStorage.setItem('copiedComponent',JSON.stringify(formData));
|
|
113
113
|
|
|
114
114
|
},
|
|
115
115
|
|
|
@@ -122,7 +122,8 @@ export default (funcParams: funcParamsProps) => {
|
|
|
122
122
|
|
|
123
123
|
const finalPath = `${updatedPath}.elements[${insertComponentPath}]`;
|
|
124
124
|
|
|
125
|
-
const copiedData = sessionStorage.getItem('copiedComponent');
|
|
125
|
+
// const copiedData = sessionStorage.getItem('copiedComponent');
|
|
126
|
+
const copiedData = JSON.parse(sessionStorage.getItem("copiedComponent"));
|
|
126
127
|
saveFormdataInSessionStorage(copiedData, finalPath);
|
|
127
128
|
sessionStorage.removeItem('copiedComponent')
|
|
128
129
|
|