@iobroker/adapter-react-v5 3.1.24 → 3.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/Components/404.d.ts +3 -0
  2. package/Components/ColorPicker.d.ts +138 -0
  3. package/Components/ComplexCron.d.ts +8 -0
  4. package/Components/CustomModal.d.ts +3 -0
  5. package/Components/FileBrowser.d.ts +125 -0
  6. package/Components/FileViewer.d.ts +80 -0
  7. package/Components/FileViewer.js +10 -9
  8. package/Components/FileViewer.js.map +1 -1
  9. package/Components/Icon.d.ts +21 -0
  10. package/Components/IconPicker.d.ts +64 -0
  11. package/Components/IconSelector.d.ts +25 -0
  12. package/Components/Image.d.ts +64 -0
  13. package/Components/JsonConfigComponent/ChipInput.d.ts +13 -0
  14. package/Components/JsonConfigComponent/ConfigAlive.d.ts +10 -0
  15. package/Components/JsonConfigComponent/ConfigAutocomplete.d.ts +14 -0
  16. package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.d.ts +14 -0
  17. package/Components/JsonConfigComponent/ConfigCRON.d.ts +15 -0
  18. package/Components/JsonConfigComponent/ConfigCertificateSelect.d.ts +14 -0
  19. package/Components/JsonConfigComponent/ConfigCheckbox.d.ts +14 -0
  20. package/Components/JsonConfigComponent/ConfigChip.d.ts +14 -0
  21. package/Components/JsonConfigComponent/ConfigColor.d.ts +14 -0
  22. package/Components/JsonConfigComponent/ConfigCoordinates.d.ts +14 -0
  23. package/Components/JsonConfigComponent/ConfigCustom.d.ts +26 -0
  24. package/Components/JsonConfigComponent/ConfigDatePicker.d.ts +14 -0
  25. package/Components/JsonConfigComponent/ConfigFile.d.ts +15 -0
  26. package/Components/JsonConfigComponent/ConfigFileSelector.d.ts +3 -0
  27. package/Components/JsonConfigComponent/ConfigFunc.d.ts +14 -0
  28. package/Components/JsonConfigComponent/ConfigGeneric.d.ts +71 -0
  29. package/Components/JsonConfigComponent/ConfigIP.d.ts +14 -0
  30. package/Components/JsonConfigComponent/ConfigImageUpload.d.ts +14 -0
  31. package/Components/JsonConfigComponent/ConfigInstanceSelect.d.ts +14 -0
  32. package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +14 -0
  33. package/Components/JsonConfigComponent/ConfigLanguage.d.ts +14 -0
  34. package/Components/JsonConfigComponent/ConfigNumber.d.ts +3 -0
  35. package/Components/JsonConfigComponent/ConfigObjectId.d.ts +17 -0
  36. package/Components/JsonConfigComponent/ConfigPanel.d.ts +3 -0
  37. package/Components/JsonConfigComponent/ConfigPassword.d.ts +14 -0
  38. package/Components/JsonConfigComponent/ConfigPattern.d.ts +14 -0
  39. package/Components/JsonConfigComponent/ConfigRoom.d.ts +14 -0
  40. package/Components/JsonConfigComponent/ConfigSelect.d.ts +14 -0
  41. package/Components/JsonConfigComponent/ConfigSelectSendTo.d.ts +17 -0
  42. package/Components/JsonConfigComponent/ConfigSendto.d.ts +18 -0
  43. package/Components/JsonConfigComponent/ConfigSendto.js +171 -9
  44. package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
  45. package/Components/JsonConfigComponent/ConfigSetState.d.ts +18 -0
  46. package/Components/JsonConfigComponent/ConfigSlider.d.ts +14 -0
  47. package/Components/JsonConfigComponent/ConfigStaticDivider.d.ts +14 -0
  48. package/Components/JsonConfigComponent/ConfigStaticHeader.d.ts +14 -0
  49. package/Components/JsonConfigComponent/ConfigStaticImage.d.ts +14 -0
  50. package/Components/JsonConfigComponent/ConfigStaticText.d.ts +14 -0
  51. package/Components/JsonConfigComponent/ConfigTable.d.ts +3 -0
  52. package/Components/JsonConfigComponent/ConfigTabs.d.ts +33 -0
  53. package/Components/JsonConfigComponent/ConfigText.d.ts +14 -0
  54. package/Components/JsonConfigComponent/ConfigTextSendTo.d.ts +10 -0
  55. package/Components/JsonConfigComponent/ConfigTimePicker.d.ts +14 -0
  56. package/Components/JsonConfigComponent/ConfigTopic.d.ts +17 -0
  57. package/Components/JsonConfigComponent/ConfigUser.d.ts +14 -0
  58. package/Components/JsonConfigComponent/index.d.ts +27 -0
  59. package/Components/JsonConfigComponent/index.js +21 -17
  60. package/Components/JsonConfigComponent/index.js.map +1 -1
  61. package/Components/Loader.d.ts +37 -0
  62. package/Components/Loaders/PT.d.ts +41 -0
  63. package/Components/Loaders/Vendor.d.ts +41 -0
  64. package/Components/Logo.d.ts +59 -0
  65. package/Components/MDUtils.d.ts +12 -0
  66. package/Components/ObjectBrowser.d.ts +632 -0
  67. package/Components/Router.d.ts +35 -0
  68. package/Components/SaveCloseButtons.d.ts +64 -0
  69. package/Components/Schedule.d.ts +7 -0
  70. package/Components/SelectWithIcon.d.ts +21 -0
  71. package/Components/SimpleCron/cron2text.d.ts +8 -0
  72. package/Components/SimpleCron/cronText.d.ts +2 -0
  73. package/Components/SimpleCron/index.d.ts +8 -0
  74. package/Components/SimpleCron/jquery.cron.locale.d.ts +2 -0
  75. package/Components/TabContainer.d.ts +42 -0
  76. package/Components/TabContent.d.ts +32 -0
  77. package/Components/TabHeader.d.ts +13 -0
  78. package/Components/TableResize.d.ts +14 -0
  79. package/Components/TextWithIcon.d.ts +3 -0
  80. package/Components/ToggleThemeMenu.d.ts +8 -0
  81. package/Components/TreeTable.d.ts +3 -0
  82. package/Components/UploadImage.d.ts +2 -0
  83. package/Components/Utils.d.ts +334 -0
  84. package/Components/copy-to-clipboard.d.ts +2 -0
  85. package/Components/withWidth.d.ts +2 -0
  86. package/Connection.d.ts +761 -0
  87. package/Connection.js +9 -1
  88. package/Connection.js.map +1 -1
  89. package/Dialogs/ComplexCron.d.ts +15 -0
  90. package/Dialogs/Confirm.d.ts +48 -0
  91. package/Dialogs/Cron.d.ts +15 -0
  92. package/Dialogs/Error.d.ts +49 -0
  93. package/Dialogs/FileSelect.d.ts +148 -0
  94. package/Dialogs/Message.d.ts +39 -0
  95. package/Dialogs/SelectID.d.ts +161 -0
  96. package/Dialogs/SimpleCron.d.ts +14 -0
  97. package/Dialogs/TextInput.d.ts +87 -0
  98. package/GenericApp.d.ts +213 -0
  99. package/Prompt.d.ts +5 -0
  100. package/README.md +7 -0
  101. package/Theme.d.ts +7 -0
  102. package/assets/devices/parseNames.d.ts +1 -0
  103. package/assets/rooms/parseNames.d.ts +1 -0
  104. package/i18n/de.json +4 -1
  105. package/i18n/en.json +4 -1
  106. package/i18n/es.json +4 -1
  107. package/i18n/fr.json +4 -1
  108. package/i18n/it.json +4 -1
  109. package/i18n/nl.json +4 -1
  110. package/i18n/pl.json +4 -1
  111. package/i18n/pt.json +4 -1
  112. package/i18n/ru.json +4 -1
  113. package/i18n/zh-cn.json +4 -1
  114. package/i18n.d.ts +92 -0
  115. package/icons/IconAdapter.d.ts +11 -0
  116. package/icons/IconAlias.d.ts +11 -0
  117. package/icons/IconChannel.d.ts +11 -0
  118. package/icons/IconClearFilter.d.ts +11 -0
  119. package/icons/IconClosed.d.ts +11 -0
  120. package/icons/IconCopy.d.ts +38 -0
  121. package/icons/IconDevice.d.ts +11 -0
  122. package/icons/IconDocument.d.ts +11 -0
  123. package/icons/IconDocumentReadOnly.d.ts +11 -0
  124. package/icons/IconExpert.d.ts +38 -0
  125. package/icons/IconFx.d.ts +11 -0
  126. package/icons/IconInstance.d.ts +11 -0
  127. package/icons/IconLogout.d.ts +38 -0
  128. package/icons/IconNoIcon.d.ts +38 -0
  129. package/icons/IconOpen.d.ts +11 -0
  130. package/icons/IconState.d.ts +11 -0
  131. package/index.d.ts +113 -0
  132. package/package.json +8 -8
@@ -0,0 +1,15 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ classes: PropTypes.Requireable<object>;
3
+ onClose: PropTypes.Validator<(...args: any[]) => any>;
4
+ onOk: PropTypes.Validator<(...args: any[]) => any>;
5
+ title: PropTypes.Requireable<string>;
6
+ cron: PropTypes.Requireable<string>;
7
+ cancel: PropTypes.Requireable<string>;
8
+ ok: PropTypes.Requireable<string>;
9
+ simple: PropTypes.Requireable<boolean>;
10
+ language: PropTypes.Requireable<string>;
11
+ clearButton: PropTypes.Requireable<boolean>;
12
+ }>, "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"radio" | "headerID" | "dialogPaper"> & object>;
13
+ export default _default;
14
+ import PropTypes from "prop-types";
15
+ import React from "react";
@@ -0,0 +1,48 @@
1
+ export default _export;
2
+ export type DialogConfirmProps = {
3
+ /**
4
+ * The dialog title; default: Are you sure? (translated)
5
+ */
6
+ title?: string;
7
+ /**
8
+ * The dialog text.
9
+ */
10
+ text: string;
11
+ /**
12
+ * The ok button text; default: OK (translated)
13
+ */
14
+ ok?: string;
15
+ /**
16
+ * The cancel button text; default: Cancel (translated)
17
+ */
18
+ cancel?: string;
19
+ /**
20
+ * interval in minutes for which the confirm dialog will be suppressed if activated.
21
+ */
22
+ suppressQuestionMinutes?: string;
23
+ /**
24
+ * The suppress checkbox text; default: Suppress question for next %s minutes (translated)
25
+ */
26
+ suppressText?: string;
27
+ /**
28
+ * Name of the dialog. Used only with suppressQuestionMinutes to store the user choice
29
+ */
30
+ dialogName?: string;
31
+ /**
32
+ * Close handler.
33
+ */
34
+ onClose?: (ok: boolean) => void;
35
+ };
36
+ declare const _export: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
37
+ onClose: PropTypes.Validator<(...args: any[]) => any>;
38
+ title: PropTypes.Requireable<string>;
39
+ text: PropTypes.Requireable<string>;
40
+ ok: PropTypes.Requireable<string>;
41
+ cancel: PropTypes.Requireable<string>;
42
+ icon: PropTypes.Requireable<object>;
43
+ suppressQuestionMinutes: PropTypes.Requireable<number>;
44
+ suppressText: PropTypes.Requireable<string>;
45
+ dialogName: PropTypes.Requireable<string>;
46
+ }>, "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"suppress" | "suppressRoot"> & object>;
47
+ import PropTypes from "prop-types";
48
+ import React from "react";
@@ -0,0 +1,15 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ classes: PropTypes.Requireable<object>;
3
+ onClose: PropTypes.Validator<(...args: any[]) => any>;
4
+ onOk: PropTypes.Validator<(...args: any[]) => any>;
5
+ title: PropTypes.Requireable<string>;
6
+ cron: PropTypes.Requireable<string>;
7
+ cancel: PropTypes.Requireable<string>;
8
+ ok: PropTypes.Requireable<string>;
9
+ simple: PropTypes.Requireable<boolean>;
10
+ complex: PropTypes.Requireable<boolean>;
11
+ language: PropTypes.Requireable<string>;
12
+ }>, "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"radio" | "buttonIcon" | "headerID" | "dialogPaper"> & object>;
13
+ export default _default;
14
+ import PropTypes from "prop-types";
15
+ import React from "react";
@@ -0,0 +1,49 @@
1
+ export default _export;
2
+ export type DialogErrorProps = {
3
+ /**
4
+ * The dialog title; default: Error (translated)
5
+ */
6
+ title?: string;
7
+ /**
8
+ * The dialog text.
9
+ */
10
+ text: string | JSX.Element;
11
+ /**
12
+ * Close handler.
13
+ */
14
+ onClose?: () => void;
15
+ /**
16
+ * The styling class names.
17
+ */
18
+ classes: {
19
+ titleBackground: string;
20
+ titleColor: string;
21
+ };
22
+ };
23
+ /** @type {typeof DialogError} */
24
+ declare const _export: typeof DialogError;
25
+ /**
26
+ * @typedef {object} DialogErrorProps
27
+ * @property {string} [title] The dialog title; default: Error (translated)
28
+ * @property {string | JSX.Element} text The dialog text.
29
+ * @property {() => void} [onClose] Close handler.
30
+ * @property {{titleBackground: string; titleColor: string}} classes The styling class names.
31
+ *
32
+ * @extends {React.Component<DialogErrorProps>}
33
+ */
34
+ declare class DialogError extends React.Component<DialogErrorProps, any, any> {
35
+ constructor(props: DialogErrorProps | Readonly<DialogErrorProps>);
36
+ constructor(props: DialogErrorProps, context: any);
37
+ handleOk(): void;
38
+ render(): JSX.Element;
39
+ }
40
+ declare namespace DialogError {
41
+ namespace propTypes {
42
+ const onClose: PropTypes.Validator<(...args: any[]) => any>;
43
+ const title: PropTypes.Requireable<string>;
44
+ const text: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
45
+ const icon: PropTypes.Requireable<object>;
46
+ }
47
+ }
48
+ import React from "react";
49
+ import PropTypes from "prop-types";
@@ -0,0 +1,148 @@
1
+ export default _export;
2
+ export type FileSelectDialogProps = {
3
+ /**
4
+ * The internal name of the dialog; default: "default"
5
+ */
6
+ dialogName?: string;
7
+ /**
8
+ * The dialog title; default: Please select object ID... (translated)
9
+ */
10
+ title?: string;
11
+ /**
12
+ * Prefix (default: '.')
13
+ */
14
+ imagePrefix?: string;
15
+ /**
16
+ * Pre-selected file
17
+ */
18
+ selected?: boolean;
19
+ /**
20
+ * Close handler that is always called when the dialog is closed.
21
+ */
22
+ onClose: () => void;
23
+ /**
24
+ * Handler that is called when the user presses OK.
25
+ */
26
+ onOk: (selected: string | undefined) => void;
27
+ /**
28
+ * The ok button text; default: OK (translated)
29
+ */
30
+ ok?: string;
31
+ /**
32
+ * The cancel button text; default: Cancel (translated)
33
+ */
34
+ cancel?: string;
35
+ /**
36
+ * Socket class (required)
37
+ */
38
+ socket?: boolean;
39
+ /**
40
+ * If download of files enabled
41
+ */
42
+ allowUpload?: boolean;
43
+ /**
44
+ * If download of files enabled
45
+ */
46
+ allowDownload?: boolean;
47
+ /**
48
+ * If creation of folders enabled
49
+ */
50
+ allowCreateFolder?: boolean;
51
+ /**
52
+ * If creation of folders enabled
53
+ */
54
+ allowDelete?: boolean;
55
+ /**
56
+ * if tile view enabled (default true)
57
+ */
58
+ allowView?: boolean;
59
+ /**
60
+ * Show toolbar (default true)
61
+ */
62
+ showToolbar?: boolean;
63
+ /**
64
+ * Limit file browser to one specific objectID of type meta and following path (like vis.0/main)
65
+ */
66
+ limitPath?: any[];
67
+ /**
68
+ * like `['png', 'svg', 'bmp', 'jpg', 'jpeg']`
69
+ */
70
+ filterFiles?: any[];
71
+ /**
72
+ * images, code, txt, audio, video
73
+ */
74
+ filterByType?: string;
75
+ /**
76
+ * allow only folders selection
77
+ */
78
+ selectOnlyFolders?: bool;
79
+ };
80
+ /** @type {typeof DialogFileSelect} */
81
+ declare const _export: typeof DialogFileSelect;
82
+ /**
83
+ * @typedef {object} FileSelectDialogProps
84
+ * @property {string} [dialogName] The internal name of the dialog; default: "default"
85
+ * @property {string} [title] The dialog title; default: Please select object ID... (translated)
86
+ * @property {string} [imagePrefix] Prefix (default: '.')
87
+ * @property {boolean} [dialogName] PropTypes.string, // where to store settings in localStorage
88
+ * @property {boolean} [selected] Pre-selected file
89
+ * @property {() => void} onClose Close handler that is always called when the dialog is closed.
90
+ * @property {(selected: string | undefined) => void} onOk Handler that is called when the user presses OK.
91
+ * @property {string} [ok] The ok button text; default: OK (translated)
92
+ * @property {string} [cancel] The cancel button text; default: Cancel (translated)
93
+ * @property {boolean} [socket] Socket class (required)
94
+ * @property {boolean} [allowUpload] If download of files enabled
95
+ * @property {boolean} [allowDownload] If download of files enabled
96
+ * @property {boolean} [allowCreateFolder] If creation of folders enabled
97
+ * @property {boolean} [allowDelete] If creation of folders enabled
98
+ * @property {boolean} [allowView] if tile view enabled (default true)
99
+ * @property {boolean} [showToolbar] Show toolbar (default true)
100
+ * @property {array} [limitPath] Limit file browser to one specific objectID of type meta and following path (like vis.0/main)
101
+ * @property {array} [filterFiles] like `['png', 'svg', 'bmp', 'jpg', 'jpeg']`
102
+ * @property {string} [filterByType] images, code, txt, audio, video
103
+ * @property {bool} [selectOnlyFolders] allow only folders selection
104
+ *
105
+ * @extends {React.Component<FileSelectDialogProps>}
106
+ */
107
+ declare class DialogFileSelect extends React.Component<FileSelectDialogProps, any, any> {
108
+ /**
109
+ * @param {FileSelectDialogProps} props
110
+ */
111
+ constructor(props: FileSelectDialogProps);
112
+ dialogName: string;
113
+ filters: any;
114
+ state: {
115
+ selected: string | true;
116
+ isFolder: boolean;
117
+ name: string;
118
+ isMobile: boolean;
119
+ };
120
+ handleCancel(): void;
121
+ handleOk(): void;
122
+ render(): JSX.Element;
123
+ }
124
+ declare namespace DialogFileSelect {
125
+ namespace propTypes {
126
+ const imagePrefix: PropTypes.Requireable<string>;
127
+ const dialogName: PropTypes.Requireable<string>;
128
+ const selected: PropTypes.Requireable<string>;
129
+ const onClose: PropTypes.Validator<(...args: any[]) => any>;
130
+ const onOk: PropTypes.Validator<(...args: any[]) => any>;
131
+ const ok: PropTypes.Requireable<string>;
132
+ const cancel: PropTypes.Requireable<string>;
133
+ const socket: PropTypes.Validator<object>;
134
+ const allowUpload: PropTypes.Requireable<boolean>;
135
+ const allowDownload: PropTypes.Requireable<boolean>;
136
+ const allowCreateFolder: PropTypes.Requireable<boolean>;
137
+ const allowDelete: PropTypes.Requireable<boolean>;
138
+ const allowView: PropTypes.Requireable<boolean>;
139
+ const showToolbar: PropTypes.Requireable<boolean>;
140
+ const objectID: PropTypes.Requireable<string>;
141
+ const filterFiles: PropTypes.Requireable<string[]>;
142
+ const filterByType: PropTypes.Requireable<string>;
143
+ const limitPath: PropTypes.Requireable<string>;
144
+ const selectOnlyFolders: PropTypes.Requireable<boolean>;
145
+ }
146
+ }
147
+ import React from "react";
148
+ import PropTypes from "prop-types";
@@ -0,0 +1,39 @@
1
+ export default DialogMessage;
2
+ export type DialogMessageProps = {
3
+ /**
4
+ * The dialog title; default: Message (translated)
5
+ */
6
+ title?: string;
7
+ /**
8
+ * The dialog text.
9
+ */
10
+ text: string;
11
+ /**
12
+ * Close handler.
13
+ */
14
+ onClose?: () => void;
15
+ };
16
+ /**
17
+ * @typedef {object} DialogMessageProps
18
+ * @property {string} [title] The dialog title; default: Message (translated)
19
+ * @property {string} text The dialog text.
20
+ * @property {() => void} [onClose] Close handler.
21
+ *
22
+ * @extends {React.Component<DialogMessageProps>}
23
+ */
24
+ declare class DialogMessage extends React.Component<DialogMessageProps, any, any> {
25
+ constructor(props: DialogMessageProps | Readonly<DialogMessageProps>);
26
+ constructor(props: DialogMessageProps, context: any);
27
+ handleOk(): void;
28
+ render(): JSX.Element;
29
+ }
30
+ declare namespace DialogMessage {
31
+ namespace propTypes {
32
+ const onClose: PropTypes.Validator<(...args: any[]) => any>;
33
+ const title: PropTypes.Requireable<string>;
34
+ const text: PropTypes.Requireable<string>;
35
+ const icon: PropTypes.Requireable<object>;
36
+ }
37
+ }
38
+ import React from "react";
39
+ import PropTypes from "prop-types";
@@ -0,0 +1,161 @@
1
+ export default _export;
2
+ export type DialogSelectIDProps = {
3
+ /**
4
+ * The internal name of the dialog; default: "default"
5
+ */
6
+ dialogName?: string;
7
+ /**
8
+ * The dialog title; default: Please select object ID... (translated)
9
+ */
10
+ title?: string;
11
+ /**
12
+ * Set to true to allow the selection of multiple IDs.
13
+ */
14
+ multiSelect?: boolean;
15
+ /**
16
+ * Show folders before any leaves.
17
+ */
18
+ foldersFirst?: boolean;
19
+ /**
20
+ * Prefix (default: '.')
21
+ */
22
+ imagePrefix?: string;
23
+ /**
24
+ * Show the expert button?
25
+ */
26
+ showExpertButton?: boolean;
27
+ /**
28
+ * Columns to display; default: 'name', 'type', 'role', 'room', 'func', 'val'
29
+ */
30
+ columns?: import('../Components/types').ObjectBrowserColumn[];
31
+ /**
32
+ * Object types to show; default: 'state' only
33
+ */
34
+ types?: import('../Components/types').ObjectBrowserType[];
35
+ /**
36
+ * The language.
37
+ */
38
+ lang?: ioBroker.Languages;
39
+ /**
40
+ * The socket connection.
41
+ */
42
+ socket: import('../Connection').default;
43
+ /**
44
+ * Can't objects be edited? (default: true)
45
+ */
46
+ notEditable?: boolean;
47
+ /**
48
+ * Theme name.
49
+ */
50
+ themeName?: string;
51
+ /**
52
+ * Theme type.
53
+ */
54
+ themeType?: string;
55
+ /**
56
+ * Custom filter.
57
+ */
58
+ customFilter?: import('../Components/types').ObjectBrowserCustomFilter;
59
+ /**
60
+ * The selected IDs.
61
+ */
62
+ selected?: string | string[];
63
+ /**
64
+ * The ok button text; default: OK (translated)
65
+ */
66
+ ok?: string;
67
+ /**
68
+ * The cancel button text; default: Cancel (translated)
69
+ */
70
+ cancel?: string;
71
+ /**
72
+ * Close handler that is always called when the dialog is closed.
73
+ */
74
+ onClose: () => void;
75
+ /**
76
+ * Handler that is called when the user presses OK.
77
+ */
78
+ onOk: (selected: string | string[] | undefined, name: string) => void;
79
+ /**
80
+ * The styling class names.
81
+ */
82
+ classes?: {
83
+ headerID: string;
84
+ dialog: string;
85
+ content: string;
86
+ };
87
+ };
88
+ /** @type {typeof DialogSelectID} */
89
+ declare const _export: typeof DialogSelectID;
90
+ /**
91
+ * @typedef {object} DialogSelectIDProps
92
+ * @property {string} [dialogName] The internal name of the dialog; default: "default"
93
+ * @property {string} [title] The dialog title; default: Please select object ID... (translated)
94
+ * @property {boolean} [multiSelect] Set to true to allow the selection of multiple IDs.
95
+ * @property {boolean} [foldersFirst] Show folders before any leaves.
96
+ * @property {string} [imagePrefix] Prefix (default: '.')
97
+ * @property {boolean} [showExpertButton] Show the expert button?
98
+ * @property {import('../Components/types').ObjectBrowserColumn[]} [columns] Columns to display; default: 'name', 'type', 'role', 'room', 'func', 'val'
99
+ * @property {import('../Components/types').ObjectBrowserType[]} [types] Object types to show; default: 'state' only
100
+ * @property {ioBroker.Languages} [lang] The language.
101
+ * @property {import('../Connection').default} socket The socket connection.
102
+ * @property {boolean} [notEditable] Can't objects be edited? (default: true)
103
+ * @property {string} [themeName] Theme name.
104
+ * @property {string} [themeType] Theme type.
105
+ * @property {import('../Components/types').ObjectBrowserCustomFilter} [customFilter] Custom filter.
106
+ * @property {string | string[]} [selected] The selected IDs.
107
+ * @property {string} [ok] The ok button text; default: OK (translated)
108
+ * @property {string} [cancel] The cancel button text; default: Cancel (translated)
109
+ * @property {() => void} onClose Close handler that is always called when the dialog is closed.
110
+ * @property {(selected: string | string[] | undefined, name: string) => void} onOk Handler that is called when the user presses OK.
111
+ * @property {{headerID: string; dialog: string; content: string}} [classes] The styling class names.
112
+ *
113
+ * @extends {React.Component<DialogSelectIDProps>}
114
+ */
115
+ declare class DialogSelectID extends React.Component<DialogSelectIDProps, any, any> {
116
+ /**
117
+ * @param {DialogSelectIDProps} props
118
+ */
119
+ constructor(props: DialogSelectIDProps);
120
+ dialogName: string;
121
+ filters: any;
122
+ state: {
123
+ selected: string[];
124
+ name: string;
125
+ isMobile: boolean;
126
+ };
127
+ handleCancel(): void;
128
+ handleOk(): void;
129
+ render(): JSX.Element;
130
+ }
131
+ declare namespace DialogSelectID {
132
+ namespace propTypes {
133
+ const dialogName: PropTypes.Requireable<string>;
134
+ const classes: PropTypes.Requireable<object>;
135
+ const notEditable: PropTypes.Requireable<boolean>;
136
+ const onClose: PropTypes.Validator<(...args: any[]) => any>;
137
+ const onOk: PropTypes.Validator<(...args: any[]) => any>;
138
+ const title: PropTypes.Requireable<string>;
139
+ const lang: PropTypes.Requireable<string>;
140
+ const foldersFirst: PropTypes.Requireable<boolean>;
141
+ const isFloatComma: PropTypes.Requireable<boolean>;
142
+ const dateFormat: PropTypes.Requireable<string>;
143
+ const selected: PropTypes.Requireable<string | any[]>;
144
+ const customFilter: PropTypes.Requireable<object>;
145
+ const statesOnly: PropTypes.Requireable<boolean>;
146
+ const socket: PropTypes.Validator<object>;
147
+ const cancel: PropTypes.Requireable<string>;
148
+ const imagePrefix: PropTypes.Requireable<string>;
149
+ const ok: PropTypes.Requireable<string>;
150
+ const themeName: PropTypes.Requireable<string>;
151
+ const themeType: PropTypes.Requireable<string>;
152
+ const showExpertButton: PropTypes.Requireable<boolean>;
153
+ const expertMode: PropTypes.Requireable<boolean>;
154
+ const multiSelect: PropTypes.Requireable<boolean>;
155
+ const types: PropTypes.Requireable<any[]>;
156
+ const columns: PropTypes.Requireable<any[]>;
157
+ const filterFunc: PropTypes.Requireable<(...args: any[]) => any>;
158
+ }
159
+ }
160
+ import React from "react";
161
+ import PropTypes from "prop-types";
@@ -0,0 +1,14 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ classes: PropTypes.Requireable<object>;
3
+ onClose: PropTypes.Validator<(...args: any[]) => any>;
4
+ onOk: PropTypes.Validator<(...args: any[]) => any>;
5
+ title: PropTypes.Requireable<string>;
6
+ cron: PropTypes.Requireable<string>;
7
+ cancel: PropTypes.Requireable<string>;
8
+ ok: PropTypes.Requireable<string>;
9
+ simple: PropTypes.Requireable<boolean>;
10
+ language: PropTypes.Requireable<string>;
11
+ }>, "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"radio" | "headerID" | "dialogPaper"> & object>;
12
+ export default _default;
13
+ import PropTypes from "prop-types";
14
+ import React from "react";
@@ -0,0 +1,87 @@
1
+ export default _export;
2
+ export type TextInputProps = {
3
+ /**
4
+ * The dialog close callback.
5
+ */
6
+ onClose: (text: string | null) => void;
7
+ /**
8
+ * The title text.
9
+ */
10
+ titleText: string;
11
+ /**
12
+ * Prompt text (default: empty).
13
+ */
14
+ promptText?: string;
15
+ /**
16
+ * Label text (default: empty).
17
+ */
18
+ labelText?: string;
19
+ /**
20
+ * The text of the cancel button.
21
+ */
22
+ cancelText: string;
23
+ /**
24
+ * The text of the apply button.
25
+ */
26
+ applyText: string;
27
+ /**
28
+ * The verification callback. Return a non-empty string if there was an error.
29
+ */
30
+ verify?: (text: string) => string;
31
+ /**
32
+ * The text replacement callback.
33
+ */
34
+ rule?: (text: string) => string;
35
+ /**
36
+ * The type of the textbox (default: text).
37
+ */
38
+ type?: 'text' | 'number' | 'password' | 'email';
39
+ /**
40
+ * The input when opening the dialog.
41
+ */
42
+ input?: string;
43
+ };
44
+ /** @type {typeof TextInput} */
45
+ declare const _export: typeof TextInput;
46
+ /**
47
+ * @typedef {object} TextInputProps
48
+ * @property {(text: string | null) => void} onClose The dialog close callback.
49
+ * @property {string} titleText The title text.
50
+ * @property {string} [promptText] Prompt text (default: empty).
51
+ * @property {string} [labelText] Label text (default: empty).
52
+ * @property {string} cancelText The text of the cancel button.
53
+ * @property {string} applyText The text of the apply button.
54
+ * @property {(text: string) => string} [verify] The verification callback. Return a non-empty string if there was an error.
55
+ * @property {(text: string) => string} [rule] The text replacement callback.
56
+ * @property {'text' | 'number' | 'password' | 'email'} [type] The type of the textbox (default: text).
57
+ * @property {string} [input] The input when opening the dialog.
58
+ *
59
+ * @extends {React.Component<TextInputProps>}
60
+ */
61
+ declare class TextInput extends React.Component<TextInputProps, any, any> {
62
+ /**
63
+ * @param {Readonly<TextInputProps>} props
64
+ */
65
+ constructor(props: Readonly<TextInputProps>);
66
+ state: {
67
+ text: any;
68
+ error: string;
69
+ };
70
+ render(): JSX.Element;
71
+ }
72
+ declare namespace TextInput {
73
+ namespace propTypes {
74
+ const onClose: PropTypes.Validator<(...args: any[]) => any>;
75
+ const titleText: PropTypes.Validator<string>;
76
+ const promptText: PropTypes.Requireable<string>;
77
+ const labelText: PropTypes.Requireable<string>;
78
+ const cancelText: PropTypes.Requireable<string>;
79
+ const applyText: PropTypes.Requireable<string>;
80
+ const verify: PropTypes.Requireable<(...args: any[]) => any>;
81
+ const replace: PropTypes.Requireable<(...args: any[]) => any>;
82
+ const type: PropTypes.Requireable<string>;
83
+ const value: PropTypes.Requireable<string>;
84
+ }
85
+ }
86
+ import React from "react";
87
+ import PropTypes from "prop-types";