@sumaris-net/ngx-components 2.4.156 → 2.4.158
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/doc/changelog.md +3 -0
- package/esm2020/src/app/core/services/model/config.model.mjs +4 -4
- package/esm2020/src/environments/environment.class.mjs +1 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +2 -2
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +2 -2
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +7 -2
- package/src/assets/manifest.json +1 -1
- package/src/environments/environment.class.d.ts +1 -0
|
@@ -19070,12 +19070,12 @@ let Configuration = Configuration_1 = class Configuration extends Software {
|
|
|
19070
19070
|
getPropertyAsNumbers(definition) {
|
|
19071
19071
|
const value = this.getProperty(definition);
|
|
19072
19072
|
if (typeof value === 'string')
|
|
19073
|
-
return value.split(',').map(parseFloat) || undefined;
|
|
19073
|
+
return value.split(',').filter(isNotNilOrBlank).map(parseFloat) || undefined;
|
|
19074
19074
|
return isNotNil(value) ? [parseFloat(value)] : undefined;
|
|
19075
19075
|
}
|
|
19076
19076
|
getPropertyAsStrings(definition) {
|
|
19077
19077
|
const value = this.getProperty(definition);
|
|
19078
|
-
return value && value.split(',') || undefined;
|
|
19078
|
+
return value && value.split(',').filter(isNotNilOrBlank) || undefined;
|
|
19079
19079
|
}
|
|
19080
19080
|
getProperty(definition) {
|
|
19081
19081
|
return isNotNil(this.properties[definition.key]) ? this.properties[definition.key] : undefinedIfNull(definition.defaultValue);
|