@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,25 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { Translator } from '../types';
|
|
3
|
+
interface IconSelectorProps {
|
|
4
|
+
icons: {
|
|
5
|
+
icon?: string;
|
|
6
|
+
src?: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
name?: ioBroker.StringOrTranslated;
|
|
9
|
+
_id?: string;
|
|
10
|
+
}[];
|
|
11
|
+
onlyRooms?: boolean;
|
|
12
|
+
onlyDevices?: boolean;
|
|
13
|
+
onSelect?: (icon: string) => void;
|
|
14
|
+
onChange?: (icon: string) => void;
|
|
15
|
+
t: Translator;
|
|
16
|
+
lang: ioBroker.Languages;
|
|
17
|
+
}
|
|
18
|
+
interface IconSelectorState {
|
|
19
|
+
opened: boolean;
|
|
20
|
+
names: string[];
|
|
21
|
+
filter: string;
|
|
22
|
+
icons: string[] | null;
|
|
23
|
+
loading: boolean;
|
|
24
|
+
isAnyName: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare class IconSelector extends Component<IconSelectorProps, IconSelectorState> {
|
|
27
|
+
constructor(props: IconSelectorProps);
|
|
10
28
|
loadAllIcons(): void;
|
|
11
29
|
render(): React.JSX.Element;
|
|
12
30
|
}
|
|
13
|
-
|
|
14
|
-
namespace propTypes {
|
|
15
|
-
let icons: PropTypes.Requireable<any[]>;
|
|
16
|
-
let onlyRooms: PropTypes.Requireable<boolean>;
|
|
17
|
-
let onlyDevices: PropTypes.Requireable<boolean>;
|
|
18
|
-
let onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
-
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
let t: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
-
let lang: PropTypes.Validator<string>;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
import React from 'react';
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
31
|
+
export default IconSelector;
|