@sumaris-net/ngx-components 1.7.0 → 1.7.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.
- package/bundles/sumaris-net.ngx-components.umd.js +5 -5
- 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/shared/material/latlong/material.latlong.js +6 -6
- package/fesm2015/sumaris-net.ngx-components.js +5 -5
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -4758,11 +4758,8 @@
|
|
|
4758
4758
|
this.pattern = 'DDMM';
|
|
4759
4759
|
this.mask = MASKS[this.type][this.pattern];
|
|
4760
4760
|
}
|
|
4761
|
-
if (isNil(this.maxDecimals)) {
|
|
4762
|
-
this.maxDecimals = DEFAULT_MAX_DECIMALS;
|
|
4763
|
-
}
|
|
4764
4761
|
// Remove max decimals in the DDMMSS format
|
|
4765
|
-
|
|
4762
|
+
if (this.pattern === 'DD') {
|
|
4766
4763
|
console.warn("Invalid attribute 'maxDecimals' - Must be '0' when using the 'DDMMSS' pattern.");
|
|
4767
4764
|
this.maxDecimals = 7;
|
|
4768
4765
|
}
|
|
@@ -4770,12 +4767,15 @@
|
|
|
4770
4767
|
console.warn("Invalid attribute 'maxDecimals' - Must be '0' when using the 'DDMMSS' pattern.");
|
|
4771
4768
|
this.maxDecimals = 0;
|
|
4772
4769
|
}
|
|
4770
|
+
else if (isNil(this.maxDecimals)) {
|
|
4771
|
+
this.maxDecimals = DEFAULT_MAX_DECIMALS;
|
|
4772
|
+
}
|
|
4773
4773
|
else if (this.maxDecimals < 0) {
|
|
4774
4774
|
console.error('Invalid attribute \'maxDecimals\'. Must a positive value.');
|
|
4775
4775
|
this.maxDecimals = DEFAULT_MAX_DECIMALS;
|
|
4776
4776
|
}
|
|
4777
4777
|
else if (this.maxDecimals !== DEFAULT_MAX_DECIMALS) {
|
|
4778
|
-
console.warn("Invalid attribute 'maxDecimals' - Expected value: " + DEFAULT_MAX_DECIMALS + ". Other value not implemented.");
|
|
4778
|
+
console.warn("Invalid attribute 'maxDecimals' - Expected value: " + DEFAULT_MAX_DECIMALS + " but get: " + this.maxDecimals + ". Other value not implemented.");
|
|
4779
4779
|
this.maxDecimals = DEFAULT_MAX_DECIMALS;
|
|
4780
4780
|
}
|
|
4781
4781
|
this.showSignControl = this.pattern !== 'DD';
|