sf-crud 12.0.1-beta22 → 12.0.1-beta23

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.
@@ -759,7 +759,10 @@
759
759
  var _this = this;
760
760
  switch (typeof (value)) {
761
761
  case 'object':
762
- value.forEach(function (val) { return jsonpath__namespace.value(_this.data, val.scope.replace('.properties', ''), val.value); });
762
+ if (Array.isArray(value))
763
+ value.forEach(function (val) { return jsonpath__namespace.value(_this.data, val.scope.replace('.properties', ''), val.value); });
764
+ else
765
+ jsonpath__namespace.value(this.data, scope.replace('.properties', ''), value);
763
766
  break;
764
767
  default:
765
768
  jsonpath__namespace.value(this.data, scope.replace('.properties', ''), value);
@@ -883,6 +886,9 @@
883
886
  }
884
887
  return value;
885
888
  };
889
+ RegistroChildComponent.prototype.sendNotification = function (message) {
890
+ this.messageService.add(message);
891
+ };
886
892
  return RegistroChildComponent;
887
893
  }());
888
894
  RegistroChildComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RegistroChildComponent, deps: [{ token: i1__namespace$1.DynamicDialogRef }, { token: i1__namespace$1.DynamicDialogConfig }, { token: i3__namespace$1.MessageService }], target: i0__namespace.ɵɵFactoryTarget.Component });
@@ -1038,13 +1044,13 @@
1038
1044
  };
1039
1045
  RegistroComponent.prototype.validateDataLocal = function () {
1040
1046
  var _this = this;
1041
- var _a, _b;
1047
+ var _a, _b, _c, _d;
1042
1048
  var err = [];
1043
- (_a = this.configOperation.validations) === null || _a === void 0 ? void 0 : _a.required.forEach(function (x) {
1049
+ (_b = (_a = this.configOperation.validations) === null || _a === void 0 ? void 0 : _a.required) === null || _b === void 0 ? void 0 : _b.forEach(function (x) {
1044
1050
  if (!jsonpath__namespace.query(_this.data, x.field)[0])
1045
1051
  err.push(x.message);
1046
1052
  });
1047
- (_b = this.configOperation.validations) === null || _b === void 0 ? void 0 : _b.operations.forEach(function (op) {
1053
+ (_d = (_c = this.configOperation.validations) === null || _c === void 0 ? void 0 : _c.operations) === null || _d === void 0 ? void 0 : _d.forEach(function (op) {
1048
1054
  switch (op.action) {
1049
1055
  case 'sumArray':
1050
1056
  var var1 = jsonpath__namespace.query(_this.data, op.scope[0]).reduce(function (acc, cur) { return acc += cur[op.key]; }, 0);