@iobroker/adapter-react-v5 4.13.14 → 4.13.15
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.js +8 -3
- package/Components/Utils.js +1 -1
- package/GenericApp.d.ts +1 -0
- package/README.md +3 -0
- package/package.json +1 -1
- package/types.d.ts +6 -1
|
@@ -1785,7 +1785,12 @@ class ObjectBrowser extends react_1.Component {
|
|
|
1785
1785
|
this.objectsUpdateTimer = null;
|
|
1786
1786
|
this.filterTimer = null;
|
|
1787
1787
|
this.adapterColumns = [];
|
|
1788
|
-
this.edit = {
|
|
1788
|
+
this.edit = {
|
|
1789
|
+
id: '',
|
|
1790
|
+
val: '',
|
|
1791
|
+
q: 0,
|
|
1792
|
+
ack: false,
|
|
1793
|
+
};
|
|
1789
1794
|
this.customWidth = false;
|
|
1790
1795
|
this.resizeTimeout = null;
|
|
1791
1796
|
this.resizerNextName = null;
|
|
@@ -2433,7 +2438,7 @@ class ObjectBrowser extends react_1.Component {
|
|
|
2433
2438
|
state: 0,
|
|
2434
2439
|
file: 0,
|
|
2435
2440
|
owner: 'system.user.admin',
|
|
2436
|
-
ownerGroup: 'system.group.administrator'
|
|
2441
|
+
ownerGroup: 'system.group.administrator',
|
|
2437
2442
|
};
|
|
2438
2443
|
this.systemConfig.common.defaultNewAcl.owner =
|
|
2439
2444
|
this.systemConfig.common.defaultNewAcl.owner || 'system.user.admin';
|
|
@@ -4912,7 +4917,7 @@ class ObjectBrowser extends react_1.Component {
|
|
|
4912
4917
|
this.forceUpdate();
|
|
4913
4918
|
}
|
|
4914
4919
|
(_b = this.props.router) === null || _b === void 0 ? void 0 : _b.doNavigate('tab-objects');
|
|
4915
|
-
} });
|
|
4920
|
+
}, systemConfig: this.systemConfig });
|
|
4916
4921
|
}
|
|
4917
4922
|
return null;
|
|
4918
4923
|
}
|
package/Components/Utils.js
CHANGED
|
@@ -111,7 +111,7 @@ class Utils {
|
|
|
111
111
|
text = id.substring(pos + 1).replace(/[_.]/g, ' ');
|
|
112
112
|
text = Utils.CapitalWords(text);
|
|
113
113
|
}
|
|
114
|
-
return text.trim();
|
|
114
|
+
return (text === null || text === void 0 ? void 0 : text.trim()) || '';
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
117
|
* Get the name of the object from the name or description.
|
package/GenericApp.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ interface GenericAppProps {
|
|
|
44
44
|
Connection?: LegacyConnection | Connection | AdminConnection;
|
|
45
45
|
/** sentry DNS */
|
|
46
46
|
sentryDSN?: string;
|
|
47
|
+
/** Callback if user changes the theme. Call it to trigger change */
|
|
47
48
|
onThemeChange?: (newThemeName: ThemeName) => void;
|
|
48
49
|
classes?: Record<string, string>;
|
|
49
50
|
}
|
package/README.md
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme as MuiTheme } from '@mui/material/styles';
|
|
2
|
-
import LegacyConnection from './LegacyConnection';
|
|
3
2
|
import { AdminConnection, Connection } from '@iobroker/socket-client';
|
|
3
|
+
import LegacyConnection from './LegacyConnection';
|
|
4
4
|
|
|
5
5
|
export type Translator = (key: string, ...args: any[]) => string;
|
|
6
6
|
|
|
@@ -59,6 +59,11 @@ export interface GenericAppProps {
|
|
|
59
59
|
socket?: ConnectionProps;
|
|
60
60
|
/** Desired connection object */
|
|
61
61
|
Connection?: LegacyConnection | Connection | AdminConnection;
|
|
62
|
+
/** sentry DNS */
|
|
63
|
+
sentryDSN?: string;
|
|
64
|
+
/** Callback if user changes the theme. Call it to trigger change */
|
|
65
|
+
onThemeChange?: (newThemeName: ThemeName) => void;
|
|
66
|
+
classes?: Record<string, string>;
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
export interface GenericAppSettings extends GenericAppProps {
|