ps-toolkit-ui 1.16.84 → 1.16.86

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.
@@ -4611,16 +4611,13 @@
4611
4611
  }
4612
4612
  };
4613
4613
  FormDateComponent.prototype.onKeyUp = function (e) {
4614
- if (this.cSearch !== e.target.value) {
4615
- console.log(1111111);
4614
+ if (this.cSearch !== e.target.value && this.inp.type !== exports.InputType.Month) {
4616
4615
  this.inp.error = null;
4617
4616
  this.inp.value = null;
4618
4617
  this.cSearch = e.target.value;
4619
4618
  if (this.inp.search !== '' && this.inp.search !== null) {
4620
- console.log(2222222);
4621
4619
  var v = moment__namespace(this.inp.search, 'jYYYY/jMM/jDD');
4622
4620
  if (v.isValid() && this.inp.search.length <= 10) {
4623
- console.log(33333333);
4624
4621
  this.active = v;
4625
4622
  this.inp.value = this.active.format('jYYYY/jMM/jDD');
4626
4623
  this.setDate();
@@ -4629,12 +4626,10 @@
4629
4626
  }
4630
4627
  }
4631
4628
  else {
4632
- console.log(444444);
4633
4629
  this.setDate();
4634
4630
  }
4635
4631
  }
4636
4632
  else {
4637
- console.log(5555555);
4638
4633
  this.setDate();
4639
4634
  if (this.inp.onChange) {
4640
4635
  this.inp.onChange(this.inp);
@@ -4644,7 +4639,7 @@
4644
4639
  };
4645
4640
  FormDateComponent.prototype.onFocusOut = function () {
4646
4641
  $__namespace(this.inputDiv.nativeElement).removeClass('top');
4647
- this.inp.search = this.inp.type === exports.InputType.Month ? moment__namespace(this.inp.value, 'jYYYY/jMM/jDD').locale('fa').format('jMMMM jYYYY') : this.inp.value;
4642
+ this.inp.search = this.inp.value != null ? (this.inp.type === exports.InputType.Month ? moment__namespace(this.inp.value, 'jYYYY/jMM/jDD').locale('fa').format('jMMMM jYYYY') : this.inp.value) : null;
4648
4643
  this.state = this.inp.type === exports.InputType.Month ? 'month' : 'day';
4649
4644
  };
4650
4645
  FormDateComponent.prototype.setPosition = function () {