ps-toolkit-ui 1.16.30 → 1.16.31
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 +17 -11
- 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/components/form/select/form.select.component.js +18 -12
- package/fesm2015/ps-toolkit-ui.js +17 -11
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/form/select/form.select.component.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -6204,22 +6204,28 @@
|
|
|
6204
6204
|
if (this.inp.onChange) {
|
|
6205
6205
|
this.inp.onChange(this.inp, isEdit);
|
|
6206
6206
|
}
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
this.
|
|
6210
|
-
|
|
6207
|
+
this.clearRel(this.inp, v);
|
|
6208
|
+
if (!isEdit && !this.inp.multiple) {
|
|
6209
|
+
this.cI('Tab');
|
|
6210
|
+
}
|
|
6211
|
+
};
|
|
6212
|
+
FormSelectComponent.prototype.clearRel = function (i, v) {
|
|
6213
|
+
console.log(i.rel, 'i.rel');
|
|
6214
|
+
while (i.rel != null) {
|
|
6215
|
+
i.rel.value = null;
|
|
6216
|
+
i.rel.search = '';
|
|
6217
|
+
i.rel.options = [];
|
|
6211
6218
|
if (v !== null) {
|
|
6212
|
-
|
|
6213
|
-
if (
|
|
6214
|
-
|
|
6219
|
+
i.rel.url = i.relUrl.replace('{}', this.inp.value);
|
|
6220
|
+
if (i.rel.type !== exports.InputType.SelectAutoComplete) {
|
|
6221
|
+
i.rel.load();
|
|
6215
6222
|
}
|
|
6216
6223
|
else {
|
|
6217
|
-
|
|
6224
|
+
i.rel.url += '_{}';
|
|
6218
6225
|
}
|
|
6219
6226
|
}
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
this.cI('Tab');
|
|
6227
|
+
i.rel = i.rel.rel;
|
|
6228
|
+
v = null;
|
|
6223
6229
|
}
|
|
6224
6230
|
};
|
|
6225
6231
|
FormSelectComponent.prototype.toggle = function (op) {
|