@iobroker/adapter-react-v5 7.2.3 → 7.2.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.
Files changed (375) hide show
  1. package/README.md +3 -3
  2. package/build/AdminConnection.d.ts +1 -0
  3. package/build/AdminConnection.js +2 -0
  4. package/build/AdminConnection.js.map +1 -0
  5. package/{src/Components/404.tsx → build/Components/404.js} +14 -39
  6. package/build/Components/404.js.map +1 -0
  7. package/{Components → build/Components}/ColorPicker.d.ts +2 -2
  8. package/{Components → build/Components}/ColorPicker.js +50 -65
  9. package/build/Components/ColorPicker.js.map +1 -0
  10. package/{Components → build/Components}/ComplexCron.d.ts +2 -2
  11. package/{Components → build/Components}/ComplexCron.js +43 -71
  12. package/build/Components/ComplexCron.js.map +1 -0
  13. package/{Components → build/Components}/CopyToClipboard.d.ts +1 -2
  14. package/{src/Components/CopyToClipboard.tsx → build/Components/CopyToClipboard.js} +20 -38
  15. package/build/Components/CopyToClipboard.js.map +1 -0
  16. package/{Components → build/Components}/CustomModal.d.ts +3 -3
  17. package/build/Components/CustomModal.js +60 -0
  18. package/build/Components/CustomModal.js.map +1 -0
  19. package/{Components → build/Components}/FileBrowser.d.ts +21 -21
  20. package/{Components → build/Components}/FileBrowser.js +253 -248
  21. package/build/Components/FileBrowser.js.map +1 -0
  22. package/build/Components/FileViewer.d.ts +48 -0
  23. package/build/Components/FileViewer.js +277 -0
  24. package/build/Components/FileViewer.js.map +1 -0
  25. package/{Components → build/Components}/Icon.d.ts +1 -1
  26. package/build/Components/Icon.js +140 -0
  27. package/build/Components/Icon.js.map +1 -0
  28. package/{Components → build/Components}/IconPicker.d.ts +2 -2
  29. package/build/Components/IconPicker.js +73 -0
  30. package/build/Components/IconPicker.js.map +1 -0
  31. package/{Components → build/Components}/IconSelector.d.ts +3 -3
  32. package/{Components → build/Components}/IconSelector.js +29 -57
  33. package/build/Components/IconSelector.js.map +1 -0
  34. package/{Components → build/Components}/Image.d.ts +2 -2
  35. package/{Components → build/Components}/Image.js +16 -22
  36. package/build/Components/Image.js.map +1 -0
  37. package/{Components → build/Components}/Loader.d.ts +2 -2
  38. package/{Components → build/Components}/Loader.js +15 -40
  39. package/build/Components/Loader.js.map +1 -0
  40. package/{Components → build/Components}/Loaders/MV.d.ts +2 -2
  41. package/build/Components/Loaders/MV.js +61 -0
  42. package/build/Components/Loaders/MV.js.map +1 -0
  43. package/{Components → build/Components}/Loaders/PT.d.ts +2 -2
  44. package/{Components → build/Components}/Loaders/PT.js +10 -35
  45. package/build/Components/Loaders/PT.js.map +1 -0
  46. package/{Components → build/Components}/Loaders/Vendor.d.ts +2 -2
  47. package/build/Components/Loaders/Vendor.js +52 -0
  48. package/build/Components/Loaders/Vendor.js.map +1 -0
  49. package/{Components → build/Components}/Logo.d.ts +2 -2
  50. package/build/Components/Logo.js +108 -0
  51. package/build/Components/Logo.js.map +1 -0
  52. package/{Components → build/Components}/MDUtils.d.ts +1 -2
  53. package/{Components → build/Components}/MDUtils.js +4 -9
  54. package/build/Components/MDUtils.js.map +1 -0
  55. package/{Components → build/Components}/ObjectBrowser.d.ts +7 -4
  56. package/{Components → build/Components}/ObjectBrowser.js +1183 -1133
  57. package/build/Components/ObjectBrowser.js.map +1 -0
  58. package/{Components → build/Components}/Router.d.ts +1 -2
  59. package/{Components → build/Components}/Router.js +6 -7
  60. package/build/Components/Router.js.map +1 -0
  61. package/{Components → build/Components}/SaveCloseButtons.d.ts +2 -2
  62. package/build/Components/SaveCloseButtons.js +65 -0
  63. package/build/Components/SaveCloseButtons.js.map +1 -0
  64. package/{Components → build/Components}/Schedule.d.ts +3 -3
  65. package/{Components → build/Components}/Schedule.js +246 -261
  66. package/build/Components/Schedule.js.map +1 -0
  67. package/{Components → build/Components}/SelectWithIcon.d.ts +2 -2
  68. package/build/Components/SelectWithIcon.js +135 -0
  69. package/build/Components/SelectWithIcon.js.map +1 -0
  70. package/build/Components/SimpleCron/cronText.js +15 -0
  71. package/build/Components/SimpleCron/cronText.js.map +1 -0
  72. package/{Components → build/Components}/SimpleCron/index.d.ts +2 -2
  73. package/{Components → build/Components}/SimpleCron/index.js +55 -56
  74. package/build/Components/SimpleCron/index.js.map +1 -0
  75. package/{Components → build/Components}/TabContainer.d.ts +2 -2
  76. package/build/Components/TabContainer.js +23 -0
  77. package/build/Components/TabContainer.js.map +1 -0
  78. package/{Components → build/Components}/TabContent.d.ts +3 -2
  79. package/build/Components/TabContent.js +20 -0
  80. package/build/Components/TabContent.js.map +1 -0
  81. package/build/Components/TabHeader.d.ts +6 -0
  82. package/build/Components/TabHeader.js +6 -0
  83. package/build/Components/TabHeader.js.map +1 -0
  84. package/{Components → build/Components}/TableResize.d.ts +2 -2
  85. package/{src/Components/TableResize.tsx → build/Components/TableResize.js} +64 -134
  86. package/build/Components/TableResize.js.map +1 -0
  87. package/{Components → build/Components}/TextWithIcon.d.ts +2 -2
  88. package/{src/Components/TextWithIcon.tsx → build/Components/TextWithIcon.js} +30 -75
  89. package/build/Components/TextWithIcon.js.map +1 -0
  90. package/{Components → build/Components}/ToggleThemeMenu.d.ts +1 -1
  91. package/build/Components/ToggleThemeMenu.js +13 -0
  92. package/build/Components/ToggleThemeMenu.js.map +1 -0
  93. package/{Components → build/Components}/TreeTable.d.ts +3 -3
  94. package/{Components → build/Components}/TreeTable.js +87 -99
  95. package/build/Components/TreeTable.js.map +1 -0
  96. package/{Components → build/Components}/UploadImage.d.ts +2 -2
  97. package/{Components → build/Components}/UploadImage.js +46 -69
  98. package/build/Components/UploadImage.js.map +1 -0
  99. package/{Components → build/Components}/Utils.d.ts +2 -2
  100. package/{Components → build/Components}/Utils.js +47 -60
  101. package/build/Components/Utils.js.map +1 -0
  102. package/build/Components/withWidth.d.ts +2 -0
  103. package/build/Components/withWidth.js +22 -0
  104. package/build/Components/withWidth.js.map +1 -0
  105. package/build/Connection.d.ts +1 -0
  106. package/build/Connection.js +2 -0
  107. package/build/Connection.js.map +1 -0
  108. package/{Dialogs → build/Dialogs}/ComplexCron.d.ts +2 -2
  109. package/build/Dialogs/ComplexCron.js +85 -0
  110. package/build/Dialogs/ComplexCron.js.map +1 -0
  111. package/{Dialogs → build/Dialogs}/Confirm.d.ts +2 -2
  112. package/build/Dialogs/Confirm.js +83 -0
  113. package/build/Dialogs/Confirm.js.map +1 -0
  114. package/{Dialogs → build/Dialogs}/Cron.d.ts +2 -2
  115. package/build/Dialogs/Cron.js +72 -0
  116. package/build/Dialogs/Cron.js.map +1 -0
  117. package/{Dialogs → build/Dialogs}/Error.d.ts +2 -2
  118. package/build/Dialogs/Error.js +27 -0
  119. package/build/Dialogs/Error.js.map +1 -0
  120. package/{Dialogs → build/Dialogs}/Message.d.ts +2 -2
  121. package/build/Dialogs/Message.js +29 -0
  122. package/build/Dialogs/Message.js.map +1 -0
  123. package/{Dialogs → build/Dialogs}/SelectFile.d.ts +2 -2
  124. package/build/Dialogs/SelectFile.js +116 -0
  125. package/build/Dialogs/SelectFile.js.map +1 -0
  126. package/{Dialogs → build/Dialogs}/SelectID.d.ts +3 -3
  127. package/{Dialogs → build/Dialogs}/SelectID.js +28 -53
  128. package/build/Dialogs/SelectID.js.map +1 -0
  129. package/{Dialogs → build/Dialogs}/SimpleCron.d.ts +2 -2
  130. package/build/Dialogs/SimpleCron.js +46 -0
  131. package/build/Dialogs/SimpleCron.js.map +1 -0
  132. package/build/Dialogs/TextInput.d.ts +2 -0
  133. package/build/Dialogs/TextInput.js +31 -0
  134. package/build/Dialogs/TextInput.js.map +1 -0
  135. package/{GenericApp.d.ts → build/GenericApp.d.ts} +2 -3
  136. package/{GenericApp.js → build/GenericApp.js} +162 -176
  137. package/build/GenericApp.js.map +1 -0
  138. package/{LegacyConnection.d.ts → build/LegacyConnection.d.ts} +69 -4
  139. package/{LegacyConnection.js → build/LegacyConnection.js} +106 -99
  140. package/build/LegacyConnection.js.map +1 -0
  141. package/{Prompt.d.ts → build/Prompt.d.ts} +1 -1
  142. package/{Prompt.js → build/Prompt.js} +3 -4
  143. package/build/Prompt.js.map +1 -0
  144. package/build/Theme.d.ts +5 -0
  145. package/{Theme.js → build/Theme.js} +37 -32
  146. package/build/Theme.js.map +1 -0
  147. package/build/assets/devices/parseNames.d.ts +0 -0
  148. package/build/assets/devices/parseNames.js +35 -0
  149. package/build/assets/devices/parseNames.js.map +1 -0
  150. package/build/assets/rooms/parseNames.d.ts +0 -0
  151. package/build/assets/rooms/parseNames.js +35 -0
  152. package/build/assets/rooms/parseNames.js.map +1 -0
  153. package/build/dictionary.d.ts +1 -0
  154. package/build/dictionary.js +25 -0
  155. package/build/dictionary.js.map +1 -0
  156. package/build/i18n/de.json +449 -0
  157. package/build/i18n/en.json +449 -0
  158. package/build/i18n/es.json +449 -0
  159. package/build/i18n/fr.json +449 -0
  160. package/build/i18n/it.json +449 -0
  161. package/build/i18n/nl.json +449 -0
  162. package/build/i18n/pl.json +449 -0
  163. package/build/i18n/pt.json +449 -0
  164. package/build/i18n/ru.json +449 -0
  165. package/build/i18n/uk.json +449 -0
  166. package/build/i18n/zh-cn.json +449 -0
  167. package/{i18n.d.ts → build/i18n.d.ts} +2 -2
  168. package/{i18n.js → build/i18n.js} +9 -11
  169. package/build/i18n.js.map +1 -0
  170. package/build/icons/IconAdapter.d.ts +3 -0
  171. package/build/icons/IconAdapter.js +6 -0
  172. package/build/icons/IconAdapter.js.map +1 -0
  173. package/build/icons/IconAlias.d.ts +3 -0
  174. package/build/icons/IconAlias.js +6 -0
  175. package/build/icons/IconAlias.js.map +1 -0
  176. package/build/icons/IconChannel.d.ts +3 -0
  177. package/build/icons/IconChannel.js +9 -0
  178. package/build/icons/IconChannel.js.map +1 -0
  179. package/build/icons/IconClearFilter.d.ts +3 -0
  180. package/build/icons/IconClearFilter.js +7 -0
  181. package/build/icons/IconClearFilter.js.map +1 -0
  182. package/build/icons/IconClosed.d.ts +3 -0
  183. package/build/icons/IconClosed.js +6 -0
  184. package/build/icons/IconClosed.js.map +1 -0
  185. package/build/icons/IconCopy.d.ts +3 -0
  186. package/build/icons/IconCopy.js +5 -0
  187. package/build/icons/IconCopy.js.map +1 -0
  188. package/build/icons/IconDevice.d.ts +3 -0
  189. package/build/icons/IconDevice.js +15 -0
  190. package/build/icons/IconDevice.js.map +1 -0
  191. package/build/icons/IconDocument.d.ts +3 -0
  192. package/build/icons/IconDocument.js +6 -0
  193. package/build/icons/IconDocument.js.map +1 -0
  194. package/build/icons/IconDocumentReadOnly.d.ts +3 -0
  195. package/build/icons/IconDocumentReadOnly.js +7 -0
  196. package/build/icons/IconDocumentReadOnly.js.map +1 -0
  197. package/build/icons/IconExpert.d.ts +3 -0
  198. package/build/icons/IconExpert.js +6 -0
  199. package/build/icons/IconExpert.js.map +1 -0
  200. package/build/icons/IconFx.d.ts +3 -0
  201. package/build/icons/IconFx.js +5 -0
  202. package/build/icons/IconFx.js.map +1 -0
  203. package/build/icons/IconInstance.d.ts +3 -0
  204. package/build/icons/IconInstance.js +6 -0
  205. package/build/icons/IconInstance.js.map +1 -0
  206. package/build/icons/IconLogout.d.ts +3 -0
  207. package/build/icons/IconLogout.js +6 -0
  208. package/build/icons/IconLogout.js.map +1 -0
  209. package/build/icons/IconNoIcon.d.ts +3 -0
  210. package/build/icons/IconNoIcon.js +5 -0
  211. package/build/icons/IconNoIcon.js.map +1 -0
  212. package/build/icons/IconOpen.d.ts +3 -0
  213. package/build/icons/IconOpen.js +6 -0
  214. package/build/icons/IconOpen.js.map +1 -0
  215. package/{icons → build/icons}/IconProps.d.ts +1 -1
  216. package/build/icons/IconProps.js +2 -0
  217. package/build/icons/IconProps.js.map +1 -0
  218. package/build/icons/IconState.d.ts +3 -0
  219. package/build/icons/IconState.js +6 -0
  220. package/build/icons/IconState.js.map +1 -0
  221. package/build/index.d.ts +67 -0
  222. package/build/index.js +67 -0
  223. package/build/index.js.map +1 -0
  224. package/{types.d.ts → build/types.d.ts} +1 -1
  225. package/package.json +84 -47
  226. package/AdminConnection.d.ts +0 -2
  227. package/AdminConnection.js +0 -4
  228. package/Components/404.js +0 -101
  229. package/Components/CopyToClipboard.js +0 -163
  230. package/Components/CustomModal.js +0 -88
  231. package/Components/FileViewer.d.ts +0 -10
  232. package/Components/FileViewer.js +0 -305
  233. package/Components/Icon.js +0 -148
  234. package/Components/IconPicker.js +0 -98
  235. package/Components/Loaders/MV.js +0 -66
  236. package/Components/Loaders/Vendor.js +0 -77
  237. package/Components/Logo.js +0 -117
  238. package/Components/SaveCloseButtons.js +0 -69
  239. package/Components/SelectWithIcon.js +0 -168
  240. package/Components/SimpleCron/cronText.js +0 -19
  241. package/Components/TabContainer.js +0 -25
  242. package/Components/TabContent.js +0 -21
  243. package/Components/TabHeader.d.ts +0 -6
  244. package/Components/TabHeader.js +0 -11
  245. package/Components/TableResize.js +0 -226
  246. package/Components/TextWithIcon.js +0 -119
  247. package/Components/ToggleThemeMenu.js +0 -18
  248. package/Components/withWidth.d.ts +0 -3
  249. package/Components/withWidth.js +0 -27
  250. package/Connection.d.ts +0 -3
  251. package/Connection.js +0 -8
  252. package/Dialogs/ComplexCron.js +0 -90
  253. package/Dialogs/Confirm.js +0 -111
  254. package/Dialogs/Cron.js +0 -100
  255. package/Dialogs/Error.js +0 -55
  256. package/Dialogs/Message.js +0 -57
  257. package/Dialogs/SelectFile.js +0 -119
  258. package/Dialogs/SimpleCron.js +0 -51
  259. package/Dialogs/TextInput.d.ts +0 -3
  260. package/Dialogs/TextInput.js +0 -35
  261. package/Theme.d.ts +0 -6
  262. package/i18n/de.json +0 -449
  263. package/i18n/en.json +0 -449
  264. package/i18n/es.json +0 -449
  265. package/i18n/fr.json +0 -449
  266. package/i18n/it.json +0 -449
  267. package/i18n/nl.json +0 -449
  268. package/i18n/pl.json +0 -449
  269. package/i18n/pt.json +0 -449
  270. package/i18n/ru.json +0 -449
  271. package/i18n/uk.json +0 -449
  272. package/i18n/zh-cn.json +0 -449
  273. package/icons/IconAdapter.d.ts +0 -4
  274. package/icons/IconAdapter.js +0 -10
  275. package/icons/IconAlias.d.ts +0 -4
  276. package/icons/IconAlias.js +0 -10
  277. package/icons/IconChannel.d.ts +0 -4
  278. package/icons/IconChannel.js +0 -13
  279. package/icons/IconClearFilter.d.ts +0 -4
  280. package/icons/IconClearFilter.js +0 -11
  281. package/icons/IconClosed.d.ts +0 -4
  282. package/icons/IconClosed.js +0 -10
  283. package/icons/IconCopy.d.ts +0 -4
  284. package/icons/IconCopy.js +0 -9
  285. package/icons/IconDevice.d.ts +0 -4
  286. package/icons/IconDevice.js +0 -19
  287. package/icons/IconDocument.d.ts +0 -4
  288. package/icons/IconDocument.js +0 -10
  289. package/icons/IconDocumentReadOnly.d.ts +0 -4
  290. package/icons/IconDocumentReadOnly.js +0 -11
  291. package/icons/IconExpert.d.ts +0 -4
  292. package/icons/IconExpert.js +0 -10
  293. package/icons/IconFx.d.ts +0 -4
  294. package/icons/IconFx.js +0 -9
  295. package/icons/IconInstance.d.ts +0 -4
  296. package/icons/IconInstance.js +0 -10
  297. package/icons/IconLogout.d.ts +0 -4
  298. package/icons/IconLogout.js +0 -10
  299. package/icons/IconNoIcon.d.ts +0 -4
  300. package/icons/IconNoIcon.js +0 -9
  301. package/icons/IconOpen.d.ts +0 -4
  302. package/icons/IconOpen.js +0 -10
  303. package/icons/IconProps.js +0 -2
  304. package/icons/IconState.d.ts +0 -4
  305. package/icons/IconState.js +0 -10
  306. package/index.d.ts +0 -128
  307. package/index.js +0 -215
  308. package/src/AdminConnection.tsx +0 -3
  309. package/src/Components/ColorPicker.tsx +0 -343
  310. package/src/Components/ComplexCron.tsx +0 -561
  311. package/src/Components/CustomModal.tsx +0 -170
  312. package/src/Components/FileBrowser.tsx +0 -2550
  313. package/src/Components/FileViewer.tsx +0 -412
  314. package/src/Components/Icon.tsx +0 -238
  315. package/src/Components/IconPicker.tsx +0 -165
  316. package/src/Components/IconSelector.tsx +0 -2220
  317. package/src/Components/Image.tsx +0 -193
  318. package/src/Components/Loader.tsx +0 -328
  319. package/src/Components/Logo.tsx +0 -176
  320. package/src/Components/MDUtils.tsx +0 -104
  321. package/src/Components/ObjectBrowser.tsx +0 -8935
  322. package/src/Components/Router.tsx +0 -90
  323. package/src/Components/SaveCloseButtons.tsx +0 -117
  324. package/src/Components/Schedule.tsx +0 -1995
  325. package/src/Components/SelectWithIcon.tsx +0 -239
  326. package/src/Components/TabContainer.tsx +0 -57
  327. package/src/Components/TabContent.tsx +0 -38
  328. package/src/Components/TabHeader.tsx +0 -20
  329. package/src/Components/ToggleThemeMenu.tsx +0 -52
  330. package/src/Components/TreeTable.tsx +0 -1002
  331. package/src/Components/UploadImage.tsx +0 -643
  332. package/src/Components/Utils.tsx +0 -1802
  333. package/src/Components/loader.css +0 -231
  334. package/src/Components/withWidth.tsx +0 -32
  335. package/src/Connection.tsx +0 -5
  336. package/src/Dialogs/ComplexCron.tsx +0 -163
  337. package/src/Dialogs/Confirm.tsx +0 -185
  338. package/src/Dialogs/Cron.tsx +0 -192
  339. package/src/Dialogs/Error.tsx +0 -67
  340. package/src/Dialogs/Message.tsx +0 -73
  341. package/src/Dialogs/SelectFile.tsx +0 -280
  342. package/src/Dialogs/SelectID.tsx +0 -310
  343. package/src/Dialogs/SimpleCron.tsx +0 -101
  344. package/src/Dialogs/TextInput.tsx +0 -99
  345. package/src/GenericApp.tsx +0 -1076
  346. package/src/LegacyConnection.tsx +0 -3720
  347. package/src/Prompt.tsx +0 -22
  348. package/src/Theme.tsx +0 -472
  349. package/src/icons/IconAdapter.tsx +0 -22
  350. package/src/icons/IconAlias.tsx +0 -22
  351. package/src/icons/IconChannel.tsx +0 -60
  352. package/src/icons/IconClearFilter.tsx +0 -24
  353. package/src/icons/IconClosed.tsx +0 -22
  354. package/src/icons/IconCopy.tsx +0 -21
  355. package/src/icons/IconDevice.tsx +0 -126
  356. package/src/icons/IconDocument.tsx +0 -22
  357. package/src/icons/IconDocumentReadOnly.tsx +0 -27
  358. package/src/icons/IconExpert.tsx +0 -26
  359. package/src/icons/IconFx.tsx +0 -38
  360. package/src/icons/IconInstance.tsx +0 -22
  361. package/src/icons/IconLogout.tsx +0 -32
  362. package/src/icons/IconNoIcon.tsx +0 -21
  363. package/src/icons/IconOpen.tsx +0 -22
  364. package/src/icons/IconProps.tsx +0 -16
  365. package/src/icons/IconState.tsx +0 -38
  366. package/src/index.css +0 -56
  367. /package/{Components → build/Components}/404.d.ts +0 -0
  368. /package/{Components → build/Components}/SimpleCron/cronText.d.ts +0 -0
  369. /package/{assets → build/assets}/devices.json +0 -0
  370. /package/{assets → build/assets}/lamp_ceiling.svg +0 -0
  371. /package/{assets → build/assets}/lamp_table.svg +0 -0
  372. /package/{assets → build/assets}/no_icon.svg +0 -0
  373. /package/{assets → build/assets}/rooms.json +0 -0
  374. /package/{index.css → build/index.css} +0 -0
  375. /package/{tasks.js → tasksExample.js} +0 -0
package/package.json CHANGED
@@ -1,48 +1,85 @@
1
1
  {
2
- "name": "@iobroker/adapter-react-v5",
3
- "version": "7.2.3",
4
- "description": "React classes to develop admin interfaces for ioBroker with react.",
5
- "author": {
6
- "name": "Denis Haev (bluefox)",
7
- "email": "dogafox@gmail.com"
8
- },
9
- "publishConfig": {
10
- "access": "public"
11
- },
12
- "scripts": {},
13
- "repository": {
14
- "type": "git",
15
- "url": "git+https://github.com/ioBroker/adapter-react-v5.git"
16
- },
17
- "module": "./index.js",
18
- "keywords": [
19
- "iobroker",
20
- "adapter",
21
- "iot"
22
- ],
23
- "license": "MIT",
24
- "bugs": {
25
- "url": "https://github.com/ioBroker/adapter-react-v5/issues"
26
- },
27
- "homepage": "https://github.com/ioBroker/adapter-react-v5#readme",
28
- "devDependencies": {},
29
- "dependencies": {
30
- "@emotion/react": "^11.13.3",
31
- "@emotion/styled": "^11.13.0",
32
- "@iobroker/socket-client": "^3.1.0",
33
- "@iobroker/types": "^6.0.11",
34
- "@iobroker/js-controller-common": "^6.0.11",
35
- "@iobroker/js-controller-common-db": "^6.0.11",
36
- "@mui/icons-material": "^6.1.1",
37
- "@mui/material": "^6.1.1",
38
- "@mui/x-date-pickers": "^7.18.0",
39
- "@sentry/browser": "^8.32.0",
40
- "cronstrue": "^2.50.0",
41
- "react-color": "^2.19.3",
42
- "react-colorful": "^5.6.1",
43
- "react-cropper": "^2.3.3",
44
- "react-dropzone": "^14.2.3",
45
- "react-icons": "^5.3.0",
46
- "react-inlinesvg": "^4.1.3"
47
- }
48
- }
2
+ "name": "@iobroker/adapter-react-v5",
3
+ "version": "7.2.6",
4
+ "description": "React components to develop ioBroker interfaces with react.",
5
+ "author": {
6
+ "name": "bluefox",
7
+ "email": "dogafox@gmail.com"
8
+ },
9
+ "scripts": {
10
+ "prepublishOnly": "npm run build",
11
+ "build:ts": "tsc -p tsconfig.build.json",
12
+ "build": "node tasks --0-clean && node tasks --2-copy && node tasks --3-patchReadme && npm run build:ts",
13
+ "release": "release-script --noPush --yes --lf",
14
+ "release-patch": "release-script patch --yes --lf",
15
+ "release-minor": "release-script minor --yes --lf",
16
+ "release-major": "release-script major --yes --lf",
17
+ "update-packages": "ncu --upgrade",
18
+ "0-clean": "node tasks --0-clean",
19
+ "1-build": "tsc -p tsconfig.build.json",
20
+ "2-copy": "node tasks --2-copy",
21
+ "3-patchReadme": "node tasks --3-patchReadme",
22
+ "npm": "npm i -f",
23
+ "lint": "eslint -c eslint.config.mjs src",
24
+ "test": "ts-node test/testSchema.ts"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/ioBroker/adapter-react-v5.git"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "main": "./build/index.js",
34
+ "types": "./build/index.d.ts",
35
+ "keywords": [
36
+ "iobroker",
37
+ "adapter",
38
+ "iot"
39
+ ],
40
+ "files": [
41
+ "build/",
42
+ "LICENSE",
43
+ "tasksExample.js",
44
+ "craco-module-federation.js",
45
+ "modulefederation.admin.config.js"
46
+ ],
47
+ "license": "MIT",
48
+ "bugs": {
49
+ "url": "https://github.com/ioBroker/iobroker.admin/issues"
50
+ },
51
+ "homepage": "https://github.com/ioBroker/iobroker.admin#readme",
52
+ "dependencies": {
53
+ "@iobroker/js-controller-common": "^6.0.11",
54
+ "@iobroker/js-controller-common-db": "^6.0.11",
55
+ "@iobroker/socket-client": "^3.1.1",
56
+ "@iobroker/types": "^6.0.11",
57
+ "@mui/icons-material": "^6.1.3",
58
+ "@mui/material": "^6.1.3",
59
+ "@mui/x-date-pickers": "^7.19.0",
60
+ "@sentry/browser": "^8.33.1",
61
+ "cronstrue": "^2.50.0",
62
+ "react-color": "^2.19.3",
63
+ "react-colorful": "^5.6.1",
64
+ "react-cropper": "^2.3.3",
65
+ "react-dropzone": "^14.2.9",
66
+ "react-icons": "^5.3.0",
67
+ "react-inlinesvg": "^4.1.3"
68
+ },
69
+ "devDependencies": {
70
+ "@babel/core": "^7.25.7",
71
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
72
+ "@babel/plugin-transform-runtime": "^7.25.7",
73
+ "@babel/preset-env": "^7.25.7",
74
+ "@babel/preset-flow": "^7.25.7",
75
+ "@babel/preset-react": "^7.25.7",
76
+ "@iobroker/eslint-config": "^0.1.6",
77
+ "@types/node": "^22.7.5",
78
+ "@types/react": "^18.3.11",
79
+ "@types/react-color": "^3.0.12",
80
+ "ajv": "^8.17.1",
81
+ "ts-node": "^10.9.2",
82
+ "typescript": "^5.6.3"
83
+ },
84
+ "gitHead": "620c68a361a27a72c11d4d3acb28ac7dee69f1b8"
85
+ }
@@ -1,2 +0,0 @@
1
- import { AdminConnection } from '@iobroker/socket-client';
2
- export default AdminConnection;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const socket_client_1 = require("@iobroker/socket-client");
4
- exports.default = socket_client_1.AdminConnection;
package/Components/404.js DELETED
@@ -1,101 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const material_1 = require("@mui/material");
8
- /*
9
- Copyright 2019 Robin Selmer
10
- https://codepen.io/robinselmer/pen/vJjbOZ
11
- */
12
- const i18n_1 = __importDefault(require("../i18n"));
13
- const styles = {
14
- content: {
15
- background: 'black',
16
- position: 'absolute',
17
- top: 0,
18
- bottom: 0,
19
- left: 0,
20
- right: 0,
21
- },
22
- root: {
23
- boxSizing: 'border-box',
24
- height: '100%',
25
- width: '100%',
26
- backgroundColor: '#000000',
27
- backgroundImage: 'radial-gradient(#104254 , #05181c)',
28
- fontFamily: "'Inconsolata', Helvetica, sans-serif",
29
- fontSize: '1.5rem',
30
- color: 'rgba(128, 175, 255, 0.8)',
31
- textShadow: `0 0 1ex rgba(51, 70, 255, 1),
32
- 0 0 2px rgba(255, 255, 255, 0.8)`,
33
- },
34
- overlay: {
35
- pointerEvents: 'none',
36
- width: '100%',
37
- height: '100%',
38
- background: `repeating-linear-gradient(
39
- 180deg,
40
- rgba(0, 0, 0, 0) 0,
41
- rgba(0, 0, 0, 0.3) 50%,
42
- rgba(0, 0, 0, 0) 100%)`,
43
- backgroundSize: 'auto 4px',
44
- zIndex: 99,
45
- '&::before': {
46
- content: '""',
47
- pointerEvents: 'none',
48
- position: 'absolute',
49
- display: 'block',
50
- top: 0,
51
- left: 0,
52
- right: 0,
53
- bottom: 0,
54
- width: '100%',
55
- height: '100%',
56
- backgroundImage: `linear-gradient(
57
- 0deg,
58
- transparent 0%,
59
- rgba(32, 50, 128, 0.2) 2%,
60
- rgba(32, 50, 128, 0.8) 3%,
61
- rgba(32, 50, 128, 0.2) 3%,
62
- transparent 100%)`,
63
- backgroundRepeat: 'no-repeat',
64
- animation: 'scan 7.5s linear 0s infinite',
65
- },
66
- },
67
- terminal: {
68
- boxSizing: 'inherit',
69
- position: 'absolute',
70
- height: '100%',
71
- width: 'calc(100% - 8rem)',
72
- maxWidth: '100%',
73
- padding: '4rem',
74
- textTransform: 'uppercase',
75
- },
76
- output: {
77
- color: 'rgba(128, 175, 255, 0.8)',
78
- textShadow: `
79
- 0 0 1px rgba(51, 70, 255, 0.4),
80
- 0 0 2px rgba(255, 255, 255, 0.8)`,
81
- '&::before': {
82
- content: '"> "',
83
- },
84
- },
85
- errorCode: {
86
- color: 'white',
87
- },
88
- };
89
- /** Generates the 404 error page */
90
- function Page404() {
91
- return (react_1.default.createElement("div", { style: styles.content },
92
- react_1.default.createElement("div", { style: styles.root },
93
- react_1.default.createElement(material_1.Box, { component: "div", sx: styles.overlay },
94
- react_1.default.createElement("div", { style: styles.terminal },
95
- react_1.default.createElement("h1", null,
96
- i18n_1.default.t('ra_Error'),
97
- react_1.default.createElement("span", { style: styles.errorCode }, "404")),
98
- react_1.default.createElement(material_1.Box, { component: "p", sx: styles.output }, i18n_1.default.t('ra_The page you are looking for was not found')),
99
- react_1.default.createElement(material_1.Box, { component: "p", sx: styles.output }, i18n_1.default.t('ra_Good luck')))))));
100
- }
101
- exports.default = Page404;
@@ -1,163 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /*
4
- MIT License
5
-
6
- Copyright (c) 2017 sudodoki <smd.deluzion@gmail.com>
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in all
16
- copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
- SOFTWARE.
25
- */
26
- // https://github.com/sudodoki/toggle-selection/blob/gh-pages/index.js
27
- function deselectCurrent() {
28
- const selection = document.getSelection();
29
- if (!(selection === null || selection === void 0 ? void 0 : selection.rangeCount)) {
30
- return () => { };
31
- }
32
- let active = document.activeElement;
33
- const ranges = [];
34
- for (let i = 0; i < selection.rangeCount; i++) {
35
- ranges.push(selection.getRangeAt(i));
36
- }
37
- switch (active === null || active === void 0 ? void 0 : active.tagName.toUpperCase() // .toUpperCase handles XHTML
38
- ) {
39
- case 'INPUT':
40
- case 'TEXTAREA':
41
- active.blur();
42
- break;
43
- default:
44
- active = null;
45
- break;
46
- }
47
- selection.removeAllRanges();
48
- return () => {
49
- selection.type === 'Caret' && selection.removeAllRanges();
50
- if (!selection.rangeCount) {
51
- ranges.forEach(range => selection.addRange(range));
52
- }
53
- active && active.focus();
54
- };
55
- }
56
- // https://github.com/sudodoki/copy-to-clipboard/blob/master/index.js
57
- const clipboardToIE11Formatting = {
58
- 'text/plain': 'Text',
59
- 'text/html': 'Url',
60
- default: 'Text',
61
- };
62
- const defaultMessage = 'Copy to clipboard: #{key}, Enter';
63
- function format(message) {
64
- const copyKey = `${/mac os x/i.test(navigator.userAgent) ? '⌘' : 'Ctrl'}+C`;
65
- return message.replace(/#{\s*key\s*}/g, copyKey);
66
- }
67
- /**
68
- * Copy text to clipboard
69
- *
70
- * @param text Text to copy
71
- * @param options Options
72
- * @param options.debug Debug mode
73
- * @param options.format Format of the data
74
- * @param options.message Message to show in prompt
75
- */
76
- function copy(text, options) {
77
- let reselectPrevious;
78
- let range;
79
- let selection;
80
- let mark;
81
- let success = false;
82
- options = options || {};
83
- const debug = options.debug || false;
84
- try {
85
- reselectPrevious = deselectCurrent();
86
- range = document.createRange();
87
- selection = document.getSelection();
88
- mark = document.createElement('span');
89
- mark.textContent = text;
90
- // avoid screen readers from reading out loud the text
91
- mark.ariaHidden = 'true';
92
- // reset user styles for span element
93
- mark.style.all = 'unset';
94
- // prevents scrolling to the end of the page
95
- mark.style.position = 'fixed';
96
- mark.style.top = '0px';
97
- mark.style.clip = 'rect(0, 0, 0, 0)';
98
- // used to preserve spaces and line breaks
99
- mark.style.whiteSpace = 'pre';
100
- // do not inherit user-select (it may be `none`)
101
- mark.style.userSelect = 'text';
102
- mark.addEventListener('copy', e => {
103
- var _a, _b, _c, _d;
104
- e.stopPropagation();
105
- if (options === null || options === void 0 ? void 0 : options.format) {
106
- e.preventDefault();
107
- if (typeof e.clipboardData === 'undefined') {
108
- // IE 11
109
- debug && console.warn('unable to use e.clipboardData');
110
- debug && console.warn('trying IE specific stuff');
111
- (_a = window.clipboardData) === null || _a === void 0 ? void 0 : _a.clearData();
112
- const _format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting.default;
113
- (_b = window.clipboardData) === null || _b === void 0 ? void 0 : _b.setData(_format, text);
114
- }
115
- else {
116
- // all other browsers
117
- (_c = e.clipboardData) === null || _c === void 0 ? void 0 : _c.clearData();
118
- (_d = e.clipboardData) === null || _d === void 0 ? void 0 : _d.setData(options.format, text);
119
- }
120
- }
121
- });
122
- document.body.appendChild(mark);
123
- range.selectNodeContents(mark);
124
- selection === null || selection === void 0 ? void 0 : selection.addRange(range);
125
- // there is no alternative for execCommand
126
- const successful = document.execCommand('copy');
127
- if (!successful) {
128
- throw new Error('copy command was unsuccessful');
129
- }
130
- success = true;
131
- }
132
- catch (err) {
133
- debug && console.error('unable to copy using execCommand: ', err);
134
- debug && console.warn('trying IE specific stuff');
135
- try {
136
- window.clipboardData.setData(options.format || 'text', text);
137
- // options.onCopy && options.onCopy((window as any).clipboardData);
138
- success = true;
139
- }
140
- catch (error) {
141
- debug && console.error('unable to copy using clipboardData: ', error);
142
- debug && console.error('falling back to prompt');
143
- const message = format('message' in options ? options.message || '' : defaultMessage);
144
- window.prompt(message, text);
145
- }
146
- }
147
- finally {
148
- if (selection) {
149
- if (range && typeof selection.removeRange === 'function') {
150
- selection.removeRange(range);
151
- }
152
- else {
153
- selection.removeAllRanges();
154
- }
155
- }
156
- if (mark) {
157
- document.body.removeChild(mark);
158
- }
159
- reselectPrevious && reselectPrevious();
160
- }
161
- return success;
162
- }
163
- exports.default = copy;
@@ -1,88 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- const react_1 = __importStar(require("react"));
30
- const material_1 = require("@mui/material");
31
- const icons_material_1 = require("@mui/icons-material");
32
- const i18n_1 = __importDefault(require("../i18n"));
33
- const Utils_1 = __importDefault(require("./Utils"));
34
- const styles = {
35
- modalDialog: {
36
- minWidth: 400,
37
- maxWidth: 800,
38
- },
39
- overflowHidden: {
40
- display: 'flex',
41
- overflow: 'hidden',
42
- },
43
- titleIcon: {
44
- marginRight: 5,
45
- },
46
- content: {
47
- fontSize: 16,
48
- },
49
- languageButton: {
50
- position: 'absolute',
51
- right: 8,
52
- top: 8,
53
- },
54
- languageButtonActive: (theme) => ({
55
- color: theme.palette.primary.main,
56
- }),
57
- };
58
- const CustomModal = (props) => {
59
- const { open, toggleTranslation, noTranslation, title, fullWidth, help, maxWidth, progress, icon, applyDisabled, applyButton, onClose, children, titleButtonApply, titleButtonClose, onApply, textInput, defaultValue, overflowHidden, } = props;
60
- const [value, setValue] = (0, react_1.useState)(defaultValue || '');
61
- (0, react_1.useEffect)(() => {
62
- setValue(defaultValue || '');
63
- }, [defaultValue]);
64
- let Icon = null;
65
- if (icon) {
66
- Icon = icon;
67
- }
68
- return (react_1.default.createElement(material_1.Dialog, { open: open, maxWidth: maxWidth || 'md', fullWidth: !!fullWidth, disableEscapeKeyDown: false, onClose: onClose, sx: { '& .MuiDialog-paper': styles.modalDialog } },
69
- title && (react_1.default.createElement(material_1.DialogTitle, null,
70
- icon ? react_1.default.createElement(Icon, { style: styles.titleIcon }) : null,
71
- title,
72
- i18n_1.default.getLanguage() !== 'en' && toggleTranslation ? (react_1.default.createElement(material_1.IconButton, { size: "large", sx: Utils_1.default.getStyle(props.theme, styles.languageButton, noTranslation && styles.languageButtonActive), onClick: () => toggleTranslation(), title: i18n_1.default.t('Disable/Enable translation') },
73
- react_1.default.createElement(icons_material_1.Language, null))) : null)),
74
- react_1.default.createElement(material_1.DialogContent, { style: Object.assign(Object.assign(Object.assign({}, styles.content), (overflowHidden ? styles.overflowHidden : undefined)), { paddingTop: 8 }) },
75
- textInput && (react_1.default.createElement(material_1.TextField
76
- // className={className}
77
- , {
78
- // className={className}
79
- autoComplete: "off", fullWidth: true, autoFocus: true, variant: "outlined", size: "medium",
80
- // rows={10}
81
- multiline: true, value: value, onChange: e => setValue(e.target.value) })),
82
- children,
83
- help ? react_1.default.createElement("div", null, help) : null),
84
- react_1.default.createElement(material_1.DialogActions, null,
85
- applyButton !== false && (react_1.default.createElement(material_1.Button, { startIcon: react_1.default.createElement(icons_material_1.Check, null), disabled: progress || (applyDisabled && defaultValue === value), onClick: () => onApply(textInput ? value : ''), variant: "contained", color: "primary" }, i18n_1.default.t(titleButtonApply || 'ra_Ok'))),
86
- react_1.default.createElement(material_1.Button, { color: "grey", onClick: onClose, disabled: progress, variant: "contained", startIcon: react_1.default.createElement(icons_material_1.Close, null) }, i18n_1.default.t(titleButtonClose || 'ra_Cancel')))));
87
- };
88
- exports.default = CustomModal;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export declare const EXTENSIONS: {
3
- images: string[];
4
- code: string[];
5
- txt: string[];
6
- audio: string[];
7
- video: string[];
8
- };
9
- declare const _default: (props: Record<string, any>) => React.JSX.Element;
10
- export default _default;