@iobroker/adapter-react-v5 3.1.25 → 3.1.26

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 (116) 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/Icon.d.ts +21 -0
  8. package/Components/IconPicker.d.ts +64 -0
  9. package/Components/IconSelector.d.ts +25 -0
  10. package/Components/Image.d.ts +64 -0
  11. package/Components/JsonConfigComponent/ChipInput.d.ts +13 -0
  12. package/Components/JsonConfigComponent/ConfigAlive.d.ts +10 -0
  13. package/Components/JsonConfigComponent/ConfigAutocomplete.d.ts +14 -0
  14. package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.d.ts +14 -0
  15. package/Components/JsonConfigComponent/ConfigCRON.d.ts +15 -0
  16. package/Components/JsonConfigComponent/ConfigCertificateSelect.d.ts +14 -0
  17. package/Components/JsonConfigComponent/ConfigCheckbox.d.ts +14 -0
  18. package/Components/JsonConfigComponent/ConfigChip.d.ts +14 -0
  19. package/Components/JsonConfigComponent/ConfigColor.d.ts +14 -0
  20. package/Components/JsonConfigComponent/ConfigCoordinates.d.ts +14 -0
  21. package/Components/JsonConfigComponent/ConfigCustom.d.ts +26 -0
  22. package/Components/JsonConfigComponent/ConfigDatePicker.d.ts +14 -0
  23. package/Components/JsonConfigComponent/ConfigFile.d.ts +15 -0
  24. package/Components/JsonConfigComponent/ConfigFileSelector.d.ts +3 -0
  25. package/Components/JsonConfigComponent/ConfigFunc.d.ts +14 -0
  26. package/Components/JsonConfigComponent/ConfigGeneric.d.ts +71 -0
  27. package/Components/JsonConfigComponent/ConfigIP.d.ts +14 -0
  28. package/Components/JsonConfigComponent/ConfigImageUpload.d.ts +14 -0
  29. package/Components/JsonConfigComponent/ConfigInstanceSelect.d.ts +14 -0
  30. package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +14 -0
  31. package/Components/JsonConfigComponent/ConfigLanguage.d.ts +14 -0
  32. package/Components/JsonConfigComponent/ConfigNumber.d.ts +3 -0
  33. package/Components/JsonConfigComponent/ConfigObjectId.d.ts +17 -0
  34. package/Components/JsonConfigComponent/ConfigPanel.d.ts +3 -0
  35. package/Components/JsonConfigComponent/ConfigPassword.d.ts +14 -0
  36. package/Components/JsonConfigComponent/ConfigPattern.d.ts +14 -0
  37. package/Components/JsonConfigComponent/ConfigRoom.d.ts +14 -0
  38. package/Components/JsonConfigComponent/ConfigSelect.d.ts +14 -0
  39. package/Components/JsonConfigComponent/ConfigSelectSendTo.d.ts +17 -0
  40. package/Components/JsonConfigComponent/ConfigSendto.d.ts +18 -0
  41. package/Components/JsonConfigComponent/ConfigSetState.d.ts +18 -0
  42. package/Components/JsonConfigComponent/ConfigSlider.d.ts +14 -0
  43. package/Components/JsonConfigComponent/ConfigStaticDivider.d.ts +14 -0
  44. package/Components/JsonConfigComponent/ConfigStaticHeader.d.ts +14 -0
  45. package/Components/JsonConfigComponent/ConfigStaticImage.d.ts +14 -0
  46. package/Components/JsonConfigComponent/ConfigStaticText.d.ts +14 -0
  47. package/Components/JsonConfigComponent/ConfigTable.d.ts +3 -0
  48. package/Components/JsonConfigComponent/ConfigTabs.d.ts +33 -0
  49. package/Components/JsonConfigComponent/ConfigText.d.ts +14 -0
  50. package/Components/JsonConfigComponent/ConfigTextSendTo.d.ts +10 -0
  51. package/Components/JsonConfigComponent/ConfigTimePicker.d.ts +14 -0
  52. package/Components/JsonConfigComponent/ConfigTopic.d.ts +17 -0
  53. package/Components/JsonConfigComponent/ConfigUser.d.ts +14 -0
  54. package/Components/JsonConfigComponent/index.d.ts +27 -0
  55. package/Components/Loader.d.ts +37 -0
  56. package/Components/Loaders/PT.d.ts +41 -0
  57. package/Components/Loaders/Vendor.d.ts +41 -0
  58. package/Components/Logo.d.ts +59 -0
  59. package/Components/MDUtils.d.ts +12 -0
  60. package/Components/ObjectBrowser.d.ts +632 -0
  61. package/Components/Router.d.ts +35 -0
  62. package/Components/SaveCloseButtons.d.ts +64 -0
  63. package/Components/Schedule.d.ts +7 -0
  64. package/Components/SelectWithIcon.d.ts +21 -0
  65. package/Components/SimpleCron/cron2text.d.ts +8 -0
  66. package/Components/SimpleCron/cronText.d.ts +2 -0
  67. package/Components/SimpleCron/index.d.ts +8 -0
  68. package/Components/SimpleCron/jquery.cron.locale.d.ts +2 -0
  69. package/Components/TabContainer.d.ts +42 -0
  70. package/Components/TabContent.d.ts +32 -0
  71. package/Components/TabHeader.d.ts +13 -0
  72. package/Components/TableResize.d.ts +14 -0
  73. package/Components/TextWithIcon.d.ts +3 -0
  74. package/Components/ToggleThemeMenu.d.ts +8 -0
  75. package/Components/TreeTable.d.ts +3 -0
  76. package/Components/UploadImage.d.ts +2 -0
  77. package/Components/Utils.d.ts +334 -0
  78. package/Components/copy-to-clipboard.d.ts +2 -0
  79. package/Components/withWidth.d.ts +2 -0
  80. package/Connection.d.ts +761 -0
  81. package/Connection.js +9 -1
  82. package/Connection.js.map +1 -1
  83. package/Dialogs/ComplexCron.d.ts +15 -0
  84. package/Dialogs/Confirm.d.ts +48 -0
  85. package/Dialogs/Cron.d.ts +15 -0
  86. package/Dialogs/Error.d.ts +49 -0
  87. package/Dialogs/FileSelect.d.ts +148 -0
  88. package/Dialogs/Message.d.ts +39 -0
  89. package/Dialogs/SelectID.d.ts +161 -0
  90. package/Dialogs/SimpleCron.d.ts +14 -0
  91. package/Dialogs/TextInput.d.ts +87 -0
  92. package/GenericApp.d.ts +213 -0
  93. package/Prompt.d.ts +5 -0
  94. package/README.md +2 -1
  95. package/Theme.d.ts +7 -0
  96. package/assets/devices/parseNames.d.ts +1 -0
  97. package/assets/rooms/parseNames.d.ts +1 -0
  98. package/i18n.d.ts +92 -0
  99. package/icons/IconAdapter.d.ts +11 -0
  100. package/icons/IconAlias.d.ts +11 -0
  101. package/icons/IconChannel.d.ts +11 -0
  102. package/icons/IconClearFilter.d.ts +11 -0
  103. package/icons/IconClosed.d.ts +11 -0
  104. package/icons/IconCopy.d.ts +38 -0
  105. package/icons/IconDevice.d.ts +11 -0
  106. package/icons/IconDocument.d.ts +11 -0
  107. package/icons/IconDocumentReadOnly.d.ts +11 -0
  108. package/icons/IconExpert.d.ts +38 -0
  109. package/icons/IconFx.d.ts +11 -0
  110. package/icons/IconInstance.d.ts +11 -0
  111. package/icons/IconLogout.d.ts +38 -0
  112. package/icons/IconNoIcon.d.ts +38 -0
  113. package/icons/IconOpen.d.ts +11 -0
  114. package/icons/IconState.d.ts +11 -0
  115. package/index.d.ts +113 -0
  116. package/package.json +8 -8
@@ -0,0 +1,3 @@
1
+ declare const _default: React.JSXElementConstructor<any>;
2
+ export default _default;
3
+ import React from "react";
@@ -0,0 +1,138 @@
1
+ export default _export;
2
+ export type Rgb = {
3
+ /**
4
+ * The red component of the color (0-255).
5
+ */
6
+ r: number;
7
+ /**
8
+ * The green component of the color (0-255).
9
+ */
10
+ g: number;
11
+ /**
12
+ * The blue component of the color (0-255).
13
+ */
14
+ b: number;
15
+ /**
16
+ * The alpha component of the color (0-255).
17
+ */
18
+ a: number;
19
+ };
20
+ /**
21
+ * Definition of a color.
22
+ */
23
+ export type Color = string | Rgb | {
24
+ rgb: Rgb;
25
+ };
26
+ export type ColorPickerProps = {
27
+ /**
28
+ * Set to true to disable the color picker.
29
+ */
30
+ disabled?: boolean;
31
+ /**
32
+ * The currently selected color.
33
+ */
34
+ value?: Color;
35
+ /**
36
+ * The color change callback.
37
+ */
38
+ onChange?: (rgba: string) => void;
39
+ /**
40
+ * The name.
41
+ */
42
+ name?: string;
43
+ /**
44
+ * Additional styling for this component.
45
+ */
46
+ style?: React.CSSProperties;
47
+ /**
48
+ * The CSS class name.
49
+ */
50
+ className?: string;
51
+ /**
52
+ * Open the color picker above the field?
53
+ */
54
+ openAbove?: boolean;
55
+ };
56
+ /** @type {typeof ColorPicker} */
57
+ declare const _export: typeof ColorPicker;
58
+ /**
59
+ * @typedef {object} Rgb
60
+ * @property {number} r The red component of the color (0-255).
61
+ * @property {number} g The green component of the color (0-255).
62
+ * @property {number} b The blue component of the color (0-255).
63
+ * @property {number} a The alpha component of the color (0-255).
64
+ *
65
+ * @typedef {string | Rgb | { rgb: Rgb }} Color Definition of a color.
66
+ *
67
+ * @typedef {object} ColorPickerProps
68
+ * @property {boolean} [disabled] Set to true to disable the color picker.
69
+ * @property {Color} [value] The currently selected color.
70
+ * @property {(rgba: string) => void} [onChange] The color change callback.
71
+ * @property {string} [name] The name.
72
+ * @property {React.CSSProperties} [style] Additional styling for this component.
73
+ * @property {string} [className] The CSS class name.
74
+ * @property {boolean} [openAbove] Open the color picker above the field?
75
+ *
76
+ * @extends {React.Component<ColorPickerProps>}
77
+ */
78
+ declare class ColorPicker extends React.Component<ColorPickerProps, any, any> {
79
+ /**
80
+ * Get the state derived from the given properties and state.
81
+ * @param {{ color: Color; }} props
82
+ * @param {{ color: Color; }} state
83
+ */
84
+ static getDerivedStateFromProps(props: {
85
+ color: Color;
86
+ }, state: {
87
+ color: Color;
88
+ }): {
89
+ color: any;
90
+ };
91
+ /**
92
+ * Convert the given color to hex ('#rrggbb') or rgba ('rgba(r,g,b,a)') format.
93
+ * @param {Color} [color]
94
+ * @param {boolean} [isHex] The returning string should be in hex format
95
+ * @returns {string} the hex or rgba representation of the given color.
96
+ */
97
+ static getColor(color?: Color, isHex?: boolean): string;
98
+ /**
99
+ * Convert rgb() or rgba() format to hex format #rrggbb.
100
+ * @param {string} rgb
101
+ * @returns {string}
102
+ */
103
+ static rgb2hex(rgb: string): string;
104
+ /**
105
+ * @param {Readonly<ColorPickerProps>} props
106
+ */
107
+ constructor(props: Readonly<ColorPickerProps>);
108
+ state: {
109
+ displayColorPicker: boolean;
110
+ color: any;
111
+ };
112
+ /**
113
+ * @private
114
+ */
115
+ private handleClick;
116
+ /**
117
+ * @private
118
+ */
119
+ private handleClose;
120
+ /**
121
+ * @private
122
+ */
123
+ private handleChange;
124
+ render(): JSX.Element;
125
+ }
126
+ declare namespace ColorPicker {
127
+ namespace propTypes {
128
+ const disabled: PropTypes.Requireable<boolean>;
129
+ const value: PropTypes.Requireable<string>;
130
+ const onChange: PropTypes.Validator<(...args: any[]) => any>;
131
+ const name: PropTypes.Requireable<string>;
132
+ const style: PropTypes.Requireable<object>;
133
+ const className: PropTypes.Requireable<string>;
134
+ const openAbove: PropTypes.Requireable<boolean>;
135
+ }
136
+ }
137
+ import React from "react";
138
+ import PropTypes from "prop-types";
@@ -0,0 +1,8 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ cronExpression: PropTypes.Requireable<string>;
3
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
4
+ language: PropTypes.Requireable<string>;
5
+ }>, "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"slider" | "appBar" | "mainDiv" | "periodSelect" | "tabContent" | "numberButton" | "numberButtonBreak"> & object>;
6
+ export default _default;
7
+ import PropTypes from "prop-types";
8
+ import React from "react";
@@ -0,0 +1,3 @@
1
+ declare const _default: React.JSXElementConstructor<any>;
2
+ export default _default;
3
+ import React from "react";
@@ -0,0 +1,125 @@
1
+ export default _export;
2
+ /** @type {typeof FileBrowser} */
3
+ declare const _export: typeof FileBrowser;
4
+ /**
5
+ * @extends {React.Component<import('./types').FileBrowserProps>}
6
+ */
7
+ declare class FileBrowser extends React.Component<import("./types").FileBrowserProps, any, any> {
8
+ static getDerivedStateFromProps(props: any, state: any): {
9
+ expertMode: any;
10
+ loadAllFolders: boolean;
11
+ };
12
+ static getEditFile(ext: any): boolean;
13
+ /**
14
+ * @param {Readonly<import("./types").FileBrowserProps>} props
15
+ */
16
+ constructor(props: Readonly<import("./types").FileBrowserProps>);
17
+ limitToObjectID: any;
18
+ limitToPath: any;
19
+ state: {
20
+ viewType: any;
21
+ folders: {};
22
+ filterEmpty: boolean;
23
+ expanded: any;
24
+ currentDir: string;
25
+ expertMode: boolean;
26
+ addFolder: boolean;
27
+ uploadFile: boolean;
28
+ deleteItem: string;
29
+ marked: any[];
30
+ viewer: string;
31
+ formatEditFile: string;
32
+ path: any;
33
+ selected: any;
34
+ errorText: string;
35
+ modalEditOfAccess: boolean;
36
+ backgroundImage: any;
37
+ queueLength: number;
38
+ loadAllFolders: boolean;
39
+ allFoldersLoaded: boolean;
40
+ fileErrors: any[];
41
+ };
42
+ imagePrefix: string;
43
+ levelPadding: any;
44
+ mounted: boolean;
45
+ suppressDeleteConfirm: number;
46
+ browseList: any[];
47
+ browseListRunning: boolean;
48
+ initialReadFinished: boolean;
49
+ supportSubscribes: any;
50
+ _tempTimeout: {};
51
+ loadFolders(): any;
52
+ scrollToSelected(): void;
53
+ componentDidMount(): Promise<void>;
54
+ componentWillUnmount(): void;
55
+ browseFolders(foldersList: any, _newFolders: any, _resolve: any): any;
56
+ readDirSerial(adapter: any, relPath: any): Promise<any>;
57
+ processBrowseList(level: any): void;
58
+ browseFolder(folderId: any, _newFolders: any, _checkEmpty: any, force: any): any;
59
+ toggleFolder(item: any, e: any): any;
60
+ onFileChange: (id: any, fileName: any, size: any) => void;
61
+ changeFolder(e: any, folder: any): any;
62
+ lastSelect: number;
63
+ select(id: any, e: any, cb: any): void;
64
+ renderFolder(item: any, expanded: any): JSX.Element;
65
+ renderBackFolder(): JSX.Element;
66
+ formatSize(size: any): JSX.Element;
67
+ formatAcl(acl: any): JSX.Element;
68
+ getFileIcon(ext: any): JSX.Element;
69
+ setStateBackgroundImage: () => void;
70
+ getClassBackgroundImage: () => any;
71
+ renderFile(item: any): JSX.Element;
72
+ renderItems(folderId: any): any;
73
+ renderToolbar(): JSX.Element;
74
+ findItem(id: any, folders: any): any;
75
+ renderInputDialog(): void | JSX.Element;
76
+ componentDidUpdate(): void;
77
+ setOpacityTimer: any;
78
+ uploadFile(fileName: any, data: any): Promise<void>;
79
+ findFirstFolder(id: any): any;
80
+ renderUpload(): JSX.Element[];
81
+ deleteRecursive(id: any): Promise<void>;
82
+ deleteItem(deleteItem: any): void;
83
+ renderDeleteDialog(): false | JSX.Element;
84
+ renderViewDialog(): JSX.Element;
85
+ renderError(): JSX.Element;
86
+ updateItemsAcl(info: any): void;
87
+ changeToPath(): void;
88
+ renderBreadcrumb(): any;
89
+ renderPath(): JSX.Element;
90
+ render(): JSX.Element;
91
+ foldersLoading: boolean;
92
+ }
93
+ declare namespace FileBrowser {
94
+ namespace defaultProps {
95
+ function modalEditOfAccessControl(): void;
96
+ }
97
+ namespace propTypes {
98
+ export const style: PropTypes.Requireable<object>;
99
+ export const className: PropTypes.Requireable<string>;
100
+ export const t: PropTypes.Validator<(...args: any[]) => any>;
101
+ export const lang: PropTypes.Validator<string>;
102
+ export const socket: PropTypes.Validator<object>;
103
+ export const ready: PropTypes.Requireable<boolean>;
104
+ export const expertMode: PropTypes.Requireable<boolean>;
105
+ export const showToolbar: PropTypes.Requireable<boolean>;
106
+ export const allowUpload: PropTypes.Requireable<boolean>;
107
+ export const allowDownload: PropTypes.Requireable<boolean>;
108
+ export const allowCreateFolder: PropTypes.Requireable<boolean>;
109
+ export const allowDelete: PropTypes.Requireable<boolean>;
110
+ export const allowView: PropTypes.Requireable<boolean>;
111
+ export const imagePrefix: PropTypes.Requireable<string>;
112
+ export const showExpertButton: PropTypes.Requireable<boolean>;
113
+ export const viewType: PropTypes.Requireable<string>;
114
+ export const showViewTypeButton: PropTypes.Requireable<boolean>;
115
+ export const selected: PropTypes.Requireable<string>;
116
+ export const tileView: PropTypes.Requireable<boolean>;
117
+ export const filterFiles: PropTypes.Requireable<any[]>;
118
+ export const filterByType: PropTypes.Requireable<string>;
119
+ export const onSelect: PropTypes.Requireable<(...args: any[]) => any>;
120
+ const modalEditOfAccessControl_1: PropTypes.Requireable<(...args: any[]) => any>;
121
+ export { modalEditOfAccessControl_1 as modalEditOfAccessControl };
122
+ }
123
+ }
124
+ import React from "react";
125
+ import PropTypes from "prop-types";
@@ -0,0 +1,80 @@
1
+ export namespace EXTENSIONS {
2
+ const images: string[];
3
+ const code: string[];
4
+ const txt: string[];
5
+ const audio: string[];
6
+ const video: string[];
7
+ }
8
+ export default _export;
9
+ export type FileViewerProps = {
10
+ /**
11
+ * Translation function
12
+ */
13
+ t: import('../types').Translator;
14
+ /**
15
+ * The selected language.
16
+ */
17
+ lang?: ioBroker.Languages;
18
+ /**
19
+ * Is expert mode enabled? (default: false)
20
+ */
21
+ expertMode?: boolean;
22
+ /**
23
+ * Callback when the viewer is closed.
24
+ */
25
+ onClose: () => void;
26
+ /**
27
+ * The URL to the file to be displayed.
28
+ */
29
+ href: string;
30
+ };
31
+ /** @type {typeof FileViewer} */
32
+ declare const _export: typeof FileViewer;
33
+ /**
34
+ * @typedef {object} FileViewerProps
35
+ * @property {import('../types').Translator} t Translation function
36
+ * @property {ioBroker.Languages} [lang] The selected language.
37
+ * @property {boolean} [expertMode] Is expert mode enabled? (default: false)
38
+ * @property {() => void} onClose Callback when the viewer is closed.
39
+ * @property {string} href The URL to the file to be displayed.
40
+ *
41
+ * @extends {React.Component<FileViewerProps>}
42
+ */
43
+ declare class FileViewer extends React.Component<FileViewerProps, any, any> {
44
+ static getEditFile(ext: any): "html" | "json" | "json5" | "javascript";
45
+ /**
46
+ * @param {Readonly<FileViewerProps>} props
47
+ */
48
+ constructor(props: Readonly<FileViewerProps>);
49
+ state: {
50
+ text: any;
51
+ code: any;
52
+ ext: string;
53
+ editing: boolean;
54
+ editingValue: any;
55
+ copyPossible: boolean;
56
+ forceUpdate: number;
57
+ changed: boolean;
58
+ imgError: boolean;
59
+ };
60
+ readFile(): void;
61
+ componentDidMount(): void;
62
+ componentWillUnmount(): void;
63
+ onFileChanged: (id: any, fileName: any, size: any) => void;
64
+ timeout: any;
65
+ writeFile64: () => void;
66
+ getContent(): JSX.Element;
67
+ render(): JSX.Element;
68
+ }
69
+ declare namespace FileViewer {
70
+ namespace propTypes {
71
+ const t: PropTypes.Requireable<(...args: any[]) => any>;
72
+ const lang: PropTypes.Requireable<string>;
73
+ const expertMode: PropTypes.Requireable<boolean>;
74
+ const onClose: PropTypes.Requireable<(...args: any[]) => any>;
75
+ const href: PropTypes.Validator<string>;
76
+ const supportSubscribes: PropTypes.Requireable<boolean>;
77
+ }
78
+ }
79
+ import React from "react";
80
+ import PropTypes from "prop-types";
@@ -0,0 +1,21 @@
1
+ export function getSystemIcon(obj: any): JSX.Element;
2
+ export function getSelectIdIcon(obj: any, imagePrefix: any): string;
3
+ export default Icon;
4
+ declare class Icon extends React.Component<any, any, any> {
5
+ constructor(props: any);
6
+ constructor(props: any, context: any);
7
+ render(): any;
8
+ }
9
+ declare namespace Icon {
10
+ namespace propTypes {
11
+ const color: PropTypes.Requireable<string>;
12
+ const title: PropTypes.Requireable<string>;
13
+ const src: PropTypes.Validator<string | object>;
14
+ const className: PropTypes.Requireable<string>;
15
+ const imagePrefix: PropTypes.Requireable<string>;
16
+ const style: PropTypes.Requireable<object>;
17
+ const styleUTF8: PropTypes.Requireable<object>;
18
+ }
19
+ }
20
+ import React from "react";
21
+ import PropTypes from "prop-types";
@@ -0,0 +1,64 @@
1
+ export default IconPicker;
2
+ export type IconPickerProps = {
3
+ /**
4
+ * The value.
5
+ */
6
+ value?: string;
7
+ /**
8
+ * The label.
9
+ */
10
+ label?: string;
11
+ /**
12
+ * Set to true to disable the icon picker.
13
+ */
14
+ disabled?: boolean;
15
+ /**
16
+ * The icon change callback.
17
+ */
18
+ onChange: (icon: string) => void;
19
+ /**
20
+ * The socket connection.
21
+ */
22
+ socket: import('../Connection').default;
23
+ /**
24
+ * The image prefix (default: './files/')
25
+ */
26
+ imagePrefix?: string;
27
+ /**
28
+ * Additional styling for this component.
29
+ */
30
+ style?: React.CSSProperties;
31
+ /**
32
+ * The CSS class name.
33
+ */
34
+ className?: string;
35
+ };
36
+ /**
37
+ * @typedef {object} IconPickerProps
38
+ * @property {string} [value] The value.
39
+ * @property {string} [label] The label.
40
+ * @property {boolean} [disabled] Set to true to disable the icon picker.
41
+ * @property {(icon: string) => void} onChange The icon change callback.
42
+ * @property {import('../Connection').default} socket The socket connection.
43
+ * @property {string} [imagePrefix] The image prefix (default: './files/')
44
+ * @property {React.CSSProperties} [style] Additional styling for this component.
45
+ * @property {string} [className] The CSS class name.
46
+ *
47
+ * @extends {React.Component<IconPickerProps>}
48
+ */
49
+ declare function IconPicker(props: any): JSX.Element;
50
+ declare namespace IconPicker {
51
+ namespace propTypes {
52
+ const previewClassName: PropTypes.Requireable<string>;
53
+ const icon: PropTypes.Requireable<object>;
54
+ const customClasses: PropTypes.Requireable<object>;
55
+ const label: PropTypes.Requireable<string>;
56
+ const value: PropTypes.Requireable<any>;
57
+ const disabled: PropTypes.Requireable<boolean>;
58
+ const onChange: PropTypes.Validator<(...args: any[]) => any>;
59
+ const icons: PropTypes.Requireable<any[]>;
60
+ const onlyRooms: PropTypes.Requireable<boolean>;
61
+ const onlyDevices: PropTypes.Requireable<boolean>;
62
+ }
63
+ }
64
+ import PropTypes from "prop-types";
@@ -0,0 +1,25 @@
1
+ export default IconSelector;
2
+ declare class IconSelector extends React.Component<any, any, any> {
3
+ constructor(props: any);
4
+ state: {
5
+ opened: boolean;
6
+ names: any[];
7
+ filter: string;
8
+ icons: any;
9
+ };
10
+ loadAllIcons(): void;
11
+ render(): JSX.Element;
12
+ }
13
+ declare namespace IconSelector {
14
+ namespace propTypes {
15
+ const icons: PropTypes.Requireable<any[]>;
16
+ const onlyRooms: PropTypes.Requireable<boolean>;
17
+ const onlyDevices: PropTypes.Requireable<boolean>;
18
+ const onSelect: PropTypes.Requireable<(...args: any[]) => any>;
19
+ const onChange: PropTypes.Requireable<(...args: any[]) => any>;
20
+ const t: PropTypes.Validator<(...args: any[]) => any>;
21
+ const lang: PropTypes.Validator<string>;
22
+ }
23
+ }
24
+ import React from "react";
25
+ import PropTypes from "prop-types";
@@ -0,0 +1,64 @@
1
+ export default Image;
2
+ export type ImageProps = {
3
+ /**
4
+ * The color.
5
+ */
6
+ color?: string;
7
+ /**
8
+ * The source of the image.
9
+ */
10
+ src?: string;
11
+ /**
12
+ * The image prefix (default: './files/')
13
+ */
14
+ imagePrefix?: string;
15
+ /**
16
+ * The CSS class name.
17
+ */
18
+ className?: string;
19
+ /**
20
+ * Show image errors (or just show no image)?
21
+ */
22
+ showError?: boolean;
23
+ };
24
+ /**
25
+ * @typedef {object} ImageProps
26
+ * @property {string} [color] The color.
27
+ * @property {string} [src] The source of the image.
28
+ * @property {string} [imagePrefix] The image prefix (default: './files/')
29
+ * @property {string} [className] The CSS class name.
30
+ * @property {boolean} [showError] Show image errors (or just show no image)?
31
+ *
32
+ * @extends {React.Component<ImageProps>}
33
+ */
34
+ declare class Image extends React.Component<ImageProps, any, any> {
35
+ static getDerivedStateFromProps(props: any, state: any): {
36
+ src: any;
37
+ svg: any;
38
+ created: boolean;
39
+ color: any;
40
+ showError: any;
41
+ };
42
+ constructor(props: any);
43
+ state: {
44
+ svg: boolean;
45
+ created: boolean;
46
+ color: string;
47
+ src: string;
48
+ imgError: boolean;
49
+ showError: boolean;
50
+ };
51
+ svg: JSX.Element;
52
+ getSvgFromData(src: any): JSX.Element;
53
+ render(): JSX.Element;
54
+ }
55
+ declare namespace Image {
56
+ namespace propTypes {
57
+ const color: PropTypes.Requireable<string>;
58
+ const src: PropTypes.Validator<string>;
59
+ const className: PropTypes.Requireable<string>;
60
+ const imagePrefix: PropTypes.Requireable<string>;
61
+ }
62
+ }
63
+ import React from "react";
64
+ import PropTypes from "prop-types";
@@ -0,0 +1,13 @@
1
+ declare const _default: React.JSXElementConstructor<any>;
2
+ export default _default;
3
+ export function defaultChipRenderer({ value, text, isFocused, isDisabled, isReadOnly, handleClick, handleDelete, className }: {
4
+ value: any;
5
+ text: any;
6
+ isFocused: any;
7
+ isDisabled: any;
8
+ isReadOnly: any;
9
+ handleClick: any;
10
+ handleDelete: any;
11
+ className: any;
12
+ }, key: any): JSX.Element;
13
+ import React from "react";
@@ -0,0 +1,10 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ socket: PropTypes.Validator<object>;
3
+ data: PropTypes.Validator<object>;
4
+ schema: PropTypes.Requireable<object>;
5
+ adapterName: PropTypes.Requireable<string>;
6
+ instance: PropTypes.Requireable<number>;
7
+ }>, "classes"> & import("@mui/styles").StyledComponentProps<"root" | "notAlive"> & object>;
8
+ export default _default;
9
+ import PropTypes from "prop-types";
10
+ import React from "react";
@@ -0,0 +1,14 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ socket: PropTypes.Validator<object>;
3
+ themeType: PropTypes.Requireable<string>;
4
+ themeName: PropTypes.Requireable<string>;
5
+ style: PropTypes.Requireable<object>;
6
+ className: PropTypes.Requireable<string>;
7
+ data: PropTypes.Validator<object>;
8
+ schema: PropTypes.Requireable<object>;
9
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
10
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
11
+ }>, "classes"> & import("@mui/styles").StyledComponentProps<"fullWidth"> & object>;
12
+ export default _default;
13
+ import PropTypes from "prop-types";
14
+ import React from "react";
@@ -0,0 +1,14 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ socket: PropTypes.Validator<object>;
3
+ themeType: PropTypes.Requireable<string>;
4
+ themeName: PropTypes.Requireable<string>;
5
+ style: PropTypes.Requireable<object>;
6
+ className: PropTypes.Requireable<string>;
7
+ data: PropTypes.Validator<object>;
8
+ schema: PropTypes.Requireable<object>;
9
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
10
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
11
+ }>, "classes"> & import("@mui/styles").StyledComponentProps<"fullWidth"> & object>;
12
+ export default _default;
13
+ import PropTypes from "prop-types";
14
+ import React from "react";
@@ -0,0 +1,15 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ themeType: PropTypes.Requireable<string>;
3
+ themeName: PropTypes.Requireable<string>;
4
+ style: PropTypes.Requireable<object>;
5
+ className: PropTypes.Requireable<string>;
6
+ data: PropTypes.Validator<object>;
7
+ schema: PropTypes.Requireable<object>;
8
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
9
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
10
+ dateFormat: PropTypes.Requireable<string>;
11
+ isFloatComma: PropTypes.Requireable<boolean>;
12
+ }>, "classes"> & import("@mui/styles").StyledComponentProps<"button" | "flex" | "fullWidth"> & object>;
13
+ export default _default;
14
+ import PropTypes from "prop-types";
15
+ import React from "react";
@@ -0,0 +1,14 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ socket: PropTypes.Validator<object>;
3
+ themeType: PropTypes.Requireable<string>;
4
+ themeName: PropTypes.Requireable<string>;
5
+ style: PropTypes.Requireable<object>;
6
+ className: PropTypes.Requireable<string>;
7
+ data: PropTypes.Validator<object>;
8
+ schema: PropTypes.Requireable<object>;
9
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
10
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
11
+ }>, "classes"> & import("@mui/styles").StyledComponentProps<"fullWidth"> & object>;
12
+ export default _default;
13
+ import PropTypes from "prop-types";
14
+ import React from "react";
@@ -0,0 +1,14 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ socket: PropTypes.Validator<object>;
3
+ themeType: PropTypes.Requireable<string>;
4
+ themeName: PropTypes.Requireable<string>;
5
+ style: PropTypes.Requireable<object>;
6
+ className: PropTypes.Requireable<string>;
7
+ data: PropTypes.Validator<object>;
8
+ schema: PropTypes.Requireable<object>;
9
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
10
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
11
+ }>, "classes"> & import("@mui/styles").StyledComponentProps<"error"> & object>;
12
+ export default _default;
13
+ import PropTypes from "prop-types";
14
+ import React from "react";
@@ -0,0 +1,14 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ socket: PropTypes.Validator<object>;
3
+ themeType: PropTypes.Requireable<string>;
4
+ themeName: PropTypes.Requireable<string>;
5
+ style: PropTypes.Requireable<object>;
6
+ className: PropTypes.Requireable<string>;
7
+ data: PropTypes.Validator<object>;
8
+ schema: PropTypes.Requireable<object>;
9
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
10
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
11
+ }>, "classes"> & import("@mui/styles").StyledComponentProps<"fullWidth"> & object>;
12
+ export default _default;
13
+ import PropTypes from "prop-types";
14
+ import React from "react";
@@ -0,0 +1,14 @@
1
+ declare const _default: React.JSXElementConstructor<Omit<PropTypes.InferProps<{
2
+ socket: PropTypes.Validator<object>;
3
+ themeType: PropTypes.Requireable<string>;
4
+ themeName: PropTypes.Requireable<string>;
5
+ style: PropTypes.Requireable<object>;
6
+ className: PropTypes.Requireable<string>;
7
+ data: PropTypes.Validator<object>;
8
+ schema: PropTypes.Requireable<object>;
9
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
10
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
11
+ }>, "classes"> & import("@mui/styles").StyledComponentProps<never> & object>;
12
+ export default _default;
13
+ import PropTypes from "prop-types";
14
+ import React from "react";