impaktapps-ui-builder 0.0.963-CopyComponent.12 → 0.0.963-CopyComponent.14

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,7 +16,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
16
16
  backHandler: () => void;
17
17
  deletePopUpComponent: () => void;
18
18
  deletePopUpEvent: () => void;
19
- CopyComponent: () => void;
19
+ CopyComponent: (ComponentUiSchema: any) => void;
20
20
  PasteComponent: () => void;
21
21
  CopyEvent: () => void;
22
22
  PasteEvent: () => void;
@@ -63,7 +63,7 @@ declare const _default: (funcParams: funcParamsProps) => {
63
63
  deleteEvent: () => void;
64
64
  deletePopUpComponent: () => void;
65
65
  deletePopUpEvent: () => void;
66
- CopyComponent: () => void;
66
+ CopyComponent: (ComponentUiSchema: any) => void;
67
67
  PasteComponent: () => void;
68
68
  CopyEvent: () => void;
69
69
  PasteEvent: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.963-CopyComponent.12",
3
+ "version": "0.0.963-CopyComponent.14",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -174,10 +174,11 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
174
174
  },
175
175
 
176
176
 
177
- CopyComponent: function(){
178
- // const schema = cloneDeep(store.schema);
179
- const uiSchema = cloneDeep(store.uiSchema);
180
- // schema.properties.CopyComponent.disabled = true;
177
+ CopyComponent: function(ComponentUiSchema){
178
+ const schema = cloneDeep(ComponentSchema);
179
+ console.log("schema", schema);
180
+ const uiSchema = cloneDeep(ComponentUiSchema || store.uiSchema);
181
+ schema.properties.CopyComponent.disabled = true;
181
182
 
182
183
 
183
184
 
@@ -195,7 +196,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
195
196
 
196
197
  sessionStorage.setItem('copiedConfig',JSON.stringify(formData));
197
198
 
198
- // store.setSchema(schema);
199
+ store.setSchema(schema);
199
200
  store.setUiSchema(uiSchema);
200
201
  },
201
202