impaktapps-ui-builder 0.0.963-copyElement.1003 → 0.0.963-copyElement.1004
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 +2 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -2
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -2
|
@@ -16,8 +16,8 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
16
16
|
backHandler: () => void;
|
|
17
17
|
deletePopUpComponent: () => void;
|
|
18
18
|
deletePopUpEvent: () => void;
|
|
19
|
-
CopyComponent: (paramStore
|
|
20
|
-
PasteComponent: (paramStore
|
|
19
|
+
CopyComponent: (paramStore?: any) => void;
|
|
20
|
+
PasteComponent: (paramStore?: any) => void;
|
|
21
21
|
RemoveItemButton: (paramStore: any) => void;
|
|
22
22
|
CopyEvent: (store: any) => void;
|
|
23
23
|
PasteEvent: (store: any) => void;
|
package/package.json
CHANGED
|
@@ -180,7 +180,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
180
180
|
|
|
181
181
|
|
|
182
182
|
|
|
183
|
-
CopyComponent: function(paramStore){
|
|
183
|
+
CopyComponent: function(paramStore = store){
|
|
184
184
|
if (sessionStorage.getItem("copiedConfig") ) {
|
|
185
185
|
store.setNotify({
|
|
186
186
|
FailMessage: "Element already copied. Cancel to copy again.",
|
|
@@ -208,7 +208,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
210
|
|
|
211
|
-
PasteComponent: function(paramStore){
|
|
211
|
+
PasteComponent: function(paramStore = store){
|
|
212
212
|
// const schema = cloneDeep(store.schema);
|
|
213
213
|
|
|
214
214
|
const path = store.searchParams?.get("path");
|