@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
|
@@ -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(
|
|
11239
|
+
core.ViewChild("inputRef")
|
|
11232
11240
|
], BignumberFieldComponent.prototype, "inputRef", void 0);
|
|
11233
11241
|
BignumberFieldComponent = __decorate([
|
|
11234
11242
|
core.Component({
|
|
@@ -11298,11 +11306,11 @@
|
|
|
11298
11306
|
core.Input()
|
|
11299
11307
|
], CurrencyFieldComponent.prototype, "formControl", void 0);
|
|
11300
11308
|
__decorate([
|
|
11301
|
-
core.ViewChild(
|
|
11309
|
+
core.ViewChild("inputRef")
|
|
11302
11310
|
], CurrencyFieldComponent.prototype, "inputRef", void 0);
|
|
11303
11311
|
CurrencyFieldComponent = __decorate([
|
|
11304
11312
|
core.Component({
|
|
11305
|
-
template: "<s-field-label *ngIf=\"inputRef\" [field]=\"field\"\n [fieldContainerRef]=\"inputRef?.nativeElement\"></s-field-label>\n
|
|
11313
|
+
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"
|
|
11306
11314
|
})
|
|
11307
11315
|
], CurrencyFieldComponent);
|
|
11308
11316
|
return CurrencyFieldComponent;
|