igniteui-angular 11.1.46 → 11.1.47

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.
@@ -12111,22 +12111,22 @@
12111
12111
  };
12112
12112
  /** @hidden @internal */
12113
12113
  IgxInputDirective.prototype.change = function (event) {
12114
- var e_1, _a;
12114
+ var e_1, _c;
12115
12115
  if (this.type === 'file') {
12116
12116
  var fileList = event.target
12117
12117
  .files;
12118
12118
  var fileArray = [];
12119
12119
  if (fileList) {
12120
12120
  try {
12121
- for (var _b = __values(Array.from(fileList)), _c = _b.next(); !_c.done; _c = _b.next()) {
12122
- var file = _c.value;
12121
+ for (var _d = __values(Array.from(fileList)), _e = _d.next(); !_e.done; _e = _d.next()) {
12122
+ var file = _e.value;
12123
12123
  fileArray.push(file);
12124
12124
  }
12125
12125
  }
12126
12126
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
12127
12127
  finally {
12128
12128
  try {
12129
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12129
+ if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
12130
12130
  }
12131
12131
  finally { if (e_1) throw e_1.error; }
12132
12132
  }
@@ -12147,6 +12147,8 @@
12147
12147
  });
12148
12148
  /** @hidden @internal */
12149
12149
  IgxInputDirective.prototype.clear = function () {
12150
+ var _a, _b;
12151
+ (_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.setValue('');
12150
12152
  this.nativeElement.value = null;
12151
12153
  this._fileNames = '';
12152
12154
  };
@@ -12292,7 +12294,7 @@
12292
12294
  * @internal
12293
12295
  */
12294
12296
  IgxInputDirective.prototype._hasValidators = function () {
12295
- var e_2, _a;
12297
+ var e_2, _c;
12296
12298
  try {
12297
12299
  for (var nativeValidationAttributes_1 = __values(nativeValidationAttributes), nativeValidationAttributes_1_1 = nativeValidationAttributes_1.next(); !nativeValidationAttributes_1_1.done; nativeValidationAttributes_1_1 = nativeValidationAttributes_1.next()) {
12298
12300
  var nativeValidationAttribute = nativeValidationAttributes_1_1.value;
@@ -12304,7 +12306,7 @@
12304
12306
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
12305
12307
  finally {
12306
12308
  try {
12307
- if (nativeValidationAttributes_1_1 && !nativeValidationAttributes_1_1.done && (_a = nativeValidationAttributes_1.return)) _a.call(nativeValidationAttributes_1);
12309
+ if (nativeValidationAttributes_1_1 && !nativeValidationAttributes_1_1.done && (_c = nativeValidationAttributes_1.return)) _c.call(nativeValidationAttributes_1);
12308
12310
  }
12309
12311
  finally { if (e_2) throw e_2.error; }
12310
12312
  }