@vtx/modals2 5.0.4 → 5.0.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.
Files changed (104) hide show
  1. package/lib/_components/vm-bar-charts/index.js +9 -5
  2. package/lib/_components/vm-extra-tab/style/index.less +6 -3
  3. package/lib/_components/vm-map/index.js +1 -1
  4. package/lib/_components/vm-pie-charts/index.js +3 -1
  5. package/lib/_components/vm-tag/style/index.less +1 -0
  6. package/lib/_components/vm-video/HistoryGrid.js +52 -0
  7. package/lib/_components/vm-video/RealtimeGrid.js +8 -4
  8. package/lib/_components/vm-video/index.js +298 -112
  9. package/lib/_components/vm-video/index.less +10 -1
  10. package/lib/_service/index.js +5 -0
  11. package/lib/_util/index.js +0 -5
  12. package/lib/vtx-base-modal/Header/index.js +3 -1
  13. package/lib/vtx-base-modal/index.js +6 -3
  14. package/lib/vtx-car-modal/components/Info/index.js +2 -1
  15. package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +0 -1
  16. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +131 -104
  17. package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +206 -158
  18. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +19 -4
  19. package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +33 -0
  20. package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +255 -0
  21. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +75 -0
  22. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.less +22 -0
  23. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +87 -0
  24. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.less +0 -0
  25. package/lib/vtx-car-modal/content/Unmanned/index.js +10 -0
  26. package/lib/vtx-car-modal/content/index.js +2 -1
  27. package/lib/vtx-car-modal/imgs/butter.png +0 -0
  28. package/lib/vtx-car-modal/imgs/butter_dark.png +0 -0
  29. package/lib/vtx-car-modal/imgs/clock.png +0 -0
  30. package/lib/vtx-car-modal/imgs/clock_dark.png +0 -0
  31. package/lib/vtx-car-modal/imgs/clock_green.png +0 -0
  32. package/lib/vtx-car-modal/imgs/clock_green_dark.png +0 -0
  33. package/lib/vtx-car-modal/imgs/factor_bg.png +0 -0
  34. package/lib/vtx-car-modal/imgs/track.png +0 -0
  35. package/lib/vtx-car-modal/imgs/track_dark.png +0 -0
  36. package/lib/vtx-car-modal/imgs/track_green.png +0 -0
  37. package/lib/vtx-car-modal/imgs/track_green_dark.png +0 -0
  38. package/lib/vtx-car-modal/imgs/water.png +0 -0
  39. package/lib/vtx-car-modal/imgs/water_dark.png +0 -0
  40. package/lib/vtx-car-modal/index.js +9 -3
  41. package/lib/vtx-default-modal/components/BaseInfo/index.js +6 -3
  42. package/lib/vtx-default-modal/index.js +9 -6
  43. package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +0 -1
  44. package/lib/vtx-df-modal/index.js +0 -2
  45. package/lib/vtx-housing-estate-modal/api.js +559 -0
  46. package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +129 -0
  47. package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +67 -0
  48. package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +65 -0
  49. package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +67 -0
  50. package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +109 -0
  51. package/lib/vtx-housing-estate-modal/components/Alarm/index.js +99 -0
  52. package/lib/vtx-housing-estate-modal/components/Alarm/index.less +54 -0
  53. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +179 -0
  54. package/lib/vtx-housing-estate-modal/components/OverView/Left.js +85 -0
  55. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +172 -0
  56. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +177 -0
  57. package/lib/vtx-housing-estate-modal/components/OverView/index.js +56 -0
  58. package/lib/vtx-housing-estate-modal/components/OverView/index.less +163 -0
  59. package/lib/vtx-housing-estate-modal/components/TFRD/index.js +133 -0
  60. package/lib/vtx-housing-estate-modal/components/TFRD/index.less +12 -0
  61. package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +66 -0
  62. package/lib/vtx-housing-estate-modal/components/WGGS/index.js +68 -0
  63. package/lib/vtx-housing-estate-modal/components/WGGS/index.less +49 -0
  64. package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +119 -0
  65. package/lib/vtx-housing-estate-modal/components/WGXW/index.js +121 -0
  66. package/lib/vtx-housing-estate-modal/components/WGXW/index.less +97 -0
  67. package/lib/vtx-housing-estate-modal/components/index.js +5 -0
  68. package/lib/vtx-housing-estate-modal/config.js +77 -0
  69. package/lib/vtx-housing-estate-modal/imgs/avatar.png +0 -0
  70. package/lib/vtx-housing-estate-modal/imgs/avatar_light.png +0 -0
  71. package/lib/vtx-housing-estate-modal/imgs/ddypz.png +0 -0
  72. package/lib/vtx-housing-estate-modal/imgs/ddypz_light.png +0 -0
  73. package/lib/vtx-housing-estate-modal/imgs/gzxjcx.png +0 -0
  74. package/lib/vtx-housing-estate-modal/imgs/hjglcx.png +0 -0
  75. package/lib/vtx-housing-estate-modal/imgs/hmd.png +0 -0
  76. package/lib/vtx-housing-estate-modal/imgs/hmd_light.png +0 -0
  77. package/lib/vtx-housing-estate-modal/imgs/manage_bg.png +0 -0
  78. package/lib/vtx-housing-estate-modal/imgs/manage_bg_light.png +0 -0
  79. package/lib/vtx-housing-estate-modal/imgs/rank.png +0 -0
  80. package/lib/vtx-housing-estate-modal/imgs/rank_light.png +0 -0
  81. package/lib/vtx-housing-estate-modal/imgs/tfcs.png +0 -0
  82. package/lib/vtx-housing-estate-modal/imgs/tfcs_light.png +0 -0
  83. package/lib/vtx-housing-estate-modal/imgs/tfd.png +0 -0
  84. package/lib/vtx-housing-estate-modal/imgs/tfd_light.png +0 -0
  85. package/lib/vtx-housing-estate-modal/imgs/tfhs.png +0 -0
  86. package/lib/vtx-housing-estate-modal/imgs/tfhs_light.png +0 -0
  87. package/lib/vtx-housing-estate-modal/imgs/wgmsr.png +0 -0
  88. package/lib/vtx-housing-estate-modal/imgs/wgmsr_light.png +0 -0
  89. package/lib/vtx-housing-estate-modal/imgs/yyxj.png +0 -0
  90. package/lib/vtx-housing-estate-modal/imgs/yyxj_light.png +0 -0
  91. package/lib/vtx-housing-estate-modal/index.js +108 -0
  92. package/lib/vtx-housing-estate-modal/style/index.js +4 -0
  93. package/lib/vtx-housing-estate-modal/style/index.less +1 -0
  94. package/lib/vtx-road-modal/components/Calendar/index.js +1 -1
  95. package/lib/vtx-road-modal/components/Statistical/index.js +1 -1
  96. package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +0 -1
  97. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +15 -5
  98. package/lib/vtx-staff-modal/index.js +4 -1
  99. package/lib/vtx-tfd-modal/components/BaseInfo/index.js +1 -8
  100. package/lib/vtx-zg-modal/components/BaseInfo/index.js +0 -1
  101. package/package.json +1 -1
  102. package/lib/resources/jessibuca/decoder.js +0 -3839
  103. package/lib/resources/jessibuca/decoder.wasm +0 -0
  104. package/lib/resources/jessibuca/jessibuca.js +0 -5350
@@ -31,7 +31,11 @@ var BarCharts = function BarCharts(_ref) {
31
31
  _ref$showLegend = _ref.showLegend,
32
32
  showLegend = _ref$showLegend === void 0 ? true : _ref$showLegend,
33
33
  _ref$gridOptions = _ref.gridOptions,
34
- gridOptions = _ref$gridOptions === void 0 ? {} : _ref$gridOptions;
34
+ gridOptions = _ref$gridOptions === void 0 ? {} : _ref$gridOptions,
35
+ _ref$otherProps = _ref.otherProps,
36
+ otherProps = _ref$otherProps === void 0 ? {} : _ref$otherProps,
37
+ _ref$tooltipProps = _ref.tooltipProps,
38
+ tooltipProps = _ref$tooltipProps === void 0 ? {} : _ref$tooltipProps;
35
39
  var lineColors = ['#1FB64D'];
36
40
  var _useSettings = useSettings(),
37
41
  chartFontColor = _useSettings.chartFontColor,
@@ -50,8 +54,8 @@ var BarCharts = function BarCharts(_ref) {
50
54
  green: green,
51
55
  blue: blue
52
56
  };
53
- var option = {
54
- tooltip: {
57
+ var option = _objectSpread({
58
+ tooltip: _objectSpread({
55
59
  trigger: 'axis',
56
60
  valueFormatter: function valueFormatter(value) {
57
61
  var _findUnit;
@@ -68,7 +72,7 @@ var BarCharts = function BarCharts(_ref) {
68
72
  var leftSize = point[0] - size.contentSize[0];
69
73
  return [point[0] + size.contentSize[0] > size.viewSize[0] ? leftSize < 0 ? '35%' : leftSize : point[0], '0%'];
70
74
  }
71
- },
75
+ }, tooltipProps),
72
76
  legend: {
73
77
  right: 'center',
74
78
  itemGap: 8,
@@ -160,7 +164,7 @@ var BarCharts = function BarCharts(_ref) {
160
164
  smooth: true
161
165
  }, item);
162
166
  })))
163
- };
167
+ }, otherProps);
164
168
  return loading ? /*#__PURE__*/_jsx(Row, {
165
169
  style: {
166
170
  height: height
@@ -12,15 +12,19 @@
12
12
  --shadow-color: rgba(0, 126, 255, 0.2);
13
13
  }
14
14
 
15
- height: 28px;
16
- line-height: 28px;
15
+ height: 32px;
16
+ line-height: 31px;
17
17
  display: flex;
18
18
  justify-content: space-between;
19
19
  align-items: center;
20
20
  font-size: 14px;
21
21
  background: var(--bg);
22
22
  border-radius: 6px;
23
+ padding: 2px;
23
24
  &-item {
25
+ height: 28px;
26
+ width: 28px;
27
+ text-align: center;
24
28
  &:first-child {
25
29
  border-top-left-radius: 6px;
26
30
  border-bottom-left-radius: 6px;
@@ -32,7 +36,6 @@
32
36
  padding: 0 5px;
33
37
  cursor: pointer;
34
38
  color: var(--color);
35
- box-shadow: 0px 0px 2px 0px var(--shadow-color);
36
39
  &.active {
37
40
  border-radius: 6px;
38
41
  color: var(--active-color);
@@ -137,7 +137,7 @@ export default function VmOlMap(_ref) {
137
137
  var points = formatData(mapPoints);
138
138
  var polygons = formatData(mapPolygons, geometryType);
139
139
  function fitView() {
140
- if (mapRef.current && ((mapPoints === null || mapPoints === void 0 ? void 0 : mapPoints.length) > 0 || (mapPolygons === null || mapPolygons === void 0 ? void 0 : mapPolygons.length) > 0)) {
140
+ if (mapRef.current.hasOwnProperty('tk') && ((mapPoints === null || mapPoints === void 0 ? void 0 : mapPoints.length) > 0 || (mapPolygons === null || mapPolygons === void 0 ? void 0 : mapPolygons.length) > 0)) {
141
141
  var _mapRef$current, _polygons$data, _points$data;
142
142
  (_mapRef$current = mapRef.current) === null || _mapRef$current === void 0 || _mapRef$current.fitView({
143
143
  geometryInfo: ((polygons === null || polygons === void 0 || (_polygons$data = polygons.data) === null || _polygons$data === void 0 ? void 0 : _polygons$data[0]) || (points === null || points === void 0 || (_points$data = points.data) === null || _points$data === void 0 ? void 0 : _points$data[0])).geometryInfo
@@ -24,6 +24,8 @@ var PieCharts = function PieCharts(_ref) {
24
24
  height = _ref$height === void 0 ? '100%' : _ref$height,
25
25
  _ref$legendConfig = _ref.legendConfig,
26
26
  legendConfig = _ref$legendConfig === void 0 ? {} : _ref$legendConfig,
27
+ _ref$spaceLength = _ref.spaceLength,
28
+ spaceLength = _ref$spaceLength === void 0 ? 20 : _ref$spaceLength,
27
29
  _ref$nameLength = _ref.nameLength,
28
30
  nameLength = _ref$nameLength === void 0 ? 6 : _ref$nameLength,
29
31
  _ref$innerRadius = _ref.innerRadius,
@@ -67,7 +69,7 @@ var PieCharts = function PieCharts(_ref) {
67
69
  fontSize: 14
68
70
  },
69
71
  space: {
70
- width: 20
72
+ width: spaceLength
71
73
  },
72
74
  number: {
73
75
  width: 50,
@@ -5,6 +5,7 @@
5
5
  padding: 0 8px;
6
6
  font-family: Alibaba PuHuiTi 3, Alibaba PuHuiTi 30;
7
7
  font-size: 12px;
8
+ white-space: nowrap;
8
9
  display: flex;
9
10
  align-items: center;
10
11
  justify-content: center;
@@ -0,0 +1,52 @@
1
+ import { HistoryPlayer } from '@vtx/player';
2
+ import { forwardRef, useRef } from 'react';
3
+ import VmEmpty from "../vm-empty";
4
+ import "./index.less";
5
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
6
+ var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
7
+ var channel = props.channel,
8
+ onClose = props.onClose;
9
+ var name = "".concat(channel === null || channel === void 0 ? void 0 : channel.deviceName, "-").concat(channel === null || channel === void 0 ? void 0 : channel.channelName);
10
+ var gridItemRef = useRef(null);
11
+ return /*#__PURE__*/_jsx("div", {
12
+ className: "vm-video-content-container",
13
+ ref: gridItemRef,
14
+ children: channel !== null && channel !== void 0 && channel.totalTimeUrl ? /*#__PURE__*/_jsxs(_Fragment, {
15
+ children: [/*#__PURE__*/_jsxs("div", {
16
+ className: "vm-video-content-container-header",
17
+ children: [/*#__PURE__*/_jsx("span", {
18
+ className: "title",
19
+ title: name,
20
+ children: name
21
+ }), /*#__PURE__*/_jsx("div", {
22
+ className: "close",
23
+ onClick: onClose,
24
+ children: "x"
25
+ })]
26
+ }), /*#__PURE__*/_jsx("div", {
27
+ className: "content",
28
+ children: /*#__PURE__*/_jsx(HistoryPlayer, {
29
+ ref: ref,
30
+ beenHasVideo: channel.beenHasVideo // 对讲
31
+ ,
32
+ url: channel.totalTimeUrl,
33
+ type: channel === null || channel === void 0 ? void 0 : channel.player,
34
+ deviceIp: channel.deviceIp,
35
+ devicePort: channel.devicePort,
36
+ captureName: name,
37
+ deviceId: channel.deviceId,
38
+ channelId: channel.channelId,
39
+ channelNum: channel.channelNum,
40
+ enableAgent: channel.enableAgent,
41
+ deviceCode: channel.deviceCode,
42
+ streamType: channel.streamType,
43
+ info: channel.info,
44
+ onClose: onClose
45
+ })
46
+ })]
47
+ }) : /*#__PURE__*/_jsx(VmEmpty, {
48
+ type: "NO_VIDEO"
49
+ })
50
+ });
51
+ });
52
+ export default GridItem;
@@ -2,7 +2,7 @@ import { LivePlayer } from '@vtx/player';
2
2
  import { forwardRef, useRef } from 'react';
3
3
  import VmEmpty from "../vm-empty";
4
4
  import "./index.less";
5
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
6
6
  var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
7
7
  var channel = props.channel,
8
8
  onClose = props.onClose;
@@ -12,13 +12,17 @@ var GridItem = /*#__PURE__*/forwardRef(function (props, ref) {
12
12
  className: "vm-video-content-container",
13
13
  ref: gridItemRef,
14
14
  children: channel !== null && channel !== void 0 && channel.url ? /*#__PURE__*/_jsxs(_Fragment, {
15
- children: [/*#__PURE__*/_jsx("div", {
15
+ children: [/*#__PURE__*/_jsxs("div", {
16
16
  className: "vm-video-content-container-header",
17
- children: /*#__PURE__*/_jsx("span", {
17
+ children: [/*#__PURE__*/_jsx("span", {
18
18
  className: "title",
19
19
  title: name,
20
20
  children: name
21
- })
21
+ }), /*#__PURE__*/_jsx("div", {
22
+ className: "close",
23
+ onClick: onClose,
24
+ children: "x"
25
+ })]
22
26
  }), /*#__PURE__*/_jsx("div", {
23
27
  className: "content",
24
28
  children: /*#__PURE__*/_jsx(LivePlayer, {