@iobroker/adapter-react-v5 4.2.0 → 4.3.0

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.
Files changed (124) hide show
  1. package/Components/ComplexCron.js +20 -28
  2. package/Components/ComplexCron.js.map +1 -1
  3. package/Components/CustomModal.js +8 -12
  4. package/Components/CustomModal.js.map +1 -1
  5. package/Components/FileViewer.js +10 -18
  6. package/Components/FileViewer.js.map +1 -1
  7. package/Components/Icon.js +10 -17
  8. package/Components/Icon.js.map +1 -1
  9. package/Components/IconPicker.js +6 -8
  10. package/Components/IconPicker.js.map +1 -1
  11. package/Components/IconSelector.js +13 -22
  12. package/Components/IconSelector.js.map +1 -1
  13. package/Components/JsonConfigComponent/ChipInput.d.ts +1 -1
  14. package/Components/JsonConfigComponent/ChipInput.js +6 -6
  15. package/Components/JsonConfigComponent/ChipInput.js.map +1 -1
  16. package/Components/JsonConfigComponent/ConfigAccordion.d.ts +14 -0
  17. package/Components/JsonConfigComponent/ConfigAccordion.js +352 -0
  18. package/Components/JsonConfigComponent/ConfigAccordion.js.map +1 -0
  19. package/Components/JsonConfigComponent/ConfigAlive.js.map +1 -1
  20. package/Components/JsonConfigComponent/ConfigAutocomplete.js.map +1 -1
  21. package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js.map +1 -1
  22. package/Components/JsonConfigComponent/ConfigCRON.js +3 -2
  23. package/Components/JsonConfigComponent/ConfigCRON.js.map +1 -1
  24. package/Components/JsonConfigComponent/ConfigCheckLicense.js +1 -1
  25. package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +1 -1
  26. package/Components/JsonConfigComponent/ConfigCheckbox.js.map +1 -1
  27. package/Components/JsonConfigComponent/ConfigChip.js.map +1 -1
  28. package/Components/JsonConfigComponent/ConfigColor.js.map +1 -1
  29. package/Components/JsonConfigComponent/ConfigCoordinates.js +54 -12
  30. package/Components/JsonConfigComponent/ConfigCoordinates.js.map +1 -1
  31. package/Components/JsonConfigComponent/ConfigCustom.js.map +1 -1
  32. package/Components/JsonConfigComponent/ConfigDatePicker.js.map +1 -1
  33. package/Components/JsonConfigComponent/ConfigFile.js.map +1 -1
  34. package/Components/JsonConfigComponent/ConfigGeneric.d.ts +18 -3
  35. package/Components/JsonConfigComponent/ConfigGeneric.js +76 -36
  36. package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -1
  37. package/Components/JsonConfigComponent/ConfigIP.js.map +1 -1
  38. package/Components/JsonConfigComponent/ConfigImageUpload.js.map +1 -1
  39. package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +1 -1
  40. package/Components/JsonConfigComponent/ConfigJsonEditor.js +1 -1
  41. package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
  42. package/Components/JsonConfigComponent/ConfigLanguage.js +3 -0
  43. package/Components/JsonConfigComponent/ConfigLanguage.js.map +1 -1
  44. package/Components/JsonConfigComponent/ConfigLicense.d.ts +23 -0
  45. package/Components/JsonConfigComponent/ConfigLicense.js +183 -0
  46. package/Components/JsonConfigComponent/ConfigLicense.js.map +1 -0
  47. package/Components/JsonConfigComponent/ConfigNumber.js +2 -48
  48. package/Components/JsonConfigComponent/ConfigNumber.js.map +1 -1
  49. package/Components/JsonConfigComponent/ConfigObjectId.js +3 -1
  50. package/Components/JsonConfigComponent/ConfigObjectId.js.map +1 -1
  51. package/Components/JsonConfigComponent/ConfigPanel.js +4 -0
  52. package/Components/JsonConfigComponent/ConfigPanel.js.map +1 -1
  53. package/Components/JsonConfigComponent/ConfigPassword.js.map +1 -1
  54. package/Components/JsonConfigComponent/ConfigPattern.d.ts +19 -13
  55. package/Components/JsonConfigComponent/ConfigPattern.js +1 -5
  56. package/Components/JsonConfigComponent/ConfigPattern.js.map +1 -1
  57. package/Components/JsonConfigComponent/ConfigPort.js.map +1 -1
  58. package/Components/JsonConfigComponent/ConfigRoom.js.map +1 -1
  59. package/Components/JsonConfigComponent/ConfigSelect.js.map +1 -1
  60. package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +1 -1
  61. package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
  62. package/Components/JsonConfigComponent/ConfigSetState.js +1 -1
  63. package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
  64. package/Components/JsonConfigComponent/ConfigSlider.js +3 -1
  65. package/Components/JsonConfigComponent/ConfigSlider.js.map +1 -1
  66. package/Components/JsonConfigComponent/ConfigStaticDivider.js.map +1 -1
  67. package/Components/JsonConfigComponent/ConfigStaticImage.js.map +1 -1
  68. package/Components/JsonConfigComponent/ConfigStaticText.js +9 -0
  69. package/Components/JsonConfigComponent/ConfigStaticText.js.map +1 -1
  70. package/Components/JsonConfigComponent/ConfigTable.js +358 -39
  71. package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
  72. package/Components/JsonConfigComponent/ConfigTabs.js.map +1 -1
  73. package/Components/JsonConfigComponent/ConfigText.js.map +1 -1
  74. package/Components/JsonConfigComponent/ConfigTimePicker.js.map +1 -1
  75. package/Components/JsonConfigComponent/ConfigTopic.js +1 -1
  76. package/Components/JsonConfigComponent/ConfigTopic.js.map +1 -1
  77. package/Components/JsonConfigComponent/index.js.map +1 -1
  78. package/Components/Loader.js +1 -1
  79. package/Components/Loader.js.map +1 -1
  80. package/Components/Logo.js +11 -13
  81. package/Components/Logo.js.map +1 -1
  82. package/Components/MDUtils.js +1 -1
  83. package/Components/MDUtils.js.map +1 -1
  84. package/Components/ObjectBrowser.d.ts +13 -1
  85. package/Components/ObjectBrowser.js +568 -568
  86. package/Components/ObjectBrowser.js.map +1 -1
  87. package/Components/Router.d.ts +1 -1
  88. package/Components/Router.js +6 -6
  89. package/Components/Router.js.map +1 -1
  90. package/Components/SaveCloseButtons.js +11 -13
  91. package/Components/SaveCloseButtons.js.map +1 -1
  92. package/Components/Schedule.js +135 -129
  93. package/Components/Schedule.js.map +1 -1
  94. package/Components/SelectWithIcon.js.map +1 -1
  95. package/Components/TabContainer.js +3 -4
  96. package/Components/TabContainer.js.map +1 -1
  97. package/Components/TabContent.js +2 -2
  98. package/Components/TabContent.js.map +1 -1
  99. package/Components/TabHeader.js +2 -2
  100. package/Components/TabHeader.js.map +1 -1
  101. package/Components/TableResize.js +6 -6
  102. package/Components/TableResize.js.map +1 -1
  103. package/Components/ToggleThemeMenu.js +5 -8
  104. package/Components/ToggleThemeMenu.js.map +1 -1
  105. package/Components/TreeTable.js +44 -64
  106. package/Components/TreeTable.js.map +1 -1
  107. package/Components/UploadImage.js +11 -12
  108. package/Components/UploadImage.js.map +1 -1
  109. package/Components/Utils.d.ts +13 -6
  110. package/Components/Utils.js +61 -41
  111. package/Components/Utils.js.map +1 -1
  112. package/README.md +10 -0
  113. package/i18n/de.json +11 -1
  114. package/i18n/en.json +11 -1
  115. package/i18n/es.json +11 -1
  116. package/i18n/fr.json +11 -1
  117. package/i18n/it.json +11 -1
  118. package/i18n/nl.json +11 -1
  119. package/i18n/pl.json +11 -1
  120. package/i18n/pt.json +11 -1
  121. package/i18n/ru.json +11 -1
  122. package/i18n/uk.json +11 -1
  123. package/i18n/zh-cn.json +11 -1
  124. package/package.json +7 -7
@@ -21,60 +21,8 @@ var _react = _interopRequireWildcard(require("react"));
21
21
  var _propTypes = _interopRequireDefault(require("prop-types"));
22
22
  var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
23
23
  var _reactInlinesvg = _interopRequireDefault(require("react-inlinesvg"));
24
- var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
25
- var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
26
- var _MenuItem = _interopRequireDefault(require("@mui/material/MenuItem"));
27
- var _Select = _interopRequireDefault(require("@mui/material/Select"));
28
- var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
29
- var _Input = _interopRequireDefault(require("@mui/material/Input"));
30
- var _Grid = _interopRequireDefault(require("@mui/material/Grid"));
31
- var _Badge = _interopRequireDefault(require("@mui/material/Badge"));
32
- var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
33
- var _Snackbar = _interopRequireDefault(require("@mui/material/Snackbar"));
34
- var _Checkbox = _interopRequireDefault(require("@mui/material/Checkbox"));
35
- var _List = _interopRequireDefault(require("@mui/material/List"));
36
- var _ListItem = _interopRequireDefault(require("@mui/material/ListItem"));
37
- var _ListItemButton = _interopRequireDefault(require("@mui/material/ListItemButton"));
38
- var _ListItemIcon = _interopRequireDefault(require("@mui/material/ListItemIcon"));
39
- var _ListItemSecondaryAction = _interopRequireDefault(require("@mui/material/ListItemSecondaryAction"));
40
- var _ListItemText = _interopRequireDefault(require("@mui/material/ListItemText"));
41
- var _DialogTitle = _interopRequireDefault(require("@mui/material/DialogTitle"));
42
- var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
43
- var _DialogContent = _interopRequireDefault(require("@mui/material/DialogContent"));
44
- var _DialogContentText = _interopRequireDefault(require("@mui/material/DialogContentText"));
45
- var _DialogActions = _interopRequireDefault(require("@mui/material/DialogActions"));
46
- var _Button = _interopRequireDefault(require("@mui/material/Button"));
47
- var _Fab = _interopRequireDefault(require("@mui/material/Fab"));
48
- var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
49
- var _FormControlLabel = _interopRequireDefault(require("@mui/material/FormControlLabel"));
50
- var _Switch = _interopRequireDefault(require("@mui/material/Switch"));
51
- var _Edit = _interopRequireDefault(require("@mui/icons-material/Edit"));
52
- var _Delete = _interopRequireDefault(require("@mui/icons-material/Delete"));
53
- var _Settings = _interopRequireDefault(require("@mui/icons-material/Settings"));
54
- var _SettingsApplications = _interopRequireDefault(require("@mui/icons-material/SettingsApplications"));
55
- var _Photo = _interopRequireDefault(require("@mui/icons-material/Photo"));
56
- var _SupervisedUserCircle = _interopRequireDefault(require("@mui/icons-material/SupervisedUserCircle"));
57
- var _CalendarToday = _interopRequireDefault(require("@mui/icons-material/CalendarToday"));
58
- var _PersonOutlined = _interopRequireDefault(require("@mui/icons-material/PersonOutlined"));
59
- var _Router = _interopRequireDefault(require("@mui/icons-material/Router"));
60
- var _Wifi = _interopRequireDefault(require("@mui/icons-material/Wifi"));
61
- var _Info = _interopRequireDefault(require("@mui/icons-material/Info"));
62
- var _Description = _interopRequireDefault(require("@mui/icons-material/Description"));
63
- var _Code = _interopRequireDefault(require("@mui/icons-material/Code"));
64
- var _ShowChart = _interopRequireDefault(require("@mui/icons-material/ShowChart"));
65
- var _ListAlt = _interopRequireDefault(require("@mui/icons-material/ListAlt"));
66
- var _ViewColumn = _interopRequireDefault(require("@mui/icons-material/ViewColumn"));
67
- var _Close = _interopRequireDefault(require("@mui/icons-material/Close"));
68
- var _Check = _interopRequireDefault(require("@mui/icons-material/Check"));
69
- var _Build = _interopRequireDefault(require("@mui/icons-material/Build"));
70
- var _Publish = _interopRequireDefault(require("@mui/icons-material/Publish"));
71
- var _Add = _interopRequireDefault(require("@mui/icons-material/Add"));
72
- var _Refresh = _interopRequireDefault(require("@mui/icons-material/Refresh"));
73
- var _LooksOne = _interopRequireDefault(require("@mui/icons-material/LooksOne"));
74
- var _RoomService = _interopRequireDefault(require("@mui/icons-material/RoomService"));
75
- var _Error = _interopRequireDefault(require("@mui/icons-material/Error"));
76
- var _WifiOff = _interopRequireDefault(require("@mui/icons-material/WifiOff"));
77
- var _TextFields = _interopRequireDefault(require("@mui/icons-material/TextFields"));
24
+ var _material = require("@mui/material");
25
+ var _iconsMaterial = require("@mui/icons-material");
78
26
  var _IconExpert = _interopRequireDefault(require("../icons/IconExpert"));
79
27
  var _IconAdapter = _interopRequireDefault(require("../icons/IconAdapter"));
80
28
  var _IconAlias = _interopRequireDefault(require("../icons/IconAlias"));
@@ -104,10 +52,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
104
52
  *
105
53
  * MIT License
106
54
  *
107
- **/ // import ListItemButton from '@mui/material/ListItemButton';
108
- // import Slider from '@mui/material/Slider';
109
- // import Typography from '@mui/material/Typography';
110
- // Icons
55
+ **/ // Icons
111
56
  // own
112
57
  var ICON_SIZE = 24;
113
58
  var ROW_HEIGHT = 32;
@@ -308,12 +253,12 @@ var styles = function styles(theme) {
308
253
  fontSize: 14
309
254
  },
310
255
  cellIdTooltipLink: {
311
- color: "#7ec2fd",
312
- "&:hover": {
313
- color: "#7ec2fd"
256
+ color: '#7ec2fd',
257
+ '&:hover': {
258
+ color: '#7ec2fd'
314
259
  },
315
- "&:visited": {
316
- color: "#7ec2fd"
260
+ '&:visited': {
261
+ color: '#7ec2fd'
317
262
  }
318
263
  },
319
264
  cellCopyButton: {
@@ -1074,11 +1019,11 @@ function getSystemIcon(objects, id, k, imagePrefix) {
1074
1019
 
1075
1020
  // system or design have special icons
1076
1021
  if (id.startsWith('_design/') || id === 'system') {
1077
- icon = /*#__PURE__*/_react["default"].createElement(_SettingsApplications["default"], {
1022
+ icon = /*#__PURE__*/_react["default"].createElement(_iconsMaterial.SettingsApplications, {
1078
1023
  className: "iconOwn"
1079
1024
  });
1080
1025
  } else if (id === '0_userdata' || id === '0_userdata.0') {
1081
- icon = /*#__PURE__*/_react["default"].createElement(_Photo["default"], {
1026
+ icon = /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Photo, {
1082
1027
  className: "iconOwn"
1083
1028
  });
1084
1029
  } else if (id === 'alias' || id === 'alias.0') {
@@ -1086,31 +1031,31 @@ function getSystemIcon(objects, id, k, imagePrefix) {
1086
1031
  className: "iconOwn"
1087
1032
  });
1088
1033
  } else if (id === 'system.adapter') {
1089
- icon = /*#__PURE__*/_react["default"].createElement(_SettingsApplications["default"], {
1034
+ icon = /*#__PURE__*/_react["default"].createElement(_iconsMaterial.SettingsApplications, {
1090
1035
  className: "iconOwn"
1091
1036
  });
1092
1037
  } else if (id === 'system.group') {
1093
- icon = /*#__PURE__*/_react["default"].createElement(_SupervisedUserCircle["default"], {
1038
+ icon = /*#__PURE__*/_react["default"].createElement(_iconsMaterial.SupervisedUserCircle, {
1094
1039
  className: "iconOwn"
1095
1040
  });
1096
1041
  } else if (id === 'system.user') {
1097
- icon = /*#__PURE__*/_react["default"].createElement(_PersonOutlined["default"], {
1042
+ icon = /*#__PURE__*/_react["default"].createElement(_iconsMaterial.PersonOutlined, {
1098
1043
  className: "iconOwn"
1099
1044
  });
1100
1045
  } else if (id === 'system.host') {
1101
- icon = /*#__PURE__*/_react["default"].createElement(_Router["default"], {
1046
+ icon = /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Router, {
1102
1047
  className: "iconOwn"
1103
1048
  });
1104
1049
  } else if (id.endsWith('.connection') || id.endsWith('.connected')) {
1105
- icon = /*#__PURE__*/_react["default"].createElement(_Wifi["default"], {
1050
+ icon = /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Wifi, {
1106
1051
  className: "iconOwn"
1107
1052
  });
1108
1053
  } else if (id.endsWith('.info')) {
1109
- icon = /*#__PURE__*/_react["default"].createElement(_Info["default"], {
1054
+ icon = /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Info, {
1110
1055
  className: "iconOwn"
1111
1056
  });
1112
1057
  } else if (objects[id] && objects[id].type === 'meta') {
1113
- icon = /*#__PURE__*/_react["default"].createElement(_Description["default"], {
1058
+ icon = /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Description, {
1114
1059
  className: "iconOwn"
1115
1060
  });
1116
1061
  } else if (k < 2) {
@@ -1487,13 +1432,26 @@ function quality2text(q) {
1487
1432
  }
1488
1433
  */
1489
1434
 
1490
- function formatValue(id, state, obj, texts, dateFormat, isFloatComma) {
1435
+ /** @typedef {{ state: ioBroker.State, obj: Record<string, any>, texts: Record<string, any>, dateFormat: any, isFloatComma: boolean }} FormatValueOptions */
1436
+
1437
+ /**
1438
+ * Format a state value for visualization
1439
+ *
1440
+ * @param {FormatValueOptions} options
1441
+ * @return {{valText: {}, valFull: [{t: (*|String), v: (string|*)}] }}
1442
+ */
1443
+ function formatValue(options) {
1444
+ var dateFormat = options.dateFormat,
1445
+ obj = options.obj,
1446
+ state = options.state,
1447
+ isFloatComma = options.isFloatComma,
1448
+ texts = options.texts;
1491
1449
  var states = _Utils["default"].getStates(obj);
1492
1450
  var isCommon = obj.common;
1493
1451
  var valText = {};
1494
1452
  var v = isCommon && isCommon.type === 'file' ? '[file]' : !state || state.val === null ? '(null)' : state.val === undefined ? '[undef]' : state.val;
1495
1453
  var type = (0, _typeof2["default"])(v);
1496
- if (isCommon && isCommon.role && typeof isCommon.role === 'string' && isCommon.role.match(/^value\.time|^date/)) {
1454
+ if (isCommon !== null && isCommon !== void 0 && isCommon.role && typeof isCommon.role === 'string' && isCommon.role.match(/^value\.time|^date/)) {
1497
1455
  if (v && typeof v === 'string') {
1498
1456
  if (v.length === 13) {
1499
1457
  // (length of "1647597254924") warning, this solution only works till Nov 20 2286 18:46:39CET
@@ -1532,7 +1490,7 @@ function formatValue(id, state, obj, texts, dateFormat, isFloatComma) {
1532
1490
  v = states[v];
1533
1491
  }
1534
1492
  }
1535
- if (isCommon && isCommon.unit) {
1493
+ if (isCommon !== null && isCommon !== void 0 && isCommon.unit) {
1536
1494
  valText.u = isCommon.unit;
1537
1495
  }
1538
1496
  var valFull = [{
@@ -1593,10 +1551,28 @@ function formatValue(id, state, obj, texts, dateFormat, isFloatComma) {
1593
1551
  valText.v = v;
1594
1552
  return {
1595
1553
  valText: valText,
1596
- valFull: valFull,
1597
- style: {
1598
- color: state !== null && state !== void 0 && state.ack ? state.q ? '#ffa500' : '' : '#ff2222c9'
1599
- }
1554
+ valFull: valFull
1555
+ };
1556
+ }
1557
+
1558
+ /** @typedef {{ state: ioBroker.State, isExpertMode: boolean, obj: ioBroker.StateObject }} GetValueStyleOptions */
1559
+
1560
+ /**
1561
+ * Get css style for given state value
1562
+ *
1563
+ * @param {GetValueStyleOptions} options
1564
+ * @return {{color: (string)}}
1565
+ */
1566
+ function getValueStyle(options) {
1567
+ var state = options.state,
1568
+ isExpertMode = options.isExpertMode,
1569
+ obj = options.obj;
1570
+ var color = state !== null && state !== void 0 && state.ack ? state.q ? '#ffa500' : '' : '#ff2222c9';
1571
+ if (!isExpertMode && obj.common.role === 'button') {
1572
+ color = '';
1573
+ }
1574
+ return {
1575
+ color: color
1600
1576
  };
1601
1577
  }
1602
1578
  function prepareSparkData(values, from) {
@@ -1655,7 +1631,7 @@ var ITEM_IMAGES = {
1655
1631
  adapter: /*#__PURE__*/_react["default"].createElement(_IconAdapter["default"], {
1656
1632
  className: "itemIcon"
1657
1633
  }),
1658
- meta: /*#__PURE__*/_react["default"].createElement(_Description["default"], {
1634
+ meta: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Description, {
1659
1635
  className: "itemIcon"
1660
1636
  }),
1661
1637
  instance: /*#__PURE__*/_react["default"].createElement(_IconInstance["default"], {
@@ -1664,28 +1640,28 @@ var ITEM_IMAGES = {
1664
1640
  color: '#7da7ff'
1665
1641
  }
1666
1642
  }),
1667
- "enum": /*#__PURE__*/_react["default"].createElement(_ListAlt["default"], {
1643
+ "enum": /*#__PURE__*/_react["default"].createElement(_iconsMaterial.ListAlt, {
1668
1644
  className: "itemIcon"
1669
1645
  }),
1670
- chart: /*#__PURE__*/_react["default"].createElement(_ShowChart["default"], {
1646
+ chart: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.ShowChart, {
1671
1647
  className: "itemIcon"
1672
1648
  }),
1673
- config: /*#__PURE__*/_react["default"].createElement(_Settings["default"], {
1649
+ config: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Settings, {
1674
1650
  className: "itemIcon"
1675
1651
  }),
1676
- group: /*#__PURE__*/_react["default"].createElement(_SupervisedUserCircle["default"], {
1652
+ group: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.SupervisedUserCircle, {
1677
1653
  className: "itemIcon"
1678
1654
  }),
1679
- user: /*#__PURE__*/_react["default"].createElement(_PersonOutlined["default"], {
1655
+ user: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.PersonOutlined, {
1680
1656
  className: "itemIcon"
1681
1657
  }),
1682
- host: /*#__PURE__*/_react["default"].createElement(_Router["default"], {
1658
+ host: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Router, {
1683
1659
  className: "itemIcon"
1684
1660
  }),
1685
- schedule: /*#__PURE__*/_react["default"].createElement(_CalendarToday["default"], {
1661
+ schedule: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.CalendarToday, {
1686
1662
  className: "itemIcon"
1687
1663
  }),
1688
- script: /*#__PURE__*/_react["default"].createElement(_Code["default"], {
1664
+ script: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Code, {
1689
1665
  className: "itemIcon"
1690
1666
  }),
1691
1667
  folder: /*#__PURE__*/_react["default"].createElement(_IconClosed["default"], {
@@ -1701,7 +1677,7 @@ var StyledBadge = (0, _withStyles["default"])(function (theme) {
1701
1677
  padding: '0 4px'
1702
1678
  }
1703
1679
  };
1704
- })(_Badge["default"]);
1680
+ })(_material.Badge);
1705
1681
  var SCREEN_WIDTHS = {
1706
1682
  // extra-small: 0px
1707
1683
  xs: {
@@ -1912,59 +1888,63 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
1912
1888
  */
1913
1889
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "_createAllEnums", /*#__PURE__*/function () {
1914
1890
  var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(enums, objId) {
1915
- var e, _enObj$common, id, _enObj, enObj;
1891
+ var e, _oldObj$common, id, newObj, oldObj;
1916
1892
  return _regenerator["default"].wrap(function _callee$(_context) {
1917
1893
  while (1) switch (_context.prev = _context.next) {
1918
1894
  case 0:
1919
1895
  e = 0;
1920
1896
  case 1:
1921
1897
  if (!(e < enums.length)) {
1922
- _context.next = 24;
1898
+ _context.next = 26;
1923
1899
  break;
1924
1900
  }
1925
1901
  id = enums[e];
1926
- _enObj = void 0;
1902
+ newObj = void 0; // some admin version delivered enums as string
1927
1903
  if ((0, _typeof2["default"])(id) === 'object') {
1928
- _enObj = id;
1904
+ newObj = id;
1929
1905
  id = id._id;
1930
1906
  }
1931
- enObj = _this.objects[id];
1932
- if (enObj) {
1933
- _context.next = 14;
1907
+ oldObj = _this.objects[id]; // if enum does not exist
1908
+ if (oldObj) {
1909
+ _context.next = 15;
1934
1910
  break;
1935
1911
  }
1936
- enObj = _enObj || {
1912
+ // create a new one
1913
+ oldObj = newObj || {
1937
1914
  _id: id,
1938
1915
  common: {
1939
1916
  name: id.split('.').pop(),
1940
1917
  members: []
1941
1918
  },
1942
- "native": {}
1919
+ "native": {},
1920
+ type: 'enum'
1943
1921
  };
1944
- enObj.common = enObj.common || {};
1945
- enObj.common.members = [objId];
1946
- _context.next = 12;
1947
- return _this.props.socket.setObject(id, enObj);
1948
- case 12:
1949
- _context.next = 21;
1922
+ oldObj.common = oldObj.common || {};
1923
+ oldObj.common.members = [objId];
1924
+ oldObj.type = 'enum';
1925
+ _context.next = 13;
1926
+ return _this.props.socket.setObject(id, oldObj);
1927
+ case 13:
1928
+ _context.next = 23;
1950
1929
  break;
1951
- case 14:
1952
- if ((_enObj$common = enObj.common) !== null && _enObj$common !== void 0 && (_enObj$common = _enObj$common.members) !== null && _enObj$common !== void 0 && _enObj$common.includes(objId)) {
1953
- _context.next = 21;
1930
+ case 15:
1931
+ if ((_oldObj$common = oldObj.common) !== null && _oldObj$common !== void 0 && (_oldObj$common = _oldObj$common.members) !== null && _oldObj$common !== void 0 && _oldObj$common.includes(objId)) {
1932
+ _context.next = 23;
1954
1933
  break;
1955
1934
  }
1956
- enObj.common = enObj.common || {};
1957
- enObj.common.members = enObj.common.members || [];
1958
- // add missing object
1959
- enObj.common.members.push(objId);
1960
- enObj.common.members.sort();
1961
- _context.next = 21;
1962
- return _this.props.socket.setObject(id, enObj);
1963
- case 21:
1935
+ oldObj.common = oldObj.common || {};
1936
+ oldObj.type = 'enum';
1937
+ oldObj.common.members = oldObj.common.members || [];
1938
+ // add the missing object
1939
+ oldObj.common.members.push(objId);
1940
+ oldObj.common.members.sort();
1941
+ _context.next = 23;
1942
+ return _this.props.socket.setObject(id, oldObj);
1943
+ case 23:
1964
1944
  e++;
1965
1945
  _context.next = 1;
1966
1946
  break;
1967
- case 24:
1947
+ case 26:
1968
1948
  case "end":
1969
1949
  return _context.stop();
1970
1950
  }
@@ -2744,7 +2724,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
2744
2724
  var node = _this2.state.selected && _this2.state.selected.length && findNode(_this2.root, _this2.state.selected[0]);
2745
2725
  _this2.lastAppliedFilter = null;
2746
2726
 
2747
- // If selected ID is not visible, reset filter
2727
+ // If the selected ID is not visible, reset filter
2748
2728
  if (node && !applyFilter(node, _this2.state.filter, _this2.props.lang, _this2.objects, null, null, props.customFilter, props.types)) {
2749
2729
  // reset filter
2750
2730
  _this2.setState({
@@ -2847,25 +2827,38 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
2847
2827
  /**
2848
2828
  * Called when component is mounted.
2849
2829
  */
2850
- function componentDidMount() {
2851
- var _this4 = this;
2852
- this.loadAllObjects(!objectsAlreadyLoaded).then(function () {
2853
- if (_this4.props.objectsWorker) {
2854
- _this4.props.objectsWorker.registerHandler(_this4.onObjectChange);
2855
- } else {
2856
- _this4.props.socket.subscribeObject('*', _this4.onObjectChange);
2857
- }
2858
- objectsAlreadyLoaded = true;
2859
- });
2860
- }
2861
-
2830
+ function () {
2831
+ var _componentDidMount = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
2832
+ return _regenerator["default"].wrap(function _callee4$(_context4) {
2833
+ while (1) switch (_context4.prev = _context4.next) {
2834
+ case 0:
2835
+ _context4.next = 2;
2836
+ return this.loadAllObjects(!objectsAlreadyLoaded);
2837
+ case 2:
2838
+ if (this.props.objectsWorker) {
2839
+ this.props.objectsWorker.registerHandler(this.onObjectChange);
2840
+ } else {
2841
+ this.props.socket.subscribeObject('*', this.onObjectChange);
2842
+ }
2843
+ objectsAlreadyLoaded = true;
2844
+ case 4:
2845
+ case "end":
2846
+ return _context4.stop();
2847
+ }
2848
+ }, _callee4, this);
2849
+ }));
2850
+ function componentDidMount() {
2851
+ return _componentDidMount.apply(this, arguments);
2852
+ }
2853
+ return componentDidMount;
2854
+ }()
2862
2855
  /**
2863
2856
  * Called when component is unmounted.
2864
2857
  */
2865
2858
  }, {
2866
2859
  key: "componentWillUnmount",
2867
2860
  value: function componentWillUnmount() {
2868
- var _this5 = this;
2861
+ var _this4 = this;
2869
2862
  this.filterTimer && clearTimeout(this.filterTimer);
2870
2863
  this.filterTimer = null;
2871
2864
  if (this.props.objectsWorker) {
@@ -2877,7 +2870,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
2877
2870
  // remove all subscribes
2878
2871
  this.subscribes.forEach(function (pattern) {
2879
2872
  console.log("- unsubscribe ".concat(pattern));
2880
- _this5.props.socket.unsubscribeState(pattern, _this5.onStateChange);
2873
+ _this4.props.socket.unsubscribeState(pattern, _this4.onStateChange);
2881
2874
  });
2882
2875
  this.subscribes = [];
2883
2876
  this.objects = {};
@@ -2889,11 +2882,11 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
2889
2882
  }, {
2890
2883
  key: "refreshComponent",
2891
2884
  value: function refreshComponent() {
2892
- var _this6 = this;
2885
+ var _this5 = this;
2893
2886
  // remove all subscribes
2894
2887
  this.subscribes.forEach(function (pattern) {
2895
2888
  console.log("- unsubscribe ".concat(pattern));
2896
- _this6.props.socket.unsubscribeState(pattern, _this6.onStateChange);
2889
+ _this5.props.socket.unsubscribeState(pattern, _this5.onStateChange);
2897
2890
  });
2898
2891
  this.subscribes = [];
2899
2892
  this.loadAllObjects(true).then(function () {
@@ -2908,32 +2901,32 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
2908
2901
  }, {
2909
2902
  key: "renderErrorDialog",
2910
2903
  value: function renderErrorDialog() {
2911
- var _this7 = this;
2912
- return this.state.error ? /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
2904
+ var _this6 = this;
2905
+ return this.state.error ? /*#__PURE__*/_react["default"].createElement(_material.Dialog, {
2913
2906
  open: !0,
2914
2907
  maxWidth: "sm",
2915
2908
  fullWidth: true,
2916
2909
  onClose: function onClose() {
2917
- return _this7.setState({
2910
+ return _this6.setState({
2918
2911
  error: ''
2919
2912
  });
2920
2913
  },
2921
2914
  "aria-labelledby": "error-dialog-title",
2922
2915
  "aria-describedby": "error-dialog-description"
2923
- }, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], {
2916
+ }, /*#__PURE__*/_react["default"].createElement(_material.DialogTitle, {
2924
2917
  id: "alert-dialog-title"
2925
- }, this.props.title || this.props.t('ra_Error')), /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], null, /*#__PURE__*/_react["default"].createElement(_DialogContentText["default"], {
2918
+ }, this.props.title || this.props.t('ra_Error')), /*#__PURE__*/_react["default"].createElement(_material.DialogContent, null, /*#__PURE__*/_react["default"].createElement(_material.DialogContentText, {
2926
2919
  id: "alert-dialog-description"
2927
- }, this.state.error)), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
2920
+ }, this.state.error)), /*#__PURE__*/_react["default"].createElement(_material.DialogActions, null, /*#__PURE__*/_react["default"].createElement(_material.Button, {
2928
2921
  variant: "contained",
2929
2922
  onClick: function onClick() {
2930
- return _this7.setState({
2923
+ return _this6.setState({
2931
2924
  error: ''
2932
2925
  });
2933
2926
  },
2934
2927
  color: "primary",
2935
2928
  autoFocus: true,
2936
- startIcon: /*#__PURE__*/_react["default"].createElement(_Check["default"], null)
2929
+ startIcon: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Check, null)
2937
2930
  }, this.props.t('ra_Ok')))) : null;
2938
2931
  }
2939
2932
 
@@ -2957,7 +2950,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
2957
2950
  }, {
2958
2951
  key: "onSelect",
2959
2952
  value: function onSelect(toggleItem, isDouble) {
2960
- var _this8 = this;
2953
+ var _this7 = this;
2961
2954
  if (!this.props.multiSelect) {
2962
2955
  if (this.objects[toggleItem] && (!this.props.types || this.props.types.includes(this.objects[toggleItem].type))) {
2963
2956
  (window._localStorage || window.localStorage).removeItem("".concat(this.props.dialogName || 'App', ".selectedNonObject"));
@@ -2966,7 +2959,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
2966
2959
  selected: [toggleItem],
2967
2960
  selectedNonObject: ''
2968
2961
  }, function () {
2969
- return _this8.onAfterSelect(isDouble);
2962
+ return _this7.onAfterSelect(isDouble);
2970
2963
  });
2971
2964
  } else if (isDouble && this.props.onSelect) {
2972
2965
  this.onAfterSelect(isDouble);
@@ -2977,7 +2970,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
2977
2970
  selected: [],
2978
2971
  selectedNonObject: toggleItem
2979
2972
  }, function () {
2980
- return _this8.onAfterSelect();
2973
+ return _this7.onAfterSelect();
2981
2974
  });
2982
2975
  }
2983
2976
  } else if (this.objects[toggleItem] && (!this.props.types || this.props.types.includes(this.objects[toggleItem].type))) {
@@ -2994,7 +2987,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
2994
2987
  selected: selected,
2995
2988
  selectedNonObject: ''
2996
2989
  }, function () {
2997
- return _this8.onAfterSelect(isDouble);
2990
+ return _this7.onAfterSelect(isDouble);
2998
2991
  });
2999
2992
  }
3000
2993
  }
@@ -3006,7 +2999,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3006
2999
  }, {
3007
3000
  key: "_renderDefinedList",
3008
3001
  value: function _renderDefinedList(isLast) {
3009
- var _this9 = this;
3002
+ var _this8 = this;
3010
3003
  var cols = (0, _toConsumableArray2["default"])(this.possibleCols);
3011
3004
  cols.unshift('id');
3012
3005
  if (this.props.columns && !this.props.columns.includes('buttons')) {
@@ -3018,10 +3011,10 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3018
3011
  return cols.filter(function (id) {
3019
3012
  return isLast && (id === 'val' || id === 'buttons') || !isLast && id !== 'val' && id !== 'buttons';
3020
3013
  }).map(function (id) {
3021
- return /*#__PURE__*/_react["default"].createElement(_ListItemButton["default"], {
3014
+ return /*#__PURE__*/_react["default"].createElement(_material.ListItemButton, {
3022
3015
  onClick: function onClick() {
3023
- if (!_this9.state.columnsAuto && id !== 'id') {
3024
- var columns = (0, _toConsumableArray2["default"])(_this9.state.columns || []);
3016
+ if (!_this8.state.columnsAuto && id !== 'id') {
3017
+ var columns = (0, _toConsumableArray2["default"])(_this8.state.columns || []);
3025
3018
  var _pos = columns.indexOf(id);
3026
3019
  if (_pos === -1) {
3027
3020
  columns.push(id);
@@ -3029,21 +3022,21 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3029
3022
  } else {
3030
3023
  columns.splice(_pos, 1);
3031
3024
  }
3032
- (window._localStorage || window.localStorage).setItem((_this9.props.dialogName || 'App') + '.columns', JSON.stringify(columns));
3033
- _this9.calculateColumnsVisibility(null, columns);
3034
- _this9.setState({
3025
+ (window._localStorage || window.localStorage).setItem((_this8.props.dialogName || 'App') + '.columns', JSON.stringify(columns));
3026
+ _this8.calculateColumnsVisibility(null, columns);
3027
+ _this8.setState({
3035
3028
  columns: columns
3036
3029
  });
3037
3030
  }
3038
3031
  },
3039
3032
  key: id
3040
- }, /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
3033
+ }, /*#__PURE__*/_react["default"].createElement(_material.Checkbox, {
3041
3034
  edge: "start",
3042
- disabled: id === 'id' || _this9.state.columnsAuto,
3043
- checked: id === 'id' || (_this9.state.columnsAuto ? _this9.visibleCols.includes(id) : _this9.state.columns && _this9.state.columns.includes(id)),
3035
+ disabled: id === 'id' || _this8.state.columnsAuto,
3036
+ checked: id === 'id' || (_this8.state.columnsAuto ? _this8.visibleCols.includes(id) : _this8.state.columns && _this8.state.columns.includes(id)),
3044
3037
  disableRipple: true
3045
- }), /*#__PURE__*/_react["default"].createElement(_ListItemText["default"], {
3046
- primary: _this9.texts['filter_' + id] || _this9.props.t('ra_' + id)
3038
+ }), /*#__PURE__*/_react["default"].createElement(_material.ListItemText, {
3039
+ primary: _this8.texts['filter_' + id] || _this8.props.t('ra_' + id)
3047
3040
  }));
3048
3041
  });
3049
3042
  }
@@ -3055,13 +3048,13 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3055
3048
  }, {
3056
3049
  key: "renderColumnsSelectorDialog",
3057
3050
  value: function renderColumnsSelectorDialog() {
3058
- var _this10 = this;
3051
+ var _this9 = this;
3059
3052
  if (!this.state.columnsSelectorShow) {
3060
3053
  return null;
3061
3054
  }
3062
- return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
3055
+ return /*#__PURE__*/_react["default"].createElement(_material.Dialog, {
3063
3056
  onClose: function onClose() {
3064
- return _this10.setState({
3057
+ return _this9.setState({
3065
3058
  columnsSelectorShow: false
3066
3059
  });
3067
3060
  },
@@ -3069,55 +3062,55 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3069
3062
  classes: {
3070
3063
  root: _Utils["default"].clsx(this.props.classes.dialogColumns, this.props.classes["transparent_".concat(this.state.columnsDialogTransparent)])
3071
3064
  }
3072
- }, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], {
3065
+ }, /*#__PURE__*/_react["default"].createElement(_material.DialogTitle, {
3073
3066
  className: this.props.classes.fontSizeTitle
3074
- }, this.props.t('ra_Configure')), /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
3067
+ }, this.props.t('ra_Configure')), /*#__PURE__*/_react["default"].createElement(_material.DialogContent, {
3075
3068
  className: this.props.classes.fontSizeTitle
3076
- }, /*#__PURE__*/_react["default"].createElement(_FormControlLabel["default"], {
3069
+ }, /*#__PURE__*/_react["default"].createElement(_material.FormControlLabel, {
3077
3070
  className: this.props.classes.switchColumnAuto,
3078
- control: /*#__PURE__*/_react["default"].createElement(_Switch["default"], {
3071
+ control: /*#__PURE__*/_react["default"].createElement(_material.Switch, {
3079
3072
  checked: this.state.foldersFirst,
3080
3073
  onChange: function onChange() {
3081
- (window._localStorage || window.localStorage).setItem("".concat(_this10.props.dialogName || 'App', ".foldersFirst"), _this10.state.foldersFirst ? 'false' : 'true');
3082
- _this10.setState({
3083
- foldersFirst: !_this10.state.foldersFirst
3074
+ (window._localStorage || window.localStorage).setItem("".concat(_this9.props.dialogName || 'App', ".foldersFirst"), _this9.state.foldersFirst ? 'false' : 'true');
3075
+ _this9.setState({
3076
+ foldersFirst: !_this9.state.foldersFirst
3084
3077
  });
3085
3078
  }
3086
3079
  }),
3087
3080
  label: this.props.t('ra_Folders always first')
3088
- }), /*#__PURE__*/_react["default"].createElement(_FormControlLabel["default"], {
3081
+ }), /*#__PURE__*/_react["default"].createElement(_material.FormControlLabel, {
3089
3082
  className: this.props.classes.switchColumnAuto,
3090
- control: /*#__PURE__*/_react["default"].createElement(_Switch["default"], {
3083
+ control: /*#__PURE__*/_react["default"].createElement(_material.Switch, {
3091
3084
  checked: this.state.linesEnabled,
3092
3085
  onChange: function onChange() {
3093
- (window._localStorage || window.localStorage).setItem("".concat(_this10.props.dialogName || 'App', ".lines"), _this10.state.linesEnabled ? 'false' : 'true');
3094
- _this10.setState({
3095
- linesEnabled: !_this10.state.linesEnabled
3086
+ (window._localStorage || window.localStorage).setItem("".concat(_this9.props.dialogName || 'App', ".lines"), _this9.state.linesEnabled ? 'false' : 'true');
3087
+ _this9.setState({
3088
+ linesEnabled: !_this9.state.linesEnabled
3096
3089
  });
3097
3090
  }
3098
3091
  }),
3099
3092
  label: this.props.t('ra_Show lines between rows')
3100
- }), /*#__PURE__*/_react["default"].createElement(_FormControlLabel["default"], {
3093
+ }), /*#__PURE__*/_react["default"].createElement(_material.FormControlLabel, {
3101
3094
  className: this.props.classes.switchColumnAuto,
3102
- control: /*#__PURE__*/_react["default"].createElement(_Switch["default"], {
3095
+ control: /*#__PURE__*/_react["default"].createElement(_material.Switch, {
3103
3096
  checked: this.state.columnsAuto,
3104
3097
  onChange: function onChange() {
3105
- (window._localStorage || window.localStorage).setItem((_this10.props.dialogName || 'App') + '.columnsAuto', _this10.state.columnsAuto ? 'false' : 'true');
3106
- if (!_this10.state.columnsAuto) {
3107
- _this10.calculateColumnsVisibility(true);
3108
- _this10.setState({
3098
+ (window._localStorage || window.localStorage).setItem((_this9.props.dialogName || 'App') + '.columnsAuto', _this9.state.columnsAuto ? 'false' : 'true');
3099
+ if (!_this9.state.columnsAuto) {
3100
+ _this9.calculateColumnsVisibility(true);
3101
+ _this9.setState({
3109
3102
  columnsAuto: true
3110
3103
  });
3111
3104
  } else {
3112
- if (!_this10.state.columns) {
3113
- _this10.calculateColumnsVisibility(false, (0, _toConsumableArray2["default"])(_this10.visibleCols));
3114
- _this10.setState({
3105
+ if (!_this9.state.columns) {
3106
+ _this9.calculateColumnsVisibility(false, (0, _toConsumableArray2["default"])(_this9.visibleCols));
3107
+ _this9.setState({
3115
3108
  columnsAuto: false,
3116
- columns: (0, _toConsumableArray2["default"])(_this10.visibleCols)
3109
+ columns: (0, _toConsumableArray2["default"])(_this9.visibleCols)
3117
3110
  });
3118
3111
  } else {
3119
- _this10.calculateColumnsVisibility(false);
3120
- _this10.setState({
3112
+ _this9.calculateColumnsVisibility(false);
3113
+ _this9.setState({
3121
3114
  columnsAuto: false
3122
3115
  });
3123
3116
  }
@@ -3125,12 +3118,12 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3125
3118
  }
3126
3119
  }),
3127
3120
  label: this.props.t('ra_Auto (no custom columns)')
3128
- }), /*#__PURE__*/_react["default"].createElement(_List["default"], null, this._renderDefinedList(false), this.state.columnsForAdmin && Object.keys(this.state.columnsForAdmin).sort().map(function (adapter) {
3129
- return _this10.state.columnsForAdmin[adapter].map(function (column) {
3130
- return /*#__PURE__*/_react["default"].createElement(_ListItemButton["default"], {
3121
+ }), /*#__PURE__*/_react["default"].createElement(_material.List, null, this._renderDefinedList(false), this.state.columnsForAdmin && Object.keys(this.state.columnsForAdmin).sort().map(function (adapter) {
3122
+ return _this9.state.columnsForAdmin[adapter].map(function (column) {
3123
+ return /*#__PURE__*/_react["default"].createElement(_material.ListItemButton, {
3131
3124
  onClick: function onClick() {
3132
- if (!_this10.state.columnsAuto) {
3133
- var columns = (0, _toConsumableArray2["default"])(_this10.state.columns || []);
3125
+ if (!_this9.state.columnsAuto) {
3126
+ var columns = (0, _toConsumableArray2["default"])(_this9.state.columns || []);
3134
3127
  var id = "_".concat(adapter, "_").concat(column.path);
3135
3128
  var pos = columns.indexOf(id);
3136
3129
  if (pos === -1) {
@@ -3139,32 +3132,32 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3139
3132
  } else {
3140
3133
  columns.splice(pos, 1);
3141
3134
  }
3142
- _this10.calculateColumnsVisibility(null, columns);
3143
- (window._localStorage || window.localStorage).setItem("".concat(_this10.props.dialogName || 'App', ".columns"), JSON.stringify(columns));
3144
- _this10.setState({
3135
+ _this9.calculateColumnsVisibility(null, columns);
3136
+ (window._localStorage || window.localStorage).setItem("".concat(_this9.props.dialogName || 'App', ".columns"), JSON.stringify(columns));
3137
+ _this9.setState({
3145
3138
  columns: columns
3146
3139
  });
3147
3140
  }
3148
3141
  },
3149
3142
  key: "".concat(adapter, "_").concat(column.name)
3150
- }, /*#__PURE__*/_react["default"].createElement(_ListItemIcon["default"], null, /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
3151
- disabled: _this10.state.columnsAuto,
3143
+ }, /*#__PURE__*/_react["default"].createElement(_material.ListItemIcon, null, /*#__PURE__*/_react["default"].createElement(_material.Checkbox, {
3144
+ disabled: _this9.state.columnsAuto,
3152
3145
  edge: "start",
3153
- checked: !_this10.state.columnsAuto && _this10.state.columns && _this10.state.columns.includes("_".concat(adapter, "_").concat(column.path)),
3146
+ checked: !_this9.state.columnsAuto && _this9.state.columns && _this9.state.columns.includes("_".concat(adapter, "_").concat(column.path)),
3154
3147
  disableRipple: true
3155
- })), /*#__PURE__*/_react["default"].createElement(_ListItemText["default"], {
3148
+ })), /*#__PURE__*/_react["default"].createElement(_material.ListItemText, {
3156
3149
  primary: "".concat(column.name, " (").concat(adapter, ")")
3157
3150
  }));
3158
3151
  });
3159
- }), this._renderDefinedList(true))), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
3152
+ }), this._renderDefinedList(true))), /*#__PURE__*/_react["default"].createElement(_material.DialogActions, null, /*#__PURE__*/_react["default"].createElement(_material.Button, {
3160
3153
  variant: "contained",
3161
3154
  onClick: function onClick() {
3162
- return _this10.setState({
3155
+ return _this9.setState({
3163
3156
  columnsSelectorShow: false
3164
3157
  });
3165
3158
  },
3166
3159
  color: "primary",
3167
- startIcon: /*#__PURE__*/_react["default"].createElement(_Close["default"], null)
3160
+ startIcon: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Close, null)
3168
3161
  }, this.texts.close)));
3169
3162
  }
3170
3163
 
@@ -3174,12 +3167,12 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3174
3167
  }, {
3175
3168
  key: "getAdditionalColumns",
3176
3169
  value: function getAdditionalColumns() {
3177
- var _this11 = this;
3170
+ var _this10 = this;
3178
3171
  return this.props.socket.getAdapters().then(function (instances) {
3179
3172
  var columnsForAdmin = null;
3180
3173
  // find all additional columns
3181
3174
  instances.forEach(function (obj) {
3182
- return columnsForAdmin = _this11.parseObjectForAdmins(columnsForAdmin, obj);
3175
+ return columnsForAdmin = _this10.parseObjectForAdmins(columnsForAdmin, obj);
3183
3176
  });
3184
3177
  return columnsForAdmin;
3185
3178
  })["catch"](function () {
@@ -3244,7 +3237,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3244
3237
  * @param {any} obj
3245
3238
  */
3246
3239
  function parseObjectForAdmins(columnsForAdmin, obj) {
3247
- var _this12 = this;
3240
+ var _this11 = this;
3248
3241
  if (obj.common && obj.common.adminColumns && obj.common.name) {
3249
3242
  var columns = obj.common.adminColumns;
3250
3243
  if ((0, _typeof2["default"])(columns) !== 'object') {
@@ -3290,7 +3283,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3290
3283
  }
3291
3284
  return {
3292
3285
  path: item.path,
3293
- name: item.name[_this12.props.lang] || item.name.en,
3286
+ name: item.name[_this11.props.lang] || item.name.en,
3294
3287
  width: item.width,
3295
3288
  edit: !!item.edit,
3296
3289
  type: item.type,
@@ -3353,16 +3346,16 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3353
3346
  }, {
3354
3347
  key: "pauseSubscribe",
3355
3348
  value: function pauseSubscribe(isPause) {
3356
- var _this13 = this;
3349
+ var _this12 = this;
3357
3350
  if (!this.pausedSubscribes && isPause) {
3358
3351
  this.pausedSubscribes = true;
3359
3352
  this.subscribes.forEach(function (id) {
3360
- return _this13.props.socket.unsubscribeState(id, _this13.onStateChange);
3353
+ return _this12.props.socket.unsubscribeState(id, _this12.onStateChange);
3361
3354
  });
3362
3355
  } else if (this.pausedSubscribes && !isPause) {
3363
3356
  this.pausedSubscribes = false;
3364
3357
  this.subscribes.forEach(function (id) {
3365
- return _this13.props.socket.subscribeState(id, _this13.onStateChange);
3358
+ return _this12.props.socket.subscribeState(id, _this12.onStateChange);
3366
3359
  });
3367
3360
  }
3368
3361
  }
@@ -3375,14 +3368,14 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3375
3368
  }, {
3376
3369
  key: "onFilter",
3377
3370
  value: function onFilter(name, value) {
3378
- var _this14 = this;
3371
+ var _this13 = this;
3379
3372
  this.filterTimer = null;
3380
3373
  var filter = _objectSpread({}, this.state.filter);
3381
3374
  Object.keys(this.filterRefs).forEach(function (_name) {
3382
- if (_this14.filterRefs[_name] && _this14.filterRefs[_name].current) {
3383
- for (var i = 0; i < _this14.filterRefs[_name].current.children.length; i++) {
3384
- if (_this14.filterRefs[_name].current.children[i].tagName === 'INPUT') {
3385
- filter[_name] = _this14.filterRefs[_name].current.children[i].value;
3375
+ if (_this13.filterRefs[_name] && _this13.filterRefs[_name].current) {
3376
+ for (var i = 0; i < _this13.filterRefs[_name].current.children.length; i++) {
3377
+ if (_this13.filterRefs[_name].current.children[i].tagName === 'INPUT') {
3378
+ filter[_name] = _this13.filterRefs[_name].current.children[i].value;
3386
3379
  break;
3387
3380
  }
3388
3381
  }
@@ -3399,19 +3392,19 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3399
3392
  this.setState({
3400
3393
  filter: filter
3401
3394
  }, function () {
3402
- return _this14.props.onFilterChanged && _this14.props.onFilterChanged(filter);
3395
+ return _this13.props.onFilterChanged && _this13.props.onFilterChanged(filter);
3403
3396
  });
3404
3397
  }
3405
3398
  }
3406
3399
  }, {
3407
3400
  key: "clearFilter",
3408
3401
  value: function clearFilter() {
3409
- var _this15 = this;
3402
+ var _this14 = this;
3410
3403
  var filter = _objectSpread({}, this.state.filter);
3411
3404
  Object.keys(this.filterRefs).forEach(function (name) {
3412
- if (_this15.filterRefs[name] && _this15.filterRefs[name].current) {
3413
- for (var i = 0; i < _this15.filterRefs[name].current.childNodes.length; i++) {
3414
- var item = _this15.filterRefs[name].current.childNodes[i];
3405
+ if (_this14.filterRefs[name] && _this14.filterRefs[name].current) {
3406
+ for (var i = 0; i < _this14.filterRefs[name].current.childNodes.length; i++) {
3407
+ var item = _this14.filterRefs[name].current.childNodes[i];
3415
3408
  if (item.tagName === 'INPUT') {
3416
3409
  filter[name] = '';
3417
3410
  item.value = '';
@@ -3426,16 +3419,16 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3426
3419
  filter: filter,
3427
3420
  filterKey: this.state.filterKey + 1
3428
3421
  }, function () {
3429
- return _this15.props.onFilterChanged && _this15.props.onFilterChanged(filter);
3422
+ return _this14.props.onFilterChanged && _this14.props.onFilterChanged(filter);
3430
3423
  });
3431
3424
  }
3432
3425
  }
3433
3426
  }, {
3434
3427
  key: "isFilterEmpty",
3435
3428
  value: function isFilterEmpty() {
3436
- var _this16 = this;
3429
+ var _this15 = this;
3437
3430
  var someNotEmpty = Object.keys(this.state.filter).find(function (attr) {
3438
- return attr !== 'expertMode' && _this16.state.filter[attr];
3431
+ return attr !== 'expertMode' && _this15.state.filter[attr];
3439
3432
  });
3440
3433
  return !someNotEmpty;
3441
3434
  }
@@ -3447,15 +3440,15 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3447
3440
  }, {
3448
3441
  key: "getFilterInput",
3449
3442
  value: function getFilterInput(name) {
3450
- var _this17 = this,
3443
+ var _this16 = this,
3451
3444
  _this$filterRefs$name;
3452
- return /*#__PURE__*/_react["default"].createElement(_FormControl["default"], {
3445
+ return /*#__PURE__*/_react["default"].createElement(_material.FormControl, {
3453
3446
  className: _Utils["default"].clsx(this.props.classes.headerCellInput, this.props.classes.filterInput),
3454
3447
  key: "".concat(name, "_").concat(this.state.filterKey)
3455
3448
  // style={{ marginTop: 0, marginBottom: 0 }}
3456
3449
  ,
3457
3450
  margin: "dense"
3458
- }, /*#__PURE__*/_react["default"].createElement(_Input["default"], {
3451
+ }, /*#__PURE__*/_react["default"].createElement(_material.Input, {
3459
3452
  ref: this.filterRefs[name],
3460
3453
  classes: {
3461
3454
  underline: 'no-underline'
@@ -3464,9 +3457,9 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3464
3457
  placeholder: this.texts["filter_".concat(name)],
3465
3458
  defaultValue: this.state.filter[name],
3466
3459
  onChange: function onChange() {
3467
- _this17.filterTimer && clearTimeout(_this17.filterTimer);
3468
- _this17.filterTimer = setTimeout(function () {
3469
- return _this17.onFilter();
3460
+ _this16.filterTimer && clearTimeout(_this16.filterTimer);
3461
+ _this16.filterTimer = setTimeout(function () {
3462
+ return _this16.onFilter();
3470
3463
  }, 400);
3471
3464
  },
3472
3465
  autoComplete: "off"
@@ -3475,13 +3468,13 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3475
3468
  position: 'absolute',
3476
3469
  right: 0
3477
3470
  }
3478
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
3471
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
3479
3472
  size: "small",
3480
3473
  onClick: function onClick() {
3481
- _this17.filterRefs[name].current.firstChild.value = '';
3482
- _this17.onFilter(name, '');
3474
+ _this16.filterRefs[name].current.firstChild.value = '';
3475
+ _this16.onFilter(name, '');
3483
3476
  }
3484
- }, /*#__PURE__*/_react["default"].createElement(_Close["default"], null))) : null);
3477
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Close, null))) : null);
3485
3478
  }
3486
3479
 
3487
3480
  /**
@@ -3492,7 +3485,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3492
3485
  }, {
3493
3486
  key: "getFilterSelect",
3494
3487
  value: function getFilterSelect(name, values) {
3495
- var _this18 = this,
3488
+ var _this17 = this,
3496
3489
  _this$filterRefs$name2;
3497
3490
  var hasIcons = !!values.find(function (item) {
3498
3491
  return item.icon;
@@ -3501,15 +3494,15 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3501
3494
  style: {
3502
3495
  position: 'relative'
3503
3496
  }
3504
- }, /*#__PURE__*/_react["default"].createElement(_Select["default"], {
3497
+ }, /*#__PURE__*/_react["default"].createElement(_material.Select, {
3505
3498
  variant: "standard",
3506
3499
  key: "".concat(name, "_").concat(this.state.filterKey),
3507
3500
  ref: this.filterRefs[name],
3508
3501
  className: "".concat(this.props.classes.headerCellInput, " no-underline"),
3509
3502
  onChange: function onChange() {
3510
- _this18.filterTimer && clearTimeout(_this18.filterTimer);
3511
- _this18.filterTimer = setTimeout(function () {
3512
- return _this18.onFilter();
3503
+ _this17.filterTimer && clearTimeout(_this17.filterTimer);
3504
+ _this17.filterTimer = setTimeout(function () {
3505
+ return _this17.onFilter();
3513
3506
  }, 400);
3514
3507
  },
3515
3508
  defaultValue: this.state.filter[name] || '',
@@ -3518,7 +3511,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3518
3511
  id: name
3519
3512
  },
3520
3513
  displayEmpty: true
3521
- }, /*#__PURE__*/_react["default"].createElement(_MenuItem["default"], {
3514
+ }, /*#__PURE__*/_react["default"].createElement(_material.MenuItem, {
3522
3515
  key: "empty",
3523
3516
  value: ""
3524
3517
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -3535,8 +3528,8 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3535
3528
  id = item;
3536
3529
  _name = item;
3537
3530
  }
3538
- return /*#__PURE__*/_react["default"].createElement(_MenuItem["default"], {
3539
- className: _this18.props.classes.headerCellSelectItem,
3531
+ return /*#__PURE__*/_react["default"].createElement(_material.MenuItem, {
3532
+ className: _this17.props.classes.headerCellSelectItem,
3540
3533
  key: id,
3541
3534
  value: id
3542
3535
  }, icon || (hasIcons ? /*#__PURE__*/_react["default"].createElement("div", {
@@ -3544,21 +3537,21 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3544
3537
  }) : null), _name);
3545
3538
  })), (_this$filterRefs$name2 = this.filterRefs[name]) !== null && _this$filterRefs$name2 !== void 0 && (_this$filterRefs$name2 = _this$filterRefs$name2.current) !== null && _this$filterRefs$name2 !== void 0 && (_this$filterRefs$name2 = _this$filterRefs$name2.childNodes[1]) !== null && _this$filterRefs$name2 !== void 0 && _this$filterRefs$name2.value ? /*#__PURE__*/_react["default"].createElement("div", {
3546
3539
  className: _Utils["default"].clsx(this.props.classes.selectClearButton)
3547
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
3540
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
3548
3541
  size: "small",
3549
3542
  onClick: function onClick() {
3550
- var newFilter = _objectSpread({}, _this18.state.filter);
3543
+ var newFilter = _objectSpread({}, _this17.state.filter);
3551
3544
  newFilter[name] = '';
3552
- _this18.filterRefs[name].current.childNodes[1].value = '';
3553
- (window._localStorage || window.localStorage).setItem("".concat(_this18.props.dialogName || 'App', ".objectFilter"), JSON.stringify(newFilter));
3554
- _this18.setState({
3545
+ _this17.filterRefs[name].current.childNodes[1].value = '';
3546
+ (window._localStorage || window.localStorage).setItem("".concat(_this17.props.dialogName || 'App', ".objectFilter"), JSON.stringify(newFilter));
3547
+ _this17.setState({
3555
3548
  filter: newFilter,
3556
- filterKey: _this18.state.filterKey + 1
3549
+ filterKey: _this17.state.filterKey + 1
3557
3550
  }, function () {
3558
- return _this18.props.onFilterChanged && _this18.props.onFilterChanged(newFilter);
3551
+ return _this17.props.onFilterChanged && _this17.props.onFilterChanged(newFilter);
3559
3552
  });
3560
3553
  }
3561
- }, /*#__PURE__*/_react["default"].createElement(_Close["default"], null))) : null);
3554
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Close, null))) : null);
3562
3555
  }
3563
3556
 
3564
3557
  /**
@@ -3576,15 +3569,15 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3576
3569
  }, {
3577
3570
  key: "getFilterSelectRoom",
3578
3571
  value: function getFilterSelectRoom() {
3579
- var _this19 = this;
3572
+ var _this18 = this;
3580
3573
  var rooms = this.info.roomEnums.map(function (id) {
3581
- var _this19$objects$id, _this19$objects$id2;
3574
+ var _this18$objects$id, _this18$objects$id2;
3582
3575
  return {
3583
- name: getName(((_this19$objects$id = _this19.objects[id]) === null || _this19$objects$id === void 0 || (_this19$objects$id = _this19$objects$id.common) === null || _this19$objects$id === void 0 ? void 0 : _this19$objects$id.name) || id.split('.').pop()),
3576
+ name: getName(((_this18$objects$id = _this18.objects[id]) === null || _this18$objects$id === void 0 || (_this18$objects$id = _this18$objects$id.common) === null || _this18$objects$id === void 0 ? void 0 : _this18$objects$id.name) || id.split('.').pop()),
3584
3577
  value: id,
3585
3578
  icon: /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
3586
- src: ((_this19$objects$id2 = _this19.objects[id]) === null || _this19$objects$id2 === void 0 || (_this19$objects$id2 = _this19$objects$id2.common) === null || _this19$objects$id2 === void 0 ? void 0 : _this19$objects$id2.icon) || '',
3587
- className: _this19.props.classes.selectIcon
3579
+ src: ((_this18$objects$id2 = _this18.objects[id]) === null || _this18$objects$id2 === void 0 || (_this18$objects$id2 = _this18$objects$id2.common) === null || _this18$objects$id2 === void 0 ? void 0 : _this18$objects$id2.icon) || '',
3580
+ className: _this18.props.classes.selectIcon
3588
3581
  })
3589
3582
  };
3590
3583
  });
@@ -3597,15 +3590,15 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3597
3590
  }, {
3598
3591
  key: "getFilterSelectFunction",
3599
3592
  value: function getFilterSelectFunction() {
3600
- var _this20 = this;
3593
+ var _this19 = this;
3601
3594
  var func = this.info.funcEnums.map(function (id) {
3602
- var _this20$objects$id;
3595
+ var _this19$objects$id;
3603
3596
  return {
3604
- name: getName(_this20.objects[id] && _this20.objects[id].common && _this20.objects[id].common.name || id.split('.').pop()),
3597
+ name: getName(_this19.objects[id] && _this19.objects[id].common && _this19.objects[id].common.name || id.split('.').pop()),
3605
3598
  value: id,
3606
3599
  icon: /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
3607
- src: ((_this20$objects$id = _this20.objects[id]) === null || _this20$objects$id === void 0 || (_this20$objects$id = _this20$objects$id.common) === null || _this20$objects$id === void 0 ? void 0 : _this20$objects$id.icon) || '',
3608
- className: _this20.props.classes.selectIcon
3600
+ src: ((_this19$objects$id = _this19.objects[id]) === null || _this19$objects$id === void 0 || (_this19$objects$id = _this19$objects$id.common) === null || _this19$objects$id === void 0 ? void 0 : _this19$objects$id.icon) || '',
3601
+ className: _this19.props.classes.selectIcon
3609
3602
  })
3610
3603
  };
3611
3604
  });
@@ -3634,15 +3627,15 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3634
3627
  }, {
3635
3628
  key: "getFilterSelectCustoms",
3636
3629
  value: function getFilterSelectCustoms() {
3637
- var _this21 = this;
3630
+ var _this20 = this;
3638
3631
  if (this.info.customs.length > 1) {
3639
3632
  var customs = this.info.customs.map(function (id) {
3640
3633
  return {
3641
- name: id === '_' ? _this21.texts.filterCustomsWithout : id,
3634
+ name: id === '_' ? _this20.texts.filterCustomsWithout : id,
3642
3635
  value: id,
3643
3636
  icon: id === '_' ? null : /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
3644
- src: getSelectIdIcon(_this21.objects, id, _this21.imagePrefix) || '',
3645
- className: _this21.props.classes.selectIcon
3637
+ src: getSelectIdIcon(_this20.objects, id, _this20.imagePrefix) || '',
3638
+ className: _this20.props.classes.selectIcon
3646
3639
  })
3647
3640
  };
3648
3641
  });
@@ -3659,13 +3652,13 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3659
3652
  }, {
3660
3653
  key: "onExpandAll",
3661
3654
  value: function onExpandAll(root, expanded) {
3662
- var _this22 = this;
3655
+ var _this21 = this;
3663
3656
  root = root || this.root;
3664
3657
  expanded = expanded || [];
3665
3658
  root.children && root.children.forEach(function (item) {
3666
3659
  if (item.data.sumVisibility) {
3667
3660
  expanded.push(item.data.id);
3668
- _this22.onExpandAll(item, expanded);
3661
+ _this21.onExpandAll(item, expanded);
3669
3662
  }
3670
3663
  });
3671
3664
  if (root === this.root) {
@@ -3683,7 +3676,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3683
3676
  }, {
3684
3677
  key: "onCollapseAll",
3685
3678
  value: function onCollapseAll() {
3686
- var _this23 = this;
3679
+ var _this22 = this;
3687
3680
  (window._localStorage || window.localStorage).setItem("".concat(this.props.dialogName || 'App', ".objectExpanded"), JSON.stringify([]));
3688
3681
  (window._localStorage || window.localStorage).setItem("".concat(this.props.dialogName || 'App', ".objectSelected"), '[]');
3689
3682
  this.setState({
@@ -3691,7 +3684,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3691
3684
  depth: 0,
3692
3685
  selected: []
3693
3686
  }, function () {
3694
- return _this23.onAfterSelect();
3687
+ return _this22.onAfterSelect();
3695
3688
  });
3696
3689
  }
3697
3690
 
@@ -3704,7 +3697,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3704
3697
  }, {
3705
3698
  key: "expandDepth",
3706
3699
  value: function expandDepth(root, depth, expanded) {
3707
- var _this24 = this;
3700
+ var _this23 = this;
3708
3701
  root = root || this.root;
3709
3702
  if (depth > 0) {
3710
3703
  if (root.children) {
@@ -3715,7 +3708,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3715
3708
  expanded.sort();
3716
3709
  }
3717
3710
  if (depth - 1 > 0) {
3718
- _this24.expandDepth(item, depth - 1, expanded);
3711
+ _this23.expandDepth(item, depth - 1, expanded);
3719
3712
  }
3720
3713
  }
3721
3714
  });
@@ -3802,17 +3795,17 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3802
3795
  }, {
3803
3796
  key: "_exportObjects",
3804
3797
  value: function _exportObjects(isAll) {
3805
- var _this25 = this;
3798
+ var _this24 = this;
3806
3799
  if (isAll) {
3807
3800
  generateFile('allObjects.json', this.objects);
3808
3801
  } else if (this.state.selected.length || this.state.selectedNonObject) {
3809
3802
  var result = {};
3810
3803
  var id = this.state.selected[0] || this.state.selectedNonObject;
3811
3804
  this._getSelectedIdsForExport().forEach(function (key) {
3812
- result[key] = JSON.parse(JSON.stringify(_this25.objects[key]));
3805
+ result[key] = JSON.parse(JSON.stringify(_this24.objects[key]));
3813
3806
  // add enum information
3814
3807
  if (result[key].common) {
3815
- var enums = _this25.getEnumsForId(key);
3808
+ var enums = _this24.getEnumsForId(key);
3816
3809
  if (enums) {
3817
3810
  result[key].common.enums = enums;
3818
3811
  }
@@ -3826,42 +3819,42 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3826
3819
  }, {
3827
3820
  key: "renderExportDialog",
3828
3821
  value: function renderExportDialog() {
3829
- var _this26 = this;
3822
+ var _this25 = this;
3830
3823
  if (this.state.showExportDialog === false) {
3831
3824
  return null;
3832
3825
  }
3833
- return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
3826
+ return /*#__PURE__*/_react["default"].createElement(_material.Dialog, {
3834
3827
  open: !0
3835
- }, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], null, this.props.t('Select type of export')), /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], null, /*#__PURE__*/_react["default"].createElement(_DialogContentText["default"], null, this.props.t('You can export all objects or just the selected branch.'), /*#__PURE__*/_react["default"].createElement("br", null), this.props.t('Selected %s object(s)', this.state.showExportDialog))), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
3828
+ }, /*#__PURE__*/_react["default"].createElement(_material.DialogTitle, null, this.props.t('Select type of export')), /*#__PURE__*/_react["default"].createElement(_material.DialogContent, null, /*#__PURE__*/_react["default"].createElement(_material.DialogContentText, null, this.props.t('You can export all objects or just the selected branch.'), /*#__PURE__*/_react["default"].createElement("br", null), this.props.t('Selected %s object(s)', this.state.showExportDialog))), /*#__PURE__*/_react["default"].createElement(_material.DialogActions, null, /*#__PURE__*/_react["default"].createElement(_material.Button, {
3836
3829
  color: "grey",
3837
3830
  variant: "outlined",
3838
3831
  onClick: function onClick() {
3839
- return _this26.setState({
3832
+ return _this25.setState({
3840
3833
  showExportDialog: false
3841
3834
  }, function () {
3842
- return _this26._exportObjects(true);
3835
+ return _this25._exportObjects(true);
3843
3836
  });
3844
3837
  }
3845
- }, this.props.t('ra_All objects'), " (", Object.keys(this.objects).length, ")"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
3838
+ }, this.props.t('ra_All objects'), " (", Object.keys(this.objects).length, ")"), /*#__PURE__*/_react["default"].createElement(_material.Button, {
3846
3839
  color: "primary",
3847
3840
  variant: "contained",
3848
3841
  autoFocus: true,
3849
3842
  onClick: function onClick() {
3850
- return _this26.setState({
3843
+ return _this25.setState({
3851
3844
  showExportDialog: false
3852
3845
  }, function () {
3853
- return _this26._exportObjects(false);
3846
+ return _this25._exportObjects(false);
3854
3847
  });
3855
3848
  }
3856
- }, this.props.t('ra_Only selected'), " (", this.state.showExportDialog, ")"), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
3849
+ }, this.props.t('ra_Only selected'), " (", this.state.showExportDialog, ")"), /*#__PURE__*/_react["default"].createElement(_material.Button, {
3857
3850
  color: "grey",
3858
3851
  variant: "contained",
3859
3852
  onClick: function onClick() {
3860
- return _this26.setState({
3853
+ return _this25.setState({
3861
3854
  showExportDialog: false
3862
3855
  });
3863
3856
  },
3864
- startIcon: /*#__PURE__*/_react["default"].createElement(_Close["default"], null)
3857
+ startIcon: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Close, null)
3865
3858
  }, this.props.t('ra_Cancel'))));
3866
3859
  }
3867
3860
  }, {
@@ -3872,7 +3865,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3872
3865
  * @returns {JSX.Element}
3873
3866
  */
3874
3867
  function getToolbar() {
3875
- var _this27 = this;
3868
+ var _this26 = this;
3876
3869
  var allowObjectCreation = false;
3877
3870
  if (this.state.selected.length || this.state.selectedNonObject) {
3878
3871
  var id = this.state.selected[0] || this.state.selectedNonObject;
@@ -3896,165 +3889,165 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
3896
3889
  width: '100%',
3897
3890
  alignItems: 'center'
3898
3891
  }
3899
- }, /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
3892
+ }, /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
3900
3893
  title: this.props.t('ra_Refresh tree'),
3901
3894
  classes: {
3902
3895
  popper: this.props.classes.tooltip
3903
3896
  }
3904
- }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
3897
+ }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
3905
3898
  onClick: function onClick() {
3906
- return _this27.refreshComponent();
3899
+ return _this26.refreshComponent();
3907
3900
  },
3908
3901
  disabled: this.state.updating,
3909
3902
  size: "large"
3910
- }, /*#__PURE__*/_react["default"].createElement(_Refresh["default"], null)))), this.props.showExpertButton && !this.props.expertMode && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
3903
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Refresh, null)))), this.props.showExpertButton && !this.props.expertMode && /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
3911
3904
  title: this.props.t('ra_expertMode'),
3912
3905
  classes: {
3913
3906
  popper: this.props.classes.tooltip
3914
3907
  }
3915
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
3908
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
3916
3909
  key: "expertMode",
3917
3910
  color: this.state.filter.expertMode ? 'secondary' : 'default',
3918
3911
  onClick: function onClick() {
3919
- return _this27.onFilter('expertMode', !_this27.state.filter.expertMode);
3912
+ return _this26.onFilter('expertMode', !_this26.state.filter.expertMode);
3920
3913
  },
3921
3914
  size: "large"
3922
- }, /*#__PURE__*/_react["default"].createElement(_IconExpert["default"], null))), !this.props.disableColumnSelector && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
3915
+ }, /*#__PURE__*/_react["default"].createElement(_IconExpert["default"], null))), !this.props.disableColumnSelector && /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
3923
3916
  title: this.props.t('ra_Configure'),
3924
3917
  classes: {
3925
3918
  popper: this.props.classes.tooltip
3926
3919
  }
3927
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
3920
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
3928
3921
  key: "columnSelector",
3929
3922
  color: this.state.columnsAuto ? 'primary' : 'default',
3930
3923
  onClick: function onClick() {
3931
- return _this27.setState({
3924
+ return _this26.setState({
3932
3925
  columnsSelectorShow: true
3933
3926
  });
3934
3927
  },
3935
3928
  size: "large"
3936
- }, /*#__PURE__*/_react["default"].createElement(_ViewColumn["default"], null))), this.state.expandAllVisible && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
3929
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.ViewColumn, null))), this.state.expandAllVisible && /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
3937
3930
  title: this.props.t('ra_Expand all nodes'),
3938
3931
  classes: {
3939
3932
  popper: this.props.classes.tooltip
3940
3933
  }
3941
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
3934
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
3942
3935
  key: "expandAll",
3943
3936
  onClick: function onClick() {
3944
- return _this27.onExpandAll();
3937
+ return _this26.onExpandAll();
3945
3938
  },
3946
3939
  size: "large"
3947
- }, /*#__PURE__*/_react["default"].createElement(_IconOpen["default"], null))), /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
3940
+ }, /*#__PURE__*/_react["default"].createElement(_IconOpen["default"], null))), /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
3948
3941
  title: this.props.t('ra_Collapse all nodes'),
3949
3942
  classes: {
3950
3943
  popper: this.props.classes.tooltip
3951
3944
  }
3952
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
3945
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
3953
3946
  key: "collapseAll",
3954
3947
  onClick: function onClick() {
3955
- return _this27.onCollapseAll();
3948
+ return _this26.onCollapseAll();
3956
3949
  },
3957
3950
  size: "large"
3958
- }, /*#__PURE__*/_react["default"].createElement(_IconClosed["default"], null))), /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
3951
+ }, /*#__PURE__*/_react["default"].createElement(_IconClosed["default"], null))), /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
3959
3952
  title: this.props.t('ra_Expand one step node'),
3960
3953
  classes: {
3961
3954
  popper: this.props.classes.tooltip
3962
3955
  }
3963
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
3956
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
3964
3957
  key: "expandVisible",
3965
3958
  color: "primary",
3966
3959
  onClick: function onClick() {
3967
- return _this27.onExpandVisible();
3960
+ return _this26.onExpandVisible();
3968
3961
  },
3969
3962
  size: "large"
3970
3963
  }, /*#__PURE__*/_react["default"].createElement(StyledBadge, {
3971
3964
  badgeContent: this.state.depth,
3972
3965
  color: "secondary"
3973
- }, /*#__PURE__*/_react["default"].createElement(_IconOpen["default"], null)))), /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
3966
+ }, /*#__PURE__*/_react["default"].createElement(_IconOpen["default"], null)))), /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
3974
3967
  title: this.props.t('ra_Collapse one step node'),
3975
3968
  classes: {
3976
3969
  popper: this.props.classes.tooltip
3977
3970
  }
3978
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
3971
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
3979
3972
  key: "collapseVisible",
3980
3973
  color: "primary",
3981
3974
  onClick: function onClick() {
3982
- return _this27.onCollapseVisible();
3975
+ return _this26.onCollapseVisible();
3983
3976
  },
3984
3977
  size: "large"
3985
3978
  }, /*#__PURE__*/_react["default"].createElement(StyledBadge, {
3986
3979
  badgeContent: this.state.depth,
3987
3980
  color: "secondary"
3988
- }, /*#__PURE__*/_react["default"].createElement(_IconClosed["default"], null)))), this.props.objectStatesView && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
3981
+ }, /*#__PURE__*/_react["default"].createElement(_IconClosed["default"], null)))), this.props.objectStatesView && /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
3989
3982
  title: this.props.t('ra_Toggle the states view'),
3990
3983
  classes: {
3991
3984
  popper: this.props.classes.tooltip
3992
3985
  }
3993
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
3986
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
3994
3987
  onClick: function onClick() {
3995
- return _this27.onStatesViewVisible();
3988
+ return _this26.onStatesViewVisible();
3996
3989
  },
3997
3990
  size: "large"
3998
- }, /*#__PURE__*/_react["default"].createElement(_LooksOne["default"], {
3991
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.LooksOne, {
3999
3992
  color: this.state.statesView ? 'primary' : 'inherit'
4000
- }))), /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
3993
+ }))), /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
4001
3994
  title: this.props.t('ra_Show/Hide object descriptions'),
4002
3995
  classes: {
4003
3996
  popper: this.props.classes.tooltip
4004
3997
  }
4005
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
3998
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
4006
3999
  onClick: function onClick() {
4007
- (window._localStorage || window.localStorage).setItem("".concat(_this27.props.dialogName || 'App', ".desc"), _this27.state.showDescription ? 'false' : 'true');
4008
- _this27.setState({
4009
- showDescription: !_this27.state.showDescription
4000
+ (window._localStorage || window.localStorage).setItem("".concat(_this26.props.dialogName || 'App', ".desc"), _this26.state.showDescription ? 'false' : 'true');
4001
+ _this26.setState({
4002
+ showDescription: !_this26.state.showDescription
4010
4003
  });
4011
4004
  },
4012
4005
  size: "large"
4013
- }, /*#__PURE__*/_react["default"].createElement(_TextFields["default"], {
4006
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.TextFields, {
4014
4007
  color: this.state.showDescription ? 'primary' : 'inherit'
4015
- }))), this.props.objectAddBoolean ? /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
4008
+ }))), this.props.objectAddBoolean ? /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
4016
4009
  title: this.toolTipObjectCreating(),
4017
4010
  classes: {
4018
4011
  popper: this.props.classes.tooltip
4019
4012
  }
4020
- }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
4013
+ }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
4021
4014
  disabled: !allowObjectCreation,
4022
4015
  onClick: function onClick() {
4023
- return _this27.setState({
4016
+ return _this26.setState({
4024
4017
  modalNewObj: true
4025
4018
  });
4026
4019
  },
4027
4020
  size: "large"
4028
- }, /*#__PURE__*/_react["default"].createElement(_Add["default"], null)))) : null, this.props.objectImportExport && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
4021
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Add, null)))) : null, this.props.objectImportExport && /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
4029
4022
  title: this.props.t('ra_Add objects tree from JSON file'),
4030
4023
  classes: {
4031
4024
  popper: this.props.classes.tooltip
4032
4025
  }
4033
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
4026
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
4034
4027
  onClick: function onClick() {
4035
4028
  var input = document.createElement('input');
4036
4029
  input.setAttribute('type', 'file');
4037
4030
  input.setAttribute('id', 'files');
4038
4031
  input.setAttribute('opacity', 0);
4039
4032
  input.addEventListener('change', function (e) {
4040
- return _this27.handleJsonUpload(e);
4033
+ return _this26.handleJsonUpload(e);
4041
4034
  }, false);
4042
4035
  input.click();
4043
4036
  },
4044
4037
  size: "large"
4045
- }, /*#__PURE__*/_react["default"].createElement(_Publish["default"], null))), this.props.objectImportExport && (!!this.state.selected.length || this.state.selectedNonObject) && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
4038
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Publish, null))), this.props.objectImportExport && (!!this.state.selected.length || this.state.selectedNonObject) && /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
4046
4039
  title: this.props.t('ra_Save objects tree as JSON file'),
4047
4040
  classes: {
4048
4041
  popper: this.props.classes.tooltip
4049
4042
  }
4050
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
4043
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
4051
4044
  onClick: function onClick() {
4052
- return _this27.setState({
4053
- showExportDialog: _this27._getSelectedIdsForExport().length
4045
+ return _this26.setState({
4046
+ showExportDialog: _this26._getSelectedIdsForExport().length
4054
4047
  });
4055
4048
  },
4056
4049
  size: "large"
4057
- }, /*#__PURE__*/_react["default"].createElement(_Publish["default"], {
4050
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Publish, {
4058
4051
  style: {
4059
4052
  transform: 'rotate(180deg)'
4060
4053
  }
@@ -4064,33 +4057,33 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4064
4057
  whiteSpace: 'nowrap'
4065
4058
  }
4066
4059
  }, "".concat(this.props.t('ra_Objects'), ": ").concat(Object.keys(this.info.objects).length, ", ").concat(this.props.t('ra_States'), ": ").concat(Object.keys(this.info.objects).filter(function (el) {
4067
- return _this27.info.objects[el].type === 'state';
4068
- }).length)), this.props.objectEditBoolean && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
4060
+ return _this26.info.objects[el].type === 'state';
4061
+ }).length)), this.props.objectEditBoolean && /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
4069
4062
  title: this.props.t('ra_Edit custom config'),
4070
4063
  classes: {
4071
4064
  popper: this.props.classes.tooltip
4072
4065
  }
4073
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
4066
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
4074
4067
  onClick: function onClick() {
4075
4068
  // get all visible states
4076
- var ids = getVisibleItems(_this27.root, 'state', _this27.objects);
4069
+ var ids = getVisibleItems(_this26.root, 'state', _this26.objects);
4077
4070
  if (ids.length) {
4078
- _this27.pauseSubscribe(true);
4071
+ _this26.pauseSubscribe(true);
4079
4072
  if (ids.length === 1) {
4080
- (window._localStorage || window.localStorage).setItem("".concat(_this27.props.dialogName || 'App', ".objectSelected"), _this27.state.selected[0]);
4081
- _this27.props.router && _this27.props.router.doNavigate(null, 'custom', _this27.state.selected[0]);
4073
+ (window._localStorage || window.localStorage).setItem("".concat(_this26.props.dialogName || 'App', ".objectSelected"), _this26.state.selected[0]);
4074
+ _this26.props.router && _this26.props.router.doNavigate(null, 'custom', _this26.state.selected[0]);
4082
4075
  }
4083
- _this27.setState({
4076
+ _this26.setState({
4084
4077
  customDialog: ids
4085
4078
  });
4086
4079
  } else {
4087
- _this27.setState({
4088
- toast: _this27.props.t('ra_please select object')
4080
+ _this26.setState({
4081
+ toast: _this26.props.t('ra_please select object')
4089
4082
  });
4090
4083
  }
4091
4084
  },
4092
4085
  size: "large"
4093
- }, /*#__PURE__*/_react["default"].createElement(_Build["default"], null))));
4086
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Build, null))));
4094
4087
  }
4095
4088
 
4096
4089
  /**
@@ -4144,30 +4137,30 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4144
4137
  * @param {{ cellButtonsButton: string | undefined; cellButtonsButtonAlone: any; cellButtonsButtonIcon: string | undefined; cellButtonsButtonWithCustoms: any; }} classes
4145
4138
  */
4146
4139
  function renderColumnButtons(id, item, classes) {
4147
- var _this28 = this,
4140
+ var _this27 = this,
4148
4141
  _item$children2,
4149
4142
  _item$data$obj$common,
4150
4143
  _item$data$obj$common3;
4151
4144
  if (!item.data.obj) {
4152
4145
  return this.props.onObjectDelete || this.props.objectEditOfAccessControl ? /*#__PURE__*/_react["default"].createElement("div", {
4153
4146
  className: classes.buttonDiv
4154
- }, this.state.filter.expertMode && this.props.objectEditOfAccessControl ? /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
4147
+ }, this.state.filter.expertMode && this.props.objectEditOfAccessControl ? /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
4155
4148
  className: _Utils["default"].clsx(classes.cellButtonsButton, classes.cellButtonsEmptyButton, classes.cellButtonMinWidth),
4156
4149
  onClick: function onClick() {
4157
- return _this28.setState({
4150
+ return _this27.setState({
4158
4151
  modalEditOfAccess: true,
4159
4152
  modalEditOfAccessObjData: item.data
4160
4153
  });
4161
4154
  },
4162
4155
  size: "large"
4163
- }, "---") : null, this.props.onObjectDelete && item.children && item.children.length ? /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
4156
+ }, "---") : null, this.props.onObjectDelete && item.children && item.children.length ? /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
4164
4157
  className: _Utils["default"].clsx(classes.cellButtonsButton, classes.cellButtonsButtonAlone),
4165
4158
  size: "small",
4166
4159
  "aria-label": "delete",
4167
4160
  title: this.texts.deleteObject,
4168
4161
  onClick: function onClick() {
4169
4162
  // calculate number of children
4170
- var keys = Object.keys(_this28.objects);
4163
+ var keys = Object.keys(_this27.objects);
4171
4164
  keys.sort();
4172
4165
  var count = 0;
4173
4166
  var start = "".concat(id, ".");
@@ -4178,25 +4171,25 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4178
4171
  break;
4179
4172
  }
4180
4173
  }
4181
- _this28.props.onObjectDelete(id, !!(item.children && item.children.length), false, count + 1);
4174
+ _this27.props.onObjectDelete(id, !!(item.children && item.children.length), false, count + 1);
4182
4175
  }
4183
- }, /*#__PURE__*/_react["default"].createElement(_Delete["default"], {
4176
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Delete, {
4184
4177
  className: classes.cellButtonsButtonIcon
4185
4178
  })) : null) : null;
4186
4179
  }
4187
4180
  item.data.aclTooltip = item.data.aclTooltip || this.renderTooltipAccessControl(item.data.obj.acl);
4188
4181
  var acl = item.data.obj.acl ? item.data.obj.type === 'state' ? item.data.obj.acl.state : item.data.obj.acl.object : 0;
4189
4182
  var aclSystemConfig = item.data.obj.acl && (item.data.obj.type === 'state' ? this.systemConfig.common.defaultNewAcl.state : this.systemConfig.common.defaultNewAcl.object);
4190
- return [this.state.filter.expertMode && this.props.objectEditOfAccessControl ? /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
4183
+ return [this.state.filter.expertMode && this.props.objectEditOfAccessControl ? /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
4191
4184
  key: "acl",
4192
4185
  title: item.data.aclTooltip,
4193
4186
  classes: {
4194
4187
  popper: this.props.classes.tooltip
4195
4188
  }
4196
- }, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
4189
+ }, /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
4197
4190
  className: classes.cellButtonMinWidth,
4198
4191
  onClick: function onClick() {
4199
- return _this28.setState({
4192
+ return _this27.setState({
4200
4193
  modalEditOfAccess: true,
4201
4194
  modalEditOfAccessObjData: item.data
4202
4195
  });
@@ -4207,28 +4200,28 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4207
4200
  }, Number.isNaN(Number(acl)) ? Number(aclSystemConfig).toString(16) : Number(acl).toString(16)))) : /*#__PURE__*/_react["default"].createElement("div", {
4208
4201
  key: "aclEmpty",
4209
4202
  className: classes.cellButtonMinWidth
4210
- }), /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
4203
+ }), /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
4211
4204
  key: "edit",
4212
4205
  className: classes.cellButtonsButton,
4213
4206
  size: "small",
4214
4207
  "aria-label": "edit",
4215
4208
  title: this.texts.editObject,
4216
4209
  onClick: function onClick() {
4217
- (window._localStorage || window.localStorage).setItem("".concat(_this28.props.dialogName || 'App', ".objectSelected"), id);
4218
- _this28.setState({
4210
+ (window._localStorage || window.localStorage).setItem("".concat(_this27.props.dialogName || 'App', ".objectSelected"), id);
4211
+ _this27.setState({
4219
4212
  editObjectDialog: id
4220
4213
  });
4221
4214
  }
4222
- }, /*#__PURE__*/_react["default"].createElement(_Edit["default"], {
4215
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Edit, {
4223
4216
  className: classes.cellButtonsButtonIcon
4224
- })), this.props.onObjectDelete && ((_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length || !((_item$data$obj$common = item.data.obj.common) !== null && _item$data$obj$common !== void 0 && _item$data$obj$common.dontDelete)) ? /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
4217
+ })), this.props.onObjectDelete && ((_item$children2 = item.children) !== null && _item$children2 !== void 0 && _item$children2.length || !((_item$data$obj$common = item.data.obj.common) !== null && _item$data$obj$common !== void 0 && _item$data$obj$common.dontDelete)) ? /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
4225
4218
  key: "delete",
4226
4219
  className: classes.cellButtonsButton,
4227
4220
  size: "small",
4228
4221
  "aria-label": "delete",
4229
4222
  onClick: function onClick() {
4230
4223
  var _item$children3, _item$data$obj$common2;
4231
- var keys = Object.keys(_this28.objects);
4224
+ var keys = Object.keys(_this27.objects);
4232
4225
  keys.sort();
4233
4226
  var count = 0;
4234
4227
  var start = "".concat(id, ".");
@@ -4239,26 +4232,26 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4239
4232
  break;
4240
4233
  }
4241
4234
  }
4242
- _this28.props.onObjectDelete(id, !!((_item$children3 = item.children) !== null && _item$children3 !== void 0 && _item$children3.length), !((_item$data$obj$common2 = item.data.obj.common) !== null && _item$data$obj$common2 !== void 0 && _item$data$obj$common2.dontDelete), count);
4235
+ _this27.props.onObjectDelete(id, !!((_item$children3 = item.children) !== null && _item$children3 !== void 0 && _item$children3.length), !((_item$data$obj$common2 = item.data.obj.common) !== null && _item$data$obj$common2 !== void 0 && _item$data$obj$common2.dontDelete), count);
4243
4236
  },
4244
4237
  title: this.texts.deleteObject
4245
- }, /*#__PURE__*/_react["default"].createElement(_Delete["default"], {
4238
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Delete, {
4246
4239
  className: classes.cellButtonsButtonIcon
4247
- })) : null, this.props.objectCustomDialog && this.info.hasSomeCustoms && item.data.obj.type === 'state' && ((_item$data$obj$common3 = item.data.obj.common) === null || _item$data$obj$common3 === void 0 ? void 0 : _item$data$obj$common3.type) !== 'file' ? /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
4240
+ })) : null, this.props.objectCustomDialog && this.info.hasSomeCustoms && item.data.obj.type === 'state' && ((_item$data$obj$common3 = item.data.obj.common) === null || _item$data$obj$common3 === void 0 ? void 0 : _item$data$obj$common3.type) !== 'file' ? /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
4248
4241
  className: _Utils["default"].clsx(classes.cellButtonsButton, item.data.hasCustoms ? classes.cellButtonsButtonWithCustoms : classes.cellButtonsButtonWithoutCustoms),
4249
4242
  key: "custom",
4250
4243
  size: "small",
4251
4244
  "aria-label": "config",
4252
4245
  title: this.texts.customConfig,
4253
4246
  onClick: function onClick() {
4254
- (window._localStorage || window.localStorage).setItem("".concat(_this28.props.dialogName || 'App', ".objectSelected"), id);
4255
- _this28.pauseSubscribe(true);
4256
- _this28.props.router && _this28.props.router.doNavigate(null, 'customs', id);
4257
- _this28.setState({
4247
+ (window._localStorage || window.localStorage).setItem("".concat(_this27.props.dialogName || 'App', ".objectSelected"), id);
4248
+ _this27.pauseSubscribe(true);
4249
+ _this27.props.router && _this27.props.router.doNavigate(null, 'customs', id);
4250
+ _this27.setState({
4258
4251
  customDialog: [id]
4259
4252
  });
4260
4253
  }
4261
- }, /*#__PURE__*/_react["default"].createElement(_Settings["default"], {
4254
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Settings, {
4262
4255
  className: classes.cellButtonsButtonIcon
4263
4256
  })) : null];
4264
4257
  }
@@ -4328,7 +4321,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4328
4321
  key: "renderColumnValue",
4329
4322
  value: function renderColumnValue(id, item, classes) {
4330
4323
  var _obj$common4,
4331
- _this29 = this;
4324
+ _this28 = this;
4332
4325
  var obj = item.data.obj;
4333
4326
  if (!obj || !this.states) {
4334
4327
  return null;
@@ -4352,10 +4345,16 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4352
4345
  var state = this.states[id];
4353
4346
  var info = item.data.state;
4354
4347
  if (!info) {
4355
- item.data.state = item.data.state || formatValue(id, state, obj, this.texts, this.props.dateFormat, this.props.isFloatComma);
4348
+ item.data.state = formatValue({
4349
+ state: state,
4350
+ obj: obj,
4351
+ texts: this.texts,
4352
+ dateFormat: this.props.dateFormat,
4353
+ isFloatComma: this.props.isFloatComma
4354
+ });
4356
4355
  info = item.data.state;
4357
4356
  info.valFull = info.valFull.map(function (_item) {
4358
- if (_item.t === _this29.texts.quality && state.q) {
4357
+ if (_item.t === _this28.texts.quality && state.q) {
4359
4358
  return [/*#__PURE__*/_react["default"].createElement("div", {
4360
4359
  className: classes.cellValueTooltipBoth,
4361
4360
  key: _item.t
@@ -4402,7 +4401,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4402
4401
  }, "(", info.valText.s, ")") : null, /*#__PURE__*/_react["default"].createElement(_IconCopy["default"], {
4403
4402
  className: _Utils["default"].clsx(classes.cellButtonsValueButton, 'copyButton', classes.cellButtonsValueButtonCopy),
4404
4403
  onClick: function onClick(e) {
4405
- return _this29.onCopy(e, copyText);
4404
+ return _this28.onCopy(e, copyText);
4406
4405
  },
4407
4406
  key: "cc"
4408
4407
  })
@@ -4410,13 +4409,18 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4410
4409
  ];
4411
4410
  }
4412
4411
 
4412
+ info.style = getValueStyle({
4413
+ isExpertMode: this.state.filter.expertMode,
4414
+ state: state,
4415
+ obj: obj
4416
+ });
4413
4417
  var val = info.valText;
4414
4418
  if (!this.state.filter.expertMode && item.data.button) {
4415
- val = /*#__PURE__*/_react["default"].createElement(_RoomService["default"], {
4416
- className: _Utils["default"].clsx(this.props.classes.cellValueButton, !this.states[id] || !this.states[id].val ? this.props.classes.cellValueButtonFalse : '')
4419
+ val = /*#__PURE__*/_react["default"].createElement(_iconsMaterial.RoomService, {
4420
+ className: this.props.classes.cellValueButton
4417
4421
  });
4418
4422
  }
4419
- return /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
4423
+ return /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
4420
4424
  key: "value",
4421
4425
  title: info.valFull,
4422
4426
  classes: {
@@ -4424,7 +4428,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4424
4428
  popper: this.props.classes.cellValueTooltipBox
4425
4429
  },
4426
4430
  onOpen: function onOpen() {
4427
- return _this29.readHistory(id);
4431
+ return _this28.readHistory(id);
4428
4432
  }
4429
4433
  }, /*#__PURE__*/_react["default"].createElement("div", {
4430
4434
  style: info.style,
@@ -4440,7 +4444,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4440
4444
  key: "_syncEnum",
4441
4445
  value: function _syncEnum(id, enumIds, newArray, cb) {
4442
4446
  var _this$info$objects$en,
4443
- _this30 = this;
4447
+ _this29 = this;
4444
4448
  if (!enumIds || !enumIds.length) {
4445
4449
  cb && cb();
4446
4450
  return;
@@ -4456,9 +4460,9 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4456
4460
  var obj = JSON.parse(JSON.stringify(this.info.objects[enumId]));
4457
4461
  obj.common.members.splice(pos, 1);
4458
4462
  promises.push(this.props.socket.setObject(enumId, obj).then(function () {
4459
- return _this30.info.objects[enumId] = obj;
4463
+ return _this29.info.objects[enumId] = obj;
4460
4464
  })["catch"](function (e) {
4461
- return _this30.showError(e);
4465
+ return _this29.showError(e);
4462
4466
  }));
4463
4467
  }
4464
4468
  }
@@ -4471,15 +4475,15 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4471
4475
  _obj.common.members.push(id);
4472
4476
  _obj.common.members.sort();
4473
4477
  promises.push(this.props.socket.setObject(enumId, _obj).then(function () {
4474
- return _this30.info.objects[enumId] = _obj;
4478
+ return _this29.info.objects[enumId] = _obj;
4475
4479
  })["catch"](function (e) {
4476
- return _this30.showError(e);
4480
+ return _this29.showError(e);
4477
4481
  }));
4478
4482
  }
4479
4483
  }
4480
4484
  Promise.all(promises).then(function () {
4481
4485
  return setTimeout(function () {
4482
- return _this30._syncEnum(id, enumIds, newArray, cb);
4486
+ return _this29._syncEnum(id, enumIds, newArray, cb);
4483
4487
  }, 0);
4484
4488
  });
4485
4489
  }
@@ -4491,11 +4495,11 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4491
4495
  }, {
4492
4496
  key: "syncEnum",
4493
4497
  value: function syncEnum(id, enumName, newArray) {
4494
- var _this31 = this;
4498
+ var _this30 = this;
4495
4499
  var toCheck = (0, _toConsumableArray2["default"])(this.info[enumName === 'func' ? 'funcEnums' : 'roomEnums']);
4496
4500
  return new Promise(function (resolve) {
4497
- _this31._syncEnum(id, toCheck, newArray, function (error) {
4498
- error && _this31.showError(error);
4501
+ _this30._syncEnum(id, toCheck, newArray, function (error) {
4502
+ error && _this30.showError(error);
4499
4503
  // force update of object
4500
4504
  resolve();
4501
4505
  });
@@ -4509,7 +4513,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4509
4513
  }, {
4510
4514
  key: "renderEnumDialog",
4511
4515
  value: function renderEnumDialog() {
4512
- var _this32 = this;
4516
+ var _this31 = this;
4513
4517
  if (this.state.enumDialog) {
4514
4518
  var type = this.state.enumDialog.type;
4515
4519
  var item = this.state.enumDialog.item;
@@ -4517,9 +4521,9 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4517
4521
  var enumsOriginal = this.state.enumDialog.enumsOriginal;
4518
4522
  var enums = (type === 'room' ? this.info.roomEnums : this.info.funcEnums).map(function (id) {
4519
4523
  return {
4520
- name: getName(_this32.objects[id] && _this32.objects[id].common && _this32.objects[id].common.name || id.split('.').pop(), _this32.props.lang),
4524
+ name: getName(_this31.objects[id] && _this31.objects[id].common && _this31.objects[id].common.name || id.split('.').pop(), _this31.props.lang),
4521
4525
  value: id,
4522
- icon: getSelectIdIcon(_this32.objects, id, _this32.imagePrefix)
4526
+ icon: getSelectIdIcon(_this31.objects, id, _this31.imagePrefix)
4523
4527
  };
4524
4528
  }).sort(function (a, b) {
4525
4529
  return a.name > b.name ? 1 : -1;
@@ -4527,10 +4531,10 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4527
4531
  enums.forEach(function (_item) {
4528
4532
  if (_item.icon && typeof _item.icon === 'string') {
4529
4533
  _item.icon = /*#__PURE__*/_react["default"].createElement("div", {
4530
- className: _this32.props.classes.enumIconDiv
4534
+ className: _this31.props.classes.enumIconDiv
4531
4535
  }, /*#__PURE__*/_react["default"].createElement("img", {
4532
4536
  src: _item.icon,
4533
- className: _this32.props.classes.enumIcon,
4537
+ className: _this31.props.classes.enumIcon,
4534
4538
  alt: _item.name
4535
4539
  }));
4536
4540
  }
@@ -4538,31 +4542,31 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4538
4542
 
4539
4543
  // const hasIcons = !!enums.find(item => item.icon);
4540
4544
 
4541
- return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
4545
+ return /*#__PURE__*/_react["default"].createElement(_material.Dialog, {
4542
4546
  className: this.props.classes.enumDialog,
4543
4547
  onClose: function onClose() {
4544
- return _this32.setState({
4548
+ return _this31.setState({
4545
4549
  enumDialog: null
4546
4550
  });
4547
4551
  },
4548
4552
  "aria-labelledby": "enum-dialog-title",
4549
4553
  open: !0 // true
4550
- }, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], {
4554
+ }, /*#__PURE__*/_react["default"].createElement(_material.DialogTitle, {
4551
4555
  id: "enum-dialog-title"
4552
- }, type === 'func' ? this.props.t('ra_Define functions') : this.props.t('ra_Define rooms'), /*#__PURE__*/_react["default"].createElement(_Fab["default"], {
4556
+ }, type === 'func' ? this.props.t('ra_Define functions') : this.props.t('ra_Define rooms'), /*#__PURE__*/_react["default"].createElement(_material.Fab, {
4553
4557
  className: this.props.classes.enumButton,
4554
4558
  color: "primary",
4555
4559
  disabled: JSON.stringify(enumsOriginal) === JSON.stringify(itemEnums),
4556
4560
  size: "small",
4557
4561
  onClick: function onClick() {
4558
- return _this32.syncEnum(item.data.id, type, itemEnums).then(function () {
4559
- return _this32.setState({
4562
+ return _this31.syncEnum(item.data.id, type, itemEnums).then(function () {
4563
+ return _this31.setState({
4560
4564
  enumDialog: null,
4561
4565
  enumDialogEnums: null
4562
4566
  });
4563
4567
  });
4564
4568
  }
4565
- }, /*#__PURE__*/_react["default"].createElement(_Check["default"], null))), /*#__PURE__*/_react["default"].createElement(_List["default"], {
4569
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Check, null))), /*#__PURE__*/_react["default"].createElement(_material.List, {
4566
4570
  classes: {
4567
4571
  root: this.props.classes.enumList
4568
4572
  }
@@ -4579,27 +4583,27 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4579
4583
  name = _item;
4580
4584
  }
4581
4585
  var labelId = "checkbox-list-label-".concat(id);
4582
- return /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
4583
- className: _this32.props.classes.headerCellSelectItem,
4586
+ return /*#__PURE__*/_react["default"].createElement(_material.ListItem, {
4587
+ className: _this31.props.classes.headerCellSelectItem,
4584
4588
  key: id,
4585
4589
  onClick: function onClick() {
4586
4590
  var pos = itemEnums.indexOf(id);
4587
- var enumDialogEnums = JSON.parse(JSON.stringify(_this32.state.enumDialogEnums));
4591
+ var enumDialogEnums = JSON.parse(JSON.stringify(_this31.state.enumDialogEnums));
4588
4592
  if (pos === -1) {
4589
4593
  enumDialogEnums.push(id);
4590
4594
  enumDialogEnums.sort();
4591
4595
  } else {
4592
4596
  enumDialogEnums.splice(pos, 1);
4593
4597
  }
4594
- _this32.setState({
4598
+ _this31.setState({
4595
4599
  enumDialogEnums: enumDialogEnums
4596
4600
  });
4597
4601
  }
4598
- }, /*#__PURE__*/_react["default"].createElement(_ListItemIcon["default"], {
4602
+ }, /*#__PURE__*/_react["default"].createElement(_material.ListItemIcon, {
4599
4603
  classes: {
4600
- root: _this32.props.classes.enumCheckbox
4604
+ root: _this31.props.classes.enumCheckbox
4601
4605
  }
4602
- }, /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
4606
+ }, /*#__PURE__*/_react["default"].createElement(_material.Checkbox, {
4603
4607
  edge: "start",
4604
4608
  checked: itemEnums.includes(id),
4605
4609
  tabIndex: -1,
@@ -4607,9 +4611,9 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4607
4611
  inputProps: {
4608
4612
  'aria-labelledby': labelId
4609
4613
  }
4610
- })), /*#__PURE__*/_react["default"].createElement(_ListItemText["default"], {
4614
+ })), /*#__PURE__*/_react["default"].createElement(_material.ListItemText, {
4611
4615
  id: labelId
4612
- }, name), icon ? /*#__PURE__*/_react["default"].createElement(_ListItemSecondaryAction["default"], null, icon) : null);
4616
+ }, name), icon ? /*#__PURE__*/_react["default"].createElement(_material.ListItemSecondaryAction, null, icon) : null);
4613
4617
  })));
4614
4618
  }
4615
4619
  return null;
@@ -4622,7 +4626,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4622
4626
  }, {
4623
4627
  key: "renderEditRoleDialog",
4624
4628
  value: function renderEditRoleDialog() {
4625
- var _this33 = this;
4629
+ var _this32 = this;
4626
4630
  if (this.state.roleDialog && this.props.objectBrowserEditRole) {
4627
4631
  var ObjectBrowserEditRole = this.props.objectBrowserEditRole;
4628
4632
  return /*#__PURE__*/_react["default"].createElement(ObjectBrowserEditRole, {
@@ -4633,9 +4637,9 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4633
4637
  roles: this.info.roles,
4634
4638
  onClose: function onClose(obj) {
4635
4639
  if (obj) {
4636
- _this33.info.objects[_this33.state.roleDialog] = obj;
4640
+ _this32.info.objects[_this32.state.roleDialog] = obj;
4637
4641
  }
4638
- _this33.setState({
4642
+ _this32.setState({
4639
4643
  roleDialog: false
4640
4644
  });
4641
4645
  }
@@ -4651,7 +4655,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4651
4655
  }, {
4652
4656
  key: "onColumnsEditCustomDialogClose",
4653
4657
  value: function onColumnsEditCustomDialogClose(isSave) {
4654
- var _this34 = this;
4658
+ var _this33 = this;
4655
4659
  if (isSave) {
4656
4660
  var value = this.customColumnDialog.value;
4657
4661
  if (this.customColumnDialog.type === 'boolean') {
@@ -4661,16 +4665,16 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4661
4665
  }
4662
4666
  this.customColumnDialog = null;
4663
4667
  this.props.socket.getObject(this.state.columnsEditCustomDialog.obj._id).then(function (obj) {
4664
- if (ObjectBrowser.setCustomValue(obj, _this34.state.columnsEditCustomDialog.it, value)) {
4665
- return _this34.props.socket.setObject(obj._id, obj);
4668
+ if (ObjectBrowser.setCustomValue(obj, _this33.state.columnsEditCustomDialog.it, value)) {
4669
+ return _this33.props.socket.setObject(obj._id, obj);
4666
4670
  }
4667
- throw new Error(_this34.props.t('ra_Cannot update attribute, because not found in the object'));
4671
+ throw new Error(_this33.props.t('ra_Cannot update attribute, because not found in the object'));
4668
4672
  }).then(function () {
4669
- return _this34.setState({
4673
+ return _this33.setState({
4670
4674
  columnsEditCustomDialog: null
4671
4675
  });
4672
4676
  })["catch"](function (e) {
4673
- return _this34.showError(e);
4677
+ return _this33.showError(e);
4674
4678
  });
4675
4679
  } else {
4676
4680
  this.customColumnDialog = null;
@@ -4686,7 +4690,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4686
4690
  }, {
4687
4691
  key: "renderColumnsEditCustomDialog",
4688
4692
  value: function renderColumnsEditCustomDialog() {
4689
- var _this35 = this;
4693
+ var _this34 = this;
4690
4694
  if (this.state.columnsEditCustomDialog) {
4691
4695
  if (!this.customColumnDialog) {
4692
4696
  var value = ObjectBrowser.getCustomValue(this.state.columnsEditCustomDialog.obj, this.state.columnsEditCustomDialog.it);
@@ -4696,69 +4700,69 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4696
4700
  value: (value === null || value === undefined ? '' : value).toString()
4697
4701
  };
4698
4702
  }
4699
- return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
4703
+ return /*#__PURE__*/_react["default"].createElement(_material.Dialog, {
4700
4704
  onClose: function onClose() {
4701
- return _this35.setState({
4705
+ return _this34.setState({
4702
4706
  columnsEditCustomDialog: null
4703
4707
  });
4704
4708
  },
4705
4709
  maxWidth: "md",
4706
4710
  "aria-labelledby": "custom-dialog-title",
4707
4711
  open: !0
4708
- }, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], {
4712
+ }, /*#__PURE__*/_react["default"].createElement(_material.DialogTitle, {
4709
4713
  id: "custom-dialog-title"
4710
- }, "".concat(this.props.t('ra_Edit object field'), ": ").concat(this.state.columnsEditCustomDialog.obj._id)), /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], null, /*#__PURE__*/_react["default"].createElement(_DialogContentText["default"], {
4714
+ }, "".concat(this.props.t('ra_Edit object field'), ": ").concat(this.state.columnsEditCustomDialog.obj._id)), /*#__PURE__*/_react["default"].createElement(_material.DialogContent, null, /*#__PURE__*/_react["default"].createElement(_material.DialogContentText, {
4711
4715
  id: "alert-dialog-description"
4712
- }, this.customColumnDialog.type === 'boolean' ? /*#__PURE__*/_react["default"].createElement(_FormControlLabel["default"], {
4713
- control: /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
4716
+ }, this.customColumnDialog.type === 'boolean' ? /*#__PURE__*/_react["default"].createElement(_material.FormControlLabel, {
4717
+ control: /*#__PURE__*/_react["default"].createElement(_material.Checkbox, {
4714
4718
  onKeyUp: function onKeyUp(e) {
4715
- return e.keyCode === 13 && _this35.onColumnsEditCustomDialogClose(true);
4719
+ return e.keyCode === 13 && _this34.onColumnsEditCustomDialogClose(true);
4716
4720
  },
4717
4721
  defaultChecked: this.customColumnDialog.value === 'true',
4718
4722
  onChange: function onChange(e) {
4719
- _this35.customColumnDialog.value = e.target.checked.toString();
4720
- var changed = _this35.customColumnDialog.value !== _this35.customColumnDialog.initValue;
4721
- if (changed === !_this35.state.customColumnDialogValueChanged) {
4722
- _this35.setState({
4723
+ _this34.customColumnDialog.value = e.target.checked.toString();
4724
+ var changed = _this34.customColumnDialog.value !== _this34.customColumnDialog.initValue;
4725
+ if (changed === !_this34.state.customColumnDialogValueChanged) {
4726
+ _this34.setState({
4723
4727
  customColumnDialogValueChanged: changed
4724
4728
  });
4725
4729
  }
4726
4730
  }
4727
4731
  }),
4728
4732
  label: "".concat(this.state.columnsEditCustomDialog.it.name, " (").concat(this.state.columnsEditCustomDialog.it.pathText, ")")
4729
- }) : /*#__PURE__*/_react["default"].createElement(_TextField["default"], {
4733
+ }) : /*#__PURE__*/_react["default"].createElement(_material.TextField, {
4730
4734
  variant: "standard",
4731
4735
  defaultValue: this.customColumnDialog.value,
4732
4736
  fullWidth: true,
4733
4737
  onKeyUp: function onKeyUp(e) {
4734
- return e.keyCode === 13 && _this35.onColumnsEditCustomDialogClose(true);
4738
+ return e.keyCode === 13 && _this34.onColumnsEditCustomDialogClose(true);
4735
4739
  },
4736
4740
  label: "".concat(this.state.columnsEditCustomDialog.it.name, " (").concat(this.state.columnsEditCustomDialog.it.pathText, ")"),
4737
4741
  onChange: function onChange(e) {
4738
- _this35.customColumnDialog.value = e.target.value;
4739
- var changed = _this35.customColumnDialog.value !== _this35.customColumnDialog.initValue;
4740
- if (changed === !_this35.state.customColumnDialogValueChanged) {
4741
- _this35.setState({
4742
+ _this34.customColumnDialog.value = e.target.value;
4743
+ var changed = _this34.customColumnDialog.value !== _this34.customColumnDialog.initValue;
4744
+ if (changed === !_this34.state.customColumnDialogValueChanged) {
4745
+ _this34.setState({
4742
4746
  customColumnDialogValueChanged: changed
4743
4747
  });
4744
4748
  }
4745
4749
  },
4746
4750
  autoFocus: true
4747
- }))), /*#__PURE__*/_react["default"].createElement(_DialogActions["default"], null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
4751
+ }))), /*#__PURE__*/_react["default"].createElement(_material.DialogActions, null, /*#__PURE__*/_react["default"].createElement(_material.Button, {
4748
4752
  variant: "contained",
4749
4753
  onClick: function onClick() {
4750
- return _this35.onColumnsEditCustomDialogClose(true);
4754
+ return _this34.onColumnsEditCustomDialogClose(true);
4751
4755
  },
4752
4756
  disabled: !this.state.customColumnDialogValueChanged,
4753
4757
  color: "primary",
4754
- startIcon: /*#__PURE__*/_react["default"].createElement(_Check["default"], null)
4755
- }, this.props.t('ra_Update')), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
4758
+ startIcon: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Check, null)
4759
+ }, this.props.t('ra_Update')), /*#__PURE__*/_react["default"].createElement(_material.Button, {
4756
4760
  color: "grey",
4757
4761
  variant: "contained",
4758
4762
  onClick: function onClick() {
4759
- return _this35.onColumnsEditCustomDialogClose();
4763
+ return _this34.onColumnsEditCustomDialogClose();
4760
4764
  },
4761
- startIcon: /*#__PURE__*/_react["default"].createElement(_Close["default"], null)
4765
+ startIcon: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Close, null)
4762
4766
  }, this.props.t('ra_Cancel'))));
4763
4767
  }
4764
4768
  return null;
@@ -4780,14 +4784,14 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4780
4784
  * @returns {JSX.Element | null}
4781
4785
  */
4782
4786
  function renderCustomValue(obj, it, item) {
4783
- var _this36 = this;
4787
+ var _this35 = this;
4784
4788
  var text = ObjectBrowser.getCustomValue(obj, it);
4785
4789
  if (text !== null && text !== undefined) {
4786
4790
  if (it.edit && !this.props.notEditable && (!it.objTypes || it.objTypes.includes(obj.type))) {
4787
4791
  return /*#__PURE__*/_react["default"].createElement("div", {
4788
4792
  className: _Utils["default"].clsx(this.props.classes.columnCustom, this.props.classes.columnCustomEditable, this.props.classes["columnCustom_".concat(it.align)]),
4789
4793
  onClick: function onClick() {
4790
- return _this36.setState({
4794
+ return _this35.setState({
4791
4795
  columnsEditCustomDialog: {
4792
4796
  item: item,
4793
4797
  it: it,
@@ -4816,7 +4820,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4816
4820
  }, {
4817
4821
  key: "renderLeaf",
4818
4822
  value: function renderLeaf(item, isExpanded, classes, counter) {
4819
- var _this37 = this,
4823
+ var _this36 = this,
4820
4824
  _common$alias,
4821
4825
  _common$alias2,
4822
4826
  _this$states$id2,
@@ -4837,12 +4841,12 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4837
4841
  iconFolder = isExpanded ? /*#__PURE__*/_react["default"].createElement(_IconOpen["default"], {
4838
4842
  className: classes.cellIdIconFolder,
4839
4843
  onClick: function onClick() {
4840
- return _this37.toggleExpanded(id);
4844
+ return _this36.toggleExpanded(id);
4841
4845
  }
4842
4846
  }) : /*#__PURE__*/_react["default"].createElement(_IconClosed["default"], {
4843
4847
  className: classes.cellIdIconFolder,
4844
4848
  onClick: function onClick() {
4845
- return _this37.toggleExpanded(id);
4849
+ return _this36.toggleExpanded(id);
4846
4850
  }
4847
4851
  });
4848
4852
  } else if (obj.common && obj.common.write === false && obj.type === 'state') {
@@ -4890,7 +4894,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4890
4894
  item.data.pef = pef;
4891
4895
  item.data.lang = this.props.lang;
4892
4896
  }
4893
- var checkbox = this.props.multiSelect && this.objects[id] && (!this.props.types || this.props.types.includes(this.objects[id].type)) ? /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], {
4897
+ var checkbox = this.props.multiSelect && this.objects[id] && (!this.props.types || this.props.types.includes(this.objects[id].type)) ? /*#__PURE__*/_react["default"].createElement(_material.Checkbox, {
4894
4898
  className: classes.checkBox,
4895
4899
  checked: this.state.selected.includes(id)
4896
4900
  }) : null;
@@ -4929,10 +4933,10 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4929
4933
  onClick: function onClick(e) {
4930
4934
  e.stopPropagation();
4931
4935
  e.preventDefault();
4932
- _this37.onSelect(common.alias.id.read);
4936
+ _this36.onSelect(common.alias.id.read);
4933
4937
  setTimeout(function () {
4934
- _this37.expandAllSelected(function () {
4935
- return _this37.scrollToItem(common.alias.id.read);
4938
+ return _this36.expandAllSelected(function () {
4939
+ return _this36.scrollToItem(common.alias.id.read);
4936
4940
  });
4937
4941
  }, 100);
4938
4942
  },
@@ -4941,10 +4945,10 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4941
4945
  onClick: function onClick(e) {
4942
4946
  e.stopPropagation();
4943
4947
  e.preventDefault();
4944
- _this37.onSelect(common.alias.id.write);
4948
+ _this36.onSelect(common.alias.id.write);
4945
4949
  setTimeout(function () {
4946
- _this37.expandAllSelected(function () {
4947
- return _this37.scrollToItem(common.alias.id.write);
4950
+ return _this36.expandAllSelected(function () {
4951
+ return _this36.scrollToItem(common.alias.id.write);
4948
4952
  });
4949
4953
  }, 100);
4950
4954
  },
@@ -4953,10 +4957,10 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4953
4957
  onClick: function onClick(e) {
4954
4958
  e.stopPropagation();
4955
4959
  e.preventDefault();
4956
- _this37.onSelect(common.alias.id);
4960
+ _this36.onSelect(common.alias.id);
4957
4961
  setTimeout(function () {
4958
- _this37.expandAllSelected(function () {
4959
- return _this37.scrollToItem(common.alias.id);
4962
+ return _this36.expandAllSelected(function () {
4963
+ return _this36.scrollToItem(common.alias.id);
4960
4964
  });
4961
4965
  }, 100);
4962
4966
  },
@@ -4988,17 +4992,17 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4988
4992
  _id = "".concat(id, ".").concat(_id);
4989
4993
  }
4990
4994
  ids[name] = _id;
4991
- if (!_this37.states[_id]) {
4992
- var _this37$objects$_id;
4993
- if (((_this37$objects$_id = _this37.objects[_id]) === null || _this37$objects$_id === void 0 ? void 0 : _this37$objects$_id.type) === 'state') {
4994
- !_this37.recordStates.includes(_id) && _this37.recordStates.push(_id);
4995
- _this37.states[_id] = {
4995
+ if (!_this36.states[_id]) {
4996
+ var _this36$objects$_id;
4997
+ if (((_this36$objects$_id = _this36.objects[_id]) === null || _this36$objects$_id === void 0 ? void 0 : _this36$objects$_id.type) === 'state') {
4998
+ !_this36.recordStates.includes(_id) && _this36.recordStates.push(_id);
4999
+ _this36.states[_id] = {
4996
5000
  val: null
4997
5001
  };
4998
- _this37.subscribe(_id);
5002
+ _this36.subscribe(_id);
4999
5003
  }
5000
5004
  } else {
5001
- !_this37.recordStates.includes(_id) && _this37.recordStates.push(_id);
5005
+ !_this36.recordStates.includes(_id) && _this36.recordStates.push(_id);
5002
5006
  }
5003
5007
  });
5004
5008
  // calculate color
@@ -5007,67 +5011,67 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5007
5011
  if (common.statusStates.errorId && this.states[ids.errorId] && this.states[ids.errorId].val) {
5008
5012
  checkColor = this.props.themeType === 'dark' ? COLOR_NAME_ERROR_DARK : COLOR_NAME_ERROR_LIGHT;
5009
5013
  colorSet = true;
5010
- icons.push( /*#__PURE__*/_react["default"].createElement(_Error["default"], {
5014
+ icons.push( /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Error, {
5011
5015
  key: "error",
5012
5016
  title: this.texts.deviceError,
5013
5017
  className: this.props.classes.iconDeviceError
5014
5018
  }));
5015
5019
  }
5016
- if (ids.onlineId && this.states[ids.onlineId] && this.states[ids.onlineId].val !== null) {
5020
+ if (ids.onlineId && this.states[ids.onlineId]) {
5017
5021
  if (!colorSet) {
5018
5022
  if (this.states[ids.onlineId].val) {
5019
5023
  checkColor = this.props.themeType === 'dark' ? COLOR_NAME_CONNECTED_DARK : COLOR_NAME_CONNECTED_LIGHT;
5020
- icons.push( /*#__PURE__*/_react["default"].createElement(_Wifi["default"], {
5024
+ icons.push( /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Wifi, {
5021
5025
  key: "conn",
5022
5026
  title: this.texts.deviceError,
5023
5027
  className: this.props.classes.iconDeviceConnected
5024
5028
  }));
5025
5029
  } else {
5026
5030
  checkColor = this.props.themeType === 'dark' ? COLOR_NAME_DISCONNECTED_DARK : COLOR_NAME_DISCONNECTED_LIGHT;
5027
- icons.push( /*#__PURE__*/_react["default"].createElement(_WifiOff["default"], {
5031
+ icons.push( /*#__PURE__*/_react["default"].createElement(_iconsMaterial.WifiOff, {
5028
5032
  key: "disc",
5029
5033
  title: this.texts.deviceError,
5030
5034
  className: this.props.classes.iconDeviceDisconnected
5031
5035
  }));
5032
5036
  }
5033
5037
  } else if (this.states[ids.onlineId].val) {
5034
- icons.push( /*#__PURE__*/_react["default"].createElement(_Wifi["default"], {
5038
+ icons.push( /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Wifi, {
5035
5039
  key: "conn",
5036
5040
  title: this.texts.deviceError,
5037
5041
  className: this.props.classes.iconDeviceConnected
5038
5042
  }));
5039
5043
  } else {
5040
- icons.push( /*#__PURE__*/_react["default"].createElement(_WifiOff["default"], {
5044
+ icons.push( /*#__PURE__*/_react["default"].createElement(_iconsMaterial.WifiOff, {
5041
5045
  key: "disc",
5042
5046
  title: this.texts.deviceError,
5043
5047
  className: this.props.classes.iconDeviceDisconnected
5044
5048
  }));
5045
5049
  }
5046
- } else if (ids.offlineId && this.states[ids.offlineId] && this.states[ids.offlineId].val !== null) {
5050
+ } else if (ids.offlineId && this.states[ids.offlineId]) {
5047
5051
  if (!colorSet) {
5048
5052
  if (this.states[ids.offlineId].val) {
5049
5053
  checkColor = this.props.themeType === 'dark' ? COLOR_NAME_DISCONNECTED_DARK : COLOR_NAME_DISCONNECTED_LIGHT;
5050
- icons.push( /*#__PURE__*/_react["default"].createElement(_WifiOff["default"], {
5054
+ icons.push( /*#__PURE__*/_react["default"].createElement(_iconsMaterial.WifiOff, {
5051
5055
  key: "disc",
5052
5056
  title: this.texts.deviceError,
5053
5057
  className: this.props.classes.iconDeviceDisconnected
5054
5058
  }));
5055
5059
  } else {
5056
5060
  checkColor = this.props.themeType === 'dark' ? COLOR_NAME_CONNECTED_DARK : COLOR_NAME_CONNECTED_LIGHT;
5057
- icons.push( /*#__PURE__*/_react["default"].createElement(_Wifi["default"], {
5061
+ icons.push( /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Wifi, {
5058
5062
  key: "conn",
5059
5063
  title: this.texts.deviceError,
5060
5064
  className: this.props.classes.iconDeviceConnected
5061
5065
  }));
5062
5066
  }
5063
5067
  } else if (this.states[ids.offlineId].val) {
5064
- icons.push( /*#__PURE__*/_react["default"].createElement(_WifiOff["default"], {
5068
+ icons.push( /*#__PURE__*/_react["default"].createElement(_iconsMaterial.WifiOff, {
5065
5069
  key: "disc",
5066
5070
  title: this.texts.deviceError,
5067
5071
  className: this.props.classes.iconDeviceDisconnected
5068
5072
  }));
5069
5073
  } else {
5070
- icons.push( /*#__PURE__*/_react["default"].createElement(_Wifi["default"], {
5074
+ icons.push( /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Wifi, {
5071
5075
  key: "conn",
5072
5076
  title: this.texts.deviceError,
5073
5077
  className: this.props.classes.iconDeviceConnected
@@ -5091,7 +5095,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5091
5095
  useDesc = !!useDesc;
5092
5096
  }
5093
5097
  }
5094
- return /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
5098
+ return /*#__PURE__*/_react["default"].createElement(_material.Grid, {
5095
5099
  container: true,
5096
5100
  direction: "row",
5097
5101
  wrap: "nowrap",
@@ -5099,16 +5103,16 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5099
5103
  key: id,
5100
5104
  id: id,
5101
5105
  onClick: function onClick() {
5102
- return _this37.onSelect(id);
5106
+ return _this36.onSelect(id);
5103
5107
  },
5104
5108
  onDoubleClick: function onDoubleClick() {
5105
5109
  if (!item.children) {
5106
- _this37.onSelect(id, true);
5110
+ _this36.onSelect(id, true);
5107
5111
  } else {
5108
- _this37.toggleExpanded(id);
5112
+ _this36.toggleExpanded(id);
5109
5113
  }
5110
5114
  }
5111
- }, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
5115
+ }, /*#__PURE__*/_react["default"].createElement(_material.Grid, {
5112
5116
  container: true,
5113
5117
  wrap: "nowrap",
5114
5118
  direction: "row",
@@ -5117,35 +5121,31 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5117
5121
  width: this.columnsVisibility.id,
5118
5122
  paddingLeft: paddingLeft
5119
5123
  }
5120
- }, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
5124
+ }, /*#__PURE__*/_react["default"].createElement(_material.Grid, {
5121
5125
  item: true,
5122
5126
  container: true,
5123
- alignItems: "center",
5124
- style: {
5125
- // color: checkColor,
5126
- // background: invertBackground,
5127
- }
5128
- }, checkbox, iconFolder), /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
5127
+ alignItems: "center"
5128
+ }, checkbox, iconFolder), /*#__PURE__*/_react["default"].createElement(_material.Grid, {
5129
5129
  item: true,
5130
5130
  style: {
5131
5131
  color: checkColor
5132
5132
  },
5133
5133
  className: _Utils["default"].clsx(classes.cellIdSpan, invertBackground && classes.invertedBackground)
5134
- }, /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
5134
+ }, /*#__PURE__*/_react["default"].createElement(_material.Tooltip, {
5135
5135
  title: getIdFieldTooltip(item.data, this.props.classes, this.props.lang),
5136
5136
  classes: {
5137
5137
  popper: this.props.classes.tooltip
5138
5138
  }
5139
5139
  }, /*#__PURE__*/_react["default"].createElement("div", null, item.data.name)), alias, icons), /*#__PURE__*/_react["default"].createElement("div", {
5140
5140
  className: _Utils["default"].clsx(classes.grow, invertBackground && classes.invertedBackgroundFlex)
5141
- }), /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
5141
+ }), /*#__PURE__*/_react["default"].createElement(_material.Grid, {
5142
5142
  item: true,
5143
5143
  container: true,
5144
5144
  alignItems: "center"
5145
5145
  }, iconItem), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_IconCopy["default"], {
5146
5146
  className: _Utils["default"].clsx(classes.cellCopyButton, 'copyButton'),
5147
5147
  onClick: function onClick(e) {
5148
- return _this37.onCopy(e, id);
5148
+ return _this36.onCopy(e, id);
5149
5149
  }
5150
5150
  }))), this.columnsVisibility.name ? /*#__PURE__*/_react["default"].createElement("div", {
5151
5151
  className: _Utils["default"].clsx(classes.cellName, useDesc && classes.cellNameWithDesc),
@@ -5159,7 +5159,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5159
5159
  }, /*#__PURE__*/_react["default"].createElement(_IconCopy["default"], {
5160
5160
  className: _Utils["default"].clsx(classes.cellCopyButton, 'copyButton'),
5161
5161
  onClick: function onClick(e) {
5162
- return _this37.onCopy(e, item.data.title);
5162
+ return _this36.onCopy(e, item.data.title);
5163
5163
  }
5164
5164
  })) : null) : null, !this.state.statesView ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, this.columnsVisibility.type ? /*#__PURE__*/_react["default"].createElement("div", {
5165
5165
  className: classes.cellType,
@@ -5173,7 +5173,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5173
5173
  cursor: this.state.filter.expertMode && enumEditable && this.props.objectBrowserEditRole ? 'text' : 'default'
5174
5174
  },
5175
5175
  onClick: this.state.filter.expertMode && enumEditable && this.props.objectBrowserEditRole ? function () {
5176
- return _this37.setState({
5176
+ return _this36.setState({
5177
5177
  roleDialog: item.data.id
5178
5178
  });
5179
5179
  } : undefined
@@ -5184,8 +5184,8 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5184
5184
  cursor: enumEditable ? 'text' : 'default'
5185
5185
  },
5186
5186
  onClick: enumEditable ? function () {
5187
- var enums = findEnumsForObjectAsIds(_this37.info, item.data.id, 'roomEnums');
5188
- _this37.setState({
5187
+ var enums = findEnumsForObjectAsIds(_this36.info, item.data.id, 'roomEnums');
5188
+ _this36.setState({
5189
5189
  enumDialogEnums: enums,
5190
5190
  enumDialog: {
5191
5191
  item: item,
@@ -5201,8 +5201,8 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5201
5201
  cursor: enumEditable ? 'text' : 'default'
5202
5202
  },
5203
5203
  onClick: enumEditable ? function () {
5204
- var enums = findEnumsForObjectAsIds(_this37.info, item.data.id, 'funcEnums');
5205
- _this37.setState({
5204
+ var enums = findEnumsForObjectAsIds(_this36.info, item.data.id, 'funcEnums');
5205
+ _this36.setState({
5206
5206
  enumDialogEnums: enums,
5207
5207
  enumDialog: {
5208
5208
  item: item,
@@ -5237,11 +5237,11 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5237
5237
  return /*#__PURE__*/_react["default"].createElement("div", {
5238
5238
  className: classes.cellAdapter,
5239
5239
  style: {
5240
- width: _this37.columnsVisibility[it.id]
5240
+ width: _this36.columnsVisibility[it.id]
5241
5241
  },
5242
5242
  key: it.id,
5243
5243
  title: "".concat(it.adapter, " => ").concat(it.pathText)
5244
- }, _this37.renderCustomValue(obj, it, item));
5244
+ }, _this36.renderCustomValue(obj, it, item));
5245
5245
  }), this.columnsVisibility.val ? /*#__PURE__*/_react["default"].createElement("div", {
5246
5246
  className: classes.cellValue,
5247
5247
  style: {
@@ -5249,29 +5249,29 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5249
5249
  cursor: valueEditable ? (common === null || common === void 0 ? void 0 : common.type) === 'file' ? 'zoom-in' : item.data.button ? 'grab' : 'text' : 'default'
5250
5250
  },
5251
5251
  onClick: valueEditable ? function () {
5252
- if (!obj || !_this37.states) {
5252
+ if (!obj || !_this36.states) {
5253
5253
  // return;
5254
5254
  } else if ((common === null || common === void 0 ? void 0 : common.type) === 'file') {
5255
- _this37.setState({
5255
+ _this36.setState({
5256
5256
  viewFileDialog: id
5257
5257
  });
5258
- } else
5259
- // in non-expert mode control button directly
5260
- if (!_this37.state.filter.expertMode && item.data.button) {
5261
- _this37.props.socket.setState(id, true)["catch"](function (e) {
5262
- return window.alert("Cannot write state \"".concat(id, "\": ").concat(e));
5263
- });
5264
- } else {
5265
- _this37.edit = {
5266
- val: _this37.states[id] ? _this37.states[id].val : '',
5267
- q: _this37.states[id] ? _this37.states[id].q || 0 : 0,
5268
- ack: false,
5269
- id: id
5270
- };
5271
- _this37.setState({
5272
- updateOpened: true
5273
- });
5274
- }
5258
+ }
5259
+ // in non-expert mode control button directly
5260
+ else if (!_this36.state.filter.expertMode && item.data.button) {
5261
+ _this36.props.socket.setState(id, true)["catch"](function (e) {
5262
+ return window.alert("Cannot write state \"".concat(id, "\": ").concat(e));
5263
+ });
5264
+ } else {
5265
+ _this36.edit = {
5266
+ val: _this36.states[id] ? _this36.states[id].val : '',
5267
+ q: _this36.states[id] ? _this36.states[id].q || 0 : 0,
5268
+ ack: false,
5269
+ id: id
5270
+ };
5271
+ _this36.setState({
5272
+ updateOpened: true
5273
+ });
5274
+ }
5275
5275
  } : undefined
5276
5276
  }, this.renderColumnValue(id, item, classes)) : null, this.columnsVisibility.buttons ? /*#__PURE__*/_react["default"].createElement("div", {
5277
5277
  className: classes.cellButtons,
@@ -5292,7 +5292,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5292
5292
  }, {
5293
5293
  key: "renderItem",
5294
5294
  value: function renderItem(root, isExpanded, classes, counter) {
5295
- var _this38 = this;
5295
+ var _this37 = this;
5296
5296
  var items = [];
5297
5297
  counter = counter || {
5298
5298
  count: 0
@@ -5320,9 +5320,9 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5320
5320
  if (!this.state.foldersFirst) {
5321
5321
  root.children && items.push(root.children.map(function (item) {
5322
5322
  // do not render too many items in column editor mode
5323
- if (!_this38.state.columnsSelectorShow || counter.count < 15) {
5323
+ if (!_this37.state.columnsSelectorShow || counter.count < 15) {
5324
5324
  if (item.data.sumVisibility) {
5325
- return _this38.renderItem(item, undefined, classes, counter);
5325
+ return _this37.renderItem(item, undefined, classes, counter);
5326
5326
  }
5327
5327
  }
5328
5328
  return null;
@@ -5332,9 +5332,9 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5332
5332
  root.children && items.push(root.children.map(function (item) {
5333
5333
  if (item.children) {
5334
5334
  // do not render too many items in column editor mode
5335
- if (!_this38.state.columnsSelectorShow || counter.count < 15) {
5335
+ if (!_this37.state.columnsSelectorShow || counter.count < 15) {
5336
5336
  if (item.data.sumVisibility) {
5337
- return _this38.renderItem(item, undefined, classes, counter);
5337
+ return _this37.renderItem(item, undefined, classes, counter);
5338
5338
  }
5339
5339
  }
5340
5340
  }
@@ -5344,9 +5344,9 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5344
5344
  root.children && items.push(root.children.map(function (item) {
5345
5345
  if (!item.children) {
5346
5346
  // do not render too many items in column editor mode
5347
- if (!_this38.state.columnsSelectorShow || counter.count < 15) {
5347
+ if (!_this37.state.columnsSelectorShow || counter.count < 15) {
5348
5348
  if (item.data.sumVisibility) {
5349
- return _this38.renderItem(item, undefined, classes, counter);
5349
+ return _this37.renderItem(item, undefined, classes, counter);
5350
5350
  }
5351
5351
  }
5352
5352
  }
@@ -5367,7 +5367,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5367
5367
  }, {
5368
5368
  key: "calculateColumnsVisibility",
5369
5369
  value: function calculateColumnsVisibility(columnsAuto, columns, columnsForAdmin, columnsWidths) {
5370
- var _this39 = this;
5370
+ var _this38 = this;
5371
5371
  columnsWidths = columnsWidths || this.state.columnsWidths;
5372
5372
  columnsForAdmin = columnsForAdmin || this.state.columnsForAdmin;
5373
5373
  columns = columns || this.state.columns || [];
@@ -5451,7 +5451,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5451
5451
  Object.keys(columnsForAdmin).sort().forEach(function (adapter) {
5452
5452
  return columnsForAdmin[adapter].forEach(function (column) {
5453
5453
  var id = "_".concat(adapter, "_").concat(column.path);
5454
- _this39.columnsVisibility[id] = columns.includes(id);
5454
+ _this38.columnsVisibility[id] = columns.includes(id);
5455
5455
  if (columns.includes(id)) {
5456
5456
  var item = {
5457
5457
  adapter: adapter,
@@ -5469,11 +5469,11 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5469
5469
  item.objTypes = column.objTypes;
5470
5470
  }
5471
5471
  }
5472
- _this39.adapterColumns.push(item);
5473
- _this39.columnsVisibility[id] = columnsWidths[item.id] || column.width || SCREEN_WIDTHS[_this39.props.width].widths.func || SCREEN_WIDTHS.xl.widths.func;
5474
- _widthSum2 += _this39.columnsVisibility[id];
5472
+ _this38.adapterColumns.push(item);
5473
+ _this38.columnsVisibility[id] = columnsWidths[item.id] || column.width || SCREEN_WIDTHS[_this38.props.width].widths.func || SCREEN_WIDTHS.xl.widths.func;
5474
+ _widthSum2 += _this38.columnsVisibility[id];
5475
5475
  } else {
5476
- _this39.columnsVisibility[id] = 0;
5476
+ _this38.columnsVisibility[id] = 0;
5477
5477
  }
5478
5478
  });
5479
5479
  });
@@ -5494,10 +5494,10 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5494
5494
  this.columnsVisibility.nameHeader = "calc(100% - ".concat(_widthSum2 + 5 + this.state.scrollBarWidth, "px)");
5495
5495
  } else {
5496
5496
  var newWidth = Object.keys(this.columnsVisibility).reduce(function (accumulator, name) {
5497
- if (name === 'id' || typeof _this39.columnsVisibility[name] === 'string' || !_this39.columnsVisibility[name]) {
5497
+ if (name === 'id' || typeof _this38.columnsVisibility[name] === 'string' || !_this38.columnsVisibility[name]) {
5498
5498
  return accumulator;
5499
5499
  }
5500
- return accumulator + _this39.columnsVisibility[name];
5500
+ return accumulator + _this38.columnsVisibility[name];
5501
5501
  }, 0);
5502
5502
  this.columnsVisibility.id = "calc(100% - ".concat(newWidth, "px)");
5503
5503
  }
@@ -5511,18 +5511,18 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5511
5511
  * @returns {JSX.Element}
5512
5512
  */
5513
5513
  function renderHeader() {
5514
- var _this40 = this;
5514
+ var _this39 = this;
5515
5515
  var classes = this.props.classes;
5516
5516
  var filterClearInValue = null;
5517
5517
  if (!this.columnsVisibility.buttons && !this.isFilterEmpty()) {
5518
- filterClearInValue = /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
5518
+ filterClearInValue = /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
5519
5519
  onClick: function onClick() {
5520
- return _this40.clearFilter();
5520
+ return _this39.clearFilter();
5521
5521
  },
5522
5522
  className: classes.buttonClearFilter,
5523
5523
  title: this.props.t('ra_Clear filter'),
5524
5524
  size: "large"
5525
- }, /*#__PURE__*/_react["default"].createElement(_IconClearFilter["default"], null), /*#__PURE__*/_react["default"].createElement(_Close["default"], {
5525
+ }, /*#__PURE__*/_react["default"].createElement(_IconClearFilter["default"], null), /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Close, {
5526
5526
  className: classes.buttonClearFilterIcon
5527
5527
  }));
5528
5528
  }
@@ -5608,7 +5608,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5608
5608
  return /*#__PURE__*/_react["default"].createElement("div", {
5609
5609
  className: _Utils["default"].clsx(classes.headerCell, classes.headerCellValue),
5610
5610
  style: {
5611
- width: _this40.columnsVisibility[item.id]
5611
+ width: _this39.columnsVisibility[item.id]
5612
5612
  },
5613
5613
  title: item.adapter,
5614
5614
  key: item.id,
@@ -5644,31 +5644,31 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5644
5644
  }, {
5645
5645
  key: "renderToast",
5646
5646
  value: function renderToast() {
5647
- var _this41 = this;
5648
- return /*#__PURE__*/_react["default"].createElement(_Snackbar["default"], {
5647
+ var _this40 = this;
5648
+ return /*#__PURE__*/_react["default"].createElement(_material.Snackbar, {
5649
5649
  open: !!this.state.toast,
5650
5650
  autoHideDuration: 3000,
5651
5651
  onClick: function onClick() {
5652
- return _this41.setState({
5652
+ return _this40.setState({
5653
5653
  toast: ''
5654
5654
  });
5655
5655
  },
5656
5656
  onClose: function onClose() {
5657
- return _this41.setState({
5657
+ return _this40.setState({
5658
5658
  toast: ''
5659
5659
  });
5660
5660
  },
5661
5661
  message: this.state.toast,
5662
- action: /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
5662
+ action: /*#__PURE__*/_react["default"].createElement(_material.IconButton, {
5663
5663
  size: "small",
5664
5664
  "aria-label": "close",
5665
5665
  color: "inherit",
5666
5666
  onClick: function onClick() {
5667
- return _this41.setState({
5667
+ return _this40.setState({
5668
5668
  toast: ''
5669
5669
  });
5670
5670
  }
5671
- }, /*#__PURE__*/_react["default"].createElement(_Close["default"], {
5671
+ }, /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Close, {
5672
5672
  fontSize: "small"
5673
5673
  }))
5674
5674
  });
@@ -5680,12 +5680,12 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5680
5680
  }, {
5681
5681
  key: "componentDidUpdate",
5682
5682
  value: function componentDidUpdate() {
5683
- var _this42 = this;
5683
+ var _this41 = this;
5684
5684
  if (this.tableRef.current) {
5685
5685
  var scrollBarWidth = this.tableRef.current.offsetWidth - this.tableRef.current.clientWidth;
5686
5686
  if (this.state.scrollBarWidth !== scrollBarWidth) {
5687
5687
  setTimeout(function () {
5688
- return _this42.setState({
5688
+ return _this41.setState({
5689
5689
  scrollBarWidth: scrollBarWidth
5690
5690
  });
5691
5691
  }, 100);
@@ -5713,12 +5713,12 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5713
5713
  }, {
5714
5714
  key: "renderCustomDialog",
5715
5715
  value: function renderCustomDialog() {
5716
- var _this43 = this;
5716
+ var _this42 = this;
5717
5717
  if (this.state.customDialog && this.props.objectCustomDialog) {
5718
5718
  var ObjectCustomDialog = this.props.objectCustomDialog;
5719
5719
  return /*#__PURE__*/_react["default"].createElement(ObjectCustomDialog, {
5720
5720
  reportChangedIds: function reportChangedIds(changedIds) {
5721
- return _this43.changedIds = (0, _toConsumableArray2["default"])(changedIds);
5721
+ return _this42.changedIds = (0, _toConsumableArray2["default"])(changedIds);
5722
5722
  },
5723
5723
  objectIDs: this.state.customDialog,
5724
5724
  expertMode: this.state.filter.expertMode,
@@ -5732,16 +5732,16 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5732
5732
  objects: this.objects,
5733
5733
  customsInstances: this.info.customs,
5734
5734
  onClose: function onClose() {
5735
- _this43.pauseSubscribe(false);
5736
- _this43.setState({
5735
+ _this42.pauseSubscribe(false);
5736
+ _this42.setState({
5737
5737
  customDialog: null
5738
5738
  });
5739
- if (_this43.changedIds) {
5740
- _this43.changedIds = null;
5739
+ if (_this42.changedIds) {
5740
+ _this42.changedIds = null;
5741
5741
  // update all changed IDs
5742
- _this43.forceUpdate();
5742
+ _this42.forceUpdate();
5743
5743
  }
5744
- _this43.props.router && _this43.props.router.doNavigate('tab-objects');
5744
+ _this42.props.router && _this42.props.router.doNavigate('tab-objects');
5745
5745
  }
5746
5746
  });
5747
5747
  }
@@ -5755,14 +5755,14 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5755
5755
  }, {
5756
5756
  key: "onUpdate",
5757
5757
  value: function onUpdate(valAck) {
5758
- var _this44 = this;
5758
+ var _this43 = this;
5759
5759
  this.props.socket.setState(this.edit.id, {
5760
5760
  val: valAck.val,
5761
5761
  ack: valAck.ack,
5762
5762
  q: valAck.q || 0,
5763
5763
  expire: valAck.expire || undefined
5764
5764
  })["catch"](function (e) {
5765
- return _this44.showError("Cannot write value: ".concat(e));
5765
+ return _this43.showError("Cannot write value: ".concat(e));
5766
5766
  });
5767
5767
  }
5768
5768
 
@@ -5773,7 +5773,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5773
5773
  }, {
5774
5774
  key: "renderEditObjectDialog",
5775
5775
  value: function renderEditObjectDialog() {
5776
- var _this45 = this;
5776
+ var _this44 = this;
5777
5777
  if (!this.state.editObjectDialog || !this.props.objectBrowserEditObject) {
5778
5778
  return null;
5779
5779
  }
@@ -5791,37 +5791,37 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5791
5791
  t: this.props.t,
5792
5792
  expertMode: this.state.filter.expertMode,
5793
5793
  onNewObject: function onNewObject(obj) {
5794
- return _this45.props.socket.setObject(obj._id, obj).then(function () {
5795
- return _this45.setState({
5794
+ return _this44.props.socket.setObject(obj._id, obj).then(function () {
5795
+ return _this44.setState({
5796
5796
  editObjectDialog: obj._id
5797
5797
  }, function () {
5798
- return _this45.onSelect(obj._id);
5798
+ return _this44.onSelect(obj._id);
5799
5799
  });
5800
5800
  })["catch"](function (e) {
5801
- return _this45.showError("Cannot write object: ".concat(e));
5801
+ return _this44.showError("Cannot write object: ".concat(e));
5802
5802
  });
5803
5803
  },
5804
5804
  onClose: function onClose(obj) {
5805
5805
  if (obj) {
5806
5806
  var updateAlias;
5807
- if (_this45.state.editObjectDialog.startsWith('alias.')) {
5808
- var _this45$objects$_this, _obj$common5;
5809
- if (JSON.stringify((_this45$objects$_this = _this45.objects[_this45.state.editObjectDialog].common) === null || _this45$objects$_this === void 0 ? void 0 : _this45$objects$_this.alias) !== JSON.stringify((_obj$common5 = obj.common) === null || _obj$common5 === void 0 ? void 0 : _obj$common5.alias)) {
5810
- updateAlias = _this45.state.editObjectDialog;
5807
+ if (_this44.state.editObjectDialog.startsWith('alias.')) {
5808
+ var _this44$objects$_this, _obj$common5;
5809
+ if (JSON.stringify((_this44$objects$_this = _this44.objects[_this44.state.editObjectDialog].common) === null || _this44$objects$_this === void 0 ? void 0 : _this44$objects$_this.alias) !== JSON.stringify((_obj$common5 = obj.common) === null || _obj$common5 === void 0 ? void 0 : _obj$common5.alias)) {
5810
+ updateAlias = _this44.state.editObjectDialog;
5811
5811
  }
5812
5812
  }
5813
- _this45.props.socket.setObject(obj._id, obj).then(function () {
5814
- if (updateAlias && _this45.subscribes.includes(updateAlias)) {
5815
- _this45.unsubscribe(updateAlias);
5813
+ _this44.props.socket.setObject(obj._id, obj).then(function () {
5814
+ if (updateAlias && _this44.subscribes.includes(updateAlias)) {
5815
+ _this44.unsubscribe(updateAlias);
5816
5816
  setTimeout(function () {
5817
- return _this45.subscribe(updateAlias);
5817
+ return _this44.subscribe(updateAlias);
5818
5818
  }, 100);
5819
5819
  }
5820
5820
  })["catch"](function (e) {
5821
- return _this45.showError("Cannot write object: ".concat(e));
5821
+ return _this44.showError("Cannot write object: ".concat(e));
5822
5822
  });
5823
5823
  }
5824
- _this45.setState({
5824
+ _this44.setState({
5825
5825
  editObjectDialog: ''
5826
5826
  });
5827
5827
  }
@@ -5835,7 +5835,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5835
5835
  }, {
5836
5836
  key: "renderViewObjectFileDialog",
5837
5837
  value: function renderViewObjectFileDialog() {
5838
- var _this46 = this;
5838
+ var _this45 = this;
5839
5839
  if (!this.state.viewFileDialog || !this.props.objectBrowserViewFile) {
5840
5840
  return null;
5841
5841
  }
@@ -5849,7 +5849,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5849
5849
  t: this.props.t,
5850
5850
  expertMode: this.state.filter.expertMode,
5851
5851
  onClose: function onClose() {
5852
- return _this46.setState({
5852
+ return _this45.setState({
5853
5853
  viewFileDialog: ''
5854
5854
  });
5855
5855
  }
@@ -5864,7 +5864,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5864
5864
  key: "renderEditValueDialog",
5865
5865
  value: function renderEditValueDialog() {
5866
5866
  var _this$objects$this$ed,
5867
- _this47 = this;
5867
+ _this46 = this;
5868
5868
  if (!this.state.updateOpened || !this.props.objectBrowserValue) {
5869
5869
  return null;
5870
5870
  }
@@ -5891,10 +5891,10 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5891
5891
  defaultHistory: this.defaultHistory,
5892
5892
  dateFormat: this.props.dateFormat,
5893
5893
  onClose: function onClose(res) {
5894
- _this47.setState({
5894
+ _this46.setState({
5895
5895
  updateOpened: false
5896
5896
  });
5897
- res && _this47.onUpdate(res);
5897
+ res && _this46.onUpdate(res);
5898
5898
  }
5899
5899
  });
5900
5900
  }
@@ -5906,7 +5906,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5906
5906
  * @returns {JSX.Element}
5907
5907
  */
5908
5908
  function render() {
5909
- var _this48 = this;
5909
+ var _this47 = this;
5910
5910
  this.recordStates = [];
5911
5911
  this.unsubscribeTimer && clearTimeout(this.unsubscribeTimer);
5912
5912
 
@@ -5919,13 +5919,13 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5919
5919
  applyFilter(this.root, this.state.filter, this.props.lang, this.objects, null, counter, this.props.customFilter, this.props.types);
5920
5920
  if (counter.count < 500 && !this.state.expandAllVisible) {
5921
5921
  setTimeout(function () {
5922
- return _this48.setState({
5922
+ return _this47.setState({
5923
5923
  expandAllVisible: true
5924
5924
  });
5925
5925
  });
5926
5926
  } else if (counter.count >= 500 && this.state.expandAllVisible) {
5927
5927
  setTimeout(function () {
5928
- return _this48.setState({
5928
+ return _this47.setState({
5929
5929
  expandAllVisible: false
5930
5930
  });
5931
5931
  });
@@ -5933,11 +5933,11 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
5933
5933
  this.lastAppliedFilter = jsonFilter;
5934
5934
  }
5935
5935
  this.unsubscribeTimer = setTimeout(function () {
5936
- _this48.unsubscribeTimer = null;
5937
- _this48.checkUnsubscribes();
5936
+ _this47.unsubscribeTimer = null;
5937
+ _this47.checkUnsubscribes();
5938
5938
  }, 200);
5939
5939
  if (!this.state.loaded) {
5940
- return /*#__PURE__*/_react["default"].createElement(_CircularProgress["default"], {
5940
+ return /*#__PURE__*/_react["default"].createElement(_material.CircularProgress, {
5941
5941
  key: "".concat(this.props.dialogName, "_c")
5942
5942
  });
5943
5943
  }