ps-toolkit-ui 0.2.63 → 0.2.64

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.
@@ -3916,7 +3916,7 @@
3916
3916
  return true;
3917
3917
  }
3918
3918
  if (_this.inp.allowed != null && _this.inp.value != null && typeof _this.inp.value !== 'string' &&
3919
- _this.inp.value.map(function (x) { return _this.inp.allowed.includes(x.name.split('.').pop().toLowerCase()); }).filter(function (x) { return !x; }).length > 0) {
3919
+ _this.inp.value.filter(function (x) { return typeof x !== 'string'; }).map(function (x) { return _this.inp.allowed.includes(x.name.split('.').pop().toLowerCase()); }).filter(function (x) { return !x; }).length > 0) {
3920
3920
  _this.inp.error = exports.InputError.NotAllowed;
3921
3921
  return false;
3922
3922
  }
@@ -4015,7 +4015,7 @@
4015
4015
  $__namespace(this.inputBase.nativeElement).focus();
4016
4016
  };
4017
4017
  FormFileComponent.prototype.title = function () {
4018
- if (this.inp.value == null) {
4018
+ if (this.inp.value == null || (this.inp.value instanceof Array && this.inp.value.length === 0)) {
4019
4019
  return this.inp.l('FileNotSelected');
4020
4020
  }
4021
4021
  var t = typeof this.inp.value === 'string' ? this.inp.value : this.inp.value.map(function (x) { return typeof x === 'string' ? x : x.name; }).join(', ');