impaktapps-ui-builder 0.0.382-alpha.314 → 0.0.382-alpha.316

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.
@@ -6620,7 +6620,7 @@ const componentBasicUiSchema = {
6620
6620
  },
6621
6621
  main: {}
6622
6622
  },
6623
- elemetns: [
6623
+ elements: [
6624
6624
  {
6625
6625
  type: "Control",
6626
6626
  scope: "#/properties/label",
@@ -7862,22 +7862,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7862
7862
  store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
7863
7863
  }
7864
7864
  },
7865
- deleteComponents: function() {
7865
+ deleteComponents: function(shouldUpdateDialog = true) {
7866
7866
  var _a;
7867
7867
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7868
- const rowId = dynamicData2.path.split(".")[1];
7868
+ const rowId = localStorage.getItem("rowId");
7869
7869
  store2.formData.elements.splice(rowId, 1);
7870
7870
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7871
7871
  const data2 = path ? _.get(response2, path) : response2;
7872
7872
  store2.setFormdata(data2);
7873
+ if (shouldUpdateDialog) {
7874
+ store2.updateDialog("popUpComponentSection");
7875
+ }
7876
+ localStorage.removeItem("rowId");
7873
7877
  },
7874
- deleteEvent: function() {
7878
+ deleteEvent: function(shouldUpdateDialog = true) {
7875
7879
  var _a;
7876
7880
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7877
- const rowId = dynamicData2.path.split(".")[1];
7881
+ const rowId = localStorage.getItem("rowId");
7878
7882
  store2.formData.events.splice(rowId, 1);
7879
7883
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7880
7884
  store2.setFormdata(_.get(response2, path));
7885
+ if (shouldUpdateDialog) {
7886
+ store2.updateDialog("popUpEventSection");
7887
+ }
7888
+ localStorage.removeItem("rowId");
7881
7889
  },
7882
7890
  widgetAddClickHandler: function() {
7883
7891
  var _a;
@@ -7915,9 +7923,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7915
7923
  store2.navigate(-1);
7916
7924
  },
7917
7925
  deletePopUpComponent: function() {
7926
+ const rowId = dynamicData2.path.split(".")[1];
7927
+ localStorage.setItem("rowId", rowId);
7918
7928
  store2.updateDialog("popUpComponentSection");
7919
7929
  },
7920
7930
  deletePopUpEvent: function() {
7931
+ const rowId = dynamicData2.path.split(".")[1];
7932
+ localStorage.setItem("rowId", rowId);
7921
7933
  store2.updateDialog("popUpEventSection");
7922
7934
  }
7923
7935
  };
@@ -7967,7 +7979,7 @@ var pageMaster = (funcParams) => {
7967
7979
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7968
7980
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
7969
7981
  Delete_Components: async function() {
7970
- await Component(store2, dynamicData2, submitHandler, service2).deleteComponents();
7982
+ await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
7971
7983
  store2.updateDialog("popUpPageMasterComponent");
7972
7984
  },
7973
7985
  eventAddHandler: function() {
@@ -7989,17 +8001,21 @@ var pageMaster = (funcParams) => {
7989
8001
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
7990
8002
  },
7991
8003
  deleteEvent: function() {
7992
- const rowId = dynamicData2.path.split(".")[1];
8004
+ const rowId = localStorage.getItem("rowId");
7993
8005
  store2.formData.events.splice(rowId, 1);
7994
8006
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
7995
8007
  store2.setFormdata(response2);
7996
8008
  store2.updateDialog("popUpPageMasterEvent");
8009
+ localStorage.removeItem("rowId");
7997
8010
  },
7998
8011
  deletePopUpComponent: function() {
7999
- dynamicData2.path.split(".")[1];
8012
+ const rowId = dynamicData2.path.split(".")[1];
8013
+ localStorage.setItem("rowId", rowId);
8000
8014
  store2.updateDialog("popUpPageMasterComponent");
8001
8015
  },
8002
8016
  deletePopUpEvent: function() {
8017
+ const rowId = dynamicData2.path.split(".")[1];
8018
+ localStorage.setItem("rowId", rowId);
8003
8019
  store2.updateDialog("popUpPageMasterEvent");
8004
8020
  }
8005
8021
  };
@@ -8361,7 +8377,7 @@ const EventUiSchema = {
8361
8377
  widget: "Button"
8362
8378
  },
8363
8379
  config: {
8364
- layout: 12,
8380
+ layout: 3,
8365
8381
  main: {
8366
8382
  name: "Yes",
8367
8383
  startIcon: "ApproveIcon",
@@ -8380,7 +8396,7 @@ const EventUiSchema = {
8380
8396
  widget: "Button"
8381
8397
  },
8382
8398
  config: {
8383
- layout: 12,
8399
+ layout: 3,
8384
8400
  main: {
8385
8401
  name: "No",
8386
8402
  startIcon: "ApproveIcon",
@@ -8726,13 +8742,15 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8726
8742
  this.setPage();
8727
8743
  },
8728
8744
  deleteEvent: async function() {
8729
- await Component(store2, dynamicData2, submitHandler, service2).deleteEvent;
8745
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
8730
8746
  store2.updateDialog("popUpEvent");
8731
8747
  },
8732
8748
  backHandler: function() {
8733
8749
  store2.navigate(-1);
8734
8750
  },
8735
8751
  deletePopUpEvent: function() {
8752
+ const rowId = dynamicData2.path.split(".")[1];
8753
+ localStorage.setItem("rowId", rowId);
8736
8754
  store2.updateDialog("popUpEvent");
8737
8755
  }
8738
8756
  };