ps-toolkit-ui 1.7.16 → 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.
@@ -5862,9 +5862,6 @@
5862
5862
  this.inp.setValue = function (v) {
5863
5863
  _this.inp.value = v != null ? v.toString() : '';
5864
5864
  _this.cValue = _this.inp.value;
5865
- console.log(_this.inp.name);
5866
- console.log(_this.cValue);
5867
- console.log(_this.inp.value);
5868
5865
  };
5869
5866
  this.inp.focus = function (changeIndex) {
5870
5867
  if (changeIndex === void 0) { changeIndex = false; }
@@ -5995,9 +5992,6 @@
5995
5992
  this.inp.onKeyUp(this.inp);
5996
5993
  }
5997
5994
  if (this.inp.onChange) {
5998
- console.log(this.cValue);
5999
- console.log(e.target.value);
6000
- console.log(this.cValue !== e.target.value);
6001
5995
  if (this.cValue !== e.target.value) {
6002
5996
  this.inp.onChange(e.target.value);
6003
5997
  this.cValue = e.target.value;
@@ -6832,6 +6826,7 @@
6832
6826
  return true;
6833
6827
  };
6834
6828
  this.inp.clear = function () {
6829
+ console.log(_this.inp.clear);
6835
6830
  _this.inp.error = null;
6836
6831
  _this.inp.setValue(null, false);
6837
6832
  _this.changeType(exports.VehicleType.Car);
@@ -6854,48 +6849,7 @@
6854
6849
  };
6855
6850
  };
6856
6851
  FormVehicleSearchComponent.prototype.changeType = function (t) {
6857
- var _this = this;
6858
6852
  this.type = t;
6859
- if (t === exports.VehicleType.Fingerprint) {
6860
- this.fingerprint.loading = true;
6861
- this.fingerprint.placeholder = this.inp.l('LoadingText', 'Waiting');
6862
- this.fingerprint.value = null;
6863
- this.fingerprint.search = null;
6864
- this.wsAuth = new WebSocket('ws://localhost:7890/Auth');
6865
- this.wsAuth.onopen = function () {
6866
- };
6867
- this.wsAuth.onmessage = function (evt) {
6868
- if (_this.wsAuth != null) {
6869
- _this.wsAuth.close();
6870
- }
6871
- if (evt.data === 'Notfound') {
6872
- HelperClass.addNotification(_this.inp.l('NotfoundTitle'));
6873
- _this.fingerprint.placeholder = _this.inp.l('NotfoundTitle');
6874
- _this.fingerprint.value = null;
6875
- _this.fingerprint.search = null;
6876
- _this.fingerprint.loading = false;
6877
- }
6878
- else if (evt.data.startsWith('Error')) {
6879
- HelperClass.addNotification(evt.data);
6880
- _this.fingerprint.placeholder = _this.inp.l('NotfoundTitle');
6881
- _this.fingerprint.value = null;
6882
- _this.fingerprint.search = null;
6883
- _this.fingerprint.loading = false;
6884
- }
6885
- else {
6886
- var user = JSON.parse(evt.data);
6887
- _this.fingerprint.value = user.Id;
6888
- _this.fingerprint.search = user.Name;
6889
- _this.fingerprint.loading = false;
6890
- }
6891
- _this.wsAuth.close();
6892
- _this.wsAuth = null;
6893
- };
6894
- this.wsAuth.onclose = function () {
6895
- };
6896
- }
6897
- this.car.url = this.motor.url = this.carF.url = this.carG.url = this.driver.url = this.inp.url.replace('_{}', '_' + this.type);
6898
- this.onFocusIn();
6899
6853
  };
6900
6854
  FormVehicleSearchComponent.prototype.onFocusIn = function () {
6901
6855
  var _this = this;