@iobroker/adapter-react-v5 4.10.1 → 4.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Components/CustomModal.d.ts +24 -2
- package/Components/CustomModal.js +77 -145
- package/Components/FileBrowser.d.ts +68 -130
- package/Components/FileBrowser.js +1405 -1987
- package/Components/FileViewer.d.ts +9 -82
- package/Components/FileViewer.js +248 -321
- package/Components/IconSelector.d.ts +28 -22
- package/Components/IconSelector.js +2122 -2073
- package/Components/Loader.d.ts +8 -3
- package/Components/Loader.js +4 -2
- package/Components/Loaders/MV.d.ts +12 -0
- package/Components/Loaders/MV.js +51 -0
- package/Components/Loaders/PT.d.ts +19 -38
- package/Components/Loaders/PT.js +153 -78
- package/Components/Loaders/Vendor.d.ts +19 -31
- package/Components/Loaders/Vendor.js +61 -79
- package/Components/SelectWithIcon.d.ts +23 -20
- package/Components/SelectWithIcon.js +143 -204
- package/Components/types.d.ts +0 -47
- package/Dialogs/Error.d.ts +3 -5
- package/Dialogs/Error.js +1 -3
- package/Dialogs/SelectFile.d.ts +53 -170
- package/Dialogs/SelectFile.js +100 -257
- package/README.md +3 -0
- package/icons/IconClearFilter.js.map +1 -1
- package/icons/IconClosed.js.map +1 -1
- package/icons/IconCopy.js.map +1 -1
- package/icons/IconDocumentReadOnly.js.map +1 -1
- package/icons/IconExpert.d.ts +10 -36
- package/icons/IconExpert.js +8 -42
- package/index.d.ts +2 -0
- package/index.js +5 -2
- package/package.json +2 -2
- package/types.d.ts +9 -7
- package/Components/CustomModal.js.map +0 -1
- package/Components/FileBrowser.js.map +0 -1
- package/Components/FileViewer.js.map +0 -1
- package/Components/IconSelector.js.map +0 -1
- package/Components/Loaders/PT.js.map +0 -1
- package/Components/Loaders/Vendor.js.map +0 -1
- package/Components/SelectWithIcon.js.map +0 -1
- package/Dialogs/SelectFile.js.map +0 -1
- package/icons/IconExpert.js.map +0 -1
|
@@ -1,83 +1,10 @@
|
|
|
1
|
-
export namespace EXTENSIONS {
|
|
2
|
-
let images: string[];
|
|
3
|
-
let code: string[];
|
|
4
|
-
let txt: string[];
|
|
5
|
-
let audio: string[];
|
|
6
|
-
let video: string[];
|
|
7
|
-
}
|
|
8
|
-
export default _export;
|
|
9
|
-
export type FileViewerProps = {
|
|
10
|
-
/**
|
|
11
|
-
* The key to identify this component.
|
|
12
|
-
*/
|
|
13
|
-
key?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Translation function
|
|
16
|
-
*/
|
|
17
|
-
t: import('../types').Translator;
|
|
18
|
-
/**
|
|
19
|
-
* The selected language.
|
|
20
|
-
*/
|
|
21
|
-
lang?: ioBroker.Languages;
|
|
22
|
-
/**
|
|
23
|
-
* Is expert mode enabled? (default: false)
|
|
24
|
-
*/
|
|
25
|
-
expertMode?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Callback when the viewer is closed.
|
|
28
|
-
*/
|
|
29
|
-
onClose: () => void;
|
|
30
|
-
/**
|
|
31
|
-
* The URL to the file to be displayed.
|
|
32
|
-
*/
|
|
33
|
-
href: string;
|
|
34
|
-
};
|
|
35
|
-
/** @type {typeof FileViewer} */
|
|
36
|
-
declare const _export: typeof FileViewer;
|
|
37
|
-
/**
|
|
38
|
-
* @typedef {object} FileViewerProps
|
|
39
|
-
* @property {string} [key] The key to identify this component.
|
|
40
|
-
* @property {import('../types').Translator} t Translation function
|
|
41
|
-
* @property {ioBroker.Languages} [lang] The selected language.
|
|
42
|
-
* @property {boolean} [expertMode] Is expert mode enabled? (default: false)
|
|
43
|
-
* @property {() => void} onClose Callback when the viewer is closed.
|
|
44
|
-
* @property {string} href The URL to the file to be displayed.
|
|
45
|
-
*
|
|
46
|
-
* @extends {React.Component<FileViewerProps>}
|
|
47
|
-
*/
|
|
48
|
-
declare class FileViewer extends React.Component<FileViewerProps, any, any> {
|
|
49
|
-
static getEditFile(ext: any): "json" | "html" | "javascript" | "json5";
|
|
50
|
-
/**
|
|
51
|
-
* @param {Readonly<FileViewerProps>} props
|
|
52
|
-
*/
|
|
53
|
-
constructor(props: Readonly<FileViewerProps>);
|
|
54
|
-
state: {
|
|
55
|
-
text: any;
|
|
56
|
-
code: any;
|
|
57
|
-
ext: string;
|
|
58
|
-
editing: boolean;
|
|
59
|
-
editingValue: any;
|
|
60
|
-
copyPossible: boolean;
|
|
61
|
-
forceUpdate: number;
|
|
62
|
-
changed: boolean;
|
|
63
|
-
imgError: boolean;
|
|
64
|
-
};
|
|
65
|
-
readFile(): void;
|
|
66
|
-
componentDidMount(): void;
|
|
67
|
-
componentWillUnmount(): void;
|
|
68
|
-
onFileChanged: (id: any, fileName: any, size: any) => void;
|
|
69
|
-
timeout: any;
|
|
70
|
-
writeFile64: () => void;
|
|
71
|
-
getContent(): React.JSX.Element;
|
|
72
|
-
render(): React.JSX.Element;
|
|
73
|
-
}
|
|
74
|
-
declare namespace FileViewer {
|
|
75
|
-
namespace propTypes {
|
|
76
|
-
let t: PropTypes.Requireable<(...args: any[]) => any>;
|
|
77
|
-
let onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
78
|
-
let href: PropTypes.Validator<string>;
|
|
79
|
-
let supportSubscribes: PropTypes.Requireable<boolean>;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
1
|
import React from 'react';
|
|
83
|
-
|
|
2
|
+
export declare const EXTENSIONS: {
|
|
3
|
+
images: string[];
|
|
4
|
+
code: string[];
|
|
5
|
+
txt: string[];
|
|
6
|
+
audio: string[];
|
|
7
|
+
video: string[];
|
|
8
|
+
};
|
|
9
|
+
declare const _default: (props: any) => React.JSX.Element;
|
|
10
|
+
export default _default;
|