ps-toolkit-ui 1.18.34 → 1.18.36
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.
- package/bundles/ps-toolkit-ui.umd.js +3 -5
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/table/table.component.js +4 -6
- package/fesm2015/ps-toolkit-ui.js +3 -5
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -3962,21 +3962,19 @@
|
|
|
3962
3962
|
if (this.table.expertSearch) {
|
|
3963
3963
|
var s = new InputClass(this.table.environment, this.table.l, 'Search', 'fad fa-magnifying-glass', exports.InputType.Submit, 'blue');
|
|
3964
3964
|
s.style = { position: 'absolute', bottom: '20px', left: '0' };
|
|
3965
|
-
this.table.searchForm.inputs.push(s);
|
|
3966
3965
|
}
|
|
3967
3966
|
this.table.searchForm.inputs.forEach(function (x) {
|
|
3967
|
+
var hasSubmit = _this.table.searchForm.inputs.some(function (s) { return s.type === exports.InputType.Submit; });
|
|
3968
3968
|
x.required = false;
|
|
3969
3969
|
x.displayLabel = _this.table.expertSearch;
|
|
3970
3970
|
x.class = x.class + ' search-form-inp';
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
if (!_this.table.searchForm.inputs.some(function (s) { return s.type === exports.InputType.Submit; })) {
|
|
3971
|
+
x.withClear = !hasSubmit || _this.table.expertSearch;
|
|
3972
|
+
if (!hasSubmit) {
|
|
3974
3973
|
if (x.onChange == null) {
|
|
3975
3974
|
x.onChange = function () {
|
|
3976
3975
|
_this.table.load();
|
|
3977
3976
|
};
|
|
3978
3977
|
}
|
|
3979
|
-
x.withClear = true;
|
|
3980
3978
|
}
|
|
3981
3979
|
if (x.type === exports.InputType.Submit) {
|
|
3982
3980
|
x.onClick = function () {
|