ps-toolkit-ui 1.3.53 → 1.3.56

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.
@@ -4636,10 +4636,10 @@
4636
4636
  });
4637
4637
  FormPlaqueComponent.prototype.ngOnInit = function () {
4638
4638
  var _this = this;
4639
- this.part1 = new InputClass(this.inp.environment, this.inp.l, 'Part1', null, exports.InputType.Number, 'plaque-part-1 plaque-part-item', '', true);
4640
- this.part2 = new InputClass(this.inp.environment, this.inp.l, 'Part2', null, exports.InputType.Select, 'plaque-part-2 plaque-part-item', '', true);
4641
- this.part3 = new InputClass(this.inp.environment, this.inp.l, 'Part3', null, exports.InputType.Number, 'plaque-part-3 plaque-part-item', '', true);
4642
- this.part4 = new InputClass(this.inp.environment, this.inp.l, 'Part4', null, exports.InputType.Number, 'plaque-part-4 plaque-part-item', '', true, 10, 99);
4639
+ this.part1 = new InputClass(this.inp.environment, this.inp.l, 'Part1', null, exports.InputType.Number, 'plaque-part-1 plaque-part-item', null, true);
4640
+ this.part2 = new InputClass(this.inp.environment, this.inp.l, 'Part2', null, exports.InputType.Select, 'plaque-part-2 plaque-part-item', null, true);
4641
+ this.part3 = new InputClass(this.inp.environment, this.inp.l, 'Part3', null, exports.InputType.Number, 'plaque-part-3 plaque-part-item', null, true);
4642
+ 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);
4643
4643
  this.part2.options = this.alphas.map(function (x) { return new OptionClass(x, x); });
4644
4644
  this.part1.displayLabel = this.part2.displayLabel = this.part3.displayLabel = this.part4.displayLabel = false;
4645
4645
  this.part1.placeholder = this.part2.placeholder = this.part3.placeholder = this.part4.placeholder = null;
@@ -4761,7 +4761,6 @@
4761
4761
  };
4762
4762
  };
4763
4763
  FormPlaqueComponent.prototype.changeFocus = function (p, a) {
4764
- console.log('changeFocus', p, a);
4765
4764
  if (this.inp.type === exports.InputType.Plaque) {
4766
4765
  if (p === 'Part1') {
4767
4766
  if (a === 'Tab' || a === 'Enter') {
@@ -4817,9 +4816,7 @@
4817
4816
  };
4818
4817
  FormPlaqueComponent.prototype.onFocusIn = function (e) {
4819
4818
  if (e === void 0) { e = null; }
4820
- console.log('onFocusIn');
4821
4819
  if (e == null || !(e.screenX && e.screenX !== 0 && e.screenY && e.screenY !== 0)) {
4822
- console.log('this.part1.focus');
4823
4820
  this.part1.focus();
4824
4821
  }
4825
4822
  };
@@ -5111,7 +5108,6 @@
5111
5108
  var code = e.keyCode || e.which;
5112
5109
  if (code === 9) {
5113
5110
  e.preventDefault();
5114
- console.log('00000 onKeyDown');
5115
5111
  this.cI(e.shiftKey ? 'ShiftTab' : 'Tab');
5116
5112
  }
5117
5113
  else if (code === 13) {
@@ -5124,7 +5120,6 @@
5124
5120
  this.selectOption(h.value);
5125
5121
  }
5126
5122
  else {
5127
- console.log('00000else onKeyDown');
5128
5123
  this.cI('Tab');
5129
5124
  }
5130
5125
  }
@@ -5205,7 +5200,6 @@
5205
5200
  }
5206
5201
  }
5207
5202
  if (!isEdit && !this.inp.multiple) {
5208
- console.log('00000 selectOption');
5209
5203
  this.cI('Tab');
5210
5204
  }
5211
5205
  };
@@ -6673,18 +6667,15 @@
6673
6667
  this.onFocusIn();
6674
6668
  };
6675
6669
  FormCarComponent.prototype.onFocusIn = function () {
6676
- var _this = this;
6677
- setTimeout(function () {
6678
- if (_this.type === exports.VehicleType.Car) {
6679
- _this.car.focus();
6680
- }
6681
- else if (_this.type === exports.VehicleType.CarF) {
6682
- _this.carF.focus();
6683
- }
6684
- else if (_this.type === exports.VehicleType.Motorcycle) {
6685
- _this.motor.focus();
6686
- }
6687
- }, 3000);
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
+ }
6688
6679
  };
6689
6680
  return FormCarComponent;
6690
6681
  }());
@@ -7201,9 +7192,17 @@
7201
7192
  if (v === void 0) { v = null; }
7202
7193
  return app.getL("" + c + (a ? "." + a : ''), key, v);
7203
7194
  };
7204
- this.permissions = this.getPermission(this.c, this.a);
7205
- if (this.permissions) {
7206
- this.permissions.Area = app.area;
7195
+ if (app.currentData.user !== null) {
7196
+ this.permissions = this.getPermission(this.c, this.a);
7197
+ if (this.permissions) {
7198
+ this.permissions.Area = app.area;
7199
+ }
7200
+ }
7201
+ else {
7202
+ this.permissions = this.getPermission(this.c, this.a);
7203
+ if (this.permissions) {
7204
+ this.permissions.Area = app.area;
7205
+ }
7207
7206
  }
7208
7207
  }
7209
7208
  BaseComponent.prototype.getPermission = function (c, a) {