@iobroker/adapter-react-v5 3.1.23 → 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.
- package/Components/404.d.ts +3 -0
- package/Components/ColorPicker.d.ts +138 -0
- package/Components/ComplexCron.d.ts +8 -0
- package/Components/CustomModal.d.ts +3 -0
- package/Components/FileBrowser.d.ts +125 -0
- package/Components/FileBrowser.js +26 -9
- package/Components/FileBrowser.js.map +1 -1
- package/Components/FileViewer.d.ts +80 -0
- package/Components/FileViewer.js +27 -22
- package/Components/FileViewer.js.map +1 -1
- package/Components/Icon.d.ts +21 -0
- package/Components/IconPicker.d.ts +64 -0
- package/Components/IconSelector.d.ts +25 -0
- package/Components/Image.d.ts +64 -0
- package/Components/JsonConfigComponent/ChipInput.d.ts +13 -0
- package/Components/JsonConfigComponent/ConfigAlive.d.ts +10 -0
- package/Components/JsonConfigComponent/ConfigAutocomplete.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigCRON.d.ts +15 -0
- package/Components/JsonConfigComponent/ConfigCertificateSelect.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigCheckbox.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigChip.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigColor.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigCoordinates.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigCustom.d.ts +26 -0
- package/Components/JsonConfigComponent/ConfigDatePicker.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigFile.d.ts +15 -0
- package/Components/JsonConfigComponent/ConfigFileSelector.d.ts +3 -0
- package/Components/JsonConfigComponent/ConfigFunc.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigGeneric.d.ts +71 -0
- package/Components/JsonConfigComponent/ConfigIP.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigImageUpload.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigInstanceSelect.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigLanguage.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigNumber.d.ts +3 -0
- package/Components/JsonConfigComponent/ConfigObjectId.d.ts +17 -0
- package/Components/JsonConfigComponent/ConfigPanel.d.ts +3 -0
- package/Components/JsonConfigComponent/ConfigPassword.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigPattern.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigRoom.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigSelect.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigSelectSendTo.d.ts +17 -0
- package/Components/JsonConfigComponent/ConfigSendto.d.ts +18 -0
- package/Components/JsonConfigComponent/ConfigSendto.js +171 -9
- package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSetState.d.ts +18 -0
- package/Components/JsonConfigComponent/ConfigSlider.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigStaticDivider.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigStaticHeader.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigStaticImage.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigStaticText.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigTable.d.ts +3 -0
- package/Components/JsonConfigComponent/ConfigTabs.d.ts +33 -0
- package/Components/JsonConfigComponent/ConfigText.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigText.js +24 -3
- package/Components/JsonConfigComponent/ConfigText.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTextSendTo.d.ts +10 -0
- package/Components/JsonConfigComponent/ConfigTimePicker.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigTopic.d.ts +17 -0
- package/Components/JsonConfigComponent/ConfigUser.d.ts +14 -0
- package/Components/JsonConfigComponent/index.d.ts +27 -0
- package/Components/JsonConfigComponent/index.js +21 -17
- package/Components/JsonConfigComponent/index.js.map +1 -1
- package/Components/Loader.d.ts +37 -0
- package/Components/Loaders/PT.d.ts +41 -0
- package/Components/Loaders/Vendor.d.ts +41 -0
- package/Components/Logo.d.ts +59 -0
- package/Components/MDUtils.d.ts +12 -0
- package/Components/ObjectBrowser.d.ts +632 -0
- package/Components/ObjectBrowser.js +315 -449
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/Router.d.ts +35 -0
- package/Components/SaveCloseButtons.d.ts +64 -0
- package/Components/Schedule.d.ts +7 -0
- package/Components/SelectWithIcon.d.ts +21 -0
- package/Components/SimpleCron/cron2text.d.ts +8 -0
- package/Components/SimpleCron/cronText.d.ts +2 -0
- package/Components/SimpleCron/index.d.ts +8 -0
- package/Components/SimpleCron/jquery.cron.locale.d.ts +2 -0
- package/Components/TabContainer.d.ts +42 -0
- package/Components/TabContent.d.ts +32 -0
- package/Components/TabHeader.d.ts +13 -0
- package/Components/TableResize.d.ts +14 -0
- package/Components/TextWithIcon.d.ts +3 -0
- package/Components/ToggleThemeMenu.d.ts +8 -0
- package/Components/TreeTable.d.ts +3 -0
- package/Components/UploadImage.d.ts +2 -0
- package/Components/Utils.d.ts +334 -0
- package/Components/copy-to-clipboard.d.ts +2 -0
- package/Components/withWidth.d.ts +2 -0
- package/Connection.d.ts +761 -0
- package/Connection.js +9 -1
- package/Connection.js.map +1 -1
- package/Dialogs/ComplexCron.d.ts +15 -0
- package/Dialogs/Confirm.d.ts +48 -0
- package/Dialogs/Cron.d.ts +15 -0
- package/Dialogs/Error.d.ts +49 -0
- package/Dialogs/FileSelect.d.ts +148 -0
- package/Dialogs/Message.d.ts +39 -0
- package/Dialogs/SelectID.d.ts +161 -0
- package/Dialogs/SimpleCron.d.ts +14 -0
- package/Dialogs/TextInput.d.ts +87 -0
- package/GenericApp.d.ts +213 -0
- package/Prompt.d.ts +5 -0
- package/README.md +7 -0
- package/Theme.d.ts +7 -0
- package/assets/devices/parseNames.d.ts +1 -0
- package/assets/rooms/parseNames.d.ts +1 -0
- package/i18n/de.json +4 -1
- package/i18n/en.json +4 -1
- package/i18n/es.json +4 -1
- package/i18n/fr.json +4 -1
- package/i18n/it.json +4 -1
- package/i18n/nl.json +4 -1
- package/i18n/pl.json +4 -1
- package/i18n/pt.json +4 -1
- package/i18n/ru.json +4 -1
- package/i18n/zh-cn.json +4 -1
- package/i18n.d.ts +92 -0
- package/icons/IconAdapter.d.ts +11 -0
- package/icons/IconAlias.d.ts +11 -0
- package/icons/IconChannel.d.ts +11 -0
- package/icons/IconClearFilter.d.ts +11 -0
- package/icons/IconClosed.d.ts +11 -0
- package/icons/IconCopy.d.ts +38 -0
- package/icons/IconDevice.d.ts +11 -0
- package/icons/IconDocument.d.ts +11 -0
- package/icons/IconDocumentReadOnly.d.ts +11 -0
- package/icons/IconExpert.d.ts +38 -0
- package/icons/IconFx.d.ts +11 -0
- package/icons/IconInstance.d.ts +11 -0
- package/icons/IconLogout.d.ts +38 -0
- package/icons/IconNoIcon.d.ts +38 -0
- package/icons/IconOpen.d.ts +11 -0
- package/icons/IconState.d.ts +11 -0
- package/index.d.ts +113 -0
- package/index.js +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1,632 @@
|
|
|
1
|
+
export default _export;
|
|
2
|
+
/** @type {typeof ObjectBrowser} */
|
|
3
|
+
declare const _export: typeof ObjectBrowser;
|
|
4
|
+
/**
|
|
5
|
+
* @extends {React.Component<import('./types').ObjectBrowserProps>}
|
|
6
|
+
*/
|
|
7
|
+
declare class ObjectBrowser extends React.Component<import("./types").ObjectBrowserProps, any, any> {
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
* @param {import('./types').ObjectBrowserProps} props
|
|
11
|
+
* @param {any} state
|
|
12
|
+
*/
|
|
13
|
+
private static getDerivedStateFromProps;
|
|
14
|
+
/**
|
|
15
|
+
* @param {import('./types').ObjectBrowserProps} props
|
|
16
|
+
*/
|
|
17
|
+
constructor(props: import('./types').ObjectBrowserProps);
|
|
18
|
+
lastSelectedItems: any;
|
|
19
|
+
tableRef: React.RefObject<any>;
|
|
20
|
+
filterRefs: {};
|
|
21
|
+
lastAppliedFilter: any;
|
|
22
|
+
pausedSubscribes: boolean;
|
|
23
|
+
selectedFound: boolean;
|
|
24
|
+
root: {
|
|
25
|
+
data: {
|
|
26
|
+
name: string;
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
children: any[];
|
|
30
|
+
};
|
|
31
|
+
states: {};
|
|
32
|
+
subscribes: any[];
|
|
33
|
+
statesUpdateTimer: any;
|
|
34
|
+
objectsUpdateTimer: any;
|
|
35
|
+
visibleCols: any[];
|
|
36
|
+
possibleCols: string[];
|
|
37
|
+
imagePrefix: string;
|
|
38
|
+
state: {
|
|
39
|
+
loaded: boolean;
|
|
40
|
+
foldersFirst: any;
|
|
41
|
+
selected: string[];
|
|
42
|
+
selectedNonObject: any;
|
|
43
|
+
filter: any;
|
|
44
|
+
filterKey: number;
|
|
45
|
+
depth: number;
|
|
46
|
+
expandAllVisible: boolean;
|
|
47
|
+
expanded: any;
|
|
48
|
+
toast: string;
|
|
49
|
+
lang: ioBroker.Languages;
|
|
50
|
+
scrollBarWidth: number;
|
|
51
|
+
customDialog: any[];
|
|
52
|
+
editObjectDialog: string;
|
|
53
|
+
viewFileDialog: string;
|
|
54
|
+
enumDialog: any;
|
|
55
|
+
roleDialog: any;
|
|
56
|
+
modalEmptyId: any;
|
|
57
|
+
statesView: boolean;
|
|
58
|
+
columns: any;
|
|
59
|
+
columnsForAdmin: any;
|
|
60
|
+
columnsSelectorShow: boolean;
|
|
61
|
+
columnsAuto: boolean;
|
|
62
|
+
columnsWidths: any;
|
|
63
|
+
columnsDialogTransparent: number;
|
|
64
|
+
columnsEditCustomDialog: any;
|
|
65
|
+
customColumnDialogValueChanged: boolean;
|
|
66
|
+
showExportDialog: boolean;
|
|
67
|
+
linesEnabled: boolean;
|
|
68
|
+
};
|
|
69
|
+
edit: {};
|
|
70
|
+
texts: {
|
|
71
|
+
value: string;
|
|
72
|
+
ack: string;
|
|
73
|
+
ts: string;
|
|
74
|
+
lc: string;
|
|
75
|
+
from: string;
|
|
76
|
+
user: string;
|
|
77
|
+
c: string;
|
|
78
|
+
quality: string;
|
|
79
|
+
editObject: string;
|
|
80
|
+
deleteObject: string;
|
|
81
|
+
customConfig: string;
|
|
82
|
+
copyState: string;
|
|
83
|
+
editState: string;
|
|
84
|
+
close: string;
|
|
85
|
+
filter_id: string;
|
|
86
|
+
filter_name: string;
|
|
87
|
+
filter_type: string;
|
|
88
|
+
filter_role: string;
|
|
89
|
+
filter_room: string;
|
|
90
|
+
filter_func: string;
|
|
91
|
+
filter_custom: string;
|
|
92
|
+
objectChangedByUser: string;
|
|
93
|
+
objectChangedBy: string;
|
|
94
|
+
objectChangedFrom: string;
|
|
95
|
+
stateChangedBy: string;
|
|
96
|
+
stateChangedFrom: string;
|
|
97
|
+
ownerGroup: string;
|
|
98
|
+
ownerUser: string;
|
|
99
|
+
deviceError: string;
|
|
100
|
+
deviceDisconnected: string;
|
|
101
|
+
deviceConnected: string;
|
|
102
|
+
aclOwner_read_object: string;
|
|
103
|
+
aclOwner_read_state: string;
|
|
104
|
+
aclOwner_write_object: string;
|
|
105
|
+
aclOwner_write_state: string;
|
|
106
|
+
aclGroup_read_object: string;
|
|
107
|
+
aclGroup_read_state: string;
|
|
108
|
+
aclGroup_write_object: string;
|
|
109
|
+
aclGroup_write_state: string;
|
|
110
|
+
aclEveryone_read_object: string;
|
|
111
|
+
aclEveryone_read_state: string;
|
|
112
|
+
aclEveryone_write_object: string;
|
|
113
|
+
aclEveryone_write_state: string;
|
|
114
|
+
};
|
|
115
|
+
levelPadding: any;
|
|
116
|
+
storedWidths: any;
|
|
117
|
+
customWidth: boolean;
|
|
118
|
+
loadAllObjects(update: any): Promise<void>;
|
|
119
|
+
systemConfig: any;
|
|
120
|
+
objects: any;
|
|
121
|
+
defaultHistory: any;
|
|
122
|
+
info: {
|
|
123
|
+
funcEnums: any[];
|
|
124
|
+
roomEnums: any[];
|
|
125
|
+
roles: any[];
|
|
126
|
+
ids: any[];
|
|
127
|
+
types: any[];
|
|
128
|
+
objects: any;
|
|
129
|
+
customs: any[];
|
|
130
|
+
enums: any[];
|
|
131
|
+
hasSomeCustoms: boolean;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* @private
|
|
135
|
+
* @param {ioBroker.EmptyCallback} cb
|
|
136
|
+
*/
|
|
137
|
+
private expandAllSelected;
|
|
138
|
+
/**
|
|
139
|
+
* @private
|
|
140
|
+
* @param {boolean} [isDouble]
|
|
141
|
+
*/
|
|
142
|
+
private onAfterSelect;
|
|
143
|
+
/**
|
|
144
|
+
* Called when component is mounted.
|
|
145
|
+
*/
|
|
146
|
+
componentDidMount(): void;
|
|
147
|
+
/**
|
|
148
|
+
* Called when component is unmounted.
|
|
149
|
+
*/
|
|
150
|
+
componentWillUnmount(): void;
|
|
151
|
+
filterTimer: NodeJS.Timeout;
|
|
152
|
+
/**
|
|
153
|
+
* Called when component is mounted.
|
|
154
|
+
*/
|
|
155
|
+
refreshComponent(): void;
|
|
156
|
+
/**
|
|
157
|
+
* Renders the error dialog.
|
|
158
|
+
* @returns {JSX.Element | null}
|
|
159
|
+
*/
|
|
160
|
+
renderErrorDialog(): JSX.Element | null;
|
|
161
|
+
/**
|
|
162
|
+
* Show the error dialog.
|
|
163
|
+
* @param {any} error
|
|
164
|
+
*/
|
|
165
|
+
showError(error: any): void;
|
|
166
|
+
/**
|
|
167
|
+
* Called when an item is selected/deselected.
|
|
168
|
+
* @param {string} toggleItem
|
|
169
|
+
* @param {boolean} [isDouble]
|
|
170
|
+
*/
|
|
171
|
+
onSelect(toggleItem: string, isDouble?: boolean): void;
|
|
172
|
+
/**
|
|
173
|
+
* @private
|
|
174
|
+
* @param {boolean} isLast
|
|
175
|
+
*/
|
|
176
|
+
/**
|
|
177
|
+
* Renders the columns selector.
|
|
178
|
+
* @returns {JSX.Element | null}
|
|
179
|
+
*/
|
|
180
|
+
renderColumnsSelectorDialog(): JSX.Element | null;
|
|
181
|
+
/**
|
|
182
|
+
* @private
|
|
183
|
+
*/
|
|
184
|
+
private getAdditionalColumns;
|
|
185
|
+
/**
|
|
186
|
+
* @private
|
|
187
|
+
*/
|
|
188
|
+
private checkUnsubscribes;
|
|
189
|
+
recordStates: any[];
|
|
190
|
+
/**
|
|
191
|
+
* Find an item.
|
|
192
|
+
* @param {string} id
|
|
193
|
+
* @param {string[] | undefined} [_parts]
|
|
194
|
+
* @param {{ data: { name: string; id: string; }; children: never[]; } | null | undefined} [_root]
|
|
195
|
+
* @param {string | undefined} [_partyId]
|
|
196
|
+
* @returns {any}
|
|
197
|
+
*/
|
|
198
|
+
findItem(id: string, _parts?: string[] | undefined, _root?: {
|
|
199
|
+
data: {
|
|
200
|
+
name: string;
|
|
201
|
+
id: string;
|
|
202
|
+
};
|
|
203
|
+
children: never[];
|
|
204
|
+
}, _partyId?: string | undefined): any;
|
|
205
|
+
/**
|
|
206
|
+
* Called when a state changes.
|
|
207
|
+
* @param {string} id
|
|
208
|
+
* @param {ioBroker.State} state
|
|
209
|
+
*/
|
|
210
|
+
onStateChange: (id: string, state: ioBroker.State) => void;
|
|
211
|
+
/**
|
|
212
|
+
* @private
|
|
213
|
+
* @param {{ [x: string]: any; }} columnsForAdmin
|
|
214
|
+
* @param {any} obj
|
|
215
|
+
*/
|
|
216
|
+
private parseObjectForAdmins;
|
|
217
|
+
/**
|
|
218
|
+
* @param {string} id
|
|
219
|
+
* @param {ioBroker.Object} obj
|
|
220
|
+
* @param {import('./types').OldObject} oldObj
|
|
221
|
+
*/
|
|
222
|
+
onObjectChange: (id: string, obj: ioBroker.Object, oldObj: any) => void;
|
|
223
|
+
/**
|
|
224
|
+
* @private
|
|
225
|
+
* @param {string} id
|
|
226
|
+
*/
|
|
227
|
+
private subscribe;
|
|
228
|
+
/**
|
|
229
|
+
* @private
|
|
230
|
+
* @param {string} id
|
|
231
|
+
*/
|
|
232
|
+
private unsubscribe;
|
|
233
|
+
/**
|
|
234
|
+
* @private
|
|
235
|
+
* @param {boolean} isPause
|
|
236
|
+
*/
|
|
237
|
+
private pauseSubscribe;
|
|
238
|
+
/**
|
|
239
|
+
* @private
|
|
240
|
+
* @param {string} [name]
|
|
241
|
+
* @param {boolean} [value]
|
|
242
|
+
*/
|
|
243
|
+
private onFilter;
|
|
244
|
+
clearFilter(): void;
|
|
245
|
+
isFilterEmpty(): boolean;
|
|
246
|
+
/**
|
|
247
|
+
* @private
|
|
248
|
+
* @param {string} name
|
|
249
|
+
*/
|
|
250
|
+
private getFilterInput;
|
|
251
|
+
/**
|
|
252
|
+
* @private
|
|
253
|
+
* @param {string} name
|
|
254
|
+
* @param {any[]} values
|
|
255
|
+
*/
|
|
256
|
+
private getFilterSelect;
|
|
257
|
+
/**
|
|
258
|
+
* @private
|
|
259
|
+
*/
|
|
260
|
+
private getFilterSelectRole;
|
|
261
|
+
/**
|
|
262
|
+
* @private
|
|
263
|
+
*/
|
|
264
|
+
private getFilterSelectRoom;
|
|
265
|
+
/**
|
|
266
|
+
* @private
|
|
267
|
+
*/
|
|
268
|
+
private getFilterSelectFunction;
|
|
269
|
+
/**
|
|
270
|
+
* @private
|
|
271
|
+
*/
|
|
272
|
+
private getFilterSelectType;
|
|
273
|
+
/**
|
|
274
|
+
* @private
|
|
275
|
+
*/
|
|
276
|
+
private getFilterSelectCustoms;
|
|
277
|
+
/**
|
|
278
|
+
* @private
|
|
279
|
+
* @param {any} [root]
|
|
280
|
+
* @param {any[]} [expanded]
|
|
281
|
+
*/
|
|
282
|
+
private onExpandAll;
|
|
283
|
+
/**
|
|
284
|
+
* @private
|
|
285
|
+
*/
|
|
286
|
+
private onCollapseAll;
|
|
287
|
+
/**
|
|
288
|
+
* @private
|
|
289
|
+
* @param {any} root
|
|
290
|
+
* @param {number} depth
|
|
291
|
+
* @param {any[]} expanded
|
|
292
|
+
*/
|
|
293
|
+
private expandDepth;
|
|
294
|
+
/**
|
|
295
|
+
* @private
|
|
296
|
+
* @param {number} depth
|
|
297
|
+
* @param {any[]} expanded
|
|
298
|
+
*/
|
|
299
|
+
private collapseDepth;
|
|
300
|
+
/**
|
|
301
|
+
* @private
|
|
302
|
+
*/
|
|
303
|
+
private onExpandVisible;
|
|
304
|
+
/**
|
|
305
|
+
* @private
|
|
306
|
+
*/
|
|
307
|
+
private onStatesViewVisible;
|
|
308
|
+
/**
|
|
309
|
+
* @private
|
|
310
|
+
*/
|
|
311
|
+
private onCollapseVisible;
|
|
312
|
+
/**
|
|
313
|
+
* @private
|
|
314
|
+
* @param {string} id
|
|
315
|
+
*/
|
|
316
|
+
private getEnumsForId;
|
|
317
|
+
/**
|
|
318
|
+
* @private
|
|
319
|
+
* @param {array} enums
|
|
320
|
+
* @param {string} objId
|
|
321
|
+
*/
|
|
322
|
+
private _createAllEnums;
|
|
323
|
+
/**
|
|
324
|
+
* @private
|
|
325
|
+
* @param {any} callback
|
|
326
|
+
*/
|
|
327
|
+
private loadObjects;
|
|
328
|
+
_getSelectedIdsForExport(): string[];
|
|
329
|
+
_exportObjects(isAll: any): void;
|
|
330
|
+
renderExportDialog(): JSX.Element;
|
|
331
|
+
/**
|
|
332
|
+
* @private
|
|
333
|
+
* @param {object} evt
|
|
334
|
+
*/
|
|
335
|
+
private handleJsonUpload;
|
|
336
|
+
toolTipObjectCreating: () => string | JSX.Element[];
|
|
337
|
+
/**
|
|
338
|
+
* Renders the toolbar.
|
|
339
|
+
* @returns {JSX.Element}
|
|
340
|
+
*/
|
|
341
|
+
getToolbar(): JSX.Element;
|
|
342
|
+
/**
|
|
343
|
+
* @private
|
|
344
|
+
* @param {string} id
|
|
345
|
+
*/
|
|
346
|
+
private toggleExpanded;
|
|
347
|
+
/**
|
|
348
|
+
* @private
|
|
349
|
+
* @param {Event} e
|
|
350
|
+
* @param {string} text
|
|
351
|
+
*/
|
|
352
|
+
private onCopy;
|
|
353
|
+
renderTooltipAccessControl: (acl: any) => "" | JSX.Element;
|
|
354
|
+
/**
|
|
355
|
+
* @param {string} id
|
|
356
|
+
* @param {{ data: { obj: { type: string; }; hasCustoms: any; }; }} item
|
|
357
|
+
* @param {{ cellButtonsButton: string | undefined; cellButtonsButtonAlone: any; cellButtonsButtonIcon: string | undefined; cellButtonsButtonWithCustoms: any; }} classes
|
|
358
|
+
*/
|
|
359
|
+
renderColumnButtons(id: string, item: {
|
|
360
|
+
data: {
|
|
361
|
+
obj: {
|
|
362
|
+
type: string;
|
|
363
|
+
};
|
|
364
|
+
hasCustoms: any;
|
|
365
|
+
};
|
|
366
|
+
}, classes: {
|
|
367
|
+
cellButtonsButton: string | undefined;
|
|
368
|
+
cellButtonsButtonAlone: any;
|
|
369
|
+
cellButtonsButtonIcon: string | undefined;
|
|
370
|
+
cellButtonsButtonWithCustoms: any;
|
|
371
|
+
}): JSX.Element | JSX.Element[];
|
|
372
|
+
/**
|
|
373
|
+
* @private
|
|
374
|
+
* @param {string} id
|
|
375
|
+
*/
|
|
376
|
+
private readHistory;
|
|
377
|
+
/**
|
|
378
|
+
* @private
|
|
379
|
+
* @param {string} id
|
|
380
|
+
* @param {any} item
|
|
381
|
+
* @param {Record<string, any>} classes
|
|
382
|
+
* @returns {JSX.Element | null}
|
|
383
|
+
*/
|
|
384
|
+
private renderColumnValue;
|
|
385
|
+
/**
|
|
386
|
+
* @private
|
|
387
|
+
* @returns {undefined}
|
|
388
|
+
*/
|
|
389
|
+
private _syncEnum;
|
|
390
|
+
/**
|
|
391
|
+
* @private
|
|
392
|
+
* @returns {Promise}
|
|
393
|
+
*/
|
|
394
|
+
private syncEnum;
|
|
395
|
+
/**
|
|
396
|
+
* @private
|
|
397
|
+
* @returns {JSX.Element | null}
|
|
398
|
+
*/
|
|
399
|
+
private renderEnumDialog;
|
|
400
|
+
/**
|
|
401
|
+
* @private
|
|
402
|
+
* @returns {JSX.Element | null}
|
|
403
|
+
*/
|
|
404
|
+
private renderEditRoleDialog;
|
|
405
|
+
/**
|
|
406
|
+
* @private
|
|
407
|
+
* @param {boolean} [isSave]
|
|
408
|
+
*/
|
|
409
|
+
private onColumnsEditCustomDialogClose;
|
|
410
|
+
customColumnDialog: {
|
|
411
|
+
type: any;
|
|
412
|
+
initValue: any;
|
|
413
|
+
value: any;
|
|
414
|
+
};
|
|
415
|
+
/**
|
|
416
|
+
* @private
|
|
417
|
+
*/
|
|
418
|
+
private renderColumnsEditCustomDialog;
|
|
419
|
+
/**
|
|
420
|
+
* @private
|
|
421
|
+
* @param {any} obj
|
|
422
|
+
* @param {any} it
|
|
423
|
+
*/
|
|
424
|
+
private getCustomValue;
|
|
425
|
+
/**
|
|
426
|
+
* @private
|
|
427
|
+
* @param {any} obj
|
|
428
|
+
* @param {any} it
|
|
429
|
+
* @param {any} value
|
|
430
|
+
*/
|
|
431
|
+
private setCustomValue;
|
|
432
|
+
/**
|
|
433
|
+
* Renders a custom value.
|
|
434
|
+
* @param {any} obj
|
|
435
|
+
* @param {any} it
|
|
436
|
+
* @param {any} item
|
|
437
|
+
* @returns {JSX.Element | null}
|
|
438
|
+
*/
|
|
439
|
+
renderCustomValue(obj: any, it: any, item: any): JSX.Element | null;
|
|
440
|
+
/**
|
|
441
|
+
* Renders a leaf.
|
|
442
|
+
* @param {any} item
|
|
443
|
+
* @param {boolean} isExpanded
|
|
444
|
+
* @param {Record<string, any>} classes
|
|
445
|
+
* @param {{ count: number; }} counter
|
|
446
|
+
* @returns {JSX.Element}
|
|
447
|
+
*/
|
|
448
|
+
renderLeaf(item: any, isExpanded: boolean, classes: Record<string, any>, counter: {
|
|
449
|
+
count: number;
|
|
450
|
+
}): JSX.Element;
|
|
451
|
+
/**
|
|
452
|
+
* Renders an item.
|
|
453
|
+
* @param {any} root
|
|
454
|
+
* @param {boolean} isExpanded
|
|
455
|
+
* @param {Record<string, any>} classes
|
|
456
|
+
* @param {{ count: any; }} [counter]
|
|
457
|
+
* @returns {JSX.Element[]}
|
|
458
|
+
*/
|
|
459
|
+
renderItem(root: any, isExpanded: boolean, classes: Record<string, any>, counter?: {
|
|
460
|
+
count: any;
|
|
461
|
+
}): JSX.Element[];
|
|
462
|
+
/**
|
|
463
|
+
* @private
|
|
464
|
+
* @param {boolean} [columnsAuto]
|
|
465
|
+
* @param {string[]} [columns]
|
|
466
|
+
* @param {any} [columnsForAdmin]
|
|
467
|
+
* @param {Record<string, number>} [columnsWidths]
|
|
468
|
+
*/
|
|
469
|
+
private calculateColumnsVisibility;
|
|
470
|
+
adapterColumns: any[];
|
|
471
|
+
columnsVisibility: {
|
|
472
|
+
id: string | number;
|
|
473
|
+
name: any;
|
|
474
|
+
nameHeader: any;
|
|
475
|
+
type: any;
|
|
476
|
+
role: any;
|
|
477
|
+
room: any;
|
|
478
|
+
func: any;
|
|
479
|
+
changedFrom: any;
|
|
480
|
+
qualityCode: any;
|
|
481
|
+
timestamp: any;
|
|
482
|
+
lastChange: any;
|
|
483
|
+
val: any;
|
|
484
|
+
buttons: any;
|
|
485
|
+
} | {
|
|
486
|
+
id: string | number;
|
|
487
|
+
name: any;
|
|
488
|
+
type: any;
|
|
489
|
+
role: any;
|
|
490
|
+
room: any;
|
|
491
|
+
func: any;
|
|
492
|
+
nameHeader?: undefined;
|
|
493
|
+
changedFrom?: undefined;
|
|
494
|
+
qualityCode?: undefined;
|
|
495
|
+
timestamp?: undefined;
|
|
496
|
+
lastChange?: undefined;
|
|
497
|
+
val?: undefined;
|
|
498
|
+
buttons?: undefined;
|
|
499
|
+
};
|
|
500
|
+
resizerMouseMove: (e: any) => void;
|
|
501
|
+
resizeTimeout: any;
|
|
502
|
+
resizerMouseUp: () => void;
|
|
503
|
+
resizerActiveName: any;
|
|
504
|
+
resizerNextName: any;
|
|
505
|
+
resizerActiveDiv: any;
|
|
506
|
+
resizerNextDiv: any;
|
|
507
|
+
resizerMouseDown: (e: any) => void;
|
|
508
|
+
resizerCurrentWidths: any;
|
|
509
|
+
resizeLeft: boolean;
|
|
510
|
+
resizerMin: number;
|
|
511
|
+
resizerNextMin: number;
|
|
512
|
+
resizerPosition: any;
|
|
513
|
+
resizerOldWidth: any;
|
|
514
|
+
resizerOldWidthNext: any;
|
|
515
|
+
resizerReset: () => void;
|
|
516
|
+
/**
|
|
517
|
+
* @private
|
|
518
|
+
* @returns {JSX.Element}
|
|
519
|
+
*/
|
|
520
|
+
private renderHeader;
|
|
521
|
+
/**
|
|
522
|
+
* @private
|
|
523
|
+
* @returns {JSX.Element}
|
|
524
|
+
*/
|
|
525
|
+
private renderToast;
|
|
526
|
+
/**
|
|
527
|
+
* Called when component is updated.
|
|
528
|
+
*/
|
|
529
|
+
componentDidUpdate(): void;
|
|
530
|
+
scrollToItem(id: any): void;
|
|
531
|
+
/**
|
|
532
|
+
* @private
|
|
533
|
+
* @returns {JSX.Element | null}
|
|
534
|
+
*/
|
|
535
|
+
private renderCustomDialog;
|
|
536
|
+
changedIds: any[];
|
|
537
|
+
/**
|
|
538
|
+
* @private
|
|
539
|
+
* @param {Partial<ioBroker.State>} valAck
|
|
540
|
+
*/
|
|
541
|
+
private onUpdate;
|
|
542
|
+
/**
|
|
543
|
+
* @private
|
|
544
|
+
* @returns {JSX.Element | null}
|
|
545
|
+
*/
|
|
546
|
+
private renderEditObjectDialog;
|
|
547
|
+
/**
|
|
548
|
+
* @private
|
|
549
|
+
* @returns {JSX.Element | null}
|
|
550
|
+
*/
|
|
551
|
+
private renderViewObjectFileDialog;
|
|
552
|
+
/**
|
|
553
|
+
* @private
|
|
554
|
+
* @returns {JSX.Element | null}
|
|
555
|
+
*/
|
|
556
|
+
private renderEditValueDialog;
|
|
557
|
+
extendObject: (id: any, data: any) => Promise<any>;
|
|
558
|
+
setObject: (id: any, data: any) => Promise<void>;
|
|
559
|
+
/**
|
|
560
|
+
* The rendering method of this component.
|
|
561
|
+
* @returns {JSX.Element}
|
|
562
|
+
*/
|
|
563
|
+
render(): JSX.Element;
|
|
564
|
+
unsubscribeTimer: any;
|
|
565
|
+
}
|
|
566
|
+
declare namespace ObjectBrowser {
|
|
567
|
+
namespace defaultProps {
|
|
568
|
+
const objectAddBoolean: boolean;
|
|
569
|
+
const objectEditBoolean: boolean;
|
|
570
|
+
const objectStatesView: boolean;
|
|
571
|
+
const objectImportExport: boolean;
|
|
572
|
+
const objectEditOfAccessControl: boolean;
|
|
573
|
+
function modalNewObject(): void;
|
|
574
|
+
function modalEditOfAccessControl(): void;
|
|
575
|
+
}
|
|
576
|
+
namespace propTypes {
|
|
577
|
+
export const dialogName: PropTypes.Requireable<string>;
|
|
578
|
+
export const classes: PropTypes.Requireable<object>;
|
|
579
|
+
export const defaultFilters: PropTypes.Requireable<object>;
|
|
580
|
+
export const selected: PropTypes.Requireable<string | any[]>;
|
|
581
|
+
export const onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
582
|
+
export const onFilterChanged: PropTypes.Requireable<(...args: any[]) => any>;
|
|
583
|
+
export const socket: PropTypes.Requireable<object>;
|
|
584
|
+
export const showExpertButton: PropTypes.Requireable<boolean>;
|
|
585
|
+
export const expertMode: PropTypes.Requireable<boolean>;
|
|
586
|
+
export const imagePrefix: PropTypes.Requireable<string>;
|
|
587
|
+
export const themeName: PropTypes.Requireable<string>;
|
|
588
|
+
export const themeType: PropTypes.Requireable<string>;
|
|
589
|
+
export const theme: PropTypes.Requireable<object>;
|
|
590
|
+
export const t: PropTypes.Requireable<(...args: any[]) => any>;
|
|
591
|
+
export const lang: PropTypes.Validator<string>;
|
|
592
|
+
export const multiSelect: PropTypes.Requireable<boolean>;
|
|
593
|
+
export const notEditable: PropTypes.Requireable<boolean>;
|
|
594
|
+
export const foldersFirst: PropTypes.Requireable<boolean>;
|
|
595
|
+
export const disableColumnSelector: PropTypes.Requireable<boolean>;
|
|
596
|
+
export const isFloatComma: PropTypes.Requireable<boolean>;
|
|
597
|
+
export const dateFormat: PropTypes.Requireable<string>;
|
|
598
|
+
export const levelPadding: PropTypes.Requireable<number>;
|
|
599
|
+
export const objectCustomDialog: PropTypes.Requireable<object>;
|
|
600
|
+
const objectAddBoolean_1: PropTypes.Requireable<boolean>;
|
|
601
|
+
export { objectAddBoolean_1 as objectAddBoolean };
|
|
602
|
+
const objectEditBoolean_1: PropTypes.Requireable<boolean>;
|
|
603
|
+
export { objectEditBoolean_1 as objectEditBoolean };
|
|
604
|
+
const objectStatesView_1: PropTypes.Requireable<boolean>;
|
|
605
|
+
export { objectStatesView_1 as objectStatesView };
|
|
606
|
+
const objectImportExport_1: PropTypes.Requireable<boolean>;
|
|
607
|
+
export { objectImportExport_1 as objectImportExport };
|
|
608
|
+
const objectEditOfAccessControl_1: PropTypes.Requireable<boolean>;
|
|
609
|
+
export { objectEditOfAccessControl_1 as objectEditOfAccessControl };
|
|
610
|
+
const modalNewObject_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
611
|
+
export { modalNewObject_1 as modalNewObject };
|
|
612
|
+
const modalEditOfAccessControl_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
613
|
+
export { modalEditOfAccessControl_1 as modalEditOfAccessControl };
|
|
614
|
+
export const onObjectDelete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
615
|
+
export const customFilter: PropTypes.Requireable<object>;
|
|
616
|
+
export const objectBrowserValue: PropTypes.Requireable<object>;
|
|
617
|
+
export const objectBrowserEditObject: PropTypes.Requireable<object>;
|
|
618
|
+
export const objectBrowserEditRole: PropTypes.Requireable<object>;
|
|
619
|
+
export const objectBrowserViewFile: PropTypes.Requireable<(...args: any[]) => any>;
|
|
620
|
+
export const router: PropTypes.Requireable<object>;
|
|
621
|
+
export const types: PropTypes.Requireable<any[]>;
|
|
622
|
+
export const columns: PropTypes.Requireable<any[]>;
|
|
623
|
+
export const objectsWorker: PropTypes.Requireable<object>;
|
|
624
|
+
export const filterFunc: PropTypes.Requireable<(...args: any[]) => any>;
|
|
625
|
+
export const dragSettings: PropTypes.Requireable<object>;
|
|
626
|
+
export const DragWrapper: PropTypes.Requireable<(...args: any[]) => any>;
|
|
627
|
+
export const dragEnabled: PropTypes.Requireable<boolean>;
|
|
628
|
+
export const useDrag: PropTypes.Requireable<(...args: any[]) => any>;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
import React from "react";
|
|
632
|
+
import PropTypes from "prop-types";
|