@iobroker/adapter-react-v5 4.0.7 → 4.0.9

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 (72) hide show
  1. package/Components/404.js.map +1 -1
  2. package/Components/FileBrowser.js.map +1 -1
  3. package/Components/IconSelector.js.map +1 -1
  4. package/Components/JsonConfigComponent/ConfigCRON.js +13 -15
  5. package/Components/JsonConfigComponent/ConfigCRON.js.map +1 -1
  6. package/Components/JsonConfigComponent/ConfigCertificateSelect.js +39 -41
  7. package/Components/JsonConfigComponent/ConfigCertificateSelect.js.map +1 -1
  8. package/Components/JsonConfigComponent/ConfigCheckLicense.js +314 -322
  9. package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +1 -1
  10. package/Components/JsonConfigComponent/ConfigCustom.js +138 -144
  11. package/Components/JsonConfigComponent/ConfigCustom.js.map +1 -1
  12. package/Components/JsonConfigComponent/ConfigFile.js.map +1 -1
  13. package/Components/JsonConfigComponent/ConfigFileSelector.js +95 -99
  14. package/Components/JsonConfigComponent/ConfigFileSelector.js.map +1 -1
  15. package/Components/JsonConfigComponent/ConfigFunc.js +13 -7
  16. package/Components/JsonConfigComponent/ConfigFunc.js.map +1 -1
  17. package/Components/JsonConfigComponent/ConfigGeneric.js +4 -6
  18. package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -1
  19. package/Components/JsonConfigComponent/ConfigIP.js +1 -1
  20. package/Components/JsonConfigComponent/ConfigIP.js.map +1 -1
  21. package/Components/JsonConfigComponent/ConfigImageUpload.js +21 -23
  22. package/Components/JsonConfigComponent/ConfigImageUpload.js.map +1 -1
  23. package/Components/JsonConfigComponent/ConfigInstanceSelect.js +69 -71
  24. package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +1 -1
  25. package/Components/JsonConfigComponent/ConfigJsonEditor.js +17 -19
  26. package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
  27. package/Components/JsonConfigComponent/ConfigLanguage.js +2 -2
  28. package/Components/JsonConfigComponent/ConfigLanguage.js.map +1 -1
  29. package/Components/JsonConfigComponent/ConfigNumber.js.map +1 -1
  30. package/Components/JsonConfigComponent/ConfigObjectId.js +14 -16
  31. package/Components/JsonConfigComponent/ConfigObjectId.js.map +1 -1
  32. package/Components/JsonConfigComponent/ConfigPattern.js +1 -1
  33. package/Components/JsonConfigComponent/ConfigPattern.js.map +1 -1
  34. package/Components/JsonConfigComponent/ConfigRoom.js +12 -6
  35. package/Components/JsonConfigComponent/ConfigRoom.js.map +1 -1
  36. package/Components/JsonConfigComponent/ConfigSelect.js +1 -1
  37. package/Components/JsonConfigComponent/ConfigSelect.js.map +1 -1
  38. package/Components/JsonConfigComponent/ConfigSendto.js +54 -41
  39. package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
  40. package/Components/JsonConfigComponent/ConfigSetState.js +70 -76
  41. package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
  42. package/Components/JsonConfigComponent/ConfigTable.js +21 -23
  43. package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
  44. package/Components/JsonConfigComponent/ConfigTextSendTo.js +2 -2
  45. package/Components/JsonConfigComponent/ConfigTextSendTo.js.map +1 -1
  46. package/Components/JsonConfigComponent/ConfigUUID.js +13 -15
  47. package/Components/JsonConfigComponent/ConfigUUID.js.map +1 -1
  48. package/Components/JsonConfigComponent/ConfigUser.js +2 -2
  49. package/Components/JsonConfigComponent/ConfigUser.js.map +1 -1
  50. package/Components/ObjectBrowser.js +198 -204
  51. package/Components/ObjectBrowser.js.map +1 -1
  52. package/Components/Schedule.js.map +1 -1
  53. package/Dialogs/SelectFile.js.map +1 -1
  54. package/Dialogs/SelectID.js.map +1 -1
  55. package/GenericApp.js +1 -1
  56. package/GenericApp.js.map +1 -1
  57. package/LICENSE +1 -1
  58. package/README.md +7 -3
  59. package/_Connection.js +23 -25
  60. package/_Connection.js.map +1 -1
  61. package/i18n/de.json +3 -1
  62. package/i18n/en.json +3 -1
  63. package/i18n/es.json +3 -1
  64. package/i18n/fr.json +3 -1
  65. package/i18n/it.json +3 -1
  66. package/i18n/nl.json +3 -1
  67. package/i18n/pl.json +3 -1
  68. package/i18n/pt.json +3 -1
  69. package/i18n/ru.json +3 -1
  70. package/i18n/uk.json +3 -1
  71. package/i18n/zh-cn.json +3 -1
  72. package/package.json +7 -7
package/_Connection.js CHANGED
@@ -14,7 +14,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
14
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
15
15
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
16
16
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
17
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
18
18
  /** Possible progress states. */
19
19
  var PROGRESS = {
20
20
  /** The socket is connecting. */
@@ -695,30 +695,28 @@ var Connection = /*#__PURE__*/function () {
695
695
  var _subscribeFiles = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(id, filePattern, cb) {
696
696
  var key;
697
697
  return _regenerator["default"].wrap(function _callee$(_context) {
698
- while (1) {
699
- switch (_context.prev = _context.next) {
700
- case 0:
701
- if (!(typeof cb !== 'function')) {
702
- _context.next = 2;
703
- break;
704
- }
705
- throw new Error('The state change handler must be a function!');
706
- case 2:
707
- key = "".concat(id, "$%$").concat(filePattern);
708
- if (!this.filesSubscribes[key]) {
709
- this.filesSubscribes[key] = {
710
- regId: new RegExp(pattern2RegEx(id)),
711
- regFilePattern: new RegExp(pattern2RegEx(filePattern)),
712
- cbs: [cb]
713
- };
714
- this.connected && this._socket.emit('subscribeFiles', id, filePattern);
715
- } else {
716
- !this.filesSubscribes[key].cbs.includes(cb) && this.filesSubscribes[key].cbs.push(cb);
717
- }
718
- case 4:
719
- case "end":
720
- return _context.stop();
721
- }
698
+ while (1) switch (_context.prev = _context.next) {
699
+ case 0:
700
+ if (!(typeof cb !== 'function')) {
701
+ _context.next = 2;
702
+ break;
703
+ }
704
+ throw new Error('The state change handler must be a function!');
705
+ case 2:
706
+ key = "".concat(id, "$%$").concat(filePattern);
707
+ if (!this.filesSubscribes[key]) {
708
+ this.filesSubscribes[key] = {
709
+ regId: new RegExp(pattern2RegEx(id)),
710
+ regFilePattern: new RegExp(pattern2RegEx(filePattern)),
711
+ cbs: [cb]
712
+ };
713
+ this.connected && this._socket.emit('subscribeFiles', id, filePattern);
714
+ } else {
715
+ !this.filesSubscribes[key].cbs.includes(cb) && this.filesSubscribes[key].cbs.push(cb);
716
+ }
717
+ case 4:
718
+ case "end":
719
+ return _context.stop();
722
720
  }
723
721
  }, _callee, this);
724
722
  }));