@iobroker/adapter-react-v5 4.2.1 → 4.3.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 (152) hide show
  1. package/AdminConnection.js.map +1 -1
  2. package/Components/404.js +11 -14
  3. package/Components/404.js.map +1 -1
  4. package/Components/ColorPicker.js +2 -2
  5. package/Components/ColorPicker.js.map +1 -1
  6. package/Components/ComplexCron.d.ts +1 -1
  7. package/Components/ComplexCron.js +40 -50
  8. package/Components/ComplexCron.js.map +1 -1
  9. package/Components/CustomModal.js +8 -12
  10. package/Components/CustomModal.js.map +1 -1
  11. package/Components/FileBrowser.js +3 -2
  12. package/Components/FileBrowser.js.map +1 -1
  13. package/Components/FileViewer.d.ts +0 -2
  14. package/Components/FileViewer.js +25 -35
  15. package/Components/FileViewer.js.map +1 -1
  16. package/Components/Icon.d.ts +0 -2
  17. package/Components/Icon.js +37 -46
  18. package/Components/Icon.js.map +1 -1
  19. package/Components/IconPicker.js +8 -10
  20. package/Components/IconPicker.js.map +1 -1
  21. package/Components/IconSelector.js +1830 -1841
  22. package/Components/IconSelector.js.map +1 -1
  23. package/Components/Image.js +18 -17
  24. package/Components/Image.js.map +1 -1
  25. package/Components/JsonConfigComponent/ConfigTable.js +357 -38
  26. package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
  27. package/Components/Loader.js +9 -9
  28. package/Components/Loader.js.map +1 -1
  29. package/Components/Loaders/PT.js +2 -2
  30. package/Components/Loaders/PT.js.map +1 -1
  31. package/Components/Loaders/Vendor.d.ts +0 -7
  32. package/Components/Loaders/Vendor.js +1 -4
  33. package/Components/Loaders/Vendor.js.map +1 -1
  34. package/Components/Logo.js +16 -18
  35. package/Components/Logo.js.map +1 -1
  36. package/Components/MDUtils.js +2 -3
  37. package/Components/MDUtils.js.map +1 -1
  38. package/Components/ObjectBrowser.d.ts +20 -6
  39. package/Components/ObjectBrowser.js +635 -610
  40. package/Components/ObjectBrowser.js.map +1 -1
  41. package/Components/Router.d.ts +1 -1
  42. package/Components/Router.js +6 -6
  43. package/Components/Router.js.map +1 -1
  44. package/Components/SaveCloseButtons.d.ts +0 -1
  45. package/Components/SaveCloseButtons.js +17 -17
  46. package/Components/SaveCloseButtons.js.map +1 -1
  47. package/Components/Schedule.d.ts +1 -1
  48. package/Components/Schedule.js +171 -162
  49. package/Components/Schedule.js.map +1 -1
  50. package/Components/SelectWithIcon.d.ts +1 -1
  51. package/Components/SelectWithIcon.js +12 -11
  52. package/Components/SelectWithIcon.js.map +1 -1
  53. package/Components/SimpleCron/cron2text.js +71 -74
  54. package/Components/SimpleCron/cron2text.js.map +1 -1
  55. package/Components/SimpleCron/cronText.js +1 -1
  56. package/Components/SimpleCron/cronText.js.map +1 -1
  57. package/Components/SimpleCron/index.d.ts +1 -1
  58. package/Components/SimpleCron/index.js +3 -4
  59. package/Components/SimpleCron/index.js.map +1 -1
  60. package/Components/SimpleCron/jquery.cron.locale.js +77 -74
  61. package/Components/SimpleCron/jquery.cron.locale.js.map +1 -1
  62. package/Components/TabContainer.js +6 -7
  63. package/Components/TabContainer.js.map +1 -1
  64. package/Components/TabContent.js +4 -4
  65. package/Components/TabContent.js.map +1 -1
  66. package/Components/TabHeader.js +2 -2
  67. package/Components/TabHeader.js.map +1 -1
  68. package/Components/TableResize.js +6 -6
  69. package/Components/TableResize.js.map +1 -1
  70. package/Components/TextWithIcon.js +6 -3
  71. package/Components/TextWithIcon.js.map +1 -1
  72. package/Components/ToggleThemeMenu.d.ts +1 -1
  73. package/Components/ToggleThemeMenu.js +5 -8
  74. package/Components/ToggleThemeMenu.js.map +1 -1
  75. package/Components/TreeTable.js +170 -201
  76. package/Components/TreeTable.js.map +1 -1
  77. package/Components/UploadImage.js +11 -12
  78. package/Components/UploadImage.js.map +1 -1
  79. package/Components/Utils.d.ts +14 -7
  80. package/Components/Utils.js +219 -202
  81. package/Components/Utils.js.map +1 -1
  82. package/Components/copy-to-clipboard.js +8 -9
  83. package/Components/copy-to-clipboard.js.map +1 -1
  84. package/Components/withWidth.js.map +1 -1
  85. package/Connection.js.map +1 -1
  86. package/Dialogs/ComplexCron.d.ts +1 -3
  87. package/Dialogs/ComplexCron.js +2 -4
  88. package/Dialogs/ComplexCron.js.map +1 -1
  89. package/Dialogs/Confirm.d.ts +1 -1
  90. package/Dialogs/Confirm.js +2 -2
  91. package/Dialogs/Confirm.js.map +1 -1
  92. package/Dialogs/Cron.d.ts +1 -2
  93. package/Dialogs/Cron.js +10 -17
  94. package/Dialogs/Cron.js.map +1 -1
  95. package/Dialogs/Error.d.ts +0 -1
  96. package/Dialogs/Error.js +10 -24
  97. package/Dialogs/Error.js.map +1 -1
  98. package/Dialogs/Message.js.map +1 -1
  99. package/Dialogs/SelectFile.js +2 -2
  100. package/Dialogs/SelectFile.js.map +1 -1
  101. package/Dialogs/SelectID.d.ts +0 -4
  102. package/Dialogs/SelectID.js +3 -7
  103. package/Dialogs/SelectID.js.map +1 -1
  104. package/Dialogs/SimpleCron.d.ts +1 -3
  105. package/Dialogs/SimpleCron.js +3 -5
  106. package/Dialogs/SimpleCron.js.map +1 -1
  107. package/Dialogs/TextInput.d.ts +0 -1
  108. package/Dialogs/TextInput.js +9 -17
  109. package/Dialogs/TextInput.js.map +1 -1
  110. package/GenericApp.js +39 -42
  111. package/GenericApp.js.map +1 -1
  112. package/LegacyConnection.d.ts +6 -6
  113. package/LegacyConnection.js +61 -63
  114. package/LegacyConnection.js.map +1 -1
  115. package/Prompt.js.map +1 -1
  116. package/README.md +19 -10
  117. package/Theme.js +1 -1
  118. package/Theme.js.map +1 -1
  119. package/assets/devices/parseNames.js +1 -1
  120. package/assets/rooms/parseNames.js +1 -1
  121. package/i18n/de.json +12 -1
  122. package/i18n/en.json +12 -1
  123. package/i18n/es.json +12 -1
  124. package/i18n/fr.json +12 -1
  125. package/i18n/it.json +12 -1
  126. package/i18n/nl.json +12 -1
  127. package/i18n/pl.json +12 -1
  128. package/i18n/pt.json +12 -1
  129. package/i18n/ru.json +12 -1
  130. package/i18n/uk.json +12 -1
  131. package/i18n/zh-cn.json +12 -1
  132. package/i18n.d.ts +1 -1
  133. package/i18n.js +20 -18
  134. package/i18n.js.map +1 -1
  135. package/icons/IconAdapter.js.map +1 -1
  136. package/icons/IconAlias.js.map +1 -1
  137. package/icons/IconChannel.js.map +1 -1
  138. package/icons/IconClearFilter.js.map +1 -1
  139. package/icons/IconClosed.js.map +1 -1
  140. package/icons/IconCopy.js.map +1 -1
  141. package/icons/IconDevice.js.map +1 -1
  142. package/icons/IconDocument.js.map +1 -1
  143. package/icons/IconDocumentReadOnly.js.map +1 -1
  144. package/icons/IconExpert.js.map +1 -1
  145. package/icons/IconFx.js.map +1 -1
  146. package/icons/IconInstance.js.map +1 -1
  147. package/icons/IconLogout.js.map +1 -1
  148. package/icons/IconNoIcon.js.map +1 -1
  149. package/icons/IconOpen.js.map +1 -1
  150. package/icons/IconState.js.map +1 -1
  151. package/index.js +0 -1
  152. package/package.json +7 -7
package/Prompt.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Prompt.js","names":["printPrompt","prompt","console","log","_default","exports"],"sources":["Prompt.js"],"sourcesContent":["\n/**\n * Print the ioBroker welcome screen to the developer console.\n */\nfunction printPrompt() {\n const prompt = `\n██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗ \n██║██╔═══██╗██╔══██╗██╔══██╗██╔═══██╗██║ ██╔╝██╔════╝██╔══██╗\n██║██║ ██║██████╔╝██████╔╝██║ ██║█████╔╝ █████╗ ██████╔╝\n██║██║ ██║██╔══██╗██╔══██╗██║ ██║██╔═██╗ ██╔══╝ ██╔══██╗\n██║╚██████╔╝██████╔╝██║ ██║╚██████╔╝██║ ██╗███████╗██║ ██║\n╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝\n`;\n\n console.log(prompt);\n console.log('Nice to see you here! :) Join our dev community here https://github.com/ioBroker/ioBroker or here https://github.com/iobroker-community-adapters');\n console.log('Help us to create open source project with reactJS!');\n console.log('See you :)');\n}\n\nexport default printPrompt;"],"mappings":";;;;;;AACA;AACA;AACA;AACA,SAASA,WAAWA,CAAA,EAAG;EACnB,IAAMC,MAAM,s8DAOf;EAEGC,OAAO,CAACC,GAAG,CAACF,MAAM,CAAC;EACnBC,OAAO,CAACC,GAAG,CAAC,kJAAkJ,CAAC;EAC/JD,OAAO,CAACC,GAAG,CAAC,qDAAqD,CAAC;EAClED,OAAO,CAACC,GAAG,CAAC,YAAY,CAAC;AAC7B;AAAC,IAAAC,QAAA,GAEcJ,WAAW;AAAAK,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"Prompt.js","names":["printPrompt","prompt","console","log","_default","exports"],"sources":["Prompt.js"],"sourcesContent":["/**\n * Print the ioBroker welcome screen to the developer console.\n */\nfunction printPrompt() {\n const prompt = `\n██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗ \n██║██╔═══██╗██╔══██╗██╔══██╗██╔═══██╗██║ ██╔╝██╔════╝██╔══██╗\n██║██║ ██║██████╔╝██████╔╝██║ ██║█████╔╝ █████╗ ██████╔╝\n██║██║ ██║██╔══██╗██╔══██╗██║ ██║██╔═██╗ ██╔══╝ ██╔══██╗\n██║╚██████╔╝██████╔╝██║ ██║╚██████╔╝██║ ██╗███████╗██║ ██║\n╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝\n`;\n\n console.log(prompt);\n console.log('Nice to see you here! :) Join our dev community here https://github.com/ioBroker/ioBroker or here https://github.com/iobroker-community-adapters');\n console.log('Help us to create open source project with reactJS!');\n console.log('See you :)');\n}\n\nexport default printPrompt;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA,SAASA,WAAWA,CAAA,EAAG;EACnB,IAAMC,MAAM,s8DAOf;EAEGC,OAAO,CAACC,GAAG,CAACF,MAAM,CAAC;EACnBC,OAAO,CAACC,GAAG,CAAC,kJAAkJ,CAAC;EAC/JD,OAAO,CAACC,GAAG,CAAC,qDAAqD,CAAC;EAClED,OAAO,CAACC,GAAG,CAAC,YAAY,CAAC;AAC7B;AAAC,IAAAC,QAAA,GAEcJ,WAAW;AAAAK,OAAA,cAAAD,QAAA"}
package/README.md CHANGED
@@ -120,7 +120,7 @@ class App extends GenericApp {
120
120
  }
121
121
  ```
122
122
 
123
- 4. Replace `index.js` with following code to support themes:
123
+ 4. Replace `index.js` with the following code to support themes:
124
124
  ```
125
125
  import React from 'react';
126
126
  import ReactDOM from 'react-dom';
@@ -166,7 +166,7 @@ class App extend GenericApp {
166
166
  }
167
167
  ```
168
168
 
169
- 6. The optional step to validate the data to be saved:
169
+ 6. The optional step is to validate the data to be saved:
170
170
  ```
171
171
  onPrepareSave(settings) {
172
172
  super.onPrepareSave(settings);
@@ -181,7 +181,7 @@ onPrepareSave(settings) {
181
181
  ## Components
182
182
 
183
183
  ### Connection.js
184
- This is a non-react class to provide the communication for socket connection with server.
184
+ This is a non-react class to provide the communication for socket connection with the server.
185
185
 
186
186
  ### GenericApp.js
187
187
 
@@ -592,7 +592,7 @@ class MyComponent {
592
592
  }
593
593
  ```
594
594
 
595
- ## List of adapters, that uses adapter-react
595
+ ## List of adapters that use adapter-react
596
596
  - Admin
597
597
  - iot
598
598
  - echarts
@@ -603,12 +603,12 @@ class MyComponent {
603
603
  - eventlist
604
604
 
605
605
  ## Usability
606
- In dialogs the OK button is first (on the left) and the cancel button is last (on the right)
606
+ In dialogs, the OK button is first (on the left) and the cancel button is last (on the right)
607
607
 
608
608
  ## Used icons
609
609
  This project uses icons from [Flaticon](https://www.flaticon.com/).
610
610
 
611
- ioBroker GmbH has a valid license for all of used icons.
611
+ ioBroker GmbH has a valid license for all the used icons.
612
612
  The icons may not be reused in other projects without the proper flaticon license or flaticon subscription.
613
613
 
614
614
  ## Migration from adapter-react to adapter-react-v5
@@ -661,6 +661,15 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
661
661
  -->
662
662
 
663
663
  ## Changelog
664
+ ### 4.3.1 (2023-07-27)
665
+ * (bluefox) Added translations
666
+
667
+ ### 4.3.0 (2023-07-19)
668
+ * (bluefox) Updated packages
669
+ * (bluefox) Added translations
670
+ * (bluefox) Synced object browser
671
+ * (bluefox) formatting
672
+
664
673
  ### 4.2.1 (2023-07-17)
665
674
  * (bluefox) Updated packages
666
675
  * (bluefox) Added translations
@@ -817,7 +826,7 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
817
826
  * (bluefox) Allowed to show select dialog with the expert mode enabled
818
827
 
819
828
  ### 3.1.19 (2022-07-08)
820
- * (bluefox) Allowed to extend translations for all languages together
829
+ * (bluefox) Allowed extending translations for all languages together
821
830
 
822
831
  ### 3.1.18 (2022-07-06)
823
832
  * (bluefox) Added translation
@@ -829,7 +838,7 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
829
838
  * (bluefox) Update object browser
830
839
 
831
840
  ### 3.1.15 (2022-06-27)
832
- * (bluefox) Allow to use spaces in name
841
+ * (bluefox) Allow using spaces in name
833
842
 
834
843
  ### 3.1.14 (2022-06-23)
835
844
  * (bluefox) Added translations
@@ -859,7 +868,7 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
859
868
  * (bluefox) Some german texts were corrected
860
869
 
861
870
  ### 3.0.17 (2022-06-03)
862
- * (bluefox) Allowed to call getAdapterInstances not for admin too
871
+ * (bluefox) Allowed calling getAdapterInstances not for admin too
863
872
 
864
873
  ### 3.0.15 (2022-06-01)
865
874
  * (bluefox) Updated JsonConfigComponent: password, table
@@ -909,7 +918,7 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
909
918
  * (bluefox) beta version
910
919
 
911
920
  ### 0.0.2 (2022-02-24)
912
- * (bluefox) try to publish first version
921
+ * (bluefox) try to publish a first version
913
922
 
914
923
  ### 0.0.1 (2022-02-24)
915
924
  * initial commit
package/Theme.js CHANGED
@@ -74,7 +74,7 @@ function getElevations(color, overlay) {
74
74
  }
75
75
  return elevations;
76
76
  }
77
- var buttonsPalette = function buttonsPalette(theme) {
77
+ var buttonsPalette = function buttonsPalette() {
78
78
  return {
79
79
  palette: {
80
80
  // mode: "dark",
package/Theme.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.js","names":["_styles","require","_colors","step","toInt","hex","rgb","r","g","b","length","parseInt","substr","toHex","int","concat","Math","round","toString","getElevation","color","overlayColor","elevation","overlay","getElevations","elevations","i","backgroundColor","buttonsPalette","theme","palette","grey","main","dark","buttonsTheme","components","MuiButton","variants","props","variant","style","getContrastText","text","primary","borderColor","mode","border","action","disabledBackground","alpha","hoverOpacity","Theme","type","name","background","paper","secondary","expert","overrides","MuiAppBar","colorDefault","MuiLink","root","textTransform","transition","orange","MuiPaper","disabled","toolbar","height","saveToolbar","button","borderRadius","createTheme","adaptV4Theme","_default","exports"],"sources":["Theme.js"],"sourcesContent":["import { createTheme, adaptV4Theme, alpha } from '@mui/material/styles';\n\nimport { orange, grey } from '@mui/material/colors';\n\nconst step = (16 - 5) / 23 / 100;\n\n/**\n * Convert hex color in the format '#rrggbb' or '#rgb' to an RGB object.\n * @param {string} hex\n * @returns {{r: number, g: number, b: number}}\n */\nfunction toInt(hex) {\n const rgb = {\n r: 0,\n g: 0,\n b: 0,\n };\n\n if (hex.length === 7) {\n rgb.r = parseInt(hex.substr(1, 2), 16);\n rgb.g = parseInt(hex.substr(3, 2), 16);\n rgb.b = parseInt(hex.substr(5, 2), 16);\n } else if (hex.length === 4) {\n const r = hex.substr(1, 1);\n const g = hex.substr(2, 1);\n const b = hex.substr(3, 1);\n\n rgb.r = parseInt(r + r, 16);\n rgb.g = parseInt(g + g, 16);\n rgb.b = parseInt(b + b, 16);\n }\n\n return rgb;\n}\n\n/**\n * Convert an RGB object to a hex color string in the format '#rrggbb'.\n * @param {{r: number, g: number, b: number}} int\n * @returns {string}\n */\nfunction toHex(int) {\n return `#${Math.round(int.r).toString(16)}${Math.round(int.g).toString(16)}${Math.round(int.b).toString(16)}`;\n}\n\n/**\n * @param {string} color color in the format '#rrggbb' or '#rgb'\n * @param {string} overlayColor overlay color in the format '#rrggbb' or '#rgb'\n * @param {number} elevation elevation as an integer starting with 1\n * @returns {string} the hex color string in the format '#rrggbb'\n */\nfunction getElevation(color, overlayColor, elevation) {\n const rgb = toInt(color);\n const overlay = toInt(overlayColor);\n\n rgb.r += overlay.r * (0.05 + step * (elevation - 1));\n rgb.g += overlay.g * (0.05 + step * (elevation - 1));\n rgb.b += overlay.b * (0.05 + step * (elevation - 1));\n\n return toHex(rgb);\n}\n\n/**\n * Get all 24 elevations of the given color and overlay.\n * @param {string} color color in the format '#rrggbb' or '#rgb'\n * @param {string} overlay overlay color in the format '#rrggbb' or '#rgb'\n * @returns {import('@mui/material/styles/withStyles').CSSProperties}\n */\nfunction getElevations(color, overlay) {\n /** @type {import('@mui/material/styles/withStyles').CSSProperties} */\n const elevations = {};\n\n for (let i = 1; i <= 24; i++) {\n elevations[`elevation${i}`] = {\n backgroundColor: getElevation(color, overlay, i),\n };\n }\n\n return elevations;\n}\n\nconst buttonsPalette = theme => ({\n palette: {\n // mode: \"dark\",\n grey: {\n main: grey[300],\n dark: grey[400],\n },\n },\n});\n\nconst buttonsTheme = theme => ({\n components: {\n MuiButton: {\n variants: [\n {\n props: {variant: 'contained', color: 'grey'},\n style: {\n color: theme.palette.getContrastText(theme.palette.grey[300]),\n },\n },\n {\n props: {variant: 'outlined', color: 'grey'},\n style: {\n color: theme.palette.text.primary,\n borderColor:\n theme.palette.mode === 'light'\n ? 'rgba(0, 0, 0, 0.23)'\n : 'rgba(255, 255, 255, 0.23)',\n '&.Mui-disabled': {\n border: `1px solid ${theme.palette.action.disabledBackground}`,\n },\n '&:hover': {\n borderColor:\n theme.palette.mode === 'light'\n ? 'rgba(0, 0, 0, 0.23)'\n : 'rgba(255, 255, 255, 0.23)',\n backgroundColor: alpha(\n theme.palette.text.primary,\n theme.palette.action.hoverOpacity,\n ),\n },\n },\n },\n {\n props: {color: 'grey', variant: 'text'},\n style: {\n color: 'black',\n '&:hover': {\n backgroundColor: alpha(\n theme.palette.text.primary,\n theme.palette.action.hoverOpacity,\n ),\n },\n },\n },\n ],\n },\n },\n});\n\n/**\n * The theme creation factory function.\n * @param {string} type\n * @returns {import('./types').Theme}\n */\nconst Theme = type => {\n let theme;\n if (type === 'dark') {\n theme = {\n name: type,\n palette: {\n mode: 'dark',\n background: {\n paper: '#121212',\n default: '#121212',\n },\n primary: {\n main: '#4dabf5',\n },\n secondary: {\n main: '#436a93',\n },\n expert: '#14bb00',\n text: {\n primary: '#ffffff',\n secondary: '#ffffff',\n },\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#272727',\n },\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[200],\n '&:hover': {\n color: orange[100],\n },\n },\n },\n MuiPaper: getElevations('#121212', '#fff'),\n },\n };\n } else if (type === 'blue') {\n theme = {\n name: type,\n palette: {\n mode: 'dark',\n background: {\n paper: '#151d21',\n default: '#151d21',\n },\n primary: {\n main: '#4dabf5',\n },\n secondary: {\n main: '#436a93',\n },\n expert: '#14bb00',\n text: {\n primary: '#ffffff',\n secondary: '#ffffff',\n },\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#2a3135',\n },\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[200],\n '&:hover': {\n color: orange[100],\n },\n },\n },\n MuiPaper: getElevations('#151d21', '#fff'),\n },\n };\n } else if (type === 'colored') {\n theme = {\n name: type,\n palette: {\n mode: 'light',\n primary: {\n main: '#3399CC',\n },\n secondary: {\n main: '#164477',\n },\n expert: '#96fc96',\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#3399CC',\n },\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300],\n },\n },\n },\n },\n };\n } else if (type === 'PT') {\n theme = {\n name: type,\n palette: {\n mode: 'light',\n primary: {\n main: '#0F99DE',\n },\n secondary: {\n main: '#88A536',\n },\n expert: '#BD1B24',\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#0F99DE',\n },\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300],\n },\n },\n },\n },\n };\n } else if (type === 'DX') {\n theme = {\n name: type,\n palette: {\n mode: 'light',\n primary: {\n main: '#F5F5F7',\n },\n secondary: {\n main: '#a9a9a9',\n },\n expert: '#BD1B24',\n text: {\n primary: '#007AFE',\n secondary: '#007AFE',\n disabled: '#007AFEAA',\n },\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#a9a9a9',\n },\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300],\n },\n },\n },\n },\n };\n } else {\n theme = {\n name: type,\n palette: {\n mode: 'light',\n primary: {\n main: '#3399CC',\n },\n secondary: {\n main: '#164477',\n },\n expert: '#14bb00',\n },\n overrides: {\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300],\n },\n },\n },\n },\n };\n }\n\n theme.toolbar = {\n height: 48,\n };\n\n // add save toolbar\n theme.saveToolbar = {\n background: theme.palette.primary.main,\n button: {\n borderRadius: 3,\n height: 32,\n },\n };\n\n theme.palette.grey = {\n main: grey[300],\n dark: grey[400],\n };\n\n theme = createTheme(adaptV4Theme(theme));\n\n return createTheme(theme, {\n components: {\n MuiButton: {\n variants: [\n {\n props: {variant: 'contained', color: 'grey'},\n style: {\n color: theme.palette.getContrastText(theme.palette.grey[300]),\n },\n },\n {\n props: {variant: 'outlined', color: 'grey'},\n style: {\n color: theme.palette.text.primary,\n borderColor:\n theme.palette.mode === 'light'\n ? 'rgba(0, 0, 0, 0.23)'\n : 'rgba(255, 255, 255, 0.23)',\n '&.Mui-disabled': {\n border: `1px solid ${theme.palette.action.disabledBackground}`,\n },\n '&:hover': {\n borderColor:\n theme.palette.mode === 'light'\n ? 'rgba(0, 0, 0, 0.23)'\n : 'rgba(255, 255, 255, 0.23)',\n backgroundColor: alpha(\n theme.palette.text.primary,\n theme.palette.action.hoverOpacity,\n ),\n },\n },\n },\n {\n props: {variant: 'text', color: 'grey'},\n style: {\n color: theme.palette.text.primary,\n '&:hover': {\n backgroundColor: alpha(\n theme.palette.text.primary,\n theme.palette.action.hoverOpacity,\n ),\n },\n },\n },\n ],\n },\n },\n });\n};\n\nexport default Theme;\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAME,IAAI,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,GAAG;;AAEhC;AACA;AACA;AACA;AACA;AACA,SAASC,KAAKA,CAACC,GAAG,EAAE;EAChB,IAAMC,GAAG,GAAG;IACRC,CAAC,EAAE,CAAC;IACJC,CAAC,EAAE,CAAC;IACJC,CAAC,EAAE;EACP,CAAC;EAED,IAAIJ,GAAG,CAACK,MAAM,KAAK,CAAC,EAAE;IAClBJ,GAAG,CAACC,CAAC,GAAGI,QAAQ,CAACN,GAAG,CAACO,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;IACtCN,GAAG,CAACE,CAAC,GAAGG,QAAQ,CAACN,GAAG,CAACO,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;IACtCN,GAAG,CAACG,CAAC,GAAGE,QAAQ,CAACN,GAAG,CAACO,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAC1C,CAAC,M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SAAS,EAAE;cACPJ,WAAW,EACPf,KAAK,CAACC,OAAO,CAACe,IAAI,KAAK,OAAO,GACxB,qBAAqB,GACrB,2BAA2B;cACrClB,eAAe,EAAE,IAAAsB,aAAK,EAClBpB,KAAK,CAACC,OAAO,CAACY,IAAI,CAACC,OAAO,EAC1Bd,KAAK,CAACC,OAAO,CAACiB,MAAM,CAACG,YACzB;YACJ;UACJ;QACJ,CAAC,EACD;UACIZ,KAAK,EAAE;YAACC,OAAO,EAAE,MAAM;YAAEnB,KAAK,EAAE;UAAM,CAAC;UACvCoB,KAAK,EAAE;YACHpB,KAAK,EAAES,KAAK,CAACC,OAAO,CAACY,IAAI,CAACC,OAAO;YACjC,SAAS,EAAE;cACPhB,eAAe,EAAE,IAAAsB,aAAK,EAClBpB,KAAK,CAACC,OAAO,CAACY,IAAI,CAACC,OAAO,EAC1Bd,KAAK,CAACC,OAAO,CAACiB,MAAM,CAACG,YACzB;YACJ;UACJ;QACJ,CAAC;MAET;IACJ;EACJ,CAAC,CAAC;AACN,CAAC;AAAC,IAAAyB,QAAA,GAEaxB,KAAK;AAAAyB,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"Theme.js","names":["_styles","require","_colors","step","toInt","hex","rgb","r","g","b","length","parseInt","substr","toHex","int","concat","Math","round","toString","getElevation","color","overlayColor","elevation","overlay","getElevations","elevations","i","backgroundColor","buttonsPalette","palette","grey","main","dark","buttonsTheme","theme","components","MuiButton","variants","props","variant","style","getContrastText","text","primary","borderColor","mode","border","action","disabledBackground","alpha","hoverOpacity","Theme","type","name","background","paper","secondary","expert","overrides","MuiAppBar","colorDefault","MuiLink","root","textTransform","transition","orange","MuiPaper","disabled","toolbar","height","saveToolbar","button","borderRadius","createTheme","adaptV4Theme","_default","exports"],"sources":["Theme.js"],"sourcesContent":["import { createTheme, adaptV4Theme, alpha } from '@mui/material/styles';\n\nimport { orange, grey } from '@mui/material/colors';\n\nconst step = (16 - 5) / 23 / 100;\n\n/**\n * Convert hex color in the format '#rrggbb' or '#rgb' to an RGB object.\n * @param {string} hex\n * @returns {{r: number, g: number, b: number}}\n */\nfunction toInt(hex) {\n const rgb = {\n r: 0,\n g: 0,\n b: 0,\n };\n\n if (hex.length === 7) {\n rgb.r = parseInt(hex.substr(1, 2), 16);\n rgb.g = parseInt(hex.substr(3, 2), 16);\n rgb.b = parseInt(hex.substr(5, 2), 16);\n } else if (hex.length === 4) {\n const r = hex.substr(1, 1);\n const g = hex.substr(2, 1);\n const b = hex.substr(3, 1);\n\n rgb.r = parseInt(r + r, 16);\n rgb.g = parseInt(g + g, 16);\n rgb.b = parseInt(b + b, 16);\n }\n\n return rgb;\n}\n\n/**\n * Convert an RGB object to a hex color string in the format '#rrggbb'.\n * @param {{r: number, g: number, b: number}} int\n * @returns {string}\n */\nfunction toHex(int) {\n return `#${Math.round(int.r).toString(16)}${Math.round(int.g).toString(16)}${Math.round(int.b).toString(16)}`;\n}\n\n/**\n * @param {string} color color in the format '#rrggbb' or '#rgb'\n * @param {string} overlayColor overlay color in the format '#rrggbb' or '#rgb'\n * @param {number} elevation elevation as an integer starting with 1\n * @returns {string} the hex color string in the format '#rrggbb'\n */\nfunction getElevation(color, overlayColor, elevation) {\n const rgb = toInt(color);\n const overlay = toInt(overlayColor);\n\n rgb.r += overlay.r * (0.05 + step * (elevation - 1));\n rgb.g += overlay.g * (0.05 + step * (elevation - 1));\n rgb.b += overlay.b * (0.05 + step * (elevation - 1));\n\n return toHex(rgb);\n}\n\n/**\n * Get all 24 elevations of the given color and overlay.\n * @param {string} color color in the format '#rrggbb' or '#rgb'\n * @param {string} overlay overlay color in the format '#rrggbb' or '#rgb'\n * @returns {import('@mui/material/styles/withStyles').CSSProperties}\n */\nfunction getElevations(color, overlay) {\n /** @type {import('@mui/material/styles/withStyles').CSSProperties} */\n const elevations = {};\n\n for (let i = 1; i <= 24; i++) {\n elevations[`elevation${i}`] = {\n backgroundColor: getElevation(color, overlay, i),\n };\n }\n\n return elevations;\n}\n\nconst buttonsPalette = () => ({\n palette: {\n // mode: \"dark\",\n grey: {\n main: grey[300],\n dark: grey[400],\n },\n },\n});\n\nconst buttonsTheme = theme => ({\n components: {\n MuiButton: {\n variants: [\n {\n props: { variant: 'contained', color: 'grey' },\n style: {\n color: theme.palette.getContrastText(theme.palette.grey[300]),\n },\n },\n {\n props: { variant: 'outlined', color: 'grey' },\n style: {\n color: theme.palette.text.primary,\n borderColor:\n theme.palette.mode === 'light'\n ? 'rgba(0, 0, 0, 0.23)'\n : 'rgba(255, 255, 255, 0.23)',\n '&.Mui-disabled': {\n border: `1px solid ${theme.palette.action.disabledBackground}`,\n },\n '&:hover': {\n borderColor:\n theme.palette.mode === 'light'\n ? 'rgba(0, 0, 0, 0.23)'\n : 'rgba(255, 255, 255, 0.23)',\n backgroundColor: alpha(\n theme.palette.text.primary,\n theme.palette.action.hoverOpacity,\n ),\n },\n },\n },\n {\n props: { color: 'grey', variant: 'text' },\n style: {\n color: 'black',\n '&:hover': {\n backgroundColor: alpha(\n theme.palette.text.primary,\n theme.palette.action.hoverOpacity,\n ),\n },\n },\n },\n ],\n },\n },\n});\n\n/**\n * The theme creation factory function.\n * @param {string} type\n * @returns {import('./types').Theme}\n */\nconst Theme = type => {\n let theme;\n if (type === 'dark') {\n theme = {\n name: type,\n palette: {\n mode: 'dark',\n background: {\n paper: '#121212',\n default: '#121212',\n },\n primary: {\n main: '#4dabf5',\n },\n secondary: {\n main: '#436a93',\n },\n expert: '#14bb00',\n text: {\n primary: '#ffffff',\n secondary: '#ffffff',\n },\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#272727',\n },\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[200],\n '&:hover': {\n color: orange[100],\n },\n },\n },\n MuiPaper: getElevations('#121212', '#fff'),\n },\n };\n } else if (type === 'blue') {\n theme = {\n name: type,\n palette: {\n mode: 'dark',\n background: {\n paper: '#151d21',\n default: '#151d21',\n },\n primary: {\n main: '#4dabf5',\n },\n secondary: {\n main: '#436a93',\n },\n expert: '#14bb00',\n text: {\n primary: '#ffffff',\n secondary: '#ffffff',\n },\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#2a3135',\n },\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[200],\n '&:hover': {\n color: orange[100],\n },\n },\n },\n MuiPaper: getElevations('#151d21', '#fff'),\n },\n };\n } else if (type === 'colored') {\n theme = {\n name: type,\n palette: {\n mode: 'light',\n primary: {\n main: '#3399CC',\n },\n secondary: {\n main: '#164477',\n },\n expert: '#96fc96',\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#3399CC',\n },\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300],\n },\n },\n },\n },\n };\n } else if (type === 'PT') {\n theme = {\n name: type,\n palette: {\n mode: 'light',\n primary: {\n main: '#0F99DE',\n },\n secondary: {\n main: '#88A536',\n },\n expert: '#BD1B24',\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#0F99DE',\n },\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300],\n },\n },\n },\n },\n };\n } else if (type === 'DX') {\n theme = {\n name: type,\n palette: {\n mode: 'light',\n primary: {\n main: '#F5F5F7',\n },\n secondary: {\n main: '#a9a9a9',\n },\n expert: '#BD1B24',\n text: {\n primary: '#007AFE',\n secondary: '#007AFE',\n disabled: '#007AFEAA',\n },\n },\n overrides: {\n MuiAppBar: {\n colorDefault: {\n backgroundColor: '#a9a9a9',\n },\n },\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300],\n },\n },\n },\n },\n };\n } else {\n theme = {\n name: type,\n palette: {\n mode: 'light',\n primary: {\n main: '#3399CC',\n },\n secondary: {\n main: '#164477',\n },\n expert: '#14bb00',\n },\n overrides: {\n MuiLink: {\n root: {\n textTransform: 'uppercase',\n transition: 'color .3s ease',\n color: orange[400],\n '&:hover': {\n color: orange[300],\n },\n },\n },\n },\n };\n }\n\n theme.toolbar = {\n height: 48,\n };\n\n // add save toolbar\n theme.saveToolbar = {\n background: theme.palette.primary.main,\n button: {\n borderRadius: 3,\n height: 32,\n },\n };\n\n theme.palette.grey = {\n main: grey[300],\n dark: grey[400],\n };\n\n theme = createTheme(adaptV4Theme(theme));\n\n return createTheme(theme, {\n components: {\n MuiButton: {\n variants: [\n {\n props: { variant: 'contained', color: 'grey' },\n style: {\n color: theme.palette.getContrastText(theme.palette.grey[300]),\n },\n },\n {\n props: { variant: 'outlined', color: 'grey' },\n style: {\n color: theme.palette.text.primary,\n borderColor:\n theme.palette.mode === 'light'\n ? 'rgba(0, 0, 0, 0.23)'\n : 'rgba(255, 255, 255, 0.23)',\n '&.Mui-disabled': {\n border: `1px solid ${theme.palette.action.disabledBackground}`,\n },\n '&:hover': {\n borderColor:\n theme.palette.mode === 'light'\n ? 'rgba(0, 0, 0, 0.23)'\n : 'rgba(255, 255, 255, 0.23)',\n backgroundColor: alpha(\n theme.palette.text.primary,\n theme.palette.action.hoverOpacity,\n ),\n },\n },\n },\n {\n props: { variant: 'text', color: 'grey' },\n style: {\n color: theme.palette.text.primary,\n '&:hover': {\n backgroundColor: alpha(\n theme.palette.text.primary,\n theme.palette.action.hoverOpacity,\n ),\n },\n },\n },\n ],\n },\n },\n });\n};\n\nexport default Theme;\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAME,IAAI,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,GAAG;;AAEhC;AACA;AACA;AACA;AACA;AACA,SAASC,KAAKA,CAACC,GAAG,EAAE;EAChB,IAAMC,GAAG,GAAG;IAC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sonFileName, words) {
31
31
 
32
32
  const words = readTxt(__dirname + '/names.txt');
33
33
  mergeTexts(__dirname + '/list.json', words);
34
- */
34
+ */
@@ -31,4 +31,4 @@ function mergeTexts(jsonFileName, words) {
31
31
 
32
32
  const words = readTxt(__dirname + '/names.txt');
33
33
  mergeTexts(__dirname + '/list.json', words);
34
- */
34
+ */
package/i18n/de.json CHANGED
@@ -382,5 +382,16 @@
382
382
  "ra_fileType_video": "Video",
383
383
  "ra_select_folder_hint": "Um einen Ordner auszuwählen, halten Sie einfach die Taste \"Shift\" gedrückt, indem Sie auf den Ordner klicken.",
384
384
  "ra_Accept license": "Lizenz akzeptieren",
385
- "ra_License agreement": "Lizenzvereinbarung"
385
+ "ra_License agreement": "Lizenzvereinbarung",
386
+ "ra_Import from %s": "Von %s importieren",
387
+ "ra_Export data to %s file": "Daten in %s-Datei exportieren",
388
+ "ra_Import data from %s file": "Daten aus %s-Datei importieren",
389
+ "ra_No data found in file": "Keine Daten in der Datei gefunden",
390
+ "ra_Append or replace?": "Anhängen oder ersetzen?",
391
+ "ra_Append %s entries or replace existing?": "%s Einträge anhängen oder vorhandene ersetzen?",
392
+ "ra_Replace": "Ersetzen",
393
+ "ra_Append": "Anhängen",
394
+ "ra_May not trigger \"updateLicenses\"": "Löst möglicherweise nicht „updateLicenses“ aus",
395
+ "ra_Unknown error": "Unbekannter Fehler",
396
+ "ra_License must be converted": "Die Lizenz muss auf eine neuere Version konvertiert werden. Sie können dies in Ihrem iobroker.net-Profil tun."
386
397
  }
package/i18n/en.json CHANGED
@@ -382,5 +382,16 @@
382
382
  "ra_fileType_video": "Video",
383
383
  "ra_select_folder_hint": "To select folder, just hold the key \"shift\" by clicking the folder.",
384
384
  "ra_Accept license": "Accept license",
385
- "ra_License agreement": "License agreement"
385
+ "ra_License agreement": "License agreement",
386
+ "ra_Import from %s": "Import from %s",
387
+ "ra_Export data to %s file": "Export data to %s file",
388
+ "ra_Import data from %s file": "Import data from %s file",
389
+ "ra_No data found in file": "No data found in file",
390
+ "ra_Append or replace?": "Append or replace?",
391
+ "ra_Append %s entries or replace existing?": "Append %s entries or replace existing?",
392
+ "ra_Replace": "Replace",
393
+ "ra_Append": "Append",
394
+ "ra_May not trigger \"updateLicenses\"": "May not trigger \"updateLicenses\"",
395
+ "ra_Unknown error": "Unknown error",
396
+ "ra_License must be converted": "License must be converted to newer version. You can do it in your iobroker.net profile."
386
397
  }
package/i18n/es.json CHANGED
@@ -382,5 +382,16 @@
382
382
  "ra_fileType_video": "Video",
383
383
  "ra_select_folder_hint": "Para seleccionar la carpeta, simplemente mantenga presionada la tecla \"shift\" haciendo clic en la carpeta.",
384
384
  "ra_Accept license": "Aceptar licencia",
385
- "ra_License agreement": "Acuerdo de licencia"
385
+ "ra_License agreement": "Acuerdo de licencia",
386
+ "ra_Import from %s": "Importar desde %s",
387
+ "ra_Export data to %s file": "Exportar datos al archivo %s",
388
+ "ra_Import data from %s file": "Importar datos del archivo %s",
389
+ "ra_No data found in file": "No se encontraron datos en el archivo",
390
+ "ra_Append or replace?": "¿Agregar o reemplazar?",
391
+ "ra_Append %s entries or replace existing?": "¿Agregar %s entradas o reemplazar las existentes?",
392
+ "ra_Replace": "Reemplazar",
393
+ "ra_Append": "Adjuntar",
394
+ "ra_May not trigger \"updateLicenses\"": "No puede activar \"updateLicenses\"",
395
+ "ra_Unknown error": "Error desconocido",
396
+ "ra_License must be converted": "La licencia debe convertirse a una versión más reciente. Puedes hacerlo en tu perfil de iobroker.net."
386
397
  }
package/i18n/fr.json CHANGED
@@ -382,5 +382,16 @@
382
382
  "ra_fileType_video": "Vidéo",
383
383
  "ra_select_folder_hint": "Pour sélectionner un dossier, maintenez simplement la touche \"shift\" enfoncée en cliquant sur le dossier.",
384
384
  "ra_Accept license": "Accepter la licence",
385
- "ra_License agreement": "Accord de licence"
385
+ "ra_License agreement": "Accord de licence",
386
+ "ra_Import from %s": "Importer depuis %s",
387
+ "ra_Export data to %s file": "Exporter les données vers le fichier %s",
388
+ "ra_Import data from %s file": "Importer des données à partir du fichier %s",
389
+ "ra_No data found in file": "Aucune donnée trouvée dans le fichier",
390
+ "ra_Append or replace?": "Ajouter ou remplacer ?",
391
+ "ra_Append %s entries or replace existing?": "Ajouter %s entrées ou remplacer l'existant ?",
392
+ "ra_Replace": "Remplacer",
393
+ "ra_Append": "Ajouter",
394
+ "ra_May not trigger \"updateLicenses\"": "Peut ne pas déclencher \"updateLicences\"",
395
+ "ra_Unknown error": "Erreur inconnue",
396
+ "ra_License must be converted": "La licence doit être convertie en une version plus récente. Vous pouvez le faire dans votre profil iobroker.net."
386
397
  }
package/i18n/it.json CHANGED
@@ -382,5 +382,16 @@
382
382
  "ra_fileType_video": "video",
383
383
  "ra_select_folder_hint": "Per selezionare la cartella, basta tenere premuto il tasto \"shift\" facendo clic sulla cartella.",
384
384
  "ra_Accept license": "Accetta licenza",
385
- "ra_License agreement": "Contratto di licenza"
385
+ "ra_License agreement": "Contratto di licenza",
386
+ "ra_Import from %s": "Importa da %s",
387
+ "ra_Export data to %s file": "Esporta i dati nel file %s",
388
+ "ra_Import data from %s file": "Importa i dati dal file %s",
389
+ "ra_No data found in file": "Nessun dato trovato nel file",
390
+ "ra_Append or replace?": "Aggiungere o sostituire?",
391
+ "ra_Append %s entries or replace existing?": "Aggiungi %s voci o sostituisci quelle esistenti?",
392
+ "ra_Replace": "Sostituire",
393
+ "ra_Append": "Aggiungere",
394
+ "ra_May not trigger \"updateLicenses\"": "Potrebbe non attivare \"updateLicenses\"",
395
+ "ra_Unknown error": "Errore sconosciuto",
396
+ "ra_License must be converted": "La licenza deve essere convertita in una versione più recente. Puoi farlo nel tuo profilo iobroker.net."
386
397
  }
package/i18n/nl.json CHANGED
@@ -382,5 +382,16 @@
382
382
  "ra_fileType_video": "Video",
383
383
  "ra_select_folder_hint": "Om een map te selecteren, houdt u gewoon de toets \"shift\" ingedrukt door op de map te klikken.",
384
384
  "ra_Accept license": "Accepteer licentie",
385
- "ra_License agreement": "Licentieovereenkomst"
385
+ "ra_License agreement": "Licentieovereenkomst",
386
+ "ra_Import from %s": "Importeren uit %s",
387
+ "ra_Export data to %s file": "Exporteer gegevens naar %s bestand",
388
+ "ra_Import data from %s file": "Importeer gegevens uit %s bestand",
389
+ "ra_No data found in file": "Geen gegevens gevonden in bestand",
390
+ "ra_Append or replace?": "Toevoegen of vervangen?",
391
+ "ra_Append %s entries or replace existing?": "%s ingangen toevoegen of bestaande vervangen?",
392
+ "ra_Replace": "Vervangen",
393
+ "ra_Append": "toevoegen",
394
+ "ra_May not trigger \"updateLicenses\"": "Activeert mogelijk niet \"updateLicenses\"",
395
+ "ra_Unknown error": "Onbekende fout",
396
+ "ra_License must be converted": "Licentie moet worden omgezet naar nieuwere versie. U kunt dit doen in uw iobroker.net-profiel."
386
397
  }
package/i18n/pl.json CHANGED
@@ -382,5 +382,16 @@
382
382
  "ra_fileType_video": "Wideo",
383
383
  "ra_select_folder_hint": "Aby wybrać folder, wystarczy przytrzymać klawisz „shift”, klikając folder.",
384
384
  "ra_Accept license": "Zaakceptuj licencję",
385
- "ra_License agreement": "Umowa licencyjna"
385
+ "ra_License agreement": "Umowa licencyjna",
386
+ "ra_Import from %s": "Importuj z %s",
387
+ "ra_Export data to %s file": "Eksportuj dane do pliku %s",
388
+ "ra_Import data from %s file": "Importuj dane z pliku %s",
389
+ "ra_No data found in file": "Nie znaleziono danych w pliku",
390
+ "ra_Append or replace?": "Dołączyć czy zastąpić?",
391
+ "ra_Append %s entries or replace existing?": "Dołączyć wpisy %s czy zastąpić istniejące?",
392
+ "ra_Replace": "Zastępować",
393
+ "ra_Append": "Dodać",
394
+ "ra_May not trigger \"updateLicenses\"": "Może nie uruchamiać „updateLicenses”",
395
+ "ra_Unknown error": "Nieznany błąd",
396
+ "ra_License must be converted": "Licencja musi zostać przekonwertowana na nowszą wersję. Możesz to zrobić w swoim profilu iobroker.net."
386
397
  }
package/i18n/pt.json CHANGED
@@ -382,5 +382,16 @@
382
382
  "ra_fileType_video": "Vídeo",
383
383
  "ra_select_folder_hint": "Para selecionar a pasta, basta segurar a tecla \"shift\" clicando na pasta.",
384
384
  "ra_Accept license": "Aceitar licença",
385
- "ra_License agreement": "Contrato de licença"
385
+ "ra_License agreement": "Contrato de licença",
386
+ "ra_Import from %s": "Importar de %s",
387
+ "ra_Export data to %s file": "Exportar dados para o arquivo %s",
388
+ "ra_Import data from %s file": "Importar dados do arquivo %s",
389
+ "ra_No data found in file": "Nenhum dado encontrado no arquivo",
390
+ "ra_Append or replace?": "Acrescentar ou substituir?",
391
+ "ra_Append %s entries or replace existing?": "Acrescentar %s entradas ou substituir as existentes?",
392
+ "ra_Replace": "Substituir",
393
+ "ra_Append": "Acrescentar",
394
+ "ra_May not trigger \"updateLicenses\"": "Pode não acionar \"updateLicenses\"",
395
+ "ra_Unknown error": "Erro desconhecido",
396
+ "ra_License must be converted": "A licença deve ser convertida para uma versão mais recente. Você pode fazê-lo em seu perfil iobroker.net."
386
397
  }
package/i18n/ru.json CHANGED
@@ -382,5 +382,16 @@
382
382
  "ra_fileType_video": "видео",
383
383
  "ra_select_folder_hint": "Чтобы выбрать папку, просто удерживайте клавишу «Shift», щелкнув папку.",
384
384
  "ra_Accept license": "Принять лицензию",
385
- "ra_License agreement": "Лицензионное соглашение"
385
+ "ra_License agreement": "Лицензионное соглашение",
386
+ "ra_Import from %s": "Импорт из %s",
387
+ "ra_Export data to %s file": "Экспорт данных в файл %s",
388
+ "ra_Import data from %s file": "Импорт данных из файла %s",
389
+ "ra_No data found in file": "Данные в файле не найдены",
390
+ "ra_Append or replace?": "Дополнить или заменить?",
391
+ "ra_Append %s entries or replace existing?": "Добавить записи %s или заменить существующие?",
392
+ "ra_Replace": "Заменять",
393
+ "ra_Append": "Добавить",
394
+ "ra_May not trigger \"updateLicenses\"": "Не может запускать «updateLicenses»",
395
+ "ra_Unknown error": "Неизвестная ошибка",
396
+ "ra_License must be converted": "Лицензия должна быть преобразована в более новую версию. Вы можете сделать это в своем профиле на iobroker.net."
386
397
  }
package/i18n/uk.json CHANGED
@@ -382,5 +382,16 @@
382
382
  "ra_fileType_video": "відео",
383
383
  "ra_select_folder_hint": "Щоб вибрати папку, просто клацніть папку, утримуючи клавішу «Shift».",
384
384
  "ra_Accept license": "Прийняти ліцензію",
385
- "ra_License agreement": "Ліцензійна угода"
385
+ "ra_License agreement": "Ліцензійна угода",
386
+ "ra_Import from %s": "Імпортувати з %s",
387
+ "ra_Export data to %s file": "Експортувати дані у файл %s",
388
+ "ra_Import data from %s file": "Імпортувати дані з файлу %s",
389
+ "ra_No data found in file": "Немає даних у файлі",
390
+ "ra_Append or replace?": "Додати чи замінити?",
391
+ "ra_Append %s entries or replace existing?": "Додати %s записів чи замінити наявні?",
392
+ "ra_Replace": "Замінити",
393
+ "ra_Append": "Додайте",
394
+ "ra_May not trigger \"updateLicenses\"": "Може не запускати \"updateLicenses\"",
395
+ "ra_Unknown error": "Невідома помилка",
396
+ "ra_License must be converted": "Ліцензію необхідно конвертувати до новішої версії. Ви можете зробити це у своєму профілі на iobroker.net."
386
397
  }
package/i18n/zh-cn.json CHANGED
@@ -382,5 +382,16 @@
382
382
  "ra_fileType_video": "视频",
383
383
  "ra_select_folder_hint": "要选择文件夹,只需按住“shift”键单击文件夹即可。",
384
384
  "ra_Accept license": "接受许可",
385
- "ra_License agreement": "许可协议"
385
+ "ra_License agreement": "许可协议",
386
+ "ra_Import from %s": "从 %s 导入",
387
+ "ra_Export data to %s file": "将数据导出到 %s 文件",
388
+ "ra_Import data from %s file": "从 %s 文件导入数据",
389
+ "ra_No data found in file": "文件中未找到数据",
390
+ "ra_Append or replace?": "追加还是替换?",
391
+ "ra_Append %s entries or replace existing?": "追加 %s 条目还是替换现有条目?",
392
+ "ra_Replace": "代替",
393
+ "ra_Append": "附加",
394
+ "ra_May not trigger \"updateLicenses\"": "可能不会触发“updateLicenses”",
395
+ "ra_Unknown error": "未知错误",
396
+ "ra_License must be converted": "许可证必须转换为更新版本。您可以在 iobroker.net 个人资料中执行此操作。"
386
397
  }
package/i18n.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export default I18n;
2
- /***
2
+ /**
3
3
  * Copyright 2018-2022 bluefox <dogafox@gmail.com>
4
4
  *
5
5
  * MIT License
package/i18n.js CHANGED
@@ -9,7 +9,7 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
- /***
12
+ /**
13
13
  * Copyright 2018-2022 bluefox <dogafox@gmail.com>
14
14
  *
15
15
  * MIT License
@@ -51,19 +51,19 @@ var I18n = /*#__PURE__*/function () {
51
51
  if (typeof words.prefix === 'string') {
52
52
  var prefix = words.prefix;
53
53
  delete words.prefix;
54
- Object.keys(words).forEach(function (lang) {
54
+ Object.keys(words).forEach(function (_lang) {
55
55
  var _words = {};
56
- Object.keys(words[lang]).forEach(function (word) {
56
+ Object.keys(words[_lang]).forEach(function (word) {
57
57
  if (!word) {
58
58
  return;
59
59
  }
60
60
  if (!word.startsWith(prefix)) {
61
- _words["".concat(prefix).concat(word)] = words[lang][word];
61
+ _words["".concat(prefix).concat(word)] = words[_lang][word];
62
62
  } else {
63
- _words[word] = words[lang][word];
63
+ _words[word] = words[_lang][word];
64
64
  }
65
65
  });
66
- words[lang] = _words;
66
+ words[_lang] = _words;
67
67
  });
68
68
  } else {
69
69
  console.warn('Found prefix in translations, but it is not a string');
@@ -72,20 +72,20 @@ var I18n = /*#__PURE__*/function () {
72
72
  try {
73
73
  if (!lang) {
74
74
  if (words.en && words.de && words.ru) {
75
- Object.keys(words).forEach(function (lang) {
76
- I18n.translations[lang] = I18n.translations[lang] || {};
77
- Object.assign(I18n.translations[lang], words[lang]);
75
+ Object.keys(words).forEach(function (_lang) {
76
+ I18n.translations[_lang] = I18n.translations[_lang] || {};
77
+ Object.assign(I18n.translations[_lang], words[_lang]);
78
78
  });
79
79
  } else {
80
80
  Object.keys(words).forEach(function (word) {
81
- Object.keys(words[word]).forEach(function (lang) {
82
- if (!I18n.translations[lang]) {
83
- console.warn("Used unknown language: ".concat(lang));
81
+ Object.keys(words[word]).forEach(function (_lang) {
82
+ if (!I18n.translations[_lang]) {
83
+ console.warn("Used unknown language: ".concat(_lang));
84
84
  }
85
- if (!I18n.translations[lang][word]) {
86
- I18n.translations[lang][word] = words[word][lang];
87
- } else if (I18n.translations[lang][word] !== words[word][lang]) {
88
- console.warn("Translation for word \"".concat(word, "\" in \"").concat(lang, "\" was ignored: existing = \"").concat(I18n.translations[lang][word], "\", new = ").concat(words[word][lang]));
85
+ if (!I18n.translations[_lang][word]) {
86
+ I18n.translations[_lang][word] = words[word][_lang];
87
+ } else if (I18n.translations[_lang][word] !== words[word][_lang]) {
88
+ console.warn("Translation for word \"".concat(word, "\" in \"").concat(_lang, "\" was ignored: existing = \"").concat(I18n.translations[_lang][word], "\", new = ").concat(words[word][_lang]));
89
89
  }
90
90
  });
91
91
  });
@@ -234,13 +234,15 @@ var I18n = /*#__PURE__*/function () {
234
234
  window.i18nShow = I18n.i18nShow;
235
235
  window.i18nDisableWarning = I18n.disableWarning;
236
236
 
237
- /*I18n.translations = {
237
+ /*
238
+ I18n.translations = {
238
239
  'en': require('./i18n/en'),
239
240
  'ru': require('./i18n/ru'),
240
241
  'de': require('./i18n/de'),
241
242
  };
242
243
  I18n.fallbacks = true;
243
- I18n.t = function () {};*/
244
+ I18n.t = function () {};
245
+ */
244
246
  var _default = I18n;
245
247
  exports["default"] = _default;
246
248
  //# sourceMappingURL=i18n.js.map