versacall-dashboards-library-react 2.0.43 → 2.0.45

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 (34) hide show
  1. package/dist/components/DashboardsCell/DashboardsCell.js +48 -26
  2. package/dist/components/DashboardsCellContent/DashboardsCellContent.js +40 -31
  3. package/dist/components/DashboardsCellFindAndReplace/DashboardsCellFindAndReplace.js +2 -2
  4. package/dist/components/DashboardsCellGlobalActions/DashboardsCellGlobalActions.js +4 -6
  5. package/dist/components/DashboardsCellGlobalConditions/DashboardsCellGlobalConditions.js +268 -158
  6. package/dist/components/DashboardsCellGlobalConditions/DashboardsCellGlobalConditionsNestable.js +59 -39
  7. package/dist/components/DashboardsCellGlobalConditions/DashboardsCellGlobalConditionsOld.js +57 -39
  8. package/dist/components/DashboardsCellGlobalStyles/DashboardsCellGlobalStyles.js +52 -32
  9. package/dist/components/DashboardsCellStyle/DashboardsCellStyle.js +1 -2
  10. package/dist/components/DashboardsCellStyleAlignItems/DashboardsCellStyleAlignItems.js +3 -7
  11. package/dist/components/DashboardsCellStyleBackgroundColor/DashboardsCellStyleBackgroundColor.js +9 -11
  12. package/dist/components/DashboardsCellStyleColor/DashboardsCellStyleColor.js +9 -11
  13. package/dist/components/DashboardsCellStyleDisplay/DashboardsCellStyleDisplay.js +4 -4
  14. package/dist/components/DashboardsCellStyleFontSize/DashboardsCellStyleFontSize.js +1 -1
  15. package/dist/components/DashboardsCellStyleJustifyContent/DashboardsCellStyleJustifyContent.js +3 -7
  16. package/dist/components/DashboardsCellStyleWeightStyleDecoration/DashboardsCellStyleWeightStyleDecoration.js +3 -7
  17. package/dist/components/DashboardsCopyAndPaste/DashboardsCopyAndPaste.js +3 -6
  18. package/dist/components/DashboardsEditor/DashboardsEditor.js +32 -27
  19. package/dist/components/DashboardsGlobalStylesPicker/DashboardsGlobalStylesPicker.js +3 -7
  20. package/dist/components/DashboardsGrid/DashboardsGrid.js +5 -9
  21. package/dist/components/DashboardsMainFreehand/DashboardsMainFreehand.js +39 -28
  22. package/dist/components/DashboardsMainMessaging/DashboardsMainMessaging.js +45 -32
  23. package/dist/components/DashboardsMainTable/DashboardsMainTable.js +41 -26
  24. package/dist/components/DashboardsPreview/DashboardsPreview.js +4 -8
  25. package/dist/components/DashboardsRatio/DashboardsRatio.js +20 -16
  26. package/dist/components/DashboardsRatio/DashboardsRatioOld.js +23 -22
  27. package/dist/components/DashboardsStatusBar/DashboardsStatusBar.js +6 -9
  28. package/dist/components/DashboardsViewer/DashboardsViewer.js +1 -1
  29. package/dist/components/WidgetParameters/WidgetParameters.js +27 -24
  30. package/dist/functions/addTranslations.js +11 -8
  31. package/dist/functions/calculateDashboardVariables.js +12 -15
  32. package/dist/functions/convertColorObject.js +1 -1
  33. package/dist/functions/convertSecondsToElapsedTime.js +5 -5
  34. package/package.json +4 -3
@@ -39,11 +39,8 @@ var _DashboardsCell = _interopRequireDefault(require("../DashboardsCell"));
39
39
  require("react-nestable-fork/dist/Nestable/Nestable.css");
40
40
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
41
41
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
42
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
43
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
44
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
45
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
46
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // import Fab from '@material-ui/core/Fab';
42
+ // import Fab from '@material-ui/core/Fab';
43
+
47
44
  const muiStyles = () => ({
48
45
  dialog: {
49
46
  backgroundColor: '#eff4f8'
@@ -140,13 +137,13 @@ const operatorOptions = [{
140
137
  label: '<'
141
138
  }, {
142
139
  value: '!==',
143
- label: "".concat(String.fromCharCode(0x2260))
140
+ label: `${String.fromCharCode(0x2260)}`
144
141
  }, {
145
142
  value: '>=',
146
- label: "".concat(String.fromCharCode(0x2265))
143
+ label: `${String.fromCharCode(0x2265)}`
147
144
  }, {
148
145
  value: '<=',
149
- label: "".concat(String.fromCharCode(0x2264))
146
+ label: `${String.fromCharCode(0x2264)}`
150
147
  }];
151
148
  const formatCondition = original => {
152
149
  let formatted = original;
@@ -291,11 +288,17 @@ class DashboardsCellGlobalConditions extends _react.Component {
291
288
  for (let i = 0; i < newCell.styleIds.length; i++) {
292
289
  const findStyle = this.props.styles.find(searchStyle => searchStyle.id === newCell.styleIds[i]);
293
290
  if (findStyle) {
294
- newCell.custom.style = _objectSpread(_objectSpread({}, newCell.custom.style), findStyle.options);
291
+ newCell.custom.style = {
292
+ ...newCell.custom.style,
293
+ ...findStyle.options
294
+ };
295
295
  }
296
296
  }
297
297
  }
298
- newCell.custom.style = _objectSpread(_objectSpread({}, newCell.custom.style), newCell.style);
298
+ newCell.custom.style = {
299
+ ...newCell.custom.style,
300
+ ...newCell.style
301
+ };
299
302
  return /*#__PURE__*/_react.default.createElement("div", {
300
303
  style: {
301
304
  width: 120
@@ -319,7 +322,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
319
322
  row
320
323
  } = _ref4;
321
324
  return /*#__PURE__*/_react.default.createElement("span", null, this.props.intl.formatMessage({
322
- id: "__".concat(row.content.type)
325
+ id: `__${row.content.type}`
323
326
  }));
324
327
  }
325
328
  actionsCustomCell(_ref5) {
@@ -357,20 +360,20 @@ class DashboardsCellGlobalConditions extends _react.Component {
357
360
  }, /*#__PURE__*/_react.default.createElement(_Delete.default, null))));
358
361
  }
359
362
  updateCondition(change) {
360
- const conditions = JSON.parse(JSON.stringify(this.props.value["".concat(this.state.typeCondition, "Conditions")]));
363
+ const conditions = JSON.parse(JSON.stringify(this.props.value[`${this.state.typeCondition}Conditions`]));
361
364
  if (this.state.advanced) {
362
365
  conditions[this.state.conditionIndex].condition = change.value;
363
366
  } else {
364
367
  const split = conditions[this.state.conditionIndex].condition.split(/[ ,]+/);
365
368
  switch (change.stringIndex) {
366
369
  case 0:
367
- conditions[this.state.conditionIndex].condition = "".concat(change.value, " ").concat(split[1], " ").concat(split[2]);
370
+ conditions[this.state.conditionIndex].condition = `${change.value} ${split[1]} ${split[2]}`;
368
371
  break;
369
372
  case 1:
370
- conditions[this.state.conditionIndex].condition = "".concat(split[0], " ").concat(change.value, " ").concat(split[2]);
373
+ conditions[this.state.conditionIndex].condition = `${split[0]} ${change.value} ${split[2]}`;
371
374
  break;
372
375
  case 2:
373
- conditions[this.state.conditionIndex].condition = "".concat(split[0], " ").concat(split[1], " ").concat(change.value);
376
+ conditions[this.state.conditionIndex].condition = `${split[0]} ${split[1]} ${change.value}`;
374
377
  break;
375
378
  default:
376
379
  conditions[this.state.conditionIndex].condition = '1 > 0';
@@ -378,7 +381,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
378
381
  }
379
382
  }
380
383
  this.props.updateValue({
381
- ["".concat(this.state.typeCondition, "Conditions")]: conditions
384
+ [`${this.state.typeCondition}Conditions`]: conditions
382
385
  });
383
386
  }
384
387
  updateStyleIds(value) {
@@ -391,7 +394,10 @@ class DashboardsCellGlobalConditions extends _react.Component {
391
394
  updateStyle(value) {
392
395
  const styleConditions = JSON.parse(JSON.stringify(this.props.value.styleConditions));
393
396
  if (Object.keys(value.style).length > 0) {
394
- styleConditions[this.state.conditionIndex].style = _objectSpread(_objectSpread({}, styleConditions[this.state.conditionIndex].style), value.style);
397
+ styleConditions[this.state.conditionIndex].style = {
398
+ ...styleConditions[this.state.conditionIndex].style,
399
+ ...value.style
400
+ };
395
401
  Object.keys(styleConditions[this.state.conditionIndex].style).forEach(key => {
396
402
  if (styleConditions[this.state.conditionIndex].style[key] === 'delete') {
397
403
  delete styleConditions[this.state.conditionIndex].style[key];
@@ -454,7 +460,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
454
460
  contentConditions: conditions.contentConditions
455
461
  });
456
462
  this.setState(prevState => ({
457
- conditionIndex: "".concat(conditions[prevState.tabIndex === 0 ? 'styleConditions' : 'contentConditions'].length),
463
+ conditionIndex: `${conditions[prevState.tabIndex === 0 ? 'styleConditions' : 'contentConditions'].length}`,
458
464
  advanced: false
459
465
  }));
460
466
  }
@@ -523,7 +529,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
523
529
  }, formatCondition(item.condition)), tabIndex === 0 && this.stylePreviewCustomCell({
524
530
  row: item
525
531
  }), tabIndex === 1 && item.content && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, intl.formatMessage({
526
- id: "__".concat(item.content.type)
532
+ id: `__${item.content.type}`
527
533
  })), handler, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
528
534
  onClick: e => {
529
535
  e.stopPropagation();
@@ -568,15 +574,17 @@ class DashboardsCellGlobalConditions extends _react.Component {
568
574
  const nestItems = [];
569
575
  if (tabIndex === 0) {
570
576
  value.styleConditions.forEach((condition, index) => {
571
- nestItems.push(_objectSpread(_objectSpread({}, condition), {}, {
577
+ nestItems.push({
578
+ ...condition,
572
579
  index: index
573
- }));
580
+ });
574
581
  });
575
582
  } else {
576
583
  value.contentConditions.forEach((condition, index) => {
577
- nestItems.push(_objectSpread(_objectSpread({}, condition), {}, {
584
+ nestItems.push({
585
+ ...condition,
578
586
  index: index
579
- }));
587
+ });
580
588
  });
581
589
  }
582
590
  return /*#__PURE__*/_react.default.createElement(_Grid.default, {
@@ -588,15 +596,15 @@ class DashboardsCellGlobalConditions extends _react.Component {
588
596
  })
589
597
  }, /*#__PURE__*/_react.default.createElement("div", {
590
598
  style: style.button
591
- }, "".concat(intl.formatMessage({
599
+ }, `${intl.formatMessage({
592
600
  id: '__conditions'
593
- })).concat(totalConditions > 0 ? " (".concat(totalConditions, ")") : '')), totalConditions > 0 && /*#__PURE__*/_react.default.createElement("div", {
601
+ })}${totalConditions > 0 ? ` (${totalConditions})` : ''}`), totalConditions > 0 && /*#__PURE__*/_react.default.createElement("div", {
594
602
  style: style.information
595
- }, value.styleConditions.length > 0 && /*#__PURE__*/_react.default.createElement("div", null, "".concat(intl.formatMessage({
603
+ }, value.styleConditions.length > 0 && /*#__PURE__*/_react.default.createElement("div", null, `${intl.formatMessage({
596
604
  id: '__style'
597
- }), ": ").concat(value.styleConditions.length)), value.contentConditions.length > 0 && /*#__PURE__*/_react.default.createElement("div", null, "".concat(intl.formatMessage({
605
+ })}: ${value.styleConditions.length}`), value.contentConditions.length > 0 && /*#__PURE__*/_react.default.createElement("div", null, `${intl.formatMessage({
598
606
  id: '__content'
599
- }), ": ").concat(value.contentConditions.length)))), open && /*#__PURE__*/_react.default.createElement(_Dialog.default, {
607
+ })}: ${value.contentConditions.length}`))), open && /*#__PURE__*/_react.default.createElement(_Dialog.default, {
600
608
  maxWidth: "xl",
601
609
  onClose: () => this.setState({
602
610
  open: false,
@@ -638,15 +646,15 @@ class DashboardsCellGlobalConditions extends _react.Component {
638
646
  centered: true
639
647
  }, /*#__PURE__*/_react.default.createElement(_Tab.default, {
640
648
  id: "style",
641
- label: "".concat(intl.formatMessage({
649
+ label: `${intl.formatMessage({
642
650
  id: '__style'
643
- }), " (").concat(value.styleConditions.length, ")"),
651
+ })} (${value.styleConditions.length})`,
644
652
  style: tabStyle(tabIndex === 0)
645
653
  }), /*#__PURE__*/_react.default.createElement(_Tab.default, {
646
654
  id: "content",
647
- label: "".concat(intl.formatMessage({
655
+ label: `${intl.formatMessage({
648
656
  id: '__content'
649
- }), " (").concat(value.contentConditions.length, ")"),
657
+ })} (${value.contentConditions.length})`,
650
658
  style: tabStyle(tabIndex === 1)
651
659
  }))), /*#__PURE__*/_react.default.createElement("div", {
652
660
  style: style.root
@@ -658,9 +666,15 @@ class DashboardsCellGlobalConditions extends _react.Component {
658
666
  xs: 7,
659
667
  item: true
660
668
  }, /*#__PURE__*/_react.default.createElement("div", {
661
- style: _objectSpread(_objectSpread({}, style.paper), style.fullHeight)
669
+ style: {
670
+ ...style.paper,
671
+ ...style.fullHeight
672
+ }
662
673
  }, /*#__PURE__*/_react.default.createElement("div", {
663
- style: _objectSpread(_objectSpread({}, style.block), style.scrollHolder)
674
+ style: {
675
+ ...style.block,
676
+ ...style.scrollHolder
677
+ }
664
678
  }, /*#__PURE__*/_react.default.createElement("div", {
665
679
  style: style.scroll,
666
680
  className: _versacallCoreLibraryReact.ScrollbarStyles.scroll
@@ -675,9 +689,15 @@ class DashboardsCellGlobalConditions extends _react.Component {
675
689
  xs: 5,
676
690
  item: true
677
691
  }, /*#__PURE__*/_react.default.createElement("div", {
678
- style: _objectSpread(_objectSpread({}, style.paper), style.fullHeight)
692
+ style: {
693
+ ...style.paper,
694
+ ...style.fullHeight
695
+ }
679
696
  }, /*#__PURE__*/_react.default.createElement("div", {
680
- style: _objectSpread(_objectSpread({}, style.block), style.scrollHolder)
697
+ style: {
698
+ ...style.block,
699
+ ...style.scrollHolder
700
+ }
681
701
  }, currentCondition && /*#__PURE__*/_react.default.createElement(_Paper.default, {
682
702
  style: style.scroll,
683
703
  className: _versacallCoreLibraryReact.ScrollbarStyles.scroll
@@ -708,7 +728,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
708
728
  stringIndex: 0
709
729
  }),
710
730
  selectOption: e => this.updateCondition({
711
- value: "~".concat(e.name),
731
+ value: `~${e.name}`,
712
732
  stringIndex: 0
713
733
  })
714
734
  })), /*#__PURE__*/_react.default.createElement(_Grid.default, {
@@ -742,7 +762,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
742
762
  stringIndex: 2
743
763
  }),
744
764
  selectOption: e => this.updateCondition({
745
- value: "~".concat(e.name),
765
+ value: `~${e.name}`,
746
766
  stringIndex: 2
747
767
  })
748
768
  }))), advanced && /*#__PURE__*/_react.default.createElement(_Grid.default, {
@@ -760,7 +780,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
760
780
  value: e
761
781
  }),
762
782
  selectOption: e => this.updateCondition({
763
- value: "~".concat(e.name)
783
+ value: `~${e.name}`
764
784
  })
765
785
  })), /*#__PURE__*/_react.default.createElement(_Grid.default, {
766
786
  align: "center",
@@ -34,11 +34,6 @@ var _DashboardsPreview = _interopRequireDefault(require("../DashboardsPreview"))
34
34
  var _DashboardsCell = _interopRequireDefault(require("../DashboardsCell"));
35
35
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
36
36
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
37
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
38
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
39
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
40
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
41
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
42
37
  const muiStyles = () => ({
43
38
  dialog: {
44
39
  backgroundColor: '#eff4f8'
@@ -119,13 +114,13 @@ const operatorOptions = [{
119
114
  label: '<'
120
115
  }, {
121
116
  value: '!==',
122
- label: "".concat(String.fromCharCode(0x2260))
117
+ label: `${String.fromCharCode(0x2260)}`
123
118
  }, {
124
119
  value: '>=',
125
- label: "".concat(String.fromCharCode(0x2265))
120
+ label: `${String.fromCharCode(0x2265)}`
126
121
  }, {
127
122
  value: '<=',
128
- label: "".concat(String.fromCharCode(0x2264))
123
+ label: `${String.fromCharCode(0x2264)}`
129
124
  }];
130
125
  const tabStyle = active => ({
131
126
  border: active ? '2px solid #008bcc' : '',
@@ -256,11 +251,17 @@ class DashboardsCellGlobalConditions extends _react.Component {
256
251
  for (let i = 0; i < newCell.styleIds.length; i++) {
257
252
  const findStyle = this.props.styles.find(searchStyle => searchStyle.id === newCell.styleIds[i]);
258
253
  if (findStyle) {
259
- newCell.custom.style = _objectSpread(_objectSpread({}, newCell.custom.style), findStyle.options);
254
+ newCell.custom.style = {
255
+ ...newCell.custom.style,
256
+ ...findStyle.options
257
+ };
260
258
  }
261
259
  }
262
260
  }
263
- newCell.custom.style = _objectSpread(_objectSpread({}, newCell.custom.style), newCell.style);
261
+ newCell.custom.style = {
262
+ ...newCell.custom.style,
263
+ ...newCell.style
264
+ };
264
265
  return /*#__PURE__*/_react.default.createElement("div", {
265
266
  style: {
266
267
  width: 120
@@ -284,7 +285,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
284
285
  row
285
286
  } = _ref4;
286
287
  return /*#__PURE__*/_react.default.createElement("span", null, this.props.intl.formatMessage({
287
- id: "__".concat(row.content.type)
288
+ id: `__${row.content.type}`
288
289
  }));
289
290
  }
290
291
  actionsCustomCell(_ref5) {
@@ -322,20 +323,20 @@ class DashboardsCellGlobalConditions extends _react.Component {
322
323
  }, /*#__PURE__*/_react.default.createElement(_Delete.default, null))));
323
324
  }
324
325
  updateCondition(change) {
325
- const conditions = JSON.parse(JSON.stringify(this.props.value["".concat(this.state.typeCondition, "Conditions")]));
326
+ const conditions = JSON.parse(JSON.stringify(this.props.value[`${this.state.typeCondition}Conditions`]));
326
327
  if (this.state.advanced) {
327
328
  conditions[this.state.conditionIndex].condition = change.value;
328
329
  } else {
329
330
  const split = conditions[this.state.conditionIndex].condition.split(/[ ,]+/);
330
331
  switch (change.stringIndex) {
331
332
  case 0:
332
- conditions[this.state.conditionIndex].condition = "".concat(change.value, " ").concat(split[1], " ").concat(split[2]);
333
+ conditions[this.state.conditionIndex].condition = `${change.value} ${split[1]} ${split[2]}`;
333
334
  break;
334
335
  case 1:
335
- conditions[this.state.conditionIndex].condition = "".concat(split[0], " ").concat(change.value, " ").concat(split[2]);
336
+ conditions[this.state.conditionIndex].condition = `${split[0]} ${change.value} ${split[2]}`;
336
337
  break;
337
338
  case 2:
338
- conditions[this.state.conditionIndex].condition = "".concat(split[0], " ").concat(split[1], " ").concat(change.value);
339
+ conditions[this.state.conditionIndex].condition = `${split[0]} ${split[1]} ${change.value}`;
339
340
  break;
340
341
  default:
341
342
  conditions[this.state.conditionIndex].condition = '1 > 0';
@@ -343,7 +344,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
343
344
  }
344
345
  }
345
346
  this.props.updateValue({
346
- ["".concat(this.state.typeCondition, "Conditions")]: conditions
347
+ [`${this.state.typeCondition}Conditions`]: conditions
347
348
  });
348
349
  }
349
350
  updateStyleIds(value) {
@@ -356,7 +357,10 @@ class DashboardsCellGlobalConditions extends _react.Component {
356
357
  updateStyle(value) {
357
358
  const styleConditions = JSON.parse(JSON.stringify(this.props.value.styleConditions));
358
359
  if (Object.keys(value.style).length > 0) {
359
- styleConditions[this.state.conditionIndex].style = _objectSpread(_objectSpread({}, styleConditions[this.state.conditionIndex].style), value.style);
360
+ styleConditions[this.state.conditionIndex].style = {
361
+ ...styleConditions[this.state.conditionIndex].style,
362
+ ...value.style
363
+ };
360
364
  Object.keys(styleConditions[this.state.conditionIndex].style).forEach(key => {
361
365
  if (styleConditions[this.state.conditionIndex].style[key] === 'delete') {
362
366
  delete styleConditions[this.state.conditionIndex].style[key];
@@ -404,7 +408,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
404
408
  contentConditions: conditions.contentConditions
405
409
  });
406
410
  this.setState({
407
- conditionIndex: "".concat(index),
411
+ conditionIndex: `${index}`,
408
412
  advanced: false,
409
413
  typeCondition: typeCondition
410
414
  });
@@ -419,7 +423,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
419
423
  contentConditions: conditions.contentConditions
420
424
  });
421
425
  this.setState(prevState => ({
422
- conditionIndex: "".concat(conditions[prevState.tabIndex === 0 ? 'styleConditions' : 'contentConditions'].length),
426
+ conditionIndex: `${conditions[prevState.tabIndex === 0 ? 'styleConditions' : 'contentConditions'].length}`,
423
427
  advanced: false
424
428
  }));
425
429
  }
@@ -480,15 +484,15 @@ class DashboardsCellGlobalConditions extends _react.Component {
480
484
  })
481
485
  }, /*#__PURE__*/_react.default.createElement("div", {
482
486
  style: style.button
483
- }, "".concat(intl.formatMessage({
487
+ }, `${intl.formatMessage({
484
488
  id: '__conditions'
485
- })).concat(totalConditions > 0 ? " (".concat(totalConditions, ")") : '')), totalConditions > 0 && /*#__PURE__*/_react.default.createElement("div", {
489
+ })}${totalConditions > 0 ? ` (${totalConditions})` : ''}`), totalConditions > 0 && /*#__PURE__*/_react.default.createElement("div", {
486
490
  style: style.information
487
- }, value.styleConditions.length > 0 && /*#__PURE__*/_react.default.createElement("div", null, "".concat(intl.formatMessage({
491
+ }, value.styleConditions.length > 0 && /*#__PURE__*/_react.default.createElement("div", null, `${intl.formatMessage({
488
492
  id: '__style'
489
- }), ": ").concat(value.styleConditions.length)), value.contentConditions.length > 0 && /*#__PURE__*/_react.default.createElement("div", null, "".concat(intl.formatMessage({
493
+ })}: ${value.styleConditions.length}`), value.contentConditions.length > 0 && /*#__PURE__*/_react.default.createElement("div", null, `${intl.formatMessage({
490
494
  id: '__content'
491
- }), ": ").concat(value.contentConditions.length)))), open && /*#__PURE__*/_react.default.createElement(_Dialog.default, {
495
+ })}: ${value.contentConditions.length}`))), open && /*#__PURE__*/_react.default.createElement(_Dialog.default, {
492
496
  maxWidth: "lg",
493
497
  onClose: () => this.setState({
494
498
  open: false,
@@ -530,15 +534,15 @@ class DashboardsCellGlobalConditions extends _react.Component {
530
534
  centered: true
531
535
  }, /*#__PURE__*/_react.default.createElement(_Tab.default, {
532
536
  id: "style",
533
- label: "".concat(intl.formatMessage({
537
+ label: `${intl.formatMessage({
534
538
  id: '__style'
535
- }), " (").concat(value.styleConditions.length, ")"),
539
+ })} (${value.styleConditions.length})`,
536
540
  style: tabStyle(tabIndex === 0)
537
541
  }), /*#__PURE__*/_react.default.createElement(_Tab.default, {
538
542
  id: "content",
539
- label: "".concat(intl.formatMessage({
543
+ label: `${intl.formatMessage({
540
544
  id: '__content'
541
- }), " (").concat(value.contentConditions.length, ")"),
545
+ })} (${value.contentConditions.length})`,
542
546
  style: tabStyle(tabIndex === 1)
543
547
  }))), /*#__PURE__*/_react.default.createElement("div", {
544
548
  style: style.root
@@ -550,9 +554,15 @@ class DashboardsCellGlobalConditions extends _react.Component {
550
554
  xs: 7,
551
555
  item: true
552
556
  }, /*#__PURE__*/_react.default.createElement(_Paper.default, {
553
- style: _objectSpread(_objectSpread({}, style.paper), style.fullHeight)
557
+ style: {
558
+ ...style.paper,
559
+ ...style.fullHeight
560
+ }
554
561
  }, /*#__PURE__*/_react.default.createElement("div", {
555
- style: _objectSpread(_objectSpread({}, style.block), style.scrollHolder)
562
+ style: {
563
+ ...style.block,
564
+ ...style.scrollHolder
565
+ }
556
566
  }, /*#__PURE__*/_react.default.createElement("div", {
557
567
  style: style.scroll
558
568
  }, /*#__PURE__*/_react.default.createElement(_versacallCoreLibraryReact.CoreTable, {
@@ -567,11 +577,13 @@ class DashboardsCellGlobalConditions extends _react.Component {
567
577
  typeCondition: row.typeCondition
568
578
  });
569
579
  },
570
- data: tabIndex === 0 ? value.styleConditions.map((styleCondition, index) => _objectSpread(_objectSpread({}, styleCondition), {}, {
571
- index: "".concat(index),
580
+ data: tabIndex === 0 ? value.styleConditions.map((styleCondition, index) => ({
581
+ ...styleCondition,
582
+ index: `${index}`,
572
583
  typeCondition: 'style'
573
- })) : value.contentConditions.map((contentCondition, index) => _objectSpread(_objectSpread({}, contentCondition), {}, {
574
- index: "".concat(index),
584
+ })) : value.contentConditions.map((contentCondition, index) => ({
585
+ ...contentCondition,
586
+ index: `${index}`,
575
587
  typeCondition: 'content'
576
588
  })),
577
589
  hover: true
@@ -587,9 +599,15 @@ class DashboardsCellGlobalConditions extends _react.Component {
587
599
  xs: 5,
588
600
  item: true
589
601
  }, /*#__PURE__*/_react.default.createElement(_Paper.default, {
590
- style: _objectSpread(_objectSpread({}, style.paper), style.fullHeight)
602
+ style: {
603
+ ...style.paper,
604
+ ...style.fullHeight
605
+ }
591
606
  }, /*#__PURE__*/_react.default.createElement("div", {
592
- style: _objectSpread(_objectSpread({}, style.block), style.scrollHolder)
607
+ style: {
608
+ ...style.block,
609
+ ...style.scrollHolder
610
+ }
593
611
  }, /*#__PURE__*/_react.default.createElement("div", {
594
612
  style: style.scroll
595
613
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -616,7 +634,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
616
634
  stringIndex: 0
617
635
  }),
618
636
  selectOption: e => this.updateCondition({
619
- value: "~".concat(e.name),
637
+ value: `~${e.name}`,
620
638
  stringIndex: 0
621
639
  })
622
640
  })), /*#__PURE__*/_react.default.createElement(_Grid.default, {
@@ -653,7 +671,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
653
671
  stringIndex: 2
654
672
  }),
655
673
  selectOption: e => this.updateCondition({
656
- value: "~".concat(e.name),
674
+ value: `~${e.name}`,
657
675
  stringIndex: 2
658
676
  })
659
677
  }))), advanced && /*#__PURE__*/_react.default.createElement(_Grid.default, {
@@ -671,7 +689,7 @@ class DashboardsCellGlobalConditions extends _react.Component {
671
689
  value: e
672
690
  }),
673
691
  selectOption: e => this.updateCondition({
674
- value: "~".concat(e.name)
692
+ value: `~${e.name}`
675
693
  })
676
694
  })), /*#__PURE__*/_react.default.createElement(_Grid.default, {
677
695
  align: "center",