ps-toolkit-ui 1.3.92 → 1.3.93

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.
@@ -4262,11 +4262,11 @@
4262
4262
  this.inp.data = function () {
4263
4263
  return _this.inp.value;
4264
4264
  };
4265
- this.part1 = new InputClass(this.inp.environment, this.inp.l, 'Part1', null, exports.InputType.Number, 'plaque-part-1 plaque-part-item', '', true);
4266
- this.part2 = new InputClass(this.inp.environment, this.inp.l, 'Part2', null, exports.InputType.Select, 'plaque-part-2 plaque-part-item', '', true);
4265
+ this.part1 = new InputClass(this.inp.environment, this.inp.l, 'Part1', null, exports.InputType.Number, 'plaque-part-1 plaque-part-item', null, true);
4266
+ this.part2 = new InputClass(this.inp.environment, this.inp.l, 'Part2', null, exports.InputType.Select, 'plaque-part-2 plaque-part-item', null, true);
4267
4267
  this.part2.options = this.alphas.map(function (x) { return new OptionClass(x, x); });
4268
- this.part3 = new InputClass(this.inp.environment, this.inp.l, 'Part3', null, exports.InputType.Number, 'plaque-part-3 plaque-part-item', '', true);
4269
- this.part4 = new InputClass(this.inp.environment, this.inp.l, 'Part4', null, exports.InputType.Number, 'plaque-part-4 plaque-part-item', '', true, 10, 99);
4268
+ this.part3 = new InputClass(this.inp.environment, this.inp.l, 'Part3', null, exports.InputType.Number, 'plaque-part-3 plaque-part-item', null, true);
4269
+ this.part4 = new InputClass(this.inp.environment, this.inp.l, 'Part4', null, exports.InputType.Number, 'plaque-part-4 plaque-part-item', null, true, 10, 99);
4270
4270
  if (this.inp.type === exports.InputType.SelectAutoCompletePlaqueM) {
4271
4271
  this.part1.minLength = 100;
4272
4272
  this.part1.maxLength = 999;
@@ -6666,16 +6666,13 @@
6666
6666
  };
6667
6667
  }
6668
6668
  this.car.url = this.motor.url = this.carF.url = this.driver.url = this.inp.url.replace('_{}', '_' + this.type);
6669
+ this.onFocusIn();
6669
6670
  };
6670
6671
  FormCarSearchComponent.prototype.onFocusIn = function () {
6671
- if (this.type === 'Car') {
6672
- this.car.focus();
6673
- }
6674
- else if (this.type === 'Motor') {
6675
- this.motor.focus();
6676
- }
6677
- else if (this.type === 'CarF') {
6678
- this.carF.focus();
6672
+ if (this.type === 'Car' || this.type === 'Motor' || this.type === 'CarF') {
6673
+ setTimeout(function () {
6674
+ $('#Part1Input .control').focus();
6675
+ }, 100);
6679
6676
  }
6680
6677
  else if (this.type === 'Driver') {
6681
6678
  this.driver.focus();