iobroker.mywebui 1.38.13 → 1.38.14

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/io-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "mywebui",
4
- "version": "1.38.13",
4
+ "version": "1.38.14",
5
5
  "titleLang": {
6
6
  "en": "mywebui",
7
7
  "de": "mywebui",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.mywebui",
3
- "version": "1.38.13",
3
+ "version": "1.38.14",
4
4
  "description": "ioBroker mywebui - Custom edited mywebui by gokturk413",
5
5
  "type": "module",
6
6
  "main": "dist/backend/main.js",
@@ -52,7 +52,22 @@ export class IobrokerWebuiPropertiesService extends BaseCustomWebComponentProper
52
52
  if (group) property.group = group;
53
53
  properties.push(property);
54
54
  }
55
- return properties;
55
+ const groupMap = new Map();
56
+ const ungrouped = [];
57
+ for (const prop of properties) {
58
+ if (prop.group) {
59
+ if (!groupMap.has(prop.group)) groupMap.set(prop.group, []);
60
+ groupMap.get(prop.group).push(prop);
61
+ delete prop.group;
62
+ } else {
63
+ ungrouped.push(prop);
64
+ }
65
+ }
66
+ const result = [...ungrouped];
67
+ for (const [groupName, groupProps] of groupMap) {
68
+ result.push({ name: groupName, description: '', properties: groupProps });
69
+ }
70
+ return result;
56
71
  }
57
72
  else {
58
73
  const screens = await iobrokerHandler.getAllNames('screen');