@iobroker/adapter-react-v5 4.6.2 → 4.6.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/ObjectBrowser.d.ts +40 -3
- package/Components/ObjectBrowser.js +677 -404
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/Router.d.ts +2 -2
- package/Components/Router.js +1 -1
- package/Components/Router.js.map +1 -1
- package/README.md +10 -0
- package/i18n/de.json +5 -1
- package/i18n/en.json +5 -1
- package/i18n/es.json +5 -1
- package/i18n/fr.json +5 -1
- package/i18n/it.json +5 -1
- package/i18n/nl.json +5 -1
- package/i18n/pl.json +5 -1
- package/i18n/pt.json +5 -1
- package/i18n/ru.json +5 -1
- package/i18n/uk.json +5 -1
- package/i18n/zh-cn.json +5 -1
- package/index.d.ts +4 -0
- package/index.js +6 -0
- package/package.json +7 -7
|
@@ -98,6 +98,7 @@ declare class ObjectBrowser extends React.Component<import("./types").ObjectBrow
|
|
|
98
98
|
linesEnabled: boolean;
|
|
99
99
|
showDescription: boolean;
|
|
100
100
|
showContextMenu: any;
|
|
101
|
+
noStatesByExportImport: boolean;
|
|
101
102
|
};
|
|
102
103
|
edit: {};
|
|
103
104
|
texts: {
|
|
@@ -164,6 +165,13 @@ declare class ObjectBrowser extends React.Component<import("./types").ObjectBrow
|
|
|
164
165
|
enums: any[];
|
|
165
166
|
hasSomeCustoms: boolean;
|
|
166
167
|
};
|
|
168
|
+
/**
|
|
169
|
+
* Check if it is a non-expert id
|
|
170
|
+
*
|
|
171
|
+
* @param id id to test
|
|
172
|
+
* @return {boolean}
|
|
173
|
+
*/
|
|
174
|
+
isNonExpertId(id: any): boolean;
|
|
167
175
|
/**
|
|
168
176
|
* @private
|
|
169
177
|
* @param {ioBroker.EmptyCallback?} cb
|
|
@@ -183,6 +191,17 @@ declare class ObjectBrowser extends React.Component<import("./types").ObjectBrow
|
|
|
183
191
|
*/
|
|
184
192
|
componentWillUnmount(): void;
|
|
185
193
|
filterTimer: NodeJS.Timeout;
|
|
194
|
+
/** @typedef {{ id: string, obj: ioBroker.Object, item: any }} ShowDeleteDialogOptions */
|
|
195
|
+
/**
|
|
196
|
+
* Show the delete dialog for a given object
|
|
197
|
+
*
|
|
198
|
+
* @param {ShowDeleteDialogOptions} options
|
|
199
|
+
*/
|
|
200
|
+
showDeleteDialog(options: {
|
|
201
|
+
id: string;
|
|
202
|
+
obj: ioBroker.Object;
|
|
203
|
+
item: any;
|
|
204
|
+
}): void;
|
|
186
205
|
/**
|
|
187
206
|
* Context menu handler.
|
|
188
207
|
*/
|
|
@@ -362,7 +381,7 @@ declare class ObjectBrowser extends React.Component<import("./types").ObjectBrow
|
|
|
362
381
|
*/
|
|
363
382
|
private loadObjects;
|
|
364
383
|
_getSelectedIdsForExport(): string[];
|
|
365
|
-
_exportObjects(isAll: any): void
|
|
384
|
+
_exportObjects(isAll: any, noStatesByExportImport: any): Promise<void>;
|
|
366
385
|
renderExportDialog(): React.JSX.Element;
|
|
367
386
|
/**
|
|
368
387
|
* @private
|
|
@@ -541,7 +560,22 @@ declare class ObjectBrowser extends React.Component<import("./types").ObjectBrow
|
|
|
541
560
|
* @param {KeyboardEvent} event
|
|
542
561
|
*/
|
|
543
562
|
navigateKeyPress(event: KeyboardEvent): void;
|
|
563
|
+
/**
|
|
564
|
+
* Find the id from the root
|
|
565
|
+
*
|
|
566
|
+
* @param {Record<string, any>} root The current root
|
|
567
|
+
* @param {string} id the object id
|
|
568
|
+
*
|
|
569
|
+
* @returns {any}
|
|
570
|
+
*/
|
|
571
|
+
getItemFromRoot(root: Record<string, any>, id: string): any;
|
|
544
572
|
resizerReset: () => void;
|
|
573
|
+
/**
|
|
574
|
+
* Render a right handle for resizing
|
|
575
|
+
*
|
|
576
|
+
* @return {JSX.Element}
|
|
577
|
+
*/
|
|
578
|
+
renderHandleRight(): JSX.Element;
|
|
545
579
|
/**
|
|
546
580
|
* @private
|
|
547
581
|
* @returns {JSX.Element}
|
|
@@ -584,6 +618,8 @@ declare class ObjectBrowser extends React.Component<import("./types").ObjectBrow
|
|
|
584
618
|
*/
|
|
585
619
|
private renderAliasEditorDialog;
|
|
586
620
|
/**
|
|
621
|
+
* Renders the right mouse button context menu
|
|
622
|
+
*
|
|
587
623
|
* @private
|
|
588
624
|
* @returns {JSX.Element | null}
|
|
589
625
|
*/
|
|
@@ -599,6 +635,7 @@ declare class ObjectBrowser extends React.Component<import("./types").ObjectBrow
|
|
|
599
635
|
*/
|
|
600
636
|
render(): JSX.Element;
|
|
601
637
|
unsubscribeTimer: any;
|
|
638
|
+
#private;
|
|
602
639
|
}
|
|
603
640
|
declare namespace ObjectBrowser {
|
|
604
641
|
namespace defaultProps {
|
|
@@ -607,8 +644,8 @@ declare namespace ObjectBrowser {
|
|
|
607
644
|
let objectStatesView: boolean;
|
|
608
645
|
let objectImportExport: boolean;
|
|
609
646
|
let objectEditOfAccessControl: boolean;
|
|
610
|
-
function modalNewObject():
|
|
611
|
-
function modalEditOfAccessControl():
|
|
647
|
+
function modalNewObject(): any;
|
|
648
|
+
function modalEditOfAccessControl(): any;
|
|
612
649
|
}
|
|
613
650
|
namespace propTypes {
|
|
614
651
|
export let dialogName: PropTypes.Requireable<string>;
|