ps-toolkit-ui 1.16.74 → 1.16.78

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.
@@ -3876,7 +3876,7 @@
3876
3876
  try {
3877
3877
  for (var _b = __values(this.table.cols.filter(function (x) { return x.withSearch; })), _c = _b.next(); !_c.done; _c = _b.next()) {
3878
3878
  var c = _c.value;
3879
- c.search = new InputClass(this.table.environment, this.table.l, c.name, null, exports.InputType.Text, 'h-25 table-search');
3879
+ c.search = new InputClass(this.table.environment, this.table.l, c.name, null, exports.InputType.Text, 'h-25 table-search', c.searchDefault);
3880
3880
  if (c.type === exports.TableCollType.Date || c.type === exports.TableCollType.DateTime || c.type === exports.TableCollType.DateDif || c.type === exports.TableCollType.DateRemain) {
3881
3881
  c.search.type = exports.InputType.Date;
3882
3882
  }
@@ -4611,7 +4611,11 @@
4611
4611
  }
4612
4612
  };
4613
4613
  FormDateComponent.prototype.onKeyUp = function (e) {
4614
- if (this.cSearch !== e.target.value && this.inp.type !== exports.InputType.Month) {
4614
+ if (this.inp.type === exports.InputType.Month) {
4615
+ e.preventDefault();
4616
+ return;
4617
+ }
4618
+ if (this.cSearch !== e.target.value) {
4615
4619
  this.inp.error = null;
4616
4620
  this.inp.value = null;
4617
4621
  this.cSearch = e.target.value;
@@ -9433,6 +9437,7 @@
9433
9437
  this.default = null;
9434
9438
  this.sort = true;
9435
9439
  this.search = null;
9440
+ this.searchDefault = null;
9436
9441
  this.fun = null;
9437
9442
  this.name = name;
9438
9443
  this.class = cls + ([exports.TableCollType.Color, exports.TableCollType.Url, exports.TableCollType.FileSize].includes(type) ? ' ltr' : '');