ps-toolkit-ui 1.6.66 → 1.6.67

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.
@@ -1240,7 +1240,6 @@
1240
1240
  inp.setValue(s, false);
1241
1241
  setTimeout(function () {
1242
1242
  $__namespace('#' + inp.id + 'TextInput .control').click();
1243
- inp.focus();
1244
1243
  }, 100);
1245
1244
  }
1246
1245
  if (inp.onBarcodeReaderChange !== null) {
@@ -6929,25 +6928,25 @@
6929
6928
  this.inp.setValue = function (v) {
6930
6929
  if (v != null) {
6931
6930
  if (v.split('_').length === 2 && v.split('_').every(function (x) { return /^[0-9]+$/.test(x); })) {
6932
- _this.type = exports.VehicleType.Motorcycle;
6931
+ _this.changeType(exports.VehicleType.Motorcycle);
6933
6932
  setTimeout(function () {
6934
6933
  _this.motor.setValue(v, false);
6935
6934
  });
6936
6935
  }
6937
6936
  else if (v.split('_').length === 2) {
6938
- _this.type = exports.VehicleType.CarF;
6937
+ _this.changeType(exports.VehicleType.CarF);
6939
6938
  setTimeout(function () {
6940
6939
  _this.carF.setValue(v, false);
6941
6940
  });
6942
6941
  }
6943
6942
  else if (v.split('_').length === 4) {
6944
- _this.type = exports.VehicleType.Car;
6943
+ _this.changeType(exports.VehicleType.Car);
6945
6944
  setTimeout(function () {
6946
6945
  _this.car.setValue(v, false);
6947
6946
  });
6948
6947
  }
6949
6948
  else if (v.split('_').length === 1) {
6950
- _this.type = exports.VehicleType.CarG;
6949
+ _this.changeType(exports.VehicleType.CarG);
6951
6950
  setTimeout(function () {
6952
6951
  _this.carG.setValue(v, false);
6953
6952
  });
@@ -6980,14 +6979,15 @@
6980
6979
  this.inp.clear = function () {
6981
6980
  _this.inp.error = null;
6982
6981
  _this.inp.setValue(null, false);
6983
- _this.type = exports.VehicleType.Car;
6982
+ _this.changeType(exports.VehicleType.Car);
6984
6983
  _this.car.clear();
6985
6984
  _this.motor.clear();
6986
6985
  _this.carF.clear();
6987
6986
  _this.carG.clear();
6988
6987
  };
6989
6988
  this.inp.data = function () {
6990
- return _this.type === exports.VehicleType.Car ? _this.car.data() : _this.type === exports.VehicleType.Motorcycle ? _this.motor.data() : _this.type === exports.VehicleType.CarF ? _this.carF.data() : _this.type === exports.VehicleType.CarG ? _this.carG.data() : null;
6989
+ return _this.type === exports.VehicleType.Car ? _this.car.data() : _this.type === exports.VehicleType.Motorcycle ? _this.motor.data() : _this.type === exports.VehicleType.CarF ? _this.carF.data() :
6990
+ _this.type === exports.VehicleType.CarG ? _this.carG.data() : null;
6991
6991
  };
6992
6992
  };
6993
6993
  FormCarComponent.prototype.changeType = function (t) {