@seniorsistemas/angular-components 17.16.11 → 17.16.12

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.
@@ -11020,6 +11020,7 @@ var BignumberFieldComponent = /** @class */ (function (_super) {
11020
11020
  _this.field.onComplete(event);
11021
11021
  }
11022
11022
  });
11023
+ this.onScale();
11023
11024
  };
11024
11025
  BignumberFieldComponent.prototype.ngOnDestroy = function () {
11025
11026
  this.ngUnsubscribe.next();
@@ -11060,6 +11061,13 @@ var BignumberFieldComponent = /** @class */ (function (_super) {
11060
11061
  },
11061
11062
  });
11062
11063
  };
11064
+ BignumberFieldComponent.prototype.onScale = function () {
11065
+ // Currently, this component is used for the following types
11066
+ // FieldType.Number, FieldType.Integer and FieldType.Double
11067
+ if (isNullOrUndefined(this.field.scale)) {
11068
+ this.field.scale = this.field.type === FieldType.Integer ? 0 : 2;
11069
+ }
11070
+ };
11063
11071
  BignumberFieldComponent.prototype.ngAfterViewInit = function () {
11064
11072
  this.changeDetectorRef.detectChanges();
11065
11073
  };
@@ -11083,7 +11091,7 @@ var BignumberFieldComponent = /** @class */ (function (_super) {
11083
11091
  Output()
11084
11092
  ], BignumberFieldComponent.prototype, "onComplete", void 0);
11085
11093
  __decorate([
11086
- ViewChild('inputRef')
11094
+ ViewChild("inputRef")
11087
11095
  ], BignumberFieldComponent.prototype, "inputRef", void 0);
11088
11096
  BignumberFieldComponent = __decorate([
11089
11097
  Component({