@iobroker/adapter-react-v5 4.8.0 → 4.9.0

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 (265) hide show
  1. package/Components/Logo.d.ts +9 -50
  2. package/Components/Logo.js +106 -173
  3. package/Components/ObjectBrowser.d.ts +9 -0
  4. package/Components/ObjectBrowser.js +370 -165
  5. package/Components/ObjectBrowser.js.map +1 -1
  6. package/Components/SaveCloseButtons.d.ts +17 -61
  7. package/Components/SaveCloseButtons.js +64 -124
  8. package/Components/Schedule.d.ts +31 -6
  9. package/Components/Schedule.js +1144 -1562
  10. package/Components/TabContainer.d.ts +9 -37
  11. package/Components/TabContainer.js +49 -74
  12. package/Components/TabContent.d.ts +6 -27
  13. package/Components/TabContent.js +24 -67
  14. package/Components/TabHeader.d.ts +6 -11
  15. package/Components/TabHeader.js +11 -40
  16. package/Components/ToggleThemeMenu.d.ts +10 -8
  17. package/Components/ToggleThemeMenu.js +16 -36
  18. package/Components/types.d.ts +10 -2
  19. package/Dialogs/SelectID.d.ts +39 -114
  20. package/Dialogs/SelectID.js +141 -246
  21. package/LegacyConnection.d.ts +1 -1
  22. package/README.md +7 -3
  23. package/i18n.d.ts +2 -2
  24. package/index.d.ts +127 -126
  25. package/index.js +213 -192
  26. package/package.json +7 -8
  27. package/Components/JsonConfigComponent/ChipInput.d.ts +0 -12
  28. package/Components/JsonConfigComponent/ChipInput.js +0 -763
  29. package/Components/JsonConfigComponent/ChipInput.js.map +0 -1
  30. package/Components/JsonConfigComponent/ConfigAccordion.d.ts +0 -15
  31. package/Components/JsonConfigComponent/ConfigAccordion.js +0 -348
  32. package/Components/JsonConfigComponent/ConfigAccordion.js.map +0 -1
  33. package/Components/JsonConfigComponent/ConfigAlive.d.ts +0 -10
  34. package/Components/JsonConfigComponent/ConfigAlive.js +0 -105
  35. package/Components/JsonConfigComponent/ConfigAlive.js.map +0 -1
  36. package/Components/JsonConfigComponent/ConfigAutocomplete.d.ts +0 -37
  37. package/Components/JsonConfigComponent/ConfigAutocomplete.js +0 -73
  38. package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.d.ts +0 -17
  39. package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js +0 -131
  40. package/Components/JsonConfigComponent/ConfigCRON.d.ts +0 -15
  41. package/Components/JsonConfigComponent/ConfigCRON.js +0 -157
  42. package/Components/JsonConfigComponent/ConfigCRON.js.map +0 -1
  43. package/Components/JsonConfigComponent/ConfigCertCollection.d.ts +0 -14
  44. package/Components/JsonConfigComponent/ConfigCertCollection.js +0 -128
  45. package/Components/JsonConfigComponent/ConfigCertCollection.js.map +0 -1
  46. package/Components/JsonConfigComponent/ConfigCertificateSelect.d.ts +0 -14
  47. package/Components/JsonConfigComponent/ConfigCertificateSelect.js +0 -149
  48. package/Components/JsonConfigComponent/ConfigCertificateSelect.js.map +0 -1
  49. package/Components/JsonConfigComponent/ConfigCertificates.d.ts +0 -14
  50. package/Components/JsonConfigComponent/ConfigCertificates.js +0 -284
  51. package/Components/JsonConfigComponent/ConfigCertificates.js.map +0 -1
  52. package/Components/JsonConfigComponent/ConfigCheckLicense.d.ts +0 -3
  53. package/Components/JsonConfigComponent/ConfigCheckLicense.js +0 -821
  54. package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +0 -1
  55. package/Components/JsonConfigComponent/ConfigCheckbox.d.ts +0 -15
  56. package/Components/JsonConfigComponent/ConfigCheckbox.js +0 -40
  57. package/Components/JsonConfigComponent/ConfigChip.d.ts +0 -14
  58. package/Components/JsonConfigComponent/ConfigChip.js +0 -120
  59. package/Components/JsonConfigComponent/ConfigChip.js.map +0 -1
  60. package/Components/JsonConfigComponent/ConfigColor.d.ts +0 -22
  61. package/Components/JsonConfigComponent/ConfigColor.js +0 -120
  62. package/Components/JsonConfigComponent/ConfigColor.js.map +0 -1
  63. package/Components/JsonConfigComponent/ConfigCoordinates.d.ts +0 -14
  64. package/Components/JsonConfigComponent/ConfigCoordinates.js +0 -265
  65. package/Components/JsonConfigComponent/ConfigCoordinates.js.map +0 -1
  66. package/Components/JsonConfigComponent/ConfigCustom.d.ts +0 -26
  67. package/Components/JsonConfigComponent/ConfigCustom.js +0 -316
  68. package/Components/JsonConfigComponent/ConfigCustom.js.map +0 -1
  69. package/Components/JsonConfigComponent/ConfigDatePicker.d.ts +0 -14
  70. package/Components/JsonConfigComponent/ConfigDatePicker.js +0 -91
  71. package/Components/JsonConfigComponent/ConfigDatePicker.js.map +0 -1
  72. package/Components/JsonConfigComponent/ConfigDeviceManager.d.ts +0 -6
  73. package/Components/JsonConfigComponent/ConfigDeviceManager.js +0 -18
  74. package/Components/JsonConfigComponent/ConfigFile.d.ts +0 -15
  75. package/Components/JsonConfigComponent/ConfigFile.js +0 -228
  76. package/Components/JsonConfigComponent/ConfigFile.js.map +0 -1
  77. package/Components/JsonConfigComponent/ConfigFileSelector.d.ts +0 -3
  78. package/Components/JsonConfigComponent/ConfigFileSelector.js +0 -625
  79. package/Components/JsonConfigComponent/ConfigFileSelector.js.map +0 -1
  80. package/Components/JsonConfigComponent/ConfigFunc.d.ts +0 -14
  81. package/Components/JsonConfigComponent/ConfigFunc.js +0 -124
  82. package/Components/JsonConfigComponent/ConfigFunc.js.map +0 -1
  83. package/Components/JsonConfigComponent/ConfigGeneric.d.ts +0 -95
  84. package/Components/JsonConfigComponent/ConfigGeneric.js +0 -646
  85. package/Components/JsonConfigComponent/ConfigIP.d.ts +0 -14
  86. package/Components/JsonConfigComponent/ConfigIP.js +0 -130
  87. package/Components/JsonConfigComponent/ConfigIP.js.map +0 -1
  88. package/Components/JsonConfigComponent/ConfigImageSendTo.d.ts +0 -10
  89. package/Components/JsonConfigComponent/ConfigImageSendTo.js +0 -114
  90. package/Components/JsonConfigComponent/ConfigImageSendTo.js.map +0 -1
  91. package/Components/JsonConfigComponent/ConfigImageUpload.d.ts +0 -14
  92. package/Components/JsonConfigComponent/ConfigImageUpload.js +0 -166
  93. package/Components/JsonConfigComponent/ConfigImageUpload.js.map +0 -1
  94. package/Components/JsonConfigComponent/ConfigInstanceSelect.d.ts +0 -14
  95. package/Components/JsonConfigComponent/ConfigInstanceSelect.js +0 -264
  96. package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +0 -1
  97. package/Components/JsonConfigComponent/ConfigInterface.d.ts +0 -14
  98. package/Components/JsonConfigComponent/ConfigInterface.js +0 -146
  99. package/Components/JsonConfigComponent/ConfigInterface.js.map +0 -1
  100. package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +0 -13
  101. package/Components/JsonConfigComponent/ConfigJsonEditor.js +0 -145
  102. package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +0 -1
  103. package/Components/JsonConfigComponent/ConfigLanguage.d.ts +0 -7
  104. package/Components/JsonConfigComponent/ConfigLanguage.js +0 -110
  105. package/Components/JsonConfigComponent/ConfigLicense.d.ts +0 -24
  106. package/Components/JsonConfigComponent/ConfigLicense.js +0 -183
  107. package/Components/JsonConfigComponent/ConfigLicense.js.map +0 -1
  108. package/Components/JsonConfigComponent/ConfigNumber.d.ts +0 -17
  109. package/Components/JsonConfigComponent/ConfigNumber.js +0 -117
  110. package/Components/JsonConfigComponent/ConfigObjectId.d.ts +0 -17
  111. package/Components/JsonConfigComponent/ConfigObjectId.js +0 -167
  112. package/Components/JsonConfigComponent/ConfigObjectId.js.map +0 -1
  113. package/Components/JsonConfigComponent/ConfigPanel.d.ts +0 -3
  114. package/Components/JsonConfigComponent/ConfigPanel.js +0 -396
  115. package/Components/JsonConfigComponent/ConfigPanel.js.map +0 -1
  116. package/Components/JsonConfigComponent/ConfigPassword.d.ts +0 -14
  117. package/Components/JsonConfigComponent/ConfigPassword.js +0 -193
  118. package/Components/JsonConfigComponent/ConfigPassword.js.map +0 -1
  119. package/Components/JsonConfigComponent/ConfigPattern.d.ts +0 -21
  120. package/Components/JsonConfigComponent/ConfigPattern.js +0 -65
  121. package/Components/JsonConfigComponent/ConfigPattern.js.map +0 -1
  122. package/Components/JsonConfigComponent/ConfigPort.d.ts +0 -3
  123. package/Components/JsonConfigComponent/ConfigPort.js +0 -176
  124. package/Components/JsonConfigComponent/ConfigRoom.d.ts +0 -14
  125. package/Components/JsonConfigComponent/ConfigRoom.js +0 -124
  126. package/Components/JsonConfigComponent/ConfigRoom.js.map +0 -1
  127. package/Components/JsonConfigComponent/ConfigSelect.d.ts +0 -14
  128. package/Components/JsonConfigComponent/ConfigSelect.js +0 -159
  129. package/Components/JsonConfigComponent/ConfigSelect.js.map +0 -1
  130. package/Components/JsonConfigComponent/ConfigSelectSendTo.d.ts +0 -17
  131. package/Components/JsonConfigComponent/ConfigSelectSendTo.js +0 -272
  132. package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +0 -1
  133. package/Components/JsonConfigComponent/ConfigSendto.d.ts +0 -24
  134. package/Components/JsonConfigComponent/ConfigSendto.js +0 -294
  135. package/Components/JsonConfigComponent/ConfigSetState.d.ts +0 -18
  136. package/Components/JsonConfigComponent/ConfigSetState.js +0 -185
  137. package/Components/JsonConfigComponent/ConfigSetState.js.map +0 -1
  138. package/Components/JsonConfigComponent/ConfigSlider.d.ts +0 -14
  139. package/Components/JsonConfigComponent/ConfigSlider.js +0 -119
  140. package/Components/JsonConfigComponent/ConfigSlider.js.map +0 -1
  141. package/Components/JsonConfigComponent/ConfigStaticDivider.d.ts +0 -14
  142. package/Components/JsonConfigComponent/ConfigStaticDivider.js +0 -68
  143. package/Components/JsonConfigComponent/ConfigStaticDivider.js.map +0 -1
  144. package/Components/JsonConfigComponent/ConfigStaticHeader.d.ts +0 -14
  145. package/Components/JsonConfigComponent/ConfigStaticHeader.js +0 -81
  146. package/Components/JsonConfigComponent/ConfigStaticHeader.js.map +0 -1
  147. package/Components/JsonConfigComponent/ConfigStaticImage.d.ts +0 -14
  148. package/Components/JsonConfigComponent/ConfigStaticImage.js +0 -71
  149. package/Components/JsonConfigComponent/ConfigStaticImage.js.map +0 -1
  150. package/Components/JsonConfigComponent/ConfigStaticText.d.ts +0 -14
  151. package/Components/JsonConfigComponent/ConfigStaticText.js +0 -88
  152. package/Components/JsonConfigComponent/ConfigStaticText.js.map +0 -1
  153. package/Components/JsonConfigComponent/ConfigTable.d.ts +0 -3
  154. package/Components/JsonConfigComponent/ConfigTable.js +0 -1064
  155. package/Components/JsonConfigComponent/ConfigTable.js.map +0 -1
  156. package/Components/JsonConfigComponent/ConfigTabs.d.ts +0 -34
  157. package/Components/JsonConfigComponent/ConfigTabs.js +0 -162
  158. package/Components/JsonConfigComponent/ConfigTabs.js.map +0 -1
  159. package/Components/JsonConfigComponent/ConfigText.d.ts +0 -14
  160. package/Components/JsonConfigComponent/ConfigText.js +0 -226
  161. package/Components/JsonConfigComponent/ConfigText.js.map +0 -1
  162. package/Components/JsonConfigComponent/ConfigTextSendTo.d.ts +0 -10
  163. package/Components/JsonConfigComponent/ConfigTextSendTo.js +0 -129
  164. package/Components/JsonConfigComponent/ConfigTextSendTo.js.map +0 -1
  165. package/Components/JsonConfigComponent/ConfigTimePicker.d.ts +0 -14
  166. package/Components/JsonConfigComponent/ConfigTimePicker.js +0 -85
  167. package/Components/JsonConfigComponent/ConfigTimePicker.js.map +0 -1
  168. package/Components/JsonConfigComponent/ConfigTopic.d.ts +0 -17
  169. package/Components/JsonConfigComponent/ConfigTopic.js +0 -110
  170. package/Components/JsonConfigComponent/ConfigTopic.js.map +0 -1
  171. package/Components/JsonConfigComponent/ConfigUUID.d.ts +0 -15
  172. package/Components/JsonConfigComponent/ConfigUUID.js +0 -95
  173. package/Components/JsonConfigComponent/ConfigUUID.js.map +0 -1
  174. package/Components/JsonConfigComponent/ConfigUser.d.ts +0 -14
  175. package/Components/JsonConfigComponent/ConfigUser.js +0 -142
  176. package/Components/JsonConfigComponent/ConfigUser.js.map +0 -1
  177. package/Components/JsonConfigComponent/DeviceManager/Communication.d.ts +0 -63
  178. package/Components/JsonConfigComponent/DeviceManager/Communication.js +0 -268
  179. package/Components/JsonConfigComponent/DeviceManager/DeviceActionButton.d.ts +0 -11
  180. package/Components/JsonConfigComponent/DeviceManager/DeviceActionButton.js +0 -15
  181. package/Components/JsonConfigComponent/DeviceManager/DeviceCard.d.ts +0 -53
  182. package/Components/JsonConfigComponent/DeviceManager/DeviceCard.js +0 -340
  183. package/Components/JsonConfigComponent/DeviceManager/DeviceControl.d.ts +0 -45
  184. package/Components/JsonConfigComponent/DeviceManager/DeviceControl.js +0 -146
  185. package/Components/JsonConfigComponent/DeviceManager/DeviceImageUpload.d.ts +0 -12
  186. package/Components/JsonConfigComponent/DeviceManager/DeviceImageUpload.js +0 -69
  187. package/Components/JsonConfigComponent/DeviceManager/DeviceList.d.ts +0 -51
  188. package/Components/JsonConfigComponent/DeviceManager/DeviceList.js +0 -216
  189. package/Components/JsonConfigComponent/DeviceManager/DeviceStatus.d.ts +0 -13
  190. package/Components/JsonConfigComponent/DeviceManager/DeviceStatus.js +0 -111
  191. package/Components/JsonConfigComponent/DeviceManager/InstanceActionButton.d.ts +0 -7
  192. package/Components/JsonConfigComponent/DeviceManager/InstanceActionButton.js +0 -16
  193. package/Components/JsonConfigComponent/DeviceManager/JsonConfig.d.ts +0 -11
  194. package/Components/JsonConfigComponent/DeviceManager/JsonConfig.js +0 -94
  195. package/Components/JsonConfigComponent/DeviceManager/TooltipButton.d.ts +0 -10
  196. package/Components/JsonConfigComponent/DeviceManager/TooltipButton.js +0 -22
  197. package/Components/JsonConfigComponent/DeviceManager/Utils.d.ts +0 -12
  198. package/Components/JsonConfigComponent/DeviceManager/Utils.js +0 -158
  199. package/Components/JsonConfigComponent/DeviceManager/i18n/de.json +0 -21
  200. package/Components/JsonConfigComponent/DeviceManager/i18n/en.json +0 -21
  201. package/Components/JsonConfigComponent/DeviceManager/i18n/es.json +0 -21
  202. package/Components/JsonConfigComponent/DeviceManager/i18n/fr.json +0 -21
  203. package/Components/JsonConfigComponent/DeviceManager/i18n/i18n.d.ts +0 -26
  204. package/Components/JsonConfigComponent/DeviceManager/i18n/it.json +0 -21
  205. package/Components/JsonConfigComponent/DeviceManager/i18n/nl.json +0 -21
  206. package/Components/JsonConfigComponent/DeviceManager/i18n/pl.json +0 -21
  207. package/Components/JsonConfigComponent/DeviceManager/i18n/pt.json +0 -21
  208. package/Components/JsonConfigComponent/DeviceManager/i18n/ru.json +0 -21
  209. package/Components/JsonConfigComponent/DeviceManager/i18n/uk.json +0 -21
  210. package/Components/JsonConfigComponent/DeviceManager/i18n/zh-cn.json +0 -21
  211. package/Components/JsonConfigComponent/DeviceManager/index.d.ts +0 -2
  212. package/Components/JsonConfigComponent/DeviceManager/index.js +0 -10
  213. package/Components/JsonConfigComponent/DeviceManager/index.js.map +0 -1
  214. package/Components/JsonConfigComponent/index.d.ts +0 -26
  215. package/Components/JsonConfigComponent/index.js +0 -520
  216. package/Components/JsonConfigComponent/index.js.map +0 -1
  217. package/Components/JsonConfigComponent/wrapper/AdminConnection.d.ts +0 -2
  218. package/Components/JsonConfigComponent/wrapper/AdminConnection.js +0 -7
  219. package/Components/JsonConfigComponent/wrapper/Components/ColorPicker.d.ts +0 -2
  220. package/Components/JsonConfigComponent/wrapper/Components/ColorPicker.js +0 -10
  221. package/Components/JsonConfigComponent/wrapper/Components/ColorPicker.js.map +0 -1
  222. package/Components/JsonConfigComponent/wrapper/Components/Icon.d.ts +0 -2
  223. package/Components/JsonConfigComponent/wrapper/Components/Icon.js +0 -10
  224. package/Components/JsonConfigComponent/wrapper/Components/Icon.js.map +0 -1
  225. package/Components/JsonConfigComponent/wrapper/Components/TextWithIcon.d.ts +0 -2
  226. package/Components/JsonConfigComponent/wrapper/Components/TextWithIcon.js +0 -10
  227. package/Components/JsonConfigComponent/wrapper/Components/TextWithIcon.js.map +0 -1
  228. package/Components/JsonConfigComponent/wrapper/Components/UploadImage.d.ts +0 -2
  229. package/Components/JsonConfigComponent/wrapper/Components/UploadImage.js +0 -10
  230. package/Components/JsonConfigComponent/wrapper/Components/UploadImage.js.map +0 -1
  231. package/Components/JsonConfigComponent/wrapper/Components/Utils.d.ts +0 -2
  232. package/Components/JsonConfigComponent/wrapper/Components/Utils.js +0 -10
  233. package/Components/JsonConfigComponent/wrapper/Components/Utils.js.map +0 -1
  234. package/Components/JsonConfigComponent/wrapper/Dialogs/Confirm.d.ts +0 -2
  235. package/Components/JsonConfigComponent/wrapper/Dialogs/Confirm.js +0 -10
  236. package/Components/JsonConfigComponent/wrapper/Dialogs/Confirm.js.map +0 -1
  237. package/Components/JsonConfigComponent/wrapper/Dialogs/Cron.d.ts +0 -2
  238. package/Components/JsonConfigComponent/wrapper/Dialogs/Cron.js +0 -10
  239. package/Components/JsonConfigComponent/wrapper/Dialogs/Cron.js.map +0 -1
  240. package/Components/JsonConfigComponent/wrapper/Dialogs/Error.d.ts +0 -2
  241. package/Components/JsonConfigComponent/wrapper/Dialogs/Error.js +0 -10
  242. package/Components/JsonConfigComponent/wrapper/Dialogs/Error.js.map +0 -1
  243. package/Components/JsonConfigComponent/wrapper/Dialogs/Message.d.ts +0 -2
  244. package/Components/JsonConfigComponent/wrapper/Dialogs/Message.js +0 -10
  245. package/Components/JsonConfigComponent/wrapper/Dialogs/Message.js.map +0 -1
  246. package/Components/JsonConfigComponent/wrapper/Dialogs/SelectFile.d.ts +0 -2
  247. package/Components/JsonConfigComponent/wrapper/Dialogs/SelectFile.js +0 -10
  248. package/Components/JsonConfigComponent/wrapper/Dialogs/SelectFile.js.map +0 -1
  249. package/Components/JsonConfigComponent/wrapper/Dialogs/SelectID.d.ts +0 -2
  250. package/Components/JsonConfigComponent/wrapper/Dialogs/SelectID.js +0 -10
  251. package/Components/JsonConfigComponent/wrapper/Dialogs/SelectID.js.map +0 -1
  252. package/Components/JsonConfigComponent/wrapper/i18n.d.ts +0 -2
  253. package/Components/JsonConfigComponent/wrapper/i18n.js +0 -10
  254. package/Components/JsonConfigComponent/wrapper/i18n.js.map +0 -1
  255. package/Components/JsonConfigComponent/wrapper/icons/IconCopy.d.ts +0 -2
  256. package/Components/JsonConfigComponent/wrapper/icons/IconCopy.js +0 -10
  257. package/Components/JsonConfigComponent/wrapper/icons/IconCopy.js.map +0 -1
  258. package/Components/Logo.js.map +0 -1
  259. package/Components/SaveCloseButtons.js.map +0 -1
  260. package/Components/Schedule.js.map +0 -1
  261. package/Components/TabContainer.js.map +0 -1
  262. package/Components/TabContent.js.map +0 -1
  263. package/Components/TabHeader.js.map +0 -1
  264. package/Components/ToggleThemeMenu.js.map +0 -1
  265. package/Dialogs/SelectID.js.map +0 -1
@@ -1,105 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
11
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
12
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
- var _react = _interopRequireDefault(require("react"));
15
- var _propTypes = _interopRequireDefault(require("prop-types"));
16
- var _styles = require("@mui/styles");
17
- var _ConfigGeneric2 = _interopRequireDefault(require("./ConfigGeneric"));
18
- var _i18n = _interopRequireDefault(require("./wrapper/i18n"));
19
- var _Utils = _interopRequireDefault(require("./wrapper/Components/Utils"));
20
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
21
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
22
- var styles = function styles() {
23
- return {
24
- root: {
25
- width: '100%'
26
- },
27
- notAlive: {
28
- color: '#a30000'
29
- }
30
- };
31
- };
32
- var ConfigAlive = /*#__PURE__*/function (_ConfigGeneric) {
33
- (0, _inherits2["default"])(ConfigAlive, _ConfigGeneric);
34
- var _super = _createSuper(ConfigAlive);
35
- function ConfigAlive() {
36
- (0, _classCallCheck2["default"])(this, ConfigAlive);
37
- return _super.apply(this, arguments);
38
- }
39
- (0, _createClass2["default"])(ConfigAlive, [{
40
- key: "componentDidMount",
41
- value: function componentDidMount() {
42
- var _this = this;
43
- (0, _get2["default"])((0, _getPrototypeOf2["default"])(ConfigAlive.prototype), "componentDidMount", this).call(this);
44
- var instance = this.getInstance();
45
- this.props.socket.getState("".concat(instance, ".alive")).then(function (state) {
46
- return _this.setState({
47
- alive: !!(state && state.val),
48
- instance: instance
49
- });
50
- });
51
- }
52
- }, {
53
- key: "getInstance",
54
- value: function getInstance() {
55
- var instance = this.props.schema.instance || "".concat(this.props.adapterName, ".").concat(this.props.instance);
56
- if (instance.includes('${')) {
57
- instance = this.getPattern(instance);
58
- }
59
- if (instance && !instance.startsWith('system.adapter.')) {
60
- instance = "system.adapter.".concat(instance);
61
- }
62
- return instance;
63
- }
64
- }, {
65
- key: "renderItem",
66
- value: function renderItem() {
67
- var _this2 = this;
68
- if (this.getInstance() !== this.state.instance) {
69
- setTimeout(function () {
70
- var instance = _this2.getInstance();
71
- if (instance) {
72
- _this2.props.socket.getState("".concat(instance, ".alive")).then(function (state) {
73
- return _this2.setState({
74
- alive: !!(state && state.val),
75
- instance: instance
76
- });
77
- });
78
- } else {
79
- _this2.setState({
80
- alive: null,
81
- instance: instance
82
- });
83
- }
84
- }, 200);
85
- }
86
- if (this.state.alive !== false && this.state.alive !== true) {
87
- return null;
88
- }
89
- var instance = this.state.instance.replace(/^system.adapter./, '');
90
- return /*#__PURE__*/_react["default"].createElement("div", {
91
- className: _Utils["default"].clsx(this.props.classes.root, !this.state.alive && this.props.classes.notAlive)
92
- }, this.state.alive ? this.props.schema.textAlive !== undefined ? this.props.schema.textAlive ? _i18n["default"].t(this.props.schema.textAlive, instance) : '' : _i18n["default"].t('ra_Instance %s is alive', instance) : this.props.schema.textNotAlive !== undefined ? this.props.schema.textNotAlive ? _i18n["default"].t(this.props.schema.textNotAlive, instance) : '' : _i18n["default"].t('ra_Instance %s is not alive', instance));
93
- }
94
- }]);
95
- return ConfigAlive;
96
- }(_ConfigGeneric2["default"]);
97
- ConfigAlive.propTypes = {
98
- socket: _propTypes["default"].object.isRequired,
99
- data: _propTypes["default"].object.isRequired,
100
- schema: _propTypes["default"].object,
101
- adapterName: _propTypes["default"].string,
102
- instance: _propTypes["default"].number
103
- };
104
- var _default = exports["default"] = (0, _styles.withStyles)(styles)(ConfigAlive);
105
- //# sourceMappingURL=ConfigAlive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfigAlive.js","names":["_react","_interopRequireDefault","require","_propTypes","_styles","_ConfigGeneric2","_i18n","_Utils","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","styles","root","width","notAlive","color","ConfigAlive","_ConfigGeneric","_inherits2","_super","_classCallCheck2","_createClass2","key","value","componentDidMount","_this","_get2","instance","getInstance","props","socket","getState","concat","then","state","setState","alive","val","schema","adapterName","includes","getPattern","startsWith","renderItem","_this2","setTimeout","replace","createElement","className","Utils","clsx","classes","textAlive","undefined","I18n","t","textNotAlive","ConfigGeneric","propTypes","PropTypes","object","isRequired","data","string","number","_default","exports","withStyles"],"sources":["JsonConfigComponent/ConfigAlive.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@mui/styles';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nimport I18n from './wrapper/i18n';\nimport Utils from './wrapper/Components/Utils';\n\nconst styles = () => ({\n root: {\n width: '100%',\n },\n notAlive: {\n color: '#a30000',\n },\n});\n\nclass ConfigAlive extends ConfigGeneric {\n componentDidMount() {\n super.componentDidMount();\n\n const instance = this.getInstance();\n\n this.props.socket.getState(`${instance}.alive`)\n .then(state => this.setState({ alive: !!(state && state.val), instance }));\n }\n\n getInstance() {\n let instance = this.props.schema.instance || (`${this.props.adapterName}.${this.props.instance}`);\n if (instance.includes('${')) {\n instance = this.getPattern(instance);\n }\n if (instance && !instance.startsWith('system.adapter.')) {\n instance = `system.adapter.${instance}`;\n }\n return instance;\n }\n\n renderItem() {\n if (this.getInstance() !== this.state.instance) {\n setTimeout(() => {\n const instance = this.getInstance();\n if (instance) {\n this.props.socket.getState(`${instance}.alive`)\n .then(state => this.setState({ alive: !!(state && state.val), instance }));\n } else {\n this.setState({ alive: null, instance });\n }\n }, 200);\n }\n\n if (this.state.alive !== false && this.state.alive !== true) {\n return null;\n }\n\n const instance = this.state.instance.replace(/^system.adapter./, '');\n return <div className={Utils.clsx(this.props.classes.root, !this.state.alive && this.props.classes.notAlive)}>\n {this.state.alive ?\n this.props.schema.textAlive !== undefined ? (this.props.schema.textAlive ? I18n.t(this.props.schema.textAlive, instance) : '') : I18n.t('ra_Instance %s is alive', instance)\n :\n this.props.schema.textNotAlive !== undefined ? (this.props.schema.textNotAlive ? I18n.t(this.props.schema.textNotAlive, instance) : '') : I18n.t('ra_Instance %s is not alive', instance)}\n </div>;\n }\n}\n\nConfigAlive.propTypes = {\n socket: PropTypes.object.isRequired,\n data: PropTypes.object.isRequired,\n schema: PropTypes.object,\n adapterName: PropTypes.string,\n instance: PropTypes.number,\n};\n\nexport default withStyles(styles)(ConfigAlive);\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,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AAE,GAAI2B,gBAAI,CAACC,CAAC,CAAC,yBAAyB,EAAE5B,QAAQ,CAAC,GAE5K,IAAI,CAACE,KAAK,CAACS,MAAM,CAACkB,YAAY,KAAKH,SAAS,GAAI,IAAI,CAACxB,KAAK,CAACS,MAAM,CAACkB,YAAY,GAAGF,gBAAI,CAACC,CAAC,CAAC,IAAI,CAAC1B,KAAK,CAACS,MAAM,CAACkB,YAAY,EAAE7B,QAAQ,CAAC,GAAG,EAAE,GAAI2B,gBAAI,CAACC,CAAC,CAAC,6BAA6B,EAAE5B,QAAQ,CAC3L,CAAC;IACV;EAAC;EAAA,OAAAX,WAAA;AAAA,EA7CqByC,0BAAa;AAgDvCzC,WAAW,CAAC0C,SAAS,GAAG;EACpB5B,MAAM,EAAE6B,qBAAS,CAACC,MAAM,CAACC,UAAU;EACnCC,IAAI,EAAEH,qBAAS,CAACC,MAAM,CAACC,UAAU;EACjCvB,MAAM,EAAEqB,qBAAS,CAACC,MAAM;EACxBrB,WAAW,EAAEoB,qBAAS,CAACI,MAAM;EAC7BpC,QAAQ,EAAEgC,qBAAS,CAACK;AACxB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEa,IAAAC,kBAAU,EAACxD,MAAM,CAAC,CAACK,WAAW,CAAC"}
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import type AdminConnection from './wrapper/AdminConnection';
3
- import { type ConfigGenericState, type ConfigGenericProps } from './ConfigGeneric';
4
- export interface ConfigAutocompleteState extends ConfigGenericState {
5
- selectOptions: {
6
- value: string;
7
- label: string;
8
- }[];
9
- }
10
- type SchemaOptions = {
11
- label: string;
12
- value: unknown;
13
- }[];
14
- export interface ConfigAutocompleteSchema {
15
- freeSolo?: boolean;
16
- options: SchemaOptions;
17
- placeholder?: string;
18
- label: string;
19
- help: string;
20
- helpLink: string;
21
- noTranslation: boolean;
22
- maxLength: number;
23
- max: number;
24
- }
25
- export interface ConfigAutocompleteProps extends ConfigGenericProps {
26
- socket: AdminConnection;
27
- themeType: string;
28
- themeName: string;
29
- style: Record<string, any>;
30
- className: string;
31
- data: Record<string, any>;
32
- onError: () => void;
33
- onChange: () => void;
34
- schema: ConfigAutocompleteSchema;
35
- }
36
- declare const _default: React.JSXElementConstructor<Omit<ConfigAutocompleteProps, "classes"> & import("@mui/styles").StyledComponentProps<"fullWidth"> & object>;
37
- export default _default;
@@ -1,73 +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 styles_1 = require("@mui/styles");
8
- const material_1 = require("@mui/material");
9
- const i18n_1 = __importDefault(require("./wrapper/i18n"));
10
- const ConfigGeneric_1 = __importDefault(require("./ConfigGeneric"));
11
- const styles = () => ({
12
- fullWidth: {
13
- width: '100%',
14
- },
15
- });
16
- class ConfigAutocomplete extends ConfigGeneric_1.default {
17
- componentDidMount() {
18
- super.componentDidMount();
19
- const value = ConfigGeneric_1.default.getValue(this.props.data, this.props.attr);
20
- const selectOptions = this.props.schema.options.map((item) => (typeof item === 'string' ? { label: item, value: item } : JSON.parse(JSON.stringify(item))));
21
- // if __different
22
- if (Array.isArray(value)) {
23
- selectOptions.unshift({ label: i18n_1.default.t(ConfigGeneric_1.default.DIFFERENT_LABEL), value: ConfigGeneric_1.default.DIFFERENT_VALUE });
24
- this.setState({ value: ConfigGeneric_1.default.DIFFERENT_VALUE, selectOptions });
25
- }
26
- else {
27
- this.setState({ value, selectOptions });
28
- }
29
- }
30
- renderItem(error, disabled) {
31
- if (!this.state.selectOptions) {
32
- return null;
33
- }
34
- let item;
35
- const options = JSON.parse(JSON.stringify(this.state.selectOptions));
36
- const isIndeterminate = Array.isArray(this.state.value) || this.state.value === ConfigGeneric_1.default.DIFFERENT_VALUE;
37
- if (isIndeterminate) {
38
- [...this.state.value]
39
- .filter(val => !options.find(it => it.value === val))
40
- .forEach(it => options.push({ label: it.toString(), value: it }));
41
- item = { label: i18n_1.default.t(ConfigGeneric_1.default.DIFFERENT_LABEL), value: ConfigGeneric_1.default.DIFFERENT_VALUE };
42
- options.unshift(item);
43
- }
44
- else {
45
- // eslint-disable-next-line
46
- item = this.state.value !== null && this.state.value !== undefined && options.find(item => item.value == this.state.value); // let "==" be and not ===
47
- if (this.state.value !== null && this.state.value !== undefined && !item && this.props.schema.freeSolo) {
48
- item = { value: this.state.value, label: this.state.value };
49
- options.push(item);
50
- }
51
- }
52
- return react_1.default.createElement(material_1.Autocomplete, { className: this.props.classes.indeterminate, fullWidth: true, freeSolo: !!this.props.schema.freeSolo, value: item, options: options,
53
- // autoComplete
54
- onInputChange: e => {
55
- if (!e || !this.props.schema.freeSolo) {
56
- return;
57
- }
58
- const val = e.target.value;
59
- if (val !== this.state.value) {
60
- this.setState({ value: val }, () => this.onChange(this.props.attr, val));
61
- }
62
- }, onChange: (_, value) => {
63
- const val = typeof value === 'object' ? (value ? value.value : '') : value;
64
- if (val !== this.state.value) {
65
- this.setState({ value: val }, () => this.onChange(this.props.attr, val));
66
- }
67
- }, getOptionLabel: option => { var _a; return (typeof option === 'object' ? ((_a = option === null || option === void 0 ? void 0 : option.label) !== null && _a !== void 0 ? _a : '') : ''); }, renderInput: params => react_1.default.createElement(material_1.TextField, Object.assign({ variant: "standard" }, params, { error: !!error,
68
- // inputProps are important and will be given in params
69
- // inputProps={{maxLength: this.props.schema.maxLength || this.props.schema.max || undefined}}
70
- placeholder: this.getText(this.props.schema.placeholder), label: this.getText(this.props.schema.label), helperText: this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation), disabled: disabled })) });
71
- }
72
- }
73
- exports.default = (0, styles_1.withStyles)(styles)(ConfigAutocomplete);
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import type { ConfigAutocompleteProps, ConfigAutocompleteSchema } from './ConfigAutocomplete';
3
- interface ConfigAutocompleteSendToSchema extends ConfigAutocompleteSchema {
4
- /** Data to send to adapter as json */
5
- jsonData: Record<string, any>;
6
- /** Command to send to adapter */
7
- command: string;
8
- /** String data to send to instance */
9
- data?: string | null;
10
- /** Resend command if one of the listed attributes change */
11
- alsoDependsOn: boolean;
12
- }
13
- interface ConfigAutocompleteSendToProps extends ConfigAutocompleteProps {
14
- schema: ConfigAutocompleteSendToSchema;
15
- }
16
- declare const _default: React.JSXElementConstructor<Omit<ConfigAutocompleteSendToProps, "classes"> & import("@mui/styles").StyledComponentProps<"fullWidth"> & object>;
17
- export default _default;
@@ -1,131 +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 styles_1 = require("@mui/styles");
8
- const material_1 = require("@mui/material");
9
- const i18n_1 = __importDefault(require("./wrapper/i18n"));
10
- const ConfigGeneric_1 = __importDefault(require("./ConfigGeneric"));
11
- const styles = () => ({
12
- fullWidth: {
13
- width: '100%',
14
- },
15
- });
16
- class ConfigAutocompleteSendTo extends ConfigGeneric_1.default {
17
- componentDidMount() {
18
- super.componentDidMount();
19
- this.askInstance();
20
- }
21
- askInstance() {
22
- const value = ConfigGeneric_1.default.getValue(this.props.data, this.props.attr);
23
- const selectOptions = this.props.schema.options ?
24
- this.props.schema.options.map((item) => (typeof item === 'string' ? { label: item, value: item } : JSON.parse(JSON.stringify(item))))
25
- :
26
- [];
27
- if (this.props.alive) {
28
- let data = this.props.schema.data;
29
- if (data === undefined && this.props.schema.jsonData) {
30
- data = this.getPattern(this.props.schema.jsonData);
31
- try {
32
- if (typeof data === 'string') {
33
- data = JSON.parse(data);
34
- }
35
- }
36
- catch (e) {
37
- console.error(`Cannot parse json data: ${data}`);
38
- }
39
- }
40
- if (data === undefined) {
41
- data = null;
42
- }
43
- this.props.socket.sendTo(`${this.props.adapterName}.${this.props.instance}`, this.props.schema.command || 'send', data)
44
- .then((list) => {
45
- if (list && Array.isArray(list)) {
46
- list.forEach(item => selectOptions.push(typeof item === 'string' ? { label: item, value: item } : JSON.parse(JSON.stringify(item))));
47
- }
48
- // if __different
49
- if (Array.isArray(value)) {
50
- selectOptions.unshift({ label: i18n_1.default.t(ConfigGeneric_1.default.DIFFERENT_LABEL), value: ConfigGeneric_1.default.DIFFERENT_VALUE });
51
- this.setState({ value: ConfigGeneric_1.default.DIFFERENT_VALUE, selectOptions, context: this.getContext() });
52
- }
53
- else {
54
- this.setState({ value, selectOptions, context: this.getContext() });
55
- }
56
- });
57
- }
58
- else if (Array.isArray(value)) {
59
- // if __different
60
- selectOptions.unshift({ label: i18n_1.default.t(ConfigGeneric_1.default.DIFFERENT_LABEL), value: ConfigGeneric_1.default.DIFFERENT_VALUE });
61
- this.setState({ value: ConfigGeneric_1.default.DIFFERENT_VALUE, selectOptions });
62
- }
63
- else {
64
- this.setState({ value, selectOptions });
65
- }
66
- }
67
- getContext() {
68
- const context = {};
69
- if (Array.isArray(this.props.schema.alsoDependsOn)) {
70
- this.props.schema.alsoDependsOn.forEach(attr => context[attr] = ConfigGeneric_1.default.getValue(this.props.data, attr));
71
- }
72
- return JSON.stringify(context);
73
- }
74
- renderItem(error, disabled) {
75
- if (!this.state.selectOptions) {
76
- return null;
77
- }
78
- if (this.props.alive) {
79
- const context = this.getContext();
80
- if (context !== this.state.context) {
81
- setTimeout(() => this.askInstance(), 300);
82
- }
83
- }
84
- let item;
85
- const options = JSON.parse(JSON.stringify(this.state.selectOptions));
86
- const isIndeterminate = Array.isArray(this.state.value) || this.state.value === ConfigGeneric_1.default.DIFFERENT_LABEL;
87
- if (isIndeterminate) {
88
- [...this.state.value]
89
- .filter(val => !options.find((it) => it.value === val))
90
- .forEach(it => options.push({ label: it.toString(), value: it }));
91
- item = { label: i18n_1.default.t(ConfigGeneric_1.default.DIFFERENT_LABEL), value: ConfigGeneric_1.default.DIFFERENT_VALUE };
92
- options.unshift(item);
93
- }
94
- else {
95
- item = this.state.value !== null && this.state.value !== undefined &&
96
- // eslint-disable-next-line
97
- options.find((item) => item.value == this.state.value); // let "==" be and not ===
98
- if (this.state.value !== null && this.state.value !== undefined && !item && this.props.schema.freeSolo) {
99
- item = { value: this.state.value, label: this.state.value };
100
- options.push(item);
101
- }
102
- item = item || null;
103
- }
104
- if (!options.length) {
105
- return react_1.default.createElement(material_1.TextField, { variant: "standard", fullWidth: true, value: this.state.value === null || this.state.value === undefined ? '' : this.state.value, error: !!error, disabled: disabled, inputProps: { maxLength: this.props.schema.maxLength || this.props.schema.max || undefined }, onChange: e => {
106
- const value = e.target.value;
107
- this.setState({ value }, () => this.onChange(this.props.attr, (value || '').trim()));
108
- }, placeholder: this.getText(this.props.schema.placeholder), label: this.getText(this.props.schema.label), helperText: this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation) });
109
- }
110
- return react_1.default.createElement(material_1.Autocomplete, { value: item, fullWidth: true, freeSolo: !!this.props.schema.freeSolo, options: options,
111
- // autoComplete
112
- getOptionLabel: option => { var _a; return (_a = option === null || option === void 0 ? void 0 : option.label) !== null && _a !== void 0 ? _a : ''; }, className: this.props.classes.indeterminate, onInputChange: e => {
113
- if (!e || !this.props.schema.freeSolo) {
114
- return;
115
- }
116
- const val = e.target.value;
117
- if (val !== this.state.value) {
118
- this.setState({ value: val }, () => this.onChange(this.props.attr, val));
119
- }
120
- }, onChange: (_, value) => {
121
- const val = typeof value === 'object' ? (value ? value.value : '') : value;
122
- if (val !== this.state.value) {
123
- this.setState({ value: val }, () => this.onChange(this.props.attr, val));
124
- }
125
- }, renderInput: params => react_1.default.createElement(material_1.TextField, Object.assign({ variant: "standard" }, params, {
126
- // inputProps are important and will be given in params
127
- // inputProps={{maxLength: this.props.schema.maxLength || this.props.schema.max || undefined}}
128
- error: !!error, placeholder: this.getText(this.props.schema.placeholder), label: this.getText(this.props.schema.label), helperText: this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation), disabled: disabled })) });
129
- }
130
- }
131
- exports.default = (0, styles_1.withStyles)(styles)(ConfigAutocompleteSendTo);
@@ -1,15 +0,0 @@
1
- declare const _default: React.JSXElementConstructor<Omit<Pick<import("./ConfigGeneric").ConfigGenericProps, "classes" | "disabled" | "data" | "onChange" | "onError" | "originalData" | "instanceObj" | "customObj" | "schema" | "attr" | "custom" | "forceUpdate" | "alive" | "systemConfig" | "socket" | "changed" | "adapterName" | "instance" | "common" | "themeType"> & Pick<PropTypes.InferProps<{
2
- themeType: PropTypes.Requireable<string>;
3
- themeName: PropTypes.Requireable<string>;
4
- style: PropTypes.Requireable<object>;
5
- className: PropTypes.Requireable<string>;
6
- data: PropTypes.Validator<object>;
7
- schema: PropTypes.Requireable<object>;
8
- onError: PropTypes.Requireable<(...args: any[]) => any>;
9
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
10
- dateFormat: PropTypes.Requireable<string>;
11
- isFloatComma: PropTypes.Requireable<boolean>;
12
- }>, "style" | "className" | "themeName" | "dateFormat" | "isFloatComma"> & Pick<import("./ConfigGeneric").ConfigGenericProps, "classes" | "disabled" | "originalData" | "instanceObj" | "customObj" | "arrayIndex" | "globalData" | "registerOnForceUpdate" | "attr" | "custom" | "forceUpdate" | "alive" | "systemConfig" | "socket" | "changed" | "adapterName" | "instance" | "common" | "commandRunning">, "classes"> & import("@mui/styles").StyledComponentProps<"fullWidth" | "flex" | "button"> & object>;
13
- export default _default;
14
- import PropTypes from 'prop-types';
15
- import React from 'react';
@@ -1,157 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
- var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
13
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
15
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
16
- var _react = _interopRequireDefault(require("react"));
17
- var _propTypes = _interopRequireDefault(require("prop-types"));
18
- var _styles = require("@mui/styles");
19
- var _material = require("@mui/material");
20
- var _i18n = _interopRequireDefault(require("./wrapper/i18n"));
21
- var _Cron = _interopRequireDefault(require("./wrapper/Dialogs/Cron"));
22
- var _ConfigGeneric2 = _interopRequireDefault(require("./ConfigGeneric"));
23
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
24
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25
- var styles = function styles() {
26
- return {
27
- fullWidth: {
28
- width: '100%'
29
- },
30
- flex: {
31
- display: 'flex'
32
- },
33
- button: {
34
- height: 48,
35
- marginLeft: 4,
36
- minWidth: 48
37
- }
38
- };
39
- };
40
- var ConfigCRON = /*#__PURE__*/function (_ConfigGeneric) {
41
- (0, _inherits2["default"])(ConfigCRON, _ConfigGeneric);
42
- var _super = _createSuper(ConfigCRON);
43
- function ConfigCRON() {
44
- (0, _classCallCheck2["default"])(this, ConfigCRON);
45
- return _super.apply(this, arguments);
46
- }
47
- (0, _createClass2["default"])(ConfigCRON, [{
48
- key: "componentDidMount",
49
- value: function () {
50
- var _componentDidMount = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
51
- var _this$props, data, attr, value;
52
- return _regenerator["default"].wrap(function _callee$(_context) {
53
- while (1) switch (_context.prev = _context.next) {
54
- case 0:
55
- (0, _get2["default"])((0, _getPrototypeOf2["default"])(ConfigCRON.prototype), "componentDidMount", this).call(this);
56
- _this$props = this.props, data = _this$props.data, attr = _this$props.attr;
57
- value = _ConfigGeneric2["default"].getValue(data, attr) || '';
58
- this.setState({
59
- value: value,
60
- showDialog: false
61
- });
62
- case 4:
63
- case "end":
64
- return _context.stop();
65
- }
66
- }, _callee, this);
67
- }));
68
- function componentDidMount() {
69
- return _componentDidMount.apply(this, arguments);
70
- }
71
- return componentDidMount;
72
- }()
73
- }, {
74
- key: "renderItem",
75
- value: function renderItem(error, disabled /* , defaultValue */) {
76
- var _this = this;
77
- var _this$props2 = this.props,
78
- classes = _this$props2.classes,
79
- schema = _this$props2.schema,
80
- attr = _this$props2.attr;
81
- var _this$state = this.state,
82
- value = _this$state.value,
83
- showDialog = _this$state.showDialog;
84
- return /*#__PURE__*/_react["default"].createElement(_material.FormControl, {
85
- className: classes.fullWidth,
86
- variant: "standard"
87
- }, schema.label ? /*#__PURE__*/_react["default"].createElement(_material.InputLabel, {
88
- shrink: true
89
- }, this.getText(schema.label)) : null, /*#__PURE__*/_react["default"].createElement("div", {
90
- className: classes.flex
91
- }, /*#__PURE__*/_react["default"].createElement(_material.TextField, {
92
- variant: "standard",
93
- fullWidth: true,
94
- value: value !== null && value !== void 0 ? value : '',
95
- error: !!error,
96
- disabled: disabled,
97
- placeholder: this.getText(schema.placeholder),
98
- label: this.getText(schema.label),
99
- helperText: this.renderHelp(schema.help, schema.helpLink, schema.noTranslation),
100
- onChange: function onChange(e) {
101
- var value_ = e.target.value;
102
- _this.setState({
103
- value: value_
104
- }, function () {
105
- return _this.onChange(attr, value_);
106
- });
107
- }
108
- }), /*#__PURE__*/_react["default"].createElement(_material.Button, {
109
- color: "grey",
110
- className: this.props.classes.button,
111
- size: "small",
112
- variant: "outlined",
113
- onClick: function onClick() {
114
- return _this.setState({
115
- showDialog: true
116
- });
117
- }
118
- }, "...")), showDialog ? /*#__PURE__*/_react["default"].createElement(_Cron["default"], {
119
- title: _i18n["default"].t('ra_Define schedule'),
120
- simple: schema.simple,
121
- complex: schema.complex,
122
- cron: value,
123
- language: _i18n["default"].getLanguage(),
124
- onClose: function onClose() {
125
- return _this.setState({
126
- showDialog: false
127
- });
128
- },
129
- cancel: _i18n["default"].t('ra_Cancel'),
130
- ok: _i18n["default"].t('ra_Ok'),
131
- onOk: function onOk(value_) {
132
- return _this.setState({
133
- showDialog: false,
134
- value: value_
135
- }, function () {
136
- return _this.onChange(attr, value_);
137
- });
138
- }
139
- }) : null);
140
- }
141
- }]);
142
- return ConfigCRON;
143
- }(_ConfigGeneric2["default"]);
144
- ConfigCRON.propTypes = {
145
- themeType: _propTypes["default"].string,
146
- themeName: _propTypes["default"].string,
147
- style: _propTypes["default"].object,
148
- className: _propTypes["default"].string,
149
- data: _propTypes["default"].object.isRequired,
150
- schema: _propTypes["default"].object,
151
- onError: _propTypes["default"].func,
152
- onChange: _propTypes["default"].func,
153
- dateFormat: _propTypes["default"].string,
154
- isFloatComma: _propTypes["default"].bool
155
- };
156
- var _default = exports["default"] = (0, _styles.withStyles)(styles)(ConfigCRON);
157
- //# sourceMappingURL=ConfigCRON.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfigCRON.js","names":["_react","_interopRequireDefault","require","_propTypes","_styles","_material","_i18n","_Cron","_ConfigGeneric2","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","styles","fullWidth","width","flex","display","button","height","marginLeft","minWidth","ConfigCRON","_ConfigGeneric","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_componentDidMount","_asyncToGenerator2","_regenerator","mark","_callee","_this$props","data","attr","wrap","_callee$","_context","prev","next","_get2","props","ConfigGeneric","getValue","setState","showDialog","stop","componentDidMount","renderItem","error","disabled","_this","_this$props2","classes","schema","_this$state","state","createElement","FormControl","className","variant","label","InputLabel","shrink","getText","TextField","placeholder","helperText","renderHelp","help","helpLink","noTranslation","onChange","value_","target","Button","color","size","onClick","title","I18n","t","simple","complex","cron","language","getLanguage","onClose","cancel","ok","onOk","propTypes","themeType","PropTypes","string","themeName","style","object","isRequired","onError","func","dateFormat","isFloatComma","bool","_default","exports","withStyles"],"sources":["JsonConfigComponent/ConfigCRON.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@mui/styles';\n\nimport {\n InputLabel,\n FormControl,\n Button,\n TextField,\n} from '@mui/material';\n\nimport I18n from './wrapper/i18n';\nimport DialogCron from './wrapper/Dialogs/Cron';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nconst styles = () => ({\n fullWidth: {\n width: '100%',\n },\n flex: {\n display: 'flex',\n },\n button: {\n height: 48,\n marginLeft: 4,\n minWidth: 48,\n },\n});\n\nclass ConfigCRON extends ConfigGeneric {\n async componentDidMount() {\n super.componentDidMount();\n const { data, attr } = this.props;\n const value = ConfigGeneric.getValue(data, attr) || '';\n this.setState({ value, showDialog: false });\n }\n\n renderItem(error, disabled /* , defaultValue */) {\n const { classes, schema, attr } = this.props;\n const { value, showDialog } = this.state;\n\n return (\n <FormControl className={classes.fullWidth} variant=\"standard\">\n {schema.label ? <InputLabel shrink>{this.getText(schema.label)}</InputLabel> : null}\n <div className={classes.flex}>\n <TextField\n variant=\"standard\"\n fullWidth\n value={value ?? ''}\n error={!!error}\n disabled={disabled}\n placeholder={this.getText(schema.placeholder)}\n label={this.getText(schema.label)}\n helperText={this.renderHelp(schema.help, schema.helpLink, schema.noTranslation)}\n onChange={e => {\n const value_ = e.target.value;\n this.setState({ value: value_ }, () => this.onChange(attr, value_));\n }}\n />\n <Button\n color=\"grey\"\n className={this.props.classes.button}\n size=\"small\"\n variant=\"outlined\"\n onClick={() => this.setState({ showDialog: true })}\n >\n ...\n </Button>\n </div>\n {showDialog ? (\n <DialogCron\n title={I18n.t('ra_Define schedule')}\n simple={schema.simple}\n complex={schema.complex}\n cron={value}\n language={I18n.getLanguage()}\n onClose={() => this.setState({ showDialog: false })}\n cancel={I18n.t('ra_Cancel')}\n ok={I18n.t('ra_Ok')}\n onOk={value_ => this.setState({ showDialog: false, value: value_ }, () => this.onChange(attr, value_))}\n />\n ) : null}\n </FormControl>\n );\n }\n}\n\nConfigCRON.propTypes = {\n themeType: PropTypes.string,\n themeName: PropTypes.string,\n style: PropTypes.object,\n className: PropTypes.string,\n data: PropTypes.object.isRequired,\n schema: PropTypes.object,\n onError: PropTypes.func,\n onChange: PropTypes.func,\n dateFormat: PropTypes.string,\n isFloatComma: PropTypes.bool,\n};\n\nexport default withStyles(styles)(ConfigCRON);\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AAOA,IAAAI,KAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,KAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,IAAAM,eAAA,GAAAP,sBAAA,CAAAC,OAAA;AAA4C,SAAAO,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SA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CAACU;AAC5B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEa,IAAAC,kBAAU,EAAChG,MAAM,CAAC,CAACS,UAAU,CAAC"}
@@ -1,14 +0,0 @@
1
- declare const _default: React.JSXElementConstructor<Omit<Pick<import("./ConfigGeneric").ConfigGenericProps, "classes" | "disabled" | "data" | "onChange" | "onError" | "originalData" | "instanceObj" | "customObj" | "schema" | "attr" | "custom" | "forceUpdate" | "alive" | "systemConfig" | "socket" | "changed" | "adapterName" | "instance" | "common" | "themeType"> & Pick<PropTypes.InferProps<{
2
- socket: PropTypes.Validator<object>;
3
- themeType: PropTypes.Requireable<string>;
4
- themeName: PropTypes.Requireable<string>;
5
- style: PropTypes.Requireable<object>;
6
- className: PropTypes.Requireable<string>;
7
- data: PropTypes.Validator<object>;
8
- schema: PropTypes.Requireable<object>;
9
- onError: PropTypes.Requireable<(...args: any[]) => any>;
10
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
11
- }>, "style" | "className" | "themeName"> & Pick<import("./ConfigGeneric").ConfigGenericProps, "classes" | "disabled" | "originalData" | "instanceObj" | "customObj" | "arrayIndex" | "globalData" | "registerOnForceUpdate" | "attr" | "custom" | "forceUpdate" | "alive" | "systemConfig" | "changed" | "adapterName" | "instance" | "common" | "commandRunning">, "classes"> & import("@mui/styles").StyledComponentProps<"fullWidth"> & object>;
12
- export default _default;
13
- import PropTypes from 'prop-types';
14
- import React from 'react';