@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.
- package/bundles/sumaris-net.ngx-components.umd.js +7 -6
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/table/table.class.js +5 -4
- package/esm2015/src/app/shared/pipes/arrays.pipe.js +2 -2
- package/esm2015/src/app/shared/services/translate-context.service.js +3 -3
- package/fesm2015/sumaris-net.ngx-components.js +7 -6
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/table/table.class.d.ts +1 -1
- package/src/app/shared/pipes/arrays.pipe.d.ts +6 -6
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -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 !==
|
|
23830
|
+
if (this.readySubject.value !== true) {
|
|
23831
23831
|
this.readySubject.next(false);
|
|
23832
|
-
|
|
23833
|
-
|
|
23832
|
+
// If subclasses implements OnReady
|
|
23833
|
+
if (typeof this['ngOnReady'] === 'function') {
|
|
23834
|
+
this.ngOnReady();
|
|
23834
23835
|
}
|
|
23835
23836
|
}
|
|
23836
23837
|
};
|