@smartbit4all/ng-client 3.2.35 → 3.2.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/esm2020/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
- package/esm2020/lib/smart-table/tables/table.mjs +7 -4
- package/fesm2015/smartbit4all-ng-client.mjs +6 -3
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +6 -3
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.2.36.tgz +0 -0
- package/smartbit4all-ng-client-3.2.35.tgz +0 -0
|
@@ -6013,15 +6013,18 @@ class Table {
|
|
|
6013
6013
|
return header;
|
|
6014
6014
|
}
|
|
6015
6015
|
isImageResource(element, header) {
|
|
6016
|
-
if (!
|
|
6016
|
+
if (!element.icons) {
|
|
6017
6017
|
return false;
|
|
6018
6018
|
}
|
|
6019
6019
|
let property = this.originalProperty(header);
|
|
6020
6020
|
return Object.keys(element.icons).some((key) => key === property);
|
|
6021
6021
|
}
|
|
6022
6022
|
getImageResourceIcons(element, header) {
|
|
6023
|
-
|
|
6024
|
-
|
|
6023
|
+
if (element?.icons) {
|
|
6024
|
+
let iconCodes = element?.icons[this.originalProperty(header)];
|
|
6025
|
+
return iconCodes;
|
|
6026
|
+
}
|
|
6027
|
+
return [];
|
|
6025
6028
|
}
|
|
6026
6029
|
getImageResourceIcon(element, header) {
|
|
6027
6030
|
return element.icons[this.originalProperty(header)].identifier;
|