@seniorsistemas/angular-components 17.5.5 → 17.6.0

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.
Files changed (44) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +461 -378
  2. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
  4. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  5. package/components/dynamic-form/components/fields/bignumber/bignumber-field.module.d.ts +2 -0
  6. package/components/dynamic-form/components/fields/currency/currency-field.module.d.ts +2 -0
  7. package/components/dynamic-form/components/fields/number/number-field.component.d.ts +1 -1
  8. package/components/dynamic-form/components/fields/number/number-field.module.d.ts +2 -0
  9. package/components/dynamic-form/components/fields/text/text-field.module.d.ts +2 -0
  10. package/components/dynamic-form/configurations/addon-config.d.ts +4 -0
  11. package/esm2015/components/button/button.component.js +2 -2
  12. package/esm2015/components/dynamic-form/components/fields/bignumber/bignumber-field.component.js +96 -0
  13. package/esm2015/components/dynamic-form/components/fields/bignumber/bignumber-field.module.js +30 -0
  14. package/esm2015/components/dynamic-form/components/fields/currency/currency-field.module.js +20 -0
  15. package/esm2015/components/dynamic-form/components/fields/number/number-field.component.js +4 -4
  16. package/esm2015/components/dynamic-form/components/fields/number/number-field.module.js +32 -0
  17. package/esm2015/components/dynamic-form/components/fields/text/text-field.component.js +3 -3
  18. package/esm2015/components/dynamic-form/components/fields/text/text-field.module.js +30 -0
  19. package/esm2015/components/dynamic-form/configurations/addon-config.js +1 -1
  20. package/esm2015/components/dynamic-form/dynamic-form.js +9 -8
  21. package/esm2015/components/dynamic-form/dynamic-form.module.js +9 -13
  22. package/esm2015/seniorsistemas-angular-components.js +67 -60
  23. package/esm5/components/button/button.component.js +2 -2
  24. package/esm5/components/dynamic-form/components/fields/bignumber/bignumber-field.component.js +105 -0
  25. package/esm5/components/dynamic-form/components/fields/bignumber/bignumber-field.module.js +33 -0
  26. package/esm5/components/dynamic-form/components/fields/currency/currency-field.module.js +23 -0
  27. package/esm5/components/dynamic-form/components/fields/number/number-field.component.js +4 -4
  28. package/esm5/components/dynamic-form/components/fields/number/number-field.module.js +35 -0
  29. package/esm5/components/dynamic-form/components/fields/text/text-field.component.js +3 -3
  30. package/esm5/components/dynamic-form/components/fields/text/text-field.module.js +33 -0
  31. package/esm5/components/dynamic-form/configurations/addon-config.js +1 -1
  32. package/esm5/components/dynamic-form/dynamic-form.js +9 -8
  33. package/esm5/components/dynamic-form/dynamic-form.module.js +9 -13
  34. package/esm5/seniorsistemas-angular-components.js +67 -60
  35. package/fesm2015/seniorsistemas-angular-components.js +363 -299
  36. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  37. package/fesm5/seniorsistemas-angular-components.js +396 -320
  38. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  39. package/package.json +1 -1
  40. package/seniorsistemas-angular-components.d.ts +66 -59
  41. package/seniorsistemas-angular-components.metadata.json +1 -1
  42. package/esm2015/components/dynamic-form/components/fields/bignumber/number-field.component.js +0 -96
  43. package/esm5/components/dynamic-form/components/fields/bignumber/number-field.component.js +0 -105
  44. /package/components/dynamic-form/components/fields/bignumber/{number-field.component.d.ts → bignumber-field.component.d.ts} +0 -0
@@ -1529,7 +1529,7 @@
1529
1529
  ButtonComponent = ButtonComponent_1 = __decorate([
1530
1530
  core.Component({
1531
1531
  selector: "s-button",
1532
- template: "<p-tieredMenu [id]=\"id + '-menu'\" [popup]=\"true\" appendTo=\"body\" [baseZIndex]=\"baseZIndex\"></p-tieredMenu>\n\n<button\n [id]=\"id\"\n [type]=\"type\"\n [class]=\"styleClass\"\n [ngClass]=\"{\n 's-button-auxiliary': auxiliary,\n 's-button-with-icon': iconClass,\n 's-button-with-text': label,\n 's-button-empty': !iconClass && !label,\n 's-button-size-default': size === 'default',\n 's-button-size-small': size === 'small',\n 's-button-priority-default': priority === 'default',\n 's-button-priority-primary': priority === 'primary',\n 's-button-priority-secondary': priority === 'secondary',\n 's-button-priority-link': priority === 'link',\n 's-button-priority-danger': priority === 'danger',\n 's-button-multiple': (caret && (model && model.length)) || rightIconClass,\n 's-button-active': isOpen(),\n 's-button--slide': validateSlideButton(),\n 's-button--rotate-animation': isRotateAnimation()\n }\"\n [disabled]=\"disabled\"\n [pTooltip]=\"tooltip\"\n [tooltipPosition]=\"tooltipPosition\"\n showDelay=\"500\"\n [tooltipZIndex]=\"tooltipZIndex\"\n (click)=\"onClick.emit($event)\"\n (mouseenter)=\"updateTooltipZIndex()\"\n>\n <span \n *ngIf=\"iconClass\" \n [class]=\"iconClass\" \n [ngClass]=\"{ \n 's-button-icon': true,\n 's-button-icon-margin-right': !label && model && model.length\n }\" \n aria-hidden=\"true\">\n </span>\n <span \n *ngIf=\"label\" \n class=\"s-button-text\"\n [ngClass]=\"{\n 's-button-icon-margin-right': !!rightIconClass || (model && model.length),\n 's-button-icon-margin-left': !!iconClass\n }\">\n {{ label }}\n </span>\n <ng-content></ng-content>\n <span \n *ngIf=\"rightIconClass\" \n [class]=\"rightIconClass\" \n [ngClass]=\"{ 's-button-right-icon': true }\" \n aria-hidden=\"true\">\n </span>\n <span\n *ngIf=\"caret && (model && model.length)\" \n class=\"fa fa-fw fa-caret-down\"\n aria-hidden=\"true\">\n </span>\n</button>\n",
1532
+ template: "<p-tieredMenu [id]=\"id + '-menu'\" [popup]=\"true\" appendTo=\"body\" [baseZIndex]=\"baseZIndex\"></p-tieredMenu>\n\n<button\n [id]=\"id\"\n [type]=\"type\"\n [class]=\"styleClass\"\n [ngClass]=\"{\n 's-button-auxiliary': auxiliary,\n 's-button-with-icon': iconClass,\n 's-button-with-text': label,\n 's-button-empty': !iconClass && !label,\n 's-button-size-default': size === 'default',\n 's-button-size-small': size === 'small',\n 's-button-priority-default': priority === 'default',\n 's-button-priority-primary': priority === 'primary',\n 's-button-priority-secondary': priority === 'secondary',\n 's-button-priority-link': priority === 'link',\n 's-button-priority-danger': priority === 'danger',\n 's-button-multiple': (caret && (model && model.length)) || rightIconClass,\n 's-button-active': isOpen(),\n 's-button--slide': validateSlideButton(),\n 's-button--rotate-animation': isRotateAnimation()\n }\"\n [disabled]=\"disabled\"\n [pTooltip]=\"tooltip\"\n [tooltipPosition]=\"tooltipPosition\"\n showDelay=\"500\"\n [tooltipZIndex]=\"tooltipZIndex\"\n (click)=\"onClick.emit($event)\"\n (mouseenter)=\"updateTooltipZIndex()\">\n <span \n *ngIf=\"iconClass\" \n [class]=\"iconClass\" \n [ngClass]=\"{ \n 's-button-icon': true,\n 's-button-icon-margin-right': !label && model && model.length\n }\" \n aria-hidden=\"true\">\n </span>\n <span \n *ngIf=\"label\" \n class=\"s-button-text\"\n [ngClass]=\"{\n 's-button-icon-margin-right': !!rightIconClass || (model && model.length),\n 's-button-icon-margin-left': !!iconClass\n }\">\n {{ label }}\n </span>\n <ng-content></ng-content>\n <span \n *ngIf=\"rightIconClass\" \n [class]=\"rightIconClass\" \n [ngClass]=\"{ 's-button-right-icon': true }\" \n aria-hidden=\"true\">\n </span>\n <span\n *ngIf=\"caret && (model && model.length)\" \n class=\"fa fa-fw fa-caret-down\"\n aria-hidden=\"true\">\n </span>\n</button>\n",
1533
1533
  styles: ["button{-ms-flex-align:center;align-items:center;border:1px solid;border-radius:4px;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:34px;-ms-flex-pack:center;justify-content:center;max-width:100%;min-width:40px;outline:0;overflow:visible;padding:5px 10px;position:relative;text-decoration:none;text-transform:none;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out;vertical-align:bottom}button:disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}button:disabled,button:disabled *{cursor:text!important}button.s-button-auxiliary{border-radius:20px}button.s-button-size-small{height:25px;padding:0 20px}button.s-button-with-icon.s-button-multiple,button.s-button-with-text{min-width:80px}button.s-button-with-icon.s-button-with-text.s-button-multiple{min-width:100px}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button.s-button-with-icon.s-button-multiple:not(.s-button-with-text) .s-button-icon{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}button.s-button-multiple .s-button-text{-ms-flex-align:left;align-items:left;display:-ms-flexbox;display:flex;-ms-flex-pack:left;justify-content:left}button.s-button-with-icon .s-button-text{-ms-flex-align:right;align-items:right;display:-ms-flexbox;display:flex;-ms-flex-pack:right;justify-content:right}.s-button-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.s-button-menu-icon{right:10px;transition:transform .2s ease-out}.s-button-icon-margin-left{margin-left:10px}.s-button-icon-margin-right{margin-right:10px}.s-button-active .s-button-menu-icon{transform:rotateX(180deg)}button,button.s-button-priority-primary{background-color:#428bca;border-color:#428bca}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button .s-button-text,button.s-button-priority-primary .s-button-icon,button.s-button-priority-primary .s-button-menu-icon,button.s-button-priority-primary .s-button-right-icon,button.s-button-priority-primary .s-button-text{color:#fff}button.s-button-priority-primary:hover,button:hover{background-color:#2a6496}button.s-button-priority-primary:focus,button:focus{background-color:#2a6496;border-color:#22dce6}button.s-button-active:not(:disabled),button.s-button-priority-primary.s-button-active:not(:disabled),button.s-button-priority-primary:active:not(:disabled),button:active:not(:disabled){background-color:#245682;border-color:#245682}button.s-button-priority-secondary{background-color:#7892a1;border-color:#7892a1}button.s-button-priority-secondary .s-button-icon,button.s-button-priority-secondary .s-button-menu-icon,button.s-button-priority-secondary .s-button-right-icon,button.s-button-priority-secondary .s-button-text{color:#fff}button.s-button-priority-secondary:hover{background-color:#546b79}button.s-button-priority-secondary:focus{background-color:#546b79;border-color:#22dce6}button.s-button-priority-secondary.s-button-active:not(:disabled),button.s-button-priority-secondary:active:not(:disabled){background-color:#495e6a;border-color:#495e6a}button.s-button-priority-default{background-color:#fff;border-color:#ccc}button.s-button-priority-default .s-button-icon,button.s-button-priority-default .s-button-menu-icon,button.s-button-priority-default .s-button-right-icon,button.s-button-priority-default .s-button-text{color:#333}button.s-button-priority-default:hover{background-color:#d9d9d9}button.s-button-priority-default:focus{background-color:#d9d9d9;border-color:#22dce6}button.s-button-priority-default.s-button-active:not(:disabled),button.s-button-priority-default:active:not(:disabled){background-color:#ccc;border-color:#ccc}.s-button-priority-danger{background-color:#9c3a3a;border-color:#9c3a3a}.s-button-priority-danger .s-button-icon,.s-button-priority-danger .s-button-menu-icon,.s-button-priority-danger .s-button-right-icon,.s-button-priority-danger .s-button-text{color:#fff}.s-button-priority-danger:hover{background-color:#642525}.s-button-priority-danger:focus{background-color:#642525;border-color:#22dce6}.s-button-priority-danger.s-button-active:not(:disabled),.s-button-priority-danger:active:not(:disabled){background-color:#521e1e;border-color:#521e1e}button.s-button-priority-link{background-color:transparent;border-color:transparent}button.s-button-priority-link .s-button-icon,button.s-button-priority-link .s-button-menu-icon,button.s-button-priority-link .s-button-right-icon,button.s-button-priority-link .s-button-text{color:#428bca}button.s-button-priority-link:hover{background-color:transparent}button.s-button-priority-link:hover .s-button-icon,button.s-button-priority-link:hover .s-button-menu-icon,button.s-button-priority-link:hover .s-button-right-icon,button.s-button-priority-link:hover .s-button-text{color:#2a6496}button.s-button-priority-link:focus{border-color:#22dce6;background-color:transparent}button.s-button-priority-link:focus .s-button-icon,button.s-button-priority-link:focus .s-button-menu-icon,button.s-button-priority-link:focus .s-button-right-icon,button.s-button-priority-link:focus .s-button-text{color:#2a6496}button.s-button-priority-link.s-button-active:not(:disabled),button.s-button-priority-link:active:not(:disabled){background-color:transparent;border-color:transparent}button.s-button-priority-link.s-button-active:not(:disabled) .s-button-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-right-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-text,button.s-button-priority-link:active:not(:disabled) .s-button-icon,button.s-button-priority-link:active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link:active:not(:disabled) .s-button-right-icon,button.s-button-priority-link:active:not(:disabled) .s-button-text{color:#245682}.s-button--slide.s-button-with-icon.s-button-multiple,.s-button--slide.s-button-with-text{min-width:40px}.s-button--slide .s-button-text{position:absolute;opacity:0;width:0}.s-button--slide:hover .s-button-text{opacity:1;position:relative;transition:1s;width:auto}.s-button--slide:hover.s-button--rotate-animation .s-button-icon,.s-button--slide:hover.s-button--rotate-animation .s-button-right-icon{transform:rotate(360deg);transition:1.5s}"]
1534
1534
  })
1535
1535
  ], ButtonComponent);
@@ -9181,103 +9181,6 @@
9181
9181
  return AutocompleteFieldComponent;
9182
9182
  }());
9183
9183
 
9184
- var BignumberFieldComponent = /** @class */ (function (_super) {
9185
- __extends(BignumberFieldComponent, _super);
9186
- function BignumberFieldComponent(localeService) {
9187
- var _this = _super.call(this) || this;
9188
- _this.localeService = localeService;
9189
- _this.onInput = new core.EventEmitter();
9190
- _this.onFocus = new core.EventEmitter();
9191
- _this.onComplete = new core.EventEmitter();
9192
- _this.ngUnsubscribe = new rxjs.Subject();
9193
- return _this;
9194
- }
9195
- BignumberFieldComponent.prototype.ngOnInit = function () {
9196
- var _this = this;
9197
- this.onLocaleService();
9198
- this.onFocus.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
9199
- if (_this.field.onFocus) {
9200
- _this.field.onFocus(event);
9201
- }
9202
- });
9203
- this.onInput.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
9204
- if (_this.field.onInput) {
9205
- _this.field.onInput(event);
9206
- }
9207
- });
9208
- this.onComplete.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
9209
- if (_this.field.onComplete) {
9210
- _this.field.onComplete(event);
9211
- }
9212
- });
9213
- };
9214
- BignumberFieldComponent.prototype.ngOnDestroy = function () {
9215
- this.ngUnsubscribe.next();
9216
- this.ngUnsubscribe.complete();
9217
- };
9218
- Object.defineProperty(BignumberFieldComponent.prototype, "fieldType", {
9219
- get: function () {
9220
- return exports.FieldType;
9221
- },
9222
- enumerable: true,
9223
- configurable: true
9224
- });
9225
- BignumberFieldComponent.prototype.onLocaleService = function () {
9226
- var _this = this;
9227
- this.localeService
9228
- .getLocale()
9229
- .pipe(operators.first())
9230
- .subscribe({
9231
- next: function () {
9232
- var _a, _b, _c;
9233
- if (!((_a = _this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
9234
- _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { decimalSeparator: _this.localeService.getDecimalSeparator() });
9235
- }
9236
- if (!((_b = _this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
9237
- _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { thousandsSeparator: _this.localeService.getGroupingSeparator() });
9238
- }
9239
- if (!((_c = _this.field.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol)) {
9240
- _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { currencySymbol: _this.field.type === exports.FieldType.Integer || _this.field.type === exports.FieldType.Double ? "" : "R$" });
9241
- }
9242
- },
9243
- error: function () {
9244
- var _a;
9245
- return (_this.field.numberLocaleOptions = (_a = _this.field.numberLocaleOptions) !== null && _a !== void 0 ? _a : {
9246
- thousandsSeparator: ".",
9247
- decimalSeparator: ",",
9248
- currencySymbol: _this.field.type === exports.FieldType.Integer || _this.field.type === exports.FieldType.Double ? "" : "R$",
9249
- });
9250
- },
9251
- });
9252
- };
9253
- BignumberFieldComponent.ctorParameters = function () { return [
9254
- { type: LocaleService }
9255
- ]; };
9256
- __decorate([
9257
- core.Input()
9258
- ], BignumberFieldComponent.prototype, "field", void 0);
9259
- __decorate([
9260
- core.Input()
9261
- ], BignumberFieldComponent.prototype, "formControl", void 0);
9262
- __decorate([
9263
- core.Output()
9264
- ], BignumberFieldComponent.prototype, "onInput", void 0);
9265
- __decorate([
9266
- core.Output()
9267
- ], BignumberFieldComponent.prototype, "onFocus", void 0);
9268
- __decorate([
9269
- core.Output()
9270
- ], BignumberFieldComponent.prototype, "onComplete", void 0);
9271
- BignumberFieldComponent = __decorate([
9272
- core.Component({
9273
- template: "<p-inputMask\n *ngIf=\"field.mask; else noMask\"\n type=\"text\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [mask]=\"isFunction(field.mask) ? field.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)=\"onFocus.next($event)\"\n (onComplete)=\"onComplete.next($event)\"\n (onInput)=\"onInput.next($event)\"\n [formControl]=\"formControl\"\n [autoClear]=\"field.autoClear\">\n</p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n <ng-container *ngIf=\"field.leftAddon\">\n <span class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{field.leftAddon.label}}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container>\n\n <input\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sBignumberInput\n [allowNegative]=\"field.allowNegative\"\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [scale]=\"isFunction(field.scale) ? trigger(field.scale) : field.scale\"\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)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n <ng-container *ngIf=\"field.rightAddon\">\n <span class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{field.rightAddon.label}}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n",
9274
- encapsulation: core.ViewEncapsulation.None,
9275
- styles: ["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}"]
9276
- })
9277
- ], BignumberFieldComponent);
9278
- return BignumberFieldComponent;
9279
- }(BaseFieldComponent));
9280
-
9281
9184
  var BooleanFieldComponent = /** @class */ (function () {
9282
9185
  function BooleanFieldComponent() {
9283
9186
  }
@@ -9461,64 +9364,6 @@
9461
9364
  return CountryPhonePickerFieldComponent;
9462
9365
  }());
9463
9366
 
9464
- /**
9465
- * @deprecated Should use bignumber instead
9466
- */
9467
- var CurrencyFieldComponent = /** @class */ (function (_super) {
9468
- __extends(CurrencyFieldComponent, _super);
9469
- function CurrencyFieldComponent(localeService) {
9470
- var _this = _super.call(this) || this;
9471
- _this.localeService = localeService;
9472
- return _this;
9473
- }
9474
- CurrencyFieldComponent.prototype.ngOnInit = function () {
9475
- this.onLocaleService();
9476
- };
9477
- CurrencyFieldComponent.prototype.onLocaleService = function () {
9478
- var _this = this;
9479
- this.localeService
9480
- .getLocale()
9481
- .pipe(operators.first())
9482
- .subscribe({
9483
- next: function () {
9484
- var _a, _b, _c;
9485
- if (!((_a = _this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
9486
- _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { decimalSeparator: _this.localeService.getDecimalSeparator() });
9487
- }
9488
- if (!((_b = _this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
9489
- _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { thousandsSeparator: _this.localeService.getGroupingSeparator() });
9490
- }
9491
- if (!((_c = _this.field.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol)) {
9492
- _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { currencySymbol: "R$" });
9493
- }
9494
- },
9495
- error: function () {
9496
- var _a;
9497
- return (_this.field.numberLocaleOptions = (_a = _this.field.numberLocaleOptions) !== null && _a !== void 0 ? _a : {
9498
- thousandsSeparator: ".",
9499
- decimalSeparator: ",",
9500
- currencySymbol: "R$",
9501
- });
9502
- },
9503
- });
9504
- };
9505
- CurrencyFieldComponent.ctorParameters = function () { return [
9506
- { type: LocaleService }
9507
- ]; };
9508
- __decorate([
9509
- core.Input()
9510
- ], CurrencyFieldComponent.prototype, "field", void 0);
9511
- __decorate([
9512
- core.Input()
9513
- ], CurrencyFieldComponent.prototype, "formControl", void 0);
9514
- CurrencyFieldComponent = __decorate([
9515
- core.Component({
9516
- template: "<div class=\"ui-inputgroup\">\n <span\n *ngIf=\"field.numberLocaleOptions.currencySymbol\"\n class=\"ui-inputgroup-addon\">\n {{ field.numberLocaleOptions.currencySymbol }}\n </span>\n <input\n *ngIf=\"!field.mask\"\n type=\"text\"\n [id]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [formControl]=\"formControl\"\n sNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [scale]=\"isFunction(field.scale) ? trigger(field.scale) : field.scale\"\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\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"
9517
- })
9518
- ], CurrencyFieldComponent);
9519
- return CurrencyFieldComponent;
9520
- }(BaseFieldComponent));
9521
-
9522
9367
  var FieldsetComponent = /** @class */ (function () {
9523
9368
  function FieldsetComponent() {
9524
9369
  }
@@ -9579,107 +9424,6 @@
9579
9424
  return LookupFieldComponent;
9580
9425
  }());
9581
9426
 
9582
- var NumberFieldComponent = /** @class */ (function (_super) {
9583
- __extends(NumberFieldComponent, _super);
9584
- function NumberFieldComponent(localeService) {
9585
- var _this = _super.call(this) || this;
9586
- _this.localeService = localeService;
9587
- _this.onInput = new core.EventEmitter();
9588
- _this.onFocus = new core.EventEmitter();
9589
- _this.onComplete = new core.EventEmitter();
9590
- _this.ngUnsubscribe = new rxjs.Subject();
9591
- return _this;
9592
- }
9593
- NumberFieldComponent.prototype.ngOnInit = function () {
9594
- var _this = this;
9595
- this.onLocaleService();
9596
- this.onFocus.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
9597
- if (_this.field.onFocus)
9598
- _this.field.onFocus(event);
9599
- });
9600
- this.onInput.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
9601
- if (_this.field.onInput)
9602
- _this.field.onInput(event);
9603
- });
9604
- this.onComplete.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
9605
- if (_this.field.onComplete)
9606
- _this.field.onComplete(event);
9607
- });
9608
- };
9609
- NumberFieldComponent.prototype.ngOnDestroy = function () {
9610
- this.ngUnsubscribe.next();
9611
- this.ngUnsubscribe.complete();
9612
- };
9613
- Object.defineProperty(NumberFieldComponent.prototype, "numberAlignmentOption", {
9614
- get: function () {
9615
- return exports.NumberAlignmentOption;
9616
- },
9617
- enumerable: true,
9618
- configurable: true
9619
- });
9620
- Object.defineProperty(NumberFieldComponent.prototype, "fieldType", {
9621
- get: function () {
9622
- return exports.FieldType;
9623
- },
9624
- enumerable: true,
9625
- configurable: true
9626
- });
9627
- NumberFieldComponent.prototype.onLocaleService = function () {
9628
- var _this = this;
9629
- this.localeService
9630
- .getLocale()
9631
- .pipe(operators.first())
9632
- .subscribe({
9633
- next: function () {
9634
- var _a, _b, _c;
9635
- if (!((_a = _this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
9636
- _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { decimalSeparator: _this.localeService.getDecimalSeparator() });
9637
- }
9638
- if (!((_b = _this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
9639
- _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { thousandsSeparator: _this.localeService.getGroupingSeparator() });
9640
- }
9641
- if (!((_c = _this.field.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol)) {
9642
- _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { currencySymbol: "R$" });
9643
- }
9644
- },
9645
- error: function () {
9646
- var _a;
9647
- return (_this.field.numberLocaleOptions = (_a = _this.field.numberLocaleOptions) !== null && _a !== void 0 ? _a : {
9648
- thousandsSeparator: ".",
9649
- decimalSeparator: ",",
9650
- currencySymbol: "R$",
9651
- });
9652
- },
9653
- });
9654
- };
9655
- NumberFieldComponent.ctorParameters = function () { return [
9656
- { type: LocaleService }
9657
- ]; };
9658
- __decorate([
9659
- core.Input()
9660
- ], NumberFieldComponent.prototype, "field", void 0);
9661
- __decorate([
9662
- core.Input()
9663
- ], NumberFieldComponent.prototype, "formControl", void 0);
9664
- __decorate([
9665
- core.Output()
9666
- ], NumberFieldComponent.prototype, "onInput", void 0);
9667
- __decorate([
9668
- core.Output()
9669
- ], NumberFieldComponent.prototype, "onFocus", void 0);
9670
- __decorate([
9671
- core.Output()
9672
- ], NumberFieldComponent.prototype, "onComplete", void 0);
9673
- NumberFieldComponent = __decorate([
9674
- core.Component({
9675
- template: "<p-inputMask\n *ngIf=\"field.mask; else noMask\"\n type=\"text\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [mask]=\"isFunction(field.mask) ? field.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)=\"onFocus.next($event)\"\n (onComplete)=\"onComplete.next($event)\"\n (onInput)=\"onInput.next($event)\"\n [formControl]=\"formControl\" >\n</p-inputMask>\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n <ng-container *ngIf=\"field.leftAddon\">\n <span class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{field.leftAddon.label}}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container>\n\n <ng-container *ngTemplateOutlet=\"field.type === fieldType.Double && field.alignTo === numberAlignmentOption.LEFT ? localizedNumber : input\"></ng-container>\n\n <ng-container *ngIf=\"field.rightAddon\">\n <span class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{field.rightAddon.label}}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n<ng-template #input>\n <input\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [scale]=\"isFunction(field.scale) ? trigger(field.scale) : field.scale\"\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)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n<ng-template #localizedNumber>\n <input\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sLocalizedNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [decimalSeparator]=\"field.numberLocaleOptions.decimalSeparator\"\n [thousandsSeparator]=\"field.numberLocaleOptions.thousandsSeparator\"\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)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n",
9676
- encapsulation: core.ViewEncapsulation.None,
9677
- styles: ["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}"]
9678
- })
9679
- ], NumberFieldComponent);
9680
- return NumberFieldComponent;
9681
- }(BaseFieldComponent));
9682
-
9683
9427
  var PasswordFieldComponent = /** @class */ (function () {
9684
9428
  function PasswordFieldComponent() {
9685
9429
  this.onInput = new core.EventEmitter();
@@ -10038,60 +9782,6 @@
10038
9782
  return TextAreaIAFieldComponent;
10039
9783
  }());
10040
9784
 
10041
- var TextFieldComponent = /** @class */ (function (_super) {
10042
- __extends(TextFieldComponent, _super);
10043
- function TextFieldComponent() {
10044
- var _this = _super !== null && _super.apply(this, arguments) || this;
10045
- _this.onInput = new core.EventEmitter();
10046
- _this.onFocus = new core.EventEmitter();
10047
- _this.onComplete = new core.EventEmitter();
10048
- _this.ngUnsubscribe = new rxjs.Subject();
10049
- return _this;
10050
- }
10051
- TextFieldComponent.prototype.ngOnInit = function () {
10052
- var _this = this;
10053
- this.onFocus.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
10054
- if (_this.field.onFocus)
10055
- _this.field.onFocus(event);
10056
- });
10057
- this.onInput.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
10058
- if (_this.field.onInput)
10059
- _this.field.onInput(event);
10060
- });
10061
- this.onComplete.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
10062
- if (_this.field.onComplete)
10063
- _this.field.onComplete(event);
10064
- });
10065
- };
10066
- TextFieldComponent.prototype.ngOnDestroy = function () {
10067
- this.ngUnsubscribe.next();
10068
- this.ngUnsubscribe.complete();
10069
- };
10070
- __decorate([
10071
- core.Input()
10072
- ], TextFieldComponent.prototype, "field", void 0);
10073
- __decorate([
10074
- core.Input()
10075
- ], TextFieldComponent.prototype, "formControl", void 0);
10076
- __decorate([
10077
- core.Output()
10078
- ], TextFieldComponent.prototype, "onInput", void 0);
10079
- __decorate([
10080
- core.Output()
10081
- ], TextFieldComponent.prototype, "onFocus", void 0);
10082
- __decorate([
10083
- core.Output()
10084
- ], TextFieldComponent.prototype, "onComplete", void 0);
10085
- TextFieldComponent = __decorate([
10086
- core.Component({
10087
- template: "<p-inputMask\n *ngIf=\"field.mask; else noMask\"\n [type]=\"field.inputType || 'text'\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [mask]=\"isFunction(field.mask) ? field.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)=\"onFocus.next($event)\"\n (onComplete)=\"onComplete.next($event)\"\n (onInput)=\"onInput.next($event)\"\n [formControl]=\"formControl\">\n</p-inputMask>\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n <ng-container *ngIf=\"field.leftAddon\">\n <span class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{field.leftAddon.label}}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"field.keyFilter ? inputKeyFilter : input\"></ng-container>\n <ng-container *ngIf=\"field.rightAddon\">\n <span class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{field.rightAddon.label}}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n<ng-template #input>\n <input\n [type]=\"field.inputType || 'text'\"\n [id]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n [maxLength]=\"field.maxLength\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n (input)=\"onInput.next($event)\"\n [formControl]=\"formControl\"\n [ngStyle]=\"field.style\" />\n</ng-template>\n<ng-template #inputKeyFilter>\n <input\n #inputText\n [type]=\"field.inputType || 'text'\"\n [id]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n [maxLength]=\"field.maxLength\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n (input)=\"onInput.next($event)\"\n [pKeyFilter]=\"field.keyFilter\"\n [formControl]=\"formControl\"\n [ngStyle]=\"field.style\" />\n</ng-template>\n",
10088
- encapsulation: core.ViewEncapsulation.None,
10089
- styles: ["s-text-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-text-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}"]
10090
- })
10091
- ], TextFieldComponent);
10092
- return TextFieldComponent;
10093
- }(BaseFieldComponent));
10094
-
10095
9785
  var RowComponent = /** @class */ (function () {
10096
9786
  function RowComponent() {
10097
9787
  }
@@ -10171,6 +9861,215 @@
10171
9861
  StructureType["Section"] = "Section";
10172
9862
  })(StructureType || (StructureType = {}));
10173
9863
 
9864
+ var BignumberFieldComponent = /** @class */ (function (_super) {
9865
+ __extends(BignumberFieldComponent, _super);
9866
+ function BignumberFieldComponent(localeService) {
9867
+ var _this = _super.call(this) || this;
9868
+ _this.localeService = localeService;
9869
+ _this.onInput = new core.EventEmitter();
9870
+ _this.onFocus = new core.EventEmitter();
9871
+ _this.onComplete = new core.EventEmitter();
9872
+ _this.ngUnsubscribe = new rxjs.Subject();
9873
+ return _this;
9874
+ }
9875
+ BignumberFieldComponent.prototype.ngOnInit = function () {
9876
+ var _this = this;
9877
+ this.onLocaleService();
9878
+ this.onFocus.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
9879
+ if (_this.field.onFocus) {
9880
+ _this.field.onFocus(event);
9881
+ }
9882
+ });
9883
+ this.onInput.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
9884
+ if (_this.field.onInput) {
9885
+ _this.field.onInput(event);
9886
+ }
9887
+ });
9888
+ this.onComplete.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
9889
+ if (_this.field.onComplete) {
9890
+ _this.field.onComplete(event);
9891
+ }
9892
+ });
9893
+ };
9894
+ BignumberFieldComponent.prototype.ngOnDestroy = function () {
9895
+ this.ngUnsubscribe.next();
9896
+ this.ngUnsubscribe.complete();
9897
+ };
9898
+ Object.defineProperty(BignumberFieldComponent.prototype, "fieldType", {
9899
+ get: function () {
9900
+ return exports.FieldType;
9901
+ },
9902
+ enumerable: true,
9903
+ configurable: true
9904
+ });
9905
+ BignumberFieldComponent.prototype.onLocaleService = function () {
9906
+ var _this = this;
9907
+ this.localeService
9908
+ .getLocale()
9909
+ .pipe(operators.first())
9910
+ .subscribe({
9911
+ next: function () {
9912
+ var _a, _b, _c;
9913
+ if (!((_a = _this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
9914
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { decimalSeparator: _this.localeService.getDecimalSeparator() });
9915
+ }
9916
+ if (!((_b = _this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
9917
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { thousandsSeparator: _this.localeService.getGroupingSeparator() });
9918
+ }
9919
+ if (!((_c = _this.field.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol)) {
9920
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { currencySymbol: _this.field.type === exports.FieldType.Integer || _this.field.type === exports.FieldType.Double ? "" : "R$" });
9921
+ }
9922
+ },
9923
+ error: function () {
9924
+ var _a;
9925
+ return (_this.field.numberLocaleOptions = (_a = _this.field.numberLocaleOptions) !== null && _a !== void 0 ? _a : {
9926
+ thousandsSeparator: ".",
9927
+ decimalSeparator: ",",
9928
+ currencySymbol: _this.field.type === exports.FieldType.Integer || _this.field.type === exports.FieldType.Double ? "" : "R$",
9929
+ });
9930
+ },
9931
+ });
9932
+ };
9933
+ BignumberFieldComponent.ctorParameters = function () { return [
9934
+ { type: LocaleService }
9935
+ ]; };
9936
+ __decorate([
9937
+ core.Input()
9938
+ ], BignumberFieldComponent.prototype, "field", void 0);
9939
+ __decorate([
9940
+ core.Input()
9941
+ ], BignumberFieldComponent.prototype, "formControl", void 0);
9942
+ __decorate([
9943
+ core.Output()
9944
+ ], BignumberFieldComponent.prototype, "onInput", void 0);
9945
+ __decorate([
9946
+ core.Output()
9947
+ ], BignumberFieldComponent.prototype, "onFocus", void 0);
9948
+ __decorate([
9949
+ core.Output()
9950
+ ], BignumberFieldComponent.prototype, "onComplete", void 0);
9951
+ BignumberFieldComponent = __decorate([
9952
+ core.Component({
9953
+ template: "<p-inputMask\n *ngIf=\"field.mask; else noMask\"\n type=\"text\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [mask]=\"isFunction(field.mask) ? field.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)=\"onFocus.next($event)\"\n (onComplete)=\"onComplete.next($event)\"\n (onInput)=\"onInput.next($event)\"\n [formControl]=\"formControl\"\n [autoClear]=\"field.autoClear\">\n</p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n <ng-container *ngIf=\"field.leftAddon\">\n <span *ngIf=\"field.leftAddon.callback\" class=\"addon-button addon-button--left\">\n <s-button\n [label]=\"field.leftAddon.label\"\n [iconClass]=\"field.leftAddon.icon\"\n [priority]=\"field.leftAddon.priority\"\n [disabled]=\"isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled\"\n (onClick)=\"field.leftAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.leftAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{field.leftAddon.label}}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container>\n\n <input\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sBignumberInput\n [allowNegative]=\"field.allowNegative\"\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [scale]=\"isFunction(field.scale) ? trigger(field.scale) : field.scale\"\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)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n <ng-container *ngIf=\"field.rightAddon\">\n <span *ngIf=\"field.rightAddon.callback\" class=\"addon-button addon-button--right\">\n <s-button\n [label]=\"field.rightAddon.label\"\n [iconClass]=\"field.rightAddon.icon\"\n [priority]=\"field.rightAddon.priority\"\n [disabled]=\"isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled\"\n (onClick)=\"field.rightAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.rightAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{field.rightAddon.label}}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n",
9954
+ encapsulation: core.ViewEncapsulation.None,
9955
+ styles: ["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px!important}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]
9956
+ })
9957
+ ], BignumberFieldComponent);
9958
+ return BignumberFieldComponent;
9959
+ }(BaseFieldComponent));
9960
+
9961
+ /**
9962
+ * @deprecated Should use bignumber instead
9963
+ */
9964
+ var CurrencyFieldComponent = /** @class */ (function (_super) {
9965
+ __extends(CurrencyFieldComponent, _super);
9966
+ function CurrencyFieldComponent(localeService) {
9967
+ var _this = _super.call(this) || this;
9968
+ _this.localeService = localeService;
9969
+ return _this;
9970
+ }
9971
+ CurrencyFieldComponent.prototype.ngOnInit = function () {
9972
+ this.onLocaleService();
9973
+ };
9974
+ CurrencyFieldComponent.prototype.onLocaleService = function () {
9975
+ var _this = this;
9976
+ this.localeService
9977
+ .getLocale()
9978
+ .pipe(operators.first())
9979
+ .subscribe({
9980
+ next: function () {
9981
+ var _a, _b, _c;
9982
+ if (!((_a = _this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
9983
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { decimalSeparator: _this.localeService.getDecimalSeparator() });
9984
+ }
9985
+ if (!((_b = _this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
9986
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { thousandsSeparator: _this.localeService.getGroupingSeparator() });
9987
+ }
9988
+ if (!((_c = _this.field.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol)) {
9989
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { currencySymbol: "R$" });
9990
+ }
9991
+ },
9992
+ error: function () {
9993
+ var _a;
9994
+ return (_this.field.numberLocaleOptions = (_a = _this.field.numberLocaleOptions) !== null && _a !== void 0 ? _a : {
9995
+ thousandsSeparator: ".",
9996
+ decimalSeparator: ",",
9997
+ currencySymbol: "R$",
9998
+ });
9999
+ },
10000
+ });
10001
+ };
10002
+ CurrencyFieldComponent.ctorParameters = function () { return [
10003
+ { type: LocaleService }
10004
+ ]; };
10005
+ __decorate([
10006
+ core.Input()
10007
+ ], CurrencyFieldComponent.prototype, "field", void 0);
10008
+ __decorate([
10009
+ core.Input()
10010
+ ], CurrencyFieldComponent.prototype, "formControl", void 0);
10011
+ CurrencyFieldComponent = __decorate([
10012
+ core.Component({
10013
+ template: "<div class=\"ui-inputgroup\">\n <span\n *ngIf=\"field.numberLocaleOptions.currencySymbol\"\n class=\"ui-inputgroup-addon\">\n {{ field.numberLocaleOptions.currencySymbol }}\n </span>\n <input\n *ngIf=\"!field.mask\"\n type=\"text\"\n [id]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [formControl]=\"formControl\"\n sNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [scale]=\"isFunction(field.scale) ? trigger(field.scale) : field.scale\"\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\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"
10014
+ })
10015
+ ], CurrencyFieldComponent);
10016
+ return CurrencyFieldComponent;
10017
+ }(BaseFieldComponent));
10018
+
10019
+ var TextFieldComponent = /** @class */ (function (_super) {
10020
+ __extends(TextFieldComponent, _super);
10021
+ function TextFieldComponent() {
10022
+ var _this = _super !== null && _super.apply(this, arguments) || this;
10023
+ _this.onInput = new core.EventEmitter();
10024
+ _this.onFocus = new core.EventEmitter();
10025
+ _this.onComplete = new core.EventEmitter();
10026
+ _this.ngUnsubscribe = new rxjs.Subject();
10027
+ return _this;
10028
+ }
10029
+ TextFieldComponent.prototype.ngOnInit = function () {
10030
+ var _this = this;
10031
+ this.onFocus.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
10032
+ if (_this.field.onFocus)
10033
+ _this.field.onFocus(event);
10034
+ });
10035
+ this.onInput.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
10036
+ if (_this.field.onInput)
10037
+ _this.field.onInput(event);
10038
+ });
10039
+ this.onComplete.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
10040
+ if (_this.field.onComplete)
10041
+ _this.field.onComplete(event);
10042
+ });
10043
+ };
10044
+ TextFieldComponent.prototype.ngOnDestroy = function () {
10045
+ this.ngUnsubscribe.next();
10046
+ this.ngUnsubscribe.complete();
10047
+ };
10048
+ __decorate([
10049
+ core.Input()
10050
+ ], TextFieldComponent.prototype, "field", void 0);
10051
+ __decorate([
10052
+ core.Input()
10053
+ ], TextFieldComponent.prototype, "formControl", void 0);
10054
+ __decorate([
10055
+ core.Output()
10056
+ ], TextFieldComponent.prototype, "onInput", void 0);
10057
+ __decorate([
10058
+ core.Output()
10059
+ ], TextFieldComponent.prototype, "onFocus", void 0);
10060
+ __decorate([
10061
+ core.Output()
10062
+ ], TextFieldComponent.prototype, "onComplete", void 0);
10063
+ TextFieldComponent = __decorate([
10064
+ core.Component({
10065
+ template: "<p-inputMask\n *ngIf=\"field.mask; else noMask\"\n [type]=\"field.inputType || 'text'\"\n [inputId]=\"field.id || field.name\"\n [name]=\"field.name\"\n [mask]=\"isFunction(field.mask) ? field.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)=\"onFocus.next($event)\"\n (onComplete)=\"onComplete.next($event)\"\n (onInput)=\"onInput.next($event)\"\n [formControl]=\"formControl\">\n</p-inputMask>\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n\n <ng-container *ngIf=\"field.leftAddon\">\n <span *ngIf=\"field.leftAddon.callback\" class=\"addon-button addon-button--left\">\n <s-button\n [label]=\"field.leftAddon.label\"\n [iconClass]=\"field.leftAddon.icon\"\n [priority]=\"field.leftAddon.priority\"\n [disabled]=\"isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled(): field.leftAddon.disabled\"\n (onClick)=\"field.leftAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.leftAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{ field.leftAddon.label }}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container> \n\n <ng-container *ngTemplateOutlet=\"field.keyFilter ? inputKeyFilter : input\"></ng-container>\n\n <ng-container *ngIf=\"field.rightAddon\">\n <span *ngIf=\"field.rightAddon.callback\" class=\"addon-button addon-button--right\">\n <s-button\n [label]=\"field.rightAddon.label\"\n [iconClass]=\"field.rightAddon.icon\"\n [priority]=\"field.rightAddon.priority\"\n [disabled]=\"isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled\"\n (onClick)=\"field.rightAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.rightAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{ field.rightAddon.label }}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container> \n </div>\n </ng-container>\n</ng-template>\n<ng-template #input>\n <input\n [type]=\"field.inputType || 'text'\"\n [id]=\"field.id || field.name\"\n [name]=\"field.name\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n [maxLength]=\"field.maxLength\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n (input)=\"onInput.next($event)\"\n [formControl]=\"formControl\"\n [ngStyle]=\"field.style\" />\n</ng-template>\n<ng-template #inputKeyFilter>\n <input\n #inputText\n [type]=\"field.inputType || 'text'\"\n [id]=\"field.id || field.name\"\n [name]=\"field.name\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [placeholder]=\"field.placeholder\"\n [showDelay]=\"500\"\n [maxLength]=\"field.maxLength\"\n pInputText\n [autocomplete]=\"field.browserAutocomplete ? 'on' : 'off'\"\n [ngClass]=\"'mousetrap'\"\n (blur)=\"field.onBlur ? field.onBlur($event) : null\"\n (focus)=\"onFocus.next($event)\"\n (input)=\"onInput.next($event)\"\n [pKeyFilter]=\"field.keyFilter\"\n [formControl]=\"formControl\"\n [ngStyle]=\"field.style\" />\n</ng-template>\n",
10066
+ encapsulation: core.ViewEncapsulation.None,
10067
+ styles: ["s-text-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-text-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]
10068
+ })
10069
+ ], TextFieldComponent);
10070
+ return TextFieldComponent;
10071
+ }(BaseFieldComponent));
10072
+
10174
10073
  var DynamicForm = /** @class */ (function () {
10175
10074
  function DynamicForm(_a) {
10176
10075
  var group = _a.group, errorMessages = _a.errorMessages;
@@ -10404,6 +10303,187 @@
10404
10303
  return DynamicFormDirective;
10405
10304
  }());
10406
10305
 
10306
+ var TextFieldModule = /** @class */ (function () {
10307
+ function TextFieldModule() {
10308
+ }
10309
+ TextFieldModule = __decorate([
10310
+ core.NgModule({
10311
+ imports: [
10312
+ common.CommonModule,
10313
+ forms.FormsModule,
10314
+ forms.ReactiveFormsModule,
10315
+ ButtonModule,
10316
+ TooltipModule,
10317
+ inputmask.InputMaskModule,
10318
+ inputtext.InputTextModule,
10319
+ keyfilter.KeyFilterModule,
10320
+ ],
10321
+ declarations: [TextFieldComponent],
10322
+ exports: [TextFieldComponent],
10323
+ })
10324
+ ], TextFieldModule);
10325
+ return TextFieldModule;
10326
+ }());
10327
+
10328
+ var NumberFieldComponent = /** @class */ (function (_super) {
10329
+ __extends(NumberFieldComponent, _super);
10330
+ function NumberFieldComponent(localeService) {
10331
+ var _this = _super.call(this) || this;
10332
+ _this.localeService = localeService;
10333
+ _this.onInput = new core.EventEmitter();
10334
+ _this.onFocus = new core.EventEmitter();
10335
+ _this.onComplete = new core.EventEmitter();
10336
+ _this.ngUnsubscribe = new rxjs.Subject();
10337
+ return _this;
10338
+ }
10339
+ NumberFieldComponent.prototype.ngOnInit = function () {
10340
+ var _this = this;
10341
+ this.onLocaleService();
10342
+ this.onFocus.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
10343
+ if (_this.field.onFocus)
10344
+ _this.field.onFocus(event);
10345
+ });
10346
+ this.onInput.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
10347
+ if (_this.field.onInput)
10348
+ _this.field.onInput(event);
10349
+ });
10350
+ this.onComplete.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
10351
+ if (_this.field.onComplete)
10352
+ _this.field.onComplete(event);
10353
+ });
10354
+ };
10355
+ NumberFieldComponent.prototype.ngOnDestroy = function () {
10356
+ this.ngUnsubscribe.next();
10357
+ this.ngUnsubscribe.complete();
10358
+ };
10359
+ Object.defineProperty(NumberFieldComponent.prototype, "numberAlignmentOption", {
10360
+ get: function () {
10361
+ return exports.NumberAlignmentOption;
10362
+ },
10363
+ enumerable: true,
10364
+ configurable: true
10365
+ });
10366
+ Object.defineProperty(NumberFieldComponent.prototype, "fieldType", {
10367
+ get: function () {
10368
+ return exports.FieldType;
10369
+ },
10370
+ enumerable: true,
10371
+ configurable: true
10372
+ });
10373
+ NumberFieldComponent.prototype.onLocaleService = function () {
10374
+ var _this = this;
10375
+ this.localeService
10376
+ .getLocale()
10377
+ .pipe(operators.first())
10378
+ .subscribe({
10379
+ next: function () {
10380
+ var _a, _b, _c;
10381
+ if (!((_a = _this.field.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator)) {
10382
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { decimalSeparator: _this.localeService.getDecimalSeparator() });
10383
+ }
10384
+ if (!((_b = _this.field.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator)) {
10385
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { thousandsSeparator: _this.localeService.getGroupingSeparator() });
10386
+ }
10387
+ if (!((_c = _this.field.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol)) {
10388
+ _this.field.numberLocaleOptions = __assign(__assign({}, _this.field.numberLocaleOptions), { currencySymbol: "R$" });
10389
+ }
10390
+ },
10391
+ error: function () {
10392
+ var _a;
10393
+ return (_this.field.numberLocaleOptions = (_a = _this.field.numberLocaleOptions) !== null && _a !== void 0 ? _a : {
10394
+ thousandsSeparator: ".",
10395
+ decimalSeparator: ",",
10396
+ currencySymbol: "R$",
10397
+ });
10398
+ },
10399
+ });
10400
+ };
10401
+ NumberFieldComponent.ctorParameters = function () { return [
10402
+ { type: LocaleService }
10403
+ ]; };
10404
+ __decorate([
10405
+ core.Input()
10406
+ ], NumberFieldComponent.prototype, "field", void 0);
10407
+ __decorate([
10408
+ core.Input()
10409
+ ], NumberFieldComponent.prototype, "formControl", void 0);
10410
+ __decorate([
10411
+ core.Output()
10412
+ ], NumberFieldComponent.prototype, "onInput", void 0);
10413
+ __decorate([
10414
+ core.Output()
10415
+ ], NumberFieldComponent.prototype, "onFocus", void 0);
10416
+ __decorate([
10417
+ core.Output()
10418
+ ], NumberFieldComponent.prototype, "onComplete", void 0);
10419
+ NumberFieldComponent = __decorate([
10420
+ core.Component({
10421
+ template: "<p-inputMask\n *ngIf=\"field.mask; else noMask\"\n type=\"text\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [mask]=\"isFunction(field.mask) ? field.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)=\"onFocus.next($event)\"\n (onComplete)=\"onComplete.next($event)\"\n (onInput)=\"onInput.next($event)\"\n [formControl]=\"formControl\" >\n</p-inputMask>\n<ng-template #noMask>\n <ng-container>\n <div class=\"ui-inputgroup\">\n <ng-container *ngIf=\"field.leftAddon\">\n <span *ngIf=\"field.leftAddon.callback\" class=\"addon-button addon-button--left\">\n <s-button\n [label]=\"field.leftAddon.label\"\n [iconClass]=\"field.leftAddon.icon\"\n [priority]=\"field.leftAddon.priority\"\n [disabled]=\"isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled\"\n (onClick)=\"field.leftAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.leftAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.leftAddon.label\">{{field.leftAddon.label}}</span>\n <span *ngIf=\"!field.leftAddon.label\" [ngClass]=\"field.leftAddon.icon\"></span>\n </span>\n </ng-container>\n\n <ng-container *ngTemplateOutlet=\"field.type === fieldType.Double && field.alignTo === numberAlignmentOption.LEFT ? localizedNumber : input\"></ng-container>\n\n <ng-container *ngIf=\"field.rightAddon\">\n <span *ngIf=\"field.rightAddon.callback\" class=\"addon-button addon-button--right\">\n <s-button\n [label]=\"field.rightAddon.label\"\n [iconClass]=\"field.rightAddon.icon\"\n [priority]=\"field.rightAddon.priority\"\n [disabled]=\"isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled\"\n (onClick)=\"field.rightAddon.callback()\">\n </s-button>\n </span>\n <span *ngIf=\"!field.rightAddon.callback\" class=\"ui-inputgroup-addon\">\n <span *ngIf=\"field.rightAddon.label\">{{field.rightAddon.label}}</span>\n <span *ngIf=\"!field.rightAddon.label\" [ngClass]=\"field.rightAddon.icon\"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n<ng-template #input>\n <input\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [scale]=\"isFunction(field.scale) ? trigger(field.scale) : field.scale\"\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)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n<ng-template #localizedNumber>\n <input\n [id]=\"(field.id || field.name)\"\n type=\"text\"\n [name]=\"field.name\"\n sLocalizedNumberInput\n [precision]=\"isFunction(field.precision) ? trigger(field.precision) : field.precision\"\n [decimalSeparator]=\"field.numberLocaleOptions.decimalSeparator\"\n [thousandsSeparator]=\"field.numberLocaleOptions.thousandsSeparator\"\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)=\"onFocus.next($event)\"\n [formControl]=\"formControl\" />\n</ng-template>\n",
10422
+ encapsulation: core.ViewEncapsulation.None,
10423
+ styles: ["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]
10424
+ })
10425
+ ], NumberFieldComponent);
10426
+ return NumberFieldComponent;
10427
+ }(BaseFieldComponent));
10428
+
10429
+ var NumberFieldModule = /** @class */ (function () {
10430
+ function NumberFieldModule() {
10431
+ }
10432
+ NumberFieldModule = __decorate([
10433
+ core.NgModule({
10434
+ imports: [
10435
+ common.CommonModule,
10436
+ forms.FormsModule,
10437
+ forms.ReactiveFormsModule,
10438
+ LocalizedNumberInputModule,
10439
+ NumberInputModule,
10440
+ ButtonModule,
10441
+ TooltipModule,
10442
+ inputmask.InputMaskModule,
10443
+ inputtext.InputTextModule,
10444
+ ],
10445
+ declarations: [NumberFieldComponent],
10446
+ exports: [NumberFieldComponent],
10447
+ })
10448
+ ], NumberFieldModule);
10449
+ return NumberFieldModule;
10450
+ }());
10451
+
10452
+ var CurrencyFieldModule = /** @class */ (function () {
10453
+ function CurrencyFieldModule() {
10454
+ }
10455
+ CurrencyFieldModule = __decorate([
10456
+ core.NgModule({
10457
+ imports: [common.CommonModule, forms.FormsModule, forms.ReactiveFormsModule, NumberInputModule, TooltipModule, inputmask.InputMaskModule, inputtext.InputTextModule],
10458
+ declarations: [CurrencyFieldComponent],
10459
+ exports: [CurrencyFieldComponent],
10460
+ })
10461
+ ], CurrencyFieldModule);
10462
+ return CurrencyFieldModule;
10463
+ }());
10464
+
10465
+ var NumberFieldModule$1 = /** @class */ (function () {
10466
+ function NumberFieldModule() {
10467
+ }
10468
+ NumberFieldModule = __decorate([
10469
+ core.NgModule({
10470
+ imports: [
10471
+ common.CommonModule,
10472
+ forms.FormsModule,
10473
+ forms.ReactiveFormsModule,
10474
+ ButtonModule,
10475
+ BignumberInputModule,
10476
+ TooltipModule,
10477
+ inputmask.InputMaskModule,
10478
+ inputtext.InputTextModule,
10479
+ ],
10480
+ declarations: [BignumberFieldComponent],
10481
+ exports: [BignumberFieldComponent],
10482
+ })
10483
+ ], NumberFieldModule);
10484
+ return NumberFieldModule;
10485
+ }());
10486
+
10407
10487
  var DynamicFormModule = /** @class */ (function () {
10408
10488
  function DynamicFormModule() {
10409
10489
  }
@@ -10452,16 +10532,18 @@
10452
10532
  PasswordStrengthModule,
10453
10533
  slider.SliderModule,
10454
10534
  core$1.TranslateModule.forChild(),
10535
+ TextFieldModule,
10536
+ NumberFieldModule,
10537
+ CurrencyFieldModule,
10538
+ NumberFieldModule$1,
10455
10539
  ],
10456
10540
  declarations: [
10457
10541
  AutocompleteFieldComponent,
10458
- BignumberFieldComponent,
10459
10542
  BooleanFieldComponent,
10460
10543
  BooleanSwitchFieldComponent,
10461
10544
  CalendarFieldComponent,
10462
10545
  ChipsFieldComponent,
10463
10546
  CountryPhonePickerFieldComponent,
10464
- CurrencyFieldComponent,
10465
10547
  DynamicFieldComponent,
10466
10548
  DynamicFormComponent,
10467
10549
  DynamicFormDirective,
@@ -10469,7 +10551,6 @@
10469
10551
  FileUploadComponent$1,
10470
10552
  LookupComponent,
10471
10553
  LookupFieldComponent,
10472
- NumberFieldComponent,
10473
10554
  PasswordFieldComponent,
10474
10555
  RadioButtonComponent,
10475
10556
  RowComponent,
@@ -10478,22 +10559,18 @@
10478
10559
  SliderFieldComponent,
10479
10560
  TextAreaFieldComponent,
10480
10561
  TextAreaIAFieldComponent,
10481
- TextFieldComponent,
10482
10562
  ],
10483
10563
  exports: [DynamicFormComponent, LookupComponent],
10484
10564
  entryComponents: [
10485
10565
  AutocompleteFieldComponent,
10486
- BignumberFieldComponent,
10487
10566
  BooleanFieldComponent,
10488
10567
  BooleanSwitchFieldComponent,
10489
10568
  CalendarFieldComponent,
10490
10569
  ChipsFieldComponent,
10491
10570
  CountryPhonePickerFieldComponent,
10492
- CurrencyFieldComponent,
10493
10571
  FieldsetComponent,
10494
10572
  FileUploadComponent$1,
10495
10573
  LookupFieldComponent,
10496
- NumberFieldComponent,
10497
10574
  PasswordFieldComponent,
10498
10575
  RadioButtonComponent,
10499
10576
  RowComponent,
@@ -10502,7 +10579,6 @@
10502
10579
  SliderFieldComponent,
10503
10580
  TextAreaFieldComponent,
10504
10581
  TextAreaIAFieldComponent,
10505
- TextFieldComponent,
10506
10582
  ],
10507
10583
  providers: [
10508
10584
  angular2Hotkeys.HotkeysService,
@@ -17800,67 +17876,74 @@
17800
17876
  exports.fallback = fallback;
17801
17877
  exports.ɵa = TooltipComponent;
17802
17878
  exports.ɵb = TooltipDirective;
17803
- exports.ɵba = BignumberFieldComponent;
17804
- exports.ɵbb = BooleanFieldComponent;
17805
- exports.ɵbc = BooleanSwitchFieldComponent;
17806
- exports.ɵbd = CalendarFieldComponent;
17807
- exports.ɵbe = ChipsFieldComponent;
17808
- exports.ɵbf = CountryPhonePickerFieldComponent;
17879
+ exports.ɵba = TextFieldComponent;
17880
+ exports.ɵbb = NumberFieldModule;
17881
+ exports.ɵbc = LocalizedNumberInputModule;
17882
+ exports.ɵbd = NumberInputModule;
17883
+ exports.ɵbe = NumberFieldComponent;
17884
+ exports.ɵbf = CurrencyFieldModule;
17809
17885
  exports.ɵbg = CurrencyFieldComponent;
17810
- exports.ɵbh = DynamicFieldComponent;
17811
- exports.ɵbi = DynamicFormDirective;
17812
- exports.ɵbj = FieldsetComponent;
17813
- exports.ɵbk = FileUploadComponent$1;
17814
- exports.ɵbl = LookupFieldComponent;
17815
- exports.ɵbm = NumberFieldComponent;
17816
- exports.ɵbn = PasswordFieldComponent;
17817
- exports.ɵbo = RadioButtonComponent;
17818
- exports.ɵbp = RowComponent;
17819
- exports.ɵbq = SectionComponent;
17820
- exports.ɵbr = SelectFieldComponent;
17821
- exports.ɵbs = SliderFieldComponent;
17822
- exports.ɵbt = TextAreaFieldComponent;
17823
- exports.ɵbu = TextAreaIAFieldComponent;
17824
- exports.ɵbv = IAssistService;
17825
- exports.ɵbw = TextFieldComponent;
17826
- exports.ɵby = DecimalField;
17827
- exports.ɵbz = SideTableComponent;
17886
+ exports.ɵbh = NumberFieldModule$1;
17887
+ exports.ɵbi = BignumberInputModule;
17888
+ exports.ɵbj = BignumberFieldComponent;
17889
+ exports.ɵbk = AutocompleteFieldComponent;
17890
+ exports.ɵbl = BooleanFieldComponent;
17891
+ exports.ɵbm = BooleanSwitchFieldComponent;
17892
+ exports.ɵbn = CalendarFieldComponent;
17893
+ exports.ɵbo = ChipsFieldComponent;
17894
+ exports.ɵbp = CountryPhonePickerFieldComponent;
17895
+ exports.ɵbq = DynamicFieldComponent;
17896
+ exports.ɵbr = DynamicFormDirective;
17897
+ exports.ɵbs = FieldsetComponent;
17898
+ exports.ɵbt = FileUploadComponent$1;
17899
+ exports.ɵbu = LookupFieldComponent;
17900
+ exports.ɵbv = PasswordFieldComponent;
17901
+ exports.ɵbw = RadioButtonComponent;
17902
+ exports.ɵbx = RowComponent;
17903
+ exports.ɵby = SectionComponent;
17904
+ exports.ɵbz = SelectFieldComponent;
17828
17905
  exports.ɵc = TemplateDirective;
17829
- exports.ɵca = ThumbnailService;
17830
- exports.ɵcb = InfiniteScrollModule;
17831
- exports.ɵcc = InfiniteScrollDirective;
17832
- exports.ɵcd = IAInsightSidebarComponent;
17833
- exports.ɵce = IAInsightCardComponent;
17834
- exports.ɵcf = IAInsightCardLoaderComponent;
17835
- exports.ɵcg = StructureModule;
17836
- exports.ɵch = HeaderComponent;
17837
- exports.ɵci = FooterComponent;
17838
- exports.ɵcj = KanbanEventService;
17839
- exports.ɵck = KanbanItemComponent;
17840
- exports.ɵcl = KanbanColumnComponent;
17841
- exports.ɵcm = KanbanItemDraggingComponent;
17842
- exports.ɵcn = NumberLocaleOptions;
17843
- exports.ɵco = BorderButtonModule;
17844
- exports.ɵcp = BorderButtonComponent;
17845
- exports.ɵcq = SelectButtonItemComponent;
17846
- exports.ɵcr = SlidePanelService;
17847
- exports.ɵcs = TieredMenuEventService;
17848
- exports.ɵct = TieredMenuService;
17849
- exports.ɵcu = TieredMenuComponent;
17850
- exports.ɵcv = TieredMenuNestedComponent;
17851
- exports.ɵcw = TieredMenuItemComponent;
17852
- exports.ɵcx = TieredMenuDividerComponent;
17853
- exports.ɵcy = TimelineItemModule;
17854
- exports.ɵcz = TimelineIconItemComponent;
17906
+ exports.ɵca = SliderFieldComponent;
17907
+ exports.ɵcb = TextAreaFieldComponent;
17908
+ exports.ɵcc = TextAreaIAFieldComponent;
17909
+ exports.ɵcd = IAssistService;
17910
+ exports.ɵcf = DecimalField;
17911
+ exports.ɵcg = SideTableComponent;
17912
+ exports.ɵch = ThumbnailService;
17913
+ exports.ɵci = InfiniteScrollModule;
17914
+ exports.ɵcj = InfiniteScrollDirective;
17915
+ exports.ɵck = IAInsightSidebarComponent;
17916
+ exports.ɵcl = IAInsightCardComponent;
17917
+ exports.ɵcm = IAInsightCardLoaderComponent;
17918
+ exports.ɵcn = StructureModule;
17919
+ exports.ɵco = HeaderComponent;
17920
+ exports.ɵcp = FooterComponent;
17921
+ exports.ɵcq = KanbanEventService;
17922
+ exports.ɵcr = KanbanItemComponent;
17923
+ exports.ɵcs = KanbanColumnComponent;
17924
+ exports.ɵct = KanbanItemDraggingComponent;
17925
+ exports.ɵcu = NumberLocaleOptions;
17926
+ exports.ɵcv = BorderButtonModule;
17927
+ exports.ɵcw = BorderButtonComponent;
17928
+ exports.ɵcx = SelectButtonItemComponent;
17929
+ exports.ɵcy = SlidePanelService;
17930
+ exports.ɵcz = TieredMenuEventService;
17855
17931
  exports.ɵd = TemplateModule;
17856
- exports.ɵda = HorizontalTimelineModule;
17857
- exports.ɵdb = HorizontalTimelineComponent;
17858
- exports.ɵdc = VerticalTimelineModule;
17859
- exports.ɵdd = VerticalTimelineComponent;
17860
- exports.ɵde = RangeLineComponent;
17861
- exports.ɵdf = CollapseOptionComponent;
17862
- exports.ɵdg = CollapsedItemsComponent;
17863
- exports.ɵdh = VerticalItemsComponent;
17932
+ exports.ɵda = TieredMenuService;
17933
+ exports.ɵdb = TieredMenuComponent;
17934
+ exports.ɵdc = TieredMenuNestedComponent;
17935
+ exports.ɵdd = TieredMenuItemComponent;
17936
+ exports.ɵde = TieredMenuDividerComponent;
17937
+ exports.ɵdf = TimelineItemModule;
17938
+ exports.ɵdg = TimelineIconItemComponent;
17939
+ exports.ɵdh = HorizontalTimelineModule;
17940
+ exports.ɵdi = HorizontalTimelineComponent;
17941
+ exports.ɵdj = VerticalTimelineModule;
17942
+ exports.ɵdk = VerticalTimelineComponent;
17943
+ exports.ɵdl = RangeLineComponent;
17944
+ exports.ɵdm = CollapseOptionComponent;
17945
+ exports.ɵdn = CollapsedItemsComponent;
17946
+ exports.ɵdo = VerticalItemsComponent;
17864
17947
  exports.ɵe = CustomTranslationsModule;
17865
17948
  exports.ɵf = CodeEditorComponent;
17866
17949
  exports.ɵg = CoreFacade;
@@ -17882,7 +17965,7 @@
17882
17965
  exports.ɵw = InfoSignComponent;
17883
17966
  exports.ɵx = TableColumnsComponent;
17884
17967
  exports.ɵy = TablePagingComponent;
17885
- exports.ɵz = AutocompleteFieldComponent;
17968
+ exports.ɵz = TextFieldModule;
17886
17969
 
17887
17970
  Object.defineProperty(exports, '__esModule', { value: true });
17888
17971