ps-toolkit-ui 1.7.18 → 1.7.19

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.
@@ -3687,13 +3687,8 @@ class FormPlaqueSelectComponent {
3687
3687
  };
3688
3688
  this.inp.setSearch = (s) => {
3689
3689
  const p = s ? s.split('_') : null;
3690
- console.log(p);
3691
3690
  if (p && p.length === 4) {
3692
3691
  setTimeout(() => {
3693
- console.log(p[0]);
3694
- console.log(p[1]);
3695
- console.log(p[2]);
3696
- console.log(p[3]);
3697
3692
  this.part1.setValue(p[0], false);
3698
3693
  this.part2.setValue(p[1], false);
3699
3694
  this.part3.setValue(p[2], false);
@@ -3949,8 +3944,6 @@ class FormPlaqueSelectComponent {
3949
3944
  selectOption(v, isEdit = false) {
3950
3945
  this.inp.error = null;
3951
3946
  const va = this.getValue(v);
3952
- console.log(v);
3953
- console.log(va);
3954
3947
  this.inp.setValue(v, false);
3955
3948
  this.inp.setSearch(va ? va.search : '');
3956
3949
  this.cSearch = this.inp.search;
@@ -5063,9 +5056,6 @@ class FormTextboxComponent {
5063
5056
  this.inp.setValue = (v) => {
5064
5057
  this.inp.value = v != null ? v.toString() : '';
5065
5058
  this.cValue = this.inp.value;
5066
- console.log(this.inp.name);
5067
- console.log(this.cValue);
5068
- console.log(this.inp.value);
5069
5059
  };
5070
5060
  this.inp.focus = (changeIndex = false) => {
5071
5061
  this.onFocusIn(changeIndex);
@@ -5194,9 +5184,6 @@ class FormTextboxComponent {
5194
5184
  this.inp.onKeyUp(this.inp);
5195
5185
  }
5196
5186
  if (this.inp.onChange) {
5197
- console.log(this.cValue);
5198
- console.log(e.target.value);
5199
- console.log(this.cValue !== e.target.value);
5200
5187
  if (this.cValue !== e.target.value) {
5201
5188
  this.inp.onChange(e.target.value);
5202
5189
  this.cValue = e.target.value;
@@ -5967,6 +5954,7 @@ class FormVehicleSearchComponent {
5967
5954
  return true;
5968
5955
  };
5969
5956
  this.inp.clear = () => {
5957
+ console.log(this.inp.clear);
5970
5958
  this.inp.error = null;
5971
5959
  this.inp.setValue(null, false);
5972
5960
  this.changeType(VehicleType.Car);
@@ -5990,46 +5978,6 @@ class FormVehicleSearchComponent {
5990
5978
  }
5991
5979
  changeType(t) {
5992
5980
  this.type = t;
5993
- if (t === VehicleType.Fingerprint) {
5994
- this.fingerprint.loading = true;
5995
- this.fingerprint.placeholder = this.inp.l('LoadingText', 'Waiting');
5996
- this.fingerprint.value = null;
5997
- this.fingerprint.search = null;
5998
- this.wsAuth = new WebSocket('ws://localhost:7890/Auth');
5999
- this.wsAuth.onopen = () => {
6000
- };
6001
- this.wsAuth.onmessage = (evt) => {
6002
- if (this.wsAuth != null) {
6003
- this.wsAuth.close();
6004
- }
6005
- if (evt.data === 'Notfound') {
6006
- HelperClass.addNotification(this.inp.l('NotfoundTitle'));
6007
- this.fingerprint.placeholder = this.inp.l('NotfoundTitle');
6008
- this.fingerprint.value = null;
6009
- this.fingerprint.search = null;
6010
- this.fingerprint.loading = false;
6011
- }
6012
- else if (evt.data.startsWith('Error')) {
6013
- HelperClass.addNotification(evt.data);
6014
- this.fingerprint.placeholder = this.inp.l('NotfoundTitle');
6015
- this.fingerprint.value = null;
6016
- this.fingerprint.search = null;
6017
- this.fingerprint.loading = false;
6018
- }
6019
- else {
6020
- const user = JSON.parse(evt.data);
6021
- this.fingerprint.value = user.Id;
6022
- this.fingerprint.search = user.Name;
6023
- this.fingerprint.loading = false;
6024
- }
6025
- this.wsAuth.close();
6026
- this.wsAuth = null;
6027
- };
6028
- this.wsAuth.onclose = () => {
6029
- };
6030
- }
6031
- this.car.url = this.motor.url = this.carF.url = this.carG.url = this.driver.url = this.inp.url.replace('_{}', '_' + this.type);
6032
- this.onFocusIn();
6033
5981
  }
6034
5982
  onFocusIn() {
6035
5983
  if (this.type === VehicleType.Car || this.type === VehicleType.Motorcycle || this.type === VehicleType.CarF || this.type === VehicleType.CarG) {