impaktapps-ui-builder 1.0.170 → 1.0.173

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.
@@ -8525,14 +8525,13 @@ const clearFromSessionStorage = () => {
8525
8525
  sessionStorage.removeItem("pageFormdata");
8526
8526
  };
8527
8527
  const isErrorExist = (store2) => {
8528
- if (!_.isEmpty(store2.ctx.core.errors)) {
8529
- store2.setValidation("ValidateAndShow");
8530
- store2.setNotify({
8531
- Fail: true,
8532
- FailMessage: "Error on Page"
8533
- });
8528
+ if (_.isEmpty(store2.ctx.core.errors))
8534
8529
  return false;
8535
- }
8530
+ store2.setValidation("ValidateAndShow");
8531
+ store2.setNotify({
8532
+ Fail: true,
8533
+ FailMessage: "Error on Page"
8534
+ });
8536
8535
  return true;
8537
8536
  };
8538
8537
  const getNavigationHistory = (config2, path) => {
@@ -8873,7 +8872,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8873
8872
  },
8874
8873
  editComponents: function() {
8875
8874
  var _a, _b, _c;
8876
- if (!isErrorExist(store2))
8875
+ if (isErrorExist(store2))
8877
8876
  return;
8878
8877
  const rowId = dynamicData2.path.split(".")[1];
8879
8878
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
@@ -8916,7 +8915,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8916
8915
  },
8917
8916
  widgetAddClickHandler: function() {
8918
8917
  var _a;
8919
- if (!isErrorExist(store2))
8918
+ if (isErrorExist(store2))
8920
8919
  return;
8921
8920
  if (!Array.isArray(store2.formData.elements)) {
8922
8921
  store2.formData.elements = [];
@@ -8930,7 +8929,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8930
8929
  },
8931
8930
  eventEditHandler: function() {
8932
8931
  var _a, _b;
8933
- if (!isErrorExist(store2))
8932
+ if (isErrorExist(store2))
8934
8933
  return;
8935
8934
  const rowId = dynamicData2.path.split(".")[1];
8936
8935
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
@@ -8941,7 +8940,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8941
8940
  },
8942
8941
  eventAddHandler: function() {
8943
8942
  var _a, _b;
8944
- if (!isErrorExist(store2))
8943
+ if (isErrorExist(store2))
8945
8944
  return;
8946
8945
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8947
8946
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
@@ -9116,7 +9115,7 @@ var pageMaster = (funcParams) => {
9116
9115
  },
9117
9116
  onAddClickHandler: function() {
9118
9117
  var _a;
9119
- if (!isErrorExist(store2))
9118
+ if (isErrorExist(store2))
9120
9119
  return;
9121
9120
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9122
9121
  if (!Array.isArray(store2.formData.elements)) {
@@ -9141,7 +9140,7 @@ var pageMaster = (funcParams) => {
9141
9140
  },
9142
9141
  eventAddHandler: function() {
9143
9142
  var _a;
9144
- if (!isErrorExist(store2))
9143
+ if (isErrorExist(store2))
9145
9144
  return;
9146
9145
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
9147
9146
  if (!Array.isArray(store2.formData.events)) {
@@ -9153,7 +9152,7 @@ var pageMaster = (funcParams) => {
9153
9152
  },
9154
9153
  editEvent: function() {
9155
9154
  var _a;
9156
- if (!isErrorExist(store2))
9155
+ if (isErrorExist(store2))
9157
9156
  return;
9158
9157
  const rowId = dynamicData2.path.split(".")[1];
9159
9158
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
@@ -10134,7 +10133,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10134
10133
  },
10135
10134
  addEvent: function() {
10136
10135
  var _a, _b, _c;
10137
- if (!isErrorExist(store2))
10136
+ if (isErrorExist(store2))
10138
10137
  return;
10139
10138
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
10140
10139
  if (!Array.isArray(store2.formData.events)) {
@@ -10148,7 +10147,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
10148
10147
  },
10149
10148
  editEvent: function() {
10150
10149
  var _a;
10151
- if (!isErrorExist(store2))
10150
+ if (isErrorExist(store2))
10152
10151
  return;
10153
10152
  const rowId = dynamicData2.path.split(".")[1];
10154
10153
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");