ps-toolkit-ui 1.9.39 → 1.9.40

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.
@@ -6871,9 +6871,10 @@
6871
6871
  };
6872
6872
  this.fingerprint.disabled = true;
6873
6873
  this.fingerprint.placeholder = this.inp.l('LoadingText', 'Waiting');
6874
- this.inp.setValue = function (v) {
6874
+ this.inp.setValue = function (v, isEdit) {
6875
+ if (isEdit === void 0) { isEdit = false; }
6875
6876
  if (v != null && v.Search) {
6876
- _this.changeType(v.Type);
6877
+ _this.changeType(v.Type, isEdit);
6877
6878
  setTimeout(function () {
6878
6879
  if (v.Type === exports.VehicleType.Motorcycle) {
6879
6880
  _this.motor.setValue(v.Value, false);
@@ -6955,8 +6956,9 @@
6955
6956
  }
6956
6957
  }
6957
6958
  };
6958
- FormVehicleSearchComponent.prototype.changeType = function (t) {
6959
+ FormVehicleSearchComponent.prototype.changeType = function (t, isEdit) {
6959
6960
  var _this = this;
6961
+ if (isEdit === void 0) { isEdit = false; }
6960
6962
  this.type = t;
6961
6963
  if (this.wsAuth != null) {
6962
6964
  this.wsAuth.close();
@@ -7000,7 +7002,9 @@
7000
7002
  };
7001
7003
  }
7002
7004
  this.car.url = this.motor.url = this.carF.url = this.carG.url = this.driver.url = this.inp.url.replace('_{}', '_' + this.type);
7003
- this.onFocusIn();
7005
+ if (!isEdit) {
7006
+ this.onFocusIn();
7007
+ }
7004
7008
  };
7005
7009
  FormVehicleSearchComponent.prototype.onFocusIn = function () {
7006
7010
  var _this = this;