ps-toolkit-ui 1.18.83 → 1.18.85

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.value; });
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();
@@ -6327,12 +6336,14 @@
6327
6336
  };
6328
6337
  FormSelectComponent.prototype.toggle = function (op) {
6329
6338
  if (op.selected) {
6339
+ this.inp.value = null;
6330
6340
  this.unCheck(op);
6331
6341
  if (this.inp.onlyChild) {
6332
6342
  this.unCheckParent(op.parent);
6333
6343
  }
6334
6344
  }
6335
6345
  else {
6346
+ this.inp.value = op.value;
6336
6347
  this.check(op);
6337
6348
  if (this.inp.onlyChild && this.inp.type === exports.InputType.Tree) {
6338
6349
  this.checkParent(op.parent);