@iobroker/dm-utils 1.0.5 → 1.0.7
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 +8 -0
- package/build/types/base.d.ts +5 -1
- package/build/types/common.d.ts +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -301,6 +301,14 @@ This method returns a promise that resolves to a `ProgressDialog` object.
|
|
|
301
301
|
### **WORK IN PROGRESS**
|
|
302
302
|
-->
|
|
303
303
|
## Changelog
|
|
304
|
+
### 1.0.7 (2025-01-24)
|
|
305
|
+
|
|
306
|
+
* (@GermanBluefox) Added `headerTextColor` to device info
|
|
307
|
+
|
|
308
|
+
### 1.0.6 (2025-01-14)
|
|
309
|
+
|
|
310
|
+
* (@GermanBluefox) Added the connection type indication
|
|
311
|
+
|
|
304
312
|
### 1.0.5 (2025-01-11)
|
|
305
313
|
|
|
306
314
|
* (@GermanBluefox) Added action ENABLE_DISABLE and `enabled` status
|
package/build/types/base.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionContext, ErrorResponse, MessageContext } from '..';
|
|
1
|
+
import type { ActionContext, ConfigConnectionType, ErrorResponse, MessageContext } from '..';
|
|
2
2
|
import type { ApiVersion, DeviceRefresh, DeviceStatus, RetVal } from './common';
|
|
3
3
|
type ActionType = 'api' | 'adapter';
|
|
4
4
|
export type Color = 'primary' | 'secondary' | (string & {});
|
|
@@ -108,9 +108,13 @@ export interface DeviceInfo<T extends ActionType = 'api'> {
|
|
|
108
108
|
model?: ioBroker.StringOrTranslated;
|
|
109
109
|
/** Color or 'primary', 'secondary' for the text in the card header */
|
|
110
110
|
color?: Color;
|
|
111
|
+
/** Color of the text in the card header */
|
|
112
|
+
headerTextColor?: Color;
|
|
111
113
|
/** Background color of card header (you can use primary, secondary or color rgb value or hex) */
|
|
112
114
|
backgroundColor?: Color;
|
|
113
115
|
status?: DeviceStatus | DeviceStatus[];
|
|
116
|
+
/** Connection type, how the device is connected */
|
|
117
|
+
connectionType?: ConfigConnectionType;
|
|
114
118
|
/** If this flag is true or false, the according indication will be shown. Additionally, if ACTIONS.ENABLE_DISABLE is implemented, this action will be sent to backend by clicking on this indication */
|
|
115
119
|
enabled?: boolean;
|
|
116
120
|
/** List of actions on the card */
|
package/build/types/common.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type ApiVersion = 'v1';
|
|
2
|
+
export type ConfigConnectionType = 'lan' | 'wifi' | 'bluetooth' | 'thread' | 'z-wave' | 'zigbee' | 'other';
|
|
2
3
|
export type ConfigIconType = 'add' | 'backlight' | 'delete' | 'dimmer' | 'edit' | 'group' | 'identify' | 'info' | 'light' | 'lines' | 'next' | 'pair' | 'pause' | 'play' | 'previous' | 'qrcode' | 'refresh' | 'search' | 'settings' | 'socket' | 'stop' | 'unpair' | 'user' | string;
|
|
3
4
|
export type DeviceStatus = 'connected' | 'disconnected' | {
|
|
4
5
|
battery?: number | boolean | 'charging' | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/dm-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "ioBroker Device Manager utilities for backend",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"@alcalzone/release-script": "^3.8.0",
|
|
29
29
|
"@alcalzone/release-script-plugin-license": "^3.7.0",
|
|
30
30
|
"@iobroker/eslint-config": "^1.0.0",
|
|
31
|
-
"@types/node": "^22.10.
|
|
31
|
+
"@types/node": "^22.10.10",
|
|
32
32
|
"axios": "^1.7.9",
|
|
33
|
-
"typescript": "^5.7.
|
|
33
|
+
"typescript": "^5.7.3"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"LICENSE",
|