ng-inail-common 1.0.397 → 1.0.408

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.
@@ -504,6 +504,7 @@
504
504
  var _this = _super.call(this) || this;
505
505
  _this.enterUp = new i0.EventEmitter();
506
506
  _this.popover = false;
507
+ _this.cleanErrorOnChange = true;
507
508
  _this.showPopover = ( /**
508
509
  * @return {?}
509
510
  */function () { return _this.popover === true; });
@@ -539,7 +540,8 @@
539
540
  popoverButtonIcon: [{ type: i0.Input }],
540
541
  popoverButtonTitle: [{ type: i0.Input }],
541
542
  popoverTitle: [{ type: i0.Input }],
542
- popoverContent: [{ type: i0.Input }]
543
+ popoverContent: [{ type: i0.Input }],
544
+ cleanErrorOnChange: [{ type: i0.Input }]
543
545
  };
544
546
  return FormElementComponent;
545
547
  }(ResponsiveElementComponent));
@@ -2417,10 +2419,13 @@
2417
2419
  this.valueValue = val;
2418
2420
  this.valueChange.emit(this.valueValue);
2419
2421
  /** @type {?} */
2420
- var optionSelected = this.options.find(( /**
2421
- * @param {?} opt
2422
- * @return {?}
2423
- */function (opt) { return opt != undefined && opt.value === _this.valueValue; }));
2422
+ var optionSelected;
2423
+ if (this.options != undefined) {
2424
+ optionSelected = this.options.find(( /**
2425
+ * @param {?} opt
2426
+ * @return {?}
2427
+ */function (opt) { return opt != undefined && opt.value === _this.valueValue; }));
2428
+ }
2424
2429
  if (optionSelected != undefined || isEmptyOrNull(val)) {
2425
2430
  this.select.emit(optionSelected);
2426
2431
  }
@@ -5350,7 +5355,7 @@
5350
5355
  // console.info(changes.value.currentValue)
5351
5356
  this.previousValue = changes.value.previousValue;
5352
5357
  this.normalizzaValore();
5353
- if (!changes.value.firstChange) {
5358
+ if (!changes.value.firstChange && this.cleanErrorOnChange) {
5354
5359
  this.hasError = false;
5355
5360
  this.descError = undefined;
5356
5361
  }
@@ -8974,6 +8979,7 @@
8974
8979
  function () {
8975
8980
  this.fileModel = undefined;
8976
8981
  this.uploadFile.emit(undefined);
8982
+ this.inputTypeFile.nativeElement.value = '';
8977
8983
  };
8978
8984
  InailFileUploadComponent.decorators = [
8979
8985
  { type: i0.Component, args: [{
@@ -8986,6 +8992,7 @@
8986
8992
  /** @nocollapse */
8987
8993
  InailFileUploadComponent.ctorParameters = function () { return []; };
8988
8994
  InailFileUploadComponent.propDecorators = {
8995
+ inputTypeFile: [{ type: i0.ViewChild, args: ["inputTypeFile",] }],
8989
8996
  placeholder: [{ type: i0.Input }],
8990
8997
  description: [{ type: i0.Input }],
8991
8998
  chooseButtonText: [{ type: i0.Input }],