@iobroker/dm-utils 0.1.5 → 0.1.6

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/README.md CHANGED
@@ -294,6 +294,9 @@ This method returns a promise that resolves to a `ProgressDialog` object.
294
294
  ### **WORK IN PROGRESS**
295
295
  -->
296
296
  ## Changelog
297
+ ### 0.1.6 (2023-12-16)
298
+ * (bluefox) added channel info
299
+
297
300
  ### 0.1.5 (2023-12-16)
298
301
  * (bluefox) extended controls with unit and new control types
299
302
 
@@ -14,6 +14,13 @@ export interface ActionBase<T extends ActionType> {
14
14
  color?: Color;
15
15
  backgroundColor?: Color;
16
16
  }
17
+ export interface ChannelInfo {
18
+ name: ioBroker.StringOrTranslated;
19
+ icon?: string;
20
+ color?: Color;
21
+ backgroundColor?: Color;
22
+ order?: number;
23
+ }
17
24
  export interface ControlBase {
18
25
  id: string;
19
26
  type: "button" | "switch" | "slider" | "select" | "icon" | "color" | "text" | "number" | "info";
@@ -36,6 +43,7 @@ export interface ControlBase {
36
43
  icon?: string;
37
44
  color?: Color;
38
45
  }[];
46
+ channel?: ChannelInfo;
39
47
  }
40
48
  export interface DeviceControl<T extends ActionType = "api"> extends ControlBase {
41
49
  handler?: T extends "api" ? never : (deviceId: string, actionId: string, state: ControlState, context: MessageContext) => RetVal<ErrorResponse | ioBroker.State>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/dm-utils",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "ioBroker Device Manager utilities for backend",
5
5
  "main": "build/index.js",
6
6
  "publishConfig": {