impaktapps-ui-builder 0.0.382-alpha.315 → 0.0.382-alpha.317

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.
@@ -389,7 +389,13 @@ const PageMasterUiSchema = {
389
389
  md: 12,
390
390
  lg: 12
391
391
  },
392
- main: {}
392
+ main: {
393
+ title: "Delete Content"
394
+ },
395
+ style: {
396
+ width: "32%",
397
+ margin: "auto"
398
+ }
393
399
  },
394
400
  elements: [
395
401
  {
@@ -404,7 +410,8 @@ const PageMasterUiSchema = {
404
410
  heading: "Are you sure you want to delete ?"
405
411
  },
406
412
  style: {
407
- marginTop: "-40px"
413
+ marginTop: "-25px",
414
+ marginLeft: "11px"
408
415
  }
409
416
  }
410
417
  },
@@ -416,7 +423,7 @@ const PageMasterUiSchema = {
416
423
  },
417
424
  config: {
418
425
  main: {},
419
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
426
+ layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
420
427
  }
421
428
  },
422
429
  {
@@ -429,7 +436,7 @@ const PageMasterUiSchema = {
429
436
  layout: 3,
430
437
  main: {
431
438
  name: "Yes",
432
- startIcon: "ApproveIcon",
439
+ endIcon: "DeleteIcon",
433
440
  variant: "contained",
434
441
  color: "info",
435
442
  type: "text",
@@ -448,7 +455,7 @@ const PageMasterUiSchema = {
448
455
  layout: 3,
449
456
  main: {
450
457
  name: "No",
451
- startIcon: "ApproveIcon",
458
+ endIcon: "CloseIcon",
452
459
  variant: "contained",
453
460
  color: "info",
454
461
  type: "text",
@@ -456,6 +463,17 @@ const PageMasterUiSchema = {
456
463
  size: "small"
457
464
  }
458
465
  }
466
+ },
467
+ {
468
+ type: "Control",
469
+ scope: "#/properties/EmptyBox",
470
+ options: {
471
+ widget: "EmptyBox"
472
+ },
473
+ config: {
474
+ main: {},
475
+ layout: 0.5
476
+ }
459
477
  }
460
478
  ]
461
479
  },
@@ -465,6 +483,10 @@ const PageMasterUiSchema = {
465
483
  options: {
466
484
  widget: "PopUp"
467
485
  },
486
+ style: {
487
+ width: "32%",
488
+ margin: "auto"
489
+ },
468
490
  config: {
469
491
  layout: {
470
492
  xs: 12,
@@ -472,7 +494,9 @@ const PageMasterUiSchema = {
472
494
  md: 12,
473
495
  lg: 12
474
496
  },
475
- main: {}
497
+ main: {
498
+ title: "Delete Content"
499
+ }
476
500
  },
477
501
  elements: [
478
502
  {
@@ -487,7 +511,8 @@ const PageMasterUiSchema = {
487
511
  heading: "Are you sure you want to delete ?"
488
512
  },
489
513
  style: {
490
- marginTop: "-40px"
514
+ marginTop: "-25px",
515
+ marginLeft: "11px"
491
516
  }
492
517
  }
493
518
  },
@@ -499,7 +524,7 @@ const PageMasterUiSchema = {
499
524
  },
500
525
  config: {
501
526
  main: {},
502
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
527
+ layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
503
528
  }
504
529
  },
505
530
  {
@@ -512,7 +537,7 @@ const PageMasterUiSchema = {
512
537
  layout: 3,
513
538
  main: {
514
539
  name: "Yes",
515
- startIcon: "ApproveIcon",
540
+ endIcon: "DeleteIcon",
516
541
  variant: "contained",
517
542
  color: "info",
518
543
  type: "text",
@@ -531,7 +556,7 @@ const PageMasterUiSchema = {
531
556
  layout: 3,
532
557
  main: {
533
558
  name: "No",
534
- startIcon: "ApproveIcon",
559
+ startIcon: "CloseIcon",
535
560
  variant: "contained",
536
561
  color: "info",
537
562
  type: "text",
@@ -539,6 +564,17 @@ const PageMasterUiSchema = {
539
564
  size: "small"
540
565
  }
541
566
  }
567
+ },
568
+ {
569
+ type: "Control",
570
+ scope: "#/properties/EmptyBox",
571
+ options: {
572
+ widget: "EmptyBox"
573
+ },
574
+ config: {
575
+ main: {},
576
+ layout: 0.5
577
+ }
542
578
  }
543
579
  ]
544
580
  },
@@ -6535,7 +6571,13 @@ const componentBasicUiSchema = {
6535
6571
  md: 12,
6536
6572
  lg: 12
6537
6573
  },
6538
- main: {}
6574
+ main: {
6575
+ title: "Delete Content"
6576
+ },
6577
+ style: {
6578
+ width: "32%",
6579
+ margin: "auto"
6580
+ }
6539
6581
  },
6540
6582
  elements: [
6541
6583
  {
@@ -6550,7 +6592,8 @@ const componentBasicUiSchema = {
6550
6592
  heading: "Are you sure you want to delete ?"
6551
6593
  },
6552
6594
  style: {
6553
- marginTop: "-40px"
6595
+ marginTop: "-25px",
6596
+ marginLeft: "11px"
6554
6597
  }
6555
6598
  }
6556
6599
  },
@@ -6562,7 +6605,7 @@ const componentBasicUiSchema = {
6562
6605
  },
6563
6606
  config: {
6564
6607
  main: {},
6565
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6608
+ layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
6566
6609
  }
6567
6610
  },
6568
6611
  {
@@ -6575,7 +6618,7 @@ const componentBasicUiSchema = {
6575
6618
  layout: 3,
6576
6619
  main: {
6577
6620
  name: "Yes",
6578
- startIcon: "ApproveIcon",
6621
+ endIcon: "DeleteIcon",
6579
6622
  variant: "contained",
6580
6623
  color: "info",
6581
6624
  type: "text",
@@ -6594,7 +6637,7 @@ const componentBasicUiSchema = {
6594
6637
  layout: 3,
6595
6638
  main: {
6596
6639
  name: "No",
6597
- startIcon: "ApproveIcon",
6640
+ endIcon: "CloseIcon",
6598
6641
  variant: "contained",
6599
6642
  color: "info",
6600
6643
  type: "text",
@@ -6602,6 +6645,17 @@ const componentBasicUiSchema = {
6602
6645
  size: "small"
6603
6646
  }
6604
6647
  }
6648
+ },
6649
+ {
6650
+ type: "Control",
6651
+ scope: "#/properties/EmptyBox",
6652
+ options: {
6653
+ widget: "EmptyBox"
6654
+ },
6655
+ config: {
6656
+ main: {},
6657
+ layout: 0.5
6658
+ }
6605
6659
  }
6606
6660
  ]
6607
6661
  },
@@ -6618,7 +6672,13 @@ const componentBasicUiSchema = {
6618
6672
  md: 12,
6619
6673
  lg: 12
6620
6674
  },
6621
- main: {}
6675
+ style: {
6676
+ width: "32%",
6677
+ margin: "auto"
6678
+ },
6679
+ main: {
6680
+ title: "Delete Content"
6681
+ }
6622
6682
  },
6623
6683
  elements: [
6624
6684
  {
@@ -6633,7 +6693,8 @@ const componentBasicUiSchema = {
6633
6693
  heading: "Are you sure you want to delete ?"
6634
6694
  },
6635
6695
  style: {
6636
- marginTop: "-40px"
6696
+ marginTop: "-25px",
6697
+ marginLeft: "11px"
6637
6698
  }
6638
6699
  }
6639
6700
  },
@@ -6645,7 +6706,7 @@ const componentBasicUiSchema = {
6645
6706
  },
6646
6707
  config: {
6647
6708
  main: {},
6648
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6709
+ layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
6649
6710
  }
6650
6711
  },
6651
6712
  {
@@ -6658,7 +6719,7 @@ const componentBasicUiSchema = {
6658
6719
  layout: 3,
6659
6720
  main: {
6660
6721
  name: "Yes",
6661
- startIcon: "ApproveIcon",
6722
+ endIcon: "DeleteIcon",
6662
6723
  variant: "contained",
6663
6724
  color: "info",
6664
6725
  type: "text",
@@ -6677,7 +6738,7 @@ const componentBasicUiSchema = {
6677
6738
  layout: 3,
6678
6739
  main: {
6679
6740
  name: "No",
6680
- startIcon: "ApproveIcon",
6741
+ endIcon: "CloseIcon",
6681
6742
  variant: "contained",
6682
6743
  color: "info",
6683
6744
  type: "text",
@@ -6685,6 +6746,17 @@ const componentBasicUiSchema = {
6685
6746
  size: "small"
6686
6747
  }
6687
6748
  }
6749
+ },
6750
+ {
6751
+ type: "Control",
6752
+ scope: "#/properties/EmptyBox",
6753
+ options: {
6754
+ widget: "EmptyBox"
6755
+ },
6756
+ config: {
6757
+ main: {},
6758
+ layout: 0.5
6759
+ }
6688
6760
  }
6689
6761
  ]
6690
6762
  },
@@ -7862,7 +7934,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7862
7934
  store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
7863
7935
  }
7864
7936
  },
7865
- deleteComponents: function() {
7937
+ deleteComponents: function(shouldUpdateDialog = true) {
7866
7938
  var _a;
7867
7939
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7868
7940
  const rowId = localStorage.getItem("rowId");
@@ -7870,15 +7942,22 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7870
7942
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7871
7943
  const data2 = path ? _.get(response2, path) : response2;
7872
7944
  store2.setFormdata(data2);
7945
+ if (shouldUpdateDialog) {
7946
+ store2.updateDialog("popUpComponentSection");
7947
+ }
7873
7948
  localStorage.removeItem("rowId");
7874
7949
  },
7875
- deleteEvent: function() {
7950
+ deleteEvent: function(shouldUpdateDialog = true) {
7876
7951
  var _a;
7877
7952
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7878
- const rowId = dynamicData2.path.split(".")[1];
7953
+ const rowId = localStorage.getItem("rowId");
7879
7954
  store2.formData.events.splice(rowId, 1);
7880
7955
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7881
7956
  store2.setFormdata(_.get(response2, path));
7957
+ if (shouldUpdateDialog) {
7958
+ store2.updateDialog("popUpEventSection");
7959
+ }
7960
+ localStorage.removeItem("rowId");
7882
7961
  },
7883
7962
  widgetAddClickHandler: function() {
7884
7963
  var _a;
@@ -7916,9 +7995,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7916
7995
  store2.navigate(-1);
7917
7996
  },
7918
7997
  deletePopUpComponent: function() {
7998
+ const rowId = dynamicData2.path.split(".")[1];
7999
+ localStorage.setItem("rowId", rowId);
7919
8000
  store2.updateDialog("popUpComponentSection");
7920
8001
  },
7921
8002
  deletePopUpEvent: function() {
8003
+ const rowId = dynamicData2.path.split(".")[1];
8004
+ localStorage.setItem("rowId", rowId);
7922
8005
  store2.updateDialog("popUpEventSection");
7923
8006
  }
7924
8007
  };
@@ -7968,7 +8051,7 @@ var pageMaster = (funcParams) => {
7968
8051
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7969
8052
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
7970
8053
  Delete_Components: async function() {
7971
- await Component(store2, dynamicData2, submitHandler, service2).deleteComponents();
8054
+ await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
7972
8055
  store2.updateDialog("popUpPageMasterComponent");
7973
8056
  },
7974
8057
  eventAddHandler: function() {
@@ -8329,7 +8412,13 @@ const EventUiSchema = {
8329
8412
  md: 12,
8330
8413
  lg: 12
8331
8414
  },
8332
- main: {}
8415
+ style: {
8416
+ width: "32%",
8417
+ margin: "auto"
8418
+ },
8419
+ main: {
8420
+ title: "Delete Content"
8421
+ }
8333
8422
  },
8334
8423
  elements: [
8335
8424
  {
@@ -8344,7 +8433,8 @@ const EventUiSchema = {
8344
8433
  heading: "Are you sure you want to delete ?"
8345
8434
  },
8346
8435
  style: {
8347
- marginTop: "-40px"
8436
+ marginTop: "-25px",
8437
+ marginLeft: "11px"
8348
8438
  }
8349
8439
  }
8350
8440
  },
@@ -8356,7 +8446,7 @@ const EventUiSchema = {
8356
8446
  },
8357
8447
  config: {
8358
8448
  main: {},
8359
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
8449
+ layout: { xs: 11, sm: 5.5, md: 4.5, lg: 4.5 }
8360
8450
  }
8361
8451
  },
8362
8452
  {
@@ -8369,7 +8459,7 @@ const EventUiSchema = {
8369
8459
  layout: 3,
8370
8460
  main: {
8371
8461
  name: "Yes",
8372
- startIcon: "ApproveIcon",
8462
+ endIcon: "DeleteIcon",
8373
8463
  variant: "contained",
8374
8464
  color: "info",
8375
8465
  type: "text",
@@ -8388,7 +8478,7 @@ const EventUiSchema = {
8388
8478
  layout: 3,
8389
8479
  main: {
8390
8480
  name: "No",
8391
- startIcon: "ApproveIcon",
8481
+ endIcon: "CloseIcon",
8392
8482
  variant: "contained",
8393
8483
  color: "info",
8394
8484
  type: "text",
@@ -8396,6 +8486,17 @@ const EventUiSchema = {
8396
8486
  size: "small"
8397
8487
  }
8398
8488
  }
8489
+ },
8490
+ {
8491
+ type: "Control",
8492
+ scope: "#/properties/EmptyBox",
8493
+ options: {
8494
+ widget: "EmptyBox"
8495
+ },
8496
+ config: {
8497
+ main: {},
8498
+ layout: 0.5
8499
+ }
8399
8500
  }
8400
8501
  ]
8401
8502
  },
@@ -8731,13 +8832,15 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8731
8832
  this.setPage();
8732
8833
  },
8733
8834
  deleteEvent: async function() {
8734
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent;
8835
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
8735
8836
  store2.updateDialog("popUpEvent");
8736
8837
  },
8737
8838
  backHandler: function() {
8738
8839
  store2.navigate(-1);
8739
8840
  },
8740
8841
  deletePopUpEvent: function() {
8842
+ const rowId = dynamicData2.path.split(".")[1];
8843
+ localStorage.setItem("rowId", rowId);
8741
8844
  store2.updateDialog("popUpEvent");
8742
8845
  }
8743
8846
  };