@iobroker/adapter-react-v5 4.3.0 → 4.3.1
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/AdminConnection.js.map +1 -1
- package/Components/404.js +11 -14
- package/Components/404.js.map +1 -1
- package/Components/ColorPicker.js +2 -2
- package/Components/ColorPicker.js.map +1 -1
- package/Components/ComplexCron.d.ts +1 -1
- package/Components/ComplexCron.js +21 -23
- package/Components/ComplexCron.js.map +1 -1
- package/Components/FileBrowser.js +3 -2
- package/Components/FileBrowser.js.map +1 -1
- package/Components/FileViewer.d.ts +0 -2
- package/Components/FileViewer.js +16 -18
- package/Components/FileViewer.js.map +1 -1
- package/Components/Icon.d.ts +0 -2
- package/Components/Icon.js +27 -29
- package/Components/Icon.js.map +1 -1
- package/Components/IconPicker.js +2 -2
- package/Components/IconPicker.js.map +1 -1
- package/Components/IconSelector.js +1817 -1819
- package/Components/IconSelector.js.map +1 -1
- package/Components/Image.js +18 -17
- package/Components/Image.js.map +1 -1
- package/Components/Loader.js +8 -8
- package/Components/Loader.js.map +1 -1
- package/Components/Loaders/PT.js +2 -2
- package/Components/Loaders/PT.js.map +1 -1
- package/Components/Loaders/Vendor.d.ts +0 -7
- package/Components/Loaders/Vendor.js +1 -4
- package/Components/Loaders/Vendor.js.map +1 -1
- package/Components/Logo.js +6 -6
- package/Components/Logo.js.map +1 -1
- package/Components/MDUtils.js +1 -2
- package/Components/MDUtils.js.map +1 -1
- package/Components/ObjectBrowser.d.ts +8 -6
- package/Components/ObjectBrowser.js +87 -62
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/Router.js.map +1 -1
- package/Components/SaveCloseButtons.d.ts +0 -1
- package/Components/SaveCloseButtons.js +6 -4
- package/Components/SaveCloseButtons.js.map +1 -1
- package/Components/Schedule.d.ts +1 -1
- package/Components/Schedule.js +36 -33
- package/Components/Schedule.js.map +1 -1
- package/Components/SelectWithIcon.d.ts +1 -1
- package/Components/SelectWithIcon.js +12 -11
- package/Components/SelectWithIcon.js.map +1 -1
- package/Components/SimpleCron/cron2text.js +71 -74
- package/Components/SimpleCron/cron2text.js.map +1 -1
- package/Components/SimpleCron/cronText.js +1 -1
- package/Components/SimpleCron/cronText.js.map +1 -1
- package/Components/SimpleCron/index.d.ts +1 -1
- package/Components/SimpleCron/index.js +3 -4
- package/Components/SimpleCron/index.js.map +1 -1
- package/Components/SimpleCron/jquery.cron.locale.js +77 -74
- package/Components/SimpleCron/jquery.cron.locale.js.map +1 -1
- package/Components/TabContainer.js +3 -3
- package/Components/TabContainer.js.map +1 -1
- package/Components/TabContent.js +3 -3
- package/Components/TabContent.js.map +1 -1
- package/Components/TabHeader.js.map +1 -1
- package/Components/TextWithIcon.js +6 -3
- package/Components/TextWithIcon.js.map +1 -1
- package/Components/ToggleThemeMenu.d.ts +1 -1
- package/Components/ToggleThemeMenu.js.map +1 -1
- package/Components/TreeTable.js +142 -153
- package/Components/TreeTable.js.map +1 -1
- package/Components/Utils.d.ts +1 -1
- package/Components/Utils.js +164 -167
- package/Components/Utils.js.map +1 -1
- package/Components/copy-to-clipboard.js +8 -9
- package/Components/copy-to-clipboard.js.map +1 -1
- package/Components/withWidth.js.map +1 -1
- package/Connection.js.map +1 -1
- package/Dialogs/ComplexCron.d.ts +1 -3
- package/Dialogs/ComplexCron.js +2 -4
- package/Dialogs/ComplexCron.js.map +1 -1
- package/Dialogs/Confirm.d.ts +1 -1
- package/Dialogs/Confirm.js +2 -2
- package/Dialogs/Confirm.js.map +1 -1
- package/Dialogs/Cron.d.ts +1 -2
- package/Dialogs/Cron.js +10 -17
- package/Dialogs/Cron.js.map +1 -1
- package/Dialogs/Error.d.ts +0 -1
- package/Dialogs/Error.js +10 -24
- package/Dialogs/Error.js.map +1 -1
- package/Dialogs/Message.js.map +1 -1
- package/Dialogs/SelectFile.js +2 -2
- package/Dialogs/SelectFile.js.map +1 -1
- package/Dialogs/SelectID.d.ts +0 -4
- package/Dialogs/SelectID.js +3 -7
- package/Dialogs/SelectID.js.map +1 -1
- package/Dialogs/SimpleCron.d.ts +1 -3
- package/Dialogs/SimpleCron.js +3 -5
- package/Dialogs/SimpleCron.js.map +1 -1
- package/Dialogs/TextInput.d.ts +0 -1
- package/Dialogs/TextInput.js +9 -17
- package/Dialogs/TextInput.js.map +1 -1
- package/GenericApp.js +39 -42
- package/GenericApp.js.map +1 -1
- package/LegacyConnection.d.ts +6 -6
- package/LegacyConnection.js +61 -63
- package/LegacyConnection.js.map +1 -1
- package/Prompt.js.map +1 -1
- package/README.md +13 -10
- package/Theme.js +1 -1
- package/Theme.js.map +1 -1
- package/assets/devices/parseNames.js +1 -1
- package/assets/rooms/parseNames.js +1 -1
- 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/uk.json +4 -1
- package/i18n/zh-cn.json +4 -1
- package/i18n.d.ts +1 -1
- package/i18n.js +20 -18
- package/i18n.js.map +1 -1
- package/icons/IconAdapter.js.map +1 -1
- package/icons/IconAlias.js.map +1 -1
- package/icons/IconChannel.js.map +1 -1
- package/icons/IconClearFilter.js.map +1 -1
- package/icons/IconClosed.js.map +1 -1
- package/icons/IconCopy.js.map +1 -1
- package/icons/IconDevice.js.map +1 -1
- package/icons/IconDocument.js.map +1 -1
- package/icons/IconDocumentReadOnly.js.map +1 -1
- package/icons/IconExpert.js.map +1 -1
- package/icons/IconFx.js.map +1 -1
- package/icons/IconInstance.js.map +1 -1
- package/icons/IconLogout.js.map +1 -1
- package/icons/IconNoIcon.js.map +1 -1
- package/icons/IconOpen.js.map +1 -1
- package/icons/IconState.js.map +1 -1
- package/index.js +0 -1
- package/package.json +7 -7
|
@@ -19,7 +19,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
19
19
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
20
20
|
var _react = _interopRequireWildcard(require("react"));
|
|
21
21
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
22
|
-
var
|
|
22
|
+
var _styles = require("@mui/styles");
|
|
23
23
|
var _reactInlinesvg = _interopRequireDefault(require("react-inlinesvg"));
|
|
24
24
|
var _material = require("@mui/material");
|
|
25
25
|
var _iconsMaterial = require("@mui/icons-material");
|
|
@@ -768,17 +768,15 @@ function getSelectIdIcon(objects, id, imagePrefix) {
|
|
|
768
768
|
} else {
|
|
769
769
|
return null; // '<i class="material-icons iob-list-icon">' + objects[_id_].common.icon + '</i>';
|
|
770
770
|
}
|
|
771
|
+
} else if (aIcon.startsWith('data:image/svg')) {
|
|
772
|
+
src = /*#__PURE__*/_react["default"].createElement(_reactInlinesvg["default"], {
|
|
773
|
+
className: "iconOwn",
|
|
774
|
+
src: aIcon,
|
|
775
|
+
width: 28,
|
|
776
|
+
height: 28
|
|
777
|
+
});
|
|
771
778
|
} else {
|
|
772
|
-
|
|
773
|
-
src = /*#__PURE__*/_react["default"].createElement(_reactInlinesvg["default"], {
|
|
774
|
-
className: "iconOwn",
|
|
775
|
-
src: aIcon,
|
|
776
|
-
width: 28,
|
|
777
|
-
height: 28
|
|
778
|
-
});
|
|
779
|
-
} else {
|
|
780
|
-
src = aIcon;
|
|
781
|
-
}
|
|
779
|
+
src = aIcon;
|
|
782
780
|
}
|
|
783
781
|
} else {
|
|
784
782
|
var common = objects[id] && objects[id].common;
|
|
@@ -1094,11 +1092,10 @@ function getIdFieldTooltip(data, classes, lang) {
|
|
|
1094
1092
|
target: "_blank",
|
|
1095
1093
|
rel: "noreferrer"
|
|
1096
1094
|
}, tooltip);
|
|
1097
|
-
} else {
|
|
1098
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
1099
|
-
className: _Utils["default"].clsx(classes.cellIdTooltip)
|
|
1100
|
-
}, tooltip || data.id || '');
|
|
1101
1095
|
}
|
|
1096
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
1097
|
+
className: _Utils["default"].clsx(classes.cellIdTooltip)
|
|
1098
|
+
}, tooltip || data.id || '');
|
|
1102
1099
|
}
|
|
1103
1100
|
function buildTree(objects, options) {
|
|
1104
1101
|
options = options || {};
|
|
@@ -1555,7 +1552,7 @@ function formatValue(options) {
|
|
|
1555
1552
|
};
|
|
1556
1553
|
}
|
|
1557
1554
|
|
|
1558
|
-
/** @typedef {{ state: ioBroker.State, isExpertMode: boolean,
|
|
1555
|
+
/** @typedef {{ state: ioBroker.State, isExpertMode: boolean, isButton: boolean }} GetValueStyleOptions */
|
|
1559
1556
|
|
|
1560
1557
|
/**
|
|
1561
1558
|
* Get css style for given state value
|
|
@@ -1566,9 +1563,9 @@ function formatValue(options) {
|
|
|
1566
1563
|
function getValueStyle(options) {
|
|
1567
1564
|
var state = options.state,
|
|
1568
1565
|
isExpertMode = options.isExpertMode,
|
|
1569
|
-
|
|
1566
|
+
isButton = options.isButton;
|
|
1570
1567
|
var color = state !== null && state !== void 0 && state.ack ? state.q ? '#ffa500' : '' : '#ff2222c9';
|
|
1571
|
-
if (!isExpertMode &&
|
|
1568
|
+
if (!isExpertMode && isButton) {
|
|
1572
1569
|
color = '';
|
|
1573
1570
|
}
|
|
1574
1571
|
return {
|
|
@@ -1668,7 +1665,7 @@ var ITEM_IMAGES = {
|
|
|
1668
1665
|
className: "itemIcon itemIconFolder"
|
|
1669
1666
|
})
|
|
1670
1667
|
};
|
|
1671
|
-
var StyledBadge = (0,
|
|
1668
|
+
var StyledBadge = (0, _styles.withStyles)(function (theme) {
|
|
1672
1669
|
return {
|
|
1673
1670
|
badge: {
|
|
1674
1671
|
right: 3,
|
|
@@ -2421,16 +2418,6 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
2421
2418
|
(window._localStorage || window.localStorage).removeItem("".concat(_this.props.dialogName || 'App', ".table"));
|
|
2422
2419
|
_this.forceUpdate();
|
|
2423
2420
|
});
|
|
2424
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "extendObject", function (id, data) {
|
|
2425
|
-
return _this.props.socket.extendObject(id, data)["catch"](function (error) {
|
|
2426
|
-
return window.alert(error);
|
|
2427
|
-
});
|
|
2428
|
-
});
|
|
2429
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "setObject", function (id, data) {
|
|
2430
|
-
return _this.props.socket.setObject(id, data)["catch"](function (error) {
|
|
2431
|
-
return window.alert(error);
|
|
2432
|
-
});
|
|
2433
|
-
});
|
|
2434
2421
|
_this.lastSelectedItems = (window._localStorage || window.localStorage).getItem("".concat(props.dialogName || 'App', ".objectSelected")) || '[]';
|
|
2435
2422
|
try {
|
|
2436
2423
|
_this.lastSelectedItems = JSON.parse(_this.lastSelectedItems);
|
|
@@ -2758,7 +2745,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
2758
2745
|
|
|
2759
2746
|
/**
|
|
2760
2747
|
* @private
|
|
2761
|
-
* @param {ioBroker.EmptyCallback} cb
|
|
2748
|
+
* @param {ioBroker.EmptyCallback?} cb
|
|
2762
2749
|
*/
|
|
2763
2750
|
}, {
|
|
2764
2751
|
key: "expandAllSelected",
|
|
@@ -3022,7 +3009,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3022
3009
|
} else {
|
|
3023
3010
|
columns.splice(_pos, 1);
|
|
3024
3011
|
}
|
|
3025
|
-
(window._localStorage || window.localStorage).setItem((_this8.props.dialogName || 'App'
|
|
3012
|
+
(window._localStorage || window.localStorage).setItem("".concat(_this8.props.dialogName || 'App', ".columns"), JSON.stringify(columns));
|
|
3026
3013
|
_this8.calculateColumnsVisibility(null, columns);
|
|
3027
3014
|
_this8.setState({
|
|
3028
3015
|
columns: columns
|
|
@@ -3036,7 +3023,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3036
3023
|
checked: id === 'id' || (_this8.state.columnsAuto ? _this8.visibleCols.includes(id) : _this8.state.columns && _this8.state.columns.includes(id)),
|
|
3037
3024
|
disableRipple: true
|
|
3038
3025
|
}), /*#__PURE__*/_react["default"].createElement(_material.ListItemText, {
|
|
3039
|
-
primary: _this8.texts[
|
|
3026
|
+
primary: _this8.texts["filter_".concat(id)] || _this8.props.t("ra_".concat(id))
|
|
3040
3027
|
}));
|
|
3041
3028
|
});
|
|
3042
3029
|
}
|
|
@@ -3095,25 +3082,23 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3095
3082
|
control: /*#__PURE__*/_react["default"].createElement(_material.Switch, {
|
|
3096
3083
|
checked: this.state.columnsAuto,
|
|
3097
3084
|
onChange: function onChange() {
|
|
3098
|
-
(window._localStorage || window.localStorage).setItem((_this9.props.dialogName || 'App'
|
|
3085
|
+
(window._localStorage || window.localStorage).setItem("".concat(_this9.props.dialogName || 'App', ".columnsAuto"), _this9.state.columnsAuto ? 'false' : 'true');
|
|
3099
3086
|
if (!_this9.state.columnsAuto) {
|
|
3100
3087
|
_this9.calculateColumnsVisibility(true);
|
|
3101
3088
|
_this9.setState({
|
|
3102
3089
|
columnsAuto: true
|
|
3103
3090
|
});
|
|
3091
|
+
} else if (!_this9.state.columns) {
|
|
3092
|
+
_this9.calculateColumnsVisibility(false, (0, _toConsumableArray2["default"])(_this9.visibleCols));
|
|
3093
|
+
_this9.setState({
|
|
3094
|
+
columnsAuto: false,
|
|
3095
|
+
columns: (0, _toConsumableArray2["default"])(_this9.visibleCols)
|
|
3096
|
+
});
|
|
3104
3097
|
} else {
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
columns: (0, _toConsumableArray2["default"])(_this9.visibleCols)
|
|
3110
|
-
});
|
|
3111
|
-
} else {
|
|
3112
|
-
_this9.calculateColumnsVisibility(false);
|
|
3113
|
-
_this9.setState({
|
|
3114
|
-
columnsAuto: false
|
|
3115
|
-
});
|
|
3116
|
-
}
|
|
3098
|
+
_this9.calculateColumnsVisibility(false);
|
|
3099
|
+
_this9.setState({
|
|
3100
|
+
columnsAuto: false
|
|
3101
|
+
});
|
|
3117
3102
|
}
|
|
3118
3103
|
}
|
|
3119
3104
|
}),
|
|
@@ -3835,7 +3820,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3835
3820
|
return _this25._exportObjects(true);
|
|
3836
3821
|
});
|
|
3837
3822
|
}
|
|
3838
|
-
}, this.props.t('ra_All objects'), "
|
|
3823
|
+
}, this.props.t('ra_All objects'), ' ', "(", Object.keys(this.objects).length, ")"), /*#__PURE__*/_react["default"].createElement(_material.Button, {
|
|
3839
3824
|
color: "primary",
|
|
3840
3825
|
variant: "contained",
|
|
3841
3826
|
autoFocus: true,
|
|
@@ -3846,7 +3831,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3846
3831
|
return _this25._exportObjects(false);
|
|
3847
3832
|
});
|
|
3848
3833
|
}
|
|
3849
|
-
}, this.props.t('ra_Only selected'), "
|
|
3834
|
+
}, this.props.t('ra_Only selected'), ' ', "(", this.state.showExportDialog, ")"), /*#__PURE__*/_react["default"].createElement(_material.Button, {
|
|
3850
3835
|
color: "grey",
|
|
3851
3836
|
variant: "contained",
|
|
3852
3837
|
onClick: function onClick() {
|
|
@@ -4410,9 +4395,9 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
4410
4395
|
}
|
|
4411
4396
|
|
|
4412
4397
|
info.style = getValueStyle({
|
|
4413
|
-
isExpertMode: this.state.filter.expertMode,
|
|
4414
4398
|
state: state,
|
|
4415
|
-
|
|
4399
|
+
isExpertMode: this.state.filter.expertMode,
|
|
4400
|
+
isButton: item.data.button
|
|
4416
4401
|
});
|
|
4417
4402
|
var val = info.valText;
|
|
4418
4403
|
if (!this.state.filter.expertMode && item.data.button) {
|
|
@@ -4967,7 +4952,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
4967
4952
|
className: _Utils["default"].clsx(classes.cellIdAlias, classes.cellIdAliasAlone)
|
|
4968
4953
|
}, "\u2192", common.alias.id) : null;
|
|
4969
4954
|
var checkColor = common === null || common === void 0 ? void 0 : common.color;
|
|
4970
|
-
var invertBackground
|
|
4955
|
+
var invertBackground;
|
|
4971
4956
|
if (checkColor && !this.state.selected.includes(id)) {
|
|
4972
4957
|
var background = this.props.themeName === 'dark' ? '#1f1f1f' : this.props.themeName === 'blue' ? '#222a2e' : '#FFFFFF';
|
|
4973
4958
|
var distance = _Utils["default"].colorDistance(checkColor, background);
|
|
@@ -5255,9 +5240,9 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
5255
5240
|
_this36.setState({
|
|
5256
5241
|
viewFileDialog: id
|
|
5257
5242
|
});
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5243
|
+
// eslint-disable-next-line brace-style
|
|
5244
|
+
} else if (!_this36.state.filter.expertMode && item.data.button) {
|
|
5245
|
+
// in non-expert mode control button directly
|
|
5261
5246
|
_this36.props.socket.setState(id, true)["catch"](function (e) {
|
|
5262
5247
|
return window.alert("Cannot write state \"".concat(id, "\": ").concat(e));
|
|
5263
5248
|
});
|
|
@@ -5503,6 +5488,35 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
5503
5488
|
}
|
|
5504
5489
|
}
|
|
5505
5490
|
}
|
|
5491
|
+
}, {
|
|
5492
|
+
key: "navigateKeyPress",
|
|
5493
|
+
value:
|
|
5494
|
+
/**
|
|
5495
|
+
* Handle keyboard events for navigation
|
|
5496
|
+
*
|
|
5497
|
+
* @param {KeyboardEvent} event
|
|
5498
|
+
*/
|
|
5499
|
+
function navigateKeyPress(event) {
|
|
5500
|
+
var selectedId = this.state.selectedNonObject || this.state.selected[0];
|
|
5501
|
+
if (!selectedId) {
|
|
5502
|
+
return;
|
|
5503
|
+
}
|
|
5504
|
+
if (event.code === 'ArrowUp' || event.code === 'ArrowDown') {
|
|
5505
|
+
event.preventDefault();
|
|
5506
|
+
var ids = [];
|
|
5507
|
+
this.tableRef.current.childNodes.forEach(function (node) {
|
|
5508
|
+
return ids.push(node.id);
|
|
5509
|
+
});
|
|
5510
|
+
var idx = ids.indexOf(selectedId);
|
|
5511
|
+
var newIdx = event.code === 'ArrowDown' ? idx + 1 : idx - 1;
|
|
5512
|
+
var newId = ids[newIdx] || selectedId;
|
|
5513
|
+
this.onSelect(newId);
|
|
5514
|
+
this.scrollToItem(newId);
|
|
5515
|
+
}
|
|
5516
|
+
if (event.code === 'ArrowRight' || event.code === 'ArrowLeft') {
|
|
5517
|
+
this.toggleExpanded(selectedId);
|
|
5518
|
+
}
|
|
5519
|
+
}
|
|
5506
5520
|
}, {
|
|
5507
5521
|
key: "renderHeader",
|
|
5508
5522
|
value:
|
|
@@ -5898,14 +5912,22 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
5898
5912
|
}
|
|
5899
5913
|
});
|
|
5900
5914
|
}
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5915
|
+
|
|
5916
|
+
// extendObject = (id, data) =>
|
|
5917
|
+
// this.props.socket.extendObject(id, data)
|
|
5918
|
+
// .catch(error => window.alert(error));
|
|
5919
|
+
|
|
5920
|
+
// setObject = (id, data) =>
|
|
5921
|
+
// this.props.socket.setObject(id, data)
|
|
5922
|
+
// .catch(error => window.alert(error));
|
|
5923
|
+
|
|
5904
5924
|
/**
|
|
5905
5925
|
* The rendering method of this component.
|
|
5906
5926
|
* @returns {JSX.Element}
|
|
5907
5927
|
*/
|
|
5908
|
-
|
|
5928
|
+
}, {
|
|
5929
|
+
key: "render",
|
|
5930
|
+
value: function render() {
|
|
5909
5931
|
var _this47 = this;
|
|
5910
5932
|
this.recordStates = [];
|
|
5911
5933
|
this.unsubscribeTimer && clearTimeout(this.unsubscribeTimer);
|
|
@@ -5945,7 +5967,11 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
5945
5967
|
var items = this.renderItem(this.root, undefined, classes);
|
|
5946
5968
|
return /*#__PURE__*/_react["default"].createElement(_TabContainer["default"], {
|
|
5947
5969
|
key: this.props.dialogName,
|
|
5948
|
-
classes: {}
|
|
5970
|
+
classes: {},
|
|
5971
|
+
onKeyDown: function onKeyDown(event) {
|
|
5972
|
+
return _this47.navigateKeyPress(event);
|
|
5973
|
+
},
|
|
5974
|
+
tabIndex: 0
|
|
5949
5975
|
}, /*#__PURE__*/_react["default"].createElement(_TabHeader["default"], null, this.getToolbar()), /*#__PURE__*/_react["default"].createElement(_TabContent["default"], {
|
|
5950
5976
|
classes: {}
|
|
5951
5977
|
}, this.renderHeader(), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -6119,6 +6145,7 @@ ObjectBrowser.propTypes = {
|
|
|
6119
6145
|
// optional ['state', 'instance', 'channel']
|
|
6120
6146
|
columns: _propTypes["default"].array,
|
|
6121
6147
|
// optional ['name', 'type', 'role', 'room', 'func', 'val', 'buttons']
|
|
6148
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
6122
6149
|
root: _propTypes["default"].string,
|
|
6123
6150
|
// optional, shows only elements of this root
|
|
6124
6151
|
|
|
@@ -6128,14 +6155,12 @@ ObjectBrowser.propTypes = {
|
|
|
6128
6155
|
// function to filter out all unnecessary objects. It cannot be used together with "types"
|
|
6129
6156
|
// Example for function: `obj => obj.common && obj.common.type === 'boolean'` to show only boolean states
|
|
6130
6157
|
|
|
6131
|
-
dragSettings: _propTypes["default"].object,
|
|
6132
6158
|
DragWrapper: _propTypes["default"].func,
|
|
6133
|
-
dragEnabled: _propTypes["default"].bool
|
|
6134
|
-
useDrag: _propTypes["default"].func
|
|
6159
|
+
dragEnabled: _propTypes["default"].bool
|
|
6135
6160
|
};
|
|
6136
6161
|
|
|
6137
6162
|
/** @type {typeof ObjectBrowser} */
|
|
6138
|
-
var _export = (0, _withWidth["default"])()((0,
|
|
6163
|
+
var _export = (0, _withWidth["default"])()((0, _styles.withStyles)(styles)(ObjectBrowser));
|
|
6139
6164
|
var _default = _export;
|
|
6140
6165
|
exports["default"] = _default;
|
|
6141
6166
|
//# sourceMappingURL=ObjectBrowser.js.map
|