@iobroker/adapter-react-v5 7.4.22 → 7.5.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.
Files changed (119) hide show
  1. package/LICENSE +22 -22
  2. package/build/AdminConnection.js.map +1 -1
  3. package/build/Components/404.js +13 -13
  4. package/build/Components/404.js.map +1 -1
  5. package/build/Components/ColorPicker.js.map +1 -1
  6. package/build/Components/ComplexCron.js.map +1 -1
  7. package/build/Components/CopyToClipboard.js.map +1 -1
  8. package/build/Components/CustomModal.js.map +1 -1
  9. package/build/Components/FileBrowser.js +1 -1
  10. package/build/Components/FileBrowser.js.map +1 -1
  11. package/build/Components/FileViewer.js.map +1 -1
  12. package/build/Components/Icon.js.map +1 -1
  13. package/build/Components/IconPicker.js.map +1 -1
  14. package/build/Components/IconSelector.js.map +1 -1
  15. package/build/Components/IobUri.js.map +1 -1
  16. package/build/Components/Loader.js +223 -223
  17. package/build/Components/Loader.js.map +1 -1
  18. package/build/Components/Loaders/MV.js.map +1 -1
  19. package/build/Components/Loaders/PT.js +103 -103
  20. package/build/Components/Loaders/PT.js.map +1 -1
  21. package/build/Components/Loaders/Vendor.js +7 -7
  22. package/build/Components/Loaders/Vendor.js.map +1 -1
  23. package/build/Components/MDUtils.js.map +1 -1
  24. package/build/Components/ObjectBrowser.d.ts +25 -8
  25. package/build/Components/ObjectBrowser.js +46 -12
  26. package/build/Components/ObjectBrowser.js.map +1 -1
  27. package/build/Components/Router.js.map +1 -1
  28. package/build/Components/SaveCloseButtons.js.map +1 -1
  29. package/build/Components/Schedule.js.map +1 -1
  30. package/build/Components/SelectWithIcon.js.map +1 -1
  31. package/build/Components/SimpleCron/cronText.js.map +1 -1
  32. package/build/Components/SimpleCron/index.js.map +1 -1
  33. package/build/Components/TabContainer.js.map +1 -1
  34. package/build/Components/TabContent.js.map +1 -1
  35. package/build/Components/TabHeader.js.map +1 -1
  36. package/build/Components/TableResize.js.map +1 -1
  37. package/build/Components/TextWithIcon.js.map +1 -1
  38. package/build/Components/ToggleThemeMenu.js.map +1 -1
  39. package/build/Components/TreeTable.js.map +1 -1
  40. package/build/Components/UploadImage.js +305 -305
  41. package/build/Components/UploadImage.js.map +1 -1
  42. package/build/Components/withWidth.js.map +1 -1
  43. package/build/Connection.js.map +1 -1
  44. package/build/Dialogs/ComplexCron.js.map +1 -1
  45. package/build/Dialogs/Confirm.js.map +1 -1
  46. package/build/Dialogs/Cron.js.map +1 -1
  47. package/build/Dialogs/Error.js.map +1 -1
  48. package/build/Dialogs/Message.js.map +1 -1
  49. package/build/Dialogs/SelectFile.js.map +1 -1
  50. package/build/Dialogs/SelectID.d.ts +3 -0
  51. package/build/Dialogs/SelectID.js +17 -4
  52. package/build/Dialogs/SelectID.js.map +1 -1
  53. package/build/Dialogs/SimpleCron.js.map +1 -1
  54. package/build/Dialogs/TextInput.d.ts +1 -1
  55. package/build/Dialogs/TextInput.js.map +1 -1
  56. package/build/GenericApp.js.map +1 -1
  57. package/build/LegacyConnection.d.ts +4 -46
  58. package/build/LegacyConnection.js.map +1 -1
  59. package/build/Prompt.js +7 -7
  60. package/build/Prompt.js.map +1 -1
  61. package/build/assets/devices/parseNames.js.map +1 -1
  62. package/build/assets/devices.json +1 -1
  63. package/build/assets/lamp_ceiling.svg +8 -8
  64. package/build/assets/lamp_table.svg +7 -7
  65. package/build/assets/no_icon.svg +9 -9
  66. package/build/assets/rooms/parseNames.js.map +1 -1
  67. package/build/assets/rooms.json +1 -1
  68. package/build/dictionary.js.map +1 -1
  69. package/build/i18n/de.json +6 -0
  70. package/build/i18n/en.json +6 -0
  71. package/build/i18n/es.json +6 -0
  72. package/build/i18n/fr.json +6 -0
  73. package/build/i18n/it.json +6 -0
  74. package/build/i18n/nl.json +6 -0
  75. package/build/i18n/pl.json +6 -0
  76. package/build/i18n/pt.json +6 -0
  77. package/build/i18n/ru.json +6 -0
  78. package/build/i18n/uk.json +6 -0
  79. package/build/i18n/zh-cn.json +6 -0
  80. package/build/i18n.js.map +1 -1
  81. package/build/icons/IconAdapter.js.map +1 -1
  82. package/build/icons/IconAlias.js.map +1 -1
  83. package/build/icons/IconButtonImage.js.map +1 -1
  84. package/build/icons/IconChannel.js.map +1 -1
  85. package/build/icons/IconClearFilter.js.map +1 -1
  86. package/build/icons/IconClosed.js.map +1 -1
  87. package/build/icons/IconCopy.js.map +1 -1
  88. package/build/icons/IconDevice.js.map +1 -1
  89. package/build/icons/IconDocument.js.map +1 -1
  90. package/build/icons/IconDocumentReadOnly.js.map +1 -1
  91. package/build/icons/IconExpert.js.map +1 -1
  92. package/build/icons/IconFx.js +1 -1
  93. package/build/icons/IconFx.js.map +1 -1
  94. package/build/icons/IconInstance.js.map +1 -1
  95. package/build/icons/IconLogout.js +1 -1
  96. package/build/icons/IconLogout.js.map +1 -1
  97. package/build/icons/IconNoIcon.js.map +1 -1
  98. package/build/icons/IconOpen.js.map +1 -1
  99. package/build/icons/IconProps.js.map +1 -1
  100. package/build/icons/IconState.js.map +1 -1
  101. package/build/icons/IconVacuum.js.map +1 -1
  102. package/build/index.css +56 -56
  103. package/build/index.js.map +1 -1
  104. package/craco-module-federation.js +62 -62
  105. package/i18n/de.json +6 -0
  106. package/i18n/en.json +6 -0
  107. package/i18n/es.json +6 -0
  108. package/i18n/fr.json +6 -0
  109. package/i18n/it.json +6 -0
  110. package/i18n/nl.json +6 -0
  111. package/i18n/pl.json +6 -0
  112. package/i18n/pt.json +6 -0
  113. package/i18n/ru.json +6 -0
  114. package/i18n/uk.json +6 -0
  115. package/i18n/zh-cn.json +6 -0
  116. package/index.css +56 -56
  117. package/modulefederation.admin.config.js +33 -33
  118. package/package.json +4 -5
  119. package/tasksExample.js +91 -91
package/i18n/zh-cn.json CHANGED
@@ -46,6 +46,7 @@
46
46
  "ra_Configure visible columns": "配置可见列",
47
47
  "ra_Confirm deletion of %s": "确认删除%s",
48
48
  "ra_Connected": "连接的",
49
+ "ra_Continue": "继续",
49
50
  "ra_Copied": "复制的",
50
51
  "ra_Copied %s": "复制的\"%s\"",
51
52
  "ra_Copy content": "复制内容",
@@ -66,6 +67,7 @@
66
67
  "ra_Device → Channel → State": "设备→频道→状态",
67
68
  "ra_Discard": "丢弃",
68
69
  "ra_Disconnected": "断开连接",
70
+ "ra_Do not ask for next 2 hours in this session": "本次会话中不要询问接下来的 2 个小时",
69
71
  "ra_Do not export values of states": "不导出状态值",
70
72
  "ra_Do not use let's encrypt": "不要使用让我们加密",
71
73
  "ra_Double click to reset table layout": "双击重置表格布局",
@@ -76,6 +78,7 @@
76
78
  "ra_Edit ACL": "编辑访问控制列表",
77
79
  "ra_Edit alias": "编辑别名",
78
80
  "ra_Edit custom config": "编辑自定义配置",
81
+ "ra_Edit full path": "编辑完整路径",
79
82
  "ra_Edit function": "编辑功能",
80
83
  "ra_Edit object field": "编辑对象字段",
81
84
  "ra_Edit role": "编辑角色",
@@ -123,6 +126,7 @@
123
126
  "ra_License not found in license manager. Do you want to read licenses from iobroker.net?": "在许可证管理器中找不到许可证。您要从 iobroker.net 更新许可证吗?",
124
127
  "ra_Listen on all IPs": "监听所有IP",
125
128
  "ra_Load configuration from file": "从文件加载配置",
129
+ "ra_Logout": "登出",
126
130
  "ra_Longitude": "经度",
127
131
  "ra_May not trigger \"updateLicenses\"": "可能不会触发“updateLicenses”",
128
132
  "ra_Message": "信息",
@@ -158,6 +162,7 @@
158
162
  "ra_Quality code": "质量代码",
159
163
  "ra_Refresh tree": "刷新树",
160
164
  "ra_Reload files": "重新载入文件",
165
+ "ra_Rename_Move_Copy": "重命名/移动/复制",
161
166
  "ra_Repeat": "重复",
162
167
  "ra_Replace": "代替",
163
168
  "ra_Request timed out": "请求超时",
@@ -176,6 +181,7 @@
176
181
  "ra_Selected %s object(s)": "选定的 %s 个对象",
177
182
  "ra_Serial number (UUID)": "序列号 (UUID)",
178
183
  "ra_Serial number (UUID) \"%s\" in license is for other device.": "许可证中的序列号 (UUID)“%s”用于其他设备。",
184
+ "ra_Session will expire in %s seconds. Continue?": "会话将在 %s 秒后过期。是否继续?",
179
185
  "ra_Show all folders": "显示所有文件夹",
180
186
  "ra_Show lines between rows": "显示行之间的线",
181
187
  "ra_Show/Hide object descriptions": "显示/隐藏对象描述",
package/index.css CHANGED
@@ -1,56 +1,56 @@
1
- /**
2
- * Copyright 2018-2023 Denis Haev (bluefox) <dogafox@gmail.com>
3
- *
4
- * MIT License
5
- *
6
- **/
7
-
8
- html {
9
- height: 100%;
10
- }
11
-
12
- body {
13
- margin: 0;
14
- padding: 0;
15
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
16
- 'Droid Sans', 'Helvetica Neue', sans-serif;
17
- -webkit-font-smoothing: antialiased;
18
- -moz-osx-font-smoothing: grayscale;
19
- width: 100%;
20
- height: 100%;
21
- overflow: hidden;
22
- }
23
-
24
- /* scrollbar */
25
- ::-webkit-scrollbar-track {
26
- background-color: #ccc;
27
- border-radius: 5px;
28
- }
29
-
30
- ::-webkit-scrollbar {
31
- width: 5px;
32
- height: 5px;
33
- background-color: #ccc;
34
- }
35
-
36
- ::-webkit-scrollbar-thumb {
37
- background-color: #575757;
38
- border-radius: 5px;
39
- }
40
-
41
- #root {
42
- height: 100%;
43
- }
44
-
45
- .App {
46
- height: 100%;
47
- }
48
-
49
- @keyframes glow {
50
- from {
51
- background-color: initial;
52
- }
53
- to {
54
- background-color: #58c458;
55
- }
56
- }
1
+ /**
2
+ * Copyright 2018-2023 Denis Haev (bluefox) <dogafox@gmail.com>
3
+ *
4
+ * MIT License
5
+ *
6
+ **/
7
+
8
+ html {
9
+ height: 100%;
10
+ }
11
+
12
+ body {
13
+ margin: 0;
14
+ padding: 0;
15
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
16
+ 'Droid Sans', 'Helvetica Neue', sans-serif;
17
+ -webkit-font-smoothing: antialiased;
18
+ -moz-osx-font-smoothing: grayscale;
19
+ width: 100%;
20
+ height: 100%;
21
+ overflow: hidden;
22
+ }
23
+
24
+ /* scrollbar */
25
+ ::-webkit-scrollbar-track {
26
+ background-color: #ccc;
27
+ border-radius: 5px;
28
+ }
29
+
30
+ ::-webkit-scrollbar {
31
+ width: 5px;
32
+ height: 5px;
33
+ background-color: #ccc;
34
+ }
35
+
36
+ ::-webkit-scrollbar-thumb {
37
+ background-color: #575757;
38
+ border-radius: 5px;
39
+ }
40
+
41
+ #root {
42
+ height: 100%;
43
+ }
44
+
45
+ .App {
46
+ height: 100%;
47
+ }
48
+
49
+ @keyframes glow {
50
+ from {
51
+ background-color: initial;
52
+ }
53
+ to {
54
+ background-color: #58c458;
55
+ }
56
+ }
@@ -1,33 +1,33 @@
1
- function makeShared(pkgs) {
2
- const result = {};
3
- pkgs.forEach(packageName => {
4
- result[packageName] = {
5
- requiredVersion: '*',
6
- singleton: true,
7
- };
8
- });
9
- return result;
10
- }
11
-
12
- // Admin shares these modules for all components
13
- module.exports = {
14
- shared: makeShared([
15
- '@emotion/react',
16
- '@emotion/styled',
17
- '@iobroker/adapter-react-v5',
18
- '@iobroker/json-config',
19
- '@iobroker/dm-gui-components',
20
- '@mui/icons-material',
21
- '@mui/material',
22
- '@mui/x-date-pickers',
23
- 'date-fns/locale',
24
- 'leaflet',
25
- 'leaflet-geosearch',
26
- 'prop-types',
27
- 'react',
28
- 'react-ace',
29
- 'react-dom',
30
- 'react-dropzone',
31
- 'semver',
32
- ]),
33
- };
1
+ function makeShared(pkgs) {
2
+ const result = {};
3
+ pkgs.forEach(packageName => {
4
+ result[packageName] = {
5
+ requiredVersion: '*',
6
+ singleton: true,
7
+ };
8
+ });
9
+ return result;
10
+ }
11
+
12
+ // Admin shares these modules for all components
13
+ module.exports = {
14
+ shared: makeShared([
15
+ '@emotion/react',
16
+ '@emotion/styled',
17
+ '@iobroker/adapter-react-v5',
18
+ '@iobroker/json-config',
19
+ '@iobroker/dm-gui-components',
20
+ '@mui/icons-material',
21
+ '@mui/material',
22
+ '@mui/x-date-pickers',
23
+ 'date-fns/locale',
24
+ 'leaflet',
25
+ 'leaflet-geosearch',
26
+ 'prop-types',
27
+ 'react',
28
+ 'react-ace',
29
+ 'react-dom',
30
+ 'react-dropzone',
31
+ 'semver',
32
+ ]),
33
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "7.4.22",
3
+ "version": "7.5.1",
4
4
  "description": "React components to develop ioBroker interfaces with react.",
5
5
  "author": {
6
6
  "name": "bluefox",
@@ -59,7 +59,7 @@
59
59
  "@emotion/styled": "^11.14.0",
60
60
  "@iobroker/js-controller-common": "^7.0.6",
61
61
  "@iobroker/js-controller-common-db": "^7.0.6",
62
- "@iobroker/socket-client": "^4.0.1",
62
+ "@iobroker/socket-client": "4.0.21",
63
63
  "@iobroker/types": "^7.0.6",
64
64
  "@mui/icons-material": "^6.4.5",
65
65
  "@mui/material": "^6.4.5",
@@ -69,7 +69,7 @@
69
69
  "react-color": "^2.19.3",
70
70
  "react-colorful": "^5.6.1",
71
71
  "react-cropper": "^2.3.3",
72
- "react-dropzone": "^14.3.5",
72
+ "react-dropzone": "^14.3.6",
73
73
  "react-inlinesvg": "^4.2.0"
74
74
  },
75
75
  "devDependencies": {
@@ -86,6 +86,5 @@
86
86
  "ajv": "^8.17.1",
87
87
  "ts-node": "^10.9.2",
88
88
  "typescript": "^5.7.3"
89
- },
90
- "gitHead": "294088f7d04b508a3a1a90959299b7a107025585"
89
+ }
91
90
  }
package/tasksExample.js CHANGED
@@ -1,91 +1,91 @@
1
- /**
2
- * Copyright 2024 bluefox <dogafox@gmail.com>
3
- *
4
- * MIT License
5
- *
6
- */
7
- 'use strict';
8
-
9
- const fs = require('node:fs');
10
- const { deleteFoldersRecursive, npmInstall, buildReact, copyFiles } = require('@iobroker/build-tools');
11
-
12
- const SRC = 'src';
13
-
14
- function copyAllFiles() {
15
- deleteFoldersRecursive('admin', ['.png', '.json', 'i18n']);
16
-
17
- copyFiles(
18
- [
19
- `${SRC}/build/*`,
20
- `!${SRC}/build/index.html`,
21
- `!${SRC}/build/static/js/main.*.chunk.js`,
22
- `!${SRC}/build/static/media/*.svg`,
23
- `!${SRC}/build/static/media/*.txt`,
24
- `!${SRC}/build/i18n/*`,
25
- `!${SRC}/build/i18n`,
26
- ],
27
- 'admin',
28
- );
29
-
30
- copyFiles(`${SRC}/build/index.html`, 'admin');
31
-
32
- copyFiles(`${SRC}/build/static/js/main.*.chunk.js`, 'admin/static/js');
33
- }
34
-
35
- function clean() {
36
- deleteFoldersRecursive('admin', ['.png', '.json', 'i18n']);
37
- deleteFoldersRecursive(`${SRC}/build`);
38
- }
39
-
40
- function installNpmLocal() {
41
- if (fs.existsSync(`${SRC}/node_modules`)) {
42
- return Promise.resolve();
43
- }
44
- return npmInstall(`${__dirname.replace(/\\/g, '/')}/${SRC}/`);
45
- }
46
-
47
- function patchFiles() {
48
- if (fs.existsSync(`${__dirname}/admin/index.html`)) {
49
- let code = fs.readFileSync(`${__dirname}/admin/index.html`).toString('utf8');
50
- code = code.replace(
51
- /<script>var script=document\.createElement\("script"\).+?<\/script>/,
52
- `<script type="text/javascript" src="./../../lib/js/socket.io.js"></script>`,
53
- );
54
-
55
- fs.writeFileSync(`${__dirname}/admin/index.html`, code);
56
- }
57
- if (fs.existsSync(`${__dirname}/${SRC}/build/index.html`)) {
58
- let code = fs.readFileSync(`${__dirname}/${SRC}/build/index.html`).toString('utf8');
59
- code = code.replace(
60
- /<script>var script=document\.createElement\("script"\).+?<\/script>/,
61
- `<script type="text/javascript" src="./../../lib/js/socket.io.js"></script>`,
62
- );
63
-
64
- fs.writeFileSync(`${SRC}/build/index.html`, code);
65
- }
66
- }
67
-
68
- if (process.argv.find(arg => arg === '--0-clean')) {
69
- clean();
70
- } else if (process.argv.find(arg => arg === '--1-npm')) {
71
- npmInstall(`${__dirname.replace(/\\/g, '/')}/${SRC}/`).catch(e => {
72
- console.error(`Cannot install: ${e}`);
73
- process.exit(1);
74
- });
75
- } else if (process.argv.find(arg => arg === '--2-build')) {
76
- buildReact(SRC, { rootDir: __dirname }).catch(e => {
77
- console.error(`Cannot build: ${e}`);
78
- process.exit(1);
79
- });
80
- } else if (process.argv.find(arg => arg === '--3-copy')) {
81
- copyAllFiles();
82
- } else if (process.argv.find(arg => arg === '--4-patch')) {
83
- patchFiles();
84
- } else {
85
- clean();
86
-
87
- installNpmLocal()
88
- .then(() => buildReact(SRC, { rootDir: __dirname }))
89
- .then(() => copyAllFiles())
90
- .then(() => patchFiles());
91
- }
1
+ /**
2
+ * Copyright 2024 bluefox <dogafox@gmail.com>
3
+ *
4
+ * MIT License
5
+ *
6
+ */
7
+ 'use strict';
8
+
9
+ const fs = require('node:fs');
10
+ const { deleteFoldersRecursive, npmInstall, buildReact, copyFiles } = require('@iobroker/build-tools');
11
+
12
+ const SRC = 'src';
13
+
14
+ function copyAllFiles() {
15
+ deleteFoldersRecursive('admin', ['.png', '.json', 'i18n']);
16
+
17
+ copyFiles(
18
+ [
19
+ `${SRC}/build/*`,
20
+ `!${SRC}/build/index.html`,
21
+ `!${SRC}/build/static/js/main.*.chunk.js`,
22
+ `!${SRC}/build/static/media/*.svg`,
23
+ `!${SRC}/build/static/media/*.txt`,
24
+ `!${SRC}/build/i18n/*`,
25
+ `!${SRC}/build/i18n`,
26
+ ],
27
+ 'admin',
28
+ );
29
+
30
+ copyFiles(`${SRC}/build/index.html`, 'admin');
31
+
32
+ copyFiles(`${SRC}/build/static/js/main.*.chunk.js`, 'admin/static/js');
33
+ }
34
+
35
+ function clean() {
36
+ deleteFoldersRecursive('admin', ['.png', '.json', 'i18n']);
37
+ deleteFoldersRecursive(`${SRC}/build`);
38
+ }
39
+
40
+ function installNpmLocal() {
41
+ if (fs.existsSync(`${SRC}/node_modules`)) {
42
+ return Promise.resolve();
43
+ }
44
+ return npmInstall(`${__dirname.replace(/\\/g, '/')}/${SRC}/`);
45
+ }
46
+
47
+ function patchFiles() {
48
+ if (fs.existsSync(`${__dirname}/admin/index.html`)) {
49
+ let code = fs.readFileSync(`${__dirname}/admin/index.html`).toString('utf8');
50
+ code = code.replace(
51
+ /<script>var script=document\.createElement\("script"\).+?<\/script>/,
52
+ `<script type="text/javascript" src="./../../lib/js/socket.io.js"></script>`,
53
+ );
54
+
55
+ fs.writeFileSync(`${__dirname}/admin/index.html`, code);
56
+ }
57
+ if (fs.existsSync(`${__dirname}/${SRC}/build/index.html`)) {
58
+ let code = fs.readFileSync(`${__dirname}/${SRC}/build/index.html`).toString('utf8');
59
+ code = code.replace(
60
+ /<script>var script=document\.createElement\("script"\).+?<\/script>/,
61
+ `<script type="text/javascript" src="./../../lib/js/socket.io.js"></script>`,
62
+ );
63
+
64
+ fs.writeFileSync(`${SRC}/build/index.html`, code);
65
+ }
66
+ }
67
+
68
+ if (process.argv.find(arg => arg === '--0-clean')) {
69
+ clean();
70
+ } else if (process.argv.find(arg => arg === '--1-npm')) {
71
+ npmInstall(`${__dirname.replace(/\\/g, '/')}/${SRC}/`).catch(e => {
72
+ console.error(`Cannot install: ${e}`);
73
+ process.exit(1);
74
+ });
75
+ } else if (process.argv.find(arg => arg === '--2-build')) {
76
+ buildReact(SRC, { rootDir: __dirname }).catch(e => {
77
+ console.error(`Cannot build: ${e}`);
78
+ process.exit(1);
79
+ });
80
+ } else if (process.argv.find(arg => arg === '--3-copy')) {
81
+ copyAllFiles();
82
+ } else if (process.argv.find(arg => arg === '--4-patch')) {
83
+ patchFiles();
84
+ } else {
85
+ clean();
86
+
87
+ installNpmLocal()
88
+ .then(() => buildReact(SRC, { rootDir: __dirname }))
89
+ .then(() => copyAllFiles())
90
+ .then(() => patchFiles());
91
+ }