@seniorsistemas/angular-components 16.3.6 → 16.3.8
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/seniorsistemas-angular-components.umd.js +5 -4
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/esm2015/components/bignumber-input/number-input.directive.js +5 -4
- package/esm2015/components/locale/options/calendar.js +2 -2
- package/esm5/components/bignumber-input/number-input.directive.js +5 -4
- package/esm5/components/locale/options/calendar.js +2 -2
- package/fesm2015/seniorsistemas-angular-components.js +5 -4
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +5 -4
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -1270,7 +1270,7 @@
|
|
|
1270
1270
|
this.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
|
|
1271
1271
|
this.dayNamesShort = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
|
|
1272
1272
|
this.dayNamesMin = ["D", "S", "T", "Q", "Q", "S", "S"];
|
|
1273
|
-
this.monthNamesShort = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "
|
|
1273
|
+
this.monthNamesShort = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"];
|
|
1274
1274
|
this.monthNames = [
|
|
1275
1275
|
"Janeiro",
|
|
1276
1276
|
"Fevereiro",
|
|
@@ -3955,7 +3955,6 @@
|
|
|
3955
3955
|
_this.precision = 15;
|
|
3956
3956
|
_this.scale = 0;
|
|
3957
3957
|
_this.decimalSeparator = ",";
|
|
3958
|
-
_this.thousandsSeparator = ".";
|
|
3959
3958
|
_this.alignTo = ng2CurrencyMask.AlignmentOptions.LEFT;
|
|
3960
3959
|
_this.allowNegative = true;
|
|
3961
3960
|
return _this;
|
|
@@ -3994,10 +3993,11 @@
|
|
|
3994
3993
|
* Update the options values according to the directive input values.
|
|
3995
3994
|
*/
|
|
3996
3995
|
BignumberInputDirective.prototype.updateVariables = function () {
|
|
3996
|
+
var _a;
|
|
3997
3997
|
this.options = {
|
|
3998
3998
|
align: this.alignTo,
|
|
3999
3999
|
decimalSeparator: this.decimalSeparator,
|
|
4000
|
-
thousandsSeparator: this.thousandsSeparator,
|
|
4000
|
+
thousandsSeparator: (_a = this.thousandsSeparator) !== null && _a !== void 0 ? _a : ".",
|
|
4001
4001
|
scale: this.scale || 0,
|
|
4002
4002
|
prefix: "",
|
|
4003
4003
|
suffix: "",
|
|
@@ -4009,8 +4009,9 @@
|
|
|
4009
4009
|
* Responsible to calculate the field maximum length considering the separators.
|
|
4010
4010
|
*/
|
|
4011
4011
|
BignumberInputDirective.prototype.calculateMaxLength = function () {
|
|
4012
|
+
var _a, _b;
|
|
4012
4013
|
var decSepLength = this.decimalSeparator.length;
|
|
4013
|
-
var thoSepLength = this.thousandsSeparator.length;
|
|
4014
|
+
var thoSepLength = (_b = (_a = this.thousandsSeparator) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 1;
|
|
4014
4015
|
var maxLength = this.precision + (this.scale ? decSepLength : 0);
|
|
4015
4016
|
maxLength += Math.ceil((this.precision - (this.scale ? this.scale : 0)) / 3 - 1) * thoSepLength;
|
|
4016
4017
|
this._maxLength = maxLength;
|