@iobroker/dm-gui-components 9.1.6 → 9.1.8
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 +6 -0
- package/build/Communication.d.ts +5 -5
- package/build/Communication.js +3 -1
- package/build/Communication.js.map +1 -1
- package/build/DeviceControl.d.ts +1 -1
- package/build/DeviceControl.js.map +1 -1
- package/build/DeviceList.d.ts +7 -0
- package/build/DeviceList.js +31 -10
- package/build/DeviceList.js.map +1 -1
- package/build/DeviceStatus.js +18 -3
- package/build/DeviceStatus.js.map +1 -1
- package/build/i18n/de.json +1 -0
- package/build/i18n/en.json +1 -0
- package/build/i18n/es.json +1 -0
- package/build/i18n/fr.json +1 -0
- package/build/i18n/it.json +1 -0
- package/build/i18n/nl.json +1 -0
- package/build/i18n/pl.json +1 -0
- package/build/i18n/pt.json +1 -0
- package/build/i18n/ru.json +1 -0
- package/build/i18n/uk.json +1 -0
- package/build/i18n/zh-cn.json +1 -0
- package/build/protocol/DmProtocolBase.d.ts +3 -3
- package/build/protocol/DmProtocolBase.js.map +1 -1
- package/package.json +5 -5
package/build/i18n/en.json
CHANGED
package/build/i18n/es.json
CHANGED
package/build/i18n/fr.json
CHANGED
package/build/i18n/it.json
CHANGED
package/build/i18n/nl.json
CHANGED
package/build/i18n/pl.json
CHANGED
package/build/i18n/pt.json
CHANGED
package/build/i18n/ru.json
CHANGED
package/build/i18n/uk.json
CHANGED
package/build/i18n/zh-cn.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type Connection } from '@iobroker/adapter-react-v5';
|
|
2
|
-
import type { RetVal } from '@iobroker/dm-utils';
|
|
2
|
+
import type { DeviceId, RetVal } from '@iobroker/dm-utils';
|
|
3
3
|
import type { ControlState, DeviceInfo, DmActionResponse, DmControlResponse, InstanceDetails } from './api';
|
|
4
4
|
export interface Message {
|
|
5
5
|
actionId?: string;
|
|
6
|
-
deviceId?:
|
|
6
|
+
deviceId?: DeviceId;
|
|
7
7
|
value?: unknown;
|
|
8
8
|
origin?: number;
|
|
9
9
|
confirm?: boolean;
|
|
@@ -21,7 +21,7 @@ export declare abstract class DmProtocolBase {
|
|
|
21
21
|
abstract loadDevices(callback: LoadDevicesCallback): Promise<void>;
|
|
22
22
|
abstract sendAction(command: CommandName, messageToSend: Message): Promise<DmActionResponse | DmControlResponse>;
|
|
23
23
|
abstract sendControl(command: CommandName, messageToSend: {
|
|
24
|
-
deviceId:
|
|
24
|
+
deviceId: DeviceId;
|
|
25
25
|
controlId: string;
|
|
26
26
|
state?: ControlState;
|
|
27
27
|
}): Promise<DmControlResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DmProtocolBase.js","sourceRoot":"./src/","sources":["protocol/DmProtocolBase.ts"],"names":[],"mappings":"AAmBA,MAAM,OAAgB,cAAc;IAEX;IACA;IAFrB,YACqB,gBAAwB,EACxB,MAAkB;QADlB,qBAAgB,GAAhB,gBAAgB,CAAQ;QACxB,WAAM,GAAN,MAAM,CAAY;IACpC,CAAC;IAgBM,IAAI,CAAU,OAAoB,EAAE,IAAU;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;CACJ","sourcesContent":["import { type Connection } from '@iobroker/adapter-react-v5';\nimport type { RetVal } from '@iobroker/dm-utils';\nimport type { ControlState, DeviceInfo, DmActionResponse, DmControlResponse, InstanceDetails } from './api';\n\nexport interface Message {\n actionId?: string;\n deviceId?:
|
|
1
|
+
{"version":3,"file":"DmProtocolBase.js","sourceRoot":"./src/","sources":["protocol/DmProtocolBase.ts"],"names":[],"mappings":"AAmBA,MAAM,OAAgB,cAAc;IAEX;IACA;IAFrB,YACqB,gBAAwB,EACxB,MAAkB;QADlB,qBAAgB,GAAhB,gBAAgB,CAAQ;QACxB,WAAM,GAAN,MAAM,CAAY;IACpC,CAAC;IAgBM,IAAI,CAAU,OAAoB,EAAE,IAAU;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;CACJ","sourcesContent":["import { type Connection } from '@iobroker/adapter-react-v5';\nimport type { DeviceId, RetVal } from '@iobroker/dm-utils';\nimport type { ControlState, DeviceInfo, DmActionResponse, DmControlResponse, InstanceDetails } from './api';\n\nexport interface Message {\n actionId?: string;\n deviceId?: DeviceId;\n value?: unknown;\n origin?: number;\n confirm?: boolean;\n data?: any;\n /** Inform backend, how long the frontend will wait for an answer */\n timeout?: number;\n}\n\nexport type CommandName = `dm:${string}`;\n\nexport type LoadDevicesCallback = (batch: DeviceInfo[], total?: number) => RetVal<void>;\n\nexport abstract class DmProtocolBase {\n constructor(\n private readonly selectedInstance: string,\n private readonly socket: Connection,\n ) {}\n\n public abstract convertInstanceDetails(details: any): InstanceDetails;\n\n public abstract loadDevices(callback: LoadDevicesCallback): Promise<void>;\n\n public abstract sendAction(\n command: CommandName,\n messageToSend: Message,\n ): Promise<DmActionResponse | DmControlResponse>;\n\n public abstract sendControl(\n command: CommandName,\n messageToSend: { deviceId: DeviceId; controlId: string; state?: ControlState },\n ): Promise<DmControlResponse>;\n\n protected send<T = any>(command: CommandName, data?: any): Promise<T> {\n return this.socket.sendTo(this.selectedInstance, command, data);\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/dm-gui-components",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.8",
|
|
4
4
|
"description": "ReactJS components to develop admin interface for ioBroker device manager.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jey Cee",
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://github.com/ioBroker/dm-gui-components#readme",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@iobroker/adapter-react-v5": "^8.
|
|
56
|
-
"@iobroker/json-config": "^8.4.
|
|
55
|
+
"@iobroker/adapter-react-v5": "^8.3.1",
|
|
56
|
+
"@iobroker/json-config": "^8.4.15"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@alcalzone/release-script": "^5.2.1",
|
|
60
60
|
"@alcalzone/release-script-plugin-license": "^5.2.0",
|
|
61
61
|
"@iobroker/build-tools": "^3.0.1",
|
|
62
|
-
"@iobroker/dm-utils": "^3.1.
|
|
62
|
+
"@iobroker/dm-utils": "^3.1.3",
|
|
63
63
|
"@iobroker/dm-utils-v1": "npm:@iobroker/dm-utils@^1.0.16",
|
|
64
|
-
"@iobroker/eslint-config": "^2.
|
|
64
|
+
"@iobroker/eslint-config": "^2.3.4",
|
|
65
65
|
"@types/react": "^18.3.31",
|
|
66
66
|
"@types/react-dom": "^18.3.7",
|
|
67
67
|
"react": "^18.3.1",
|