@iobroker/adapter-react-v5 4.0.27 → 4.1.2
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/ColorPicker.d.ts +8 -8
- package/Components/FileBrowser.d.ts +24 -24
- package/Components/FileViewer.d.ts +12 -12
- package/Components/Icon.d.ts +7 -7
- package/Components/Icon.js +1 -1
- package/Components/Icon.js.map +1 -1
- package/Components/IconPicker.d.ts +10 -10
- package/Components/IconSelector.d.ts +7 -7
- package/Components/Image.d.ts +4 -4
- package/Components/JsonConfigComponent/ConfigCRON.d.ts +1 -1
- package/Components/JsonConfigComponent/ConfigCustom.d.ts +10 -10
- package/Components/JsonConfigComponent/ConfigGeneric.d.ts +23 -23
- package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +1 -1
- package/Components/JsonConfigComponent/ConfigObjectId.d.ts +1 -1
- package/Components/JsonConfigComponent/ConfigUUID.d.ts +2 -2
- package/Components/Loader.d.ts +2 -2
- package/Components/Loaders/PT.d.ts +2 -2
- package/Components/Loaders/Vendor.d.ts +2 -2
- package/Components/Logo.d.ts +7 -7
- package/Components/ObjectBrowser.d.ts +52 -52
- package/Components/SaveCloseButtons.d.ts +10 -10
- package/Components/SelectWithIcon.js +1 -1
- package/Components/SelectWithIcon.js.map +1 -1
- package/Components/TabContainer.d.ts +2 -2
- package/Components/TabContent.d.ts +1 -1
- package/Components/TextWithIcon.js.map +1 -1
- package/Components/TreeTable.js +1 -1
- package/Components/TreeTable.js.map +1 -1
- package/Components/Utils.js +7 -5
- package/Components/Utils.js.map +1 -1
- package/Dialogs/Error.d.ts +5 -5
- package/Dialogs/Message.d.ts +6 -6
- package/Dialogs/SelectFile.d.ts +28 -28
- package/Dialogs/SelectID.d.ts +27 -27
- package/Dialogs/TextInput.d.ts +11 -11
- package/GenericApp.d.ts +10 -9
- package/GenericApp.js +16 -13
- package/GenericApp.js.map +1 -1
- package/LegacyConnection.d.ts +7 -7
- package/README.md +7 -1
- package/craco-module-federation.js +70 -0
- package/icons/IconAdapter.d.ts +4 -4
- package/icons/IconAlias.d.ts +4 -4
- package/icons/IconChannel.d.ts +4 -4
- package/icons/IconClearFilter.d.ts +4 -4
- package/icons/IconClosed.d.ts +4 -4
- package/icons/IconCopy.d.ts +4 -4
- package/icons/IconDevice.d.ts +4 -4
- package/icons/IconDocument.d.ts +4 -4
- package/icons/IconDocumentReadOnly.d.ts +4 -4
- package/icons/IconExpert.d.ts +4 -4
- package/icons/IconFx.d.ts +4 -4
- package/icons/IconInstance.d.ts +4 -4
- package/icons/IconLogout.d.ts +4 -4
- package/icons/IconNoIcon.d.ts +4 -4
- package/icons/IconOpen.d.ts +4 -4
- package/icons/IconState.d.ts +4 -4
- package/package.json +9 -9
package/Dialogs/Error.d.ts
CHANGED
|
@@ -39,11 +39,11 @@ declare class DialogError extends React.Component<DialogErrorProps, any, any> {
|
|
|
39
39
|
}
|
|
40
40
|
declare namespace DialogError {
|
|
41
41
|
namespace propTypes {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
let onClose: PropTypes.Validator<(...args: any[]) => any>;
|
|
43
|
+
let fullWidth: PropTypes.Requireable<boolean>;
|
|
44
|
+
let title: PropTypes.Requireable<string>;
|
|
45
|
+
let text: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike>>;
|
|
46
|
+
let icon: PropTypes.Requireable<object>;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
import React from 'react';
|
package/Dialogs/Message.d.ts
CHANGED
|
@@ -29,12 +29,12 @@ declare class DialogMessage extends React.Component<DialogMessageProps, any, any
|
|
|
29
29
|
}
|
|
30
30
|
declare namespace DialogMessage {
|
|
31
31
|
namespace propTypes {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
let fullWidth: PropTypes.Requireable<boolean>;
|
|
33
|
+
let onClose: PropTypes.Validator<(...args: any[]) => any>;
|
|
34
|
+
let title: PropTypes.Requireable<string>;
|
|
35
|
+
let text: PropTypes.Requireable<string>;
|
|
36
|
+
let ok: PropTypes.Requireable<string>;
|
|
37
|
+
let icon: PropTypes.Requireable<object>;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
import React from 'react';
|
package/Dialogs/SelectFile.d.ts
CHANGED
|
@@ -152,34 +152,34 @@ declare class DialogSelectFile extends React.Component<DialogSelectIDProps, any,
|
|
|
152
152
|
}
|
|
153
153
|
declare namespace DialogSelectFile {
|
|
154
154
|
namespace propTypes {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
155
|
+
let imagePrefix: PropTypes.Requireable<string>;
|
|
156
|
+
let dialogName: PropTypes.Requireable<string>;
|
|
157
|
+
let selected: PropTypes.Requireable<NonNullable<string | any[]>>;
|
|
158
|
+
let classes: PropTypes.Requireable<object>;
|
|
159
|
+
let onClose: PropTypes.Validator<(...args: any[]) => any>;
|
|
160
|
+
let onOk: PropTypes.Validator<(...args: any[]) => any>;
|
|
161
|
+
let ok: PropTypes.Requireable<string>;
|
|
162
|
+
let cancel: PropTypes.Requireable<string>;
|
|
163
|
+
let socket: PropTypes.Validator<object>;
|
|
164
|
+
let allowUpload: PropTypes.Requireable<boolean>;
|
|
165
|
+
let allowDownload: PropTypes.Requireable<boolean>;
|
|
166
|
+
let allowCreateFolder: PropTypes.Requireable<boolean>;
|
|
167
|
+
let allowDelete: PropTypes.Requireable<boolean>;
|
|
168
|
+
let allowView: PropTypes.Requireable<boolean>;
|
|
169
|
+
let showToolbar: PropTypes.Requireable<boolean>;
|
|
170
|
+
let filterFiles: PropTypes.Requireable<string[]>;
|
|
171
|
+
let filterByType: PropTypes.Requireable<string>;
|
|
172
|
+
let limitPath: PropTypes.Requireable<string>;
|
|
173
|
+
let selectOnlyFolders: PropTypes.Requireable<boolean>;
|
|
174
|
+
let showViewTypeButton: PropTypes.Requireable<boolean>;
|
|
175
|
+
let showTypeSelector: PropTypes.Requireable<boolean>;
|
|
176
|
+
let title: PropTypes.Requireable<string>;
|
|
177
|
+
let lang: PropTypes.Requireable<string>;
|
|
178
|
+
let themeName: PropTypes.Requireable<string>;
|
|
179
|
+
let themeType: PropTypes.Requireable<string>;
|
|
180
|
+
let showExpertButton: PropTypes.Requireable<boolean>;
|
|
181
|
+
let expertMode: PropTypes.Requireable<boolean>;
|
|
182
|
+
let multiSelect: PropTypes.Requireable<boolean>;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
import React from 'react';
|
package/Dialogs/SelectID.d.ts
CHANGED
|
@@ -130,33 +130,33 @@ declare class DialogSelectID extends React.Component<DialogSelectIDProps, any, a
|
|
|
130
130
|
}
|
|
131
131
|
declare namespace DialogSelectID {
|
|
132
132
|
namespace propTypes {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
133
|
+
let dialogName: PropTypes.Requireable<string>;
|
|
134
|
+
let classes: PropTypes.Requireable<object>;
|
|
135
|
+
let notEditable: PropTypes.Requireable<boolean>;
|
|
136
|
+
let onClose: PropTypes.Validator<(...args: any[]) => any>;
|
|
137
|
+
let onOk: PropTypes.Validator<(...args: any[]) => any>;
|
|
138
|
+
let title: PropTypes.Requireable<string>;
|
|
139
|
+
let lang: PropTypes.Requireable<string>;
|
|
140
|
+
let foldersFirst: PropTypes.Requireable<boolean>;
|
|
141
|
+
let isFloatComma: PropTypes.Requireable<boolean>;
|
|
142
|
+
let dateFormat: PropTypes.Requireable<string>;
|
|
143
|
+
let selected: PropTypes.Requireable<NonNullable<string | any[]>>;
|
|
144
|
+
let filters: PropTypes.Requireable<object>;
|
|
145
|
+
let customFilter: PropTypes.Requireable<object>;
|
|
146
|
+
let statesOnly: PropTypes.Requireable<boolean>;
|
|
147
|
+
let socket: PropTypes.Validator<object>;
|
|
148
|
+
let cancel: PropTypes.Requireable<string>;
|
|
149
|
+
let imagePrefix: PropTypes.Requireable<string>;
|
|
150
|
+
let ok: PropTypes.Requireable<string>;
|
|
151
|
+
let themeName: PropTypes.Requireable<string>;
|
|
152
|
+
let themeType: PropTypes.Requireable<string>;
|
|
153
|
+
let showExpertButton: PropTypes.Requireable<boolean>;
|
|
154
|
+
let expertMode: PropTypes.Requireable<boolean>;
|
|
155
|
+
let multiSelect: PropTypes.Requireable<boolean>;
|
|
156
|
+
let types: PropTypes.Requireable<any[]>;
|
|
157
|
+
let columns: PropTypes.Requireable<any[]>;
|
|
158
|
+
let root: PropTypes.Requireable<string>;
|
|
159
|
+
let filterFunc: PropTypes.Requireable<(...args: any[]) => any>;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
import React from 'react';
|
package/Dialogs/TextInput.d.ts
CHANGED
|
@@ -71,17 +71,17 @@ declare class TextInput extends React.Component<TextInputProps, any, any> {
|
|
|
71
71
|
}
|
|
72
72
|
declare namespace TextInput {
|
|
73
73
|
namespace propTypes {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
74
|
+
let fullWidth: PropTypes.Requireable<boolean>;
|
|
75
|
+
let onClose: PropTypes.Validator<(...args: any[]) => any>;
|
|
76
|
+
let titleText: PropTypes.Validator<string>;
|
|
77
|
+
let promptText: PropTypes.Requireable<string>;
|
|
78
|
+
let labelText: PropTypes.Requireable<string>;
|
|
79
|
+
let cancelText: PropTypes.Requireable<string>;
|
|
80
|
+
let applyText: PropTypes.Requireable<string>;
|
|
81
|
+
let verify: PropTypes.Requireable<(...args: any[]) => any>;
|
|
82
|
+
let replace: PropTypes.Requireable<(...args: any[]) => any>;
|
|
83
|
+
let type: PropTypes.Requireable<string>;
|
|
84
|
+
let value: PropTypes.Requireable<string>;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
import React from 'react';
|
package/GenericApp.d.ts
CHANGED
|
@@ -82,8 +82,9 @@ declare class GenericApp extends Router<import("./types").GenericAppProps, impor
|
|
|
82
82
|
getThemeType(theme: import('./types').Theme): string;
|
|
83
83
|
/**
|
|
84
84
|
* Changes the current theme
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
* @param {string} newThemeName Theme name
|
|
86
|
+
**/
|
|
87
|
+
toggleTheme(newThemeName: string): void;
|
|
87
88
|
/**
|
|
88
89
|
* Gets the system configuration.
|
|
89
90
|
* @returns {Promise<ioBroker.OtherObject>}
|
|
@@ -189,7 +190,7 @@ declare class GenericApp extends Router<import("./types").GenericAppProps, impor
|
|
|
189
190
|
* @param {any} value The new value.
|
|
190
191
|
* @param {(() => void)} [cb] Callback which will be called upon completion.
|
|
191
192
|
*/
|
|
192
|
-
updateNativeValue(attr: string, value: any, cb?: () => void): void;
|
|
193
|
+
updateNativeValue(attr: string, value: any, cb?: (() => void)): void;
|
|
193
194
|
/**
|
|
194
195
|
* Set the error text to be shown.
|
|
195
196
|
* @param {string | JSX.Element} text
|
|
@@ -213,12 +214,12 @@ declare class GenericApp extends Router<import("./types").GenericAppProps, impor
|
|
|
213
214
|
}
|
|
214
215
|
declare namespace GenericApp {
|
|
215
216
|
namespace propTypes {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
217
|
+
let adapterName: PropTypes.Requireable<string>;
|
|
218
|
+
let onThemeChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
219
|
+
let socket: PropTypes.Requireable<object>;
|
|
220
|
+
let encryptedFields: PropTypes.Requireable<any[]>;
|
|
221
|
+
let bottomButtons: PropTypes.Requireable<boolean>;
|
|
222
|
+
let Connection: PropTypes.Requireable<object>;
|
|
222
223
|
}
|
|
223
224
|
}
|
|
224
225
|
import Router from './Components/Router';
|
package/GenericApp.js
CHANGED
|
@@ -425,25 +425,28 @@ var GenericApp = /*#__PURE__*/function (_Router) {
|
|
|
425
425
|
|
|
426
426
|
/**
|
|
427
427
|
* Changes the current theme
|
|
428
|
-
|
|
428
|
+
* @param {string} newThemeName Theme name
|
|
429
|
+
**/
|
|
429
430
|
}, {
|
|
430
431
|
key: "toggleTheme",
|
|
431
|
-
value: function toggleTheme() {
|
|
432
|
+
value: function toggleTheme(newThemeName) {
|
|
432
433
|
var _this3 = this;
|
|
433
434
|
var themeName = this.state.themeName;
|
|
434
435
|
|
|
435
436
|
// dark => blue => colored => light => dark
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
437
|
+
newThemeName = newThemeName || (themeName === 'dark' ? 'blue' : themeName === 'blue' ? 'colored' : themeName === 'colored' ? 'light' : 'dark');
|
|
438
|
+
if (newThemeName !== themeName) {
|
|
439
|
+
_Utils["default"].setThemeName(newThemeName);
|
|
440
|
+
var _theme2 = this.createTheme(newThemeName);
|
|
441
|
+
this.setState({
|
|
442
|
+
theme: _theme2,
|
|
443
|
+
themeName: this.getThemeName(_theme2),
|
|
444
|
+
themeType: this.getThemeType(_theme2)
|
|
445
|
+
}, function () {
|
|
446
|
+
_this3.props.onThemeChange && _this3.props.onThemeChange(newThemeName);
|
|
447
|
+
_this3.onThemeChanged && _this3.onThemeChanged(newThemeName);
|
|
448
|
+
});
|
|
449
|
+
}
|
|
447
450
|
}
|
|
448
451
|
|
|
449
452
|
/**
|