@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
|
@@ -1099,7 +1099,7 @@ var CalendarLocaleOptions = /** @class */ (function () {
|
|
|
1099
1099
|
this.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
|
|
1100
1100
|
this.dayNamesShort = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
|
|
1101
1101
|
this.dayNamesMin = ["D", "S", "T", "Q", "Q", "S", "S"];
|
|
1102
|
-
this.monthNamesShort = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "
|
|
1102
|
+
this.monthNamesShort = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"];
|
|
1103
1103
|
this.monthNames = [
|
|
1104
1104
|
"Janeiro",
|
|
1105
1105
|
"Fevereiro",
|
|
@@ -3784,7 +3784,6 @@ var BignumberInputDirective = /** @class */ (function (_super) {
|
|
|
3784
3784
|
_this.precision = 15;
|
|
3785
3785
|
_this.scale = 0;
|
|
3786
3786
|
_this.decimalSeparator = ",";
|
|
3787
|
-
_this.thousandsSeparator = ".";
|
|
3788
3787
|
_this.alignTo = AlignmentOptions.LEFT;
|
|
3789
3788
|
_this.allowNegative = true;
|
|
3790
3789
|
return _this;
|
|
@@ -3823,10 +3822,11 @@ var BignumberInputDirective = /** @class */ (function (_super) {
|
|
|
3823
3822
|
* Update the options values according to the directive input values.
|
|
3824
3823
|
*/
|
|
3825
3824
|
BignumberInputDirective.prototype.updateVariables = function () {
|
|
3825
|
+
var _a;
|
|
3826
3826
|
this.options = {
|
|
3827
3827
|
align: this.alignTo,
|
|
3828
3828
|
decimalSeparator: this.decimalSeparator,
|
|
3829
|
-
thousandsSeparator: this.thousandsSeparator,
|
|
3829
|
+
thousandsSeparator: (_a = this.thousandsSeparator) !== null && _a !== void 0 ? _a : ".",
|
|
3830
3830
|
scale: this.scale || 0,
|
|
3831
3831
|
prefix: "",
|
|
3832
3832
|
suffix: "",
|
|
@@ -3838,8 +3838,9 @@ var BignumberInputDirective = /** @class */ (function (_super) {
|
|
|
3838
3838
|
* Responsible to calculate the field maximum length considering the separators.
|
|
3839
3839
|
*/
|
|
3840
3840
|
BignumberInputDirective.prototype.calculateMaxLength = function () {
|
|
3841
|
+
var _a, _b;
|
|
3841
3842
|
var decSepLength = this.decimalSeparator.length;
|
|
3842
|
-
var thoSepLength = this.thousandsSeparator.length;
|
|
3843
|
+
var thoSepLength = (_b = (_a = this.thousandsSeparator) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 1;
|
|
3843
3844
|
var maxLength = this.precision + (this.scale ? decSepLength : 0);
|
|
3844
3845
|
maxLength += Math.ceil((this.precision - (this.scale ? this.scale : 0)) / 3 - 1) * thoSepLength;
|
|
3845
3846
|
this._maxLength = maxLength;
|