@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.
- package/bundles/seniorsistemas-angular-components.umd.js +301 -62
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/bignumber-input/index.d.ts +2 -0
- package/components/bignumber-input/number-input.directive.d.ts +22 -0
- package/components/bignumber-input/number-input.module.d.ts +2 -0
- package/components/dynamic-form/components/fields/bignumber/number-field.component.d.ts +16 -0
- package/components/dynamic-form/components/fields/currency/currency-field.component.d.ts +3 -0
- package/components/dynamic-form/components/fields/number/number-field.component.d.ts +3 -0
- package/components/dynamic-form/configurations/dynamic-type.d.ts +2 -1
- package/components/dynamic-form/configurations/field-type.d.ts +11 -1
- package/components/dynamic-form/configurations/fields/bignumber-field.d.ts +32 -0
- package/components/dynamic-form/configurations/fields/currency-field.d.ts +3 -0
- package/components/dynamic-form/configurations/fields/decimal-field.d.ts +6 -0
- package/components/dynamic-form/configurations/fields/number-field.d.ts +6 -0
- package/components/dynamic-form/configurations/form-field.d.ts +5 -1
- package/components/dynamic-form/index.d.ts +1 -0
- package/components/number-input/number-input.directive.d.ts +6 -0
- package/components/number-input/number-input.module.d.ts +3 -0
- package/esm2015/components/bignumber-input/index.js +3 -0
- package/esm2015/components/bignumber-input/number-input.directive.js +97 -0
- package/esm2015/components/bignumber-input/number-input.module.js +15 -0
- package/esm2015/components/dynamic-form/components/fields/bignumber/number-field.component.js +60 -0
- package/esm2015/components/dynamic-form/components/fields/currency/currency-field.component.js +4 -1
- package/esm2015/components/dynamic-form/components/fields/number/number-field.component.js +4 -1
- package/esm2015/components/dynamic-form/configurations/dynamic-config.js +4 -1
- package/esm2015/components/dynamic-form/configurations/dynamic-type.js +2 -1
- package/esm2015/components/dynamic-form/configurations/field-type.js +11 -1
- package/esm2015/components/dynamic-form/configurations/fields/bignumber-field.js +21 -0
- package/esm2015/components/dynamic-form/configurations/fields/currency-field.js +4 -1
- package/esm2015/components/dynamic-form/configurations/fields/decimal-field.js +4 -1
- package/esm2015/components/dynamic-form/configurations/fields/number-field.js +4 -1
- package/esm2015/components/dynamic-form/configurations/form-field.js +4 -1
- package/esm2015/components/dynamic-form/dynamic-form.js +4 -1
- package/esm2015/components/dynamic-form/dynamic-form.module.js +6 -1
- package/esm2015/components/dynamic-form/index.js +2 -1
- package/esm2015/components/number-input/number-input.directive.js +7 -1
- package/esm2015/components/number-input/number-input.module.js +4 -1
- package/esm2015/public-api.js +5 -1
- package/esm2015/seniorsistemas-angular-components.js +17 -16
- package/esm5/components/bignumber-input/index.js +3 -0
- package/esm5/components/bignumber-input/number-input.directive.js +101 -0
- package/esm5/components/bignumber-input/number-input.module.js +18 -0
- package/esm5/components/dynamic-form/components/fields/bignumber/number-field.component.js +68 -0
- package/esm5/components/dynamic-form/components/fields/currency/currency-field.component.js +4 -1
- package/esm5/components/dynamic-form/components/fields/number/number-field.component.js +4 -1
- package/esm5/components/dynamic-form/configurations/dynamic-config.js +4 -1
- package/esm5/components/dynamic-form/configurations/dynamic-type.js +2 -1
- package/esm5/components/dynamic-form/configurations/field-type.js +11 -1
- package/esm5/components/dynamic-form/configurations/fields/bignumber-field.js +26 -0
- package/esm5/components/dynamic-form/configurations/fields/currency-field.js +4 -1
- package/esm5/components/dynamic-form/configurations/fields/decimal-field.js +4 -1
- package/esm5/components/dynamic-form/configurations/fields/number-field.js +4 -1
- package/esm5/components/dynamic-form/configurations/form-field.js +4 -1
- package/esm5/components/dynamic-form/dynamic-form.js +4 -1
- package/esm5/components/dynamic-form/dynamic-form.module.js +6 -1
- package/esm5/components/dynamic-form/index.js +2 -1
- package/esm5/components/number-input/number-input.directive.js +7 -1
- package/esm5/components/number-input/number-input.module.js +4 -1
- package/esm5/public-api.js +5 -1
- package/esm5/seniorsistemas-angular-components.js +17 -16
- package/fesm2015/seniorsistemas-angular-components.js +254 -36
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +279 -43
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +3 -1
- package/public-api.d.ts +4 -0
- package/seniorsistemas-angular-components.d.ts +16 -15
- 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';
|
|
@@ -991,16 +992,26 @@ var FieldType;
|
|
|
991
992
|
FieldType["Chips"] = "Chips";
|
|
992
993
|
FieldType["Date"] = "Date";
|
|
993
994
|
FieldType["DateTime"] = "DateTime";
|
|
995
|
+
/**
|
|
996
|
+
* @deprecated Should use 'Number' instead
|
|
997
|
+
*/
|
|
994
998
|
FieldType["Double"] = "Double";
|
|
995
999
|
FieldType["Enum"] = "Enum";
|
|
996
1000
|
FieldType["Blob"] = "Blob";
|
|
1001
|
+
/**
|
|
1002
|
+
* @deprecated Should use 'Number' instead
|
|
1003
|
+
*/
|
|
997
1004
|
FieldType["Integer"] = "Integer";
|
|
998
1005
|
FieldType["Lookup"] = "Lookup";
|
|
1006
|
+
/**
|
|
1007
|
+
* @deprecated Should use 'Number' instead
|
|
1008
|
+
*/
|
|
999
1009
|
FieldType["Money"] = "Money";
|
|
1000
1010
|
FieldType["Radio"] = "Radio";
|
|
1001
1011
|
FieldType["String"] = "String";
|
|
1002
1012
|
FieldType["Text"] = "Text";
|
|
1003
1013
|
FieldType["Time"] = "Time";
|
|
1014
|
+
FieldType["Number"] = "Number";
|
|
1004
1015
|
})(FieldType || (FieldType = {}));
|
|
1005
1016
|
|
|
1006
1017
|
var FieldSize = /** @class */ (function () {
|
|
@@ -1046,48 +1057,6 @@ var AutocompleteField = /** @class */ (function (_super) {
|
|
|
1046
1057
|
return AutocompleteField;
|
|
1047
1058
|
}(Field));
|
|
1048
1059
|
|
|
1049
|
-
var BlobField = /** @class */ (function (_super) {
|
|
1050
|
-
__extends(BlobField, _super);
|
|
1051
|
-
function BlobField(config) {
|
|
1052
|
-
var _this = _super.call(this, config) || this;
|
|
1053
|
-
_this.accept = config.accept;
|
|
1054
|
-
_this.files = config.files || [];
|
|
1055
|
-
_this.chooseLabel = config.chooseLabel;
|
|
1056
|
-
_this.removeLabel = config.removeLabel;
|
|
1057
|
-
_this.cancelLabel = config.cancelLabel;
|
|
1058
|
-
_this.successTooltip = config.successTooltip;
|
|
1059
|
-
_this.multiple = config.multiple;
|
|
1060
|
-
_this.onUploadFile = config.onUploadFile;
|
|
1061
|
-
_this.onRemoveFile = config.onRemoveFile;
|
|
1062
|
-
_this.onCancelUpload = config.onCancelUpload;
|
|
1063
|
-
_this.onDownloadFile = config.onDownloadFile;
|
|
1064
|
-
return _this;
|
|
1065
|
-
}
|
|
1066
|
-
return BlobField;
|
|
1067
|
-
}(Field));
|
|
1068
|
-
|
|
1069
|
-
var BooleanOptionsLabel = /** @class */ (function () {
|
|
1070
|
-
function BooleanOptionsLabel(config) {
|
|
1071
|
-
this.true = config.true;
|
|
1072
|
-
this.false = config.false;
|
|
1073
|
-
this.empty = config.empty;
|
|
1074
|
-
}
|
|
1075
|
-
return BooleanOptionsLabel;
|
|
1076
|
-
}());
|
|
1077
|
-
var BooleanField = /** @class */ (function (_super) {
|
|
1078
|
-
__extends(BooleanField, _super);
|
|
1079
|
-
function BooleanField(config) {
|
|
1080
|
-
var _this = _super.call(this, config) || this;
|
|
1081
|
-
_this.verticalAlignment = config.verticalAlignment;
|
|
1082
|
-
_this.optionsLabel = new BooleanOptionsLabel(config.optionsLabel);
|
|
1083
|
-
_this.onBlur = config.onBlur;
|
|
1084
|
-
_this.onFocus = config.onFocus;
|
|
1085
|
-
_this.onClick = config.onClick;
|
|
1086
|
-
return _this;
|
|
1087
|
-
}
|
|
1088
|
-
return BooleanField;
|
|
1089
|
-
}(Field));
|
|
1090
|
-
|
|
1091
1060
|
var CalendarLocaleOptions = /** @class */ (function () {
|
|
1092
1061
|
function CalendarLocaleOptions(config) {
|
|
1093
1062
|
var _this = this;
|
|
@@ -1408,6 +1377,69 @@ var LocaleModule = /** @class */ (function () {
|
|
|
1408
1377
|
return LocaleModule;
|
|
1409
1378
|
}());
|
|
1410
1379
|
|
|
1380
|
+
var BignumberField = /** @class */ (function (_super) {
|
|
1381
|
+
__extends(BignumberField, _super);
|
|
1382
|
+
function BignumberField(config) {
|
|
1383
|
+
var _this = _super.call(this, config) || this;
|
|
1384
|
+
_this.numberLocaleOptions = config.numberLocaleOptions || DEFAULT_NUMBER_LOCALE_OPTIONS;
|
|
1385
|
+
_this.browserAutocomplete = config.browserAutocomplete;
|
|
1386
|
+
_this.precision = config.precision;
|
|
1387
|
+
_this.scale = config.scale || 0;
|
|
1388
|
+
_this.alignTo = _this.scale ? AlignmentOptions.RIGHT : AlignmentOptions.LEFT;
|
|
1389
|
+
_this.mask = config.mask;
|
|
1390
|
+
_this.leftAddon = config.leftAddon;
|
|
1391
|
+
_this.rightAddon = config.rightAddon;
|
|
1392
|
+
_this.onBlur = config.onBlur;
|
|
1393
|
+
_this.onFocus = config.onFocus;
|
|
1394
|
+
_this.onComplete = config.onComplete;
|
|
1395
|
+
_this.onInput = config.onInput;
|
|
1396
|
+
return _this;
|
|
1397
|
+
}
|
|
1398
|
+
return BignumberField;
|
|
1399
|
+
}(Field));
|
|
1400
|
+
|
|
1401
|
+
var BlobField = /** @class */ (function (_super) {
|
|
1402
|
+
__extends(BlobField, _super);
|
|
1403
|
+
function BlobField(config) {
|
|
1404
|
+
var _this = _super.call(this, config) || this;
|
|
1405
|
+
_this.accept = config.accept;
|
|
1406
|
+
_this.files = config.files || [];
|
|
1407
|
+
_this.chooseLabel = config.chooseLabel;
|
|
1408
|
+
_this.removeLabel = config.removeLabel;
|
|
1409
|
+
_this.cancelLabel = config.cancelLabel;
|
|
1410
|
+
_this.successTooltip = config.successTooltip;
|
|
1411
|
+
_this.multiple = config.multiple;
|
|
1412
|
+
_this.onUploadFile = config.onUploadFile;
|
|
1413
|
+
_this.onRemoveFile = config.onRemoveFile;
|
|
1414
|
+
_this.onCancelUpload = config.onCancelUpload;
|
|
1415
|
+
_this.onDownloadFile = config.onDownloadFile;
|
|
1416
|
+
return _this;
|
|
1417
|
+
}
|
|
1418
|
+
return BlobField;
|
|
1419
|
+
}(Field));
|
|
1420
|
+
|
|
1421
|
+
var BooleanOptionsLabel = /** @class */ (function () {
|
|
1422
|
+
function BooleanOptionsLabel(config) {
|
|
1423
|
+
this.true = config.true;
|
|
1424
|
+
this.false = config.false;
|
|
1425
|
+
this.empty = config.empty;
|
|
1426
|
+
}
|
|
1427
|
+
return BooleanOptionsLabel;
|
|
1428
|
+
}());
|
|
1429
|
+
var BooleanField = /** @class */ (function (_super) {
|
|
1430
|
+
__extends(BooleanField, _super);
|
|
1431
|
+
function BooleanField(config) {
|
|
1432
|
+
var _this = _super.call(this, config) || this;
|
|
1433
|
+
_this.verticalAlignment = config.verticalAlignment;
|
|
1434
|
+
_this.optionsLabel = new BooleanOptionsLabel(config.optionsLabel);
|
|
1435
|
+
_this.onBlur = config.onBlur;
|
|
1436
|
+
_this.onFocus = config.onFocus;
|
|
1437
|
+
_this.onClick = config.onClick;
|
|
1438
|
+
return _this;
|
|
1439
|
+
}
|
|
1440
|
+
return BooleanField;
|
|
1441
|
+
}(Field));
|
|
1442
|
+
|
|
1411
1443
|
var CalendarField = /** @class */ (function (_super) {
|
|
1412
1444
|
__extends(CalendarField, _super);
|
|
1413
1445
|
function CalendarField(config) {
|
|
@@ -1448,11 +1480,17 @@ var ChipsField = /** @class */ (function (_super) {
|
|
|
1448
1480
|
return ChipsField;
|
|
1449
1481
|
}(Field));
|
|
1450
1482
|
|
|
1483
|
+
/**
|
|
1484
|
+
* @deprecated Should use 'AlignmentOptions' from @seniorsistemas/ng2-currency-mask instead
|
|
1485
|
+
*/
|
|
1451
1486
|
var NumberAlignmentOption;
|
|
1452
1487
|
(function (NumberAlignmentOption) {
|
|
1453
1488
|
NumberAlignmentOption["RIGHT"] = "right";
|
|
1454
1489
|
NumberAlignmentOption["LEFT"] = "left";
|
|
1455
1490
|
})(NumberAlignmentOption || (NumberAlignmentOption = {}));
|
|
1491
|
+
/**
|
|
1492
|
+
* @deprecated Should use BigNumberInput directive instead
|
|
1493
|
+
*/
|
|
1456
1494
|
var NumberInputDirective = /** @class */ (function (_super) {
|
|
1457
1495
|
__extends(NumberInputDirective, _super);
|
|
1458
1496
|
function NumberInputDirective() {
|
|
@@ -1566,6 +1604,9 @@ var NumberInputDirective = /** @class */ (function (_super) {
|
|
|
1566
1604
|
return NumberInputDirective;
|
|
1567
1605
|
}(CurrencyMaskDirective));
|
|
1568
1606
|
|
|
1607
|
+
/**
|
|
1608
|
+
* @deprecated Should use 'BignumberInputModule' instead
|
|
1609
|
+
*/
|
|
1569
1610
|
var NumberInputModule = /** @class */ (function () {
|
|
1570
1611
|
function NumberInputModule() {
|
|
1571
1612
|
}
|
|
@@ -1579,6 +1620,9 @@ var NumberInputModule = /** @class */ (function () {
|
|
|
1579
1620
|
return NumberInputModule;
|
|
1580
1621
|
}());
|
|
1581
1622
|
|
|
1623
|
+
/**
|
|
1624
|
+
* @deprecated Should use BignumberField instead
|
|
1625
|
+
*/
|
|
1582
1626
|
var NumberField = /** @class */ (function (_super) {
|
|
1583
1627
|
__extends(NumberField, _super);
|
|
1584
1628
|
function NumberField(config) {
|
|
@@ -1599,6 +1643,9 @@ var NumberField = /** @class */ (function (_super) {
|
|
|
1599
1643
|
return NumberField;
|
|
1600
1644
|
}(Field));
|
|
1601
1645
|
|
|
1646
|
+
/**
|
|
1647
|
+
* @deprecated Should use BignumberField instead
|
|
1648
|
+
*/
|
|
1602
1649
|
var DecimalField = /** @class */ (function (_super) {
|
|
1603
1650
|
__extends(DecimalField, _super);
|
|
1604
1651
|
function DecimalField(config) {
|
|
@@ -1611,6 +1658,9 @@ var DecimalField = /** @class */ (function (_super) {
|
|
|
1611
1658
|
return DecimalField;
|
|
1612
1659
|
}(NumberField));
|
|
1613
1660
|
|
|
1661
|
+
/**
|
|
1662
|
+
* @deprecated Should use BignumberField instead
|
|
1663
|
+
*/
|
|
1614
1664
|
var CurrencyField = /** @class */ (function (_super) {
|
|
1615
1665
|
__extends(CurrencyField, _super);
|
|
1616
1666
|
function CurrencyField(config) {
|
|
@@ -1764,6 +1814,8 @@ var FormField = /** @class */ (function () {
|
|
|
1764
1814
|
return new NumberField(config);
|
|
1765
1815
|
case FieldType.Double:
|
|
1766
1816
|
return new DecimalField(config);
|
|
1817
|
+
case FieldType.Number:
|
|
1818
|
+
return new BignumberField(config);
|
|
1767
1819
|
case FieldType.String:
|
|
1768
1820
|
case FieldType.Binary:
|
|
1769
1821
|
return new TextField(config);
|
|
@@ -2208,6 +2260,7 @@ var DynamicType;
|
|
|
2208
2260
|
DynamicType["String"] = "String";
|
|
2209
2261
|
DynamicType["Text"] = "Text";
|
|
2210
2262
|
DynamicType["Time"] = "Time";
|
|
2263
|
+
DynamicType["Number"] = "Number";
|
|
2211
2264
|
})(DynamicType || (DynamicType = {}));
|
|
2212
2265
|
|
|
2213
2266
|
var Grid = /** @class */ (function () {
|
|
@@ -2275,6 +2328,8 @@ var DynamicConfig = /** @class */ (function () {
|
|
|
2275
2328
|
return new Fieldset(config);
|
|
2276
2329
|
case DynamicType.Integer:
|
|
2277
2330
|
return new NumberField(config);
|
|
2331
|
+
case DynamicType.Number:
|
|
2332
|
+
return new BignumberField(config);
|
|
2278
2333
|
case DynamicType.Lookup:
|
|
2279
2334
|
return new LookupField(config);
|
|
2280
2335
|
case DynamicType.Money:
|
|
@@ -3049,6 +3104,115 @@ var MaskFormatterModule = /** @class */ (function () {
|
|
|
3049
3104
|
return MaskFormatterModule;
|
|
3050
3105
|
}());
|
|
3051
3106
|
|
|
3107
|
+
var BignumberInputDirective = /** @class */ (function (_super) {
|
|
3108
|
+
__extends(BignumberInputDirective, _super);
|
|
3109
|
+
function BignumberInputDirective() {
|
|
3110
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
3111
|
+
_this.precision = 15;
|
|
3112
|
+
_this.scale = 0;
|
|
3113
|
+
_this.decimalSeparator = ",";
|
|
3114
|
+
_this.thousandsSeparator = ".";
|
|
3115
|
+
_this.alignTo = AlignmentOptions.LEFT;
|
|
3116
|
+
_this.allowNegative = true;
|
|
3117
|
+
return _this;
|
|
3118
|
+
}
|
|
3119
|
+
BignumberInputDirective_1 = BignumberInputDirective;
|
|
3120
|
+
BignumberInputDirective.prototype.ngOnInit = function () {
|
|
3121
|
+
this.updateVariables();
|
|
3122
|
+
_super.prototype.ngOnInit.call(this);
|
|
3123
|
+
};
|
|
3124
|
+
BignumberInputDirective.prototype.ngOnChanges = function (changes) {
|
|
3125
|
+
var placeholderChange = changes.placeholder && changes.placeholder.currentValue;
|
|
3126
|
+
if (!placeholderChange && this.scale)
|
|
3127
|
+
this.placeholder = "0" + this.decimalSeparator + "".padEnd(this.scale, "0");
|
|
3128
|
+
if (changes.scale ||
|
|
3129
|
+
changes.decimalSeparator ||
|
|
3130
|
+
changes.thousandsSeparator ||
|
|
3131
|
+
changes.alignTo ||
|
|
3132
|
+
changes.precision ||
|
|
3133
|
+
changes.allowNegative) {
|
|
3134
|
+
this.updateVariables();
|
|
3135
|
+
}
|
|
3136
|
+
};
|
|
3137
|
+
/**
|
|
3138
|
+
* Update the options values according to the directive input values.
|
|
3139
|
+
*/
|
|
3140
|
+
BignumberInputDirective.prototype.updateVariables = function () {
|
|
3141
|
+
this.options = {
|
|
3142
|
+
align: this.alignTo,
|
|
3143
|
+
decimalSeparator: this.decimalSeparator,
|
|
3144
|
+
thousandsSeparator: this.thousandsSeparator,
|
|
3145
|
+
scale: this.scale || 0,
|
|
3146
|
+
prefix: "",
|
|
3147
|
+
suffix: "",
|
|
3148
|
+
allowNegative: this.allowNegative
|
|
3149
|
+
};
|
|
3150
|
+
this.calculateMaxLength();
|
|
3151
|
+
};
|
|
3152
|
+
/**
|
|
3153
|
+
* Responsible to calculate the field maximum length considering the separators.
|
|
3154
|
+
*/
|
|
3155
|
+
BignumberInputDirective.prototype.calculateMaxLength = function () {
|
|
3156
|
+
var decSepLength = this.decimalSeparator.length;
|
|
3157
|
+
var thoSepLength = this.thousandsSeparator.length;
|
|
3158
|
+
var maxLength = this.precision + (this.scale ? decSepLength : 0);
|
|
3159
|
+
maxLength += Math.ceil((this.precision - (this.scale ? this.scale : 0)) / 3 - 1) * thoSepLength;
|
|
3160
|
+
this.maxLength = maxLength;
|
|
3161
|
+
};
|
|
3162
|
+
var BignumberInputDirective_1;
|
|
3163
|
+
__decorate([
|
|
3164
|
+
Input()
|
|
3165
|
+
], BignumberInputDirective.prototype, "precision", void 0);
|
|
3166
|
+
__decorate([
|
|
3167
|
+
Input()
|
|
3168
|
+
], BignumberInputDirective.prototype, "scale", void 0);
|
|
3169
|
+
__decorate([
|
|
3170
|
+
Input()
|
|
3171
|
+
], BignumberInputDirective.prototype, "decimalSeparator", void 0);
|
|
3172
|
+
__decorate([
|
|
3173
|
+
Input()
|
|
3174
|
+
], BignumberInputDirective.prototype, "thousandsSeparator", void 0);
|
|
3175
|
+
__decorate([
|
|
3176
|
+
Input()
|
|
3177
|
+
], BignumberInputDirective.prototype, "alignTo", void 0);
|
|
3178
|
+
__decorate([
|
|
3179
|
+
Input()
|
|
3180
|
+
], BignumberInputDirective.prototype, "allowNegative", void 0);
|
|
3181
|
+
__decorate([
|
|
3182
|
+
Input(),
|
|
3183
|
+
HostBinding("attr.placeholder")
|
|
3184
|
+
], BignumberInputDirective.prototype, "placeholder", void 0);
|
|
3185
|
+
__decorate([
|
|
3186
|
+
HostBinding("attr.maxLength")
|
|
3187
|
+
], BignumberInputDirective.prototype, "maxLength", void 0);
|
|
3188
|
+
BignumberInputDirective = BignumberInputDirective_1 = __decorate([
|
|
3189
|
+
Directive({
|
|
3190
|
+
selector: "input[sBignumberInput]",
|
|
3191
|
+
providers: [
|
|
3192
|
+
{
|
|
3193
|
+
provide: NG_VALUE_ACCESSOR,
|
|
3194
|
+
useExisting: forwardRef(function () { return BignumberInputDirective_1; }),
|
|
3195
|
+
multi: true,
|
|
3196
|
+
},
|
|
3197
|
+
],
|
|
3198
|
+
})
|
|
3199
|
+
], BignumberInputDirective);
|
|
3200
|
+
return BignumberInputDirective;
|
|
3201
|
+
}(CurrencyMaskDirective$1));
|
|
3202
|
+
|
|
3203
|
+
var BignumberInputModule = /** @class */ (function () {
|
|
3204
|
+
function BignumberInputModule() {
|
|
3205
|
+
}
|
|
3206
|
+
BignumberInputModule = __decorate([
|
|
3207
|
+
NgModule({
|
|
3208
|
+
imports: [CommonModule],
|
|
3209
|
+
declarations: [BignumberInputDirective],
|
|
3210
|
+
exports: [BignumberInputDirective],
|
|
3211
|
+
})
|
|
3212
|
+
], BignumberInputModule);
|
|
3213
|
+
return BignumberInputModule;
|
|
3214
|
+
}());
|
|
3215
|
+
|
|
3052
3216
|
var TableHeaderCheckboxComponent = /** @class */ (function () {
|
|
3053
3217
|
function TableHeaderCheckboxComponent(table, tableService) {
|
|
3054
3218
|
var _this = this;
|
|
@@ -3798,6 +3962,9 @@ var BaseFieldComponent = /** @class */ (function () {
|
|
|
3798
3962
|
return BaseFieldComponent;
|
|
3799
3963
|
}());
|
|
3800
3964
|
|
|
3965
|
+
/**
|
|
3966
|
+
* @deprecated Should use bignumber instead
|
|
3967
|
+
*/
|
|
3801
3968
|
var CurrencyFieldComponent = /** @class */ (function (_super) {
|
|
3802
3969
|
__extends(CurrencyFieldComponent, _super);
|
|
3803
3970
|
function CurrencyFieldComponent() {
|
|
@@ -3853,6 +4020,9 @@ var LookupFieldComponent = /** @class */ (function () {
|
|
|
3853
4020
|
return LookupFieldComponent;
|
|
3854
4021
|
}());
|
|
3855
4022
|
|
|
4023
|
+
/**
|
|
4024
|
+
* @deprecated Should use bignumber instead
|
|
4025
|
+
*/
|
|
3856
4026
|
var NumberFieldComponent = /** @class */ (function (_super) {
|
|
3857
4027
|
__extends(NumberFieldComponent, _super);
|
|
3858
4028
|
function NumberFieldComponent() {
|
|
@@ -4176,6 +4346,67 @@ var StructureType;
|
|
|
4176
4346
|
StructureType["Section"] = "Section";
|
|
4177
4347
|
})(StructureType || (StructureType = {}));
|
|
4178
4348
|
|
|
4349
|
+
var BignumberFieldComponent = /** @class */ (function (_super) {
|
|
4350
|
+
__extends(BignumberFieldComponent, _super);
|
|
4351
|
+
function BignumberFieldComponent() {
|
|
4352
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
4353
|
+
_this.onInput = new EventEmitter();
|
|
4354
|
+
_this.onFocus = new EventEmitter();
|
|
4355
|
+
_this.onComplete = new EventEmitter();
|
|
4356
|
+
_this.ngUnsubscribe = new Subject();
|
|
4357
|
+
return _this;
|
|
4358
|
+
}
|
|
4359
|
+
BignumberFieldComponent.prototype.ngOnInit = function () {
|
|
4360
|
+
var _this = this;
|
|
4361
|
+
this.onFocus.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
4362
|
+
if (_this.field.onFocus)
|
|
4363
|
+
_this.field.onFocus(event);
|
|
4364
|
+
});
|
|
4365
|
+
this.onInput.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
4366
|
+
if (_this.field.onInput)
|
|
4367
|
+
_this.field.onInput(event);
|
|
4368
|
+
});
|
|
4369
|
+
this.onComplete.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
4370
|
+
if (_this.field.onComplete)
|
|
4371
|
+
_this.field.onComplete(event);
|
|
4372
|
+
});
|
|
4373
|
+
};
|
|
4374
|
+
BignumberFieldComponent.prototype.ngOnDestroy = function () {
|
|
4375
|
+
this.ngUnsubscribe.next();
|
|
4376
|
+
this.ngUnsubscribe.complete();
|
|
4377
|
+
};
|
|
4378
|
+
Object.defineProperty(BignumberFieldComponent.prototype, "fieldType", {
|
|
4379
|
+
get: function () {
|
|
4380
|
+
return FieldType;
|
|
4381
|
+
},
|
|
4382
|
+
enumerable: true,
|
|
4383
|
+
configurable: true
|
|
4384
|
+
});
|
|
4385
|
+
__decorate([
|
|
4386
|
+
Input()
|
|
4387
|
+
], BignumberFieldComponent.prototype, "field", void 0);
|
|
4388
|
+
__decorate([
|
|
4389
|
+
Input()
|
|
4390
|
+
], BignumberFieldComponent.prototype, "formControl", void 0);
|
|
4391
|
+
__decorate([
|
|
4392
|
+
Output()
|
|
4393
|
+
], BignumberFieldComponent.prototype, "onInput", void 0);
|
|
4394
|
+
__decorate([
|
|
4395
|
+
Output()
|
|
4396
|
+
], BignumberFieldComponent.prototype, "onFocus", void 0);
|
|
4397
|
+
__decorate([
|
|
4398
|
+
Output()
|
|
4399
|
+
], BignumberFieldComponent.prototype, "onComplete", void 0);
|
|
4400
|
+
BignumberFieldComponent = __decorate([
|
|
4401
|
+
Component({
|
|
4402
|
+
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>",
|
|
4403
|
+
encapsulation: ViewEncapsulation.None,
|
|
4404
|
+
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}"]
|
|
4405
|
+
})
|
|
4406
|
+
], BignumberFieldComponent);
|
|
4407
|
+
return BignumberFieldComponent;
|
|
4408
|
+
}(BaseFieldComponent));
|
|
4409
|
+
|
|
4179
4410
|
var DynamicForm = /** @class */ (function () {
|
|
4180
4411
|
function DynamicForm(_a) {
|
|
4181
4412
|
var group = _a.group, errorMessages = _a.errorMessages;
|
|
@@ -4240,6 +4471,8 @@ var DynamicField = /** @class */ (function (_super) {
|
|
|
4240
4471
|
case FieldType.Double:
|
|
4241
4472
|
case FieldType.Integer:
|
|
4242
4473
|
return NumberFieldComponent;
|
|
4474
|
+
case FieldType.Number:
|
|
4475
|
+
return BignumberFieldComponent;
|
|
4243
4476
|
case FieldType.Enum:
|
|
4244
4477
|
return SelectFieldComponent;
|
|
4245
4478
|
case FieldType.Lookup:
|
|
@@ -4414,6 +4647,7 @@ var DynamicFormModule = /** @class */ (function () {
|
|
|
4414
4647
|
InputMaskModule,
|
|
4415
4648
|
DropdownModule,
|
|
4416
4649
|
NumberInputModule,
|
|
4650
|
+
BignumberInputModule,
|
|
4417
4651
|
LocalizedNumberInputModule,
|
|
4418
4652
|
ControlErrorsModule,
|
|
4419
4653
|
LocaleModule,
|
|
@@ -4455,6 +4689,7 @@ var DynamicFormModule = /** @class */ (function () {
|
|
|
4455
4689
|
LookupComponent,
|
|
4456
4690
|
LookupFieldComponent,
|
|
4457
4691
|
NumberFieldComponent,
|
|
4692
|
+
BignumberFieldComponent,
|
|
4458
4693
|
RadioButtonComponent,
|
|
4459
4694
|
RowComponent,
|
|
4460
4695
|
SectionComponent,
|
|
@@ -4473,6 +4708,7 @@ var DynamicFormModule = /** @class */ (function () {
|
|
|
4473
4708
|
FileUploadComponent$1,
|
|
4474
4709
|
LookupFieldComponent,
|
|
4475
4710
|
NumberFieldComponent,
|
|
4711
|
+
BignumberFieldComponent,
|
|
4476
4712
|
RadioButtonComponent,
|
|
4477
4713
|
RowComponent,
|
|
4478
4714
|
SectionComponent,
|
|
@@ -6668,5 +6904,5 @@ var AngularComponentsModule = /** @class */ (function () {
|
|
|
6668
6904
|
* Generated bundle index. Do not edit.
|
|
6669
6905
|
*/
|
|
6670
6906
|
|
|
6671
|
-
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,
|
|
6907
|
+
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 };
|
|
6672
6908
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|