impaktapps-ui-builder 0.0.382-alpha.307 → 0.0.382-alpha.310

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.
@@ -408,6 +408,9 @@ const PageMasterUiSchema = {
408
408
  layout: 12,
409
409
  main: {
410
410
  heading: "Are you sure you want to delete ?"
411
+ },
412
+ style: {
413
+ marginBottom: "15px"
411
414
  }
412
415
  }
413
416
  },
@@ -6508,6 +6511,161 @@ const componentBasicUiSchema = {
6508
6511
  }
6509
6512
  ]
6510
6513
  },
6514
+ {
6515
+ type: "Control",
6516
+ scope: "#/properties/popUpComponent",
6517
+ options: {
6518
+ widget: "PopUp"
6519
+ },
6520
+ config: {
6521
+ layout: {
6522
+ xs: 12,
6523
+ sm: 12,
6524
+ md: 12,
6525
+ lg: 12
6526
+ },
6527
+ main: {
6528
+ label: "PopUp",
6529
+ fullScreen: false,
6530
+ fullWidth: false,
6531
+ maxWidth: false,
6532
+ alignItems: false
6533
+ }
6534
+ },
6535
+ elements: [
6536
+ {
6537
+ type: "Control",
6538
+ scope: "#/properties/label",
6539
+ options: {
6540
+ widget: "Box"
6541
+ },
6542
+ config: {
6543
+ layout: 12,
6544
+ main: {
6545
+ heading: "Are you sure you want to delete ?"
6546
+ },
6547
+ style: {
6548
+ marginBottom: "15px"
6549
+ }
6550
+ }
6551
+ },
6552
+ {
6553
+ type: "Control",
6554
+ scope: "#/properties/ConfirmDeleteCompButton",
6555
+ options: {
6556
+ widget: "Button"
6557
+ },
6558
+ config: {
6559
+ layout: 3,
6560
+ main: {
6561
+ name: "Yes",
6562
+ startIcon: "ApproveIcon",
6563
+ variant: "contained",
6564
+ color: "info",
6565
+ type: "text",
6566
+ onClick: "Delete_Components",
6567
+ size: "small"
6568
+ },
6569
+ style: {
6570
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" }
6571
+ }
6572
+ }
6573
+ },
6574
+ {
6575
+ type: "Control",
6576
+ scope: "#/properties/CancelDeleteCompButton",
6577
+ options: {
6578
+ widget: "Button"
6579
+ },
6580
+ config: {
6581
+ layout: 3,
6582
+ main: {
6583
+ name: "No",
6584
+ startIcon: "ApproveIcon",
6585
+ variant: "contained",
6586
+ color: "info",
6587
+ type: "text",
6588
+ onClick: "deletePopUpComponent",
6589
+ size: "small"
6590
+ },
6591
+ style: {
6592
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" }
6593
+ }
6594
+ }
6595
+ }
6596
+ ]
6597
+ },
6598
+ {
6599
+ type: "Control",
6600
+ scope: "#/properties/popUpEvent",
6601
+ options: {
6602
+ widget: "PopUp"
6603
+ },
6604
+ config: {
6605
+ layout: {
6606
+ xs: 12,
6607
+ sm: 12,
6608
+ md: 12,
6609
+ lg: 12
6610
+ },
6611
+ main: {}
6612
+ },
6613
+ elemetns: [
6614
+ {
6615
+ type: "Control",
6616
+ scope: "#/properties/Label",
6617
+ options: {
6618
+ widget: "Box"
6619
+ },
6620
+ config: {
6621
+ layout: 12,
6622
+ main: {
6623
+ heading: "Are you sure you want to delete ?"
6624
+ }
6625
+ }
6626
+ },
6627
+ {
6628
+ type: "Control",
6629
+ scope: "#/properties/ConfirmDeleteEventButton",
6630
+ options: {
6631
+ widget: "Button"
6632
+ },
6633
+ config: {
6634
+ layout: 3,
6635
+ main: {
6636
+ name: "No",
6637
+ startIcon: "ApproveIcon",
6638
+ variant: "contained",
6639
+ color: "info",
6640
+ type: "text",
6641
+ onClick: "deleteEvent",
6642
+ size: "small"
6643
+ },
6644
+ style: {}
6645
+ }
6646
+ },
6647
+ {
6648
+ type: "Control",
6649
+ scope: "#/properties/CancelDeleteEventButton",
6650
+ options: {
6651
+ widget: "Button"
6652
+ },
6653
+ config: {
6654
+ layout: 3,
6655
+ main: {
6656
+ name: "Yes",
6657
+ startIcon: "ApproveIcon",
6658
+ variant: "contained",
6659
+ color: "info",
6660
+ type: "text",
6661
+ onClick: "deleteEvent",
6662
+ size: "small"
6663
+ },
6664
+ style: {}
6665
+ }
6666
+ }
6667
+ ]
6668
+ },
6511
6669
  {
6512
6670
  type: "Control",
6513
6671
  scope: "#/properties/proc",
@@ -6814,7 +6972,7 @@ const EventSection = {
6814
6972
  icon: "RejectIcon",
6815
6973
  color: "error",
6816
6974
  tooltipMessage: "Reject This Record",
6817
- onClick: "deleteEvent"
6975
+ onClick: "deletePopUpEvent"
6818
6976
  }
6819
6977
  }
6820
6978
  }
@@ -7330,7 +7488,7 @@ const TableSection = {
7330
7488
  main: {
7331
7489
  icon: "RejectIcon",
7332
7490
  color: "error",
7333
- onClick: "deleteComponents",
7491
+ onClick: "deletePopUpComponent",
7334
7492
  tooltipMessage: "Reject This Record"
7335
7493
  }
7336
7494
  }
@@ -7690,6 +7848,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7690
7848
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7691
7849
  const data2 = path ? _.get(response2, path) : response2;
7692
7850
  store2.setFormdata(data2);
7851
+ store2.updateDialog("popUpComponent");
7693
7852
  },
7694
7853
  deleteEvent: function() {
7695
7854
  var _a;
@@ -7698,6 +7857,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7698
7857
  store2.formData.events.splice(rowId, 1);
7699
7858
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7700
7859
  store2.setFormdata(_.get(response2, path));
7860
+ store2.updateDialog("deletePopUpEvent");
7701
7861
  },
7702
7862
  widgetAddClickHandler: function() {
7703
7863
  var _a;
@@ -7733,6 +7893,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7733
7893
  },
7734
7894
  backHandler: function() {
7735
7895
  store2.navigate(-1);
7896
+ },
7897
+ deletePopUpComponent: function() {
7898
+ store2.updateDialog("popUpComponent");
7899
+ },
7900
+ deletePopUpEvent: function() {
7901
+ store2.updateDialog("popUpEvent");
7736
7902
  }
7737
7903
  };
7738
7904
  };
@@ -8112,7 +8278,7 @@ const EventUiSchema = {
8112
8278
  icon: "RejectIcon",
8113
8279
  color: "error",
8114
8280
  tooltipMessage: "Reject This Record",
8115
- onClick: "deleteEvent"
8281
+ onClick: "deletePopUpEvent"
8116
8282
  }
8117
8283
  }
8118
8284
  }
@@ -8123,6 +8289,81 @@ const EventUiSchema = {
8123
8289
  }
8124
8290
  ]
8125
8291
  },
8292
+ {
8293
+ type: "Control",
8294
+ scope: "#/properties/popUpComponent",
8295
+ options: {
8296
+ widget: "PopUp"
8297
+ },
8298
+ config: {
8299
+ layout: {
8300
+ xs: 12,
8301
+ sm: 12,
8302
+ md: 12,
8303
+ lg: 12
8304
+ },
8305
+ main: {}
8306
+ },
8307
+ elements: [
8308
+ {
8309
+ type: "Control",
8310
+ scope: "#/properties/label",
8311
+ options: {
8312
+ widget: "Box"
8313
+ },
8314
+ config: {
8315
+ layout: 12,
8316
+ main: {
8317
+ heading: "Are you sure you want to delete ?"
8318
+ }
8319
+ }
8320
+ },
8321
+ {
8322
+ type: "Control",
8323
+ scope: "#/properties/ConfirmDeleteEventButton",
8324
+ options: {
8325
+ widget: "Button"
8326
+ },
8327
+ config: {
8328
+ layout: 3,
8329
+ main: {
8330
+ name: "Yes",
8331
+ startIcon: "ApproveIcon",
8332
+ variant: "contained",
8333
+ color: "info",
8334
+ type: "text",
8335
+ onClick: "deleteEvent",
8336
+ size: "small"
8337
+ },
8338
+ style: {
8339
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" }
8340
+ }
8341
+ }
8342
+ },
8343
+ {
8344
+ type: "Control",
8345
+ scope: "#/properties/CancelDeleteEventButton",
8346
+ options: {
8347
+ widget: "Button"
8348
+ },
8349
+ config: {
8350
+ layout: 3,
8351
+ main: {
8352
+ name: "No",
8353
+ startIcon: "ApproveIcon",
8354
+ variant: "contained",
8355
+ color: "info",
8356
+ type: "text",
8357
+ onClick: "deletePopUpEvent",
8358
+ size: "small"
8359
+ },
8360
+ style: {
8361
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" }
8362
+ }
8363
+ }
8364
+ }
8365
+ ]
8366
+ },
8126
8367
  {
8127
8368
  type: "Control",
8128
8369
  scope: "#/properties/proc",
@@ -8454,9 +8695,15 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8454
8695
  store2.setSearchParams(store2.searchParams);
8455
8696
  this.setPage();
8456
8697
  },
8457
- deleteEvent: Component(store2, dynamicData2, submitHandler, service2).deleteEvent,
8698
+ deleteEvent: async function() {
8699
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent;
8700
+ store2.updateDialog("deletePopUpEvent");
8701
+ },
8458
8702
  backHandler: function() {
8459
8703
  store2.navigate(-1);
8704
+ },
8705
+ deletePopUpEvent: function() {
8706
+ store2.updateDialog("deletePopUpEvent");
8460
8707
  }
8461
8708
  };
8462
8709
  };