@iobroker/dm-gui-components 6.17.13 → 7.0.1
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/LICENSE +21 -21
- package/README.md +59 -59
- package/build/Communication.d.ts +18 -11
- package/build/Communication.js +102 -19
- package/build/Communication.js.map +1 -1
- package/build/DeviceActionButton.d.ts +3 -3
- package/build/DeviceActionButton.js +8 -4
- package/build/DeviceActionButton.js.map +1 -1
- package/build/DeviceCard.d.ts +7 -8
- package/build/DeviceCard.js +8 -7
- package/build/DeviceCard.js.map +1 -1
- package/build/DeviceControl.d.ts +16 -15
- package/build/DeviceControl.js +15 -16
- package/build/DeviceControl.js.map +1 -1
- package/build/DeviceList.d.ts +7 -10
- package/build/DeviceList.js +0 -9
- package/build/DeviceList.js.map +1 -1
- package/build/DeviceStatus.d.ts +2 -1
- package/build/DeviceStatus.js +0 -4
- package/build/DeviceStatus.js.map +1 -1
- package/build/InstanceActionButton.d.ts +3 -2
- package/build/InstanceActionButton.js +2 -2
- package/build/InstanceActionButton.js.map +1 -1
- package/build/JsonConfig.d.ts +4 -4
- package/build/JsonConfig.js +3 -3
- package/build/JsonConfig.js.map +1 -1
- package/build/Utils.d.ts +6 -4
- package/build/Utils.js +112 -94
- package/build/Utils.js.map +1 -1
- package/build/i18n/de.json +2 -1
- package/build/i18n/en.json +2 -1
- package/build/i18n/es.json +2 -1
- package/build/i18n/fr.json +2 -1
- package/build/i18n/it.json +2 -1
- package/build/i18n/nl.json +2 -1
- package/build/i18n/pl.json +2 -1
- package/build/i18n/pt.json +2 -1
- package/build/i18n/ru.json +2 -1
- package/build/i18n/uk.json +2 -1
- package/build/i18n/zh-cn.json +2 -1
- package/package.json +53 -51
- package/src/Communication.tsx +0 -443
- package/src/DeviceActionButton.tsx +0 -31
- package/src/DeviceCard.tsx +0 -511
- package/src/DeviceControl.tsx +0 -196
- package/src/DeviceImageUpload.tsx +0 -92
- package/src/DeviceList.tsx +0 -344
- package/src/DeviceStatus.tsx +0 -156
- package/src/InstanceActionButton.tsx +0 -25
- package/src/JsonConfig.tsx +0 -99
- package/src/TooltipButton.tsx +0 -34
- package/src/Utils.tsx +0 -187
- package/src/i18n/de.json +0 -21
- package/src/i18n/en.json +0 -21
- package/src/i18n/es.json +0 -21
- package/src/i18n/fr.json +0 -21
- package/src/i18n/i18n.d.ts +0 -26
- package/src/i18n/it.json +0 -21
- package/src/i18n/nl.json +0 -21
- package/src/i18n/pl.json +0 -21
- package/src/i18n/pt.json +0 -21
- package/src/i18n/ru.json +0 -21
- package/src/i18n/uk.json +0 -21
- package/src/i18n/zh-cn.json +0 -21
- package/src/index.ts +0 -3
package/build/Utils.js
CHANGED
|
@@ -1,146 +1,164 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Add, Delete, Edit, Refresh, Search, Wifi, WifiOff, Bluetooth, BluetoothDisabled, Visibility, LinkOff, Link as LinkIcon, NotListedLocation, PlayArrow, Stop, FastForward, FastRewind, Pause, Lightbulb, Power, Fluorescent, WbIncandescent, Settings } from '@mui/icons-material';
|
|
2
|
+
import { Add, Delete, Edit, Refresh, Search, Wifi, WifiOff, Bluetooth, BluetoothDisabled, Visibility, LinkOff, Link as LinkIcon, NotListedLocation, PlayArrow, Stop, FastForward, FastRewind, Pause, Lightbulb, Power, Fluorescent, WbIncandescent, Settings, } from '@mui/icons-material';
|
|
3
3
|
import { I18n, Icon, } from '@iobroker/adapter-react-v5';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
function getFaIcon(icon, color) {
|
|
5
|
+
const iconStyle = icon.split(' ').map(s => s.trim()).filter(s => s !== 'fa-solid');
|
|
6
|
+
if (iconStyle.includes('fa-trash-can') || iconStyle.includes('fa-trash')) {
|
|
7
|
+
return React.createElement(Delete, { style: { color } });
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (color === 'primary') {
|
|
11
|
-
color = colors.primary;
|
|
12
|
-
}
|
|
13
|
-
else if (color === 'secondary') {
|
|
14
|
-
color = colors.secondary;
|
|
15
|
-
}
|
|
9
|
+
if (iconStyle.includes('fa-pen')) {
|
|
10
|
+
return React.createElement(Edit, { style: { color } });
|
|
16
11
|
}
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
if (iconStyle.includes('fa-trash-can') || iconStyle.includes('fa-trash')) {
|
|
20
|
-
return React.createElement(Delete, { style: { color } });
|
|
21
|
-
}
|
|
22
|
-
if (iconStyle.includes('fa-pen')) {
|
|
23
|
-
return React.createElement(Edit, { style: { color } });
|
|
24
|
-
}
|
|
25
|
-
if (iconStyle.includes('fa-redo-alt')) {
|
|
26
|
-
return React.createElement(Refresh, { style: { color } });
|
|
27
|
-
}
|
|
28
|
-
if (iconStyle.includes('fa-plus')) {
|
|
29
|
-
return React.createElement(Add, { style: { color } });
|
|
30
|
-
}
|
|
31
|
-
if (iconStyle.includes('fa-wifi')) {
|
|
32
|
-
return React.createElement(Wifi, { style: { color } });
|
|
33
|
-
}
|
|
34
|
-
if (iconStyle.includes('fa-wifi-slash')) {
|
|
35
|
-
return React.createElement(WifiOff, { style: { color } });
|
|
36
|
-
}
|
|
37
|
-
if (iconStyle.includes('fa-bluetooth')) {
|
|
38
|
-
return React.createElement(Bluetooth, { style: { color } });
|
|
39
|
-
}
|
|
40
|
-
if (iconStyle.includes('fa-bluetooth-slash')) {
|
|
41
|
-
return React.createElement(BluetoothDisabled, { style: { color } });
|
|
42
|
-
}
|
|
43
|
-
if (iconStyle.includes('fa-eye')) {
|
|
44
|
-
return React.createElement(Visibility, { style: { color } });
|
|
45
|
-
}
|
|
46
|
-
if (iconStyle.includes('fa-search')) {
|
|
47
|
-
return React.createElement(Search, { style: { color } });
|
|
48
|
-
}
|
|
49
|
-
if (iconStyle.includes('fa-unlink')) {
|
|
50
|
-
return React.createElement(LinkOff, { style: { color } });
|
|
51
|
-
}
|
|
52
|
-
if (iconStyle.includes('fa-link')) {
|
|
53
|
-
return React.createElement(LinkIcon, { style: { color } });
|
|
54
|
-
}
|
|
55
|
-
if (iconStyle.includes('fa-search-location')) {
|
|
56
|
-
return React.createElement(NotListedLocation, { style: { color } });
|
|
57
|
-
}
|
|
58
|
-
if (iconStyle.includes('fa-play')) {
|
|
59
|
-
return React.createElement(PlayArrow, { style: { color } });
|
|
60
|
-
}
|
|
61
|
-
if (iconStyle.includes('fa-stop')) {
|
|
62
|
-
return React.createElement(Stop, { style: { color } });
|
|
63
|
-
}
|
|
64
|
-
if (iconStyle.includes('fa-pause')) {
|
|
65
|
-
return React.createElement(Pause, { style: { color } });
|
|
66
|
-
}
|
|
67
|
-
if (iconStyle.includes('forward') || iconStyle.includes('fa-forward')) {
|
|
68
|
-
return React.createElement(FastForward, { style: { color } });
|
|
69
|
-
}
|
|
70
|
-
if (iconStyle.includes('rewind') || iconStyle.includes('fa-rewind')) {
|
|
71
|
-
return React.createElement(FastRewind, { style: { color } });
|
|
72
|
-
}
|
|
73
|
-
return null;
|
|
12
|
+
if (iconStyle.includes('fa-redo-alt')) {
|
|
13
|
+
return React.createElement(Refresh, { style: { color } });
|
|
74
14
|
}
|
|
75
|
-
if (
|
|
76
|
-
return React.createElement(
|
|
15
|
+
if (iconStyle.includes('fa-plus')) {
|
|
16
|
+
return React.createElement(Add, { style: { color } });
|
|
77
17
|
}
|
|
78
|
-
if (
|
|
79
|
-
return React.createElement(
|
|
18
|
+
if (iconStyle.includes('fa-wifi')) {
|
|
19
|
+
return React.createElement(Wifi, { style: { color } });
|
|
20
|
+
}
|
|
21
|
+
if (iconStyle.includes('fa-wifi-slash')) {
|
|
22
|
+
return React.createElement(WifiOff, { style: { color } });
|
|
23
|
+
}
|
|
24
|
+
if (iconStyle.includes('fa-bluetooth')) {
|
|
25
|
+
return React.createElement(Bluetooth, { style: { color } });
|
|
26
|
+
}
|
|
27
|
+
if (iconStyle.includes('fa-bluetooth-slash')) {
|
|
28
|
+
return React.createElement(BluetoothDisabled, { style: { color } });
|
|
29
|
+
}
|
|
30
|
+
if (iconStyle.includes('fa-eye')) {
|
|
31
|
+
return React.createElement(Visibility, { style: { color } });
|
|
32
|
+
}
|
|
33
|
+
if (iconStyle.includes('fa-search')) {
|
|
34
|
+
return React.createElement(Search, { style: { color } });
|
|
35
|
+
}
|
|
36
|
+
if (iconStyle.includes('fa-unlink')) {
|
|
37
|
+
return React.createElement(LinkOff, { style: { color } });
|
|
80
38
|
}
|
|
81
|
-
if (
|
|
39
|
+
if (iconStyle.includes('fa-link')) {
|
|
40
|
+
return React.createElement(LinkIcon, { style: { color } });
|
|
41
|
+
}
|
|
42
|
+
if (iconStyle.includes('fa-search-location')) {
|
|
43
|
+
return React.createElement(NotListedLocation, { style: { color } });
|
|
44
|
+
}
|
|
45
|
+
if (iconStyle.includes('fa-play')) {
|
|
46
|
+
return React.createElement(PlayArrow, { style: { color } });
|
|
47
|
+
}
|
|
48
|
+
if (iconStyle.includes('fa-stop')) {
|
|
49
|
+
return React.createElement(Stop, { style: { color } });
|
|
50
|
+
}
|
|
51
|
+
if (iconStyle.includes('fa-pause')) {
|
|
52
|
+
return React.createElement(Pause, { style: { color } });
|
|
53
|
+
}
|
|
54
|
+
if (iconStyle.includes('forward') || iconStyle.includes('fa-forward')) {
|
|
55
|
+
return React.createElement(FastForward, { style: { color } });
|
|
56
|
+
}
|
|
57
|
+
if (iconStyle.includes('rewind') || iconStyle.includes('fa-rewind')) {
|
|
58
|
+
return React.createElement(FastRewind, { style: { color } });
|
|
59
|
+
}
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
function getIconByName(name, color) {
|
|
63
|
+
if (name === 'edit' || name === 'rename') {
|
|
82
64
|
return React.createElement(Edit, { style: { color } });
|
|
83
65
|
}
|
|
84
|
-
if (
|
|
66
|
+
if (name === 'delete') {
|
|
85
67
|
return React.createElement(Delete, { style: { color } });
|
|
86
68
|
}
|
|
87
|
-
if (
|
|
69
|
+
if (name === 'refresh') {
|
|
88
70
|
return React.createElement(Refresh, { style: { color } });
|
|
89
71
|
}
|
|
90
|
-
if (
|
|
72
|
+
if (name === 'newDevice' || name === 'new' || name === 'add') {
|
|
91
73
|
return React.createElement(Add, { style: { color } });
|
|
92
74
|
}
|
|
93
|
-
if (
|
|
75
|
+
if (name === 'discover' || name === 'search') {
|
|
94
76
|
return React.createElement(Search, { style: { color } });
|
|
95
77
|
}
|
|
96
|
-
if (
|
|
78
|
+
if (name === 'unpairDevice') {
|
|
97
79
|
return React.createElement(LinkOff, { style: { color } });
|
|
98
80
|
}
|
|
99
|
-
if (
|
|
81
|
+
if (name === 'pairDevice') {
|
|
100
82
|
return React.createElement(LinkIcon, { style: { color } });
|
|
101
83
|
}
|
|
102
|
-
if (
|
|
84
|
+
if (name === 'identify') {
|
|
103
85
|
return React.createElement(NotListedLocation, { style: { color } });
|
|
104
86
|
}
|
|
105
|
-
if (
|
|
87
|
+
if (name === 'play') {
|
|
106
88
|
return React.createElement(PlayArrow, { style: { color } });
|
|
107
89
|
}
|
|
108
|
-
if (
|
|
90
|
+
if (name === 'stop') {
|
|
109
91
|
return React.createElement(Stop, { style: { color } });
|
|
110
92
|
}
|
|
111
|
-
if (
|
|
93
|
+
if (name === 'pause') {
|
|
112
94
|
return React.createElement(Pause, { style: { color } });
|
|
113
95
|
}
|
|
114
|
-
if (
|
|
96
|
+
if (name === 'forward' || name === 'next') {
|
|
115
97
|
return React.createElement(FastForward, { style: { color } });
|
|
116
98
|
}
|
|
117
|
-
if (
|
|
99
|
+
if (name === 'rewind' || name === 'previous') {
|
|
118
100
|
return React.createElement(FastRewind, { style: { color } });
|
|
119
101
|
}
|
|
120
|
-
if (
|
|
102
|
+
if (name === 'lamp' || name === 'light') {
|
|
121
103
|
return React.createElement(Lightbulb, { style: { color } });
|
|
122
104
|
}
|
|
123
|
-
if (
|
|
105
|
+
if (name === 'backlight') {
|
|
124
106
|
return React.createElement(Fluorescent, { style: { color } });
|
|
125
107
|
}
|
|
126
|
-
if (
|
|
108
|
+
if (name === 'dimmer') {
|
|
127
109
|
return React.createElement(WbIncandescent, { style: { color } });
|
|
128
110
|
}
|
|
129
|
-
if (
|
|
111
|
+
if (name === 'socket') {
|
|
130
112
|
return React.createElement(Power, { style: { color } });
|
|
131
113
|
}
|
|
132
|
-
if (
|
|
114
|
+
if (name === 'settings') {
|
|
133
115
|
return React.createElement(Settings, { style: { color } });
|
|
134
116
|
}
|
|
135
117
|
return null;
|
|
136
118
|
}
|
|
119
|
+
export function renderControlIcon(action, colors, value) {
|
|
120
|
+
if (!action) {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
let color = (value && action.colorOn) || action.color || (action.state ? 'primary' : 'inherit');
|
|
124
|
+
if (colors) {
|
|
125
|
+
if (color === 'primary') {
|
|
126
|
+
color = colors.primary;
|
|
127
|
+
}
|
|
128
|
+
else if (color === 'secondary') {
|
|
129
|
+
color = colors.secondary;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (action.icon?.startsWith('fa-') || action.icon?.startsWith('fas')) {
|
|
133
|
+
return getFaIcon(action.icon, color);
|
|
134
|
+
}
|
|
135
|
+
if (value && action.iconOn?.startsWith('data:image')) {
|
|
136
|
+
return React.createElement(Icon, { src: action.iconOn, style: { color } });
|
|
137
|
+
}
|
|
138
|
+
if (action.icon?.startsWith('data:image')) {
|
|
139
|
+
return React.createElement(Icon, { src: action.icon, style: { color } });
|
|
140
|
+
}
|
|
141
|
+
return getIconByName(action.id, color);
|
|
142
|
+
}
|
|
143
|
+
export function renderActionIcon(action) {
|
|
144
|
+
if (!action) {
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
if (action.icon?.startsWith('fa-') || action.icon?.startsWith('fas')) {
|
|
148
|
+
return getFaIcon(action.icon, action.color);
|
|
149
|
+
}
|
|
150
|
+
if (action.icon?.startsWith('data:image')) {
|
|
151
|
+
return React.createElement(Icon, { src: action.icon, style: { color: action.color } });
|
|
152
|
+
}
|
|
153
|
+
return getIconByName(action.id, action.color);
|
|
154
|
+
}
|
|
137
155
|
let language;
|
|
138
156
|
/**
|
|
139
157
|
* Get Translation
|
|
140
|
-
* @param {string | object} text - Text to translate
|
|
141
|
-
* @returns {string}
|
|
142
158
|
*/
|
|
143
|
-
export function getTranslation(
|
|
159
|
+
export function getTranslation(
|
|
160
|
+
/** Text to translate */
|
|
161
|
+
text) {
|
|
144
162
|
language = language || I18n.getLanguage();
|
|
145
163
|
if (typeof text === 'object') {
|
|
146
164
|
const words = text;
|
package/build/Utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.js","sourceRoot":"./src/","sources":["Utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Utils.js","sourceRoot":"./src/","sources":["Utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EACH,GAAG,EAAE,MAAM,EAAE,IAAI,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,OAAO,EAAE,SAAS,EACxB,iBAAiB,EACjB,UAAU,EACV,OAAO,EAAE,IAAI,IAAI,QAAQ,EACzB,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,WAAW,EACX,UAAU,EACV,KAAK,EACL,SAAS,EACT,KAAK,EACL,WAAW,EACX,cAAc,EACd,QAAQ,GACX,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,IAAI,EACJ,IAAI,GACP,MAAM,4BAA4B,CAAC;AAEpC,SAAS,SAAS,CAAC,IAAY,EAAE,KAAa;IAC1C,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC;IAEnF,IAAI,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,IAA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AK,GAAG,IAAmC,CAAC;QAClD,aAAa;QACb,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC;IACtC,CAAC;IAED,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACxB,CAAC"}
|
package/build/i18n/de.json
CHANGED
|
@@ -17,5 +17,6 @@
|
|
|
17
17
|
"allDevicesFilteredOut": "Alle Geräte herausgefiltert",
|
|
18
18
|
"closeButtonText": "Schließen",
|
|
19
19
|
"instanceNotAlive": "Instanz ist nicht aktiv",
|
|
20
|
-
"noDevicesFoundText": "Keine Geräte gefunden"
|
|
20
|
+
"noDevicesFoundText": "Keine Geräte gefunden",
|
|
21
|
+
"pleaseEnterValueText": "Bitte eingeben"
|
|
21
22
|
}
|
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
package/package.json
CHANGED
|
@@ -1,51 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@iobroker/dm-gui-components",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "ReactJS components to develop admin interface for ioBroker device manager.",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "Jey Cee",
|
|
7
|
-
"email": "iobroker@all-smart.net"
|
|
8
|
-
},
|
|
9
|
-
"contributors": [
|
|
10
|
-
{
|
|
11
|
-
"name": "UncleSamSwiss"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"name": "bluefox",
|
|
15
|
-
"email": "dogafox@gmail.com"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"scripts": {
|
|
19
|
-
"prepublishOnly": "npm run build",
|
|
20
|
-
"clean": "rimraf build",
|
|
21
|
-
"build": "tsc && tsc-alias"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"LICENSE",
|
|
34
|
-
"README.md"
|
|
35
|
-
],
|
|
36
|
-
"module": "./build/index.js",
|
|
37
|
-
"types": "./build/index.d.ts",
|
|
38
|
-
"keywords": [
|
|
39
|
-
"iobroker",
|
|
40
|
-
"adapter",
|
|
41
|
-
"iot"
|
|
42
|
-
],
|
|
43
|
-
"license": "MIT",
|
|
44
|
-
"bugs": {
|
|
45
|
-
"url": "https://github.com/ioBroker/dm-gui-components/issues"
|
|
46
|
-
},
|
|
47
|
-
"homepage": "https://github.com/ioBroker/dm-gui-components#readme",
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"@iobroker/adapter-react-v5": "^
|
|
50
|
-
|
|
51
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@iobroker/dm-gui-components",
|
|
3
|
+
"version": "7.0.1",
|
|
4
|
+
"description": "ReactJS components to develop admin interface for ioBroker device manager.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Jey Cee",
|
|
7
|
+
"email": "iobroker@all-smart.net"
|
|
8
|
+
},
|
|
9
|
+
"contributors": [
|
|
10
|
+
{
|
|
11
|
+
"name": "UncleSamSwiss"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "bluefox",
|
|
15
|
+
"email": "dogafox@gmail.com"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"prepublishOnly": "npm run build",
|
|
20
|
+
"clean": "rimraf build",
|
|
21
|
+
"build": "tsc && tsc-alias",
|
|
22
|
+
"check-ts": "tsc --noEmit --checkJS false"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/ioBroker/dm-gui-components.git"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"build/",
|
|
33
|
+
"LICENSE",
|
|
34
|
+
"README.md"
|
|
35
|
+
],
|
|
36
|
+
"module": "./build/index.js",
|
|
37
|
+
"types": "./build/index.d.ts",
|
|
38
|
+
"keywords": [
|
|
39
|
+
"iobroker",
|
|
40
|
+
"adapter",
|
|
41
|
+
"iot"
|
|
42
|
+
],
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/ioBroker/dm-gui-components/issues"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/ioBroker/dm-gui-components#readme",
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@iobroker/adapter-react-v5": "^5.0.5",
|
|
50
|
+
"@iobroker/json-config": "7.0.1"
|
|
51
|
+
},
|
|
52
|
+
"gitHead": "460097b4abe1fb4dfeb7ee35a5757418539649ca"
|
|
53
|
+
}
|