ps-toolkit-ui 1.6.22 → 1.6.25

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.
@@ -5887,14 +5887,27 @@
5887
5887
  };
5888
5888
  if (this.inp.type === exports.InputType.BarcodeReader) {
5889
5889
  this.inp.button = 'blue';
5890
+ var fn_1 = this.inp.name + 'SetBarcodeScanValue';
5890
5891
  this.inp.onClickButton = function () {
5891
5892
  try {
5892
5893
  // @ts-ignore
5893
- window.JSInterface.startBarcodeScan('Barcode');
5894
+ window.JSInterface.startBarcodeScan(fn_1);
5894
5895
  }
5895
5896
  catch (e) {
5896
5897
  }
5897
5898
  };
5899
+ try {
5900
+ // @ts-ignore
5901
+ window[fn_1] = function (s) {
5902
+ alert(s);
5903
+ _this.inp.setValue(s, false);
5904
+ setTimeout(function () {
5905
+ _this.onFocusIn();
5906
+ }, 100);
5907
+ };
5908
+ }
5909
+ catch (e) {
5910
+ }
5898
5911
  }
5899
5912
  };
5900
5913
  FormTextboxComponent.prototype.onFocusIn = function (changeIndex) {