impaktapps-ui-builder 0.0.968 → 0.0.970-test.2

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.
Files changed (25) hide show
  1. package/dist/impaktapps-ui-builder.es.js +523 -75
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +0 -15
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +50 -2
  8. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +3 -0
  9. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
  10. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +8 -2
  11. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -0
  12. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +5 -0
  13. package/package.json +1 -1
  14. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +47 -0
  15. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +6 -7
  16. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +45 -1
  17. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +4 -1
  18. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +98 -50
  19. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
  20. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +149 -9
  21. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
  22. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +96 -6
  23. package/src/impaktapps-ui-builder/builder/services/component.ts +85 -6
  24. package/src/impaktapps-ui-builder/builder/services/event.ts +18 -3
  25. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +20 -2
@@ -39,6 +39,9 @@ const PageMasterSchema = {
39
39
  }
40
40
  }
41
41
  }
42
+ },
43
+ RemoveItemButton: {
44
+ disabled: true
42
45
  }
43
46
  },
44
47
  required: ["template", "name", "label"]
@@ -165,6 +168,27 @@ const PageMasterUiSchema = (theme) => {
165
168
  }
166
169
  }
167
170
  }
171
+ },
172
+ {
173
+ widget: {
174
+ type: "Control",
175
+ scope: "#/properties/Paste_Component",
176
+ options: {
177
+ widget: "IconButton"
178
+ },
179
+ config: {
180
+ main: {
181
+ onClick: "copyPasteElement",
182
+ size: "small",
183
+ icon: "PasteIcon",
184
+ iconLabel: "Paste",
185
+ styleDefault: true
186
+ },
187
+ style: {
188
+ mt: "6px"
189
+ }
190
+ }
191
+ }
168
192
  }
169
193
  ]
170
194
  },
@@ -224,6 +248,25 @@ const PageMasterUiSchema = (theme) => {
224
248
  }
225
249
  }
226
250
  }
251
+ },
252
+ {
253
+ header: "Copy",
254
+ field: "Copy_Component",
255
+ flex: 1,
256
+ widget: {
257
+ type: "Control",
258
+ scope: "#/properties/Copy_Component",
259
+ options: {
260
+ widget: "IconButton"
261
+ },
262
+ config: {
263
+ main: {
264
+ icon: "FileCopyIcon",
265
+ onClick: "copyPasteElement",
266
+ styleDefault: true
267
+ }
268
+ }
269
+ }
227
270
  }
228
271
  ]
229
272
  },
@@ -257,6 +300,27 @@ const PageMasterUiSchema = (theme) => {
257
300
  }
258
301
  }
259
302
  }
303
+ },
304
+ {
305
+ widget: {
306
+ type: "Control",
307
+ scope: "#/properties/Paste_Event",
308
+ options: {
309
+ widget: "IconButton"
310
+ },
311
+ config: {
312
+ main: {
313
+ onClick: "copyPasteElement",
314
+ size: "small",
315
+ icon: "PasteIcon",
316
+ iconLabel: "Paste",
317
+ styleDefault: true
318
+ },
319
+ style: {
320
+ mt: "6px"
321
+ }
322
+ }
323
+ }
260
324
  }
261
325
  ]
262
326
  },
@@ -315,20 +379,84 @@ const PageMasterUiSchema = (theme) => {
315
379
  }
316
380
  }
317
381
  }
382
+ },
383
+ {
384
+ header: "Copy",
385
+ field: "Copy_Event",
386
+ flex: 1,
387
+ widget: {
388
+ type: "Control",
389
+ scope: "#/properties/Copy_Event",
390
+ options: {
391
+ widget: "IconButton"
392
+ },
393
+ config: {
394
+ main: {
395
+ icon: "FileCopyIcon",
396
+ onClick: "copyPasteElement",
397
+ styleDefault: true
398
+ }
399
+ }
400
+ }
318
401
  }
319
402
  ]
320
403
  }
321
404
  ]
322
405
  },
323
406
  {
324
- type: "Control",
325
- scope: "#/properties/btn",
326
- options: {
327
- widget: "EmptyBox"
328
- },
407
+ type: "HorizontalLayout",
329
408
  config: {
330
- layout: { xs: 8, sm: 10 }
331
- }
409
+ layout: { xs: 12, sm: 9 }
410
+ },
411
+ elements: [
412
+ {
413
+ type: "Control",
414
+ scope: "#/properties/RemoveItemButton",
415
+ options: {
416
+ widget: "IconButton"
417
+ },
418
+ config: {
419
+ layout: { xs: 1, sm: 1 },
420
+ main: {
421
+ onClick: "RemoveItemButton",
422
+ size: "large",
423
+ icon: "RejectIcon",
424
+ styleDefault: true
425
+ },
426
+ style: {
427
+ marginLeft: "-5px"
428
+ }
429
+ }
430
+ },
431
+ {
432
+ type: "Control",
433
+ scope: "#/properties/copiedElementDetails",
434
+ options: {
435
+ widget: "Box"
436
+ },
437
+ config: {
438
+ layout: { xs: 6, sm: 6 },
439
+ main: {
440
+ heading: "No element copied"
441
+ },
442
+ style: {
443
+ color: "#535557",
444
+ marginLeft: "-30px",
445
+ fontSize: "12px"
446
+ }
447
+ }
448
+ },
449
+ {
450
+ type: "Control",
451
+ scope: "#/properties/EmptyBox",
452
+ options: {
453
+ widget: "EmptyBox"
454
+ },
455
+ config: {
456
+ layout: { xs: 1, sm: 5 }
457
+ }
458
+ }
459
+ ]
332
460
  },
333
461
  {
334
462
  type: "Control",
@@ -6415,7 +6543,10 @@ const ComponentSchema = {
6415
6543
  name: {
6416
6544
  type: "string"
6417
6545
  },
6418
- label: { type: "string" }
6546
+ label: { type: "string" },
6547
+ RemoveItemButton: {
6548
+ disabled: true
6549
+ }
6419
6550
  },
6420
6551
  required: ["name"]
6421
6552
  };
@@ -6590,6 +6721,96 @@ const componentBasicUiSchema = (theme) => {
6590
6721
  }
6591
6722
  ]
6592
6723
  },
6724
+ {
6725
+ type: "HorizontalLayout",
6726
+ config: {
6727
+ layout: { xs: 12, sm: 6 }
6728
+ },
6729
+ elements: [
6730
+ {
6731
+ type: "Control",
6732
+ scope: "#/properties/RemoveItemButton",
6733
+ options: {
6734
+ widget: "IconButton"
6735
+ },
6736
+ config: {
6737
+ layout: { xs: 1, sm: 1 },
6738
+ main: {
6739
+ onClick: "RemoveItemButton",
6740
+ size: "large",
6741
+ icon: "RejectIcon",
6742
+ styleDefault: true
6743
+ },
6744
+ style: {
6745
+ marginLeft: "-10px"
6746
+ }
6747
+ }
6748
+ },
6749
+ {
6750
+ type: "Control",
6751
+ scope: "#/properties/copiedElementDetails",
6752
+ options: {
6753
+ widget: "Box"
6754
+ },
6755
+ config: {
6756
+ layout: { xs: 6, sm: 6 },
6757
+ main: {
6758
+ heading: "No element copied"
6759
+ },
6760
+ style: {
6761
+ color: "#535557",
6762
+ marginLeft: "-10px"
6763
+ }
6764
+ }
6765
+ },
6766
+ {
6767
+ type: "Control",
6768
+ scope: "#/properties/EmptyBox",
6769
+ options: {
6770
+ widget: "EmptyBox"
6771
+ },
6772
+ config: {
6773
+ layout: { xs: 1, sm: 5 }
6774
+ }
6775
+ }
6776
+ ]
6777
+ },
6778
+ {
6779
+ type: "Control",
6780
+ scope: "#/properties/btn",
6781
+ options: {
6782
+ widget: "Button"
6783
+ },
6784
+ config: {
6785
+ layout: { xs: 4, sm: 2 },
6786
+ main: {
6787
+ name: "Ok",
6788
+ startIcon: "ApproveIcon",
6789
+ variant: "contained",
6790
+ type: "text",
6791
+ onClick: "okHandler",
6792
+ size: "medium"
6793
+ }
6794
+ }
6795
+ },
6796
+ {
6797
+ type: "Control",
6798
+ scope: "#/properties/btnSubmit",
6799
+ options: {
6800
+ widget: "Button"
6801
+ },
6802
+ config: {
6803
+ layout: { xs: 4, sm: 2 },
6804
+ main: {
6805
+ name: "Save & Exit",
6806
+ startIcon: "ApproveIcon",
6807
+ variant: "contained",
6808
+ type: "text",
6809
+ onClick: "saveHandler",
6810
+ size: "medium"
6811
+ }
6812
+ }
6813
+ },
6593
6814
  {
6594
6815
  type: "Control",
6595
6816
  scope: "#/properties/popUpComponentSection",
@@ -6772,52 +6993,6 @@ const componentBasicUiSchema = (theme) => {
6772
6993
  }
6773
6994
  ]
6774
6995
  },
6775
- {
6776
- type: "Control",
6777
- scope: "#/properties/EmptyBox",
6778
- options: {
6779
- widget: "EmptyBox"
6780
- },
6781
- config: {
6782
- layout: { xs: 4, sm: 8 }
6783
- }
6784
- },
6785
- {
6786
- type: "Control",
6787
- scope: "#/properties/btn",
6788
- options: {
6789
- widget: "Button"
6790
- },
6791
- config: {
6792
- layout: { xs: 4, sm: 2 },
6793
- main: {
6794
- name: "Ok",
6795
- startIcon: "ApproveIcon",
6796
- variant: "contained",
6797
- type: "text",
6798
- onClick: "okHandler",
6799
- size: "medium"
6800
- }
6801
- }
6802
- },
6803
- {
6804
- type: "Control",
6805
- scope: "#/properties/btnSubmit",
6806
- options: {
6807
- widget: "Button"
6808
- },
6809
- config: {
6810
- layout: { xs: 4, sm: 2 },
6811
- main: {
6812
- name: "Save & Exit",
6813
- startIcon: "ApproveIcon",
6814
- variant: "contained",
6815
- type: "text",
6816
- onClick: "saveHandler",
6817
- size: "medium"
6818
- }
6819
- }
6820
- },
6821
6996
  {
6822
6997
  type: "Control",
6823
6998
  scope: "#/properties/notify",
@@ -7098,6 +7273,27 @@ const EventSection = (theme) => {
7098
7273
  }
7099
7274
  }
7100
7275
  }
7276
+ },
7277
+ {
7278
+ widget: {
7279
+ type: "Control",
7280
+ scope: "#/properties/Paste_Event",
7281
+ options: {
7282
+ widget: "IconButton"
7283
+ },
7284
+ config: {
7285
+ main: {
7286
+ onClick: "copyPasteElement",
7287
+ size: "small",
7288
+ icon: "PasteIcon",
7289
+ iconLabel: "Paste",
7290
+ styleDefault: true
7291
+ },
7292
+ style: {
7293
+ mt: "6px"
7294
+ }
7295
+ }
7296
+ }
7101
7297
  }
7102
7298
  ]
7103
7299
  },
@@ -7157,6 +7353,26 @@ const EventSection = (theme) => {
7157
7353
  }
7158
7354
  }
7159
7355
  }
7356
+ },
7357
+ {
7358
+ header: "Copy",
7359
+ field: "Copy_Event",
7360
+ flex: 1,
7361
+ widget: {
7362
+ type: "Control",
7363
+ scope: "#/properties/Copy_Event",
7364
+ options: {
7365
+ widget: "IconButton"
7366
+ },
7367
+ config: {
7368
+ main: {
7369
+ icon: "FileCopyIcon",
7370
+ onClick: "copyPasteElement",
7371
+ tooltipMessage: "Reject This Record",
7372
+ styleDefault: true
7373
+ }
7374
+ }
7375
+ }
7160
7376
  }
7161
7377
  ]
7162
7378
  }
@@ -7685,6 +7901,27 @@ const TableSection = (theme) => {
7685
7901
  }
7686
7902
  }
7687
7903
  }
7904
+ },
7905
+ {
7906
+ widget: {
7907
+ type: "Control",
7908
+ scope: "#/properties/Paste_Component",
7909
+ options: {
7910
+ widget: "IconButton"
7911
+ },
7912
+ config: {
7913
+ main: {
7914
+ onClick: "copyPasteElement",
7915
+ size: "small",
7916
+ icon: "PasteIcon",
7917
+ iconLabel: "Paste",
7918
+ styleDefault: true
7919
+ },
7920
+ style: {
7921
+ mt: "6px"
7922
+ }
7923
+ }
7924
+ }
7688
7925
  }
7689
7926
  ]
7690
7927
  },
@@ -7744,6 +7981,26 @@ const TableSection = (theme) => {
7744
7981
  }
7745
7982
  }
7746
7983
  }
7984
+ },
7985
+ {
7986
+ header: "Copy",
7987
+ field: "Copy_Component",
7988
+ flex: 1,
7989
+ widget: {
7990
+ type: "Control",
7991
+ scope: "#/properties/Copy_Component",
7992
+ options: {
7993
+ widget: "IconButton"
7994
+ },
7995
+ config: {
7996
+ main: {
7997
+ icon: "FileCopyIcon",
7998
+ onClick: "copyPasteElement",
7999
+ styleDefault: true,
8000
+ disabled: false
8001
+ }
8002
+ }
8003
+ }
7747
8004
  }
7748
8005
  ]
7749
8006
  }
@@ -8035,7 +8292,7 @@ const sectionLabels = {
8035
8292
  TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
8036
8293
  ColumnGroup: ["Core", "Components"]
8037
8294
  };
8038
- const refreshPage = (type, store2) => {
8295
+ function refreshPage(type, store2) {
8039
8296
  var _a;
8040
8297
  const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
8041
8298
  if (type) {
@@ -8052,8 +8309,11 @@ const refreshPage = (type, store2) => {
8052
8309
  UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
8053
8310
  UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8054
8311
  }
8312
+ if (sessionStorage.getItem("copiedConfig")) {
8313
+ this.ElementPathSetter(UiSchema);
8314
+ }
8055
8315
  store2.setUiSchema(UiSchema);
8056
- };
8316
+ }
8057
8317
  var Component = (store2, dynamicData2, submitHandler, service2) => {
8058
8318
  return {
8059
8319
  setPage: async function() {
@@ -8070,7 +8330,11 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8070
8330
  return getFormdataFromSessionStorage(path);
8071
8331
  },
8072
8332
  getSchema: function() {
8073
- return ComponentSchema;
8333
+ const schema2 = _.cloneDeep(ComponentSchema);
8334
+ if (sessionStorage.getItem("copiedConfig")) {
8335
+ schema2.properties.RemoveItemButton.disabled = false;
8336
+ }
8337
+ return schema2;
8074
8338
  },
8075
8339
  okHandler: () => okHandler(store2),
8076
8340
  saveHandler: async () => await saveHandler(store2, service2, submitHandler, "PageMaster"),
@@ -8165,6 +8429,78 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8165
8429
  const rowId = dynamicData2.path.split(".")[1];
8166
8430
  sessionStorage.setItem("rowId", rowId);
8167
8431
  store2.updateDialog("popUpEventSection");
8432
+ },
8433
+ copyPasteElement: function(paramStore, setPage = this.setPage.bind(this)) {
8434
+ var _a;
8435
+ const [actionType, elementType] = (_a = dynamicData2.path.split(".").pop()) == null ? void 0 : _a.split("_");
8436
+ actionType === "Copy" ? this.CopyElement(paramStore, elementType) : this.PasteElement(setPage, elementType);
8437
+ },
8438
+ CopyElement: function(paramStore = store2, elementType) {
8439
+ var _a;
8440
+ const schema2 = lodash.exports.cloneDeep(paramStore.schema);
8441
+ const uiSchema = lodash.exports.cloneDeep(paramStore.uiSchema);
8442
+ schema2.properties.RemoveItemButton.disabled = false;
8443
+ const rowId = dynamicData2.path.split(".")[1];
8444
+ const parentPathOfCopiedComponent = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8445
+ const copiedElementPath = this.elementPathHandler(parentPathOfCopiedComponent, rowId, elementType);
8446
+ const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
8447
+ this.ElementPathSetter(uiSchema, copiedFormData);
8448
+ sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
8449
+ store2.setSchema(schema2);
8450
+ store2.setUiSchema(uiSchema);
8451
+ },
8452
+ PasteElement: function(setPage, elementType) {
8453
+ var _a;
8454
+ if (!sessionStorage.getItem("copiedConfig")) {
8455
+ store2.setNotify({
8456
+ FailMessage: "No item has been copied.",
8457
+ Fail: true
8458
+ });
8459
+ return;
8460
+ }
8461
+ const pastedElementParentPath = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8462
+ const formData = getFormdataFromSessionStorage(pastedElementParentPath);
8463
+ const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
8464
+ const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
8465
+ const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
8466
+ const notificationMessages = {
8467
+ Event: "The pasted content is invalid; the event cannot be integrated into the component section.",
8468
+ Component: "The pasted content is invalid; the component cannot be integrated into the event section."
8469
+ };
8470
+ if (copiedConfig.Handler && elementType === "Component") {
8471
+ store2.setNotify({
8472
+ FailMessage: notificationMessages.Event,
8473
+ Fail: true
8474
+ });
8475
+ } else if (copiedConfig.name && elementType === "Event") {
8476
+ store2.setNotify({
8477
+ FailMessage: notificationMessages.Component,
8478
+ Fail: true
8479
+ });
8480
+ } else {
8481
+ saveFormdataInSessionStorage(copiedConfig, pastedElementPath);
8482
+ setPage();
8483
+ }
8484
+ },
8485
+ RemoveItemButton: function(paramStore = store2) {
8486
+ const schema2 = lodash.exports.cloneDeep(paramStore.schema);
8487
+ const uiSchema = lodash.exports.cloneDeep(paramStore.uiSchema);
8488
+ schema2.properties.RemoveItemButton.disabled = true;
8489
+ uiSchema.elements[2].elements[1].config.main.heading = `No element copied`;
8490
+ sessionStorage.removeItem("copiedConfig");
8491
+ store2.setSchema(schema2);
8492
+ store2.setUiSchema(uiSchema);
8493
+ },
8494
+ elementPathHandler: function(parentPath, rowId, elementType) {
8495
+ if (elementType === "Component") {
8496
+ return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
8497
+ }
8498
+ return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
8499
+ },
8500
+ ElementPathSetter: function(uiSchema, copiedFormData) {
8501
+ const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
8502
+ const elementHeading = formData.name ? `Copied Path: ${formData.pageName} >${formData.name}` : `Copied Path: ${formData.pageName} >${formData.eventType}`;
8503
+ uiSchema.elements[2].elements[1].config.main.heading = elementHeading;
8168
8504
  }
8169
8505
  };
8170
8506
  };
@@ -8191,10 +8527,18 @@ var pageMaster = (funcParams) => {
8191
8527
  return config;
8192
8528
  },
8193
8529
  getUiSchema: function() {
8194
- return PageMasterUiSchema(store2.theme.myTheme);
8530
+ const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
8531
+ if (sessionStorage.getItem("copiedConfig")) {
8532
+ Component(store2, dynamicData2, submitHandler, service2).ElementPathSetter(UiSchema);
8533
+ }
8534
+ return UiSchema;
8195
8535
  },
8196
8536
  getSchema: () => {
8197
- return PageMasterSchema;
8537
+ const schema2 = _.cloneDeep(PageMasterSchema);
8538
+ if (sessionStorage.getItem("copiedConfig")) {
8539
+ schema2.properties.RemoveItemButton.disabled = false;
8540
+ }
8541
+ return schema2;
8198
8542
  },
8199
8543
  backHandler: () => {
8200
8544
  sessionStorage.removeItem("pageFormdata");
@@ -8258,6 +8602,12 @@ var pageMaster = (funcParams) => {
8258
8602
  const rowId = dynamicData2.path.split(".")[1];
8259
8603
  sessionStorage.setItem("rowId", rowId);
8260
8604
  store2.updateDialog("popUpPageMasterEvent");
8605
+ },
8606
+ copyPasteElement: function() {
8607
+ Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
8608
+ },
8609
+ RemoveItemButton: function() {
8610
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
8261
8611
  }
8262
8612
  };
8263
8613
  };
@@ -8346,6 +8696,9 @@ const EventSchema = {
8346
8696
  }
8347
8697
  }
8348
8698
  }
8699
+ },
8700
+ RemoveItemButton: {
8701
+ disabled: true
8349
8702
  }
8350
8703
  },
8351
8704
  required: ["eventType", "Handler"]
@@ -8445,6 +8798,27 @@ const EventUiSchema = (theme) => {
8445
8798
  }
8446
8799
  }
8447
8800
  }
8801
+ },
8802
+ {
8803
+ widget: {
8804
+ type: "Control",
8805
+ scope: "#/properties/Paste_Event",
8806
+ options: {
8807
+ widget: "IconButton"
8808
+ },
8809
+ config: {
8810
+ main: {
8811
+ onClick: "copyPasteElement",
8812
+ size: "small",
8813
+ icon: "PasteIcon",
8814
+ iconLabel: "Paste",
8815
+ styleDefault: true
8816
+ },
8817
+ style: {
8818
+ mt: "6px"
8819
+ }
8820
+ }
8821
+ }
8448
8822
  }
8449
8823
  ]
8450
8824
  },
@@ -8503,20 +8877,83 @@ const EventUiSchema = (theme) => {
8503
8877
  }
8504
8878
  }
8505
8879
  }
8880
+ },
8881
+ {
8882
+ header: "Copy",
8883
+ field: "Copy_Event",
8884
+ flex: 1,
8885
+ widget: {
8886
+ type: "Control",
8887
+ scope: "#/properties/Copy_Event",
8888
+ options: {
8889
+ widget: "IconButton"
8890
+ },
8891
+ config: {
8892
+ main: {
8893
+ icon: "FileCopyIcon",
8894
+ onClick: "copyPasteElement",
8895
+ styleDefault: true
8896
+ }
8897
+ }
8898
+ }
8506
8899
  }
8507
8900
  ]
8508
8901
  }
8509
8902
  ]
8510
8903
  },
8511
8904
  {
8512
- type: "Control",
8513
- scope: "#/properties/EmptyBox",
8514
- options: {
8515
- widget: "EmptyBox"
8516
- },
8905
+ type: "HorizontalLayout",
8517
8906
  config: {
8518
- layout: { xs: 4, sm: 8 }
8519
- }
8907
+ layout: { xs: 12, sm: 6 }
8908
+ },
8909
+ elements: [
8910
+ {
8911
+ type: "Control",
8912
+ scope: "#/properties/RemoveItemButton",
8913
+ options: {
8914
+ widget: "IconButton"
8915
+ },
8916
+ config: {
8917
+ layout: { xs: 1, sm: 1 },
8918
+ main: {
8919
+ onClick: "RemoveItemButton",
8920
+ size: "large",
8921
+ icon: "RejectIcon",
8922
+ styleDefault: true
8923
+ },
8924
+ style: {
8925
+ marginLeft: "-10px"
8926
+ }
8927
+ }
8928
+ },
8929
+ {
8930
+ type: "Control",
8931
+ scope: "#/properties/copiedElementDetails",
8932
+ options: {
8933
+ widget: "Box"
8934
+ },
8935
+ config: {
8936
+ layout: { xs: 6, sm: 6 },
8937
+ main: {
8938
+ heading: "No element copied"
8939
+ },
8940
+ style: {
8941
+ color: "#535557",
8942
+ marginLeft: "-10px"
8943
+ }
8944
+ }
8945
+ },
8946
+ {
8947
+ type: "Control",
8948
+ scope: "#/properties/EmptyBox",
8949
+ options: {
8950
+ widget: "EmptyBox"
8951
+ },
8952
+ config: {
8953
+ layout: { xs: 1, sm: 5 }
8954
+ }
8955
+ }
8956
+ ]
8520
8957
  },
8521
8958
  {
8522
8959
  type: "Control",
@@ -9050,6 +9487,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9050
9487
  ...functionsName
9051
9488
  ];
9052
9489
  }
9490
+ if (sessionStorage.getItem("copiedConfig")) {
9491
+ Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
9492
+ schema2.properties.RemoveItemButton.disabled = false;
9493
+ }
9053
9494
  store22.setSchema(schema2);
9054
9495
  store22.setUiSchema(uiSchema);
9055
9496
  },
@@ -9058,7 +9499,11 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9058
9499
  return EventUiSchema;
9059
9500
  },
9060
9501
  getSchema: () => {
9061
- return EventSchema;
9502
+ const schema2 = _.cloneDeep(EventSchema);
9503
+ if (sessionStorage.getItem("copiedConfig")) {
9504
+ schema2.properties.RemoveItemButton.disabled = false;
9505
+ }
9506
+ return schema2;
9062
9507
  },
9063
9508
  okHandler: () => okHandler(store2),
9064
9509
  saveHandler: async () => await saveHandler(store2, service2, submitHandler, "PageMaster"),
@@ -9101,6 +9546,12 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9101
9546
  const rowId = dynamicData2.path.split(".")[1];
9102
9547
  sessionStorage.setItem("rowId", rowId);
9103
9548
  store2.updateDialog("popUpEvent");
9549
+ },
9550
+ copyPasteElement: function() {
9551
+ Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
9552
+ },
9553
+ RemoveItemButton: function() {
9554
+ Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
9104
9555
  }
9105
9556
  };
9106
9557
  };
@@ -9898,7 +10349,7 @@ var leaderBoard = {
9898
10349
  scope: "#/properties/leaderBoard/properties/firstName",
9899
10350
  config: {
9900
10351
  main: {
9901
- heading: "No User"
10352
+ heading: "Satendra Raghav"
9902
10353
  },
9903
10354
  style: {
9904
10355
  objectFit: "cover",
@@ -9926,7 +10377,7 @@ var leaderBoard = {
9926
10377
  scope: "#/properties/leaderBoard/properties/secondName",
9927
10378
  config: {
9928
10379
  main: {
9929
- heading: "No User"
10380
+ heading: "Satendra Raghav"
9930
10381
  },
9931
10382
  style: {
9932
10383
  objectFit: "cover",
@@ -9953,7 +10404,7 @@ var leaderBoard = {
9953
10404
  scope: "#/properties/leaderBoard/properties/thirdName",
9954
10405
  config: {
9955
10406
  main: {
9956
- heading: "No User"
10407
+ heading: "Satendra Raghav"
9957
10408
  },
9958
10409
  style: {
9959
10410
  objectFit: "cover",
@@ -10108,18 +10559,15 @@ var leaderBoard = {
10108
10559
  fontWeight: 900,
10109
10560
  background: "rgb(179, 198, 255)"
10110
10561
  },
10111
- top: { xs: "100px", sm: "200px", md: "390px", lg: "390px" },
10562
+ top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
10112
10563
  border: "2px solid rgb(179, 198, 255)",
10113
10564
  width: "95%",
10114
10565
  left: "2.5%",
10115
10566
  margin: "auto"
10116
10567
  },
10117
10568
  main: {
10118
- disableColumnFilter: true,
10119
10569
  disableAction: true,
10120
- disableSelection: true,
10121
- disableGlobalSearch: true,
10122
- disableSorting: true
10570
+ disableSelection: true
10123
10571
  }
10124
10572
  }
10125
10573
  }