coolcare-lite-scada-component 4.0.12 → 4.1.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 (89) hide show
  1. package/es/app.js +0 -23
  2. package/es/components/DialogHistory/index.css +0 -22
  3. package/es/components/DialogHistory/index.js +79 -369
  4. package/es/components/DialogImagePicker/GroupPanel/index.js +12 -1
  5. package/es/components/ECharts/index.js +23 -31
  6. package/es/components/FormBindPoint/FreedomScene.js +48 -180
  7. package/es/components/FormBindPoint/ProductionOrDeviceScene.js +45 -14
  8. package/es/components/FormBindPoint/index.js +3 -6
  9. package/es/components/Icon/index.js +1 -1
  10. package/es/components/ImageUploader/index.js +7 -8
  11. package/es/components/ModalChoosePoint/index.js +16 -53
  12. package/es/element/EleFan/Component.js +1 -1
  13. package/es/element/EleFanBySvg/index.js +3 -3
  14. package/es/element/EleGauge/Component.js +5 -3
  15. package/es/element/EleGauge/PropsSet/index.js +2 -1
  16. package/es/element/EleImage/index.js +1 -1
  17. package/es/element/ElePointImage/Component.js +41 -30
  18. package/es/element/ElePointImage/index.js +1 -1
  19. package/es/element/ElePointList/Component.js +5 -3
  20. package/es/element/ElePointList/PropsSet/index.js +2 -1
  21. package/es/element/ElePointValue/Component.js +17 -115
  22. package/es/element/ElePointValue/PropsSet/StatisticsPropsSet/index.js +0 -6
  23. package/es/element/ElePointValue/PropsSet/index.js +2 -1
  24. package/es/element/ElePointValue/index.css +0 -11
  25. package/es/element/ElePointValue/index.js +0 -6
  26. package/es/element/EleShine/Component.js +23 -133
  27. package/es/element/EleShine/PropsSet/OtherPropsSet/index.js +34 -27
  28. package/es/element/EleShine/PropsSet/index.js +1 -9
  29. package/es/element/EleShine/index.js +1 -2
  30. package/es/element/EleState/index.js +1 -1
  31. package/es/element/EleSwitch/Component.js +12 -2
  32. package/es/element/PipeNodes/NodeBL/index.js +1 -1
  33. package/es/element/PipeNodes/NodeBR/index.js +1 -1
  34. package/es/element/PipeNodes/NodeBottom/index.js +1 -1
  35. package/es/element/PipeNodes/NodeCenter/index.js +1 -1
  36. package/es/element/PipeNodes/NodeHorizontal/index.js +1 -1
  37. package/es/element/PipeNodes/NodeLeft/index.js +1 -1
  38. package/es/element/PipeNodes/NodeRight/index.js +1 -1
  39. package/es/element/PipeNodes/NodeTL/index.js +1 -1
  40. package/es/element/PipeNodes/NodeTR/index.js +1 -1
  41. package/es/element/PipeNodes/NodeTop/index.js +1 -1
  42. package/es/element/PipeNodes/NodeVertical/index.js +1 -1
  43. package/es/element/PointCard/PointCard1/Component.js +5 -3
  44. package/es/element/PointCard/PointCard1/PropsSet/index.js +2 -1
  45. package/es/element/PointCard/PointListCard/Component.js +15 -13
  46. package/es/element/PointCard/PointListCard/PropsSet/index.js +2 -1
  47. package/es/element/PointCard/PointListCard/index.js +0 -1
  48. package/es/element/PointControl/PointControl1/Component.js +5 -3
  49. package/es/element/PointControl/PointControl1/PropsSet/index.js +3 -1
  50. package/es/element/PointControl/PointControl3/Component.js +5 -3
  51. package/es/element/PointControl/PointControl3/PropsSet/index.js +2 -1
  52. package/es/element/type.d.ts +12 -4
  53. package/es/element/utils/getValueByExpression.js +0 -3
  54. package/es/element/utils/handleEleEvent.js +1 -11
  55. package/es/element/utils/pointWrite.js +5 -4
  56. package/es/elementCss.css +19 -0
  57. package/es/hooks/usePointWatch.js +1 -1
  58. package/es/models/useEditor.js +8 -14
  59. package/es/pages/display/Player/index.js +123 -444
  60. package/es/pages/display/index.js +2 -2
  61. package/es/pages/document.ejs +1 -1
  62. package/es/pages/editor/PanelLeft/BasicShapeList/listData.js +8 -8
  63. package/es/pages/editor/PanelLeft/ImgGroup/index.js +12 -1
  64. package/es/pages/editor/PanelLeft/MetaEleList/listData.js +14 -14
  65. package/es/pages/editor/PanelLeft/PipeEleList/listData.js +11 -11
  66. package/es/pages/editor/PanelLeft/PointCardEleList/listData.js +6 -6
  67. package/es/pages/editor/PanelLeft/RecommendEleList/listData.js +4 -4
  68. package/es/pages/editor/PanelRight/components/FormLayer/index.js +1 -3
  69. package/es/pages/editor/PanelTop/HotKeyDescribe/index.js +1 -1
  70. package/es/pages/editor/PanelTop/Save/index.js +67 -120
  71. package/es/pages/editor/index.js +135 -223
  72. package/es/services/common/Uploader.js +1 -1
  73. package/es/services/gateway/Device.js +0 -22
  74. package/es/services/gateway/Point.js +25 -46
  75. package/es/services/gateway/typings.d.ts +0 -3
  76. package/es/services/request.js +13 -126
  77. package/es/typings.d.ts +0 -12
  78. package/es/utils/auth.js +2 -6
  79. package/es/utils/pointValueFormat.js +13 -0
  80. package/package.json +15 -16
  81. package/es/components/IconFont/index.js +0 -6
  82. package/es/components/ModalChangePointValue.js +0 -272
  83. package/es/components/PointSelect/DeviceIndicatorTable.js +0 -111
  84. package/es/components/PointSelect/IndicatorSelect.js +0 -182
  85. package/es/element/EleShine/PropsSet/PointAlarmTool.js +0 -99
  86. package/es/pages/editor/utils/scadaChangeLog.js +0 -237
  87. package/es/services/energy/index.js +0 -56
  88. package/es/utils/dataURItoBlob.js +0 -25
  89. package/es/utils/date.js +0 -7
package/es/app.js CHANGED
@@ -2,7 +2,6 @@ function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present,
2
2
  function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
3
3
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
4
4
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
5
- import React from 'react';
6
5
  import NP from 'number-precision';
7
6
  import '@antv/x6-react-shape';
8
7
 
@@ -26,28 +25,6 @@ import "./element/register";
26
25
 
27
26
  // 注册自定义 edge
28
27
  import "./edge/register";
29
- import { getLocale } from 'umi';
30
- import { ConfigProvider } from 'antd';
31
- import zhCN from 'antd/lib/locale/zh_CN';
32
- import enUS from 'antd/lib/locale/en_US';
33
- import moment from 'moment';
34
- import 'moment/locale/zh-cn';
35
- var getCurrentLanguage = function getCurrentLanguage() {
36
- if (typeof window === 'undefined') {
37
- return getLocale() || 'zh-CN';
38
- }
39
- return localStorage.getItem('umi_locale') || localStorage.getItem('coolcare-lite-language') || getLocale() || 'zh-CN';
40
- };
41
- var getAntdLocale = function getAntdLocale() {
42
- var isZh = getCurrentLanguage() !== 'en-US';
43
- moment.locale(isZh ? 'zh-cn' : 'en');
44
- return isZh ? zhCN : enUS;
45
- };
46
- export function rootContainer(container) {
47
- return /*#__PURE__*/React.createElement(ConfigProvider, {
48
- locale: getAntdLocale()
49
- }, container);
50
- }
51
28
 
52
29
  // 关闭 number-precision 的边界检查, 参考 https://github.com/nefe/number-precision/issues/38
53
30
  NP.enableBoundaryChecking(false);
@@ -8,25 +8,3 @@
8
8
  left: 50%;
9
9
  transform: translate(-50%, -50%);
10
10
  }
11
- .totalBox {
12
- display: flex;
13
- flex-direction: column;
14
- width: 300px;
15
- padding-left: 16px;
16
- border-left: 1px solid #e8e8e8;
17
- }
18
- .totalBox .totalItem {
19
- display: flex;
20
- }
21
- .totalBox .totalItem:not(:last-child) {
22
- margin-bottom: 8px;
23
- padding-bottom: 8px;
24
- border-bottom: 1px solid #e8e8e8;
25
- }
26
- .totalBox .totalItem .totalItemTitle {
27
- width: 80px;
28
- font-weight: 600;
29
- }
30
- .totalBox .totalItem .totalItemContent {
31
- flex: 1;
32
- }