ps-toolkit-ui 1.9.44 → 1.9.46

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.
@@ -4989,7 +4989,6 @@
4989
4989
  _this.part3.focus(true);
4990
4990
  }
4991
4991
  else if (v.length === 0) {
4992
- _this.part1.focus(true);
4993
4992
  }
4994
4993
  };
4995
4994
  this.part3.onChange = function (v) {
@@ -5004,7 +5003,6 @@
5004
5003
  _this.changeIndex.emit('Tab');
5005
5004
  }
5006
5005
  else if (v.length === 0 && _this.inp.type === exports.InputType.PlaqueM) {
5007
- _this.part1.focus(true);
5008
5006
  }
5009
5007
  };
5010
5008
  this.part4.onChange = function (v) {
@@ -5019,13 +5017,6 @@
5019
5017
  this.inp.setValue = function (v) {
5020
5018
  var parts = v.split('_');
5021
5019
  if (_this.inp.type === exports.InputType.Plaque) {
5022
- setTimeout(function () {
5023
- _this.inp.value = v;
5024
- _this.part1.value = parts[0];
5025
- _this.part2.value = parts[1];
5026
- _this.part3.value = parts[2];
5027
- _this.part4.value = parts[3];
5028
- }, 100);
5029
5020
  }
5030
5021
  else if (_this.inp.type === exports.InputType.PlaqueM || _this.inp.type === exports.InputType.PlaqueF) {
5031
5022
  setTimeout(function () {
@@ -5094,7 +5085,6 @@
5094
5085
  this.part3.focus(true);
5095
5086
  }
5096
5087
  else if (a === 'ShiftTab' || a === 'ShiftEnter') {
5097
- this.part1.focus(true);
5098
5088
  }
5099
5089
  }
5100
5090
  else if (p === 'Part3') {
@@ -5128,7 +5118,6 @@
5128
5118
  this.changeIndex.emit('Tab');
5129
5119
  }
5130
5120
  else if (a === 'ShiftTab' || a === 'ShiftEnter') {
5131
- this.part1.focus(true);
5132
5121
  }
5133
5122
  }
5134
5123
  }
@@ -5145,6 +5134,8 @@
5145
5134
  };
5146
5135
  FormPlaqueComponent.prototype.onFocusIn = function (e) {
5147
5136
  if (e === void 0) { e = null; }
5137
+ if (e == null || !(e.screenX && e.screenX !== 0 && e.screenY && e.screenY !== 0)) {
5138
+ }
5148
5139
  };
5149
5140
  FormPlaqueComponent.prototype.onKeyDown = function (e) {
5150
5141
  this.inp.error = null;
@@ -6063,16 +6054,14 @@
6063
6054
  }
6064
6055
  };
6065
6056
  FormTextboxComponent.prototype.onFocusIn = function (changeIndex) {
6066
- var _this = this;
6067
6057
  if (changeIndex === void 0) { changeIndex = false; }
6068
- setTimeout(function () {
6069
- if (changeIndex) {
6070
- _this.inputBase.nativeElement.select();
6071
- }
6072
- else {
6073
- _this.inputBase.nativeElement.focus();
6074
- }
6075
- });
6058
+ // setTimeout(() => {
6059
+ // if (changeIndex){
6060
+ // this.inputBase.nativeElement.select();
6061
+ // }else{
6062
+ // this.inputBase.nativeElement.focus();
6063
+ // }
6064
+ // });
6076
6065
  };
6077
6066
  FormTextboxComponent.prototype.onFocusOut = function (e) {
6078
6067
  if (this.inp.onFocusOut !== null) {
@@ -7000,23 +6989,9 @@
7000
6989
  }
7001
6990
  this.car.url = this.motor.url = this.carF.url = this.carG.url = this.driver.url = this.inp.url.replace('_{}', '_' + this.type);
7002
6991
  if (!isEdit) {
7003
- this.onFocusIn();
7004
6992
  }
7005
6993
  };
7006
6994
  FormVehicleSearchComponent.prototype.onFocusIn = function () {
7007
- var _this = this;
7008
- if (this.type === exports.VehicleType.Car || this.type === exports.VehicleType.Motorcycle || this.type === exports.VehicleType.CarF || this.type === exports.VehicleType.CarG) {
7009
- setTimeout(function () {
7010
- $('#' + _this.inp.id + 'VehicleSearchInput' + ' .plaque-inp').click();
7011
- $('#' + _this.inp.id + 'VehicleSearchInput' + ' #Part1TextInput .control').focus();
7012
- }, 100);
7013
- }
7014
- else if (this.type === exports.VehicleType.Driver) {
7015
- this.driver.focus();
7016
- }
7017
- else if (this.type === exports.VehicleType.Fingerprint) {
7018
- this.fingerprint.focus();
7019
- }
7020
6995
  };
7021
6996
  return FormVehicleSearchComponent;
7022
6997
  }());