iobroker-ucl 1.2.74 → 1.2.76

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/html.js CHANGED
@@ -93,6 +93,9 @@ var HtmlCreator = /** @class */ (function () {
93
93
  HtmlCreator.prototype.setAdditionalHTMLaboveTable = function (additionalHTMLaboveTable) {
94
94
  this.additionalHTMLaboveTable = additionalHTMLaboveTable;
95
95
  };
96
+ HtmlCreator.prototype.setAdditionalHTMLbelowTable = function (additionalHTMLbelowTable) {
97
+ this.additionalHTMLbelowTable = additionalHTMLbelowTable;
98
+ };
96
99
  HtmlCreator.prototype.addSeparatorAfterObjectThick = function (separator) {
97
100
  this.separatorRowAfterObjectThick.push(separator);
98
101
  };
@@ -301,6 +304,9 @@ var HtmlCreator = /** @class */ (function () {
301
304
  });
302
305
  });
303
306
  html += "</table>\n";
307
+ if (this.additionalHTMLbelowTable != null) {
308
+ html += this.additionalHTMLbelowTable + "<p>";
309
+ }
304
310
  html += "</body>\n";
305
311
  html += "</html>\n";
306
312
  this.adapter.setState(this.htmlState, html);
package/html.ts CHANGED
@@ -93,6 +93,7 @@
93
93
  export class HtmlCreator {
94
94
  private htmlState: string;
95
95
  private additionalHTMLaboveTable: string;
96
+ private additionalHTMLbelowTable: string;
96
97
  private backgroundImageUrl: string;
97
98
  private tables: HtmlTable[];
98
99
  private separatorRowAfterObjectThick: Object[];
@@ -118,6 +119,10 @@
118
119
  public setAdditionalHTMLaboveTable(additionalHTMLaboveTable: string) {
119
120
  this.additionalHTMLaboveTable = additionalHTMLaboveTable;
120
121
  }
122
+
123
+ public setAdditionalHTMLbelowTable(additionalHTMLbelowTable: string) {
124
+ this.additionalHTMLbelowTable = additionalHTMLbelowTable;
125
+ }
121
126
 
122
127
  public addSeparatorAfterObjectThick(separator: Object) {
123
128
  this.separatorRowAfterObjectThick.push(separator);
@@ -365,6 +370,12 @@
365
370
 
366
371
 
367
372
  html += "</table>\n";
373
+
374
+ if (this.additionalHTMLbelowTable != null) {
375
+ html += this.additionalHTMLbelowTable + "<p>";
376
+ }
377
+
378
+
368
379
  html += "</body>\n";
369
380
  html += "</html>\n";
370
381
  this.adapter.setState(this.htmlState, html);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker-ucl",
3
- "version": "1.2.74",
3
+ "version": "1.2.76",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "build": "tsc --build",
@@ -721,8 +721,8 @@ function sortArray(inputArray) {
721
721
  if (compareEtage != 0) {
722
722
  return compareEtage;
723
723
  }
724
- var typA = elementA.getUsageType();
725
- var typB = elementB.getUsageType();
724
+ var typA = elementA.getCategory();
725
+ var typB = elementB.getCategory();
726
726
  var compareTyp = typA.localeCompare(typB);
727
727
  if (compareTyp != 0) {
728
728
  return compareTyp;
@@ -815,8 +815,8 @@ function sortArray(inputArray) {
815
815
  return compareEtage;
816
816
  }
817
817
 
818
- var typA = elementA.getUsageType();
819
- var typB = elementB.getUsageType();
818
+ var typA = elementA.getCategory();
819
+ var typB = elementB.getCategory();
820
820
  var compareTyp = typA.localeCompare(typB);
821
821
  if (compareTyp != 0) {
822
822
  return compareTyp;