@sumaris-net/ngx-components 0.28.0 → 0.28.1

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.
@@ -2481,7 +2481,7 @@
2481
2481
  return date1 && date2 && date1.isSameOrBefore(date2) ? date1 : date2;
2482
2482
  };
2483
2483
  DateUtils.max = function (date1, date2) {
2484
- return date1 && date2 && date1.isSameOrAfter(date2) ? date1 : date2;
2484
+ return !date1 ? date2 : (!date2 || date1.isSameOrAfter(date2) ? date1 : date2);
2485
2485
  };
2486
2486
  return DateUtils;
2487
2487
  }());
@@ -2937,12 +2937,11 @@
2937
2937
  };
2938
2938
  return TranslateContextPipe;
2939
2939
  }());
2940
- TranslateContextPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0__namespace.ɵɵinject(TranslateContextService), i0__namespace.ɵɵinject(i0__namespace.ChangeDetectorRef)); }, token: TranslateContextPipe, providedIn: "root" });
2941
2940
  TranslateContextPipe.decorators = [
2941
+ { type: i0.Injectable },
2942
2942
  { type: i0.Pipe, args: [{
2943
2943
  name: 'translateContext'
2944
- },] },
2945
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
2944
+ },] }
2946
2945
  ];
2947
2946
  TranslateContextPipe.ctorParameters = function () { return [
2948
2947
  { type: TranslateContextService },
@@ -2958,12 +2957,11 @@
2958
2957
  };
2959
2958
  return TranslatablePipe;
2960
2959
  }());
2961
- TranslatablePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
2962
2960
  TranslatablePipe.decorators = [
2963
2961
  { type: i0.Pipe, args: [{
2964
2962
  name: 'translatable'
2965
2963
  },] },
2966
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
2964
+ { type: i0.Injectable }
2967
2965
  ];
2968
2966
 
2969
2967
  var PropertyGetPipe = /** @class */ (function () {