@iobroker/adapter-react-v5 7.2.3 → 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 +3 -3
- 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 +21 -21
- package/{Components → build/Components}/FileBrowser.js +253 -248
- 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 +7 -4
- package/{Components → build/Components}/ObjectBrowser.js +1183 -1133
- 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 +3 -3
- package/{Components → build/Components}/Schedule.js +246 -261
- 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 -56
- 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 -47
- 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 -2550
- 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 -8935
- package/src/Components/Router.tsx +0 -90
- package/src/Components/SaveCloseButtons.tsx +0 -117
- package/src/Components/Schedule.tsx +0 -1995
- 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,231 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2018-2023 Denis Haev (bluefox) <dogafox@gmail.com>
|
|
3
|
-
*
|
|
4
|
-
* MIT License
|
|
5
|
-
*
|
|
6
|
-
**/
|
|
7
|
-
|
|
8
|
-
.logo-background-light,
|
|
9
|
-
.logo-background-colored {
|
|
10
|
-
background: white;
|
|
11
|
-
}
|
|
12
|
-
.logo-background-dark,
|
|
13
|
-
.logo-background-blue {
|
|
14
|
-
background: black;
|
|
15
|
-
}
|
|
16
|
-
.logo-div {
|
|
17
|
-
position: absolute;
|
|
18
|
-
top: 50%;
|
|
19
|
-
left: 50%;
|
|
20
|
-
-ms-transform: translateX(-50%) translateY(-50%);
|
|
21
|
-
-webkit-transform: translate(-50%, -50%);
|
|
22
|
-
transform: translate(-50%, -50%);
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
border-radius: 50%;
|
|
25
|
-
z-index: 2;
|
|
26
|
-
}
|
|
27
|
-
.logo-border {
|
|
28
|
-
/*border-color: #164477;*/
|
|
29
|
-
border-top-color: #3399cc;
|
|
30
|
-
border-left-color: #164477;
|
|
31
|
-
border-bottom-color: #164477;
|
|
32
|
-
border-right-color: #164477;
|
|
33
|
-
border-radius: 50%;
|
|
34
|
-
border-style: solid;
|
|
35
|
-
box-sizing: border-box;
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 100%;
|
|
38
|
-
position: absolute;
|
|
39
|
-
}
|
|
40
|
-
.logo-top {
|
|
41
|
-
position: absolute;
|
|
42
|
-
width: 4.5%;
|
|
43
|
-
height: 16%;
|
|
44
|
-
top: 0;
|
|
45
|
-
z-index: 2;
|
|
46
|
-
}
|
|
47
|
-
.logo-i {
|
|
48
|
-
position: absolute;
|
|
49
|
-
width: 14.5%;
|
|
50
|
-
height: 60%;
|
|
51
|
-
top: 20%;
|
|
52
|
-
left: 42%;
|
|
53
|
-
background: #3399cc;
|
|
54
|
-
}
|
|
55
|
-
.logo-i-top {
|
|
56
|
-
position: absolute;
|
|
57
|
-
width: 14.5%;
|
|
58
|
-
height: 4%;
|
|
59
|
-
left: 42%;
|
|
60
|
-
background: #3399cc;
|
|
61
|
-
border-radius: 100%;
|
|
62
|
-
}
|
|
63
|
-
.logo-back {
|
|
64
|
-
width: 100%;
|
|
65
|
-
height: 100%;
|
|
66
|
-
z-index: 0;
|
|
67
|
-
overflow: hidden;
|
|
68
|
-
}
|
|
69
|
-
@keyframes logo-grow {
|
|
70
|
-
0% {
|
|
71
|
-
width: 230px;
|
|
72
|
-
height: 230px;
|
|
73
|
-
transform: translate(-50%, -50%) scale(1);
|
|
74
|
-
opacity: 1;
|
|
75
|
-
}
|
|
76
|
-
99% {
|
|
77
|
-
width: 230px;
|
|
78
|
-
height: 230px;
|
|
79
|
-
transform: translate(-50%, -50%) scale(10);
|
|
80
|
-
opacity: 0;
|
|
81
|
-
}
|
|
82
|
-
100% {
|
|
83
|
-
width: 0;
|
|
84
|
-
height: 0;
|
|
85
|
-
opacity: 0;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
@keyframes logo-spin {
|
|
89
|
-
100% {
|
|
90
|
-
-webkit-transform: rotate(360deg);
|
|
91
|
-
transform: rotate(360deg);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
@keyframes logo-color-inside-light {
|
|
95
|
-
0% {
|
|
96
|
-
background: #fefefe;
|
|
97
|
-
}
|
|
98
|
-
100% {
|
|
99
|
-
background: #3399cc;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
@keyframes logo-color-inside-dark {
|
|
103
|
-
0% {
|
|
104
|
-
background: #030303;
|
|
105
|
-
}
|
|
106
|
-
100% {
|
|
107
|
-
background: #3399cc;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
@keyframes logo-color-inside-colored {
|
|
111
|
-
0% {
|
|
112
|
-
background: #fefefe;
|
|
113
|
-
}
|
|
114
|
-
100% {
|
|
115
|
-
background: #3399cc;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
@keyframes logo-color-inside-blue {
|
|
119
|
-
0% {
|
|
120
|
-
background: #030303;
|
|
121
|
-
}
|
|
122
|
-
100% {
|
|
123
|
-
background: #3399cc;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
@keyframes logo-color-outside-light {
|
|
128
|
-
0% {
|
|
129
|
-
border-color: #fefefe;
|
|
130
|
-
}
|
|
131
|
-
100% {
|
|
132
|
-
border-top-color: #3399cc;
|
|
133
|
-
border-left-color: #164477;
|
|
134
|
-
border-bottom-color: #164477;
|
|
135
|
-
border-right-color: #164477;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
@keyframes logo-color-outside-dark {
|
|
139
|
-
0% {
|
|
140
|
-
border-color: #040404;
|
|
141
|
-
}
|
|
142
|
-
100% {
|
|
143
|
-
border-top-color: #3399cc;
|
|
144
|
-
border-left-color: #164477;
|
|
145
|
-
border-bottom-color: #164477;
|
|
146
|
-
border-right-color: #164477;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
@keyframes logo-color-outside-colored {
|
|
150
|
-
0% {
|
|
151
|
-
border-color: #fefefe;
|
|
152
|
-
}
|
|
153
|
-
100% {
|
|
154
|
-
border-top-color: #3399cc;
|
|
155
|
-
border-left-color: #164477;
|
|
156
|
-
border-bottom-color: #164477;
|
|
157
|
-
border-right-color: #164477;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
@keyframes logo-color-outside-blue {
|
|
161
|
-
0% {
|
|
162
|
-
border-color: #040404;
|
|
163
|
-
}
|
|
164
|
-
100% {
|
|
165
|
-
border-top-color: #3399cc;
|
|
166
|
-
border-left-color: #164477;
|
|
167
|
-
border-bottom-color: #164477;
|
|
168
|
-
border-right-color: #164477;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.logo-animate-wait {
|
|
173
|
-
animation:
|
|
174
|
-
logo-color-outside 1.5s,
|
|
175
|
-
logo-spin 1.5s linear infinite;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.logo-animate-grow-light {
|
|
179
|
-
background: #ddd;
|
|
180
|
-
}
|
|
181
|
-
.logo-animate-grow-dark {
|
|
182
|
-
background: #1d1d1d;
|
|
183
|
-
}
|
|
184
|
-
.logo-animate-grow-colored {
|
|
185
|
-
background: #ddd;
|
|
186
|
-
}
|
|
187
|
-
.logo-animate-grow-blue {
|
|
188
|
-
background: #1d1d1d;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.logo-animate-grow {
|
|
192
|
-
display: inline-block;
|
|
193
|
-
text-align: center;
|
|
194
|
-
z-index: 1;
|
|
195
|
-
top: 50%;
|
|
196
|
-
left: 50%;
|
|
197
|
-
-ms-transform: translateX(-50%) translateY(-50%);
|
|
198
|
-
-webkit-transform: translate(-50%, -50%);
|
|
199
|
-
transform: translate(-50%, -50%);
|
|
200
|
-
width: 245px;
|
|
201
|
-
height: 245px;
|
|
202
|
-
border-radius: 50%;
|
|
203
|
-
position: absolute;
|
|
204
|
-
animation: logo-grow 1s 1 ease forwards;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.logo-animate-color-inside-light {
|
|
208
|
-
animation: logo-color-inside-light 2.5s;
|
|
209
|
-
}
|
|
210
|
-
.logo-animate-color-inside-dark {
|
|
211
|
-
animation: logo-color-inside-dark 2.5s;
|
|
212
|
-
}
|
|
213
|
-
.logo-animate-color-inside-colored {
|
|
214
|
-
animation: logo-color-inside-colored 2.5s;
|
|
215
|
-
}
|
|
216
|
-
.logo-animate-color-inside-blue {
|
|
217
|
-
animation: logo-color-inside-blue 2.5s;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.logo-animate-color-outside-light {
|
|
221
|
-
animation: logo-color-outside-light 1.5s;
|
|
222
|
-
}
|
|
223
|
-
.logo-animate-color-outside-dark {
|
|
224
|
-
animation: logo-color-outside-dark 1.5s;
|
|
225
|
-
}
|
|
226
|
-
.logo-animate-color-outside-colored {
|
|
227
|
-
animation: logo-color-outside-colored 1.5s;
|
|
228
|
-
}
|
|
229
|
-
.logo-animate-color-outside-blue {
|
|
230
|
-
animation: logo-color-outside-blue 1.5s;
|
|
231
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React, { type JSXElementConstructor, type JSX } from 'react';
|
|
2
|
-
import { useTheme } from '@mui/material/styles';
|
|
3
|
-
import { type Breakpoint, useMediaQuery } from '@mui/material';
|
|
4
|
-
|
|
5
|
-
function useWidth(): Breakpoint {
|
|
6
|
-
const theme = useTheme();
|
|
7
|
-
const keys = [...theme.breakpoints.keys].reverse();
|
|
8
|
-
return (
|
|
9
|
-
keys.reduce((output: Breakpoint | null, key: Breakpoint) => {
|
|
10
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
11
|
-
const matches = useMediaQuery(theme.breakpoints.up(key));
|
|
12
|
-
return !output && matches ? key : output;
|
|
13
|
-
}, null) || 'xs'
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// FIXME checkout https://mui.com/components/use-media-query/#migrating-from-withwidth
|
|
18
|
-
function withWidth() {
|
|
19
|
-
return (WrappedComponent: JSXElementConstructor<any>) => {
|
|
20
|
-
return function AnyComponent(props: Record<string, any>): JSX.Element {
|
|
21
|
-
const width = useWidth();
|
|
22
|
-
return (
|
|
23
|
-
<WrappedComponent
|
|
24
|
-
{...props}
|
|
25
|
-
width={width}
|
|
26
|
-
/>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default withWidth;
|
package/src/Connection.tsx
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import React, { type JSX } from 'react';
|
|
2
|
-
|
|
3
|
-
import { Button, DialogTitle, DialogContent, DialogActions, Dialog } from '@mui/material';
|
|
4
|
-
|
|
5
|
-
import { Check as IconOk, Cancel as IconCancel, Delete as IconClear } from '@mui/icons-material';
|
|
6
|
-
|
|
7
|
-
import ComplexCron from '../Components/ComplexCron';
|
|
8
|
-
import ConfirmDialog from '../Dialogs/Confirm';
|
|
9
|
-
|
|
10
|
-
import I18n from '../i18n';
|
|
11
|
-
|
|
12
|
-
// Generate cron expression
|
|
13
|
-
const styles: Record<string, React.CSSProperties> = {
|
|
14
|
-
headerID: {
|
|
15
|
-
fontWeight: 'bold',
|
|
16
|
-
fontStyle: 'italic',
|
|
17
|
-
},
|
|
18
|
-
radio: {
|
|
19
|
-
display: 'inline-block',
|
|
20
|
-
},
|
|
21
|
-
dialogPaper: {
|
|
22
|
-
height: 'calc(100% - 96px)',
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
interface DialogCronProps {
|
|
27
|
-
onClose: () => void;
|
|
28
|
-
onOk: (cron: string | false) => void;
|
|
29
|
-
title?: string;
|
|
30
|
-
cron?: string;
|
|
31
|
-
cancel?: string;
|
|
32
|
-
ok?: string;
|
|
33
|
-
clear?: string;
|
|
34
|
-
clearButton?: boolean;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface DialogCronState {
|
|
38
|
-
cron: string;
|
|
39
|
-
showWarning: '' | 'everySecond' | 'everyMinute';
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
class DialogComplexCron extends React.Component<DialogCronProps, DialogCronState> {
|
|
43
|
-
constructor(props: DialogCronProps) {
|
|
44
|
-
super(props);
|
|
45
|
-
let cron;
|
|
46
|
-
if (this.props.cron && typeof this.props.cron === 'string' && this.props.cron.replace(/^["']/, '')[0] !== '{') {
|
|
47
|
-
cron = this.props.cron.replace(/['"]/g, '').trim();
|
|
48
|
-
} else {
|
|
49
|
-
cron = this.props.cron || '{}';
|
|
50
|
-
if (typeof cron === 'string') {
|
|
51
|
-
cron = cron.replace(/^["']/, '').replace(/["']\n?$/, '');
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
this.state = {
|
|
56
|
-
showWarning: '',
|
|
57
|
-
cron,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
handleCancel(): void {
|
|
62
|
-
this.props.onClose();
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
handleOk(ignoreCheck?: boolean): void {
|
|
66
|
-
if (!ignoreCheck) {
|
|
67
|
-
// Check if the CRON will be executed every second or every minute and warn about it
|
|
68
|
-
const cron = ComplexCron.cron2state(this.state.cron);
|
|
69
|
-
if (cron.seconds === '*' || cron.seconds === '*/1') {
|
|
70
|
-
this.setState({ showWarning: 'everySecond' });
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
if (cron.minutes === '*' || cron.minutes === '*/1') {
|
|
74
|
-
this.setState({ showWarning: 'everyMinute' });
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
this.props.onOk(this.state.cron);
|
|
80
|
-
this.props.onClose();
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
renderWarningDialog(): JSX.Element | null {
|
|
84
|
-
if (!this.state.showWarning) {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
return (
|
|
88
|
-
<ConfirmDialog
|
|
89
|
-
title={I18n.t('ra_Please confirm')}
|
|
90
|
-
text={I18n.t(
|
|
91
|
-
this.state.showWarning === 'everySecond'
|
|
92
|
-
? 'ra_The schedule will be executed every second. Are you sure?'
|
|
93
|
-
: 'ra_The schedule will be executed every minute. Are you sure?',
|
|
94
|
-
)}
|
|
95
|
-
onClose={(ok: boolean) =>
|
|
96
|
-
this.setState({ showWarning: '' }, () => {
|
|
97
|
-
if (ok) {
|
|
98
|
-
this.handleOk(true);
|
|
99
|
-
}
|
|
100
|
-
})
|
|
101
|
-
}
|
|
102
|
-
/>
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
handleClear(): void {
|
|
107
|
-
this.props.onOk(false);
|
|
108
|
-
this.props.onClose();
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
render(): JSX.Element {
|
|
112
|
-
return (
|
|
113
|
-
<Dialog
|
|
114
|
-
onClose={() => {}}
|
|
115
|
-
maxWidth="md"
|
|
116
|
-
fullWidth
|
|
117
|
-
sx={{ '& .MuiDialog-paper': styles.dialogPaper }}
|
|
118
|
-
open={!0}
|
|
119
|
-
aria-labelledby="cron-dialog-title"
|
|
120
|
-
>
|
|
121
|
-
{this.renderWarningDialog()}
|
|
122
|
-
<DialogTitle id="cron-dialog-title">{this.props.title || I18n.t('ra_Define schedule...')}</DialogTitle>
|
|
123
|
-
<DialogContent style={{ height: '100%', overflow: 'hidden' }}>
|
|
124
|
-
<ComplexCron
|
|
125
|
-
cronExpression={this.state.cron}
|
|
126
|
-
onChange={cron => this.setState({ cron })}
|
|
127
|
-
language={I18n.getLanguage()}
|
|
128
|
-
/>
|
|
129
|
-
</DialogContent>
|
|
130
|
-
<DialogActions>
|
|
131
|
-
{!!this.props.clearButton && (
|
|
132
|
-
<Button
|
|
133
|
-
color="grey"
|
|
134
|
-
variant="contained"
|
|
135
|
-
onClick={() => this.handleClear()}
|
|
136
|
-
startIcon={<IconClear />}
|
|
137
|
-
>
|
|
138
|
-
{this.props.clear || I18n.t('ra_Clear')}
|
|
139
|
-
</Button>
|
|
140
|
-
)}
|
|
141
|
-
<Button
|
|
142
|
-
variant="contained"
|
|
143
|
-
onClick={() => this.handleOk()}
|
|
144
|
-
color="primary"
|
|
145
|
-
startIcon={<IconOk />}
|
|
146
|
-
>
|
|
147
|
-
{this.props.ok || I18n.t('ra_Ok')}
|
|
148
|
-
</Button>
|
|
149
|
-
<Button
|
|
150
|
-
color="grey"
|
|
151
|
-
variant="contained"
|
|
152
|
-
onClick={() => this.handleCancel()}
|
|
153
|
-
startIcon={<IconCancel />}
|
|
154
|
-
>
|
|
155
|
-
{this.props.cancel || I18n.t('ra_Cancel')}
|
|
156
|
-
</Button>
|
|
157
|
-
</DialogActions>
|
|
158
|
-
</Dialog>
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export default DialogComplexCron;
|
package/src/Dialogs/Confirm.tsx
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2019-2024 Denis Haev (bluefox) <dogafox@gmail.com>
|
|
3
|
-
*
|
|
4
|
-
* MIT License
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined
|
|
9
|
-
import React, { Component, type JSX } from 'react';
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
Button,
|
|
13
|
-
Dialog,
|
|
14
|
-
DialogActions,
|
|
15
|
-
DialogContent,
|
|
16
|
-
DialogContentText,
|
|
17
|
-
DialogTitle,
|
|
18
|
-
FormControlLabel,
|
|
19
|
-
Checkbox,
|
|
20
|
-
} from '@mui/material';
|
|
21
|
-
|
|
22
|
-
import { Check as IconCheck, Close as IconClose } from '@mui/icons-material';
|
|
23
|
-
|
|
24
|
-
import I18n from '../i18n';
|
|
25
|
-
|
|
26
|
-
const styles: Record<string, React.CSSProperties> = {
|
|
27
|
-
suppress: {
|
|
28
|
-
fontSize: 12,
|
|
29
|
-
},
|
|
30
|
-
suppressRoot: {
|
|
31
|
-
// it is sx
|
|
32
|
-
marginTop: '16px',
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
interface DialogConfirmProps {
|
|
37
|
-
/** The dialog title; default: Are you sure? (translated) */
|
|
38
|
-
title?: string;
|
|
39
|
-
/** The dialog text */
|
|
40
|
-
text?: string | React.JSX.Element | React.JSX.Element[];
|
|
41
|
-
/** Close handler. */
|
|
42
|
-
onClose?: (ok: boolean) => void;
|
|
43
|
-
/** if the dialog must be fill sized */
|
|
44
|
-
fullWidth?: boolean;
|
|
45
|
-
/** optional icon */
|
|
46
|
-
icon?: React.JSX.Element;
|
|
47
|
-
/** optional ok button text */
|
|
48
|
-
ok?: string;
|
|
49
|
-
/** optional cancel button text */
|
|
50
|
-
cancel?: string;
|
|
51
|
-
/** optional interval in minutes for which the confirmation dialog will be suppressed if activated. */
|
|
52
|
-
suppressQuestionMinutes?: number;
|
|
53
|
-
/** optional text for the suppression checkbox */
|
|
54
|
-
suppressText?: string;
|
|
55
|
-
/** optional name of the dialog. Used only with suppressQuestionMinutes to store the user choice */
|
|
56
|
-
dialogName?: string;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
interface DialogConfirmState {
|
|
60
|
-
suppress: number | boolean;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
class DialogConfirm extends Component<DialogConfirmProps, DialogConfirmState> {
|
|
64
|
-
constructor(props: DialogConfirmProps) {
|
|
65
|
-
super(props);
|
|
66
|
-
|
|
67
|
-
if (!this.props.dialogName && this.props.suppressQuestionMinutes) {
|
|
68
|
-
throw new Error('dialogName required if suppressQuestionMinutes used');
|
|
69
|
-
}
|
|
70
|
-
let suppress: number | boolean = false;
|
|
71
|
-
|
|
72
|
-
if (this.props.suppressQuestionMinutes) {
|
|
73
|
-
suppress =
|
|
74
|
-
parseInt(((window as any)._localStorage || window.localStorage).getItem(this.props.dialogName), 10) ||
|
|
75
|
-
0;
|
|
76
|
-
|
|
77
|
-
if (!suppress) {
|
|
78
|
-
suppress = false;
|
|
79
|
-
} else if (Date.now() > suppress) {
|
|
80
|
-
((window as any)._localStorage || window.localStorage).removeItem(this.props.dialogName);
|
|
81
|
-
suppress = false;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
this.state = {
|
|
86
|
-
suppress,
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
handleOk(): void {
|
|
91
|
-
if (this.state.suppress) {
|
|
92
|
-
((window as any)._localStorage || window.localStorage).setItem(
|
|
93
|
-
this.props.dialogName,
|
|
94
|
-
Date.now() + (this.props.suppressQuestionMinutes || 2) * 60000,
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
if (this.props.onClose) {
|
|
98
|
-
this.props.onClose(true);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
handleCancel(): void {
|
|
103
|
-
if (this.props.onClose) {
|
|
104
|
-
this.props.onClose(false);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
render(): JSX.Element | null {
|
|
109
|
-
if (typeof this.state.suppress === 'number') {
|
|
110
|
-
setTimeout(() => this.props.onClose && this.props.onClose(true), 100);
|
|
111
|
-
return null;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return (
|
|
115
|
-
<Dialog
|
|
116
|
-
open={!0}
|
|
117
|
-
maxWidth="md"
|
|
118
|
-
fullWidth={this.props.fullWidth !== undefined ? this.props.fullWidth : true}
|
|
119
|
-
onClose={(event, reason) => {
|
|
120
|
-
if (reason !== 'backdropClick' && reason !== 'escapeKeyDown') {
|
|
121
|
-
this.handleCancel();
|
|
122
|
-
}
|
|
123
|
-
}}
|
|
124
|
-
aria-labelledby="ar_confirmation_dialog_title"
|
|
125
|
-
aria-describedby="ar_confirmation_dialog_description"
|
|
126
|
-
>
|
|
127
|
-
<DialogTitle id="ar_confirmation_dialog_title">
|
|
128
|
-
{this.props.title || I18n.t('ra_Are you sure?')}
|
|
129
|
-
</DialogTitle>
|
|
130
|
-
<DialogContent>
|
|
131
|
-
<DialogContentText id="ar_confirmation_dialog_description">
|
|
132
|
-
{this.props.icon || null}
|
|
133
|
-
{this.props.text}
|
|
134
|
-
{this.props.suppressQuestionMinutes ? <br /> : null}
|
|
135
|
-
{this.props.suppressQuestionMinutes ? (
|
|
136
|
-
<FormControlLabel
|
|
137
|
-
sx={{
|
|
138
|
-
'& .FormControlLabel-label': styles.suppress,
|
|
139
|
-
'&.FormControlLabel-root': styles.suppressRoot,
|
|
140
|
-
}}
|
|
141
|
-
control={
|
|
142
|
-
<Checkbox
|
|
143
|
-
id={`ar_dialog_confirm_suppress_${this.props.dialogName || ''}`}
|
|
144
|
-
checked={!!this.state.suppress}
|
|
145
|
-
onChange={() => this.setState({ suppress: !this.state.suppress })}
|
|
146
|
-
/>
|
|
147
|
-
}
|
|
148
|
-
label={
|
|
149
|
-
this.props.suppressText ||
|
|
150
|
-
I18n.t(
|
|
151
|
-
'ra_Suppress question for next %s minutes',
|
|
152
|
-
(this.props.suppressQuestionMinutes || 2).toString(),
|
|
153
|
-
)
|
|
154
|
-
}
|
|
155
|
-
/>
|
|
156
|
-
) : null}
|
|
157
|
-
</DialogContentText>
|
|
158
|
-
</DialogContent>
|
|
159
|
-
<DialogActions>
|
|
160
|
-
<Button
|
|
161
|
-
id={`ar_dialog_confirm_ok_${this.props.dialogName || ''}`}
|
|
162
|
-
variant="contained"
|
|
163
|
-
onClick={() => this.handleOk()}
|
|
164
|
-
color="primary"
|
|
165
|
-
autoFocus
|
|
166
|
-
startIcon={<IconCheck />}
|
|
167
|
-
>
|
|
168
|
-
{this.props.ok || I18n.t('ra_Ok')}
|
|
169
|
-
</Button>
|
|
170
|
-
<Button
|
|
171
|
-
id={`ar_dialog_confirm_cancel_${this.props.dialogName || ''}`}
|
|
172
|
-
variant="contained"
|
|
173
|
-
onClick={() => this.handleCancel()}
|
|
174
|
-
color="grey"
|
|
175
|
-
startIcon={<IconClose />}
|
|
176
|
-
>
|
|
177
|
-
{this.props.cancel || I18n.t('ra_Cancel')}
|
|
178
|
-
</Button>
|
|
179
|
-
</DialogActions>
|
|
180
|
-
</Dialog>
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export default DialogConfirm;
|