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.
- package/bundles/ps-toolkit-ui.umd.js +10 -1
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/form.class.js +4 -1
- package/esm2015/lib/components/form/select/form.select.component.js +7 -2
- package/fesm2015/ps-toolkit-ui.js +9 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/form.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -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
|
|
6140
|
+
return d;
|
|
6132
6141
|
};
|
|
6133
6142
|
this.inp.focusOut = function () {
|
|
6134
6143
|
$__namespace(_this.inputBase.nativeElement).blur();
|