ps-toolkit-ui 1.7.9 → 1.7.12

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.
@@ -4482,6 +4482,7 @@
4482
4482
  this.part1.displayLabel = this.part2.displayLabel = this.part3.displayLabel = this.part4.displayLabel = false;
4483
4483
  this.part1.placeholder = this.part2.placeholder = this.part3.placeholder = this.part4.placeholder = null;
4484
4484
  this.part1.onChange = function (v) {
4485
+ console.log('this.part1.onChange', v, v.length);
4485
4486
  _this.inp.error = null;
4486
4487
  _this.inp.value = null;
4487
4488
  if (v.length === 2 && _this.inp.type === exports.InputType.SelectAutoCompletePlaque) {
@@ -4494,6 +4495,7 @@
4494
4495
  }
4495
4496
  };
4496
4497
  this.part2.onChange = function (v) {
4498
+ console.log('this.part2.onChange', v, v.length);
4497
4499
  _this.inp.error = null;
4498
4500
  _this.inp.value = null;
4499
4501
  if (v.length === 1) {
@@ -4506,6 +4508,7 @@
4506
4508
  }
4507
4509
  };
4508
4510
  this.part3.onChange = function (v) {
4511
+ console.log('this.part3.onChange', v, v.length);
4509
4512
  _this.inp.error = null;
4510
4513
  _this.inp.value = null;
4511
4514
  if (v.length === 3 && _this.inp.type === exports.InputType.SelectAutoCompletePlaque) {
@@ -4525,6 +4528,7 @@
4525
4528
  }
4526
4529
  };
4527
4530
  this.part4.onChange = function (v) {
4531
+ console.log('this.part4.onChange', v, v.length);
4528
4532
  _this.inp.error = null;
4529
4533
  _this.inp.value = null;
4530
4534
  if (v.length === 2) {
@@ -4536,7 +4540,7 @@
4536
4540
  };
4537
4541
  this.part1.onKeyDown = this.part2.onKeyDown = this.part3.onKeyDown = this.part4.onKeyDown = function (e) {
4538
4542
  var code = e.keyCode || e.which;
4539
- if (code === 38 || code === 40) {
4543
+ if (code === 38 || code === 40 || code === 13) {
4540
4544
  _this.onKeyDown(e);
4541
4545
  }
4542
4546
  };
@@ -4624,11 +4628,7 @@
4624
4628
  };
4625
4629
  FormPlaqueSelectComponent.prototype.onKeyDown = function (e) {
4626
4630
  var code = e.keyCode || e.which;
4627
- if (code === 9) {
4628
- e.preventDefault();
4629
- this.cI(e.shiftKey ? 'ShiftTab' : 'Tab');
4630
- }
4631
- else if (code === 13) {
4631
+ if (code === 13) {
4632
4632
  e.preventDefault();
4633
4633
  if (this.open) {
4634
4634
  var h = this.getSelectedHover();
@@ -4726,55 +4726,55 @@
4726
4726
  FormPlaqueSelectComponent.prototype.plaqueChangeFocus = function (p, a) {
4727
4727
  if (this.inp.type === exports.InputType.SelectAutoCompletePlaque) {
4728
4728
  if (p === 'Part1') {
4729
- if (a === 'Tab' || a === 'Enter') {
4729
+ if (a === 'Tab') {
4730
4730
  this.part2.focus(true);
4731
4731
  }
4732
- else if (a === 'ShiftTab' || a === 'ShiftEnter') {
4732
+ else if (a === 'ShiftTab') {
4733
4733
  this.changeIndex.emit('ShiftTab');
4734
4734
  }
4735
4735
  }
4736
4736
  else if (p === 'Part2') {
4737
- if (a === 'Tab' || a === 'Enter') {
4737
+ if (a === 'Tab') {
4738
4738
  this.part3.focus(true);
4739
4739
  }
4740
- else if (a === 'ShiftTab' || a === 'ShiftEnter') {
4740
+ else if (a === 'ShiftTab') {
4741
4741
  this.part1.focus(true);
4742
4742
  }
4743
4743
  }
4744
4744
  else if (p === 'Part3') {
4745
- if (a === 'Tab' || a === 'Enter') {
4745
+ if (a === 'Tab') {
4746
4746
  this.part4.focus(true);
4747
4747
  }
4748
- else if (a === 'ShiftTab' || a === 'ShiftEnter') {
4748
+ else if (a === 'ShiftTab') {
4749
4749
  this.part2.focus(true);
4750
4750
  }
4751
4751
  }
4752
4752
  else if (p === 'Part4') {
4753
- if (a === 'Tab' || a === 'Enter') {
4753
+ if (a === 'Tab') {
4754
4754
  this.changeIndex.emit('Tab');
4755
4755
  }
4756
- else if (a === 'ShiftTab' || a === 'ShiftEnter') {
4756
+ else if (a === 'ShiftTab') {
4757
4757
  this.part3.focus(true);
4758
4758
  }
4759
4759
  }
4760
4760
  }
4761
4761
  else if (this.inp.type === exports.InputType.SelectAutoCompletePlaqueM || this.inp.type === exports.InputType.SelectAutoCompletePlaqueF) {
4762
4762
  if (p === 'Part1') {
4763
- if (a === 'Tab' || a === 'Enter') {
4763
+ if (a === 'Tab') {
4764
4764
  this.part3.focus(true);
4765
4765
  if (this.inp.type === exports.InputType.SelectAutoCompletePlaqueF) {
4766
4766
  this.loadOptions();
4767
4767
  }
4768
4768
  }
4769
- else if (a === 'ShiftTab' || a === 'ShiftEnter') {
4769
+ else if (a === 'ShiftTab') {
4770
4770
  this.changeIndex.emit('ShiftTab');
4771
4771
  }
4772
4772
  }
4773
4773
  else if (p === 'Part3') {
4774
- if (a === 'Tab' || a === 'Enter') {
4774
+ if (a === 'Tab') {
4775
4775
  this.changeIndex.emit('Tab');
4776
4776
  }
4777
- else if (a === 'ShiftTab' || a === 'ShiftEnter') {
4777
+ else if (a === 'ShiftTab') {
4778
4778
  this.part1.focus(true);
4779
4779
  if (this.inp.type === exports.InputType.SelectAutoCompletePlaqueF) {
4780
4780
  this.loadOptions();
@@ -4784,10 +4784,10 @@
4784
4784
  }
4785
4785
  else if (this.inp.type === exports.InputType.SelectAutoCompletePlaqueG) {
4786
4786
  if (p === 'Part1') {
4787
- if (a === 'Tab' || a === 'Enter') {
4787
+ if (a === 'Tab') {
4788
4788
  this.changeIndex.emit('Tab');
4789
4789
  }
4790
- else if (a === 'ShiftTab' || a === 'ShiftEnter') {
4790
+ else if (a === 'ShiftTab') {
4791
4791
  this.changeIndex.emit('ShiftTab');
4792
4792
  }
4793
4793
  }
@@ -5996,6 +5996,9 @@
5996
5996
  }
5997
5997
  if (this.inp.onChange) {
5998
5998
  if (this.cValue !== e.target.value) {
5999
+ console.log(this.cValue);
6000
+ console.log(e.target.value);
6001
+ console.log(this.cValue !== e.target.value);
5999
6002
  this.inp.onChange(e.target.value);
6000
6003
  this.cValue = e.target.value;
6001
6004
  }