ps-toolkit-ui 1.9.53 → 1.9.55

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.
@@ -1729,7 +1729,7 @@
1729
1729
  this.method = exports.Method.Post;
1730
1730
  this.url = this.baseUrl;
1731
1731
  this.setButtons(this.onTop, false);
1732
- // this.clearInputs();
1732
+ this.clearInputs();
1733
1733
  if (this.onTop) {
1734
1734
  this.focus();
1735
1735
  }
@@ -6927,15 +6927,15 @@
6927
6927
  return true;
6928
6928
  };
6929
6929
  this.inp.clear = function () {
6930
- // this.inp.error = null;
6931
- // this.inp.setValue(null, false);
6932
- // this.changeType(VehicleType.Car);
6933
- // this.car.clear();
6934
- // this.motor.clear();
6935
- // this.carF.clear();
6936
- // this.carG.clear();
6937
- // this.driver.clear();
6938
- // this.fingerprint.clear();
6930
+ _this.inp.error = null;
6931
+ _this.inp.setValue(null, false);
6932
+ _this.changeType(exports.VehicleType.Car);
6933
+ _this.car.clear();
6934
+ _this.motor.clear();
6935
+ _this.carF.clear();
6936
+ _this.carG.clear();
6937
+ _this.driver.clear();
6938
+ _this.fingerprint.clear();
6939
6939
  };
6940
6940
  this.inp.data = function () {
6941
6941
  var d = { Type: _this.type };
@@ -7010,8 +7010,8 @@
7010
7010
  var _this = this;
7011
7011
  if (this.type === exports.VehicleType.Car || this.type === exports.VehicleType.Motorcycle || this.type === exports.VehicleType.CarF || this.type === exports.VehicleType.CarG) {
7012
7012
  setTimeout(function () {
7013
- $('#' + _this.inp.id + 'VehicleSearchInput' + ' .plaque-inp').click();
7014
- $('#' + _this.inp.id + 'VehicleSearchInput' + ' #Part1TextInput .control').focus();
7013
+ $('#' + _this.inp.id + 'VehicleSearchInput .plaque-inp').click();
7014
+ $('#' + _this.inp.id + 'VehicleSearchInput #Part1TextInput .control').focus();
7015
7015
  }, 100);
7016
7016
  }
7017
7017
  else if (this.type === exports.VehicleType.Driver) {
@@ -7123,8 +7123,9 @@
7123
7123
  this.onFocusIn();
7124
7124
  };
7125
7125
  FormVehicleComponent.prototype.onFocusIn = function () {
7126
+ var _this = this;
7126
7127
  setTimeout(function () {
7127
- $('#Part1TextInput .control').focus();
7128
+ $('#' + _this.inp.id + 'VehicleInput #Part1TextInput .control').focus();
7128
7129
  }, 100);
7129
7130
  };
7130
7131
  return FormVehicleComponent;