@seniorsistemas/angular-components 17.5.5 → 17.6.1

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 (47) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +507 -420
  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/components/select-button/select-button.component.d.ts +1 -1
  12. package/esm2015/components/button/button.component.js +2 -2
  13. package/esm2015/components/dynamic-form/components/fields/bignumber/bignumber-field.component.js +96 -0
  14. package/esm2015/components/dynamic-form/components/fields/bignumber/bignumber-field.module.js +30 -0
  15. package/esm2015/components/dynamic-form/components/fields/currency/currency-field.module.js +20 -0
  16. package/esm2015/components/dynamic-form/components/fields/number/number-field.component.js +4 -4
  17. package/esm2015/components/dynamic-form/components/fields/number/number-field.module.js +32 -0
  18. package/esm2015/components/dynamic-form/components/fields/text/text-field.component.js +3 -3
  19. package/esm2015/components/dynamic-form/components/fields/text/text-field.module.js +30 -0
  20. package/esm2015/components/dynamic-form/configurations/addon-config.js +1 -1
  21. package/esm2015/components/dynamic-form/dynamic-form.js +9 -8
  22. package/esm2015/components/dynamic-form/dynamic-form.module.js +9 -13
  23. package/esm2015/components/select-button/select-button.component.js +8 -4
  24. package/esm2015/seniorsistemas-angular-components.js +67 -60
  25. package/esm5/components/button/button.component.js +2 -2
  26. package/esm5/components/dynamic-form/components/fields/bignumber/bignumber-field.component.js +105 -0
  27. package/esm5/components/dynamic-form/components/fields/bignumber/bignumber-field.module.js +33 -0
  28. package/esm5/components/dynamic-form/components/fields/currency/currency-field.module.js +23 -0
  29. package/esm5/components/dynamic-form/components/fields/number/number-field.component.js +4 -4
  30. package/esm5/components/dynamic-form/components/fields/number/number-field.module.js +35 -0
  31. package/esm5/components/dynamic-form/components/fields/text/text-field.component.js +3 -3
  32. package/esm5/components/dynamic-form/components/fields/text/text-field.module.js +33 -0
  33. package/esm5/components/dynamic-form/configurations/addon-config.js +1 -1
  34. package/esm5/components/dynamic-form/dynamic-form.js +9 -8
  35. package/esm5/components/dynamic-form/dynamic-form.module.js +9 -13
  36. package/esm5/components/select-button/select-button.component.js +8 -4
  37. package/esm5/seniorsistemas-angular-components.js +67 -60
  38. package/fesm2015/seniorsistemas-angular-components.js +430 -362
  39. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  40. package/fesm5/seniorsistemas-angular-components.js +442 -362
  41. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  42. package/package.json +1 -1
  43. package/seniorsistemas-angular-components.d.ts +66 -59
  44. package/seniorsistemas-angular-components.metadata.json +1 -1
  45. package/esm2015/components/dynamic-form/components/fields/bignumber/number-field.component.js +0 -96
  46. package/esm5/components/dynamic-form/components/fields/bignumber/number-field.component.js +0 -105
  47. /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();
@@ -10018,25 +9762,259 @@
10018
9762
  context: [""],
10019
9763
  });
10020
9764
  };
10021
- TextAreaIAFieldComponent.ctorParameters = function () { return [
10022
- { type: IAssistService },
10023
- { type: forms.FormBuilder },
10024
- { type: core$1.TranslateService }
9765
+ TextAreaIAFieldComponent.ctorParameters = function () { return [
9766
+ { type: IAssistService },
9767
+ { type: forms.FormBuilder },
9768
+ { type: core$1.TranslateService }
9769
+ ]; };
9770
+ __decorate([
9771
+ core.Input()
9772
+ ], TextAreaIAFieldComponent.prototype, "field", void 0);
9773
+ __decorate([
9774
+ core.Input()
9775
+ ], TextAreaIAFieldComponent.prototype, "formControl", void 0);
9776
+ TextAreaIAFieldComponent = __decorate([
9777
+ core.Component({
9778
+ template: "<s-loading-state\n [loading]=\"isLoading\"\n [blockWindow]=\"true\"> \n</s-loading-state>\n\n<p-dialog\n [(visible)]=\"isVisible\"\n [modal]=\"true\"\n [style]=\"{ width: '50vw' }\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n (onHide)=\"onHideDialog()\">\n <p-header>\n <div class=\"dialog-header\">\n <span class=\"iassist-icon\">\n <ng-container [ngTemplateOutlet]=\"iassistIcon\"></ng-container>\n </span>\n IAssist - Content Generator\n </div>\n </p-header>\n <s-dynamic-form\n [fields]=\"fields\"\n [form]=\"formGroup\">\n </s-dynamic-form>\n <p-footer>\n <div class=\"footer-content\">\n <s-button\n id=\"-submit-button\"\n type=\"button\"\n [label]=\"'platform.angular_components.generate_text' | translate\"\n (onClick)=\"submitContext()\"\n sTooltip=\"(ALT + SHIFT + S)\"\n showDelay=\"500\">\n </s-button>\n <s-button\n id=\"-cancel-button\"\n type=\"button\"\n priority=\"link\"\n [label]=\"'platform.angular_components.cancel' | translate\"\n (onClick)=\"hideDialog()\"\n sTooltip=\"(ALT + SHIFT + C)\"\n showDelay=\"500\">\n </s-button>\n </div>\n </p-footer>\n</p-dialog>\n\n<div class=\"textarea-ia\">\n <textarea\n [id]=\"(field.id || field.name)\"\n pInputTextarea\n [rows]=\"field.rows\"\n [cols]=\"field.cols\"\n [formControl]=\"formControl\"\n style=\"resize: vertical;\"\n [ngStyle]=\"field.style\">\n </textarea>\n <button\n class=\"iassist-button\"\n (click)=\"showDialog()\"\n sTooltip=\"IAssist - Content Generator\">\n <ng-container [ngTemplateOutlet]=\"iassistIcon\"></ng-container>\n </button>\n</div>\n\n<ng-template #iassistIcon>\n <svg style=\"width: 100%; height: 100%;\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182\" fill=\"#0FA389\"/>\n <path d=\"M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z\" fill=\"#0FA389\"/>\n <path d=\"M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z\" fill=\"#F3F3F5\"/>\n <path d=\"M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z\" fill=\"#0C847B\"/>\n <path d=\"M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z\" fill=\"#0C847B\"/>\n </svg>\n</ng-template>",
9779
+ styles: [".footer-content{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0}.textarea-ia{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:8px}.iassist-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border:none;border-radius:50%;box-shadow:none;cursor:pointer;height:32px;width:32px}.dialog-header{display:-ms-flexbox;display:flex;gap:12px}.dialog-header .iassist-icon{display:block;height:24px;width:24px}"]
9780
+ })
9781
+ ], TextAreaIAFieldComponent);
9782
+ return TextAreaIAFieldComponent;
9783
+ }());
9784
+
9785
+ var RowComponent = /** @class */ (function () {
9786
+ function RowComponent() {
9787
+ }
9788
+ RowComponent.prototype.ngOnInit = function () { };
9789
+ RowComponent.prototype.getErrorMessages = function (errorMessages) {
9790
+ if (errorMessages)
9791
+ return this.isFunction(errorMessages) ? errorMessages() : errorMessages;
9792
+ return this.errorMessages;
9793
+ };
9794
+ RowComponent.prototype.isFunction = function (value) {
9795
+ return value instanceof Function;
9796
+ };
9797
+ __decorate([
9798
+ core.Input()
9799
+ ], RowComponent.prototype, "id", void 0);
9800
+ __decorate([
9801
+ core.Input()
9802
+ ], RowComponent.prototype, "config", void 0);
9803
+ __decorate([
9804
+ core.Input()
9805
+ ], RowComponent.prototype, "group", void 0);
9806
+ __decorate([
9807
+ core.Input()
9808
+ ], RowComponent.prototype, "errorMessages", void 0);
9809
+ RowComponent = __decorate([
9810
+ core.Component({
9811
+ template: "\n <div class=\"ui-fluid\" [formGroup]=\"group\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of config.fields\">\n <div [ngClass]=\"field.gridClass\" *ngIf=\"field.visible()\">\n <label\n [for]=\"field.name\"\n [ngClass]=\"{ 'required': field.required() }\"\n *sInfoSign=\"field.infoSign\"\n >\n {{ field.label }}\n </label>\n\n <ng-container *sDynamicForm=\"{ id: id, config: field, group: group}\"></ng-container>\n\n <s-control-errors [form]=\"group\" [control]=\"group.controls[field.name]\"\n [errorMessages]=\"getErrorMessages(field.errorMessages)\"></s-control-errors>\n\n <ng-container *ngIf=\"field.footer\">\n <ng-container *ngIf=\"field.footer.help\">\n <span *ngIf=\"field.footer.help.visible({ abstractControl: group.controls[field.name], formField: field })\" style=\"color: #888B99\">{{ field.footer.help.text }}</span>\n </ng-container>\n\n <ng-container *ngIf=\"field.footer.link\">\n <div\n *ngIf=\"field.footer.link.visible({ abstractControl: group.controls[field.name], formField: field })\"\n class=\"ui-g\"\n style=\"margin-left: -17px\"\n >\n <s-button\n [label]=\"field.footer.link.label\"\n priority=\"link\"\n (onClick)=\"field.footer.link.onClick({ abstractControl: group.controls[field.name], formField: field })\"\n [auxiliary]=\"true\"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template *ngIf=\"field?.bottomTemplate\" [ngTemplateOutlet]=\"field.bottomTemplate\"></ng-template>\n </div>\n </ng-container>\n </div>\n "
9812
+ })
9813
+ ], RowComponent);
9814
+ return RowComponent;
9815
+ }());
9816
+
9817
+ var DynamicFieldComponent = /** @class */ (function () {
9818
+ function DynamicFieldComponent() {
9819
+ }
9820
+ DynamicFieldComponent.prototype.getErrorMessages = function (errorMessages) {
9821
+ if (errorMessages)
9822
+ return this.isFunction(errorMessages)
9823
+ ? __assign(__assign({}, this.errorMessages), errorMessages()) : __assign(__assign({}, this.errorMessages), errorMessages);
9824
+ return this.errorMessages;
9825
+ };
9826
+ DynamicFieldComponent.prototype.isFunction = function (value) {
9827
+ return value instanceof Function;
9828
+ };
9829
+ __decorate([
9830
+ core.Input()
9831
+ ], DynamicFieldComponent.prototype, "id", void 0);
9832
+ __decorate([
9833
+ core.Input()
9834
+ ], DynamicFieldComponent.prototype, "fields", void 0);
9835
+ __decorate([
9836
+ core.Input()
9837
+ ], DynamicFieldComponent.prototype, "form", void 0);
9838
+ __decorate([
9839
+ core.Input()
9840
+ ], DynamicFieldComponent.prototype, "errorMessages", void 0);
9841
+ __decorate([
9842
+ core.Input()
9843
+ ], DynamicFieldComponent.prototype, "displayTimeInfoSign", void 0);
9844
+ DynamicFieldComponent = __decorate([
9845
+ core.Component({
9846
+ selector: "s-dynamic-field",
9847
+ template: "<div class=\"ui-fluid\" [formGroup]=\"form\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of fields\">\n <div\n *ngIf=\"!field.visible || field.visible()\"\n [ngClass]=\"field.gridClass\"\n >\n <span *ngIf=\"field.label\">\n <label\n *sInfoSign=\"\n field.infoSign;\n displayTime: displayTimeInfoSign\n \"\n [for]=\"field.name\"\n [ngClass]=\"{ required: field.required() }\"\n >\n {{ field.label }}\n </label>\n </span>\n\n <ng-container\n *sDynamicForm=\"{\n id: id,\n config: field,\n group: form\n }\"\n ></ng-container>\n\n <s-control-errors\n [form]=\"form\"\n [control]=\"form.controls[field.name]\"\n [errorMessages]=\"getErrorMessages(field.errorMessages)\"\n ></s-control-errors>\n\n <ng-container *ngIf=\"field.footer\">\n <ng-container *ngIf=\"field.footer.help\">\n <span\n *ngIf=\"\n field.footer.help.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n \"\n style=\"color: #888b99\"\n >\n {{ field.footer.help.text }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"field.footer.link\">\n <div\n *ngIf=\"\n field.footer.link.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n \"\n class=\"ui-g\"\n style=\"margin-left: -10px\"\n >\n <s-button\n [label]=\"field.footer.link.label\"\n priority=\"link\"\n (onClick)=\"\n field.footer.link.onClick({\n abstractControl:\n form.controls[field.name],\n formField: field\n })\n \"\n [auxiliary]=\"true\"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template\n *ngIf=\"field?.bottomTemplate\"\n [ngTemplateOutlet]=\"field.bottomTemplate\"\n ></ng-template>\n </div>\n </ng-container>\n </div>\n</div>\n"
9848
+ })
9849
+ ], DynamicFieldComponent);
9850
+ return DynamicFieldComponent;
9851
+ }());
9852
+
9853
+ var GridType;
9854
+ (function (GridType) {
9855
+ GridType["Row"] = "Row";
9856
+ })(GridType || (GridType = {}));
9857
+
9858
+ var StructureType;
9859
+ (function (StructureType) {
9860
+ StructureType["Fieldset"] = "Fieldset";
9861
+ StructureType["Section"] = "Section";
9862
+ })(StructureType || (StructureType = {}));
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 }
10025
10004
  ]; };
10026
10005
  __decorate([
10027
10006
  core.Input()
10028
- ], TextAreaIAFieldComponent.prototype, "field", void 0);
10007
+ ], CurrencyFieldComponent.prototype, "field", void 0);
10029
10008
  __decorate([
10030
10009
  core.Input()
10031
- ], TextAreaIAFieldComponent.prototype, "formControl", void 0);
10032
- TextAreaIAFieldComponent = __decorate([
10010
+ ], CurrencyFieldComponent.prototype, "formControl", void 0);
10011
+ CurrencyFieldComponent = __decorate([
10033
10012
  core.Component({
10034
- template: "<s-loading-state\n [loading]=\"isLoading\"\n [blockWindow]=\"true\"> \n</s-loading-state>\n\n<p-dialog\n [(visible)]=\"isVisible\"\n [modal]=\"true\"\n [style]=\"{ width: '50vw' }\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n (onHide)=\"onHideDialog()\">\n <p-header>\n <div class=\"dialog-header\">\n <span class=\"iassist-icon\">\n <ng-container [ngTemplateOutlet]=\"iassistIcon\"></ng-container>\n </span>\n IAssist - Content Generator\n </div>\n </p-header>\n <s-dynamic-form\n [fields]=\"fields\"\n [form]=\"formGroup\">\n </s-dynamic-form>\n <p-footer>\n <div class=\"footer-content\">\n <s-button\n id=\"-submit-button\"\n type=\"button\"\n [label]=\"'platform.angular_components.generate_text' | translate\"\n (onClick)=\"submitContext()\"\n sTooltip=\"(ALT + SHIFT + S)\"\n showDelay=\"500\">\n </s-button>\n <s-button\n id=\"-cancel-button\"\n type=\"button\"\n priority=\"link\"\n [label]=\"'platform.angular_components.cancel' | translate\"\n (onClick)=\"hideDialog()\"\n sTooltip=\"(ALT + SHIFT + C)\"\n showDelay=\"500\">\n </s-button>\n </div>\n </p-footer>\n</p-dialog>\n\n<div class=\"textarea-ia\">\n <textarea\n [id]=\"(field.id || field.name)\"\n pInputTextarea\n [rows]=\"field.rows\"\n [cols]=\"field.cols\"\n [formControl]=\"formControl\"\n style=\"resize: vertical;\"\n [ngStyle]=\"field.style\">\n </textarea>\n <button\n class=\"iassist-button\"\n (click)=\"showDialog()\"\n sTooltip=\"IAssist - Content Generator\">\n <ng-container [ngTemplateOutlet]=\"iassistIcon\"></ng-container>\n </button>\n</div>\n\n<ng-template #iassistIcon>\n <svg style=\"width: 100%; height: 100%;\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182\" fill=\"#0FA389\"/>\n <path d=\"M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z\" fill=\"#0FA389\"/>\n <path d=\"M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z\" fill=\"#F3F3F5\"/>\n <path d=\"M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z\" fill=\"#0C847B\"/>\n <path d=\"M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z\" fill=\"#0C847B\"/>\n </svg>\n</ng-template>",
10035
- styles: [".footer-content{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0}.textarea-ia{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:8px}.iassist-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border:none;border-radius:50%;box-shadow:none;cursor:pointer;height:32px;width:32px}.dialog-header{display:-ms-flexbox;display:flex;gap:12px}.dialog-header .iassist-icon{display:block;height:24px;width:24px}"]
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"
10036
10014
  })
10037
- ], TextAreaIAFieldComponent);
10038
- return TextAreaIAFieldComponent;
10039
- }());
10015
+ ], CurrencyFieldComponent);
10016
+ return CurrencyFieldComponent;
10017
+ }(BaseFieldComponent));
10040
10018
 
10041
10019
  var TextFieldComponent = /** @class */ (function (_super) {
10042
10020
  __extends(TextFieldComponent, _super);
@@ -10084,93 +10062,14 @@
10084
10062
  ], TextFieldComponent.prototype, "onComplete", void 0);
10085
10063
  TextFieldComponent = __decorate([
10086
10064
  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",
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",
10088
10066
  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}"]
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}"]
10090
10068
  })
10091
10069
  ], TextFieldComponent);
10092
10070
  return TextFieldComponent;
10093
10071
  }(BaseFieldComponent));
10094
10072
 
10095
- var RowComponent = /** @class */ (function () {
10096
- function RowComponent() {
10097
- }
10098
- RowComponent.prototype.ngOnInit = function () { };
10099
- RowComponent.prototype.getErrorMessages = function (errorMessages) {
10100
- if (errorMessages)
10101
- return this.isFunction(errorMessages) ? errorMessages() : errorMessages;
10102
- return this.errorMessages;
10103
- };
10104
- RowComponent.prototype.isFunction = function (value) {
10105
- return value instanceof Function;
10106
- };
10107
- __decorate([
10108
- core.Input()
10109
- ], RowComponent.prototype, "id", void 0);
10110
- __decorate([
10111
- core.Input()
10112
- ], RowComponent.prototype, "config", void 0);
10113
- __decorate([
10114
- core.Input()
10115
- ], RowComponent.prototype, "group", void 0);
10116
- __decorate([
10117
- core.Input()
10118
- ], RowComponent.prototype, "errorMessages", void 0);
10119
- RowComponent = __decorate([
10120
- core.Component({
10121
- template: "\n <div class=\"ui-fluid\" [formGroup]=\"group\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of config.fields\">\n <div [ngClass]=\"field.gridClass\" *ngIf=\"field.visible()\">\n <label\n [for]=\"field.name\"\n [ngClass]=\"{ 'required': field.required() }\"\n *sInfoSign=\"field.infoSign\"\n >\n {{ field.label }}\n </label>\n\n <ng-container *sDynamicForm=\"{ id: id, config: field, group: group}\"></ng-container>\n\n <s-control-errors [form]=\"group\" [control]=\"group.controls[field.name]\"\n [errorMessages]=\"getErrorMessages(field.errorMessages)\"></s-control-errors>\n\n <ng-container *ngIf=\"field.footer\">\n <ng-container *ngIf=\"field.footer.help\">\n <span *ngIf=\"field.footer.help.visible({ abstractControl: group.controls[field.name], formField: field })\" style=\"color: #888B99\">{{ field.footer.help.text }}</span>\n </ng-container>\n\n <ng-container *ngIf=\"field.footer.link\">\n <div\n *ngIf=\"field.footer.link.visible({ abstractControl: group.controls[field.name], formField: field })\"\n class=\"ui-g\"\n style=\"margin-left: -17px\"\n >\n <s-button\n [label]=\"field.footer.link.label\"\n priority=\"link\"\n (onClick)=\"field.footer.link.onClick({ abstractControl: group.controls[field.name], formField: field })\"\n [auxiliary]=\"true\"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template *ngIf=\"field?.bottomTemplate\" [ngTemplateOutlet]=\"field.bottomTemplate\"></ng-template>\n </div>\n </ng-container>\n </div>\n "
10122
- })
10123
- ], RowComponent);
10124
- return RowComponent;
10125
- }());
10126
-
10127
- var DynamicFieldComponent = /** @class */ (function () {
10128
- function DynamicFieldComponent() {
10129
- }
10130
- DynamicFieldComponent.prototype.getErrorMessages = function (errorMessages) {
10131
- if (errorMessages)
10132
- return this.isFunction(errorMessages)
10133
- ? __assign(__assign({}, this.errorMessages), errorMessages()) : __assign(__assign({}, this.errorMessages), errorMessages);
10134
- return this.errorMessages;
10135
- };
10136
- DynamicFieldComponent.prototype.isFunction = function (value) {
10137
- return value instanceof Function;
10138
- };
10139
- __decorate([
10140
- core.Input()
10141
- ], DynamicFieldComponent.prototype, "id", void 0);
10142
- __decorate([
10143
- core.Input()
10144
- ], DynamicFieldComponent.prototype, "fields", void 0);
10145
- __decorate([
10146
- core.Input()
10147
- ], DynamicFieldComponent.prototype, "form", void 0);
10148
- __decorate([
10149
- core.Input()
10150
- ], DynamicFieldComponent.prototype, "errorMessages", void 0);
10151
- __decorate([
10152
- core.Input()
10153
- ], DynamicFieldComponent.prototype, "displayTimeInfoSign", void 0);
10154
- DynamicFieldComponent = __decorate([
10155
- core.Component({
10156
- selector: "s-dynamic-field",
10157
- template: "<div class=\"ui-fluid\" [formGroup]=\"form\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of fields\">\n <div\n *ngIf=\"!field.visible || field.visible()\"\n [ngClass]=\"field.gridClass\"\n >\n <span *ngIf=\"field.label\">\n <label\n *sInfoSign=\"\n field.infoSign;\n displayTime: displayTimeInfoSign\n \"\n [for]=\"field.name\"\n [ngClass]=\"{ required: field.required() }\"\n >\n {{ field.label }}\n </label>\n </span>\n\n <ng-container\n *sDynamicForm=\"{\n id: id,\n config: field,\n group: form\n }\"\n ></ng-container>\n\n <s-control-errors\n [form]=\"form\"\n [control]=\"form.controls[field.name]\"\n [errorMessages]=\"getErrorMessages(field.errorMessages)\"\n ></s-control-errors>\n\n <ng-container *ngIf=\"field.footer\">\n <ng-container *ngIf=\"field.footer.help\">\n <span\n *ngIf=\"\n field.footer.help.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n \"\n style=\"color: #888b99\"\n >\n {{ field.footer.help.text }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"field.footer.link\">\n <div\n *ngIf=\"\n field.footer.link.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n \"\n class=\"ui-g\"\n style=\"margin-left: -10px\"\n >\n <s-button\n [label]=\"field.footer.link.label\"\n priority=\"link\"\n (onClick)=\"\n field.footer.link.onClick({\n abstractControl:\n form.controls[field.name],\n formField: field\n })\n \"\n [auxiliary]=\"true\"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template\n *ngIf=\"field?.bottomTemplate\"\n [ngTemplateOutlet]=\"field.bottomTemplate\"\n ></ng-template>\n </div>\n </ng-container>\n </div>\n</div>\n"
10158
- })
10159
- ], DynamicFieldComponent);
10160
- return DynamicFieldComponent;
10161
- }());
10162
-
10163
- var GridType;
10164
- (function (GridType) {
10165
- GridType["Row"] = "Row";
10166
- })(GridType || (GridType = {}));
10167
-
10168
- var StructureType;
10169
- (function (StructureType) {
10170
- StructureType["Fieldset"] = "Fieldset";
10171
- StructureType["Section"] = "Section";
10172
- })(StructureType || (StructureType = {}));
10173
-
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,
@@ -15292,9 +15368,13 @@
15292
15368
  var _this = this;
15293
15369
  if (!value)
15294
15370
  return;
15295
- value.forEach(function (item) {
15296
- _this.activeItems.add(item);
15297
- });
15371
+ this.activeItems.clear();
15372
+ if (Array.isArray(value)) {
15373
+ value.forEach(function (item) { return _this.activeItems.add(item); });
15374
+ }
15375
+ else {
15376
+ this.activeItems.add(value);
15377
+ }
15298
15378
  };
15299
15379
  SelectButtonComponent.prototype.registerOnChange = function (onChange) {
15300
15380
  this.onChange = onChange;
@@ -17800,67 +17880,74 @@
17800
17880
  exports.fallback = fallback;
17801
17881
  exports.ɵa = TooltipComponent;
17802
17882
  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;
17883
+ exports.ɵba = TextFieldComponent;
17884
+ exports.ɵbb = NumberFieldModule;
17885
+ exports.ɵbc = LocalizedNumberInputModule;
17886
+ exports.ɵbd = NumberInputModule;
17887
+ exports.ɵbe = NumberFieldComponent;
17888
+ exports.ɵbf = CurrencyFieldModule;
17809
17889
  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;
17890
+ exports.ɵbh = NumberFieldModule$1;
17891
+ exports.ɵbi = BignumberInputModule;
17892
+ exports.ɵbj = BignumberFieldComponent;
17893
+ exports.ɵbk = AutocompleteFieldComponent;
17894
+ exports.ɵbl = BooleanFieldComponent;
17895
+ exports.ɵbm = BooleanSwitchFieldComponent;
17896
+ exports.ɵbn = CalendarFieldComponent;
17897
+ exports.ɵbo = ChipsFieldComponent;
17898
+ exports.ɵbp = CountryPhonePickerFieldComponent;
17899
+ exports.ɵbq = DynamicFieldComponent;
17900
+ exports.ɵbr = DynamicFormDirective;
17901
+ exports.ɵbs = FieldsetComponent;
17902
+ exports.ɵbt = FileUploadComponent$1;
17903
+ exports.ɵbu = LookupFieldComponent;
17904
+ exports.ɵbv = PasswordFieldComponent;
17905
+ exports.ɵbw = RadioButtonComponent;
17906
+ exports.ɵbx = RowComponent;
17907
+ exports.ɵby = SectionComponent;
17908
+ exports.ɵbz = SelectFieldComponent;
17828
17909
  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;
17910
+ exports.ɵca = SliderFieldComponent;
17911
+ exports.ɵcb = TextAreaFieldComponent;
17912
+ exports.ɵcc = TextAreaIAFieldComponent;
17913
+ exports.ɵcd = IAssistService;
17914
+ exports.ɵcf = DecimalField;
17915
+ exports.ɵcg = SideTableComponent;
17916
+ exports.ɵch = ThumbnailService;
17917
+ exports.ɵci = InfiniteScrollModule;
17918
+ exports.ɵcj = InfiniteScrollDirective;
17919
+ exports.ɵck = IAInsightSidebarComponent;
17920
+ exports.ɵcl = IAInsightCardComponent;
17921
+ exports.ɵcm = IAInsightCardLoaderComponent;
17922
+ exports.ɵcn = StructureModule;
17923
+ exports.ɵco = HeaderComponent;
17924
+ exports.ɵcp = FooterComponent;
17925
+ exports.ɵcq = KanbanEventService;
17926
+ exports.ɵcr = KanbanItemComponent;
17927
+ exports.ɵcs = KanbanColumnComponent;
17928
+ exports.ɵct = KanbanItemDraggingComponent;
17929
+ exports.ɵcu = NumberLocaleOptions;
17930
+ exports.ɵcv = BorderButtonModule;
17931
+ exports.ɵcw = BorderButtonComponent;
17932
+ exports.ɵcx = SelectButtonItemComponent;
17933
+ exports.ɵcy = SlidePanelService;
17934
+ exports.ɵcz = TieredMenuEventService;
17855
17935
  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;
17936
+ exports.ɵda = TieredMenuService;
17937
+ exports.ɵdb = TieredMenuComponent;
17938
+ exports.ɵdc = TieredMenuNestedComponent;
17939
+ exports.ɵdd = TieredMenuItemComponent;
17940
+ exports.ɵde = TieredMenuDividerComponent;
17941
+ exports.ɵdf = TimelineItemModule;
17942
+ exports.ɵdg = TimelineIconItemComponent;
17943
+ exports.ɵdh = HorizontalTimelineModule;
17944
+ exports.ɵdi = HorizontalTimelineComponent;
17945
+ exports.ɵdj = VerticalTimelineModule;
17946
+ exports.ɵdk = VerticalTimelineComponent;
17947
+ exports.ɵdl = RangeLineComponent;
17948
+ exports.ɵdm = CollapseOptionComponent;
17949
+ exports.ɵdn = CollapsedItemsComponent;
17950
+ exports.ɵdo = VerticalItemsComponent;
17864
17951
  exports.ɵe = CustomTranslationsModule;
17865
17952
  exports.ɵf = CodeEditorComponent;
17866
17953
  exports.ɵg = CoreFacade;
@@ -17882,7 +17969,7 @@
17882
17969
  exports.ɵw = InfoSignComponent;
17883
17970
  exports.ɵx = TableColumnsComponent;
17884
17971
  exports.ɵy = TablePagingComponent;
17885
- exports.ɵz = AutocompleteFieldComponent;
17972
+ exports.ɵz = TextFieldModule;
17886
17973
 
17887
17974
  Object.defineProperty(exports, '__esModule', { value: true });
17888
17975