ng-inail-common 1.0.416 → 1.0.423

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('moment'), require('@angular/forms'), require('@ng-bootstrap/ng-bootstrap'), require('rxjs/internal-compatibility'), require('rxjs/operators'), require('@angular/platform-browser'), require('@angular/common/http'), require('@angular/router'), require('@angular/core'), require('uuid')) :
3
- typeof define === 'function' && define.amd ? define('ng-inail-common', ['exports', '@angular/common', 'moment', '@angular/forms', '@ng-bootstrap/ng-bootstrap', 'rxjs/internal-compatibility', 'rxjs/operators', '@angular/platform-browser', '@angular/common/http', '@angular/router', '@angular/core', 'uuid'], factory) :
4
- (factory((global['ng-inail-common'] = {}),global.ng.common,global.moment_,global.ng.forms,global.ngBootstrap,global.rxjs['internal-compatibility'],global.rxjs.operators,global.ng.platformBrowser,global.ng.common.http,global.ng.router,global.ng.core,global.uuid));
5
- }(this, (function (exports,common,moment_,forms,ngBootstrap,internalCompatibility,operators,platformBrowser,http,router,i0,uuid) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('moment'), require('@angular/forms'), require('@ng-bootstrap/ng-bootstrap'), require('rxjs/internal-compatibility'), require('rxjs/operators'), require('@angular/platform-browser'), require('@angular/common/http'), require('@angular/router'), require('uuid'), require('@angular/core')) :
3
+ typeof define === 'function' && define.amd ? define('ng-inail-common', ['exports', '@angular/common', 'moment', '@angular/forms', '@ng-bootstrap/ng-bootstrap', 'rxjs/internal-compatibility', 'rxjs/operators', '@angular/platform-browser', '@angular/common/http', '@angular/router', 'uuid', '@angular/core'], factory) :
4
+ (factory((global['ng-inail-common'] = {}),global.ng.common,global.moment_,global.ng.forms,global.ngBootstrap,global.rxjs['internal-compatibility'],global.rxjs.operators,global.ng.platformBrowser,global.ng.common.http,global.ng.router,global.uuid,global.ng.core));
5
+ }(this, (function (exports,common,moment_,forms,ngBootstrap,internalCompatibility,operators,platformBrowser,http,router,uuid,i0) { 'use strict';
6
6
 
7
7
  /**
8
8
  * @fileoverview added by tsickle
@@ -176,6 +176,35 @@
176
176
  return { value: op[0] ? op[1] : void 0, done: true };
177
177
  }
178
178
  }
179
+ function __read(o, n) {
180
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
181
+ if (!m)
182
+ return o;
183
+ var i = m.call(o), r, ar = [], e;
184
+ try {
185
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
186
+ ar.push(r.value);
187
+ }
188
+ catch (error) {
189
+ e = { error: error };
190
+ }
191
+ finally {
192
+ try {
193
+ if (r && !r.done && (m = i["return"]))
194
+ m.call(i);
195
+ }
196
+ finally {
197
+ if (e)
198
+ throw e.error;
199
+ }
200
+ }
201
+ return ar;
202
+ }
203
+ function __spread() {
204
+ for (var ar = [], i = 0; i < arguments.length; i++)
205
+ ar = ar.concat(__read(arguments[i]));
206
+ return ar;
207
+ }
179
208
 
180
209
  /**
181
210
  * @fileoverview added by tsickle
@@ -381,7 +410,7 @@
381
410
  AccordionComponent.decorators = [
382
411
  { type: i0.Component, args: [{
383
412
  selector: 'inail-accordion',
384
- template: "<div class=\"inail-accordion-view-encapsulation row panel panel-default form-accordion noPadding {{class}}\">\n <!--<div class=\"row panel-heading heading-form-grey\"\n (click)=\"onToggle()\"\n (keyup.enter)=\"onToggle()\"\n (keyup.space)=\"onToggle()\"\n (keydown.space)=\"false\"\n role=\"heading\">\n <label class=\"search-title\"\n tabindex=\"0\"\n [ngClass]=\"{'has-error': hasError}\"\n [innerHTML]=\"getTitolo() | uppercase\"></label>\n <span class=\"fa {{mostra ? 'fa-chevron-up' : 'fa-chevron-down'}}\"\n tabindex=\"0\"\n role=\"button\"\n [attr.aria-label]=\"toggleTitleText\"\n [attr.aria-controls]=\"id\"\n [attr.aria-expanded]=\"mostra\">&nbsp;</span>\n </div>-->\n <div class=\"row panel-heading heading-form-grey\"\n (click)=\"onToggle()\"\n (keyup.space)=\"onToggle()\"\n (keydown.space)=\"false\"\n role=\"heading\">\n <h3 class=\"title-modulo\"\n tabindex=\"0\"\n [ngClass]=\"{'has-error': hasError}\"\n [innerHTML]=\"getTitolo()\"></h3>\n <a href=\"javascript:void(0)\"\n role=\"button\"\n class=\"accordion-toggle-command\"\n [attr.aria-label]=\"toggleTitleText\"\n [attr.aria-controls]=\"id\"\n [attr.aria-expanded]=\"mostra\">\n <span class=\"fa {{mostra ? 'fa-chevron-up' : 'fa-chevron-down'}}\">&nbsp;</span>\n </a>\n </div>\n <div [attr.id]='id || undefined'\n [hidden]=\"!mostra\"\n class=\"row panel-body body-form-grey\"\n role=\"region\">\n <div class=\"col-md-12 col-lg-12\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n",
413
+ template: "<div class=\"inail-accordion-view-encapsulation row panel panel-default form-accordion noPadding {{class}}\">\n <div class=\"row panel-heading heading-form-grey\"\n (click)=\"onToggle()\"\n (keyup.space)=\"onToggle()\"\n (keydown.space)=\"false\"\n role=\"heading\">\n <h3 class=\"title-modulo\"\n tabindex=\"0\"\n [ngClass]=\"{'has-error': hasError}\"\n [innerHTML]=\"getTitolo()\"></h3>\n <a href=\"javascript:void(0)\"\n role=\"button\"\n class=\"accordion-toggle-command\"\n [attr.aria-label]=\"toggleTitleText\"\n [attr.aria-controls]=\"id\"\n [attr.aria-expanded]=\"mostra\">\n <span class=\"fa {{mostra ? 'fa-chevron-up' : 'fa-chevron-down'}}\">&nbsp;</span>\n </a>\n </div>\n <div [attr.id]='id || undefined'\n [hidden]=\"!mostra\"\n class=\"row panel-body body-form-grey\"\n role=\"region\">\n <div class=\"col-md-12 col-lg-12\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n",
385
414
  encapsulation: i0.ViewEncapsulation.None,
386
415
  styles: [".accordion{transition:height .5s ease-in-out;overflow:hidden}.inail-accordion-view-encapsulation .ac_hidden{height:0;padding:0}.inail-accordion-view-encapsulation .panel-heading{cursor:pointer}.inail-accordion-view-encapsulation .title-modulo.has-error{color:#c9291b!important}.inail-accordion-view-encapsulation .accordion-toggle-command{margin:12px 15px 8px;position:absolute;top:0;right:10px;width:15px;height:15px}.inail-accordion-view-encapsulation .accordion-toggle-command span{right:0!important}"]
387
416
  }] }
@@ -508,8 +537,30 @@
508
537
  _this.showPopover = ( /**
509
538
  * @return {?}
510
539
  */function () { return _this.popover === true; });
540
+ _this.hasFocus = ( /**
541
+ * @return {?}
542
+ */function () { return document.activeElement && document.activeElement.id == _this.id; });
511
543
  return _this;
512
544
  }
545
+ /**
546
+ * @return {?}
547
+ */
548
+ FormElementComponent.prototype.cleanError = /**
549
+ * @return {?}
550
+ */
551
+ function () {
552
+ var _this = this;
553
+ setTimeout(( /**
554
+ * @return {?}
555
+ */function () {
556
+ if (_this.hasError) {
557
+ _this.hasError = false;
558
+ }
559
+ if (_this.descError) {
560
+ _this.descError = undefined;
561
+ }
562
+ }));
563
+ };
513
564
  FormElementComponent.decorators = [
514
565
  { type: i0.Component, args: [{
515
566
  selector: 'inail-form-element',
@@ -9802,7 +9853,7 @@
9802
9853
  RadioSelectComponent.decorators = [
9803
9854
  { type: i0.Component, args: [{
9804
9855
  selector: 'inail-radio-select',
9805
- template: "<div [id]='id' class=\"col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} {{class}} noPadding inail-radio-select\">\n <fieldset class=\"form-group col-xs-12 noPaddingLeft\">\n <legend class=\"radio-legend\"\n [hidden]=\"hiddenLabel\"\n [innerHTML]=\"label?.concat(required ? ' '+(requiredSimbol || '*') : '')\"></legend>\n <div class=\"radio {{inline === true ? 'inline' : ''}}\" *ngFor=\"let option of options\">\n <label [for]=\"option?.id\">\n <input [id]=\"option?.id\"\n type=\"radio\"\n class=\"{{inputClass}} {{option?.class}}\"\n [name]=\"name\"\n [disabled]=\"disabled\"\n [attr.aria-required]=\"required === true ? true : undefined\"\n [attr.aria-invalid]=\"checkError() === true ? true : undefined\"\n [attr.aria-describedBy]=\"checkDescError() ? id+'-description-error' : undefined\"\n [value]=\"option?.value\"\n [title]=\"title\"\n [(ngModel)]=\"value\">\n <span [innerHTML]=\"option?.label\"></span>\n </label>\n </div>\n <div *ngIf=\"checkDescError()\">\n <span [id]=\"id+'-description-error'\" class=\"msg msg-errore\">\n <strong [innerHTML]=\"(errorPrefix===false ? '' : 'ERRORE: ')+getDescError()\"></strong>\n </span>\n </div>\n </fieldset>\n</div>\n",
9856
+ template: "<div [id]='id' class=\"col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} {{class}} noPadding inail-radio-select\">\n <fieldset class=\"form-group col-xs-12 noPaddingLeft\">\n <legend class=\"radio-legend\"\n [hidden]=\"hiddenLabel\"\n [innerHTML]=\"label?.concat(required ? ' '+(requiredSimbol || '*') : '')\"></legend>\n <div class=\"radio {{inline === true ? 'inline' : ''}}\" *ngFor=\"let option of options\">\n <label [for]=\"option?.id\">\n <input [id]=\"option?.id\"\n type=\"radio\"\n class=\"{{inputClass}} {{option?.class}}\"\n [attr.name]=\"name\"\n [disabled]=\"disabled\"\n [attr.aria-required]=\"required === true ? true : undefined\"\n [attr.aria-invalid]=\"checkError() === true ? true : undefined\"\n [attr.aria-describedBy]=\"checkDescError() ? id+'-description-error' : undefined\"\n [value]=\"option?.value\"\n [title]=\"title\"\n [(ngModel)]=\"value\">\n <span [innerHTML]=\"option?.label\"></span>\n </label>\n </div>\n <div *ngIf=\"checkDescError()\">\n <span [id]=\"id+'-description-error'\" class=\"msg msg-errore\">\n <strong [innerHTML]=\"(errorPrefix===false ? '' : 'ERRORE: ')+getDescError()\"></strong>\n </span>\n </div>\n </fieldset>\n</div>\n",
9806
9857
  encapsulation: i0.ViewEncapsulation.None,
9807
9858
  styles: [".inail-radio-select .radio.inline{display:inline-block;margin-right:20px}"]
9808
9859
  }] }
@@ -9825,6 +9876,336 @@
9825
9876
  return RadioSelectOption;
9826
9877
  }());
9827
9878
 
9879
+ /**
9880
+ * @fileoverview added by tsickle
9881
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9882
+ */
9883
+ /** @type {?} */
9884
+ var CURRENCY_SYMBOL = {
9885
+ 'EURO': '€',
9886
+ 'DOLLARS': '$'
9887
+ };
9888
+ /** @type {?} */
9889
+ var NUMBERS_INPUTS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
9890
+ /** @type {?} */
9891
+ var ACCEPTED_INPUTS = __spread(NUMBERS_INPUTS, [',', '-', 'Backspace', 'Delete', 'Tab', 'ArrowLeft', 'ArrowRight']);
9892
+ /** @type {?} */
9893
+ var CLEAN_VALUE_REGEX = new RegExp(/[ $€]+/g);
9894
+ /** @type {?} */
9895
+ var COMMA_REGEX = new RegExp(/[,]/g);
9896
+ /** @type {?} */
9897
+ var DOT_REGEX = new RegExp(/[.]/g);
9898
+ /** @type {?} */
9899
+ var THOUSANDS_REGEX = new RegExp(/(\d+)(\d{3})/);
9900
+ var InputMoneyComponent = /** @class */ (function (_super) {
9901
+ __extends(InputMoneyComponent, _super);
9902
+ function InputMoneyComponent() {
9903
+ var _this = _super.call(this) || this;
9904
+ _this.numberOfDecimals = 2;
9905
+ _this.preventPasting = false;
9906
+ _this.currency = 'EURO';
9907
+ _this.selfValidation = true;
9908
+ _this.selfValidationError = 'Importo non valido';
9909
+ _this.showThousandsSeparator = true;
9910
+ // @Input()
9911
+ // decimalSeparatorSymbol: ',' | '.' = getConfigValue(this.libConfig?.inputMoneyComponent?.decimalSeparatorSymbol, ',');
9912
+ // @Input()
9913
+ // thousandsSeparatorSymbol: ',' | '.' = getConfigValue(this.libConfig?.inputMoneyComponent?.thousandsSeparatorSymbol, '.');
9914
+ _this.valueChange = new i0.EventEmitter();
9915
+ _this.getCurrencySymbol = ( /**
9916
+ * @return {?}
9917
+ */function () { return CURRENCY_SYMBOL[_this.currency]; });
9918
+ _this.getCleanedValue = ( /**
9919
+ * @param {?} s
9920
+ * @return {?}
9921
+ */function (s) { return s ? s.replace(CLEAN_VALUE_REGEX, '') : ''; });
9922
+ _this.getNumberValue = ( /**
9923
+ * @param {?} s
9924
+ * @return {?}
9925
+ */function (s) {
9926
+ /** @type {?} */
9927
+ var v = _this.getCleanedValue(s).replace(COMMA_REGEX, '.');
9928
+ return parseFloat(v);
9929
+ });
9930
+ _this.isNotBlankOrUndefined = ( /**
9931
+ * @param {?} value
9932
+ * @return {?}
9933
+ */function (value) { return isNotEmptyOrNull(value) && value != 'undefined' && value != 'null'; });
9934
+ _this.checkError = ( /**
9935
+ * @return {?}
9936
+ */function () { return _this.hasError || isNotEmptyOrNull(_this.descError); });
9937
+ _this.checkDescError = ( /**
9938
+ * @return {?}
9939
+ */function () { return _this.checkError() && isNotEmptyOrNull(_this.getDescError()); });
9940
+ _this.getDescError = ( /**
9941
+ * @return {?}
9942
+ */function () { return _this.descError; });
9943
+ _this.isWrongMinus = ( /**
9944
+ * @param {?} ev
9945
+ * @return {?}
9946
+ */function (ev) { return ev.key == '-' && (isEmptyOrNull(_this.inputValue) || _this.inputValue.indexOf('-') > 0); });
9947
+ _this.isWrongComma = ( /**
9948
+ * @param {?} ev
9949
+ * @return {?}
9950
+ */function (ev) { return ev.key == ',' && (isEmptyOrNull(_this.inputValue) || _this.inputValue.indexOf(',') > 0); });
9951
+ _this.isCommaWithNoDecimals = ( /**
9952
+ * @param {?} ev
9953
+ * @return {?}
9954
+ */function (ev) { return ev.key == ',' && _this.numberOfDecimals <= 0; });
9955
+ _this.isWrongDigit = ( /**
9956
+ * @param {?} ev
9957
+ * @return {?}
9958
+ */function (ev) {
9959
+ return !ACCEPTED_INPUTS.some(( /**
9960
+ * @param {?} v
9961
+ * @return {?}
9962
+ */function (v) { return v === ev.key; }))
9963
+ || _this.isWrongMinus(ev)
9964
+ || _this.isWrongComma(ev)
9965
+ || _this.isCommaWithNoDecimals(ev)
9966
+ || _this.isMaximumNumberOfDecimalsReached(ev);
9967
+ });
9968
+ return _this;
9969
+ }
9970
+ /**
9971
+ * @param {?} changes
9972
+ * @return {?}
9973
+ */
9974
+ InputMoneyComponent.prototype.ngOnChanges = /**
9975
+ * @param {?} changes
9976
+ * @return {?}
9977
+ */
9978
+ function (changes) {
9979
+ };
9980
+ /**
9981
+ * @return {?}
9982
+ */
9983
+ InputMoneyComponent.prototype.ngOnInit = /**
9984
+ * @return {?}
9985
+ */
9986
+ function () {
9987
+ };
9988
+ /**
9989
+ * @return {?}
9990
+ */
9991
+ InputMoneyComponent.prototype.ngAfterViewInit = /**
9992
+ * @return {?}
9993
+ */
9994
+ function () {
9995
+ };
9996
+ Object.defineProperty(InputMoneyComponent.prototype, "value", {
9997
+ set: /**
9998
+ * @param {?} value
9999
+ * @return {?}
10000
+ */ function (value) {
10001
+ this.emitDebug("@Input set value: " + this.numberValue + " -> " + value);
10002
+ this.inputValue = value != undefined ? "" + value : '';
10003
+ this.setValue(this.inputValue);
10004
+ },
10005
+ enumerable: true,
10006
+ configurable: true
10007
+ });
10008
+ /**
10009
+ * @param {?} value
10010
+ * @return {?}
10011
+ */
10012
+ InputMoneyComponent.prototype.writeValue = /**
10013
+ * @param {?} value
10014
+ * @return {?}
10015
+ */
10016
+ function (value) {
10017
+ this.emitDebug("writeValue: " + value);
10018
+ this.inputValue = value != undefined ? "" + value : '';
10019
+ this.setValue(this.inputValue);
10020
+ };
10021
+ Object.defineProperty(InputMoneyComponent.prototype, "inputTextValue", {
10022
+ get: /**
10023
+ * @return {?}
10024
+ */ function () {
10025
+ return this.inputValue;
10026
+ },
10027
+ set: /**
10028
+ * @param {?} value
10029
+ * @return {?}
10030
+ */ function (value) {
10031
+ this.emitDebug("set inputTextValue: " + this.inputValue + " -> " + value);
10032
+ this.inputValue = value;
10033
+ this.setValue(this.inputValue);
10034
+ },
10035
+ enumerable: true,
10036
+ configurable: true
10037
+ });
10038
+ /**
10039
+ * @private
10040
+ * @param {?} value
10041
+ * @return {?}
10042
+ */
10043
+ InputMoneyComponent.prototype.setValue = /**
10044
+ * @private
10045
+ * @param {?} value
10046
+ * @return {?}
10047
+ */
10048
+ function (value) {
10049
+ this.emitDebug("setValue: " + value);
10050
+ /** @type {?} */
10051
+ var nextNumberValue;
10052
+ if (this.isNotBlankOrUndefined(value)) {
10053
+ nextNumberValue = this.getNumberValue(value);
10054
+ // Se value e' un numero
10055
+ if (!isNaN(nextNumberValue)) {
10056
+ if (this.min != undefined && nextNumberValue < this.min) {
10057
+ nextNumberValue = this.min;
10058
+ }
10059
+ else if (this.max != undefined && nextNumberValue > this.max) {
10060
+ nextNumberValue = this.max;
10061
+ }
10062
+ }
10063
+ // Il valore inserito nell'input text non e' un numero
10064
+ else {
10065
+ nextNumberValue = undefined;
10066
+ if (this.selfValidation) {
10067
+ this.selfValidationErrorMsg = "" + this.selfValidationError;
10068
+ }
10069
+ }
10070
+ }
10071
+ else {
10072
+ nextNumberValue = undefined;
10073
+ this.selfValidationErrorMsg = undefined;
10074
+ }
10075
+ if (this.cleanErrorOnChange) {
10076
+ this.cleanError();
10077
+ }
10078
+ if (nextNumberValue != this.numberValue) {
10079
+ this.numberValue = nextNumberValue;
10080
+ this.valueChange.emit(this.numberValue);
10081
+ }
10082
+ this.impostaValoreVisibile();
10083
+ };
10084
+ /**
10085
+ * @return {?}
10086
+ */
10087
+ InputMoneyComponent.prototype.impostaValoreVisibile = /**
10088
+ * @return {?}
10089
+ */
10090
+ function () {
10091
+ if (this.numberValue != undefined) {
10092
+ /** @type {?} */
10093
+ var nextInputValue = ("" + this.numberValue).replace(DOT_REGEX, ',');
10094
+ if (!this.hasFocus()) {
10095
+ /** @type {?} */
10096
+ var a = nextInputValue.split(',');
10097
+ if (this.showThousandsSeparator) {
10098
+ while (THOUSANDS_REGEX.test(a[0])) {
10099
+ a[0] = a[0].replace(THOUSANDS_REGEX, "$1.$2");
10100
+ }
10101
+ }
10102
+ if (this.numberOfDecimals > 0) {
10103
+ /** @type {?} */
10104
+ var decimals = (a[1] != undefined ? a[1] : '') + "000000000000000000000";
10105
+ a[1] = decimals.substring(0, this.numberOfDecimals);
10106
+ nextInputValue = a.join(',');
10107
+ }
10108
+ else {
10109
+ nextInputValue = a[0];
10110
+ }
10111
+ }
10112
+ this.inputValue = (nextInputValue + " " + (!this.hasFocus() ? this.getCurrencySymbol() : '')).trim();
10113
+ }
10114
+ };
10115
+ /**
10116
+ * @return {?}
10117
+ */
10118
+ InputMoneyComponent.prototype.onFocusIn = /**
10119
+ * @return {?}
10120
+ */
10121
+ function () {
10122
+ this.impostaValoreVisibile();
10123
+ };
10124
+ /**
10125
+ * @return {?}
10126
+ */
10127
+ InputMoneyComponent.prototype.onFocusOut = /**
10128
+ * @return {?}
10129
+ */
10130
+ function () {
10131
+ this.impostaValoreVisibile();
10132
+ };
10133
+ /**
10134
+ * @param {?} ev
10135
+ * @return {?}
10136
+ */
10137
+ InputMoneyComponent.prototype.isMaximumNumberOfDecimalsReached = /**
10138
+ * @param {?} ev
10139
+ * @return {?}
10140
+ */
10141
+ function (ev) {
10142
+ /** @type {?} */
10143
+ var v = this.getCleanedValue(this.inputValue);
10144
+ return NUMBERS_INPUTS.some(( /**
10145
+ * @param {?} v
10146
+ * @return {?}
10147
+ */function (v) { return v === ev.key; })) && v != undefined && v.indexOf(',') > 0 && v.split(',')[1].length >= this.numberOfDecimals;
10148
+ };
10149
+ /**
10150
+ * @param {?} ev
10151
+ * @return {?}
10152
+ */
10153
+ InputMoneyComponent.prototype.onKeyDown = /**
10154
+ * @param {?} ev
10155
+ * @return {?}
10156
+ */
10157
+ function (ev) {
10158
+ if (this.isWrongDigit(ev)) {
10159
+ ev.preventDefault();
10160
+ }
10161
+ };
10162
+ /**
10163
+ * @param {?} $event
10164
+ * @return {?}
10165
+ */
10166
+ InputMoneyComponent.prototype.onPaste = /**
10167
+ * @param {?} $event
10168
+ * @return {?}
10169
+ */
10170
+ function ($event) {
10171
+ if (this.preventPasting === true) {
10172
+ $event.preventDefault();
10173
+ }
10174
+ };
10175
+ /**
10176
+ * @return {?}
10177
+ */
10178
+ InputMoneyComponent.prototype.ngOnDestroy = /**
10179
+ * @return {?}
10180
+ */
10181
+ function () {
10182
+ };
10183
+ InputMoneyComponent.decorators = [
10184
+ { type: i0.Component, args: [{
10185
+ selector: 'inail-input-money',
10186
+ template: "<div class=\"form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}\"\n [ngClass]=\"{'has-error': checkError()}\">\n <label *ngIf=\"label\"\n class=\"control-label {{labelClass}}\"\n [hidden]=\"hiddenLabel\"\n title=\"{{labelTitle}}\"\n for=\"{{id}}\"\n [innerHTML]=\"label.concat(required ? ' '+(requiredSimbol || '*') : '')\"></label>\n <ng-container *ngIf=\"showPopover()\">\n &nbsp;\n <em [id]=\"id+'-popover'\"\n class=\"fa fa-question-circle fa-lg\"\n data-toggle=\"popover\"\n title=\"{{popoverButtonTitle}}\"\n [attr.data-content]=\"popoverContent\"\n [attr.data-original-title]=\"popoverTitle\">\n </em>\n </ng-container>\n <input #formControl\n type=\"text\"\n id=\"{{id}}\"\n title=\"{{title}}\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n class=\"form-control {{inputClass}}\"\n [ngClass]=\"{'disabled': disabled}\"\n placeholder=\"{{placeholder}}\"\n [attr.aria-required]=\"required === true ? true : undefined\"\n [attr.aria-invalid]=\"checkError() === true ? true : undefined\"\n [attr.aria-describedBy]=\"checkDescError() ? id+'-description-error' : undefined\"\n (focusin)=\"onFocusIn()\"\n (focusout)=\"onFocusOut()\"\n (keydown)=\"onKeyDown($event)\"\n (paste)=\"onPaste($event)\"\n (keyup.enter)=\"enterUp.emit()\"\n [(ngModel)]='inputTextValue'>\n <ng-container *ngIf=\"checkDescError()\">\n <span [id]=\"id+'-description-error'\" class=\"msg msg-errore\">\n <strong [innerHTML]=\"(errorPrefix===false ? '' : 'ERRORE: ')+getDescError()\"></strong>\n </span>\n </ng-container>\n</div>\n",
10187
+ styles: [""]
10188
+ }] }
10189
+ ];
10190
+ /** @nocollapse */
10191
+ InputMoneyComponent.ctorParameters = function () { return []; };
10192
+ InputMoneyComponent.propDecorators = {
10193
+ formControlElement: [{ type: i0.ViewChild, args: ['formControl',] }],
10194
+ max: [{ type: i0.Input }],
10195
+ min: [{ type: i0.Input }],
10196
+ numberOfDecimals: [{ type: i0.Input }],
10197
+ placeholder: [{ type: i0.Input }],
10198
+ preventPasting: [{ type: i0.Input }],
10199
+ currency: [{ type: i0.Input }],
10200
+ selfValidation: [{ type: i0.Input }],
10201
+ selfValidationError: [{ type: i0.Input }],
10202
+ showThousandsSeparator: [{ type: i0.Input }],
10203
+ valueChange: [{ type: i0.Output }],
10204
+ value: [{ type: i0.Input }]
10205
+ };
10206
+ return InputMoneyComponent;
10207
+ }(FormElementComponent));
10208
+
9828
10209
  /**
9829
10210
  * @fileoverview added by tsickle
9830
10211
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -9881,7 +10262,8 @@
9881
10262
  PageTitleComponent,
9882
10263
  CommentDirective,
9883
10264
  RadioSelectComponent,
9884
- ContentComponent
10265
+ ContentComponent,
10266
+ InputMoneyComponent
9885
10267
  ],
9886
10268
  imports: [
9887
10269
  forms.FormsModule,
@@ -9925,7 +10307,8 @@
9925
10307
  PageTitleComponent,
9926
10308
  RadioSelectComponent,
9927
10309
  ContentComponent,
9928
- BaseComponent
10310
+ BaseComponent,
10311
+ InputMoneyComponent
9929
10312
  ]
9930
10313
  },] }
9931
10314
  ];
@@ -9984,6 +10367,7 @@
9984
10367
  exports.ɵc = InailWizardComponent;
9985
10368
  exports.ɵw = InputDateRangeComponent;
9986
10369
  exports.ɵbs = InputDateComponent;
10370
+ exports.ɵbv = InputMoneyComponent;
9987
10371
  exports.ɵbe = InputNumberComponent;
9988
10372
  exports.ɵq = InputTextComponent;
9989
10373
  exports.ɵbj = FooterComponent;