@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.
- package/Components/Logo.d.ts +9 -50
- package/Components/Logo.js +106 -173
- package/Components/ObjectBrowser.d.ts +9 -0
- package/Components/ObjectBrowser.js +370 -165
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/SaveCloseButtons.d.ts +17 -61
- package/Components/SaveCloseButtons.js +64 -124
- package/Components/Schedule.d.ts +31 -6
- package/Components/Schedule.js +1144 -1562
- package/Components/TabContainer.d.ts +9 -37
- package/Components/TabContainer.js +49 -74
- package/Components/TabContent.d.ts +6 -27
- package/Components/TabContent.js +24 -67
- package/Components/TabHeader.d.ts +6 -11
- package/Components/TabHeader.js +11 -40
- package/Components/ToggleThemeMenu.d.ts +10 -8
- package/Components/ToggleThemeMenu.js +16 -36
- package/Components/types.d.ts +10 -2
- package/Dialogs/SelectID.d.ts +39 -114
- package/Dialogs/SelectID.js +141 -246
- package/LegacyConnection.d.ts +1 -1
- package/README.md +6 -2
- package/i18n.d.ts +2 -2
- package/index.d.ts +127 -126
- package/index.js +213 -192
- package/package.json +6 -7
- package/Components/JsonConfigComponent/ChipInput.d.ts +0 -12
- package/Components/JsonConfigComponent/ChipInput.js +0 -763
- package/Components/JsonConfigComponent/ChipInput.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigAccordion.d.ts +0 -15
- package/Components/JsonConfigComponent/ConfigAccordion.js +0 -348
- package/Components/JsonConfigComponent/ConfigAccordion.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigAlive.d.ts +0 -10
- package/Components/JsonConfigComponent/ConfigAlive.js +0 -105
- package/Components/JsonConfigComponent/ConfigAlive.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigAutocomplete.d.ts +0 -37
- package/Components/JsonConfigComponent/ConfigAutocomplete.js +0 -73
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.d.ts +0 -17
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js +0 -131
- package/Components/JsonConfigComponent/ConfigCRON.d.ts +0 -15
- package/Components/JsonConfigComponent/ConfigCRON.js +0 -157
- package/Components/JsonConfigComponent/ConfigCRON.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCertCollection.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigCertCollection.js +0 -128
- package/Components/JsonConfigComponent/ConfigCertCollection.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCertificateSelect.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js +0 -149
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCertificates.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigCertificates.js +0 -284
- package/Components/JsonConfigComponent/ConfigCertificates.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCheckLicense.d.ts +0 -3
- package/Components/JsonConfigComponent/ConfigCheckLicense.js +0 -821
- package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCheckbox.d.ts +0 -15
- package/Components/JsonConfigComponent/ConfigCheckbox.js +0 -40
- package/Components/JsonConfigComponent/ConfigChip.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigChip.js +0 -120
- package/Components/JsonConfigComponent/ConfigChip.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigColor.d.ts +0 -22
- package/Components/JsonConfigComponent/ConfigColor.js +0 -120
- package/Components/JsonConfigComponent/ConfigColor.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCoordinates.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigCoordinates.js +0 -265
- package/Components/JsonConfigComponent/ConfigCoordinates.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCustom.d.ts +0 -26
- package/Components/JsonConfigComponent/ConfigCustom.js +0 -316
- package/Components/JsonConfigComponent/ConfigCustom.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigDatePicker.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigDatePicker.js +0 -91
- package/Components/JsonConfigComponent/ConfigDatePicker.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigDeviceManager.d.ts +0 -6
- package/Components/JsonConfigComponent/ConfigDeviceManager.js +0 -18
- package/Components/JsonConfigComponent/ConfigFile.d.ts +0 -15
- package/Components/JsonConfigComponent/ConfigFile.js +0 -228
- package/Components/JsonConfigComponent/ConfigFile.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigFileSelector.d.ts +0 -3
- package/Components/JsonConfigComponent/ConfigFileSelector.js +0 -625
- package/Components/JsonConfigComponent/ConfigFileSelector.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigFunc.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigFunc.js +0 -124
- package/Components/JsonConfigComponent/ConfigFunc.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigGeneric.d.ts +0 -95
- package/Components/JsonConfigComponent/ConfigGeneric.js +0 -646
- package/Components/JsonConfigComponent/ConfigIP.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigIP.js +0 -130
- package/Components/JsonConfigComponent/ConfigIP.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigImageSendTo.d.ts +0 -10
- package/Components/JsonConfigComponent/ConfigImageSendTo.js +0 -114
- package/Components/JsonConfigComponent/ConfigImageSendTo.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigImageUpload.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigImageUpload.js +0 -166
- package/Components/JsonConfigComponent/ConfigImageUpload.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigInstanceSelect.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js +0 -264
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigInterface.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigInterface.js +0 -146
- package/Components/JsonConfigComponent/ConfigInterface.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +0 -13
- package/Components/JsonConfigComponent/ConfigJsonEditor.js +0 -145
- package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigLanguage.d.ts +0 -7
- package/Components/JsonConfigComponent/ConfigLanguage.js +0 -110
- package/Components/JsonConfigComponent/ConfigLicense.d.ts +0 -24
- package/Components/JsonConfigComponent/ConfigLicense.js +0 -183
- package/Components/JsonConfigComponent/ConfigLicense.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigNumber.d.ts +0 -17
- package/Components/JsonConfigComponent/ConfigNumber.js +0 -117
- package/Components/JsonConfigComponent/ConfigObjectId.d.ts +0 -17
- package/Components/JsonConfigComponent/ConfigObjectId.js +0 -167
- package/Components/JsonConfigComponent/ConfigObjectId.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigPanel.d.ts +0 -3
- package/Components/JsonConfigComponent/ConfigPanel.js +0 -396
- package/Components/JsonConfigComponent/ConfigPanel.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigPassword.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigPassword.js +0 -193
- package/Components/JsonConfigComponent/ConfigPassword.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigPattern.d.ts +0 -21
- package/Components/JsonConfigComponent/ConfigPattern.js +0 -65
- package/Components/JsonConfigComponent/ConfigPattern.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigPort.d.ts +0 -3
- package/Components/JsonConfigComponent/ConfigPort.js +0 -176
- package/Components/JsonConfigComponent/ConfigRoom.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigRoom.js +0 -124
- package/Components/JsonConfigComponent/ConfigRoom.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigSelect.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigSelect.js +0 -159
- package/Components/JsonConfigComponent/ConfigSelect.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigSelectSendTo.d.ts +0 -17
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js +0 -272
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigSendto.d.ts +0 -24
- package/Components/JsonConfigComponent/ConfigSendto.js +0 -294
- package/Components/JsonConfigComponent/ConfigSetState.d.ts +0 -18
- package/Components/JsonConfigComponent/ConfigSetState.js +0 -185
- package/Components/JsonConfigComponent/ConfigSetState.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigSlider.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigSlider.js +0 -119
- package/Components/JsonConfigComponent/ConfigSlider.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigStaticDivider.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigStaticDivider.js +0 -68
- package/Components/JsonConfigComponent/ConfigStaticDivider.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigStaticHeader.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigStaticHeader.js +0 -81
- package/Components/JsonConfigComponent/ConfigStaticHeader.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigStaticImage.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigStaticImage.js +0 -71
- package/Components/JsonConfigComponent/ConfigStaticImage.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigStaticText.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigStaticText.js +0 -88
- package/Components/JsonConfigComponent/ConfigStaticText.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigTable.d.ts +0 -3
- package/Components/JsonConfigComponent/ConfigTable.js +0 -1064
- package/Components/JsonConfigComponent/ConfigTable.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigTabs.d.ts +0 -34
- package/Components/JsonConfigComponent/ConfigTabs.js +0 -162
- package/Components/JsonConfigComponent/ConfigTabs.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigText.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigText.js +0 -226
- package/Components/JsonConfigComponent/ConfigText.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigTextSendTo.d.ts +0 -10
- package/Components/JsonConfigComponent/ConfigTextSendTo.js +0 -129
- package/Components/JsonConfigComponent/ConfigTextSendTo.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigTimePicker.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigTimePicker.js +0 -85
- package/Components/JsonConfigComponent/ConfigTimePicker.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigTopic.d.ts +0 -17
- package/Components/JsonConfigComponent/ConfigTopic.js +0 -110
- package/Components/JsonConfigComponent/ConfigTopic.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigUUID.d.ts +0 -15
- package/Components/JsonConfigComponent/ConfigUUID.js +0 -95
- package/Components/JsonConfigComponent/ConfigUUID.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigUser.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigUser.js +0 -142
- package/Components/JsonConfigComponent/ConfigUser.js.map +0 -1
- package/Components/JsonConfigComponent/DeviceManager/Communication.d.ts +0 -63
- package/Components/JsonConfigComponent/DeviceManager/Communication.js +0 -268
- package/Components/JsonConfigComponent/DeviceManager/DeviceActionButton.d.ts +0 -11
- package/Components/JsonConfigComponent/DeviceManager/DeviceActionButton.js +0 -15
- package/Components/JsonConfigComponent/DeviceManager/DeviceCard.d.ts +0 -53
- package/Components/JsonConfigComponent/DeviceManager/DeviceCard.js +0 -340
- package/Components/JsonConfigComponent/DeviceManager/DeviceControl.d.ts +0 -45
- package/Components/JsonConfigComponent/DeviceManager/DeviceControl.js +0 -146
- package/Components/JsonConfigComponent/DeviceManager/DeviceImageUpload.d.ts +0 -12
- package/Components/JsonConfigComponent/DeviceManager/DeviceImageUpload.js +0 -69
- package/Components/JsonConfigComponent/DeviceManager/DeviceList.d.ts +0 -51
- package/Components/JsonConfigComponent/DeviceManager/DeviceList.js +0 -226
- package/Components/JsonConfigComponent/DeviceManager/DeviceStatus.d.ts +0 -13
- package/Components/JsonConfigComponent/DeviceManager/DeviceStatus.js +0 -111
- package/Components/JsonConfigComponent/DeviceManager/InstanceActionButton.d.ts +0 -7
- package/Components/JsonConfigComponent/DeviceManager/InstanceActionButton.js +0 -16
- package/Components/JsonConfigComponent/DeviceManager/JsonConfig.d.ts +0 -11
- package/Components/JsonConfigComponent/DeviceManager/JsonConfig.js +0 -94
- package/Components/JsonConfigComponent/DeviceManager/TooltipButton.d.ts +0 -10
- package/Components/JsonConfigComponent/DeviceManager/TooltipButton.js +0 -22
- package/Components/JsonConfigComponent/DeviceManager/Utils.d.ts +0 -12
- package/Components/JsonConfigComponent/DeviceManager/Utils.js +0 -158
- package/Components/JsonConfigComponent/DeviceManager/i18n/de.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/en.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/es.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/fr.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/i18n.d.ts +0 -26
- package/Components/JsonConfigComponent/DeviceManager/i18n/it.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/nl.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/pl.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/pt.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/ru.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/uk.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/zh-cn.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/index.d.ts +0 -2
- package/Components/JsonConfigComponent/DeviceManager/index.js +0 -10
- package/Components/JsonConfigComponent/DeviceManager/index.js.map +0 -1
- package/Components/JsonConfigComponent/index.d.ts +0 -26
- package/Components/JsonConfigComponent/index.js +0 -520
- package/Components/JsonConfigComponent/index.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/AdminConnection.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/AdminConnection.js +0 -7
- package/Components/JsonConfigComponent/wrapper/Components/ColorPicker.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Components/ColorPicker.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Components/ColorPicker.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Components/Icon.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Components/Icon.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Components/Icon.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Components/TextWithIcon.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Components/TextWithIcon.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Components/TextWithIcon.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Components/UploadImage.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Components/UploadImage.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Components/UploadImage.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Components/Utils.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Components/Utils.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Components/Utils.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/Confirm.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/Confirm.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/Confirm.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/Cron.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/Cron.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/Cron.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/Error.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/Error.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/Error.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/Message.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/Message.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/Message.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectFile.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectFile.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectFile.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectID.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectID.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectID.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/i18n.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/i18n.js +0 -10
- package/Components/JsonConfigComponent/wrapper/i18n.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/icons/IconCopy.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/icons/IconCopy.js +0 -10
- package/Components/JsonConfigComponent/wrapper/icons/IconCopy.js.map +0 -1
- package/Components/Logo.js.map +0 -1
- package/Components/SaveCloseButtons.js.map +0 -1
- package/Components/Schedule.js.map +0 -1
- package/Components/TabContainer.js.map +0 -1
- package/Components/TabContent.js.map +0 -1
- package/Components/TabHeader.js.map +0 -1
- package/Components/ToggleThemeMenu.js.map +0 -1
- package/Dialogs/SelectID.js.map +0 -1
|
@@ -1,45 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
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
|
-
|
|
45
|
-
import
|
|
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
|
-
|
|
4
|
-
Object.
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
//# sourceMappingURL=TabContainer.js.map
|
|
53
|
+
const _export = (0, styles_1.withStyles)(styles)(TabContainer);
|
|
54
|
+
exports.default = _export;
|
|
@@ -1,33 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
33
|
-
import
|
|
10
|
+
/** @type {typeof TabContent} */
|
|
11
|
+
declare const _export: React.JSXElementConstructor<Omit<TabContentProps, "classes"> & import("@mui/styles").StyledComponentProps<"root" | "overflowAuto"> & object>;
|
|
12
|
+
export default _export;
|
package/Components/TabContent.js
CHANGED
|
@@ -1,71 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
//# sourceMappingURL=TabContent.js.map
|
|
27
|
+
const _export = (0, styles_1.withStyles)(styles)(TabContent);
|
|
28
|
+
exports.default = _export;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
8
|
+
export default TabHeader;
|
package/Components/TabHeader.js
CHANGED
|
@@ -1,42 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
18
|
+
exports.default = ToggleThemeMenu;
|
package/Components/types.d.ts
CHANGED
|
@@ -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
|
|
65
|
-
common
|
|
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';
|