@iobroker/adapter-react-v5 7.2.4 → 7.2.6
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/README.md +6 -6
- package/build/AdminConnection.d.ts +1 -0
- package/build/AdminConnection.js +2 -0
- package/build/AdminConnection.js.map +1 -0
- package/{src/Components/404.tsx → build/Components/404.js} +14 -39
- package/build/Components/404.js.map +1 -0
- package/{Components → build/Components}/ColorPicker.d.ts +2 -2
- package/{Components → build/Components}/ColorPicker.js +50 -65
- package/build/Components/ColorPicker.js.map +1 -0
- package/{Components → build/Components}/ComplexCron.d.ts +2 -2
- package/{Components → build/Components}/ComplexCron.js +43 -71
- package/build/Components/ComplexCron.js.map +1 -0
- package/{Components → build/Components}/CopyToClipboard.d.ts +1 -2
- package/{src/Components/CopyToClipboard.tsx → build/Components/CopyToClipboard.js} +20 -38
- package/build/Components/CopyToClipboard.js.map +1 -0
- package/{Components → build/Components}/CustomModal.d.ts +3 -3
- package/build/Components/CustomModal.js +60 -0
- package/build/Components/CustomModal.js.map +1 -0
- package/{Components → build/Components}/FileBrowser.d.ts +2 -2
- package/{Components → build/Components}/FileBrowser.js +229 -236
- package/build/Components/FileBrowser.js.map +1 -0
- package/build/Components/FileViewer.d.ts +48 -0
- package/build/Components/FileViewer.js +277 -0
- package/build/Components/FileViewer.js.map +1 -0
- package/{Components → build/Components}/Icon.d.ts +1 -1
- package/build/Components/Icon.js +140 -0
- package/build/Components/Icon.js.map +1 -0
- package/{Components → build/Components}/IconPicker.d.ts +2 -2
- package/build/Components/IconPicker.js +73 -0
- package/build/Components/IconPicker.js.map +1 -0
- package/{Components → build/Components}/IconSelector.d.ts +3 -3
- package/{Components → build/Components}/IconSelector.js +29 -57
- package/build/Components/IconSelector.js.map +1 -0
- package/{Components → build/Components}/Image.d.ts +2 -2
- package/{Components → build/Components}/Image.js +16 -22
- package/build/Components/Image.js.map +1 -0
- package/{Components → build/Components}/Loader.d.ts +2 -2
- package/{Components → build/Components}/Loader.js +15 -40
- package/build/Components/Loader.js.map +1 -0
- package/{Components → build/Components}/Loaders/MV.d.ts +2 -2
- package/build/Components/Loaders/MV.js +61 -0
- package/build/Components/Loaders/MV.js.map +1 -0
- package/{Components → build/Components}/Loaders/PT.d.ts +2 -2
- package/{Components → build/Components}/Loaders/PT.js +10 -35
- package/build/Components/Loaders/PT.js.map +1 -0
- package/{Components → build/Components}/Loaders/Vendor.d.ts +2 -2
- package/build/Components/Loaders/Vendor.js +52 -0
- package/build/Components/Loaders/Vendor.js.map +1 -0
- package/{Components → build/Components}/Logo.d.ts +2 -2
- package/build/Components/Logo.js +108 -0
- package/build/Components/Logo.js.map +1 -0
- package/{Components → build/Components}/MDUtils.d.ts +1 -2
- package/{Components → build/Components}/MDUtils.js +4 -9
- package/build/Components/MDUtils.js.map +1 -0
- package/{Components → build/Components}/ObjectBrowser.d.ts +4 -4
- package/{Components → build/Components}/ObjectBrowser.js +1152 -1116
- package/build/Components/ObjectBrowser.js.map +1 -0
- package/{Components → build/Components}/Router.d.ts +1 -2
- package/{Components → build/Components}/Router.js +6 -7
- package/build/Components/Router.js.map +1 -0
- package/{Components → build/Components}/SaveCloseButtons.d.ts +2 -2
- package/build/Components/SaveCloseButtons.js +65 -0
- package/build/Components/SaveCloseButtons.js.map +1 -0
- package/{Components → build/Components}/Schedule.d.ts +2 -2
- package/{Components → build/Components}/Schedule.js +242 -257
- package/build/Components/Schedule.js.map +1 -0
- package/{Components → build/Components}/SelectWithIcon.d.ts +2 -2
- package/build/Components/SelectWithIcon.js +135 -0
- package/build/Components/SelectWithIcon.js.map +1 -0
- package/build/Components/SimpleCron/cronText.js +15 -0
- package/build/Components/SimpleCron/cronText.js.map +1 -0
- package/{Components → build/Components}/SimpleCron/index.d.ts +2 -2
- package/{Components → build/Components}/SimpleCron/index.js +55 -58
- package/build/Components/SimpleCron/index.js.map +1 -0
- package/{Components → build/Components}/TabContainer.d.ts +2 -2
- package/build/Components/TabContainer.js +23 -0
- package/build/Components/TabContainer.js.map +1 -0
- package/{Components → build/Components}/TabContent.d.ts +3 -2
- package/build/Components/TabContent.js +20 -0
- package/build/Components/TabContent.js.map +1 -0
- package/build/Components/TabHeader.d.ts +6 -0
- package/build/Components/TabHeader.js +6 -0
- package/build/Components/TabHeader.js.map +1 -0
- package/{Components → build/Components}/TableResize.d.ts +2 -2
- package/{src/Components/TableResize.tsx → build/Components/TableResize.js} +64 -134
- package/build/Components/TableResize.js.map +1 -0
- package/{Components → build/Components}/TextWithIcon.d.ts +2 -2
- package/{src/Components/TextWithIcon.tsx → build/Components/TextWithIcon.js} +30 -75
- package/build/Components/TextWithIcon.js.map +1 -0
- package/{Components → build/Components}/ToggleThemeMenu.d.ts +1 -1
- package/build/Components/ToggleThemeMenu.js +13 -0
- package/build/Components/ToggleThemeMenu.js.map +1 -0
- package/{Components → build/Components}/TreeTable.d.ts +3 -3
- package/{Components → build/Components}/TreeTable.js +87 -99
- package/build/Components/TreeTable.js.map +1 -0
- package/{Components → build/Components}/UploadImage.d.ts +2 -2
- package/{Components → build/Components}/UploadImage.js +46 -69
- package/build/Components/UploadImage.js.map +1 -0
- package/{Components → build/Components}/Utils.d.ts +2 -2
- package/{Components → build/Components}/Utils.js +47 -60
- package/build/Components/Utils.js.map +1 -0
- package/build/Components/withWidth.d.ts +2 -0
- package/build/Components/withWidth.js +22 -0
- package/build/Components/withWidth.js.map +1 -0
- package/build/Connection.d.ts +1 -0
- package/build/Connection.js +2 -0
- package/build/Connection.js.map +1 -0
- package/{Dialogs → build/Dialogs}/ComplexCron.d.ts +2 -2
- package/build/Dialogs/ComplexCron.js +85 -0
- package/build/Dialogs/ComplexCron.js.map +1 -0
- package/{Dialogs → build/Dialogs}/Confirm.d.ts +2 -2
- package/build/Dialogs/Confirm.js +83 -0
- package/build/Dialogs/Confirm.js.map +1 -0
- package/{Dialogs → build/Dialogs}/Cron.d.ts +2 -2
- package/build/Dialogs/Cron.js +72 -0
- package/build/Dialogs/Cron.js.map +1 -0
- package/{Dialogs → build/Dialogs}/Error.d.ts +2 -2
- package/build/Dialogs/Error.js +27 -0
- package/build/Dialogs/Error.js.map +1 -0
- package/{Dialogs → build/Dialogs}/Message.d.ts +2 -2
- package/build/Dialogs/Message.js +29 -0
- package/build/Dialogs/Message.js.map +1 -0
- package/{Dialogs → build/Dialogs}/SelectFile.d.ts +2 -2
- package/build/Dialogs/SelectFile.js +116 -0
- package/build/Dialogs/SelectFile.js.map +1 -0
- package/{Dialogs → build/Dialogs}/SelectID.d.ts +3 -3
- package/{Dialogs → build/Dialogs}/SelectID.js +28 -53
- package/build/Dialogs/SelectID.js.map +1 -0
- package/{Dialogs → build/Dialogs}/SimpleCron.d.ts +2 -2
- package/build/Dialogs/SimpleCron.js +46 -0
- package/build/Dialogs/SimpleCron.js.map +1 -0
- package/build/Dialogs/TextInput.d.ts +2 -0
- package/build/Dialogs/TextInput.js +31 -0
- package/build/Dialogs/TextInput.js.map +1 -0
- package/{GenericApp.d.ts → build/GenericApp.d.ts} +2 -3
- package/{GenericApp.js → build/GenericApp.js} +162 -176
- package/build/GenericApp.js.map +1 -0
- package/{LegacyConnection.d.ts → build/LegacyConnection.d.ts} +69 -4
- package/{LegacyConnection.js → build/LegacyConnection.js} +106 -99
- package/build/LegacyConnection.js.map +1 -0
- package/{Prompt.d.ts → build/Prompt.d.ts} +1 -1
- package/{Prompt.js → build/Prompt.js} +3 -4
- package/build/Prompt.js.map +1 -0
- package/build/Theme.d.ts +5 -0
- package/{Theme.js → build/Theme.js} +37 -32
- package/build/Theme.js.map +1 -0
- package/build/assets/devices/parseNames.d.ts +0 -0
- package/build/assets/devices/parseNames.js +35 -0
- package/build/assets/devices/parseNames.js.map +1 -0
- package/build/assets/rooms/parseNames.d.ts +0 -0
- package/build/assets/rooms/parseNames.js +35 -0
- package/build/assets/rooms/parseNames.js.map +1 -0
- package/build/dictionary.d.ts +1 -0
- package/build/dictionary.js +25 -0
- package/build/dictionary.js.map +1 -0
- package/build/i18n/de.json +449 -0
- package/build/i18n/en.json +449 -0
- package/build/i18n/es.json +449 -0
- package/build/i18n/fr.json +449 -0
- package/build/i18n/it.json +449 -0
- package/build/i18n/nl.json +449 -0
- package/build/i18n/pl.json +449 -0
- package/build/i18n/pt.json +449 -0
- package/build/i18n/ru.json +449 -0
- package/build/i18n/uk.json +449 -0
- package/build/i18n/zh-cn.json +449 -0
- package/{i18n.d.ts → build/i18n.d.ts} +2 -2
- package/{i18n.js → build/i18n.js} +9 -11
- package/build/i18n.js.map +1 -0
- package/build/icons/IconAdapter.d.ts +3 -0
- package/build/icons/IconAdapter.js +6 -0
- package/build/icons/IconAdapter.js.map +1 -0
- package/build/icons/IconAlias.d.ts +3 -0
- package/build/icons/IconAlias.js +6 -0
- package/build/icons/IconAlias.js.map +1 -0
- package/build/icons/IconChannel.d.ts +3 -0
- package/build/icons/IconChannel.js +9 -0
- package/build/icons/IconChannel.js.map +1 -0
- package/build/icons/IconClearFilter.d.ts +3 -0
- package/build/icons/IconClearFilter.js +7 -0
- package/build/icons/IconClearFilter.js.map +1 -0
- package/build/icons/IconClosed.d.ts +3 -0
- package/build/icons/IconClosed.js +6 -0
- package/build/icons/IconClosed.js.map +1 -0
- package/build/icons/IconCopy.d.ts +3 -0
- package/build/icons/IconCopy.js +5 -0
- package/build/icons/IconCopy.js.map +1 -0
- package/build/icons/IconDevice.d.ts +3 -0
- package/build/icons/IconDevice.js +15 -0
- package/build/icons/IconDevice.js.map +1 -0
- package/build/icons/IconDocument.d.ts +3 -0
- package/build/icons/IconDocument.js +6 -0
- package/build/icons/IconDocument.js.map +1 -0
- package/build/icons/IconDocumentReadOnly.d.ts +3 -0
- package/build/icons/IconDocumentReadOnly.js +7 -0
- package/build/icons/IconDocumentReadOnly.js.map +1 -0
- package/build/icons/IconExpert.d.ts +3 -0
- package/build/icons/IconExpert.js +6 -0
- package/build/icons/IconExpert.js.map +1 -0
- package/build/icons/IconFx.d.ts +3 -0
- package/build/icons/IconFx.js +5 -0
- package/build/icons/IconFx.js.map +1 -0
- package/build/icons/IconInstance.d.ts +3 -0
- package/build/icons/IconInstance.js +6 -0
- package/build/icons/IconInstance.js.map +1 -0
- package/build/icons/IconLogout.d.ts +3 -0
- package/build/icons/IconLogout.js +6 -0
- package/build/icons/IconLogout.js.map +1 -0
- package/build/icons/IconNoIcon.d.ts +3 -0
- package/build/icons/IconNoIcon.js +5 -0
- package/build/icons/IconNoIcon.js.map +1 -0
- package/build/icons/IconOpen.d.ts +3 -0
- package/build/icons/IconOpen.js +6 -0
- package/build/icons/IconOpen.js.map +1 -0
- package/{icons → build/icons}/IconProps.d.ts +1 -1
- package/build/icons/IconProps.js +2 -0
- package/build/icons/IconProps.js.map +1 -0
- package/build/icons/IconState.d.ts +3 -0
- package/build/icons/IconState.js +6 -0
- package/build/icons/IconState.js.map +1 -0
- package/build/index.d.ts +67 -0
- package/build/index.js +67 -0
- package/build/index.js.map +1 -0
- package/{types.d.ts → build/types.d.ts} +1 -1
- package/package.json +84 -48
- package/AdminConnection.d.ts +0 -2
- package/AdminConnection.js +0 -4
- package/Components/404.js +0 -101
- package/Components/CopyToClipboard.js +0 -163
- package/Components/CustomModal.js +0 -88
- package/Components/FileViewer.d.ts +0 -10
- package/Components/FileViewer.js +0 -305
- package/Components/Icon.js +0 -148
- package/Components/IconPicker.js +0 -98
- package/Components/Loaders/MV.js +0 -66
- package/Components/Loaders/Vendor.js +0 -77
- package/Components/Logo.js +0 -117
- package/Components/SaveCloseButtons.js +0 -69
- package/Components/SelectWithIcon.js +0 -168
- package/Components/SimpleCron/cronText.js +0 -19
- package/Components/TabContainer.js +0 -25
- package/Components/TabContent.js +0 -21
- package/Components/TabHeader.d.ts +0 -6
- package/Components/TabHeader.js +0 -11
- package/Components/TableResize.js +0 -226
- package/Components/TextWithIcon.js +0 -119
- package/Components/ToggleThemeMenu.js +0 -18
- package/Components/withWidth.d.ts +0 -3
- package/Components/withWidth.js +0 -27
- package/Connection.d.ts +0 -3
- package/Connection.js +0 -8
- package/Dialogs/ComplexCron.js +0 -90
- package/Dialogs/Confirm.js +0 -111
- package/Dialogs/Cron.js +0 -100
- package/Dialogs/Error.js +0 -55
- package/Dialogs/Message.js +0 -57
- package/Dialogs/SelectFile.js +0 -119
- package/Dialogs/SimpleCron.js +0 -51
- package/Dialogs/TextInput.d.ts +0 -3
- package/Dialogs/TextInput.js +0 -35
- package/Theme.d.ts +0 -6
- package/i18n/de.json +0 -449
- package/i18n/en.json +0 -449
- package/i18n/es.json +0 -449
- package/i18n/fr.json +0 -449
- package/i18n/it.json +0 -449
- package/i18n/nl.json +0 -449
- package/i18n/pl.json +0 -449
- package/i18n/pt.json +0 -449
- package/i18n/ru.json +0 -449
- package/i18n/uk.json +0 -449
- package/i18n/zh-cn.json +0 -449
- package/icons/IconAdapter.d.ts +0 -4
- package/icons/IconAdapter.js +0 -10
- package/icons/IconAlias.d.ts +0 -4
- package/icons/IconAlias.js +0 -10
- package/icons/IconChannel.d.ts +0 -4
- package/icons/IconChannel.js +0 -13
- package/icons/IconClearFilter.d.ts +0 -4
- package/icons/IconClearFilter.js +0 -11
- package/icons/IconClosed.d.ts +0 -4
- package/icons/IconClosed.js +0 -10
- package/icons/IconCopy.d.ts +0 -4
- package/icons/IconCopy.js +0 -9
- package/icons/IconDevice.d.ts +0 -4
- package/icons/IconDevice.js +0 -19
- package/icons/IconDocument.d.ts +0 -4
- package/icons/IconDocument.js +0 -10
- package/icons/IconDocumentReadOnly.d.ts +0 -4
- package/icons/IconDocumentReadOnly.js +0 -11
- package/icons/IconExpert.d.ts +0 -4
- package/icons/IconExpert.js +0 -10
- package/icons/IconFx.d.ts +0 -4
- package/icons/IconFx.js +0 -9
- package/icons/IconInstance.d.ts +0 -4
- package/icons/IconInstance.js +0 -10
- package/icons/IconLogout.d.ts +0 -4
- package/icons/IconLogout.js +0 -10
- package/icons/IconNoIcon.d.ts +0 -4
- package/icons/IconNoIcon.js +0 -9
- package/icons/IconOpen.d.ts +0 -4
- package/icons/IconOpen.js +0 -10
- package/icons/IconProps.js +0 -2
- package/icons/IconState.d.ts +0 -4
- package/icons/IconState.js +0 -10
- package/index.d.ts +0 -128
- package/index.js +0 -215
- package/src/AdminConnection.tsx +0 -3
- package/src/Components/ColorPicker.tsx +0 -343
- package/src/Components/ComplexCron.tsx +0 -561
- package/src/Components/CustomModal.tsx +0 -170
- package/src/Components/FileBrowser.tsx +0 -2560
- package/src/Components/FileViewer.tsx +0 -412
- package/src/Components/Icon.tsx +0 -238
- package/src/Components/IconPicker.tsx +0 -165
- package/src/Components/IconSelector.tsx +0 -2220
- package/src/Components/Image.tsx +0 -193
- package/src/Components/Loader.tsx +0 -328
- package/src/Components/Logo.tsx +0 -176
- package/src/Components/MDUtils.tsx +0 -104
- package/src/Components/ObjectBrowser.tsx +0 -8947
- package/src/Components/Router.tsx +0 -90
- package/src/Components/SaveCloseButtons.tsx +0 -117
- package/src/Components/Schedule.tsx +0 -1998
- package/src/Components/SelectWithIcon.tsx +0 -239
- package/src/Components/TabContainer.tsx +0 -57
- package/src/Components/TabContent.tsx +0 -38
- package/src/Components/TabHeader.tsx +0 -20
- package/src/Components/ToggleThemeMenu.tsx +0 -52
- package/src/Components/TreeTable.tsx +0 -1002
- package/src/Components/UploadImage.tsx +0 -643
- package/src/Components/Utils.tsx +0 -1802
- package/src/Components/loader.css +0 -231
- package/src/Components/withWidth.tsx +0 -32
- package/src/Connection.tsx +0 -5
- package/src/Dialogs/ComplexCron.tsx +0 -163
- package/src/Dialogs/Confirm.tsx +0 -185
- package/src/Dialogs/Cron.tsx +0 -192
- package/src/Dialogs/Error.tsx +0 -67
- package/src/Dialogs/Message.tsx +0 -73
- package/src/Dialogs/SelectFile.tsx +0 -280
- package/src/Dialogs/SelectID.tsx +0 -310
- package/src/Dialogs/SimpleCron.tsx +0 -101
- package/src/Dialogs/TextInput.tsx +0 -99
- package/src/GenericApp.tsx +0 -1076
- package/src/LegacyConnection.tsx +0 -3720
- package/src/Prompt.tsx +0 -22
- package/src/Theme.tsx +0 -472
- package/src/icons/IconAdapter.tsx +0 -22
- package/src/icons/IconAlias.tsx +0 -22
- package/src/icons/IconChannel.tsx +0 -60
- package/src/icons/IconClearFilter.tsx +0 -24
- package/src/icons/IconClosed.tsx +0 -22
- package/src/icons/IconCopy.tsx +0 -21
- package/src/icons/IconDevice.tsx +0 -126
- package/src/icons/IconDocument.tsx +0 -22
- package/src/icons/IconDocumentReadOnly.tsx +0 -27
- package/src/icons/IconExpert.tsx +0 -26
- package/src/icons/IconFx.tsx +0 -38
- package/src/icons/IconInstance.tsx +0 -22
- package/src/icons/IconLogout.tsx +0 -32
- package/src/icons/IconNoIcon.tsx +0 -21
- package/src/icons/IconOpen.tsx +0 -22
- package/src/icons/IconProps.tsx +0 -16
- package/src/icons/IconState.tsx +0 -38
- package/src/index.css +0 -56
- /package/{Components → build/Components}/404.d.ts +0 -0
- /package/{Components → build/Components}/SimpleCron/cronText.d.ts +0 -0
- /package/{assets → build/assets}/devices.json +0 -0
- /package/{assets → build/assets}/lamp_ceiling.svg +0 -0
- /package/{assets → build/assets}/lamp_table.svg +0 -0
- /package/{assets → build/assets}/no_icon.svg +0 -0
- /package/{assets → build/assets}/rooms.json +0 -0
- /package/{index.css → build/index.css} +0 -0
- /package/{tasks.js → tasksExample.js} +0 -0
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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;
|
|
17
|
-
});
|
|
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;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
/**
|
|
27
|
-
* Copyright 2021-2024 ioBroker GmbH
|
|
28
|
-
*
|
|
29
|
-
* MIT License
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
const react_1 = __importStar(require("react"));
|
|
33
|
-
const material_1 = require("@mui/material");
|
|
34
|
-
// import './Vendor.css'
|
|
35
|
-
const vendorStyles = `
|
|
36
|
-
.logo-background-light, .logo-background-colored {
|
|
37
|
-
background: white;
|
|
38
|
-
}
|
|
39
|
-
.logo-background-dark, .logo-background-blue {
|
|
40
|
-
background: black;
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
function LoaderVendor(props) {
|
|
44
|
-
(0, react_1.useEffect)(() => {
|
|
45
|
-
if (!window.document.getElementById('vendor-iobroker-component')) {
|
|
46
|
-
const style = window.document.createElement('style');
|
|
47
|
-
style.setAttribute('id', 'vendor-iobroker-component');
|
|
48
|
-
style.innerHTML = vendorStyles;
|
|
49
|
-
window.document.head.appendChild(style);
|
|
50
|
-
}
|
|
51
|
-
}, []);
|
|
52
|
-
const theme = props.themeType || props.themeName || 'light';
|
|
53
|
-
return (react_1.default.createElement("div", { className: `vendor-logo-back logo-background-${theme}`, style: {
|
|
54
|
-
display: 'flex',
|
|
55
|
-
flexDirection: 'column',
|
|
56
|
-
height: '100%',
|
|
57
|
-
width: '10%',
|
|
58
|
-
margin: 'auto',
|
|
59
|
-
backgroundImage: props.backgroundImage && props.backgroundImage !== '@@loginBackgroundImage@@'
|
|
60
|
-
? props.backgroundImage
|
|
61
|
-
: window.loadingBackgroundImage && window.loadingBackgroundImage !== '@@loginBackgroundImage@@'
|
|
62
|
-
? `url(${window.loadingBackgroundImage})`
|
|
63
|
-
: undefined,
|
|
64
|
-
backgroundColor: props.backgroundColor && props.backgroundColor !== '@@loginBackgroundColor@@'
|
|
65
|
-
? props.backgroundColor
|
|
66
|
-
: window.loadingBackgroundColor && window.loadingBackgroundColor !== '@@loginBackgroundColor@@'
|
|
67
|
-
? window.loadingBackgroundColor
|
|
68
|
-
: props.themeType === 'dark'
|
|
69
|
-
? '#000'
|
|
70
|
-
: '#FFF',
|
|
71
|
-
backgroundSize: 'cover',
|
|
72
|
-
} },
|
|
73
|
-
react_1.default.createElement("div", { style: { flexGrow: 1 } }),
|
|
74
|
-
react_1.default.createElement(material_1.CircularProgress, { color: "secondary", size: props.size || 200, thickness: 5 }),
|
|
75
|
-
react_1.default.createElement("div", { style: { flexGrow: 1 } })));
|
|
76
|
-
}
|
|
77
|
-
exports.default = LoaderVendor;
|
package/Components/Logo.js
DELETED
|
@@ -1,117 +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 material_1 = require("@mui/material");
|
|
8
|
-
const icons_material_1 = require("@mui/icons-material");
|
|
9
|
-
const i18n_1 = __importDefault(require("../i18n"));
|
|
10
|
-
const Icon_1 = __importDefault(require("./Icon"));
|
|
11
|
-
class Logo extends react_1.default.Component {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.handleFileSelect = (evt) => {
|
|
15
|
-
const target = evt.target;
|
|
16
|
-
const files = target === null || target === void 0 ? void 0 : target.files;
|
|
17
|
-
if (!files || !files.length) {
|
|
18
|
-
console.error('No files found. Please report to developers');
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const f = files[0];
|
|
22
|
-
if (f) {
|
|
23
|
-
const r = new window.FileReader();
|
|
24
|
-
r.onload = () => {
|
|
25
|
-
var _a;
|
|
26
|
-
const contents = ((_a = r.result) === null || _a === void 0 ? void 0 : _a.toString()) || '';
|
|
27
|
-
try {
|
|
28
|
-
const json = JSON.parse(contents);
|
|
29
|
-
if (json.native && json.common) {
|
|
30
|
-
if (json.common.name !== this.props.common.name) {
|
|
31
|
-
this.props.onError && this.props.onError(i18n_1.default.t('ra_otherConfig', json.common.name));
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
this.props.onLoad && this.props.onLoad(json.native);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
this.props.onError && this.props.onError(i18n_1.default.t('ra_invalidConfig'));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
catch (err) {
|
|
42
|
-
this.props.onError && this.props.onError(err === null || err === void 0 ? void 0 : err.toString());
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
r.readAsText(f);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
alert('Failed to open JSON File');
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
static generateFile(fileName, obj) {
|
|
53
|
-
const el = window.document.createElement('a');
|
|
54
|
-
el.setAttribute('href', `data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(obj, null, 2))}`);
|
|
55
|
-
el.setAttribute('download', fileName);
|
|
56
|
-
el.style.display = 'none';
|
|
57
|
-
window.document.body.appendChild(el);
|
|
58
|
-
el.click();
|
|
59
|
-
window.document.body.removeChild(el);
|
|
60
|
-
}
|
|
61
|
-
download() {
|
|
62
|
-
const result = {
|
|
63
|
-
_id: `system.adapter.${this.props.common.name}.${this.props.instance}`,
|
|
64
|
-
common: JSON.parse(JSON.stringify(this.props.common)),
|
|
65
|
-
native: this.props.native,
|
|
66
|
-
};
|
|
67
|
-
// remove unimportant information
|
|
68
|
-
if (result.common.news) {
|
|
69
|
-
delete result.common.news;
|
|
70
|
-
}
|
|
71
|
-
if (result.common.titleLang) {
|
|
72
|
-
delete result.common.titleLang;
|
|
73
|
-
}
|
|
74
|
-
if (result.common.desc) {
|
|
75
|
-
delete result.common.desc;
|
|
76
|
-
}
|
|
77
|
-
// window.open('data:application/iobroker; content-disposition=attachment; filename=' + result._id + '.json,' + JSON.stringify(result, null, 2));
|
|
78
|
-
Logo.generateFile(`${result._id}.json`, result);
|
|
79
|
-
}
|
|
80
|
-
upload() {
|
|
81
|
-
const input = window.document.createElement('input');
|
|
82
|
-
input.setAttribute('type', 'file');
|
|
83
|
-
input.setAttribute('id', 'files');
|
|
84
|
-
input.setAttribute('opacity', '0');
|
|
85
|
-
input.addEventListener('change', this.handleFileSelect, false);
|
|
86
|
-
input.click();
|
|
87
|
-
}
|
|
88
|
-
render() {
|
|
89
|
-
return (react_1.default.createElement("div", { className: this.props.className, style: this.props.style },
|
|
90
|
-
this.props.common.icon ? (react_1.default.createElement(Icon_1.default, { src: this.props.common.icon, style: {
|
|
91
|
-
padding: 8,
|
|
92
|
-
width: 64,
|
|
93
|
-
}, alt: "logo" })) : null,
|
|
94
|
-
this.props.common.readme ? (react_1.default.createElement(material_1.Fab, { size: "small", color: "primary", "aria-label": "Help", style: {
|
|
95
|
-
marginRight: 5,
|
|
96
|
-
marginTop: 5,
|
|
97
|
-
float: 'right',
|
|
98
|
-
}, onClick: () => {
|
|
99
|
-
const win = window.open(this.props.common.readme, '_blank');
|
|
100
|
-
win === null || win === void 0 ? void 0 : win.focus();
|
|
101
|
-
} },
|
|
102
|
-
react_1.default.createElement(icons_material_1.Help, null))) : null,
|
|
103
|
-
react_1.default.createElement(material_1.Fab, { size: "small", color: "primary", "aria-label": "Load config", style: {
|
|
104
|
-
marginRight: 5,
|
|
105
|
-
marginTop: 5,
|
|
106
|
-
float: 'right',
|
|
107
|
-
}, title: i18n_1.default.t('ra_Load configuration from file'), onClick: () => this.upload() },
|
|
108
|
-
react_1.default.createElement(icons_material_1.VerticalAlignTop, null)),
|
|
109
|
-
react_1.default.createElement(material_1.Fab, { size: "small", color: "primary", "aria-label": "Save config", style: {
|
|
110
|
-
marginRight: 5,
|
|
111
|
-
marginTop: 5,
|
|
112
|
-
float: 'right',
|
|
113
|
-
}, title: i18n_1.default.t('ra_Save configuration to file'), onClick: () => this.download() },
|
|
114
|
-
react_1.default.createElement(icons_material_1.VerticalAlignBottom, null))));
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
exports.default = Logo;
|
|
@@ -1,69 +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
|
-
// 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 material_1 = require("@mui/material");
|
|
9
|
-
const icons_material_1 = require("@mui/icons-material");
|
|
10
|
-
const i18n_1 = __importDefault(require("../i18n"));
|
|
11
|
-
const styles = {
|
|
12
|
-
buttonIcon: {
|
|
13
|
-
marginRight: 8,
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
class SaveCloseButtons extends react_1.default.Component {
|
|
17
|
-
constructor(props) {
|
|
18
|
-
super(props);
|
|
19
|
-
const newReact = props.newReact === undefined ? true : props.newReact;
|
|
20
|
-
if (props.isIFrame !== undefined) {
|
|
21
|
-
this.isIFrame = props.isIFrame;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
try {
|
|
25
|
-
this.isIFrame = !newReact && window.self !== window.top;
|
|
26
|
-
}
|
|
27
|
-
catch (_a) {
|
|
28
|
-
this.isIFrame = !newReact;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
const noTextOnButtons = this.props.noTextOnButtons;
|
|
34
|
-
const buttonStyle = {
|
|
35
|
-
borderRadius: this.props.theme.saveToolbar.button.borderRadius || 3,
|
|
36
|
-
height: this.props.theme.saveToolbar.button.height || 32,
|
|
37
|
-
};
|
|
38
|
-
const style = {
|
|
39
|
-
bottom: this.isIFrame ? 38 : 0,
|
|
40
|
-
left: this.props.paddingLeft || 0,
|
|
41
|
-
right: 0,
|
|
42
|
-
position: 'absolute',
|
|
43
|
-
background: this.props.theme.saveToolbar.background,
|
|
44
|
-
};
|
|
45
|
-
if (this.props.dense) {
|
|
46
|
-
style.minHeight = 48;
|
|
47
|
-
}
|
|
48
|
-
if (this.props.error) {
|
|
49
|
-
buttonStyle.border = '1px solid red';
|
|
50
|
-
}
|
|
51
|
-
return (react_1.default.createElement(material_1.Toolbar
|
|
52
|
-
// position="absolute"
|
|
53
|
-
, {
|
|
54
|
-
// position="absolute"
|
|
55
|
-
style: style },
|
|
56
|
-
react_1.default.createElement(material_1.Fab, { variant: "extended", "aria-label": "Save", disabled: !this.props.changed || this.props.error, onClick: () => this.props.onSave(false), style: buttonStyle },
|
|
57
|
-
react_1.default.createElement(icons_material_1.Save, { style: !noTextOnButtons ? styles.buttonIcon : undefined }),
|
|
58
|
-
!noTextOnButtons && i18n_1.default.t('ra_Save')),
|
|
59
|
-
react_1.default.createElement(material_1.Fab, { variant: "extended", "aria-label": "Save and close", disabled: !this.props.changed || this.props.error, onClick: () => this.props.onSave(true), style: Object.assign(Object.assign({}, buttonStyle), { marginLeft: 10 }) },
|
|
60
|
-
react_1.default.createElement(icons_material_1.Save, { style: !noTextOnButtons ? styles.buttonIcon : undefined }),
|
|
61
|
-
!noTextOnButtons ? i18n_1.default.t('ra_Save and close') : '+',
|
|
62
|
-
noTextOnButtons && react_1.default.createElement(icons_material_1.Close, null)),
|
|
63
|
-
react_1.default.createElement("div", { style: { flexGrow: 1 } }),
|
|
64
|
-
react_1.default.createElement(material_1.Fab, { variant: "extended", "aria-label": "Close", onClick: () => this.props.onClose(), style: buttonStyle },
|
|
65
|
-
react_1.default.createElement(icons_material_1.Close, { style: !noTextOnButtons ? styles.buttonIcon : undefined }),
|
|
66
|
-
!noTextOnButtons && i18n_1.default.t('ra_Close'))));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.default = SaveCloseButtons;
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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;
|
|
17
|
-
});
|
|
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;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const react_1 = __importStar(require("react"));
|
|
30
|
-
const material_1 = require("@mui/material");
|
|
31
|
-
const Icon_1 = __importDefault(require("./Icon"));
|
|
32
|
-
const Utils_1 = __importDefault(require("./Utils"));
|
|
33
|
-
const i18n_1 = __importDefault(require("../i18n"));
|
|
34
|
-
const styles = {
|
|
35
|
-
different: {
|
|
36
|
-
opacity: 0.5,
|
|
37
|
-
},
|
|
38
|
-
icon: {
|
|
39
|
-
width: 16,
|
|
40
|
-
height: 16,
|
|
41
|
-
marginRight: 8,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
class SelectWithIcon extends react_1.Component {
|
|
45
|
-
constructor(props) {
|
|
46
|
-
super(props);
|
|
47
|
-
this.timeout = null;
|
|
48
|
-
if (props.different) {
|
|
49
|
-
this.wordDifferent = props.t('ra___different__');
|
|
50
|
-
}
|
|
51
|
-
let list;
|
|
52
|
-
if (Array.isArray(props.list || props.options)) {
|
|
53
|
-
list = (props.list || props.options).map(obj => {
|
|
54
|
-
var _a, _b;
|
|
55
|
-
return ({
|
|
56
|
-
name: Utils_1.default.getObjectNameFromObj(obj, props.lang)
|
|
57
|
-
.replace('system.group.', '')
|
|
58
|
-
.replace('system.user.', '')
|
|
59
|
-
.replace('enum.rooms.', '')
|
|
60
|
-
.replace('enum.functions.', ''),
|
|
61
|
-
value: obj._id,
|
|
62
|
-
icon: (_a = obj.common) === null || _a === void 0 ? void 0 : _a.icon,
|
|
63
|
-
color: (_b = obj.common) === null || _b === void 0 ? void 0 : _b.color,
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
list = Object.values((props.list || props.options)).map(obj => {
|
|
69
|
-
var _a, _b;
|
|
70
|
-
return ({
|
|
71
|
-
name: Utils_1.default.getObjectNameFromObj(obj, props.lang)
|
|
72
|
-
.replace('system.group.', '')
|
|
73
|
-
.replace('system.user.', '')
|
|
74
|
-
.replace('enum.rooms.', '')
|
|
75
|
-
.replace('enum.functions.', ''),
|
|
76
|
-
value: obj._id,
|
|
77
|
-
icon: (_a = obj.common) === null || _a === void 0 ? void 0 : _a.icon,
|
|
78
|
-
color: (_b = obj.common) === null || _b === void 0 ? void 0 : _b.color,
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
if (props.different && props.value === props.different) {
|
|
83
|
-
list.unshift({ value: props.different, name: this.wordDifferent || '' });
|
|
84
|
-
}
|
|
85
|
-
if (props.allowNone) {
|
|
86
|
-
list.unshift({ value: '', name: i18n_1.default.t('ra_none') });
|
|
87
|
-
}
|
|
88
|
-
this.state = {
|
|
89
|
-
list,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
render() {
|
|
93
|
-
if (this.props.allowNone && !this.state.list.find(obj => obj.value === '')) {
|
|
94
|
-
this.timeout =
|
|
95
|
-
this.timeout ||
|
|
96
|
-
setTimeout(() => {
|
|
97
|
-
this.timeout = null;
|
|
98
|
-
const list = JSON.parse(JSON.stringify(this.state.list));
|
|
99
|
-
list.unshift({ value: '', name: i18n_1.default.t('ra_none') });
|
|
100
|
-
this.setState({ list });
|
|
101
|
-
}, 100);
|
|
102
|
-
}
|
|
103
|
-
else if (!this.props.allowNone && this.state.list.find(obj => obj.value === '')) {
|
|
104
|
-
this.timeout =
|
|
105
|
-
this.timeout ||
|
|
106
|
-
setTimeout(() => {
|
|
107
|
-
this.timeout = null;
|
|
108
|
-
const list = JSON.parse(JSON.stringify(this.state.list));
|
|
109
|
-
const i = this.state.list.findIndex(obj => obj.value === '');
|
|
110
|
-
list.splice(i, 1);
|
|
111
|
-
this.setState({ list });
|
|
112
|
-
}, 100);
|
|
113
|
-
}
|
|
114
|
-
const item = this.state.list.find(it => it.value === this.props.value ||
|
|
115
|
-
(this.props.removePrefix && it.value.replace(this.props.removePrefix, '') === this.props.value));
|
|
116
|
-
const style = this.props.value === this.props.different
|
|
117
|
-
? {}
|
|
118
|
-
: {
|
|
119
|
-
color: (item === null || item === void 0 ? void 0 : item.color) || undefined,
|
|
120
|
-
backgroundColor: Utils_1.default.getInvertedColor((item === null || item === void 0 ? void 0 : item.color) || '', this.props.themeType),
|
|
121
|
-
};
|
|
122
|
-
if (this.props.dense && this.props.style) {
|
|
123
|
-
Object.assign(style, this.props.style);
|
|
124
|
-
}
|
|
125
|
-
const select = (react_1.default.createElement(material_1.Select, { variant: "standard", disabled: this.props.disabled, value: this.props.value, slotProps: {
|
|
126
|
-
input: this.props.inputProps,
|
|
127
|
-
}, renderValue: ( /* value */) => (react_1.default.createElement("span", null,
|
|
128
|
-
(item === null || item === void 0 ? void 0 : item.icon) ? (react_1.default.createElement(Icon_1.default, { src: item === null || item === void 0 ? void 0 : item.icon, style: styles.icon })) : null, item === null || item === void 0 ? void 0 :
|
|
129
|
-
item.name)), sx: {
|
|
130
|
-
'&.MuiSelect-root': this.props.value === this.props.different ? styles.different : {},
|
|
131
|
-
}, classes: {
|
|
132
|
-
root: this.props.dense ? this.props.className : '',
|
|
133
|
-
}, style: style, onChange: el => {
|
|
134
|
-
if (this.props.different && el.target.value !== this.props.different) {
|
|
135
|
-
let pos = null;
|
|
136
|
-
for (let i = 0; i < this.state.list.length; i++) {
|
|
137
|
-
if (this.state.list[i].value === this.props.different) {
|
|
138
|
-
pos = i;
|
|
139
|
-
break;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
if (pos !== null) {
|
|
143
|
-
const list = Utils_1.default.clone(this.state.list);
|
|
144
|
-
list.splice(pos, 1);
|
|
145
|
-
this.setState({ list }, () => this.props.onChange(el.target.value));
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
this.props.onChange(this.props.removePrefix
|
|
150
|
-
? el.target.value.replace(this.props.removePrefix, '')
|
|
151
|
-
: el.target.value);
|
|
152
|
-
} }, this.state.list.map(el => (react_1.default.createElement(material_1.MenuItem, { style: this.props.different && el.value === this.props.different
|
|
153
|
-
? styles.different
|
|
154
|
-
: {
|
|
155
|
-
color: el.color || undefined,
|
|
156
|
-
backgroundColor: Utils_1.default.getInvertedColor(el.color || '', this.props.themeType),
|
|
157
|
-
}, key: el.value, value: el.value },
|
|
158
|
-
el.icon ? (react_1.default.createElement(Icon_1.default, { src: el.icon, style: styles.icon })) : null,
|
|
159
|
-
el.name)))));
|
|
160
|
-
if (this.props.dense) {
|
|
161
|
-
return select;
|
|
162
|
-
}
|
|
163
|
-
return (react_1.default.createElement(material_1.FormControl, { variant: "standard", fullWidth: !!this.props.fullWidth, style: this.props.style, className: this.props.className },
|
|
164
|
-
react_1.default.createElement(material_1.InputLabel, null, this.props.label),
|
|
165
|
-
select));
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
exports.default = SelectWithIcon;
|
|
@@ -1,19 +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 cronstrue_1 = __importDefault(require("cronstrue"));
|
|
7
|
-
require("cronstrue/locales/fr");
|
|
8
|
-
require("cronstrue/locales/es");
|
|
9
|
-
require("cronstrue/locales/de");
|
|
10
|
-
require("cronstrue/locales/it");
|
|
11
|
-
require("cronstrue/locales/ru");
|
|
12
|
-
require("cronstrue/locales/zh_CN");
|
|
13
|
-
require("cronstrue/locales/uk");
|
|
14
|
-
require("cronstrue/locales/pt_BR");
|
|
15
|
-
require("cronstrue/locales/pl");
|
|
16
|
-
function convertCronToText(cron, lang) {
|
|
17
|
-
return cronstrue_1.default.toString(cron, { locale: lang });
|
|
18
|
-
}
|
|
19
|
-
exports.default = convertCronToText;
|
|
@@ -1,25 +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 material_1 = require("@mui/material");
|
|
8
|
-
const styles = {
|
|
9
|
-
root: {
|
|
10
|
-
width: '100%',
|
|
11
|
-
height: '100%',
|
|
12
|
-
},
|
|
13
|
-
overflowHidden: {
|
|
14
|
-
overflow: 'hidden',
|
|
15
|
-
},
|
|
16
|
-
container: {
|
|
17
|
-
height: '100%',
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
function TabContainer(props) {
|
|
21
|
-
var _a;
|
|
22
|
-
return (react_1.default.createElement(material_1.Paper, { elevation: !Number.isNaN(props.elevation) ? props.elevation : 1, style: Object.assign(Object.assign(Object.assign({}, styles.root), (((_a = props.styles) === null || _a === void 0 ? void 0 : _a.root) || undefined)), (props.overflow !== 'visible' ? styles.overflowHidden : undefined)), onKeyDown: props.onKeyDown, tabIndex: props.tabIndex },
|
|
23
|
-
react_1.default.createElement(material_1.Grid2, { container: true, direction: "column", wrap: "nowrap", sx: styles.container }, props.children)));
|
|
24
|
-
}
|
|
25
|
-
exports.default = TabContainer;
|
package/Components/TabContent.js
DELETED
|
@@ -1,21 +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
|
-
// 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 material_1 = require("@mui/material");
|
|
9
|
-
const styles = {
|
|
10
|
-
root: {
|
|
11
|
-
height: '100%',
|
|
12
|
-
overflow: 'hidden',
|
|
13
|
-
},
|
|
14
|
-
overflowAuto: {
|
|
15
|
-
overflow: 'auto',
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
function TabContent(props) {
|
|
19
|
-
return (react_1.default.createElement(material_1.Grid2, { sx: Object.assign(Object.assign(Object.assign({}, styles.root), ((props === null || props === void 0 ? void 0 : props.style) || undefined)), (props.overflow === 'auto' ? styles.overflowAuto : undefined)) }, props.children));
|
|
20
|
-
}
|
|
21
|
-
exports.default = TabContent;
|
package/Components/TabHeader.js
DELETED
|
@@ -1,11 +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 material_1 = require("@mui/material");
|
|
8
|
-
function TabHeader(props) {
|
|
9
|
-
return (react_1.default.createElement(material_1.Grid2, { container: true, alignItems: "center" }, props.children));
|
|
10
|
-
}
|
|
11
|
-
exports.default = TabHeader;
|