@seniorsistemas/angular-components 17.16.11 → 17.16.13

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.
@@ -11165,6 +11165,7 @@
11165
11165
  _this.field.onComplete(event);
11166
11166
  }
11167
11167
  });
11168
+ this.onScale();
11168
11169
  };
11169
11170
  BignumberFieldComponent.prototype.ngOnDestroy = function () {
11170
11171
  this.ngUnsubscribe.next();
@@ -11205,6 +11206,13 @@
11205
11206
  },
11206
11207
  });
11207
11208
  };
11209
+ BignumberFieldComponent.prototype.onScale = function () {
11210
+ // Currently, this component is used for the following types
11211
+ // FieldType.Number, FieldType.Integer and FieldType.Double
11212
+ if (isNullOrUndefined(this.field.scale)) {
11213
+ this.field.scale = this.field.type === exports.FieldType.Integer ? 0 : 2;
11214
+ }
11215
+ };
11208
11216
  BignumberFieldComponent.prototype.ngAfterViewInit = function () {
11209
11217
  this.changeDetectorRef.detectChanges();
11210
11218
  };
@@ -11228,7 +11236,7 @@
11228
11236
  core.Output()
11229
11237
  ], BignumberFieldComponent.prototype, "onComplete", void 0);
11230
11238
  __decorate([
11231
- core.ViewChild('inputRef')
11239
+ core.ViewChild("inputRef")
11232
11240
  ], BignumberFieldComponent.prototype, "inputRef", void 0);
11233
11241
  BignumberFieldComponent = __decorate([
11234
11242
  core.Component({