@seniorsistemas/angular-components 17.16.10 → 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.
- package/bundles/seniorsistemas-angular-components.umd.js +11 -3
- 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/components/dynamic-form/components/fields/bignumber/bignumber-field.component.d.ts +1 -0
- package/esm2015/components/dynamic-form/components/fields/bignumber/bignumber-field.component.js +12 -3
- package/esm2015/components/dynamic-form/components/fields/currency/currency-field.component.js +3 -3
- package/esm5/components/dynamic-form/components/fields/bignumber/bignumber-field.component.js +12 -3
- package/esm5/components/dynamic-form/components/fields/currency/currency-field.component.js +3 -3
- package/fesm2015/seniorsistemas-angular-components.js +11 -3
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +11 -3
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -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(
|
|
11094
|
+
ViewChild("inputRef")
|
|
11087
11095
|
], BignumberFieldComponent.prototype, "inputRef", void 0);
|
|
11088
11096
|
BignumberFieldComponent = __decorate([
|
|
11089
11097
|
Component({
|
|
@@ -11153,11 +11161,11 @@ var CurrencyFieldComponent = /** @class */ (function (_super) {
|
|
|
11153
11161
|
Input()
|
|
11154
11162
|
], CurrencyFieldComponent.prototype, "formControl", void 0);
|
|
11155
11163
|
__decorate([
|
|
11156
|
-
ViewChild(
|
|
11164
|
+
ViewChild("inputRef")
|
|
11157
11165
|
], CurrencyFieldComponent.prototype, "inputRef", void 0);
|
|
11158
11166
|
CurrencyFieldComponent = __decorate([
|
|
11159
11167
|
Component({
|
|
11160
|
-
template: "<s-field-label *ngIf=\"inputRef\" [field]=\"field\"\n [fieldContainerRef]=\"inputRef?.nativeElement\"></s-field-label>\n
|
|
11168
|
+
template: "<s-field-label *ngIf=\"inputRef\" [field]=\"field\"\n [fieldContainerRef]=\"inputRef?.nativeElement\"></s-field-label>\n\n<div class=\"ui-inputgroup\">\n <span\n *ngIf=\"field.currency || field.numberLocaleOptions?.currencySymbol\"\n class=\"ui-inputgroup-addon\"\n >\n {{\n field.currency\n ? currencyService.getCurrencySymbol({\n currency: field.currency()\n })\n : field.numberLocaleOptions.currencySymbol\n }}\n </span>\n <input #inputRef\n *ngIf=\"!field.mask\"\n type=\"text\"\n [id]=\"field.id || field.name\"\n [name]=\"field.name\"\n [formControl]=\"formControl\"\n sNumberInput\n [precision]=\"\n field.precision\n ? isFunction(field.precision)\n ? trigger(field.precision)\n : field.precision\n : field.currency && field.currency()\n ? currencyService.currencies[field.currency()].precision\n : 15\n \"\n [scale]=\"\n field.scale\n ? isFunction(field.scale)\n ? trigger(field.scale)\n : field.scale\n : field.currency && field.currency()\n ? currencyService.currencies[field.currency()].scale\n : 2\n \"\n [decimalSeparator]=\"field.numberLocaleOptions.decimalSeparator\"\n [thousandsSeparator]=\"field.numberLocaleOptions.thousandsSeparator\"\n [alignTo]=\"field.alignTo\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"field.onFocus ? field.onFocus($event): null\" />\n <p-inputMask #inputRef\n *ngIf=\"field.mask\"\n type=\"text\"\n [inputId]=\"field.id || field.name\"\n [name]=\"field.name\"\n [formControl]=\"formControl\"\n [mask]=\"field.mask\"\n [placeholder]=\"field.placeholder\"\n slotChar=\"_\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n styleClass=\"mousetrap\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n (onFocus)=\"field.onFocus ? field.onFocus($event) : null\"\n (onComplete)=\"field.onComplete ? field.onComplete($event) : null\"\n (onInput)=\"field.onInput ? field.onInput($event) : null\"\n ></p-inputMask>\n</div>\n"
|
|
11161
11169
|
})
|
|
11162
11170
|
], CurrencyFieldComponent);
|
|
11163
11171
|
return CurrencyFieldComponent;
|