ps-toolkit-ui 0.0.156 → 0.0.157

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.
@@ -3507,14 +3507,18 @@
3507
3507
  };
3508
3508
  };
3509
3509
  FormDateComponent.prototype.setInpValue = function (v) {
3510
+ console.log(v, 'vvvvvvvvvvv');
3510
3511
  if (v === null) {
3511
3512
  this.inp.clear();
3512
3513
  return;
3513
3514
  }
3514
- else if (typeof v === 'string') {
3515
+ else if (typeof v === 'string' && v.includes('Date')) {
3515
3516
  var d = parseInt(v.substring(6, v.length - 2), 10);
3516
3517
  this.active = moment__namespace(d);
3517
3518
  }
3519
+ else if (typeof v === 'string' && v.includes('/')) {
3520
+ this.active = moment__namespace(this.inp.value, 'jYYYY/jMM/jDD');
3521
+ }
3518
3522
  else if (typeof v === 'number') {
3519
3523
  this.active = moment__namespace(v);
3520
3524
  }