ps-toolkit-ui 1.7.49 → 1.7.52

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.
@@ -4112,10 +4112,10 @@
4112
4112
  _this.inp.value = _this.inp.default;
4113
4113
  };
4114
4114
  this.inp.data = function () {
4115
+ var result = {};
4116
+ result[_this.inp.name] = _this.inp.name;
4115
4117
  if (_this.inp.value && typeof _this.inp.value !== 'string') {
4116
4118
  if (!_this.inp.exportPdf) {
4117
- var result = {};
4118
- result[_this.inp.name] = _this.inp.value.filter(function (x) { return typeof x !== 'string'; }).map(function (x) { return x.name; });
4119
4119
  result[_this.inp.name + 'File'] = _this.inp.value.filter(function (x) { return typeof x !== 'string'; });
4120
4120
  return result;
4121
4121
  }
@@ -4134,7 +4134,7 @@
4134
4134
  // return doc.output('blob');
4135
4135
  }
4136
4136
  }
4137
- return null;
4137
+ return result;
4138
4138
  };
4139
4139
  this.inp.focus = function () {
4140
4140
  _this.onClick();