ps-toolkit-ui 1.6.74 → 1.6.77

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 }, d);
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];