ps-toolkit-ui 1.6.27 → 1.6.28

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.
@@ -5311,6 +5311,9 @@
5311
5311
  return;
5312
5312
  }
5313
5313
  this.inp.value = null;
5314
+ if (this.inp.onChange) {
5315
+ this.inp.onChange(this.inp, false);
5316
+ }
5314
5317
  if (this.inp.type === exports.InputType.SelectSearch) {
5315
5318
  this.setOptions();
5316
5319
  }
@@ -5884,14 +5887,27 @@
5884
5887
  };
5885
5888
  if (this.inp.type === exports.InputType.BarcodeReader) {
5886
5889
  this.inp.button = 'blue';
5890
+ var fn_1 = this.inp.name + 'SetBarcodeScanValue';
5887
5891
  this.inp.onClickButton = function () {
5888
5892
  try {
5889
5893
  // @ts-ignore
5890
- window.JSInterface.startBarcodeScan('Barcode');
5894
+ window.JSInterface.startBarcodeScan(fn_1);
5891
5895
  }
5892
5896
  catch (e) {
5893
5897
  }
5894
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
+ }
5895
5911
  }
5896
5912
  };
5897
5913
  FormTextboxComponent.prototype.onFocusIn = function (changeIndex) {