@iobroker/adapter-react-v5 4.11.5 → 4.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,6 +95,7 @@ declare class ObjectBrowser extends React.Component<import("./types").ObjectBrow
95
95
  columnsEditCustomDialog: any;
96
96
  customColumnDialogValueChanged: boolean;
97
97
  showExportDialog: boolean;
98
+ showAllExportOptions: boolean;
98
99
  linesEnabled: boolean;
99
100
  showDescription: boolean;
100
101
  showContextMenu: any;
@@ -56,7 +56,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
56
56
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
57
57
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
58
58
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } /**
59
- * Copyright 2020-2023, Denis Haev <dogafox@gmail.com>
59
+ * Copyright 2020-2024, Denis Haev <dogafox@gmail.com>
60
60
  *
61
61
  * MIT License
62
62
  *
@@ -2728,6 +2728,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
2728
2728
  columnsEditCustomDialog: null,
2729
2729
  customColumnDialogValueChanged: false,
2730
2730
  showExportDialog: false,
2731
+ showAllExportOptions: false,
2731
2732
  linesEnabled: (window._localStorage || window.localStorage).getItem("".concat(props.dialogName || 'App', ".lines")) === 'true',
2732
2733
  showDescription: (window._localStorage || window.localStorage).getItem("".concat(props.dialogName || 'App', ".desc")) !== 'false',
2733
2734
  showContextMenu: null,
@@ -4224,7 +4225,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4224
4225
  }
4225
4226
  return /*#__PURE__*/_react["default"].createElement(_material.Dialog, {
4226
4227
  open: !0
4227
- }, /*#__PURE__*/_react["default"].createElement(_material.DialogTitle, null, this.props.t('ra_Select type of export')), /*#__PURE__*/_react["default"].createElement(_material.DialogContent, null, /*#__PURE__*/_react["default"].createElement(_material.DialogContentText, null, this.props.t('ra_You can export all objects or just the selected branch.'), /*#__PURE__*/_react["default"].createElement("br", null), this.props.t('ra_Selected %s object(s)', this.state.showExportDialog), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement(_material.FormControlLabel, {
4228
+ }, /*#__PURE__*/_react["default"].createElement(_material.DialogTitle, null, this.props.t('ra_Select type of export')), /*#__PURE__*/_react["default"].createElement(_material.DialogContent, null, /*#__PURE__*/_react["default"].createElement(_material.DialogContentText, null, this.state.filter.expertMode || this.state.showAllExportOptions ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, this.props.t('ra_You can export all objects or just the selected branch.'), /*#__PURE__*/_react["default"].createElement("br", null), this.props.t('ra_Selected %s object(s)', this.state.showExportDialog), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement(_material.FormControlLabel, {
4228
4229
  control: /*#__PURE__*/_react["default"].createElement(_material.Checkbox, {
4229
4230
  checked: this.state.noStatesByExportImport,
4230
4231
  onChange: function onChange(e) {
@@ -4264,12 +4265,13 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4264
4265
  }
4265
4266
  }),
4266
4267
  label: this.props.t('Exclude translations (except english) from export JSON')
4267
- }))), /*#__PURE__*/_react["default"].createElement(_material.DialogActions, null, /*#__PURE__*/_react["default"].createElement(_material.Button, {
4268
+ })) : null)), /*#__PURE__*/_react["default"].createElement(_material.DialogActions, null, this.state.filter.expertMode || this.state.showAllExportOptions ? /*#__PURE__*/_react["default"].createElement(_material.Button, {
4268
4269
  color: "grey",
4269
4270
  variant: "outlined",
4270
4271
  onClick: function onClick() {
4271
4272
  return _this24.setState({
4272
- showExportDialog: false
4273
+ showExportDialog: false,
4274
+ showAllExportOptions: false
4273
4275
  }, function () {
4274
4276
  return _this24._exportObjects({
4275
4277
  isAll: true,
@@ -4280,13 +4282,23 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4280
4282
  });
4281
4283
  });
4282
4284
  }
4283
- }, this.props.t('ra_All objects'), ' ', "(", Object.keys(this.objects).length, ")"), /*#__PURE__*/_react["default"].createElement(_material.Button, {
4285
+ }, this.props.t('ra_All objects'), ' ', "(", Object.keys(this.objects).length, ")") : /*#__PURE__*/_react["default"].createElement(_material.Button, {
4286
+ color: "grey",
4287
+ variant: "outlined",
4288
+ startIcon: /*#__PURE__*/_react["default"].createElement(_IconExpert["default"], null),
4289
+ onClick: function onClick() {
4290
+ return _this24.setState({
4291
+ showAllExportOptions: true
4292
+ });
4293
+ }
4294
+ }, this.props.t('ra_Advanced options')), /*#__PURE__*/_react["default"].createElement(_material.Button, {
4284
4295
  color: "primary",
4285
4296
  variant: "contained",
4286
4297
  autoFocus: true,
4287
4298
  onClick: function onClick() {
4288
4299
  return _this24.setState({
4289
- showExportDialog: false
4300
+ showExportDialog: false,
4301
+ showAllExportOptions: false
4290
4302
  }, function () {
4291
4303
  return _this24._exportObjects({
4292
4304
  isAll: false,
@@ -4302,7 +4314,8 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
4302
4314
  variant: "contained",
4303
4315
  onClick: function onClick() {
4304
4316
  return _this24.setState({
4305
- showExportDialog: false
4317
+ showExportDialog: false,
4318
+ showAllExportOptions: false
4306
4319
  });
4307
4320
  },
4308
4321
  startIcon: /*#__PURE__*/_react["default"].createElement(_iconsMaterial.Close, null)