ps-toolkit-ui 1.3.49 → 1.3.52

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.
@@ -4761,6 +4761,7 @@
4761
4761
  };
4762
4762
  };
4763
4763
  FormPlaqueComponent.prototype.changeFocus = function (p, a) {
4764
+ console.log('changeFocus', p, a);
4764
4765
  if (this.inp.type === exports.InputType.Plaque) {
4765
4766
  if (p === 'Part1') {
4766
4767
  if (a === 'Tab' || a === 'Enter') {
@@ -4816,7 +4817,9 @@
4816
4817
  };
4817
4818
  FormPlaqueComponent.prototype.onFocusIn = function (e) {
4818
4819
  if (e === void 0) { e = null; }
4820
+ console.log('onFocusIn');
4819
4821
  if (e == null || !(e.screenX && e.screenX !== 0 && e.screenY && e.screenY !== 0)) {
4822
+ console.log('this.part1.focus');
4820
4823
  this.part1.focus();
4821
4824
  }
4822
4825
  };
@@ -6667,15 +6670,18 @@
6667
6670
  this.onFocusIn();
6668
6671
  };
6669
6672
  FormCarComponent.prototype.onFocusIn = function () {
6670
- if (this.type === exports.VehicleType.Car) {
6671
- this.car.focus();
6672
- }
6673
- else if (this.type === exports.VehicleType.CarF) {
6674
- this.carF.focus();
6675
- }
6676
- else if (this.type === exports.VehicleType.Motorcycle) {
6677
- this.motor.focus();
6678
- }
6673
+ var _this = this;
6674
+ setTimeout(function () {
6675
+ if (_this.type === exports.VehicleType.Car) {
6676
+ _this.car.focus();
6677
+ }
6678
+ else if (_this.type === exports.VehicleType.CarF) {
6679
+ _this.carF.focus();
6680
+ }
6681
+ else if (_this.type === exports.VehicleType.Motorcycle) {
6682
+ _this.motor.focus();
6683
+ }
6684
+ }, 3000);
6679
6685
  };
6680
6686
  return FormCarComponent;
6681
6687
  }());