@seniorsistemas/angular-components 14.4.1 → 14.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +301 -62
  2. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
  4. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  5. package/components/bignumber-input/index.d.ts +2 -0
  6. package/components/bignumber-input/number-input.directive.d.ts +22 -0
  7. package/components/bignumber-input/number-input.module.d.ts +2 -0
  8. package/components/dynamic-form/components/fields/bignumber/number-field.component.d.ts +16 -0
  9. package/components/dynamic-form/components/fields/currency/currency-field.component.d.ts +3 -0
  10. package/components/dynamic-form/components/fields/number/number-field.component.d.ts +3 -0
  11. package/components/dynamic-form/configurations/dynamic-type.d.ts +2 -1
  12. package/components/dynamic-form/configurations/field-type.d.ts +11 -1
  13. package/components/dynamic-form/configurations/fields/bignumber-field.d.ts +32 -0
  14. package/components/dynamic-form/configurations/fields/currency-field.d.ts +3 -0
  15. package/components/dynamic-form/configurations/fields/decimal-field.d.ts +6 -0
  16. package/components/dynamic-form/configurations/fields/number-field.d.ts +6 -0
  17. package/components/dynamic-form/configurations/form-field.d.ts +5 -1
  18. package/components/dynamic-form/index.d.ts +1 -0
  19. package/components/number-input/number-input.directive.d.ts +6 -0
  20. package/components/number-input/number-input.module.d.ts +3 -0
  21. package/esm2015/components/bignumber-input/index.js +3 -0
  22. package/esm2015/components/bignumber-input/number-input.directive.js +97 -0
  23. package/esm2015/components/bignumber-input/number-input.module.js +15 -0
  24. package/esm2015/components/dynamic-form/components/fields/bignumber/number-field.component.js +60 -0
  25. package/esm2015/components/dynamic-form/components/fields/currency/currency-field.component.js +4 -1
  26. package/esm2015/components/dynamic-form/components/fields/number/number-field.component.js +4 -1
  27. package/esm2015/components/dynamic-form/configurations/dynamic-config.js +4 -1
  28. package/esm2015/components/dynamic-form/configurations/dynamic-type.js +2 -1
  29. package/esm2015/components/dynamic-form/configurations/field-type.js +11 -1
  30. package/esm2015/components/dynamic-form/configurations/fields/bignumber-field.js +21 -0
  31. package/esm2015/components/dynamic-form/configurations/fields/currency-field.js +4 -1
  32. package/esm2015/components/dynamic-form/configurations/fields/decimal-field.js +4 -1
  33. package/esm2015/components/dynamic-form/configurations/fields/number-field.js +4 -1
  34. package/esm2015/components/dynamic-form/configurations/form-field.js +4 -1
  35. package/esm2015/components/dynamic-form/dynamic-form.js +4 -1
  36. package/esm2015/components/dynamic-form/dynamic-form.module.js +6 -1
  37. package/esm2015/components/dynamic-form/index.js +2 -1
  38. package/esm2015/components/number-input/number-input.directive.js +7 -1
  39. package/esm2015/components/number-input/number-input.module.js +4 -1
  40. package/esm2015/public-api.js +5 -1
  41. package/esm2015/seniorsistemas-angular-components.js +17 -16
  42. package/esm5/components/bignumber-input/index.js +3 -0
  43. package/esm5/components/bignumber-input/number-input.directive.js +101 -0
  44. package/esm5/components/bignumber-input/number-input.module.js +18 -0
  45. package/esm5/components/dynamic-form/components/fields/bignumber/number-field.component.js +68 -0
  46. package/esm5/components/dynamic-form/components/fields/currency/currency-field.component.js +4 -1
  47. package/esm5/components/dynamic-form/components/fields/number/number-field.component.js +4 -1
  48. package/esm5/components/dynamic-form/configurations/dynamic-config.js +4 -1
  49. package/esm5/components/dynamic-form/configurations/dynamic-type.js +2 -1
  50. package/esm5/components/dynamic-form/configurations/field-type.js +11 -1
  51. package/esm5/components/dynamic-form/configurations/fields/bignumber-field.js +26 -0
  52. package/esm5/components/dynamic-form/configurations/fields/currency-field.js +4 -1
  53. package/esm5/components/dynamic-form/configurations/fields/decimal-field.js +4 -1
  54. package/esm5/components/dynamic-form/configurations/fields/number-field.js +4 -1
  55. package/esm5/components/dynamic-form/configurations/form-field.js +4 -1
  56. package/esm5/components/dynamic-form/dynamic-form.js +4 -1
  57. package/esm5/components/dynamic-form/dynamic-form.module.js +6 -1
  58. package/esm5/components/dynamic-form/index.js +2 -1
  59. package/esm5/components/number-input/number-input.directive.js +7 -1
  60. package/esm5/components/number-input/number-input.module.js +4 -1
  61. package/esm5/public-api.js +5 -1
  62. package/esm5/seniorsistemas-angular-components.js +17 -16
  63. package/fesm2015/seniorsistemas-angular-components.js +254 -36
  64. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  65. package/fesm5/seniorsistemas-angular-components.js +279 -43
  66. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  67. package/package.json +3 -1
  68. package/public-api.d.ts +4 -0
  69. package/seniorsistemas-angular-components.d.ts +16 -15
  70. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -16,6 +16,7 @@ import { Hotkey, HotkeysService, HotkeyModule } from 'angular2-hotkeys';
16
16
  import { AutoComplete, AutoCompleteModule } from 'primeng/autocomplete';
17
17
  import { Dialog, DialogModule } from 'primeng/dialog';
18
18
  import { Table, TableService, RowToggler, TableModule as TableModule$1 } from 'primeng/table';
19
+ import { AlignmentOptions, CurrencyMaskDirective as CurrencyMaskDirective$1 } from '@seniorsistemas/ng2-currency-mask';
19
20
  import { user } from '@seniorsistemas/senior-platform-data';
20
21
  import * as moment_ from 'moment';
21
22
  import { CookieService } from 'ngx-cookie-service';
@@ -952,16 +953,26 @@ var FieldType;
952
953
  FieldType["Chips"] = "Chips";
953
954
  FieldType["Date"] = "Date";
954
955
  FieldType["DateTime"] = "DateTime";
956
+ /**
957
+ * @deprecated Should use 'Number' instead
958
+ */
955
959
  FieldType["Double"] = "Double";
956
960
  FieldType["Enum"] = "Enum";
957
961
  FieldType["Blob"] = "Blob";
962
+ /**
963
+ * @deprecated Should use 'Number' instead
964
+ */
958
965
  FieldType["Integer"] = "Integer";
959
966
  FieldType["Lookup"] = "Lookup";
967
+ /**
968
+ * @deprecated Should use 'Number' instead
969
+ */
960
970
  FieldType["Money"] = "Money";
961
971
  FieldType["Radio"] = "Radio";
962
972
  FieldType["String"] = "String";
963
973
  FieldType["Text"] = "Text";
964
974
  FieldType["Time"] = "Time";
975
+ FieldType["Number"] = "Number";
965
976
  })(FieldType || (FieldType = {}));
966
977
 
967
978
  class FieldSize {
@@ -1000,41 +1011,6 @@ class AutocompleteField extends Field {
1000
1011
  }
1001
1012
  }
1002
1013
 
1003
- class BlobField extends Field {
1004
- constructor(config) {
1005
- super(config);
1006
- this.accept = config.accept;
1007
- this.files = config.files || [];
1008
- this.chooseLabel = config.chooseLabel;
1009
- this.removeLabel = config.removeLabel;
1010
- this.cancelLabel = config.cancelLabel;
1011
- this.successTooltip = config.successTooltip;
1012
- this.multiple = config.multiple;
1013
- this.onUploadFile = config.onUploadFile;
1014
- this.onRemoveFile = config.onRemoveFile;
1015
- this.onCancelUpload = config.onCancelUpload;
1016
- this.onDownloadFile = config.onDownloadFile;
1017
- }
1018
- }
1019
-
1020
- class BooleanOptionsLabel {
1021
- constructor(config) {
1022
- this.true = config.true;
1023
- this.false = config.false;
1024
- this.empty = config.empty;
1025
- }
1026
- }
1027
- class BooleanField extends Field {
1028
- constructor(config) {
1029
- super(config);
1030
- this.verticalAlignment = config.verticalAlignment;
1031
- this.optionsLabel = new BooleanOptionsLabel(config.optionsLabel);
1032
- this.onBlur = config.onBlur;
1033
- this.onFocus = config.onFocus;
1034
- this.onClick = config.onClick;
1035
- }
1036
- }
1037
-
1038
1014
  class CalendarLocaleOptions {
1039
1015
  constructor(config = {}) {
1040
1016
  this.hourFormat = "24";
@@ -1312,6 +1288,59 @@ LocaleModule = LocaleModule_1 = __decorate([
1312
1288
  })
1313
1289
  ], LocaleModule);
1314
1290
 
1291
+ class BignumberField extends Field {
1292
+ constructor(config) {
1293
+ super(config);
1294
+ this.numberLocaleOptions = config.numberLocaleOptions || DEFAULT_NUMBER_LOCALE_OPTIONS;
1295
+ this.browserAutocomplete = config.browserAutocomplete;
1296
+ this.precision = config.precision;
1297
+ this.scale = config.scale || 0;
1298
+ this.alignTo = this.scale ? AlignmentOptions.RIGHT : AlignmentOptions.LEFT;
1299
+ this.mask = config.mask;
1300
+ this.leftAddon = config.leftAddon;
1301
+ this.rightAddon = config.rightAddon;
1302
+ this.onBlur = config.onBlur;
1303
+ this.onFocus = config.onFocus;
1304
+ this.onComplete = config.onComplete;
1305
+ this.onInput = config.onInput;
1306
+ }
1307
+ }
1308
+
1309
+ class BlobField extends Field {
1310
+ constructor(config) {
1311
+ super(config);
1312
+ this.accept = config.accept;
1313
+ this.files = config.files || [];
1314
+ this.chooseLabel = config.chooseLabel;
1315
+ this.removeLabel = config.removeLabel;
1316
+ this.cancelLabel = config.cancelLabel;
1317
+ this.successTooltip = config.successTooltip;
1318
+ this.multiple = config.multiple;
1319
+ this.onUploadFile = config.onUploadFile;
1320
+ this.onRemoveFile = config.onRemoveFile;
1321
+ this.onCancelUpload = config.onCancelUpload;
1322
+ this.onDownloadFile = config.onDownloadFile;
1323
+ }
1324
+ }
1325
+
1326
+ class BooleanOptionsLabel {
1327
+ constructor(config) {
1328
+ this.true = config.true;
1329
+ this.false = config.false;
1330
+ this.empty = config.empty;
1331
+ }
1332
+ }
1333
+ class BooleanField extends Field {
1334
+ constructor(config) {
1335
+ super(config);
1336
+ this.verticalAlignment = config.verticalAlignment;
1337
+ this.optionsLabel = new BooleanOptionsLabel(config.optionsLabel);
1338
+ this.onBlur = config.onBlur;
1339
+ this.onFocus = config.onFocus;
1340
+ this.onClick = config.onClick;
1341
+ }
1342
+ }
1343
+
1315
1344
  class CalendarField extends Field {
1316
1345
  constructor(config) {
1317
1346
  super(config);
@@ -1347,11 +1376,17 @@ class ChipsField extends Field {
1347
1376
  }
1348
1377
 
1349
1378
  var NumberInputDirective_1;
1379
+ /**
1380
+ * @deprecated Should use 'AlignmentOptions' from @seniorsistemas/ng2-currency-mask instead
1381
+ */
1350
1382
  var NumberAlignmentOption;
1351
1383
  (function (NumberAlignmentOption) {
1352
1384
  NumberAlignmentOption["RIGHT"] = "right";
1353
1385
  NumberAlignmentOption["LEFT"] = "left";
1354
1386
  })(NumberAlignmentOption || (NumberAlignmentOption = {}));
1387
+ /**
1388
+ * @deprecated Should use BigNumberInput directive instead
1389
+ */
1355
1390
  let NumberInputDirective = NumberInputDirective_1 = class NumberInputDirective extends CurrencyMaskDirective {
1356
1391
  constructor() {
1357
1392
  super(...arguments);
@@ -1460,6 +1495,9 @@ NumberInputDirective = NumberInputDirective_1 = __decorate([
1460
1495
  })
1461
1496
  ], NumberInputDirective);
1462
1497
 
1498
+ /**
1499
+ * @deprecated Should use 'BignumberInputModule' instead
1500
+ */
1463
1501
  let NumberInputModule = class NumberInputModule {
1464
1502
  };
1465
1503
  NumberInputModule = __decorate([
@@ -1470,6 +1508,9 @@ NumberInputModule = __decorate([
1470
1508
  })
1471
1509
  ], NumberInputModule);
1472
1510
 
1511
+ /**
1512
+ * @deprecated Should use BignumberField instead
1513
+ */
1473
1514
  class NumberField extends Field {
1474
1515
  constructor(config) {
1475
1516
  super(config);
@@ -1487,6 +1528,9 @@ class NumberField extends Field {
1487
1528
  }
1488
1529
  }
1489
1530
 
1531
+ /**
1532
+ * @deprecated Should use BignumberField instead
1533
+ */
1490
1534
  class DecimalField extends NumberField {
1491
1535
  constructor(config) {
1492
1536
  super(config);
@@ -1496,6 +1540,9 @@ class DecimalField extends NumberField {
1496
1540
  }
1497
1541
  }
1498
1542
 
1543
+ /**
1544
+ * @deprecated Should use BignumberField instead
1545
+ */
1499
1546
  class CurrencyField extends DecimalField {
1500
1547
  constructor(config) {
1501
1548
  super(config);
@@ -1616,6 +1663,8 @@ class FormField {
1616
1663
  return new NumberField(config);
1617
1664
  case FieldType.Double:
1618
1665
  return new DecimalField(config);
1666
+ case FieldType.Number:
1667
+ return new BignumberField(config);
1619
1668
  case FieldType.String:
1620
1669
  case FieldType.Binary:
1621
1670
  return new TextField(config);
@@ -2053,6 +2102,7 @@ var DynamicType;
2053
2102
  DynamicType["String"] = "String";
2054
2103
  DynamicType["Text"] = "Text";
2055
2104
  DynamicType["Time"] = "Time";
2105
+ DynamicType["Number"] = "Number";
2056
2106
  })(DynamicType || (DynamicType = {}));
2057
2107
 
2058
2108
  class Grid {
@@ -2111,6 +2161,8 @@ class DynamicConfig {
2111
2161
  return new Fieldset(config);
2112
2162
  case DynamicType.Integer:
2113
2163
  return new NumberField(config);
2164
+ case DynamicType.Number:
2165
+ return new BignumberField(config);
2114
2166
  case DynamicType.Lookup:
2115
2167
  return new LookupField(config);
2116
2168
  case DynamicType.Money:
@@ -2837,6 +2889,108 @@ MaskFormatterModule = __decorate([
2837
2889
  })
2838
2890
  ], MaskFormatterModule);
2839
2891
 
2892
+ var BignumberInputDirective_1;
2893
+ let BignumberInputDirective = BignumberInputDirective_1 = class BignumberInputDirective extends CurrencyMaskDirective$1 {
2894
+ constructor() {
2895
+ super(...arguments);
2896
+ this.precision = 15;
2897
+ this.scale = 0;
2898
+ this.decimalSeparator = ",";
2899
+ this.thousandsSeparator = ".";
2900
+ this.alignTo = AlignmentOptions.LEFT;
2901
+ this.allowNegative = true;
2902
+ }
2903
+ ngOnInit() {
2904
+ this.updateVariables();
2905
+ super.ngOnInit();
2906
+ }
2907
+ ngOnChanges(changes) {
2908
+ const placeholderChange = changes.placeholder && changes.placeholder.currentValue;
2909
+ if (!placeholderChange && this.scale)
2910
+ this.placeholder = `0${this.decimalSeparator}${"".padEnd(this.scale, "0")}`;
2911
+ if (changes.scale ||
2912
+ changes.decimalSeparator ||
2913
+ changes.thousandsSeparator ||
2914
+ changes.alignTo ||
2915
+ changes.precision ||
2916
+ changes.allowNegative) {
2917
+ this.updateVariables();
2918
+ }
2919
+ }
2920
+ /**
2921
+ * Update the options values according to the directive input values.
2922
+ */
2923
+ updateVariables() {
2924
+ this.options = {
2925
+ align: this.alignTo,
2926
+ decimalSeparator: this.decimalSeparator,
2927
+ thousandsSeparator: this.thousandsSeparator,
2928
+ scale: this.scale || 0,
2929
+ prefix: "",
2930
+ suffix: "",
2931
+ allowNegative: this.allowNegative
2932
+ };
2933
+ this.calculateMaxLength();
2934
+ }
2935
+ /**
2936
+ * Responsible to calculate the field maximum length considering the separators.
2937
+ */
2938
+ calculateMaxLength() {
2939
+ const decSepLength = this.decimalSeparator.length;
2940
+ const thoSepLength = this.thousandsSeparator.length;
2941
+ let maxLength = this.precision + (this.scale ? decSepLength : 0);
2942
+ maxLength += Math.ceil((this.precision - (this.scale ? this.scale : 0)) / 3 - 1) * thoSepLength;
2943
+ this.maxLength = maxLength;
2944
+ }
2945
+ };
2946
+ __decorate([
2947
+ Input()
2948
+ ], BignumberInputDirective.prototype, "precision", void 0);
2949
+ __decorate([
2950
+ Input()
2951
+ ], BignumberInputDirective.prototype, "scale", void 0);
2952
+ __decorate([
2953
+ Input()
2954
+ ], BignumberInputDirective.prototype, "decimalSeparator", void 0);
2955
+ __decorate([
2956
+ Input()
2957
+ ], BignumberInputDirective.prototype, "thousandsSeparator", void 0);
2958
+ __decorate([
2959
+ Input()
2960
+ ], BignumberInputDirective.prototype, "alignTo", void 0);
2961
+ __decorate([
2962
+ Input()
2963
+ ], BignumberInputDirective.prototype, "allowNegative", void 0);
2964
+ __decorate([
2965
+ Input(),
2966
+ HostBinding("attr.placeholder")
2967
+ ], BignumberInputDirective.prototype, "placeholder", void 0);
2968
+ __decorate([
2969
+ HostBinding("attr.maxLength")
2970
+ ], BignumberInputDirective.prototype, "maxLength", void 0);
2971
+ BignumberInputDirective = BignumberInputDirective_1 = __decorate([
2972
+ Directive({
2973
+ selector: "input[sBignumberInput]",
2974
+ providers: [
2975
+ {
2976
+ provide: NG_VALUE_ACCESSOR,
2977
+ useExisting: forwardRef(() => BignumberInputDirective_1),
2978
+ multi: true,
2979
+ },
2980
+ ],
2981
+ })
2982
+ ], BignumberInputDirective);
2983
+
2984
+ let BignumberInputModule = class BignumberInputModule {
2985
+ };
2986
+ BignumberInputModule = __decorate([
2987
+ NgModule({
2988
+ imports: [CommonModule],
2989
+ declarations: [BignumberInputDirective],
2990
+ exports: [BignumberInputDirective],
2991
+ })
2992
+ ], BignumberInputModule);
2993
+
2840
2994
  var TableHeaderCheckboxComponent_1;
2841
2995
  let TableHeaderCheckboxComponent = TableHeaderCheckboxComponent_1 = class TableHeaderCheckboxComponent {
2842
2996
  constructor(table, tableService) {
@@ -3534,6 +3688,9 @@ class BaseFieldComponent {
3534
3688
  }
3535
3689
  }
3536
3690
 
3691
+ /**
3692
+ * @deprecated Should use bignumber instead
3693
+ */
3537
3694
  let CurrencyFieldComponent = class CurrencyFieldComponent extends BaseFieldComponent {
3538
3695
  };
3539
3696
  __decorate([
@@ -3576,6 +3733,9 @@ LookupFieldComponent = __decorate([
3576
3733
  })
3577
3734
  ], LookupFieldComponent);
3578
3735
 
3736
+ /**
3737
+ * @deprecated Should use bignumber instead
3738
+ */
3579
3739
  let NumberFieldComponent = class NumberFieldComponent extends BaseFieldComponent {
3580
3740
  constructor() {
3581
3741
  super(...arguments);
@@ -3908,6 +4068,59 @@ var StructureType;
3908
4068
  StructureType["Section"] = "Section";
3909
4069
  })(StructureType || (StructureType = {}));
3910
4070
 
4071
+ let BignumberFieldComponent = class BignumberFieldComponent extends BaseFieldComponent {
4072
+ constructor() {
4073
+ super(...arguments);
4074
+ this.onInput = new EventEmitter();
4075
+ this.onFocus = new EventEmitter();
4076
+ this.onComplete = new EventEmitter();
4077
+ this.ngUnsubscribe = new Subject();
4078
+ }
4079
+ ngOnInit() {
4080
+ this.onFocus.pipe(takeUntil(this.ngUnsubscribe)).subscribe((event) => {
4081
+ if (this.field.onFocus)
4082
+ this.field.onFocus(event);
4083
+ });
4084
+ this.onInput.pipe(takeUntil(this.ngUnsubscribe)).subscribe((event) => {
4085
+ if (this.field.onInput)
4086
+ this.field.onInput(event);
4087
+ });
4088
+ this.onComplete.pipe(takeUntil(this.ngUnsubscribe)).subscribe((event) => {
4089
+ if (this.field.onComplete)
4090
+ this.field.onComplete(event);
4091
+ });
4092
+ }
4093
+ ngOnDestroy() {
4094
+ this.ngUnsubscribe.next();
4095
+ this.ngUnsubscribe.complete();
4096
+ }
4097
+ get fieldType() {
4098
+ return FieldType;
4099
+ }
4100
+ };
4101
+ __decorate([
4102
+ Input()
4103
+ ], BignumberFieldComponent.prototype, "field", void 0);
4104
+ __decorate([
4105
+ Input()
4106
+ ], BignumberFieldComponent.prototype, "formControl", void 0);
4107
+ __decorate([
4108
+ Output()
4109
+ ], BignumberFieldComponent.prototype, "onInput", void 0);
4110
+ __decorate([
4111
+ Output()
4112
+ ], BignumberFieldComponent.prototype, "onFocus", void 0);
4113
+ __decorate([
4114
+ Output()
4115
+ ], BignumberFieldComponent.prototype, "onComplete", void 0);
4116
+ BignumberFieldComponent = __decorate([
4117
+ Component({
4118
+ 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 [pTooltip]=\"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\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 [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 [pTooltip]=\"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 />\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>",
4119
+ encapsulation: ViewEncapsulation.None,
4120
+ 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}"]
4121
+ })
4122
+ ], BignumberFieldComponent);
4123
+
3911
4124
  class DynamicForm {
3912
4125
  constructor({ group, errorMessages }) {
3913
4126
  this.group = group;
@@ -3967,6 +4180,8 @@ class DynamicField extends DynamicForm {
3967
4180
  case FieldType.Double:
3968
4181
  case FieldType.Integer:
3969
4182
  return NumberFieldComponent;
4183
+ case FieldType.Number:
4184
+ return BignumberFieldComponent;
3970
4185
  case FieldType.Enum:
3971
4186
  return SelectFieldComponent;
3972
4187
  case FieldType.Lookup:
@@ -4126,6 +4341,7 @@ DynamicFormModule = __decorate([
4126
4341
  InputMaskModule,
4127
4342
  DropdownModule,
4128
4343
  NumberInputModule,
4344
+ BignumberInputModule,
4129
4345
  LocalizedNumberInputModule,
4130
4346
  ControlErrorsModule,
4131
4347
  LocaleModule,
@@ -4167,6 +4383,7 @@ DynamicFormModule = __decorate([
4167
4383
  LookupComponent,
4168
4384
  LookupFieldComponent,
4169
4385
  NumberFieldComponent,
4386
+ BignumberFieldComponent,
4170
4387
  RadioButtonComponent,
4171
4388
  RowComponent,
4172
4389
  SectionComponent,
@@ -4185,6 +4402,7 @@ DynamicFormModule = __decorate([
4185
4402
  FileUploadComponent$1,
4186
4403
  LookupFieldComponent,
4187
4404
  NumberFieldComponent,
4405
+ BignumberFieldComponent,
4188
4406
  RadioButtonComponent,
4189
4407
  RowComponent,
4190
4408
  SectionComponent,
@@ -6233,5 +6451,5 @@ AngularComponentsModule = AngularComponentsModule_1 = __decorate([
6233
6451
  * Generated bundle index. Do not edit.
6234
6452
  */
6235
6453
 
6236
- export { AngularComponentsModule, AutocompleteField, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FormField, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, ProductHeaderComponent, ProductHeaderModule, RadioButtonField, RationButtonOption, RowTogllerDirective, Section, SelectField, SelectOption, SidebarComponent, SidebarModule, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TextAreaField, TextField, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TileComponent, TileModule, TokenListComponent, TokenListModule, ValidateErrors, LocalizedCurrencyImpurePipe as ɵa, TokenListModule as ɵb, FooterComponent as ɵba, InfoSignComponent as ɵbb, NumberLocaleOptions as ɵbc, ThumbnailService as ɵbd, InfiniteScrollModule as ɵbe, InfiniteScrollDirective as ɵbf, TableColumnsComponent as ɵc, InfoSignModule as ɵd, AutocompleteFieldComponent as ɵe, BooleanFieldComponent as ɵf, CalendarFieldComponent as ɵg, ChipsFieldComponent as ɵh, CurrencyFieldComponent as ɵi, BaseFieldComponent as ɵj, DynamicFieldComponent as ɵk, DynamicFormDirective as ɵl, FieldsetComponent as ɵm, FileUploadComponent$1 as ɵn, LookupFieldComponent as ɵo, NumberFieldComponent as ɵp, RadioButtonComponent as ɵq, RowComponent as ɵr, SectionComponent as ɵs, SelectFieldComponent as ɵt, TextAreaFieldComponent as ɵu, TextFieldComponent as ɵv, DecimalField as ɵx, StructureModule as ɵy, HeaderComponent as ɵz };
6454
+ export { AngularComponentsModule, AutocompleteField, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FormField, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, ProductHeaderComponent, ProductHeaderModule, RadioButtonField, RationButtonOption, RowTogllerDirective, Section, SelectField, SelectOption, SidebarComponent, SidebarModule, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TextAreaField, TextField, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TileComponent, TileModule, TokenListComponent, TokenListModule, ValidateErrors, LocalizedCurrencyImpurePipe as ɵa, TokenListModule as ɵb, HeaderComponent as ɵba, FooterComponent as ɵbb, InfoSignComponent as ɵbc, NumberLocaleOptions as ɵbd, ThumbnailService as ɵbe, InfiniteScrollModule as ɵbf, InfiniteScrollDirective as ɵbg, TableColumnsComponent as ɵc, InfoSignModule as ɵd, AutocompleteFieldComponent as ɵe, BooleanFieldComponent as ɵf, CalendarFieldComponent as ɵg, ChipsFieldComponent as ɵh, CurrencyFieldComponent as ɵi, BaseFieldComponent as ɵj, DynamicFieldComponent as ɵk, DynamicFormDirective as ɵl, FieldsetComponent as ɵm, FileUploadComponent$1 as ɵn, LookupFieldComponent as ɵo, NumberFieldComponent as ɵp, BignumberFieldComponent as ɵq, RadioButtonComponent as ɵr, RowComponent as ɵs, SectionComponent as ɵt, SelectFieldComponent as ɵu, TextAreaFieldComponent as ɵv, TextFieldComponent as ɵw, DecimalField as ɵy, StructureModule as ɵz };
6237
6455
  //# sourceMappingURL=seniorsistemas-angular-components.js.map