impaktapps-ui-builder 0.0.963-copyElement.1002 → 0.0.963-copyElement.1003

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.
@@ -16,9 +16,9 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
16
16
  backHandler: () => void;
17
17
  deletePopUpComponent: () => void;
18
18
  deletePopUpEvent: () => void;
19
- CopyComponent: (store: any) => void;
20
- PasteComponent: (store: any) => void;
21
- RemoveItemButton: (store: any) => void;
19
+ CopyComponent: (paramStore: any) => void;
20
+ PasteComponent: (paramStore: any) => void;
21
+ RemoveItemButton: (paramStore: any) => void;
22
22
  CopyEvent: (store: any) => void;
23
23
  PasteEvent: (store: any) => void;
24
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.963-copyElement.1002",
3
+ "version": "0.0.963-copyElement.1003",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -180,7 +180,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
180
180
 
181
181
 
182
182
 
183
- CopyComponent: function(store){
183
+ CopyComponent: function(paramStore){
184
184
  if (sessionStorage.getItem("copiedConfig") ) {
185
185
  store.setNotify({
186
186
  FailMessage: "Element already copied. Cancel to copy again.",
@@ -188,8 +188,8 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
188
188
  });
189
189
  }
190
190
  else{
191
- const schema = cloneDeep(store.schema);
192
- const uiSchema = cloneDeep(store.uiSchema);
191
+ const schema = cloneDeep(paramStore.schema || store.schema);
192
+ const uiSchema = cloneDeep(paramStore.uiSchema || store.uiSchema);
193
193
  schema.properties.RemoveItemButton.disabled = false;
194
194
  // schema.properties.Paste_Icon.disabled = false;
195
195
 
@@ -208,7 +208,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
208
208
  }
209
209
  },
210
210
 
211
- PasteComponent: function(store){
211
+ PasteComponent: function(paramStore){
212
212
  // const schema = cloneDeep(store.schema);
213
213
 
214
214
  const path = store.searchParams?.get("path");
@@ -230,9 +230,9 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
230
230
  }
231
231
  },
232
232
 
233
- RemoveItemButton: function(store){
234
- const schema = cloneDeep(store.schema);
235
- const uiSchema = cloneDeep(store.uiSchema);
233
+ RemoveItemButton: function(paramStore){
234
+ const schema = cloneDeep(paramStore.schema || store.schema);
235
+ const uiSchema = cloneDeep(paramStore.uiSchema || store.uiSchema);
236
236
  schema.properties.RemoveItemButton.disabled = true;
237
237
  // schema.properties.Paste_Icon.disabled = true;
238
238