ps-toolkit-ui 1.6.23 → 1.6.26
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 +22 -14
- 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/index/form.component.js +1 -2
- package/esm2015/lib/components/form/radio/form.radio.component.js +1 -2
- package/esm2015/lib/components/form/select/form.select.component.js +4 -5
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +20 -9
- package/fesm2015/ps-toolkit-ui.js +22 -14
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -4219,7 +4219,6 @@
|
|
|
4219
4219
|
}
|
|
4220
4220
|
if (next >= 0 && next < this.form.inputs.length) {
|
|
4221
4221
|
setTimeout(function () {
|
|
4222
|
-
console.log(_this.form.inputs[next], next);
|
|
4223
4222
|
_this.form.inputs[next].focus(true);
|
|
4224
4223
|
}, 1);
|
|
4225
4224
|
}
|
|
@@ -5047,7 +5046,6 @@
|
|
|
5047
5046
|
var code = e.keyCode || e.which;
|
|
5048
5047
|
if (code === 9 || code === 13) {
|
|
5049
5048
|
e.preventDefault();
|
|
5050
|
-
console.log(e.shiftKey ? 'ShiftTab' : 'Tab');
|
|
5051
5049
|
this.changeIndex.emit(e.shiftKey ? 'ShiftTab' : 'Tab');
|
|
5052
5050
|
}
|
|
5053
5051
|
var selected = this.inp.options.findIndex(function (x) { return x.value === _this.inp.value; });
|
|
@@ -5174,7 +5172,6 @@
|
|
|
5174
5172
|
_this.inp.search = s;
|
|
5175
5173
|
};
|
|
5176
5174
|
this.inp.focus = function () {
|
|
5177
|
-
console.log('this.inp.focus');
|
|
5178
5175
|
_this.openOptions();
|
|
5179
5176
|
};
|
|
5180
5177
|
this.inp.isValid = function () {
|
|
@@ -5314,9 +5311,9 @@
|
|
|
5314
5311
|
return;
|
|
5315
5312
|
}
|
|
5316
5313
|
this.inp.value = null;
|
|
5317
|
-
if (this.inp.onChange)
|
|
5318
|
-
|
|
5319
|
-
}
|
|
5314
|
+
// if (this.inp.onChange){
|
|
5315
|
+
// this.inp.onChange(this.inp, false);
|
|
5316
|
+
// }
|
|
5320
5317
|
if (this.inp.type === exports.InputType.SelectSearch) {
|
|
5321
5318
|
this.setOptions();
|
|
5322
5319
|
}
|
|
@@ -5890,14 +5887,25 @@
|
|
|
5890
5887
|
};
|
|
5891
5888
|
if (this.inp.type === exports.InputType.BarcodeReader) {
|
|
5892
5889
|
this.inp.button = 'blue';
|
|
5893
|
-
this.inp.
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
};
|
|
5890
|
+
// const fn = this.inp.name + 'SetBarcodeScanValue';
|
|
5891
|
+
// this.inp.onClickButton = () => {
|
|
5892
|
+
// try {
|
|
5893
|
+
// // @ts-ignore
|
|
5894
|
+
// window.JSInterface.startBarcodeScan(fn);
|
|
5895
|
+
// } catch (e) {
|
|
5896
|
+
// }
|
|
5897
|
+
// };
|
|
5898
|
+
// try {
|
|
5899
|
+
// // @ts-ignore
|
|
5900
|
+
// window[fn] = (s) => {
|
|
5901
|
+
// alert(s);
|
|
5902
|
+
// this.inp.setValue(s, false);
|
|
5903
|
+
// setTimeout(() => {
|
|
5904
|
+
// this.onFocusIn();
|
|
5905
|
+
// }, 100);
|
|
5906
|
+
// };
|
|
5907
|
+
// } catch (e) {
|
|
5908
|
+
// }
|
|
5901
5909
|
}
|
|
5902
5910
|
};
|
|
5903
5911
|
FormTextboxComponent.prototype.onFocusIn = function (changeIndex) {
|