@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.
- package/esm2020/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
- package/esm2020/lib/smart-table/tables/table.mjs +11 -6
- package/fesm2015/smartbit4all-ng-client.mjs +10 -5
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +10 -5
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.2.37.tgz +0 -0
- package/smartbit4all-ng-client-3.2.35.tgz +0 -0
|
@@ -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 (
|
|
5874
|
-
|
|
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 (!
|
|
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
|
-
|
|
6024
|
-
|
|
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;
|