ps-toolkit-ui 1.6.73 → 1.6.76

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.
@@ -1820,6 +1820,7 @@
1820
1820
  else if (inp.type === exports.InputType.VehicleSearch) {
1821
1821
  var ivs = _.get(d, inp.name.replace('Id', ''));
1822
1822
  var ivt = _.get(d, inp.name + 'Type');
1823
+ console.log({ Search: ivs, Value: iv, Type: ivt });
1823
1824
  inp.setValue({ Search: ivs, Value: iv, Type: ivt }, true);
1824
1825
  }
1825
1826
  else if (inp.type !== exports.InputType.Label || iv != null) {
@@ -4945,7 +4946,7 @@
4945
4946
  };
4946
4947
  this.inp.setValue = function (v) {
4947
4948
  var parts = v.split('_');
4948
- if (parts.length === 4) {
4949
+ if (_this.inp.type === exports.InputType.Plaque) {
4949
4950
  setTimeout(function () {
4950
4951
  _this.inp.value = v;
4951
4952
  _this.part1.value = parts[0];
@@ -4954,14 +4955,14 @@
4954
4955
  _this.part4.value = parts[3];
4955
4956
  }, 100);
4956
4957
  }
4957
- else if (parts.length === 2) {
4958
+ else if (_this.inp.type === exports.InputType.PlaqueM || _this.inp.type === exports.InputType.PlaqueF) {
4958
4959
  setTimeout(function () {
4959
4960
  _this.inp.value = v;
4960
4961
  _this.part1.value = parts[0];
4961
4962
  _this.part3.value = parts[1];
4962
4963
  }, 100);
4963
4964
  }
4964
- else if (parts.length === 1) {
4965
+ else if (_this.inp.type === exports.InputType.PlaqueG) {
4965
4966
  setTimeout(function () {
4966
4967
  _this.inp.value = v;
4967
4968
  _this.part1.value = parts[0];
@@ -6952,21 +6953,20 @@
6952
6953
  this.car.displayLabel = this.carF.displayLabel = this.carG.displayLabel = this.motor.displayLabel = false;
6953
6954
  this.car.disabled = this.carF.disabled = this.carG.disabled = this.motor.disabled = this.inp.disabled;
6954
6955
  this.inp.setValue = function (v) {
6955
- console.log(v);
6956
6956
  if (v != null && v.Value !== null) {
6957
6957
  _this.changeType(v.Type);
6958
6958
  setTimeout(function () {
6959
6959
  if (v.Type === exports.VehicleType.Motorcycle) {
6960
- _this.motor.setValue(v, false);
6960
+ _this.motor.setValue(v.Value, false);
6961
6961
  }
6962
6962
  else if (v.Type === exports.VehicleType.CarF) {
6963
- _this.carF.setValue(v, false);
6963
+ _this.carF.setValue(v.Value, false);
6964
6964
  }
6965
6965
  else if (v.Type === exports.VehicleType.Car) {
6966
- _this.car.setValue(v, false);
6966
+ _this.car.setValue(v.Value, false);
6967
6967
  }
6968
6968
  else if (v.Type === exports.VehicleType.CarG) {
6969
- _this.carG.setValue(v, false);
6969
+ _this.carG.setValue(v.Value, false);
6970
6970
  }
6971
6971
  });
6972
6972
  }