@ecodev/natural 68.1.2 → 69.0.0

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.
@@ -3995,7 +3995,7 @@ class NaturalAbstractList extends NaturalAbstractPanel {
3995
3995
  * In panel context, header is hidden when no results.
3996
3996
  */
3997
3997
  showHeader() {
3998
- return !this.isPanel || (this.isPanel && this.showTable());
3998
+ return !this.isPanel || (this.isPanel && !!this.dataSource?.data?.length);
3999
3999
  }
4000
4000
  /**
4001
4001
  * Search is visible in most cases, but hidden on a panel
@@ -4003,12 +4003,6 @@ class NaturalAbstractList extends NaturalAbstractPanel {
4003
4003
  showSearch() {
4004
4004
  return !this.isPanel;
4005
4005
  }
4006
- /**
4007
- * Table should be shown only when there is data
4008
- */
4009
- showTable() {
4010
- return !!this.dataSource && !!this.dataSource.data && this.dataSource.data.length > 0;
4011
- }
4012
4006
  /**
4013
4007
  * No results is shown when there is no items, but only in non-panel context only.
4014
4008
  * In panels we want discrete mode, there is no search and no "no-results"