@iobroker/adapter-react-v5 0.0.2
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/Components/404.js +155 -0
- package/Components/404.js.map +1 -0
- package/Components/ColorPicker.js +313 -0
- package/Components/ColorPicker.js.map +1 -0
- package/Components/ComplexCron.js +606 -0
- package/Components/ComplexCron.js.map +1 -0
- package/Components/FileBrowser.js +2147 -0
- package/Components/FileBrowser.js.map +1 -0
- package/Components/FileViewer.js +245 -0
- package/Components/FileViewer.js.map +1 -0
- package/Components/Icon.js +234 -0
- package/Components/Icon.js.map +1 -0
- package/Components/IconPicker.js +188 -0
- package/Components/IconPicker.js.map +1 -0
- package/Components/IconSelector.js +337 -0
- package/Components/IconSelector.js.map +1 -0
- package/Components/Image.js +215 -0
- package/Components/Image.js.map +1 -0
- package/Components/Loader.js +134 -0
- package/Components/Loader.js.map +1 -0
- package/Components/Loaders/PT.css +109 -0
- package/Components/Loaders/PT.js +104 -0
- package/Components/Loaders/PT.js.map +1 -0
- package/Components/Loaders/Vendor.css +13 -0
- package/Components/Loaders/Vendor.js +108 -0
- package/Components/Loaders/Vendor.js.map +1 -0
- package/Components/Logo.js +230 -0
- package/Components/Logo.js.map +1 -0
- package/Components/MDUtils.js +141 -0
- package/Components/MDUtils.js.map +1 -0
- package/Components/ObjectBrowser.js +6119 -0
- package/Components/ObjectBrowser.js.map +1 -0
- package/Components/Router.js +152 -0
- package/Components/Router.js.map +1 -0
- package/Components/SaveCloseButtons.js +177 -0
- package/Components/SaveCloseButtons.js.map +1 -0
- package/Components/Schedule.js +1891 -0
- package/Components/Schedule.js.map +1 -0
- package/Components/SelectWithIcon.js +235 -0
- package/Components/SelectWithIcon.js.map +1 -0
- package/Components/SimpleCron/cron2text.js +563 -0
- package/Components/SimpleCron/cron2text.js.map +1 -0
- package/Components/SimpleCron/cronText.js +60 -0
- package/Components/SimpleCron/cronText.js.map +1 -0
- package/Components/SimpleCron/index.js +861 -0
- package/Components/SimpleCron/index.js.map +1 -0
- package/Components/SimpleCron/jquery.cron.locale.js +322 -0
- package/Components/SimpleCron/jquery.cron.locale.js.map +1 -0
- package/Components/TabContainer.js +108 -0
- package/Components/TabContainer.js.map +1 -0
- package/Components/TabContent.js +96 -0
- package/Components/TabContent.js.map +1 -0
- package/Components/TabHeader.js +72 -0
- package/Components/TabHeader.js.map +1 -0
- package/Components/TextWithIcon.js +148 -0
- package/Components/TextWithIcon.js.map +1 -0
- package/Components/ToggleThemeMenu.js +49 -0
- package/Components/ToggleThemeMenu.js.map +1 -0
- package/Components/TreeTable.js +1030 -0
- package/Components/TreeTable.js.map +1 -0
- package/Components/Utils.js +1763 -0
- package/Components/Utils.js.map +1 -0
- package/Components/copy-to-clipboard.js +183 -0
- package/Components/copy-to-clipboard.js.map +1 -0
- package/Components/loader.css +222 -0
- package/Components/types.d.ts +121 -0
- package/Connection.js +3334 -0
- package/Connection.js.map +1 -0
- package/Dialogs/ComplexCron.js +193 -0
- package/Dialogs/ComplexCron.js.map +1 -0
- package/Dialogs/Confirm.js +211 -0
- package/Dialogs/Confirm.js.map +1 -0
- package/Dialogs/Cron.js +254 -0
- package/Dialogs/Cron.js.map +1 -0
- package/Dialogs/Error.js +137 -0
- package/Dialogs/Error.js.map +1 -0
- package/Dialogs/Message.js +118 -0
- package/Dialogs/Message.js.map +1 -0
- package/Dialogs/SelectID.js +313 -0
- package/Dialogs/SelectID.js.map +1 -0
- package/Dialogs/SimpleCron.js +177 -0
- package/Dialogs/SimpleCron.js.map +1 -0
- package/Dialogs/TextInput.js +194 -0
- package/Dialogs/TextInput.js.map +1 -0
- package/GenericApp.js +1022 -0
- package/GenericApp.js.map +1 -0
- package/LICENSE +22 -0
- package/Prompt.js +21 -0
- package/Prompt.js.map +1 -0
- package/README.md +645 -0
- package/Theme.js +422 -0
- package/Theme.js.map +1 -0
- package/assets/devices/Alarm Systems.svg +19 -0
- package/assets/devices/Amplifier.svg +22 -0
- package/assets/devices/Awnings.svg +5 -0
- package/assets/devices/Battery Status.svg +5 -0
- package/assets/devices/Ceiling Spotlights.svg +16 -0
- package/assets/devices/Chandelier.svg +7 -0
- package/assets/devices/Climate.svg +12 -0
- package/assets/devices/Coffee Makers.svg +6 -0
- package/assets/devices/Cold Water.svg +31 -0
- package/assets/devices/Computer.svg +21 -0
- package/assets/devices/Consumption.svg +8 -0
- package/assets/devices/Curtains.svg +43 -0
- package/assets/devices/Dishwashers.svg +12 -0
- package/assets/devices/Doors.svg +6 -0
- package/assets/devices/Doorstep.svg +35 -0
- package/assets/devices/Dryer.svg +14 -0
- package/assets/devices/Fan.svg +20 -0
- package/assets/devices/Floor Lamps.svg +5 -0
- package/assets/devices/Garage Doors.svg +9 -0
- package/assets/devices/Gates.svg +32 -0
- package/assets/devices/Hairdryer.svg +23 -0
- package/assets/devices/Handle.svg +6 -0
- package/assets/devices/Hanging Lamps.svg +9 -0
- package/assets/devices/Heater.svg +44 -0
- package/assets/devices/Hoods.svg +12 -0
- package/assets/devices/Hot Water.svg +10 -0
- package/assets/devices/Humidity.svg +41 -0
- package/assets/devices/Iron.svg +5 -0
- package/assets/devices/Irrigation.svg +42 -0
- package/assets/devices/Led Strip.svg +31 -0
- package/assets/devices/Light.svg +30 -0
- package/assets/devices/Lightings.svg +46 -0
- package/assets/devices/Lock.svg +19 -0
- package/assets/devices/Louvre.svg +7 -0
- package/assets/devices/Mowing Machine.svg +9 -0
- package/assets/devices/Music.svg +13 -0
- package/assets/devices/Outdoor Blinds.svg +7 -0
- package/assets/devices/People.svg +19 -0
- package/assets/devices/Pool.svg +8 -0
- package/assets/devices/Power Consumption.svg +13 -0
- package/assets/devices/Printer.svg +10 -0
- package/assets/devices/Pump.svg +10 -0
- package/assets/devices/Receiver.svg +19 -0
- package/assets/devices/Sconces.svg +10 -0
- package/assets/devices/Security.svg +34 -0
- package/assets/devices/Shading.svg +5 -0
- package/assets/devices/Shutters.svg +11 -0
- package/assets/devices/SmokeDetector.svg +13 -0
- package/assets/devices/Sockets.svg +13 -0
- package/assets/devices/Speaker.svg +35 -0
- package/assets/devices/Stove.svg +12 -0
- package/assets/devices/Table Lamps.svg +12 -0
- package/assets/devices/Temperature Sensors.svg +28 -0
- package/assets/devices/Tv.svg +8 -0
- package/assets/devices/Vacuum Cleaner.svg +16 -0
- package/assets/devices/Ventilation.svg +12 -0
- package/assets/devices/Washing Machines.svg +16 -0
- package/assets/devices/Water Consumption.svg +6 -0
- package/assets/devices/Water Heater.svg +8 -0
- package/assets/devices/Water.svg +40 -0
- package/assets/devices/Weather.svg +28 -0
- package/assets/devices/Window.svg +8 -0
- package/assets/devices/list.json +994 -0
- package/assets/devices/names.txt +63 -0
- package/assets/devices/parseNames.js +34 -0
- package/assets/lamp_ceiling.svg +9 -0
- package/assets/lamp_table.svg +8 -0
- package/assets/no_icon.svg +9 -0
- package/assets/rooms/Anteroom.svg +53 -0
- package/assets/rooms/Attic.svg +21 -0
- package/assets/rooms/Balcony.svg +13 -0
- package/assets/rooms/Barn.svg +6 -0
- package/assets/rooms/Basement.svg +5 -0
- package/assets/rooms/Bathroom.svg +38 -0
- package/assets/rooms/Bedroom.svg +5 -0
- package/assets/rooms/Boiler Room.svg +13 -0
- package/assets/rooms/Carport.svg +17 -0
- package/assets/rooms/Cellar.svg +89 -0
- package/assets/rooms/Chamber.svg +9 -0
- package/assets/rooms/Corridor.svg +53 -0
- package/assets/rooms/Dining Area.svg +37 -0
- package/assets/rooms/Dining Room.svg +37 -0
- package/assets/rooms/Dining.svg +37 -0
- package/assets/rooms/Dressing Room.svg +5 -0
- package/assets/rooms/Driveway.svg +15 -0
- package/assets/rooms/Entrance.svg +44 -0
- package/assets/rooms/Equipment Room.svg +15 -0
- package/assets/rooms/Front Yard.svg +64 -0
- package/assets/rooms/Gallery.svg +14 -0
- package/assets/rooms/Garage.svg +20 -0
- package/assets/rooms/Garden.svg +13 -0
- package/assets/rooms/Ground Floor.svg +95 -0
- package/assets/rooms/Guest Bathroom.svg +33 -0
- package/assets/rooms/Guest Room.svg +5 -0
- package/assets/rooms/Gym.svg +5 -0
- package/assets/rooms/Hall.svg +19 -0
- package/assets/rooms/Home Theater.svg +8 -0
- package/assets/rooms/Kitchen.svg +18 -0
- package/assets/rooms/Laundry Room.svg +12 -0
- package/assets/rooms/Living Area.svg +11 -0
- package/assets/rooms/Living Room.svg +10 -0
- package/assets/rooms/Locker Room.svg +17 -0
- package/assets/rooms/Nursery.svg +5 -0
- package/assets/rooms/Office.svg +8 -0
- package/assets/rooms/Outdoors.svg +7 -0
- package/assets/rooms/Playroom.svg +6 -0
- package/assets/rooms/Pool.svg +8 -0
- package/assets/rooms/Rear Wall.svg +30 -0
- package/assets/rooms/Second Floor.svg +95 -0
- package/assets/rooms/Shed.svg +16 -0
- package/assets/rooms/Sleeping Area.svg +22 -0
- package/assets/rooms/Stairway.svg +5 -0
- package/assets/rooms/Stairwell.svg +15 -0
- package/assets/rooms/Storeroom.svg +5 -0
- package/assets/rooms/Summer House.svg +27 -0
- package/assets/rooms/Swimming Pool.svg +21 -0
- package/assets/rooms/Terrace.svg +7 -0
- package/assets/rooms/Toilet.svg +10 -0
- package/assets/rooms/Upstairs.svg +6 -0
- package/assets/rooms/Wardrobe.svg +60 -0
- package/assets/rooms/Washroom.svg +20 -0
- package/assets/rooms/Wc.svg +10 -0
- package/assets/rooms/Windscreen.svg +60 -0
- package/assets/rooms/Workshop.svg +23 -0
- package/assets/rooms/Workspace.svg +8 -0
- package/assets/rooms/list.json +946 -0
- package/assets/rooms/names.txt +60 -0
- package/assets/rooms/parseNames.js +34 -0
- package/gulpfile.js +113 -0
- package/i18n/de.json +280 -0
- package/i18n/en.json +280 -0
- package/i18n/es.json +267 -0
- package/i18n/fr.json +267 -0
- package/i18n/it.json +267 -0
- package/i18n/nl.json +267 -0
- package/i18n/pl.json +267 -0
- package/i18n/pt.json +267 -0
- package/i18n/ru.json +280 -0
- package/i18n/zh-cn.json +267 -0
- package/i18n.js +171 -0
- package/i18n.js.map +1 -0
- package/icons/IconAdapter.js +39 -0
- package/icons/IconAdapter.js.map +1 -0
- package/icons/IconAlias.js +39 -0
- package/icons/IconAlias.js.map +1 -0
- package/icons/IconChannel.js +80 -0
- package/icons/IconChannel.js.map +1 -0
- package/icons/IconClearFilter.js +41 -0
- package/icons/IconClearFilter.js.map +1 -0
- package/icons/IconClosed.js +39 -0
- package/icons/IconClosed.js.map +1 -0
- package/icons/IconCopy.js +48 -0
- package/icons/IconCopy.js.map +1 -0
- package/icons/IconDevice.js +147 -0
- package/icons/IconDevice.js.map +1 -0
- package/icons/IconDocument.js +39 -0
- package/icons/IconDocument.js.map +1 -0
- package/icons/IconExpert.js +50 -0
- package/icons/IconExpert.js.map +1 -0
- package/icons/IconFx.js +39 -0
- package/icons/IconFx.js.map +1 -0
- package/icons/IconInstance.js +39 -0
- package/icons/IconInstance.js.map +1 -0
- package/icons/IconLogout.js +50 -0
- package/icons/IconLogout.js.map +1 -0
- package/icons/IconOpen.js +39 -0
- package/icons/IconOpen.js.map +1 -0
- package/icons/IconState.js +58 -0
- package/icons/IconState.js.map +1 -0
- package/index.css +55 -0
- package/package.json +42 -0
- package/types.d.ts +84 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2018-2021 bluefox <dogafox@gmail.com>
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
**/
|
|
7
|
+
|
|
8
|
+
.logo-background-light, .logo-background-colored {
|
|
9
|
+
background: white;
|
|
10
|
+
}
|
|
11
|
+
.logo-background-dark, .logo-background-blue {
|
|
12
|
+
background: black;
|
|
13
|
+
}
|
|
14
|
+
.logo-div {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 50%;
|
|
17
|
+
left: 50%;
|
|
18
|
+
-ms-transform: translateX(-50%) translateY(-50%);
|
|
19
|
+
-webkit-transform: translate(-50%,-50%);
|
|
20
|
+
transform: translate(-50%,-50%);
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
z-index: 2;
|
|
24
|
+
}
|
|
25
|
+
.logo-border {
|
|
26
|
+
/*border-color: #164477;*/
|
|
27
|
+
border-top-color: #3399CC;
|
|
28
|
+
border-left-color: #164477;
|
|
29
|
+
border-bottom-color: #164477;
|
|
30
|
+
border-right-color: #164477;
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
border-style: solid;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
position: absolute;
|
|
37
|
+
}
|
|
38
|
+
.logo-top {
|
|
39
|
+
position: absolute;
|
|
40
|
+
width: 4.5%;
|
|
41
|
+
height: 16%;
|
|
42
|
+
top: 0;
|
|
43
|
+
z-index: 2;
|
|
44
|
+
}
|
|
45
|
+
.logo-i {
|
|
46
|
+
position: absolute;
|
|
47
|
+
width: 14.5%;
|
|
48
|
+
height: 60%;
|
|
49
|
+
top: 20%;
|
|
50
|
+
left: 42%;
|
|
51
|
+
background: #3399CC;
|
|
52
|
+
}
|
|
53
|
+
.logo-i-top {
|
|
54
|
+
position: absolute;
|
|
55
|
+
width: 14.5%;
|
|
56
|
+
height: 4%;
|
|
57
|
+
left: 42%;
|
|
58
|
+
background: #3399CC;
|
|
59
|
+
border-radius: 100%;
|
|
60
|
+
}
|
|
61
|
+
.logo-back {
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
z-index: 0;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
}
|
|
67
|
+
@keyframes logo-grow {
|
|
68
|
+
0% {
|
|
69
|
+
width: 230px;
|
|
70
|
+
height: 230px;
|
|
71
|
+
transform: translate(-50%,-50%) scale(1);
|
|
72
|
+
opacity: 1
|
|
73
|
+
}
|
|
74
|
+
99% {
|
|
75
|
+
width: 230px;
|
|
76
|
+
height: 230px;
|
|
77
|
+
transform: translate(-50%,-50%) scale(10);
|
|
78
|
+
opacity: 0;
|
|
79
|
+
}
|
|
80
|
+
100% {
|
|
81
|
+
width: 0;
|
|
82
|
+
height: 0;
|
|
83
|
+
opacity: 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
@keyframes logo-spin { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
|
|
87
|
+
@keyframes logo-color-inside-light {
|
|
88
|
+
0% {
|
|
89
|
+
background: #FEFEFE;
|
|
90
|
+
}
|
|
91
|
+
100% {
|
|
92
|
+
background: #3399CC;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
@keyframes logo-color-inside-dark {
|
|
96
|
+
0% {
|
|
97
|
+
background: #030303;
|
|
98
|
+
}
|
|
99
|
+
100% {
|
|
100
|
+
background: #3399CC;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
@keyframes logo-color-inside-colored {
|
|
104
|
+
0% {
|
|
105
|
+
background: #FEFEFE;
|
|
106
|
+
}
|
|
107
|
+
100% {
|
|
108
|
+
background: #3399CC;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
@keyframes logo-color-inside-blue {
|
|
112
|
+
0% {
|
|
113
|
+
background: #030303;
|
|
114
|
+
}
|
|
115
|
+
100% {
|
|
116
|
+
background: #3399CC;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@keyframes logo-color-outside-light {
|
|
121
|
+
0% {
|
|
122
|
+
border-color: #FEFEFE;
|
|
123
|
+
}
|
|
124
|
+
100% {
|
|
125
|
+
border-top-color: #3399CC;
|
|
126
|
+
border-left-color: #164477;
|
|
127
|
+
border-bottom-color: #164477;
|
|
128
|
+
border-right-color: #164477;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
@keyframes logo-color-outside-dark {
|
|
132
|
+
0% {
|
|
133
|
+
border-color: #040404;
|
|
134
|
+
}
|
|
135
|
+
100% {
|
|
136
|
+
border-top-color: #3399CC;
|
|
137
|
+
border-left-color: #164477;
|
|
138
|
+
border-bottom-color: #164477;
|
|
139
|
+
border-right-color: #164477;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
@keyframes logo-color-outside-colored {
|
|
143
|
+
0% {
|
|
144
|
+
border-color: #FEFEFE;
|
|
145
|
+
}
|
|
146
|
+
100% {
|
|
147
|
+
border-top-color: #3399CC;
|
|
148
|
+
border-left-color: #164477;
|
|
149
|
+
border-bottom-color: #164477;
|
|
150
|
+
border-right-color: #164477;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
@keyframes logo-color-outside-blue {
|
|
154
|
+
0% {
|
|
155
|
+
border-color: #040404;
|
|
156
|
+
}
|
|
157
|
+
100% {
|
|
158
|
+
border-top-color: #3399CC;
|
|
159
|
+
border-left-color: #164477;
|
|
160
|
+
border-bottom-color: #164477;
|
|
161
|
+
border-right-color: #164477;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.logo-animate-wait {
|
|
166
|
+
animation: logo-color-outside 1.5s, logo-spin 1.5s linear infinite;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.logo-animate-grow-light {
|
|
170
|
+
background: #DDD;
|
|
171
|
+
}
|
|
172
|
+
.logo-animate-grow-dark {
|
|
173
|
+
background: #1d1d1d;
|
|
174
|
+
}
|
|
175
|
+
.logo-animate-grow-colored {
|
|
176
|
+
background: #DDD;
|
|
177
|
+
}
|
|
178
|
+
.logo-animate-grow-blue {
|
|
179
|
+
background: #1d1d1d;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.logo-animate-grow {
|
|
183
|
+
display: inline-block;
|
|
184
|
+
text-align: center;
|
|
185
|
+
z-index: 1;
|
|
186
|
+
top: 50%;
|
|
187
|
+
left: 50%;
|
|
188
|
+
-ms-transform: translateX(-50%) translateY(-50%);
|
|
189
|
+
-webkit-transform: translate(-50%,-50%);
|
|
190
|
+
transform: translate(-50%,-50%);
|
|
191
|
+
width: 245px;
|
|
192
|
+
height: 245px;
|
|
193
|
+
border-radius: 50%;
|
|
194
|
+
position: absolute;
|
|
195
|
+
animation: logo-grow 1s 1 ease forwards;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.logo-animate-color-inside-light {
|
|
199
|
+
animation: logo-color-inside-light 2.5s;
|
|
200
|
+
}
|
|
201
|
+
.logo-animate-color-inside-dark {
|
|
202
|
+
animation: logo-color-inside-dark 2.5s;
|
|
203
|
+
}
|
|
204
|
+
.logo-animate-color-inside-colored {
|
|
205
|
+
animation: logo-color-inside-colored 2.5s;
|
|
206
|
+
}
|
|
207
|
+
.logo-animate-color-inside-blue {
|
|
208
|
+
animation: logo-color-inside-blue 2.5s;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.logo-animate-color-outside-light {
|
|
212
|
+
animation: logo-color-outside-light 1.5s;
|
|
213
|
+
}
|
|
214
|
+
.logo-animate-color-outside-dark {
|
|
215
|
+
animation: logo-color-outside-dark 1.5s;
|
|
216
|
+
}
|
|
217
|
+
.logo-animate-color-outside-colored {
|
|
218
|
+
animation: logo-color-outside-colored 1.5s;
|
|
219
|
+
}
|
|
220
|
+
.logo-animate-color-outside-blue {
|
|
221
|
+
animation: logo-color-outside-blue 1.5s;
|
|
222
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Translator, Width } from '../types';
|
|
2
|
+
import Connection from '../Connection';
|
|
3
|
+
import Router from './Router';
|
|
4
|
+
|
|
5
|
+
export interface FileBrowserProps {
|
|
6
|
+
/** The key to identify this component. */
|
|
7
|
+
key?: string;
|
|
8
|
+
/** Additional styling for this component. */
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
/** The CSS class name. */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Translation function. */
|
|
13
|
+
t: Translator;
|
|
14
|
+
/** The selected language. */
|
|
15
|
+
lang: ioBroker.Languages;
|
|
16
|
+
/** The socket connection. */
|
|
17
|
+
socket: Connection;
|
|
18
|
+
/** Is the component data ready. */
|
|
19
|
+
ready?: boolean;
|
|
20
|
+
/** Is expert mode enabled? (default: false) */
|
|
21
|
+
expertMode?: boolean;
|
|
22
|
+
/** Show the toolbar? (default: false) */
|
|
23
|
+
showToolbar?: boolean;
|
|
24
|
+
/** Allow upload of new files? (default: false) */
|
|
25
|
+
allowUpload?: boolean;
|
|
26
|
+
/** Allow download of files? (default: false) */
|
|
27
|
+
allowDownload?: boolean;
|
|
28
|
+
/** Allow creation of new folders? (default: false) */
|
|
29
|
+
allowCreateFolder?: boolean;
|
|
30
|
+
/** Allow deleting files? (default: false) */
|
|
31
|
+
allowDelete?: boolean;
|
|
32
|
+
/** Allow viewing files? (default: false) */
|
|
33
|
+
allowView?: boolean;
|
|
34
|
+
/** Prefix (default: '.') */
|
|
35
|
+
imagePrefix?: string;
|
|
36
|
+
/** Show the expert button? */
|
|
37
|
+
showExpertButton?: boolean;
|
|
38
|
+
/** Type of view */
|
|
39
|
+
viewType?: 'Table' | 'Tile';
|
|
40
|
+
/** Show the buttons to switch the view from table to tile? (default: false) */
|
|
41
|
+
showViewTypeButton?: boolean;
|
|
42
|
+
/** The ID of the selected file. */
|
|
43
|
+
selected?: string;
|
|
44
|
+
/** The file extensions to show, like ['png', 'svg', 'bmp', 'jpg', 'jpeg']. */
|
|
45
|
+
filterFiles?: string[];
|
|
46
|
+
/** The file extension categories to show. */
|
|
47
|
+
filterByType?: 'images' | 'code' | 'txt';
|
|
48
|
+
/** Callback for file selection. */
|
|
49
|
+
onSelect?: (id: string, isDoubleClick?: boolean) => void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface ObjectBrowserTableFilter {
|
|
53
|
+
id?: string;
|
|
54
|
+
name?: string;
|
|
55
|
+
room?: string;
|
|
56
|
+
func?: string;
|
|
57
|
+
role?: string;
|
|
58
|
+
expertMode?: boolean;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type ObjectBrowserColumn = 'name' | 'type' | 'role' | 'room' | 'func' | 'val' | 'buttons';
|
|
62
|
+
|
|
63
|
+
export interface ObjectBrowserCustomFilter {
|
|
64
|
+
type: string;
|
|
65
|
+
common: { custom: string | boolean; };
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type ObjectBrowserType = 'state' | 'instance' | 'channel';
|
|
69
|
+
|
|
70
|
+
export interface ObjectBrowserProps {
|
|
71
|
+
/** The title of the dialog. */
|
|
72
|
+
title: string;
|
|
73
|
+
/** The key to store state in the browser (default: 'App') */
|
|
74
|
+
key?: string;
|
|
75
|
+
/** The CSS classes. */
|
|
76
|
+
classes: Record<string, any>;
|
|
77
|
+
/** Default filters to be applied to the object table. */
|
|
78
|
+
defaultFilters?: ObjectBrowserTableFilter;
|
|
79
|
+
/** The selected ID or IDs. */
|
|
80
|
+
selected?: string | string[];
|
|
81
|
+
/** Callback when object is selected. */
|
|
82
|
+
onSelect?: (selectedItems: string[], name: string, isDouble?: boolean) => void;
|
|
83
|
+
/** The socket connection. */
|
|
84
|
+
socket: Connection;
|
|
85
|
+
/** Show the expert button? */
|
|
86
|
+
showExpertButton?: boolean;
|
|
87
|
+
/** Is expert mode enabled? (default: false) */
|
|
88
|
+
expertMode?: boolean;
|
|
89
|
+
/** Prefix (default: '.') */
|
|
90
|
+
imagePrefix?: string;
|
|
91
|
+
/** Theme name. */
|
|
92
|
+
themeName?: string;
|
|
93
|
+
/** Translation function. */
|
|
94
|
+
t: Translator;
|
|
95
|
+
/** The selected language. */
|
|
96
|
+
lang: ioBroker.Languages;
|
|
97
|
+
/** Allow to select multiple objects? (default: false) */
|
|
98
|
+
multiSelect?: boolean;
|
|
99
|
+
/** Can't objects be edited? (default: false) */
|
|
100
|
+
notEditable?: boolean;
|
|
101
|
+
/** Show folders first? (default: false) */
|
|
102
|
+
foldersFirst?: boolean;
|
|
103
|
+
/** Disable the column selector? (default: false) */
|
|
104
|
+
disableColumnSelector?: boolean;
|
|
105
|
+
/** The custom dialog React component to use */
|
|
106
|
+
objectCustomDialog?: any;
|
|
107
|
+
/** Custom filter. Optional {common: {custom: true}} or {common: {custom: 'sql.0'}} */
|
|
108
|
+
customFilter?: ObjectBrowserCustomFilter;
|
|
109
|
+
/** Custom value React component to use */
|
|
110
|
+
objectBrowserValue?: any;
|
|
111
|
+
/** Custom object editor React component to use */
|
|
112
|
+
objectBrowserEditObject?: any;
|
|
113
|
+
/** Router */
|
|
114
|
+
router?: Router<{}, {}>;
|
|
115
|
+
/** Object types to show */
|
|
116
|
+
types?: ObjectBrowserType[];
|
|
117
|
+
/** Columns to display */
|
|
118
|
+
columns?: ObjectBrowserColumn[];
|
|
119
|
+
/** The width of the dialog. */
|
|
120
|
+
width?: Width;
|
|
121
|
+
}
|