@iobroker/adapter-react-v5 4.11.4 → 4.11.6

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.
@@ -1145,7 +1145,7 @@ class Utils {
1145
1145
  * Get the current theme name (either from local storage or the browser settings).
1146
1146
  */
1147
1147
  static getThemeName(themeName) {
1148
- if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@') {
1148
+ if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@' && window.vendorPrefix !== 'MV') {
1149
1149
  return window.vendorPrefix;
1150
1150
  }
1151
1151
  return themeName || ((window._localStorage || window.localStorage).getItem('App.themeName') ?
@@ -1165,7 +1165,7 @@ class Utils {
1165
1165
  * Set the theme name and theme type.
1166
1166
  */
1167
1167
  static setThemeName(themeName) {
1168
- if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@') {
1168
+ if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@' && window.vendorPrefix !== 'MV') {
1169
1169
  return; // ignore
1170
1170
  }
1171
1171
  (window._localStorage || window.localStorage).setItem('App.themeName', themeName);
@@ -1176,7 +1176,7 @@ class Utils {
1176
1176
  * @returns the new theme name.
1177
1177
  */
1178
1178
  static toggleTheme(themeName) {
1179
- if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@') {
1179
+ if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@' && window.vendorPrefix !== 'MV') {
1180
1180
  return window.vendorPrefix;
1181
1181
  }
1182
1182
  themeName = themeName || (window._localStorage || window.localStorage).getItem('App.themeName') || 'light';
@@ -1198,7 +1198,7 @@ class Utils {
1198
1198
  * @returns list of possible themes
1199
1199
  */
1200
1200
  static getThemeNames() {
1201
- if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@') {
1201
+ if (window.vendorPrefix && window.vendorPrefix !== '@@vendorPrefix@@' && window.vendorPrefix !== 'MV') {
1202
1202
  return [window.vendorPrefix];
1203
1203
  }
1204
1204
  return ['light', 'dark', 'blue', 'colored'];
@@ -38,9 +38,8 @@ interface DialogSelectIDProps {
38
38
  cancel?: string;
39
39
  onClose: () => void;
40
40
  onOk: (selected: string | string[] | undefined, name: string) => void;
41
- classes: Record<string, string>;
42
41
  filterFunc?: string | ((obj: ioBroker.Object) => boolean);
43
- filters: SelectIDFilters;
42
+ filters?: SelectIDFilters;
44
43
  root?: string;
45
44
  }
46
45
  interface DialogSelectIDState {
@@ -51,7 +51,7 @@ class DialogSelectID extends react_1.Component {
51
51
  this.filters = {};
52
52
  }
53
53
  if (props.filters) {
54
- this.filters = Object.assign(Object.assign({}, this.filters), props.filters);
54
+ this.filters = Object.assign(Object.assign({}, this.filters), (props.filters || {}));
55
55
  }
56
56
  let selected = this.props.selected || [];
57
57
  if (!Array.isArray(selected)) {
package/README.md CHANGED
@@ -670,6 +670,9 @@ socket.getObjectViewCustom('custom', 'state', 'startKey', 'endKey')
670
670
  -->
671
671
 
672
672
  ## Changelog
673
+ ### 4.11.6 (2024-03-19)
674
+ * (bluefox) Corrected rendering of LoaderMV
675
+
673
676
  ### 4.11.4 (2024-03-18)
674
677
  * (bluefox) Corrected types of IconPicker
675
678
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "4.11.4",
3
+ "version": "4.11.6",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "Denis Haev (bluefox)",