@sumaris-net/ngx-components 0.27.10 → 0.27.14

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.
@@ -2654,7 +2654,7 @@
2654
2654
  function ArrayIncludesPipe() {
2655
2655
  }
2656
2656
  ArrayIncludesPipe.prototype.transform = function (val, args) {
2657
- return val && val.includes(args);
2657
+ return val && val.includes(args) || false;
2658
2658
  };
2659
2659
  return ArrayIncludesPipe;
2660
2660
  }());
@@ -2805,7 +2805,7 @@
2805
2805
  // Compute a contextual i18n key, using the context as suffix
2806
2806
  var contextKey = this.contextualKey(key, context);
2807
2807
  // Return the contextual translation, or default of not exists
2808
- return this.translate.get(contextKey)
2808
+ return this.translate.get(contextKey, interpolateParams)
2809
2809
  .pipe(operators.mergeMap(function (translation) { return (translation !== contextKey) ? rxjs.of(translation) : _this.translate.get(key); }));
2810
2810
  };
2811
2811
  TranslateContextService.prototype.instant = function (key, context, interpolateParams) {
@@ -2815,7 +2815,7 @@
2815
2815
  // Compute a contextual i18n key, using the context as suffix
2816
2816
  var contextualKey = this.contextualKey(key, context);
2817
2817
  // Return the contextual translation, or default of not exists
2818
- var translation = this.translate.instant(contextualKey);
2818
+ var translation = this.translate.instant(contextualKey, interpolateParams);
2819
2819
  return (translation !== contextualKey) ? translation : this.translate.instant(key);
2820
2820
  };
2821
2821
  /**
@@ -23827,10 +23827,11 @@
23827
23827
  this.markAsDirty(opts);
23828
23828
  };
23829
23829
  AppTable.prototype.markAsReady = function (opts) {
23830
- if (this.readySubject.value !== false) {
23830
+ if (this.readySubject.value !== true) {
23831
23831
  this.readySubject.next(false);
23832
- if (!opts || opts.emitEvent !== false) {
23833
- this.markForCheck();
23832
+ // If subclasses implements OnReady
23833
+ if (typeof this['ngOnReady'] === 'function') {
23834
+ this.ngOnReady();
23834
23835
  }
23835
23836
  }
23836
23837
  };