ps-toolkit-ui 1.18.84 → 1.18.87

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.
@@ -2663,6 +2663,10 @@
2663
2663
  if (opts === void 0) { opts = this.options; }
2664
2664
  return this.getSelectedOptions(opts).map(function (x) { return x.value; });
2665
2665
  };
2666
+ InputClass.prototype.getSelectedName = function (opts) {
2667
+ if (opts === void 0) { opts = this.options; }
2668
+ return this.getSelectedOptions(opts).map(function (x) { return x.name; });
2669
+ };
2666
2670
  InputClass.prototype.getSelectedOptions = function (opts) {
2667
2671
  var e_8, _c;
2668
2672
  if (opts === void 0) { opts = this.options; }
@@ -6126,9 +6130,14 @@
6126
6130
  };
6127
6131
  this.inp.data = function () {
6128
6132
  var d = {};
6133
+ if (_this.inp.multiple) {
6134
+ d[_this.inp.name] = _this.inp.getSelected();
6135
+ d[_this.inp.name + 'Name'] = _this.inp.getSelectedName();
6136
+ return d;
6137
+ }
6129
6138
  d[_this.inp.name] = _this.inp.addNew ? _this.inp.search : _this.inp.value;
6130
6139
  d[_this.inp.name + 'Name'] = _this.inp.search;
6131
- return !_this.inp.multiple ? d : _this.inp.getSelected();
6140
+ return d;
6132
6141
  };
6133
6142
  this.inp.focusOut = function () {
6134
6143
  $__namespace(_this.inputBase.nativeElement).blur();