@smartbit4all/ng-client 3.2.35 → 3.2.37

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.
@@ -5870,8 +5870,10 @@ class Table {
5870
5870
  return `${this.smartTable.selection.isSelected(row) ? 'deselect' : 'select'} row ${row.position + 1}`;
5871
5871
  }
5872
5872
  isHighlighted(row) {
5873
- if (row['data'][this.smartTable.highlightProperty]) {
5874
- return true;
5873
+ if (this.smartTable.highlightProperty) {
5874
+ if (row['data'][this.smartTable.highlightProperty]) {
5875
+ return true;
5876
+ }
5875
5877
  }
5876
5878
  if (!this.highlightedRows || !this.highlightedRows.length) {
5877
5879
  return false;
@@ -6013,15 +6015,18 @@ class Table {
6013
6015
  return header;
6014
6016
  }
6015
6017
  isImageResource(element, header) {
6016
- if (!('icons' in element)) {
6018
+ if (!element.icons) {
6017
6019
  return false;
6018
6020
  }
6019
6021
  let property = this.originalProperty(header);
6020
6022
  return Object.keys(element.icons).some((key) => key === property);
6021
6023
  }
6022
6024
  getImageResourceIcons(element, header) {
6023
- let iconCodes = element.icons[this.originalProperty(header)];
6024
- return iconCodes ? iconCodes : [];
6025
+ if (element?.icons) {
6026
+ let iconCodes = element?.icons[this.originalProperty(header)];
6027
+ return iconCodes;
6028
+ }
6029
+ return [];
6025
6030
  }
6026
6031
  getImageResourceIcon(element, header) {
6027
6032
  return element.icons[this.originalProperty(header)].identifier;