ps-toolkit-ui 1.7.11 → 1.7.14

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.
@@ -4394,23 +4394,23 @@
4394
4394
  var p = s ? s.split('_') : null;
4395
4395
  if (p && p.length === 4) {
4396
4396
  setTimeout(function () {
4397
- _this.part1.value = p[0];
4398
- _this.part2.value = p[1];
4399
- _this.part3.value = p[2];
4400
- _this.part4.value = p[3];
4397
+ _this.part1.setValue(p[0], false);
4398
+ _this.part2.setValue(p[1], false);
4399
+ _this.part3.setValue(p[2], false);
4400
+ _this.part4.setValue(p[3], false);
4401
4401
  }, 100);
4402
4402
  }
4403
4403
  else if (p && p.length === 2) {
4404
4404
  setTimeout(function () {
4405
- _this.part1.value = p[0];
4406
- _this.part3.value = p[1];
4405
+ _this.part1.setValue(p[0], false);
4406
+ _this.part3.setValue(p[1], false);
4407
4407
  }, 100);
4408
4408
  }
4409
4409
  else {
4410
- _this.part1.value = '';
4411
- _this.part2.value = '';
4412
- _this.part3.value = '';
4413
- _this.part4.value = '';
4410
+ _this.part1.setValue('', false);
4411
+ _this.part2.setValue('', false);
4412
+ _this.part3.setValue('', false);
4413
+ _this.part4.setValue('', false);
4414
4414
  }
4415
4415
  };
4416
4416
  this.inp.focus = function () {
@@ -4482,7 +4482,6 @@
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);
4486
4485
  _this.inp.error = null;
4487
4486
  _this.inp.value = null;
4488
4487
  if (v.length === 2 && _this.inp.type === exports.InputType.SelectAutoCompletePlaque) {
@@ -4495,7 +4494,6 @@
4495
4494
  }
4496
4495
  };
4497
4496
  this.part2.onChange = function (v) {
4498
- console.log('this.part2.onChange', v, v.length);
4499
4497
  _this.inp.error = null;
4500
4498
  _this.inp.value = null;
4501
4499
  if (v.length === 1) {
@@ -4508,7 +4506,6 @@
4508
4506
  }
4509
4507
  };
4510
4508
  this.part3.onChange = function (v) {
4511
- console.log('this.part3.onChange', v, v.length);
4512
4509
  _this.inp.error = null;
4513
4510
  _this.inp.value = null;
4514
4511
  if (v.length === 3 && _this.inp.type === exports.InputType.SelectAutoCompletePlaque) {
@@ -4528,7 +4525,6 @@
4528
4525
  }
4529
4526
  };
4530
4527
  this.part4.onChange = function (v) {
4531
- console.log('this.part4.onChange', v, v.length);
4532
4528
  _this.inp.error = null;
4533
4529
  _this.inp.value = null;
4534
4530
  if (v.length === 2) {
@@ -4657,8 +4653,8 @@
4657
4653
  if (isEdit === void 0) { isEdit = false; }
4658
4654
  this.inp.error = null;
4659
4655
  var va = this.getValue(v);
4660
- this.inp.value = v;
4661
- this.inp.search = va ? va.search : '';
4656
+ this.inp.setValue(v, false);
4657
+ this.inp.setSearch(va ? va.search : '');
4662
4658
  this.cSearch = this.inp.search;
4663
4659
  if (this.inp.onChange) {
4664
4660
  this.inp.onChange(this.inp);
@@ -5865,6 +5861,7 @@
5865
5861
  var _this = this;
5866
5862
  this.inp.setValue = function (v) {
5867
5863
  _this.inp.value = v != null ? v.toString() : '';
5864
+ _this.cValue = _this.inp.value;
5868
5865
  };
5869
5866
  this.inp.focus = function (changeIndex) {
5870
5867
  if (changeIndex === void 0) { changeIndex = false; }