impaktapps-ui-builder 0.0.963-CopyComponent.7 → 0.0.963-CopyComponent.8

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.
@@ -259,7 +259,8 @@ const PageMasterUiSchema = (theme) => {
259
259
  config: {
260
260
  main: {
261
261
  icon: "FileCopyIcon",
262
- onClick: "CopyComponent"
262
+ onClick: "CopyComponent",
263
+ styleDefault: true
263
264
  }
264
265
  }
265
266
  }
@@ -389,7 +390,8 @@ const PageMasterUiSchema = (theme) => {
389
390
  config: {
390
391
  main: {
391
392
  icon: "FileCopyIcon",
392
- onClick: "CopyEvent"
393
+ onClick: "CopyEvent",
394
+ styleDefault: true
393
395
  }
394
396
  }
395
397
  }
@@ -7271,26 +7273,8 @@ const EventSection = (theme) => {
7271
7273
  main: {
7272
7274
  icon: "FileCopyIcon",
7273
7275
  onClick: "CopyEvent",
7274
- tooltipMessage: "Reject This Record"
7275
- }
7276
- }
7277
- }
7278
- },
7279
- {
7280
- header: "paste",
7281
- field: "Paste_Event",
7282
- flex: 1,
7283
- widget: {
7284
- type: "Control",
7285
- scope: "#/properties/PasteEvent",
7286
- options: {
7287
- widget: "IconButton"
7288
- },
7289
- config: {
7290
- main: {
7291
- icon: "SendIcon",
7292
- onClick: "PasteEvent",
7293
- tooltipMessage: "Reject This Record"
7276
+ tooltipMessage: "Reject This Record",
7277
+ styleDefault: true
7294
7278
  }
7295
7279
  }
7296
7280
  }
@@ -7916,7 +7900,8 @@ const TableSection = (theme) => {
7916
7900
  config: {
7917
7901
  main: {
7918
7902
  icon: "FileCopyIcon",
7919
- onClick: "CopyComponent"
7903
+ onClick: "CopyComponent",
7904
+ styleDefault: true
7920
7905
  }
7921
7906
  }
7922
7907
  }
@@ -8362,10 +8347,11 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8362
8347
  FailMessage: "Pasting not Valid",
8363
8348
  Fail: true
8364
8349
  });
8350
+ } else {
8351
+ saveFormdataInSessionStorage(copiedData, finalPath);
8352
+ sessionStorage.removeItem("copiedConfig");
8353
+ this.setPage();
8365
8354
  }
8366
- saveFormdataInSessionStorage(copiedData, finalPath);
8367
- sessionStorage.removeItem("copiedConfig");
8368
- this.setPage();
8369
8355
  },
8370
8356
  CopyEvent: function() {
8371
8357
  var _a;
@@ -8387,10 +8373,11 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8387
8373
  FailMessage: "Pasting not Valid",
8388
8374
  Fail: true
8389
8375
  });
8376
+ } else {
8377
+ saveFormdataInSessionStorage(copiedData, finalPath);
8378
+ sessionStorage.removeItem("copiedConfig");
8379
+ this.setPage();
8390
8380
  }
8391
- saveFormdataInSessionStorage(copiedData, finalPath);
8392
- sessionStorage.removeItem("copiedConfig");
8393
- this.setPage();
8394
8381
  }
8395
8382
  };
8396
8383
  };
@@ -8485,31 +8472,10 @@ var pageMaster = (funcParams) => {
8485
8472
  sessionStorage.setItem("rowId", rowId);
8486
8473
  store2.updateDialog("popUpPageMasterEvent");
8487
8474
  },
8488
- CopyComponent: function() {
8489
- var _a;
8490
- const rowId = dynamicData2.path.split(".")[1];
8491
- const parentPathOfCopiedComponent = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8492
- const copiedComponentPath = parentPathOfCopiedComponent ? `${parentPathOfCopiedComponent}.elements[${rowId}]` : `elements[${rowId}]`;
8493
- const formData = getFormdataFromSessionStorage(copiedComponentPath);
8494
- sessionStorage.setItem("copiedConfig", JSON.stringify(formData));
8495
- },
8496
- PasteComponent: function() {
8497
- var _a;
8498
- const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8499
- const formData = getFormdataFromSessionStorage(path);
8500
- const insertComponentPath = formData.elements.length;
8501
- const finalPath = `${path}.elements[${insertComponentPath}]`;
8502
- const copiedData = JSON.parse(sessionStorage.getItem("copiedConfig"));
8503
- if (!copiedData.elements) {
8504
- store2.setNotify({
8505
- FailMessage: "Pasting not Valid",
8506
- Fail: true
8507
- });
8508
- }
8509
- saveFormdataInSessionStorage(copiedData, finalPath);
8510
- sessionStorage.removeItem("copiedConfig");
8511
- this.setPage();
8512
- }
8475
+ CopyComponent: Component(store2, dynamicData2, submitHandler, service2).CopyComponent,
8476
+ PasteComponent: Component(store2, dynamicData2, submitHandler, service2).PasteComponent,
8477
+ CopyEvent: Component(store2, dynamicData2, submitHandler, service2).CopyEvent,
8478
+ PasteEvent: Component(store2, dynamicData2, submitHandler, service2).PasteEvent
8513
8479
  };
8514
8480
  };
8515
8481
  const EventSchema = {
@@ -8789,7 +8755,8 @@ const EventUiSchema = (theme) => {
8789
8755
  config: {
8790
8756
  main: {
8791
8757
  icon: "FileCopyIcon",
8792
- onClick: "CopyEvent"
8758
+ onClick: "CopyEvent",
8759
+ styleDefault: true
8793
8760
  }
8794
8761
  }
8795
8762
  }
@@ -9392,25 +9359,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9392
9359
  sessionStorage.setItem("rowId", rowId);
9393
9360
  store2.updateDialog("popUpEvent");
9394
9361
  },
9395
- CopyEvent: function() {
9396
- var _a;
9397
- const rowId = dynamicData2.path.split(".")[1];
9398
- const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9399
- const updatedPath = path ? `${path}.events[${rowId}]` : `events[${rowId}]`;
9400
- const formData = getFormdataFromSessionStorage(updatedPath);
9401
- sessionStorage.setItem("copiedConfig", JSON.stringify(formData));
9402
- },
9403
- PasteEvent: function() {
9404
- var _a;
9405
- const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9406
- const formData = getFormdataFromSessionStorage(path);
9407
- const insertComponentPath = formData.events.length;
9408
- const finalPath = `${path}.events[${insertComponentPath}]`;
9409
- const copiedData = JSON.parse(sessionStorage.getItem("copiedConfig"));
9410
- saveFormdataInSessionStorage(copiedData, finalPath);
9411
- sessionStorage.removeItem("copiedConfig");
9412
- this.setPage();
9413
- }
9362
+ CopyEvent: Component(store2, dynamicData2, submitHandler, service2).CopyEvent,
9363
+ PasteEvent: Component(store2, dynamicData2, submitHandler, service2).PasteEvent
9414
9364
  };
9415
9365
  };
9416
9366
  const downloadFile$1 = (obj) => {