impaktapps-ui-builder 0.0.963-copyElement.1007 → 0.0.963-copyElement.1008

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.
@@ -17,8 +17,8 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
17
17
  deletePopUpComponent: () => void;
18
18
  deletePopUpEvent: () => void;
19
19
  CopyComponent: (paramStore?: any) => void;
20
- PasteComponent: (paramStore?: any) => void;
21
- RemoveItemButton: (paramStore: any) => void;
20
+ PasteComponent: (paramStore?: any, setPage?: 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.1007",
3
+ "version": "0.0.963-copyElement.1008",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -382,7 +382,7 @@ export const componentBasicUiSchema: any = (theme)=>{
382
382
  config: {
383
383
  layout: { xs: 1, sm: 1 },
384
384
  main: {
385
- onClick: "RemoveCopiedConfig",
385
+ onClick: "RemoveItemButton",
386
386
  size: "large",
387
387
  icon: "RejectIcon",
388
388
  styleDefault: true,
@@ -386,7 +386,7 @@ export const PageMasterUiSchema: any = (theme) => {
386
386
  {
387
387
  type: "HorizontalLayout",
388
388
  config: {
389
- layout:{xs:12,sm: 6}
389
+ layout:{xs:12,sm: 9}
390
390
  },
391
391
  elements: [
392
392
  {
@@ -398,13 +398,13 @@ export const PageMasterUiSchema: any = (theme) => {
398
398
  config: {
399
399
  layout: { xs: 1, sm: 1 },
400
400
  main: {
401
- onClick: "RemoveCopiedConfig",
401
+ onClick: "RemoveItemButton",
402
402
  size: "large",
403
403
  icon: "RejectIcon",
404
404
  styleDefault: true,
405
405
  },
406
406
  style:{
407
- marginLeft: "-10px"
407
+ marginLeft: "-5px"
408
408
  }
409
409
  },
410
410
  },
@@ -422,8 +422,8 @@ export const PageMasterUiSchema: any = (theme) => {
422
422
  heading: "No element copied",
423
423
  },
424
424
  style: {
425
- color: "#a1a09d",
426
- marginLeft: "-10px"
425
+ color: "#535557",
426
+ marginLeft: "-30px"
427
427
  },
428
428
  },
429
429
  },
@@ -439,13 +439,14 @@ export const PageMasterUiSchema: any = (theme) => {
439
439
  },
440
440
  ]
441
441
  },
442
+
442
443
  {
443
444
  type: "Control",
444
445
  scope: "#/properties/btn",
445
446
  options: {
446
447
  widget: "Button",
447
448
  },
448
-
449
+
449
450
  config: {
450
451
  layout: { xs: 4, sm: 2 },
451
452
  main: {
@@ -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(paramStore.schema || store.schema);
192
- const uiSchema = cloneDeep(paramStore.uiSchema || store.uiSchema);
191
+ const schema = cloneDeep(paramStore.schema );
192
+ const uiSchema = cloneDeep(paramStore.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(paramStore = store){
211
+ PasteComponent: function(paramStore = store, setPage = this.setPage){
212
212
  // const schema = cloneDeep(store.schema);
213
213
 
214
214
  const path = store.searchParams?.get("path");
@@ -226,13 +226,13 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
226
226
  saveFormdataInSessionStorage(copiedData, finalPath);
227
227
  sessionStorage.removeItem('copiedConfig');
228
228
 
229
- this.setPage();
229
+ setPage();
230
230
  // }
231
231
  },
232
232
 
233
- RemoveItemButton: function(paramStore){
234
- const schema = cloneDeep(paramStore.schema || store.schema);
235
- const uiSchema = cloneDeep(paramStore.uiSchema || store.uiSchema);
233
+ RemoveItemButton: function(paramStore = store){
234
+ const schema = cloneDeep(paramStore.schema );
235
+ const uiSchema = cloneDeep(paramStore.uiSchema);
236
236
  schema.properties.RemoveItemButton.disabled = true;
237
237
  // schema.properties.Paste_Icon.disabled = true;
238
238