ps-toolkit-ui 1.18.48 → 1.18.49

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.
@@ -3957,26 +3957,19 @@
3957
3957
  }
3958
3958
  this.table.set(this.changeRows);
3959
3959
  if (this.table.searchForm) {
3960
- this.table.searchForm.displayLabel = this.table.expertSearch;
3961
- this.table.searchForm.class = (this.table.searchForm.class ? this.table.searchForm.class : '') + (this.table.expertSearch ? '' : ' p-0');
3962
- if (this.table.expertSearch) {
3963
- var s = new InputClass(this.table.environment, this.table.l, 'Search', 'fad fa-magnifying-glass', exports.InputType.Submit, 'blue h-30');
3964
- s.style = { top: '20px', left: '5px', position: 'absolute', width: '50%' };
3965
- this.table.searchForm.inputs.push(s);
3966
- this.table.searchForm.name = 'ExpertSearch';
3967
- }
3960
+ this.table.searchForm.displayLabel = false;
3961
+ this.table.searchForm.class = (this.table.searchForm.class ? this.table.searchForm.class : '') + ' p-0';
3968
3962
  this.table.searchForm.inputs.forEach(function (x) {
3969
- var hasSubmit = _this.table.searchForm.inputs.some(function (s) { return s.type === exports.InputType.Submit; });
3970
3963
  x.required = false;
3971
- x.displayLabel = _this.table.expertSearch;
3972
- x.class = x.class + ' search-form-inp' + (_this.table.expertSearch ? ' p-0' : '');
3973
- x.withClear = !hasSubmit || _this.table.expertSearch;
3974
- if (!hasSubmit) {
3964
+ x.displayLabel = false;
3965
+ x.class = x.class + ' search-form-inp';
3966
+ if (!_this.table.searchForm.inputs.some(function (s) { return s.type === exports.InputType.Submit; })) {
3975
3967
  if (x.onChange == null) {
3976
3968
  x.onChange = function () {
3977
3969
  _this.table.load();
3978
3970
  };
3979
3971
  }
3972
+ x.withClear = true;
3980
3973
  }
3981
3974
  if (x.type === exports.InputType.Submit) {
3982
3975
  x.onClick = function () {