@iobroker/adapter-react-v5 4.8.1 → 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 +6 -2
  23. package/i18n.d.ts +2 -2
  24. package/index.d.ts +127 -126
  25. package/index.js +213 -192
  26. package/package.json +6 -7
  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 -226
  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,45 +1,17 @@
1
- export default _export;
2
- export type TabContainerProps = {
3
- /**
4
- * The elevation of the tab container.
5
- */
1
+ import React from 'react';
2
+ interface TabContainerProps {
6
3
  elevation?: number;
7
- /**
8
- * Set to 'visible' show the overflow.
9
- */
10
4
  overflow?: string;
11
- /**
12
- * The styling class names.
13
- */
5
+ className?: string;
6
+ onKeyDown?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
7
+ tabIndex?: number;
14
8
  classes: {
15
9
  root: string;
16
10
  overflowHidden: string;
17
11
  container: string;
18
12
  };
19
- };
20
- /** @type {typeof TabContainer} */
21
- declare const _export: typeof TabContainer;
22
- /**
23
- * @typedef {object} TabContainerProps
24
- * @property {number} [elevation] The elevation of the tab container.
25
- * @property {string} [overflow] Set to 'visible' show the overflow.
26
- * @property {{ [key in keyof styles]: string}} classes The styling class names.
27
- *
28
- * @extends {React.Component<TabContainerProps>}
29
- */
30
- declare class TabContainer extends React.Component<TabContainerProps, any, any> {
31
- constructor(props: TabContainerProps | Readonly<TabContainerProps>);
32
- constructor(props: TabContainerProps, context: any);
33
- render(): React.JSX.Element;
34
- }
35
- declare namespace TabContainer {
36
- namespace propTypes {
37
- let elevation: PropTypes.Requireable<number>;
38
- let overflow: PropTypes.Requireable<string>;
39
- let className: PropTypes.Requireable<string>;
40
- let onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
41
- let tabIndex: PropTypes.Requireable<number>;
42
- }
13
+ children: React.ReactNode;
43
14
  }
44
- import React from 'react';
45
- import PropTypes from 'prop-types';
15
+ /** @type {typeof TabContainer} */
16
+ declare const _export: React.JSXElementConstructor<Omit<TabContainerProps, "classes"> & import("@mui/styles").StyledComponentProps<"container" | "root" | "overflowHidden"> & object>;
17
+ export default _export;
@@ -1,79 +1,54 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
6
17
  });
7
- exports["default"] = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
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 _styles = require("@mui/styles");
16
- var _propTypes = _interopRequireDefault(require("prop-types"));
17
- var _material = require("@mui/material");
18
- var _Utils = _interopRequireDefault(require("./Utils"));
19
- 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); }; }
20
- 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; } } // please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined
21
- var styles = {
22
- root: {
23
- width: '100%',
24
- height: '100%'
25
- },
26
- overflowHidden: {
27
- overflow: 'hidden'
28
- },
29
- container: {
30
- height: '100%'
31
- }
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
32
24
  };
33
-
34
- /**
35
- * @typedef {object} TabContainerProps
36
- * @property {number} [elevation] The elevation of the tab container.
37
- * @property {string} [overflow] Set to 'visible' show the overflow.
38
- * @property {{ [key in keyof styles]: string}} classes The styling class names.
39
- *
40
- * @extends {React.Component<TabContainerProps>}
41
- */
42
- var TabContainer = /*#__PURE__*/function (_React$Component) {
43
- (0, _inherits2["default"])(TabContainer, _React$Component);
44
- var _super = _createSuper(TabContainer);
45
- function TabContainer() {
46
- (0, _classCallCheck2["default"])(this, TabContainer);
47
- return _super.apply(this, arguments);
48
- }
49
- (0, _createClass2["default"])(TabContainer, [{
50
- key: "render",
51
- value: function render() {
52
- var classes = this.props.classes;
53
- return /*#__PURE__*/_react["default"].createElement(_material.Paper, {
54
- elevation: !Number.isNaN(this.props.elevation) ? this.props.elevation : 1,
55
- className: _Utils["default"].clsx(classes.root, (0, _defineProperty2["default"])({}, classes.overflowHidden, this.props.overflow !== 'visible'), this.props.className),
56
- onKeyDown: this.props.onKeyDown,
57
- tabIndex: this.props.tabIndex
58
- }, /*#__PURE__*/_react["default"].createElement(_material.Grid, {
59
- container: true,
60
- direction: "column",
61
- wrap: "nowrap",
62
- className: classes.container
63
- }, this.props.children));
64
- }
65
- }]);
66
- return TabContainer;
67
- }(_react["default"].Component);
68
- TabContainer.propTypes = {
69
- elevation: _propTypes["default"].number,
70
- overflow: _propTypes["default"].string,
71
- className: _propTypes["default"].string,
72
- onKeyDown: _propTypes["default"].func,
73
- tabIndex: _propTypes["default"].number
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
74
27
  };
75
-
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ const react_1 = __importStar(require("react"));
30
+ const styles_1 = require("@mui/styles");
31
+ const material_1 = require("@mui/material");
32
+ const Utils_1 = __importDefault(require("./Utils"));
33
+ const styles = {
34
+ root: {
35
+ width: '100%',
36
+ height: '100%',
37
+ },
38
+ overflowHidden: {
39
+ overflow: 'hidden',
40
+ },
41
+ container: {
42
+ height: '100%',
43
+ },
44
+ };
45
+ class TabContainer extends react_1.Component {
46
+ render() {
47
+ const { classes } = this.props;
48
+ return react_1.default.createElement(material_1.Paper, { elevation: !Number.isNaN(this.props.elevation) ? this.props.elevation : 1, className: Utils_1.default.clsx(classes.root, { [classes.overflowHidden]: this.props.overflow !== 'visible' }, this.props.className), onKeyDown: this.props.onKeyDown, tabIndex: this.props.tabIndex },
49
+ react_1.default.createElement(material_1.Grid, { container: true, direction: "column", wrap: "nowrap", className: classes.container }, this.props.children));
50
+ }
51
+ }
76
52
  /** @type {typeof TabContainer} */
77
- var _export = (0, _styles.withStyles)(styles)(TabContainer);
78
- var _default = exports["default"] = _export;
79
- //# sourceMappingURL=TabContainer.js.map
53
+ const _export = (0, styles_1.withStyles)(styles)(TabContainer);
54
+ exports.default = _export;
@@ -1,33 +1,12 @@
1
- export default _export;
2
- export type TabContentProps = {
1
+ import React from 'react';
2
+ interface TabContentProps {
3
3
  overflow?: string;
4
- /**
5
- * The styling class names.
6
- */
7
4
  classes: {
8
5
  root: string;
9
6
  overflowAuto: string;
10
7
  };
11
- };
12
- /** @type {typeof TabContent} */
13
- declare const _export: typeof TabContent;
14
- /**
15
- * @typedef {object} TabContentProps
16
- * @property {string} [overflow]
17
- * @property {{ [key in keyof styles]: string}} classes The styling class names.
18
- *
19
- * @extends {React.Component<TabContentProps>}
20
- */
21
- declare class TabContent extends React.Component<TabContentProps, any, any> {
22
- constructor(props: TabContentProps | Readonly<TabContentProps>);
23
- constructor(props: TabContentProps, context: any);
24
- render(): React.JSX.Element;
25
- }
26
- declare namespace TabContent {
27
- namespace propTypes {
28
- let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
29
- let overflow: PropTypes.Requireable<string>;
30
- }
8
+ children: React.ReactNode;
31
9
  }
32
- import React from 'react';
33
- import PropTypes from 'prop-types';
10
+ /** @type {typeof TabContent} */
11
+ declare const _export: React.JSXElementConstructor<Omit<TabContentProps, "classes"> & import("@mui/styles").StyledComponentProps<"root" | "overflowAuto"> & object>;
12
+ export default _export;
@@ -1,71 +1,28 @@
1
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 _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
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 _styles = require("@mui/styles");
16
- var _propTypes = _interopRequireDefault(require("prop-types"));
17
- var _material = require("@mui/material");
18
- var _Utils = _interopRequireDefault(require("./Utils"));
19
- 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); }; }
20
- 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; } } // please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined
21
- var styles = {
22
- root: {
23
- height: '100%',
24
- overflow: 'hidden'
25
- },
26
- overflowAuto: {
27
- overflow: 'auto'
28
- }
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
29
4
  };
30
-
31
- /**
32
- * @typedef {object} TabContentProps
33
- * @property {string} [overflow]
34
- * @property {{ [key in keyof styles]: string}} classes The styling class names.
35
- *
36
- * @extends {React.Component<TabContentProps>}
37
- */
38
- var TabContent = /*#__PURE__*/function (_React$Component) {
39
- (0, _inherits2["default"])(TabContent, _React$Component);
40
- var _super = _createSuper(TabContent);
41
- function TabContent() {
42
- (0, _classCallCheck2["default"])(this, TabContent);
43
- return _super.apply(this, arguments);
44
- }
45
- (0, _createClass2["default"])(TabContent, [{
46
- key: "render",
47
- value: function render() {
48
- var classes = this.props.classes;
49
- return /*#__PURE__*/_react["default"].createElement(_material.Grid, {
50
- item: true,
51
- className: _Utils["default"].clsx(classes.root, (0, _defineProperty2["default"])({}, classes.overflowAuto, this.props.overflow === 'auto'))
52
- }, this.props.children);
53
- }
54
- }]);
55
- return TabContent;
56
- }(_react["default"].Component);
57
- TabContent.propTypes = {
58
- /**
59
- * The content of the component.
60
- */
61
- children: _propTypes["default"].node,
62
- /**
63
- * Overflow behavior
64
- */
65
- overflow: _propTypes["default"].string
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ // please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined
7
+ const react_1 = __importDefault(require("react"));
8
+ const styles_1 = require("@mui/styles");
9
+ const material_1 = require("@mui/material");
10
+ const Utils_1 = __importDefault(require("./Utils"));
11
+ const styles = {
12
+ root: {
13
+ height: '100%',
14
+ overflow: 'hidden',
15
+ },
16
+ overflowAuto: {
17
+ overflow: 'auto',
18
+ },
66
19
  };
67
-
20
+ class TabContent extends react_1.default.Component {
21
+ render() {
22
+ const { classes } = this.props;
23
+ return react_1.default.createElement(material_1.Grid, { item: true, className: Utils_1.default.clsx(classes.root, this.props.overflow === 'auto' ? classes.overflowAuto : '') }, this.props.children);
24
+ }
25
+ }
68
26
  /** @type {typeof TabContent} */
69
- var _export = (0, _styles.withStyles)(styles)(TabContent);
70
- var _default = exports["default"] = _export;
71
- //# sourceMappingURL=TabContent.js.map
27
+ const _export = (0, styles_1.withStyles)(styles)(TabContent);
28
+ exports.default = _export;
@@ -1,13 +1,8 @@
1
- export default TabHeader;
2
- export type TabHeaderProps = object;
3
- /**
4
- * @typedef {object} TabHeaderProps
5
- *
6
- * @extends {React.Component<TabHeaderProps>}
7
- */
8
- declare class TabHeader extends React.Component<any, any, any> {
9
- constructor(props: any);
10
- constructor(props: any, context: any);
1
+ import React from 'react';
2
+ interface TabHeaderProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare class TabHeader extends React.Component<TabHeaderProps> {
11
6
  render(): React.JSX.Element;
12
7
  }
13
- import React from 'react';
8
+ export default TabHeader;
@@ -1,42 +1,13 @@
1
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 _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
11
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
- var _react = _interopRequireDefault(require("react"));
14
- var _material = require("@mui/material");
15
- 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); }; }
16
- 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; } } // please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined
17
- /**
18
- * @typedef {object} TabHeaderProps
19
- *
20
- * @extends {React.Component<TabHeaderProps>}
21
- */
22
- var TabHeader = /*#__PURE__*/function (_React$Component) {
23
- (0, _inherits2["default"])(TabHeader, _React$Component);
24
- var _super = _createSuper(TabHeader);
25
- function TabHeader() {
26
- (0, _classCallCheck2["default"])(this, TabHeader);
27
- return _super.apply(this, arguments);
28
- }
29
- (0, _createClass2["default"])(TabHeader, [{
30
- key: "render",
31
- value: function render() {
32
- return /*#__PURE__*/_react["default"].createElement(_material.Grid, {
33
- item: true,
34
- container: true,
35
- alignItems: "center"
36
- }, this.props.children);
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const material_1 = require("@mui/material");
8
+ class TabHeader extends react_1.default.Component {
9
+ render() {
10
+ return react_1.default.createElement(material_1.Grid, { item: true, container: true, alignItems: "center" }, this.props.children);
37
11
  }
38
- }]);
39
- return TabHeader;
40
- }(_react["default"].Component);
41
- var _default = exports["default"] = TabHeader;
42
- //# sourceMappingURL=TabHeader.js.map
12
+ }
13
+ exports.default = TabHeader;
@@ -1,9 +1,11 @@
1
- export default function ToggleThemeMenu({ themeName, toggleTheme, t, className, style, size, }: {
2
- themeName: any;
3
- toggleTheme: any;
4
- t: any;
5
- className: any;
6
- style: any;
7
- size: any;
8
- }): React.JSX.Element;
9
1
  import React from 'react';
2
+ interface ToggleThemeMenuProps {
3
+ themeName: 'dark' | 'blue' | 'colored' | 'light';
4
+ toggleTheme: () => void;
5
+ t: (key: string) => string;
6
+ className?: string;
7
+ style?: React.CSSProperties;
8
+ size?: 'small' | 'medium' | 'large';
9
+ }
10
+ export default function ToggleThemeMenu({ themeName, toggleTheme, t, className, style, size, }: ToggleThemeMenuProps): React.JSX.Element;
11
+ export {};
@@ -1,38 +1,18 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = ToggleThemeMenu;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _material = require("@mui/material");
10
- var _iconsMaterial = require("@mui/icons-material");
11
- function ToggleThemeMenu(_ref) {
12
- var themeName = _ref.themeName,
13
- toggleTheme = _ref.toggleTheme,
14
- t = _ref.t,
15
- className = _ref.className,
16
- style = _ref.style,
17
- size = _ref.size;
18
- return /*#__PURE__*/_react["default"].createElement("div", {
19
- className: className || undefined,
20
- style: style || undefined
21
- }, /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
22
- title: t('ra_Change color theme')
23
- }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
24
- onClick: function onClick() {
25
- return toggleTheme();
26
- },
27
- size: size || 'medium'
28
- }, themeName === 'dark' && /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Brightness4, {
29
- className: className
30
- }), themeName === 'blue' && /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Brightness5, {
31
- className: className
32
- }), themeName === 'colored' && /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Brightness6, {
33
- className: className
34
- }), themeName !== 'dark' && themeName !== 'blue' && themeName !== 'colored' && /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Brightness7, {
35
- className: className
36
- }))));
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const material_1 = require("@mui/material");
8
+ const icons_material_1 = require("@mui/icons-material");
9
+ function ToggleThemeMenu({ themeName, toggleTheme, t, className, style, size, }) {
10
+ return react_1.default.createElement("div", { className: className || undefined, style: style || undefined },
11
+ react_1.default.createElement(material_1.Tooltip, { title: t('ra_Change color theme') },
12
+ react_1.default.createElement(material_1.IconButton, { onClick: () => toggleTheme(), size: size || 'medium' },
13
+ themeName === 'dark' && react_1.default.createElement(icons_material_1.Brightness4, { className: className }),
14
+ themeName === 'blue' && react_1.default.createElement(icons_material_1.Brightness5, { className: className }),
15
+ themeName === 'colored' && react_1.default.createElement(icons_material_1.Brightness6, { className: className }),
16
+ themeName !== 'dark' && themeName !== 'blue' && themeName !== 'colored' && react_1.default.createElement(icons_material_1.Brightness7, { className: className }))));
37
17
  }
38
- //# sourceMappingURL=ToggleThemeMenu.js.map
18
+ exports.default = ToggleThemeMenu;
@@ -61,8 +61,16 @@ export interface ObjectBrowserTableFilter {
61
61
  export type ObjectBrowserColumn = 'name' | 'type' | 'role' | 'room' | 'func' | 'val' | 'buttons';
62
62
 
63
63
  export interface ObjectBrowserCustomFilter {
64
- type: string;
65
- common: { custom: string | boolean; };
64
+ type?: string | string[];
65
+ common?: {
66
+ type?: string | string[];
67
+ role?: string | string[];
68
+ // If "_" - no custom set
69
+ // If "_dataSources" - only data sources (history, sql, influxdb, ...)
70
+ // Else "telegram." or something like this
71
+ // `true` - If common.custom not empty
72
+ custom?: '_' | '_dataSources' | true | string;
73
+ };
66
74
  }
67
75
 
68
76
  export type ObjectBrowserType = 'state' | 'instance' | 'channel';