@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('primeng/breadcrumb'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@angular/animations'), require('@angular/forms'), require('@angular/common/http'), require('angular2-hotkeys'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/panel'), require('primeng/radiobutton'), require('@angular/platform-browser'), require('primeng/progressbar'), require('@ngx-translate/core'), require('cropperjs'), require('element-resize-detector'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/common', 'primeng/breadcrumb', '@angular/router', 'rxjs', 'rxjs/operators', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@angular/animations', '@angular/forms', '@angular/common/http', 'angular2-hotkeys', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/panel', 'primeng/radiobutton', '@angular/platform-browser', 'primeng/progressbar', '@ngx-translate/core', 'cropperjs', 'element-resize-detector', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar'], factory) :
|
|
4
|
-
(global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.common, global.breadcrumb, global.ng.router, global.rxjs, global.rxjs.operators, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.ng.animations, global.ng.forms, global.ng.common.http, global.angular2Hotkeys, global.autocomplete, global.dialog, global.table, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.panel, global.radiobutton, global.ng.platformBrowser, global.progressbar, global.core$1, global.Cropper, global.elementResizeDetectorMaker_, global.ng.cdk.a11y, global.scrollpanel, global.sidebar));
|
|
5
|
-
}(this, (function (exports, core, common, breadcrumb, router, rxjs, operators, tieredmenu, tooltip, dom, calendar, animations, forms, http, angular2Hotkeys, autocomplete, dialog, table, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, panel, radiobutton, platformBrowser, progressbar, core$1, Cropper, elementResizeDetectorMaker_, a11y, scrollpanel, sidebar) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('primeng/breadcrumb'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@angular/animations'), require('@angular/forms'), require('@angular/common/http'), require('angular2-hotkeys'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('@seniorsistemas/ng2-currency-mask'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/panel'), require('primeng/radiobutton'), require('@angular/platform-browser'), require('primeng/progressbar'), require('@ngx-translate/core'), require('cropperjs'), require('element-resize-detector'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/common', 'primeng/breadcrumb', '@angular/router', 'rxjs', 'rxjs/operators', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@angular/animations', '@angular/forms', '@angular/common/http', 'angular2-hotkeys', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', '@seniorsistemas/ng2-currency-mask', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/panel', 'primeng/radiobutton', '@angular/platform-browser', 'primeng/progressbar', '@ngx-translate/core', 'cropperjs', 'element-resize-detector', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar'], factory) :
|
|
4
|
+
(global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.common, global.breadcrumb, global.ng.router, global.rxjs, global.rxjs.operators, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.ng.animations, global.ng.forms, global.ng.common.http, global.angular2Hotkeys, global.autocomplete, global.dialog, global.table, global.ng2CurrencyMask, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.panel, global.radiobutton, global.ng.platformBrowser, global.progressbar, global.core$1, global.Cropper, global.elementResizeDetectorMaker_, global.ng.cdk.a11y, global.scrollpanel, global.sidebar));
|
|
5
|
+
}(this, (function (exports, core, common, breadcrumb, router, rxjs, operators, tieredmenu, tooltip, dom, calendar, animations, forms, http, angular2Hotkeys, autocomplete, dialog, table, ng2CurrencyMask, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask$1, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, panel, radiobutton, platformBrowser, progressbar, core$1, Cropper, elementResizeDetectorMaker_, a11y, scrollpanel, sidebar) { 'use strict';
|
|
6
6
|
|
|
7
7
|
Cropper = Cropper && Object.prototype.hasOwnProperty.call(Cropper, 'default') ? Cropper['default'] : Cropper;
|
|
8
8
|
|
|
@@ -1175,16 +1175,26 @@
|
|
|
1175
1175
|
FieldType["Chips"] = "Chips";
|
|
1176
1176
|
FieldType["Date"] = "Date";
|
|
1177
1177
|
FieldType["DateTime"] = "DateTime";
|
|
1178
|
+
/**
|
|
1179
|
+
* @deprecated Should use 'Number' instead
|
|
1180
|
+
*/
|
|
1178
1181
|
FieldType["Double"] = "Double";
|
|
1179
1182
|
FieldType["Enum"] = "Enum";
|
|
1180
1183
|
FieldType["Blob"] = "Blob";
|
|
1184
|
+
/**
|
|
1185
|
+
* @deprecated Should use 'Number' instead
|
|
1186
|
+
*/
|
|
1181
1187
|
FieldType["Integer"] = "Integer";
|
|
1182
1188
|
FieldType["Lookup"] = "Lookup";
|
|
1189
|
+
/**
|
|
1190
|
+
* @deprecated Should use 'Number' instead
|
|
1191
|
+
*/
|
|
1183
1192
|
FieldType["Money"] = "Money";
|
|
1184
1193
|
FieldType["Radio"] = "Radio";
|
|
1185
1194
|
FieldType["String"] = "String";
|
|
1186
1195
|
FieldType["Text"] = "Text";
|
|
1187
1196
|
FieldType["Time"] = "Time";
|
|
1197
|
+
FieldType["Number"] = "Number";
|
|
1188
1198
|
})(exports.FieldType || (exports.FieldType = {}));
|
|
1189
1199
|
|
|
1190
1200
|
var FieldSize = /** @class */ (function () {
|
|
@@ -1230,48 +1240,6 @@
|
|
|
1230
1240
|
return AutocompleteField;
|
|
1231
1241
|
}(Field));
|
|
1232
1242
|
|
|
1233
|
-
var BlobField = /** @class */ (function (_super) {
|
|
1234
|
-
__extends(BlobField, _super);
|
|
1235
|
-
function BlobField(config) {
|
|
1236
|
-
var _this = _super.call(this, config) || this;
|
|
1237
|
-
_this.accept = config.accept;
|
|
1238
|
-
_this.files = config.files || [];
|
|
1239
|
-
_this.chooseLabel = config.chooseLabel;
|
|
1240
|
-
_this.removeLabel = config.removeLabel;
|
|
1241
|
-
_this.cancelLabel = config.cancelLabel;
|
|
1242
|
-
_this.successTooltip = config.successTooltip;
|
|
1243
|
-
_this.multiple = config.multiple;
|
|
1244
|
-
_this.onUploadFile = config.onUploadFile;
|
|
1245
|
-
_this.onRemoveFile = config.onRemoveFile;
|
|
1246
|
-
_this.onCancelUpload = config.onCancelUpload;
|
|
1247
|
-
_this.onDownloadFile = config.onDownloadFile;
|
|
1248
|
-
return _this;
|
|
1249
|
-
}
|
|
1250
|
-
return BlobField;
|
|
1251
|
-
}(Field));
|
|
1252
|
-
|
|
1253
|
-
var BooleanOptionsLabel = /** @class */ (function () {
|
|
1254
|
-
function BooleanOptionsLabel(config) {
|
|
1255
|
-
this.true = config.true;
|
|
1256
|
-
this.false = config.false;
|
|
1257
|
-
this.empty = config.empty;
|
|
1258
|
-
}
|
|
1259
|
-
return BooleanOptionsLabel;
|
|
1260
|
-
}());
|
|
1261
|
-
var BooleanField = /** @class */ (function (_super) {
|
|
1262
|
-
__extends(BooleanField, _super);
|
|
1263
|
-
function BooleanField(config) {
|
|
1264
|
-
var _this = _super.call(this, config) || this;
|
|
1265
|
-
_this.verticalAlignment = config.verticalAlignment;
|
|
1266
|
-
_this.optionsLabel = new BooleanOptionsLabel(config.optionsLabel);
|
|
1267
|
-
_this.onBlur = config.onBlur;
|
|
1268
|
-
_this.onFocus = config.onFocus;
|
|
1269
|
-
_this.onClick = config.onClick;
|
|
1270
|
-
return _this;
|
|
1271
|
-
}
|
|
1272
|
-
return BooleanField;
|
|
1273
|
-
}(Field));
|
|
1274
|
-
|
|
1275
1243
|
var CalendarLocaleOptions = /** @class */ (function () {
|
|
1276
1244
|
function CalendarLocaleOptions(config) {
|
|
1277
1245
|
var _this = this;
|
|
@@ -1592,6 +1560,69 @@
|
|
|
1592
1560
|
return LocaleModule;
|
|
1593
1561
|
}());
|
|
1594
1562
|
|
|
1563
|
+
var BignumberField = /** @class */ (function (_super) {
|
|
1564
|
+
__extends(BignumberField, _super);
|
|
1565
|
+
function BignumberField(config) {
|
|
1566
|
+
var _this = _super.call(this, config) || this;
|
|
1567
|
+
_this.numberLocaleOptions = config.numberLocaleOptions || DEFAULT_NUMBER_LOCALE_OPTIONS;
|
|
1568
|
+
_this.browserAutocomplete = config.browserAutocomplete;
|
|
1569
|
+
_this.precision = config.precision;
|
|
1570
|
+
_this.scale = config.scale || 0;
|
|
1571
|
+
_this.alignTo = _this.scale ? ng2CurrencyMask.AlignmentOptions.RIGHT : ng2CurrencyMask.AlignmentOptions.LEFT;
|
|
1572
|
+
_this.mask = config.mask;
|
|
1573
|
+
_this.leftAddon = config.leftAddon;
|
|
1574
|
+
_this.rightAddon = config.rightAddon;
|
|
1575
|
+
_this.onBlur = config.onBlur;
|
|
1576
|
+
_this.onFocus = config.onFocus;
|
|
1577
|
+
_this.onComplete = config.onComplete;
|
|
1578
|
+
_this.onInput = config.onInput;
|
|
1579
|
+
return _this;
|
|
1580
|
+
}
|
|
1581
|
+
return BignumberField;
|
|
1582
|
+
}(Field));
|
|
1583
|
+
|
|
1584
|
+
var BlobField = /** @class */ (function (_super) {
|
|
1585
|
+
__extends(BlobField, _super);
|
|
1586
|
+
function BlobField(config) {
|
|
1587
|
+
var _this = _super.call(this, config) || this;
|
|
1588
|
+
_this.accept = config.accept;
|
|
1589
|
+
_this.files = config.files || [];
|
|
1590
|
+
_this.chooseLabel = config.chooseLabel;
|
|
1591
|
+
_this.removeLabel = config.removeLabel;
|
|
1592
|
+
_this.cancelLabel = config.cancelLabel;
|
|
1593
|
+
_this.successTooltip = config.successTooltip;
|
|
1594
|
+
_this.multiple = config.multiple;
|
|
1595
|
+
_this.onUploadFile = config.onUploadFile;
|
|
1596
|
+
_this.onRemoveFile = config.onRemoveFile;
|
|
1597
|
+
_this.onCancelUpload = config.onCancelUpload;
|
|
1598
|
+
_this.onDownloadFile = config.onDownloadFile;
|
|
1599
|
+
return _this;
|
|
1600
|
+
}
|
|
1601
|
+
return BlobField;
|
|
1602
|
+
}(Field));
|
|
1603
|
+
|
|
1604
|
+
var BooleanOptionsLabel = /** @class */ (function () {
|
|
1605
|
+
function BooleanOptionsLabel(config) {
|
|
1606
|
+
this.true = config.true;
|
|
1607
|
+
this.false = config.false;
|
|
1608
|
+
this.empty = config.empty;
|
|
1609
|
+
}
|
|
1610
|
+
return BooleanOptionsLabel;
|
|
1611
|
+
}());
|
|
1612
|
+
var BooleanField = /** @class */ (function (_super) {
|
|
1613
|
+
__extends(BooleanField, _super);
|
|
1614
|
+
function BooleanField(config) {
|
|
1615
|
+
var _this = _super.call(this, config) || this;
|
|
1616
|
+
_this.verticalAlignment = config.verticalAlignment;
|
|
1617
|
+
_this.optionsLabel = new BooleanOptionsLabel(config.optionsLabel);
|
|
1618
|
+
_this.onBlur = config.onBlur;
|
|
1619
|
+
_this.onFocus = config.onFocus;
|
|
1620
|
+
_this.onClick = config.onClick;
|
|
1621
|
+
return _this;
|
|
1622
|
+
}
|
|
1623
|
+
return BooleanField;
|
|
1624
|
+
}(Field));
|
|
1625
|
+
|
|
1595
1626
|
var CalendarField = /** @class */ (function (_super) {
|
|
1596
1627
|
__extends(CalendarField, _super);
|
|
1597
1628
|
function CalendarField(config) {
|
|
@@ -1632,11 +1663,17 @@
|
|
|
1632
1663
|
return ChipsField;
|
|
1633
1664
|
}(Field));
|
|
1634
1665
|
|
|
1666
|
+
/**
|
|
1667
|
+
* @deprecated Should use 'AlignmentOptions' from @seniorsistemas/ng2-currency-mask instead
|
|
1668
|
+
*/
|
|
1635
1669
|
|
|
1636
1670
|
(function (NumberAlignmentOption) {
|
|
1637
1671
|
NumberAlignmentOption["RIGHT"] = "right";
|
|
1638
1672
|
NumberAlignmentOption["LEFT"] = "left";
|
|
1639
1673
|
})(exports.NumberAlignmentOption || (exports.NumberAlignmentOption = {}));
|
|
1674
|
+
/**
|
|
1675
|
+
* @deprecated Should use BigNumberInput directive instead
|
|
1676
|
+
*/
|
|
1640
1677
|
var NumberInputDirective = /** @class */ (function (_super) {
|
|
1641
1678
|
__extends(NumberInputDirective, _super);
|
|
1642
1679
|
function NumberInputDirective() {
|
|
@@ -1748,8 +1785,11 @@
|
|
|
1748
1785
|
})
|
|
1749
1786
|
], NumberInputDirective);
|
|
1750
1787
|
return NumberInputDirective;
|
|
1751
|
-
}(ng2CurrencyMask.CurrencyMaskDirective));
|
|
1788
|
+
}(ng2CurrencyMask$1.CurrencyMaskDirective));
|
|
1752
1789
|
|
|
1790
|
+
/**
|
|
1791
|
+
* @deprecated Should use 'BignumberInputModule' instead
|
|
1792
|
+
*/
|
|
1753
1793
|
var NumberInputModule = /** @class */ (function () {
|
|
1754
1794
|
function NumberInputModule() {
|
|
1755
1795
|
}
|
|
@@ -1763,6 +1803,9 @@
|
|
|
1763
1803
|
return NumberInputModule;
|
|
1764
1804
|
}());
|
|
1765
1805
|
|
|
1806
|
+
/**
|
|
1807
|
+
* @deprecated Should use BignumberField instead
|
|
1808
|
+
*/
|
|
1766
1809
|
var NumberField = /** @class */ (function (_super) {
|
|
1767
1810
|
__extends(NumberField, _super);
|
|
1768
1811
|
function NumberField(config) {
|
|
@@ -1783,6 +1826,9 @@
|
|
|
1783
1826
|
return NumberField;
|
|
1784
1827
|
}(Field));
|
|
1785
1828
|
|
|
1829
|
+
/**
|
|
1830
|
+
* @deprecated Should use BignumberField instead
|
|
1831
|
+
*/
|
|
1786
1832
|
var DecimalField = /** @class */ (function (_super) {
|
|
1787
1833
|
__extends(DecimalField, _super);
|
|
1788
1834
|
function DecimalField(config) {
|
|
@@ -1795,6 +1841,9 @@
|
|
|
1795
1841
|
return DecimalField;
|
|
1796
1842
|
}(NumberField));
|
|
1797
1843
|
|
|
1844
|
+
/**
|
|
1845
|
+
* @deprecated Should use BignumberField instead
|
|
1846
|
+
*/
|
|
1798
1847
|
var CurrencyField = /** @class */ (function (_super) {
|
|
1799
1848
|
__extends(CurrencyField, _super);
|
|
1800
1849
|
function CurrencyField(config) {
|
|
@@ -1948,6 +1997,8 @@
|
|
|
1948
1997
|
return new NumberField(config);
|
|
1949
1998
|
case exports.FieldType.Double:
|
|
1950
1999
|
return new DecimalField(config);
|
|
2000
|
+
case exports.FieldType.Number:
|
|
2001
|
+
return new BignumberField(config);
|
|
1951
2002
|
case exports.FieldType.String:
|
|
1952
2003
|
case exports.FieldType.Binary:
|
|
1953
2004
|
return new TextField(config);
|
|
@@ -2392,6 +2443,7 @@
|
|
|
2392
2443
|
DynamicType["String"] = "String";
|
|
2393
2444
|
DynamicType["Text"] = "Text";
|
|
2394
2445
|
DynamicType["Time"] = "Time";
|
|
2446
|
+
DynamicType["Number"] = "Number";
|
|
2395
2447
|
})(exports.DynamicType || (exports.DynamicType = {}));
|
|
2396
2448
|
|
|
2397
2449
|
var Grid = /** @class */ (function () {
|
|
@@ -2459,6 +2511,8 @@
|
|
|
2459
2511
|
return new Fieldset(config);
|
|
2460
2512
|
case exports.DynamicType.Integer:
|
|
2461
2513
|
return new NumberField(config);
|
|
2514
|
+
case exports.DynamicType.Number:
|
|
2515
|
+
return new BignumberField(config);
|
|
2462
2516
|
case exports.DynamicType.Lookup:
|
|
2463
2517
|
return new LookupField(config);
|
|
2464
2518
|
case exports.DynamicType.Money:
|
|
@@ -3233,6 +3287,115 @@
|
|
|
3233
3287
|
return MaskFormatterModule;
|
|
3234
3288
|
}());
|
|
3235
3289
|
|
|
3290
|
+
var BignumberInputDirective = /** @class */ (function (_super) {
|
|
3291
|
+
__extends(BignumberInputDirective, _super);
|
|
3292
|
+
function BignumberInputDirective() {
|
|
3293
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
3294
|
+
_this.precision = 15;
|
|
3295
|
+
_this.scale = 0;
|
|
3296
|
+
_this.decimalSeparator = ",";
|
|
3297
|
+
_this.thousandsSeparator = ".";
|
|
3298
|
+
_this.alignTo = ng2CurrencyMask.AlignmentOptions.LEFT;
|
|
3299
|
+
_this.allowNegative = true;
|
|
3300
|
+
return _this;
|
|
3301
|
+
}
|
|
3302
|
+
BignumberInputDirective_1 = BignumberInputDirective;
|
|
3303
|
+
BignumberInputDirective.prototype.ngOnInit = function () {
|
|
3304
|
+
this.updateVariables();
|
|
3305
|
+
_super.prototype.ngOnInit.call(this);
|
|
3306
|
+
};
|
|
3307
|
+
BignumberInputDirective.prototype.ngOnChanges = function (changes) {
|
|
3308
|
+
var placeholderChange = changes.placeholder && changes.placeholder.currentValue;
|
|
3309
|
+
if (!placeholderChange && this.scale)
|
|
3310
|
+
this.placeholder = "0" + this.decimalSeparator + "".padEnd(this.scale, "0");
|
|
3311
|
+
if (changes.scale ||
|
|
3312
|
+
changes.decimalSeparator ||
|
|
3313
|
+
changes.thousandsSeparator ||
|
|
3314
|
+
changes.alignTo ||
|
|
3315
|
+
changes.precision ||
|
|
3316
|
+
changes.allowNegative) {
|
|
3317
|
+
this.updateVariables();
|
|
3318
|
+
}
|
|
3319
|
+
};
|
|
3320
|
+
/**
|
|
3321
|
+
* Update the options values according to the directive input values.
|
|
3322
|
+
*/
|
|
3323
|
+
BignumberInputDirective.prototype.updateVariables = function () {
|
|
3324
|
+
this.options = {
|
|
3325
|
+
align: this.alignTo,
|
|
3326
|
+
decimalSeparator: this.decimalSeparator,
|
|
3327
|
+
thousandsSeparator: this.thousandsSeparator,
|
|
3328
|
+
scale: this.scale || 0,
|
|
3329
|
+
prefix: "",
|
|
3330
|
+
suffix: "",
|
|
3331
|
+
allowNegative: this.allowNegative
|
|
3332
|
+
};
|
|
3333
|
+
this.calculateMaxLength();
|
|
3334
|
+
};
|
|
3335
|
+
/**
|
|
3336
|
+
* Responsible to calculate the field maximum length considering the separators.
|
|
3337
|
+
*/
|
|
3338
|
+
BignumberInputDirective.prototype.calculateMaxLength = function () {
|
|
3339
|
+
var decSepLength = this.decimalSeparator.length;
|
|
3340
|
+
var thoSepLength = this.thousandsSeparator.length;
|
|
3341
|
+
var maxLength = this.precision + (this.scale ? decSepLength : 0);
|
|
3342
|
+
maxLength += Math.ceil((this.precision - (this.scale ? this.scale : 0)) / 3 - 1) * thoSepLength;
|
|
3343
|
+
this.maxLength = maxLength;
|
|
3344
|
+
};
|
|
3345
|
+
var BignumberInputDirective_1;
|
|
3346
|
+
__decorate([
|
|
3347
|
+
core.Input()
|
|
3348
|
+
], BignumberInputDirective.prototype, "precision", void 0);
|
|
3349
|
+
__decorate([
|
|
3350
|
+
core.Input()
|
|
3351
|
+
], BignumberInputDirective.prototype, "scale", void 0);
|
|
3352
|
+
__decorate([
|
|
3353
|
+
core.Input()
|
|
3354
|
+
], BignumberInputDirective.prototype, "decimalSeparator", void 0);
|
|
3355
|
+
__decorate([
|
|
3356
|
+
core.Input()
|
|
3357
|
+
], BignumberInputDirective.prototype, "thousandsSeparator", void 0);
|
|
3358
|
+
__decorate([
|
|
3359
|
+
core.Input()
|
|
3360
|
+
], BignumberInputDirective.prototype, "alignTo", void 0);
|
|
3361
|
+
__decorate([
|
|
3362
|
+
core.Input()
|
|
3363
|
+
], BignumberInputDirective.prototype, "allowNegative", void 0);
|
|
3364
|
+
__decorate([
|
|
3365
|
+
core.Input(),
|
|
3366
|
+
core.HostBinding("attr.placeholder")
|
|
3367
|
+
], BignumberInputDirective.prototype, "placeholder", void 0);
|
|
3368
|
+
__decorate([
|
|
3369
|
+
core.HostBinding("attr.maxLength")
|
|
3370
|
+
], BignumberInputDirective.prototype, "maxLength", void 0);
|
|
3371
|
+
BignumberInputDirective = BignumberInputDirective_1 = __decorate([
|
|
3372
|
+
core.Directive({
|
|
3373
|
+
selector: "input[sBignumberInput]",
|
|
3374
|
+
providers: [
|
|
3375
|
+
{
|
|
3376
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
3377
|
+
useExisting: core.forwardRef(function () { return BignumberInputDirective_1; }),
|
|
3378
|
+
multi: true,
|
|
3379
|
+
},
|
|
3380
|
+
],
|
|
3381
|
+
})
|
|
3382
|
+
], BignumberInputDirective);
|
|
3383
|
+
return BignumberInputDirective;
|
|
3384
|
+
}(ng2CurrencyMask.CurrencyMaskDirective));
|
|
3385
|
+
|
|
3386
|
+
var BignumberInputModule = /** @class */ (function () {
|
|
3387
|
+
function BignumberInputModule() {
|
|
3388
|
+
}
|
|
3389
|
+
BignumberInputModule = __decorate([
|
|
3390
|
+
core.NgModule({
|
|
3391
|
+
imports: [common.CommonModule],
|
|
3392
|
+
declarations: [BignumberInputDirective],
|
|
3393
|
+
exports: [BignumberInputDirective],
|
|
3394
|
+
})
|
|
3395
|
+
], BignumberInputModule);
|
|
3396
|
+
return BignumberInputModule;
|
|
3397
|
+
}());
|
|
3398
|
+
|
|
3236
3399
|
var TableHeaderCheckboxComponent = /** @class */ (function () {
|
|
3237
3400
|
function TableHeaderCheckboxComponent(table, tableService) {
|
|
3238
3401
|
var _this = this;
|
|
@@ -3982,6 +4145,9 @@
|
|
|
3982
4145
|
return BaseFieldComponent;
|
|
3983
4146
|
}());
|
|
3984
4147
|
|
|
4148
|
+
/**
|
|
4149
|
+
* @deprecated Should use bignumber instead
|
|
4150
|
+
*/
|
|
3985
4151
|
var CurrencyFieldComponent = /** @class */ (function (_super) {
|
|
3986
4152
|
__extends(CurrencyFieldComponent, _super);
|
|
3987
4153
|
function CurrencyFieldComponent() {
|
|
@@ -4037,6 +4203,9 @@
|
|
|
4037
4203
|
return LookupFieldComponent;
|
|
4038
4204
|
}());
|
|
4039
4205
|
|
|
4206
|
+
/**
|
|
4207
|
+
* @deprecated Should use bignumber instead
|
|
4208
|
+
*/
|
|
4040
4209
|
var NumberFieldComponent = /** @class */ (function (_super) {
|
|
4041
4210
|
__extends(NumberFieldComponent, _super);
|
|
4042
4211
|
function NumberFieldComponent() {
|
|
@@ -4360,6 +4529,67 @@
|
|
|
4360
4529
|
StructureType["Section"] = "Section";
|
|
4361
4530
|
})(StructureType || (StructureType = {}));
|
|
4362
4531
|
|
|
4532
|
+
var BignumberFieldComponent = /** @class */ (function (_super) {
|
|
4533
|
+
__extends(BignumberFieldComponent, _super);
|
|
4534
|
+
function BignumberFieldComponent() {
|
|
4535
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
4536
|
+
_this.onInput = new core.EventEmitter();
|
|
4537
|
+
_this.onFocus = new core.EventEmitter();
|
|
4538
|
+
_this.onComplete = new core.EventEmitter();
|
|
4539
|
+
_this.ngUnsubscribe = new rxjs.Subject();
|
|
4540
|
+
return _this;
|
|
4541
|
+
}
|
|
4542
|
+
BignumberFieldComponent.prototype.ngOnInit = function () {
|
|
4543
|
+
var _this = this;
|
|
4544
|
+
this.onFocus.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
4545
|
+
if (_this.field.onFocus)
|
|
4546
|
+
_this.field.onFocus(event);
|
|
4547
|
+
});
|
|
4548
|
+
this.onInput.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
4549
|
+
if (_this.field.onInput)
|
|
4550
|
+
_this.field.onInput(event);
|
|
4551
|
+
});
|
|
4552
|
+
this.onComplete.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
4553
|
+
if (_this.field.onComplete)
|
|
4554
|
+
_this.field.onComplete(event);
|
|
4555
|
+
});
|
|
4556
|
+
};
|
|
4557
|
+
BignumberFieldComponent.prototype.ngOnDestroy = function () {
|
|
4558
|
+
this.ngUnsubscribe.next();
|
|
4559
|
+
this.ngUnsubscribe.complete();
|
|
4560
|
+
};
|
|
4561
|
+
Object.defineProperty(BignumberFieldComponent.prototype, "fieldType", {
|
|
4562
|
+
get: function () {
|
|
4563
|
+
return exports.FieldType;
|
|
4564
|
+
},
|
|
4565
|
+
enumerable: true,
|
|
4566
|
+
configurable: true
|
|
4567
|
+
});
|
|
4568
|
+
__decorate([
|
|
4569
|
+
core.Input()
|
|
4570
|
+
], BignumberFieldComponent.prototype, "field", void 0);
|
|
4571
|
+
__decorate([
|
|
4572
|
+
core.Input()
|
|
4573
|
+
], BignumberFieldComponent.prototype, "formControl", void 0);
|
|
4574
|
+
__decorate([
|
|
4575
|
+
core.Output()
|
|
4576
|
+
], BignumberFieldComponent.prototype, "onInput", void 0);
|
|
4577
|
+
__decorate([
|
|
4578
|
+
core.Output()
|
|
4579
|
+
], BignumberFieldComponent.prototype, "onFocus", void 0);
|
|
4580
|
+
__decorate([
|
|
4581
|
+
core.Output()
|
|
4582
|
+
], BignumberFieldComponent.prototype, "onComplete", void 0);
|
|
4583
|
+
BignumberFieldComponent = __decorate([
|
|
4584
|
+
core.Component({
|
|
4585
|
+
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>",
|
|
4586
|
+
encapsulation: core.ViewEncapsulation.None,
|
|
4587
|
+
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}"]
|
|
4588
|
+
})
|
|
4589
|
+
], BignumberFieldComponent);
|
|
4590
|
+
return BignumberFieldComponent;
|
|
4591
|
+
}(BaseFieldComponent));
|
|
4592
|
+
|
|
4363
4593
|
var DynamicForm = /** @class */ (function () {
|
|
4364
4594
|
function DynamicForm(_a) {
|
|
4365
4595
|
var group = _a.group, errorMessages = _a.errorMessages;
|
|
@@ -4424,6 +4654,8 @@
|
|
|
4424
4654
|
case exports.FieldType.Double:
|
|
4425
4655
|
case exports.FieldType.Integer:
|
|
4426
4656
|
return NumberFieldComponent;
|
|
4657
|
+
case exports.FieldType.Number:
|
|
4658
|
+
return BignumberFieldComponent;
|
|
4427
4659
|
case exports.FieldType.Enum:
|
|
4428
4660
|
return SelectFieldComponent;
|
|
4429
4661
|
case exports.FieldType.Lookup:
|
|
@@ -4598,6 +4830,7 @@
|
|
|
4598
4830
|
inputmask.InputMaskModule,
|
|
4599
4831
|
dropdown.DropdownModule,
|
|
4600
4832
|
NumberInputModule,
|
|
4833
|
+
BignumberInputModule,
|
|
4601
4834
|
LocalizedNumberInputModule,
|
|
4602
4835
|
ControlErrorsModule,
|
|
4603
4836
|
LocaleModule,
|
|
@@ -4639,6 +4872,7 @@
|
|
|
4639
4872
|
LookupComponent,
|
|
4640
4873
|
LookupFieldComponent,
|
|
4641
4874
|
NumberFieldComponent,
|
|
4875
|
+
BignumberFieldComponent,
|
|
4642
4876
|
RadioButtonComponent,
|
|
4643
4877
|
RowComponent,
|
|
4644
4878
|
SectionComponent,
|
|
@@ -4657,6 +4891,7 @@
|
|
|
4657
4891
|
FileUploadComponent$1,
|
|
4658
4892
|
LookupFieldComponent,
|
|
4659
4893
|
NumberFieldComponent,
|
|
4894
|
+
BignumberFieldComponent,
|
|
4660
4895
|
RadioButtonComponent,
|
|
4661
4896
|
RowComponent,
|
|
4662
4897
|
SectionComponent,
|
|
@@ -6850,6 +7085,9 @@
|
|
|
6850
7085
|
|
|
6851
7086
|
exports.AngularComponentsModule = AngularComponentsModule;
|
|
6852
7087
|
exports.AutocompleteField = AutocompleteField;
|
|
7088
|
+
exports.BignumberField = BignumberField;
|
|
7089
|
+
exports.BignumberInputDirective = BignumberInputDirective;
|
|
7090
|
+
exports.BignumberInputModule = BignumberInputModule;
|
|
6853
7091
|
exports.BooleanField = BooleanField;
|
|
6854
7092
|
exports.BooleanOptionsLabel = BooleanOptionsLabel;
|
|
6855
7093
|
exports.BreadcrumbComponent = BreadcrumbComponent;
|
|
@@ -6953,12 +7191,13 @@
|
|
|
6953
7191
|
exports.TokenListModule = TokenListModule;
|
|
6954
7192
|
exports.ɵa = LocalizedCurrencyImpurePipe;
|
|
6955
7193
|
exports.ɵb = TokenListModule;
|
|
6956
|
-
exports.ɵba =
|
|
6957
|
-
exports.ɵbb =
|
|
6958
|
-
exports.ɵbc =
|
|
6959
|
-
exports.ɵbd =
|
|
6960
|
-
exports.ɵbe =
|
|
6961
|
-
exports.ɵbf =
|
|
7194
|
+
exports.ɵba = HeaderComponent;
|
|
7195
|
+
exports.ɵbb = FooterComponent;
|
|
7196
|
+
exports.ɵbc = InfoSignComponent;
|
|
7197
|
+
exports.ɵbd = NumberLocaleOptions;
|
|
7198
|
+
exports.ɵbe = ThumbnailService;
|
|
7199
|
+
exports.ɵbf = InfiniteScrollModule;
|
|
7200
|
+
exports.ɵbg = InfiniteScrollDirective;
|
|
6962
7201
|
exports.ɵc = TableColumnsComponent;
|
|
6963
7202
|
exports.ɵd = InfoSignModule;
|
|
6964
7203
|
exports.ɵe = AutocompleteFieldComponent;
|
|
@@ -6973,15 +7212,15 @@
|
|
|
6973
7212
|
exports.ɵn = FileUploadComponent$1;
|
|
6974
7213
|
exports.ɵo = LookupFieldComponent;
|
|
6975
7214
|
exports.ɵp = NumberFieldComponent;
|
|
6976
|
-
exports.ɵq =
|
|
6977
|
-
exports.ɵr =
|
|
6978
|
-
exports.ɵs =
|
|
6979
|
-
exports.ɵt =
|
|
6980
|
-
exports.ɵu =
|
|
6981
|
-
exports.ɵv =
|
|
6982
|
-
exports.ɵ
|
|
6983
|
-
exports.ɵy =
|
|
6984
|
-
exports.ɵz =
|
|
7215
|
+
exports.ɵq = BignumberFieldComponent;
|
|
7216
|
+
exports.ɵr = RadioButtonComponent;
|
|
7217
|
+
exports.ɵs = RowComponent;
|
|
7218
|
+
exports.ɵt = SectionComponent;
|
|
7219
|
+
exports.ɵu = SelectFieldComponent;
|
|
7220
|
+
exports.ɵv = TextAreaFieldComponent;
|
|
7221
|
+
exports.ɵw = TextFieldComponent;
|
|
7222
|
+
exports.ɵy = DecimalField;
|
|
7223
|
+
exports.ɵz = StructureModule;
|
|
6985
7224
|
|
|
6986
7225
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6987
7226
|
|