hy-dispatch-ui-v3 0.2.86 → 0.2.88

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 (201) hide show
  1. package/dist/tailwind.css +196 -4
  2. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  3. package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.mjs +1 -0
  4. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +1 -0
  5. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +1 -0
  6. package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +1 -0
  7. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +1 -0
  8. package/es/bussiness/hyDisplayQueryAddress/locale/en_US.mjs +3 -3
  9. package/es/bussiness/hyDisplayQueryAddress/locale/zh_CN.mjs +3 -3
  10. package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +1 -0
  11. package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.mjs +7 -1
  12. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +1 -0
  13. package/es/bussiness/hyElectronicFence/electronicFence.vue.mjs +7 -1
  14. package/es/bussiness/hyFilePlayback/locale/en_US.mjs +17 -17
  15. package/es/bussiness/hyFilePlayback/locale/zh_CN.mjs +17 -17
  16. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +1 -0
  17. package/es/bussiness/hyOrgGroupTree/orgGroupTree.vue.mjs +1 -0
  18. package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.mjs +1 -0
  19. package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +1 -0
  20. package/es/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.mjs +3 -3
  21. package/es/bussiness/hySelectDeviceTree/selectDeviceTree.vue.mjs +2 -8
  22. package/es/bussiness/hyUserTree/userTree.vue.mjs +1 -0
  23. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +9 -1
  24. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +1 -0
  25. package/es/components/hyButton/button.vue.mjs +1 -0
  26. package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +1 -0
  27. package/es/components/hyConfigProvider/configProvider.vue.mjs +36 -35
  28. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -0
  29. package/es/components/hyCutter/cutter.vue.mjs +10 -1
  30. package/es/components/hyDatePicker/datePicker.vue.mjs +1 -0
  31. package/es/components/hyDialog/dialog.vue.mjs +1 -0
  32. package/es/components/hyDrawer/drawer.vue.mjs +1 -0
  33. package/es/components/hyForm/cpns/formItem.vue.mjs +15 -11
  34. package/es/components/hyForm/form.vue.mjs +2 -3
  35. package/es/components/hyIcon/icon.vue.mjs +1 -0
  36. package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
  37. package/es/components/hyInput/input.vue.mjs +1 -0
  38. package/es/components/hyInput/inputSearch.vue.mjs +1 -0
  39. package/es/components/hyKindEditor/kindEditor.vue.mjs +17 -4
  40. package/es/components/hyMenu/menu.vue.mjs +1 -0
  41. package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -0
  42. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -0
  43. package/es/components/hyOrgCascader/js/index.mjs +0 -1
  44. package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -0
  45. package/es/components/hyRadioGroup/radioGroup.vue.mjs +4 -1
  46. package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -1
  47. package/es/components/hySearch/search.vue.mjs +5 -1
  48. package/es/components/hyStatus/status.vue.mjs +1 -0
  49. package/es/components/hyTable/cpns/columnSelect.vue.mjs +5 -1
  50. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +1 -1
  51. package/es/components/hyTable/cpns/virtualTable.vue.mjs +11 -2
  52. package/es/components/hyTable/js/index.mjs +7 -2
  53. package/es/components/hyTable/table.vue.mjs +5 -1
  54. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +1 -0
  55. package/es/components/hyTableForm/batchTableForm.vue.mjs +6 -3
  56. package/es/components/hyTableForm/tableForm.vue.mjs +1 -0
  57. package/es/components/hyTimePicker/timePicker.vue.mjs +1 -0
  58. package/es/components/hyTooltip/tooltip.vue.mjs +1 -0
  59. package/es/components/hyTour/tour.vue.mjs +1 -0
  60. package/es/components/hyTree/js/index.mjs +8 -2
  61. package/es/components/hyTree/tree.vue.mjs +1 -0
  62. package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -0
  63. package/es/components/hyVideoPlayer/{js → hyVideoPlayer/js}/index.mjs +9 -9
  64. package/es/components/hyVideoPlayer/hyVideoPlayer/videoPlayer.vue.mjs +656 -0
  65. package/es/components/hyVideoPlayer/index.mjs +2 -2
  66. package/es/components/hyVideoPlayer/locale/en_US.mjs +31 -0
  67. package/es/components/hyVideoPlayer/locale/index.mjs +2 -0
  68. package/es/components/hyVideoPlayer/locale/zh_CN.mjs +31 -0
  69. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +5 -645
  70. package/es/components/hyVideoPlayer/videoPlayer1.vue.mjs +8 -0
  71. package/es/components/hyVideoPlayer/videoPlayer12.vue.mjs +947 -0
  72. package/es/components/hyVideoPlayer/videoPlayer2.vue.mjs +951 -0
  73. package/es/hooks/useLocale.mjs +7 -2
  74. package/es/static/hy-svg-icons/hy-icon-ops-Empty-audio.js +22 -0
  75. package/es/static/hy-svg-icons/hy-icon-ops-Empty-document.js +23 -0
  76. package/es/static/hy-svg-icons/hy-icon-ops-Empty-fall.js +29 -0
  77. package/es/static/hy-svg-icons/hy-icon-ops-Empty-up.js +29 -0
  78. package/es/static/hy-svg-icons/hy-icon-ops-Empty-wait.js +29 -0
  79. package/es/static/hy-svg-icons/hy-icon-ops-audio-cycle.js +8 -0
  80. package/es/static/hy-svg-icons/hy-icon-ops-audio-edit.js +8 -0
  81. package/es/static/hy-svg-icons/hy-icon-ops-audio-fullscreen.js +8 -0
  82. package/es/static/hy-svg-icons/hy-icon-ops-audio-next.js +8 -0
  83. package/es/static/hy-svg-icons/hy-icon-ops-audio-previous.js +8 -0
  84. package/es/static/hy-svg-icons/hy-icon-ops-audio-reduce.js +10 -0
  85. package/es/static/hy-svg-icons/hy-icon-ops-audio-semanticretrieval.js +8 -0
  86. package/es/static/hy-svg-icons/hy-icon-ops-audio-sequentialplay.js +8 -0
  87. package/es/static/hy-svg-icons/hy-icon-ops-audio-stopplayback.js +8 -0
  88. package/es/static/map/bm.geometryutil.js +3 -3
  89. package/es/static/map/bmDraw.js +6 -6
  90. package/es/static/map/markercluster.js +22 -22
  91. package/es/static/map/moveMarker.js +1 -1
  92. package/es/static/vite-plugin-hy-svg-icons.js +2 -2
  93. package/es/utils/file.mjs +7 -3
  94. package/es/utils/form.mjs +3 -1
  95. package/es/utils/map/hook/bigMap.mjs +18 -5
  96. package/es/utils/map/hook/gaode.mjs +4 -1
  97. package/es/utils/map/hook/leafletjs.mjs +29 -8
  98. package/es/utils/map/index.mjs +0 -1
  99. package/es/utils/useUiComponent.mjs +3 -1
  100. package/es/version.mjs +1 -1
  101. package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
  102. package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +1 -0
  103. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +1 -0
  104. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +1 -0
  105. package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +1 -0
  106. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +1 -0
  107. package/lib/bussiness/hyDisplayQueryAddress/locale/en_US.js +3 -3
  108. package/lib/bussiness/hyDisplayQueryAddress/locale/zh_CN.js +3 -3
  109. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +1 -0
  110. package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +7 -1
  111. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +1 -0
  112. package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +7 -1
  113. package/lib/bussiness/hyFilePlayback/locale/en_US.js +17 -17
  114. package/lib/bussiness/hyFilePlayback/locale/zh_CN.js +17 -17
  115. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +1 -0
  116. package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +1 -0
  117. package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +1 -0
  118. package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +1 -0
  119. package/lib/bussiness/hySelectDeviceTree/cpns/deviceItem.vue.js +3 -3
  120. package/lib/bussiness/hySelectDeviceTree/selectDeviceTree.vue.js +2 -8
  121. package/lib/bussiness/hyUserTree/userTree.vue.js +1 -0
  122. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +9 -1
  123. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +1 -0
  124. package/lib/components/hyButton/button.vue.js +1 -0
  125. package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +1 -0
  126. package/lib/components/hyConfigProvider/configProvider.vue.js +36 -35
  127. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -0
  128. package/lib/components/hyCutter/cutter.vue.js +10 -1
  129. package/lib/components/hyDatePicker/datePicker.vue.js +1 -0
  130. package/lib/components/hyDialog/dialog.vue.js +1 -0
  131. package/lib/components/hyDrawer/drawer.vue.js +1 -0
  132. package/lib/components/hyForm/cpns/formItem.vue.js +15 -11
  133. package/lib/components/hyForm/form.vue.js +2 -3
  134. package/lib/components/hyIcon/icon.vue.js +1 -0
  135. package/lib/components/hyIconBox/iconBox.vue.js +1 -0
  136. package/lib/components/hyInput/input.vue.js +1 -0
  137. package/lib/components/hyInput/inputSearch.vue.js +1 -0
  138. package/lib/components/hyKindEditor/kindEditor.vue.js +17 -4
  139. package/lib/components/hyMenu/menu.vue.js +1 -0
  140. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -0
  141. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -0
  142. package/lib/components/hyOrgCascader/js/index.js +0 -1
  143. package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -0
  144. package/lib/components/hyRadioGroup/radioGroup.vue.js +4 -1
  145. package/lib/components/hySearch/cpns/searchItem.vue.js +3 -1
  146. package/lib/components/hySearch/search.vue.js +5 -1
  147. package/lib/components/hyStatus/status.vue.js +1 -0
  148. package/lib/components/hyTable/cpns/columnSelect.vue.js +5 -1
  149. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +1 -1
  150. package/lib/components/hyTable/cpns/virtualTable.vue.js +11 -2
  151. package/lib/components/hyTable/js/index.js +7 -2
  152. package/lib/components/hyTable/table.vue.js +5 -1
  153. package/lib/components/hyTableActionButton/tableActionButton.vue.js +1 -0
  154. package/lib/components/hyTableForm/batchTableForm.vue.js +6 -3
  155. package/lib/components/hyTableForm/tableForm.vue.js +1 -0
  156. package/lib/components/hyTimePicker/timePicker.vue.js +1 -0
  157. package/lib/components/hyTooltip/tooltip.vue.js +1 -0
  158. package/lib/components/hyTour/tour.vue.js +1 -0
  159. package/lib/components/hyTree/js/index.js +8 -2
  160. package/lib/components/hyTree/tree.vue.js +1 -0
  161. package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -0
  162. package/lib/components/hyVideoPlayer/{js → hyVideoPlayer/js}/index.js +9 -9
  163. package/lib/components/hyVideoPlayer/hyVideoPlayer/videoPlayer.vue.js +660 -0
  164. package/lib/components/hyVideoPlayer/locale/en_US.js +35 -0
  165. package/lib/components/hyVideoPlayer/locale/index.js +9 -0
  166. package/lib/components/hyVideoPlayer/locale/zh_CN.js +35 -0
  167. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +5 -645
  168. package/lib/components/hyVideoPlayer/videoPlayer1.vue.js +12 -0
  169. package/lib/components/hyVideoPlayer/videoPlayer12.vue.js +951 -0
  170. package/lib/components/hyVideoPlayer/videoPlayer2.vue.js +955 -0
  171. package/lib/hooks/useLocale.js +7 -2
  172. package/lib/static/hy-svg-icons/hy-icon-ops-Empty-audio.js +22 -0
  173. package/lib/static/hy-svg-icons/hy-icon-ops-Empty-document.js +23 -0
  174. package/lib/static/hy-svg-icons/hy-icon-ops-Empty-fall.js +29 -0
  175. package/lib/static/hy-svg-icons/hy-icon-ops-Empty-up.js +29 -0
  176. package/lib/static/hy-svg-icons/hy-icon-ops-Empty-wait.js +29 -0
  177. package/lib/static/hy-svg-icons/hy-icon-ops-audio-cycle.js +8 -0
  178. package/lib/static/hy-svg-icons/hy-icon-ops-audio-edit.js +8 -0
  179. package/lib/static/hy-svg-icons/hy-icon-ops-audio-fullscreen.js +8 -0
  180. package/lib/static/hy-svg-icons/hy-icon-ops-audio-next.js +8 -0
  181. package/lib/static/hy-svg-icons/hy-icon-ops-audio-previous.js +8 -0
  182. package/lib/static/hy-svg-icons/hy-icon-ops-audio-reduce.js +10 -0
  183. package/lib/static/hy-svg-icons/hy-icon-ops-audio-semanticretrieval.js +8 -0
  184. package/lib/static/hy-svg-icons/hy-icon-ops-audio-sequentialplay.js +8 -0
  185. package/lib/static/hy-svg-icons/hy-icon-ops-audio-stopplayback.js +8 -0
  186. package/lib/static/map/bm.geometryutil.js +3 -3
  187. package/lib/static/map/bmDraw.js +6 -6
  188. package/lib/static/map/markercluster.js +22 -22
  189. package/lib/static/map/moveMarker.js +1 -1
  190. package/lib/static/vite-plugin-hy-svg-icons.js +2 -2
  191. package/lib/utils/file.js +7 -3
  192. package/lib/utils/form.js +3 -1
  193. package/lib/utils/map/hook/bigMap.js +18 -5
  194. package/lib/utils/map/hook/gaode.js +4 -1
  195. package/lib/utils/map/hook/leafletjs.js +29 -8
  196. package/lib/utils/map/index.js +0 -1
  197. package/lib/utils/useUiComponent.js +3 -1
  198. package/lib/version.js +1 -1
  199. package/package.json +8 -8
  200. /package/es/components/hyVideoPlayer/{style → hyVideoPlayer/style}/videoPlayer.scss +0 -0
  201. /package/lib/components/hyVideoPlayer/{style → hyVideoPlayer/style}/videoPlayer.scss +0 -0
@@ -0,0 +1,656 @@
1
+ import { defineComponent, useTemplateRef, computed, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, createVNode, createElementVNode, toDisplayString, Fragment, createBlock, withCtx, createTextVNode, normalizeStyle, withDirectives, isRef, vModelText, renderList, renderSlot } from 'vue';
2
+ import { ElPopover, ElSlider } from 'element-plus';
3
+ import '../../../hooks/index.mjs';
4
+ import '../../../utils/index.mjs';
5
+ import '../../index.mjs';
6
+ import _sfc_main$1 from '../cpns/mediaLoading.vue.mjs';
7
+ import { useVideoPlayer, useVideoResize } from './js/index.mjs';
8
+ import { useMixins } from '../../../hooks/useMixins.mjs';
9
+ import { $t } from '../../../hooks/useLocale.mjs';
10
+ import { HyIcon } from '../../hyIcon/index.mjs';
11
+ import { HyButton } from '../../hyButton/index.mjs';
12
+ import { HyTooltip } from '../../hyTooltip/index.mjs';
13
+ import { useVideoPlayerConfig } from '../../../hooks/useVideoPlayerConfig.mjs';
14
+ import { isBoolean, isNumber } from '../../../utils/is.mjs';
15
+
16
+ import "./style/videoPlayer.scss";
17
+
18
+ const __default__ = defineComponent({
19
+ name: "HyVideoPlayer"
20
+ });
21
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
22
+ props: {
23
+ type: {
24
+ type: String,
25
+ default: () => {
26
+ const { videoPlayerConfig } = useVideoPlayerConfig();
27
+ const { type } = videoPlayerConfig.value;
28
+ if (["default", "analyse"].includes(type)) return type;
29
+ return "default";
30
+ }
31
+ },
32
+ // 播放列表
33
+ playList: {
34
+ type: Array,
35
+ default: () => []
36
+ },
37
+ // 播放速度
38
+ speed: {
39
+ type: Number,
40
+ default: () => {
41
+ const { videoPlayerConfig } = useVideoPlayerConfig();
42
+ if (isNumber(videoPlayerConfig.value.speed)) {
43
+ return videoPlayerConfig.value.speed;
44
+ }
45
+ return 1;
46
+ }
47
+ },
48
+ // 播放规则
49
+ playRules: {
50
+ type: Number,
51
+ default: () => {
52
+ const { videoPlayerConfig } = useVideoPlayerConfig();
53
+ if ([1, 2, 3].includes) {
54
+ return videoPlayerConfig.value.playRules;
55
+ }
56
+ return 3;
57
+ }
58
+ },
59
+ // 是否显示播放规则
60
+ showPlayRules: {
61
+ type: Boolean,
62
+ default: () => {
63
+ const { videoPlayerConfig } = useVideoPlayerConfig();
64
+ const { showPlayRules } = videoPlayerConfig.value;
65
+ return isBoolean(showPlayRules) ? showPlayRules : true;
66
+ }
67
+ },
68
+ // 是否显示下载文件
69
+ showDownloadFiles: {
70
+ type: Boolean,
71
+ default: () => {
72
+ const { videoPlayerConfig } = useVideoPlayerConfig();
73
+ const { showDownloadFiles } = videoPlayerConfig.value;
74
+ return isBoolean(showDownloadFiles) ? showDownloadFiles : true;
75
+ }
76
+ },
77
+ // 是否显示展开控件
78
+ showShrink: {
79
+ type: Boolean,
80
+ default: () => {
81
+ const { videoPlayerConfig } = useVideoPlayerConfig();
82
+ const { showShrink } = videoPlayerConfig.value;
83
+ return isBoolean(showShrink) ? showShrink : false;
84
+ }
85
+ },
86
+ // 是否显示全屏控件
87
+ showFullScreen: {
88
+ type: Boolean,
89
+ default: () => {
90
+ const { videoPlayerConfig } = useVideoPlayerConfig();
91
+ const { showFullScreen } = videoPlayerConfig.value;
92
+ return isBoolean(showFullScreen) ? showFullScreen : true;
93
+ }
94
+ },
95
+ // VLC协议
96
+ vlcProtocol: {
97
+ type: String,
98
+ default: () => {
99
+ const { videoPlayerConfig } = useVideoPlayerConfig();
100
+ return videoPlayerConfig.value.vlcProtocol || "hyvlc";
101
+ }
102
+ },
103
+ // VLC下载地址
104
+ vlcAddress: {
105
+ type: String,
106
+ default: () => {
107
+ const { videoPlayerConfig } = useVideoPlayerConfig();
108
+ return videoPlayerConfig.value.vlcAddress;
109
+ }
110
+ },
111
+ // 下载处理
112
+ downloadFn: {
113
+ type: Function
114
+ }
115
+ },
116
+ emits: [
117
+ "canplay",
118
+ "timeupdate",
119
+ "play-start",
120
+ "play-ended",
121
+ "play-previous",
122
+ "play-next"
123
+ ],
124
+ setup(__props, { expose: __expose, emit: __emit }) {
125
+ ;
126
+ const props = __props;
127
+ const emits = __emit;
128
+ const videoWrapperRef = useTemplateRef("videoWrapperRef");
129
+ const videoRef = useTemplateRef("videoRef");
130
+ const {
131
+ // useVideoPlayer
132
+ speed,
133
+ playRules,
134
+ loading,
135
+ videoItem,
136
+ videoUrl,
137
+ currentDuration,
138
+ totalDuration,
139
+ progress,
140
+ isDrop,
141
+ isFullScreen,
142
+ volumeValue,
143
+ hasVLC,
144
+ isCanNotPlayType,
145
+ videoState,
146
+ speedLabel,
147
+ isCanPlay,
148
+ isAnalyseType,
149
+ // 配置
150
+ speedList,
151
+ playRulesList,
152
+ // 函数
153
+ playVideo,
154
+ pauseVideo,
155
+ playPrevious,
156
+ playNext,
157
+ playRulesHandler,
158
+ speedHandler,
159
+ changeVolume,
160
+ getNowWh,
161
+ setVideoCurrentTime,
162
+ getPercent,
163
+ initFullScreenEvent,
164
+ destroyFullScreenEvent,
165
+ onFullScreenHandler,
166
+ openVLC,
167
+ downloadVLC,
168
+ onDownloadHandler,
169
+ // useVideoResize
170
+ isExpand,
171
+ videoHeight,
172
+ onSwitchShrink,
173
+ listenerVideoWrapper,
174
+ unlistenerVideoWrapper
175
+ } = useMixins(
176
+ {
177
+ props,
178
+ emits,
179
+ videoWrapperRef,
180
+ videoRef
181
+ },
182
+ [useVideoPlayer, useVideoResize]
183
+ );
184
+ const showActionBtn = computed(() => {
185
+ return !!videoUrl.value;
186
+ });
187
+ onMounted(() => {
188
+ initFullScreenEvent();
189
+ listenerVideoWrapper();
190
+ });
191
+ onUnmounted(() => {
192
+ destroyFullScreenEvent();
193
+ unlistenerVideoWrapper();
194
+ });
195
+ __expose({
196
+ playVideo,
197
+ pauseVideo,
198
+ setVideoCurrentTime
199
+ });
200
+ return (_ctx, _cache) => {
201
+ return openBlock(), createElementBlock(
202
+ "div",
203
+ {
204
+ ref_key: "videoWrapperRef",
205
+ ref: videoWrapperRef,
206
+ class: normalizeClass(["hy-video-player-content", {
207
+ "hy-video-player-content-pick-up": !unref(isExpand) && !unref(isFullScreen),
208
+ "hy-full-video-player-content": unref(isFullScreen)
209
+ }])
210
+ },
211
+ [
212
+ createCommentVNode(" loading "),
213
+ unref(loading) ? (openBlock(), createElementBlock("div", {
214
+ key: 0,
215
+ class: "w-full h-full flex flex-col justify-center items-center absolute left-0 top-0"
216
+ }, [
217
+ createVNode(_sfc_main$1),
218
+ createElementVNode(
219
+ "span",
220
+ { class: "text-xs text-theme mt-4" },
221
+ "..." + toDisplayString(unref($t)("videoPlayer.videoResourcesAreLoading")) + "...",
222
+ 1
223
+ /* TEXT */
224
+ )
225
+ ])) : createCommentVNode("v-if", true),
226
+ createCommentVNode(" \u65E0\u6CD5\u64AD\u653E "),
227
+ unref(videoState) === "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
228
+ key: 1,
229
+ class: "w-full h-full flex flex-col justify-center items-center px-[34px] box-border"
230
+ }, [
231
+ createCommentVNode(" \u91C7\u96C6\u7AD9\u6587\u4EF6 "),
232
+ unref(videoItem) && unref(videoItem).csFile === 1 && unref(videoItem).onlineState !== 1 ? (openBlock(), createElementBlock(
233
+ Fragment,
234
+ { key: 0 },
235
+ [
236
+ createElementVNode("div", { class: "w-[54px] h-[54px] rounded-full border-[2px] border-dangerv2 flex justify-center items-center shadow-[0px_0px_10px_2px_var(--dangerv2)]" }, [
237
+ createElementVNode("div", { class: "w-[42px] h-[42px] rounded-full border-[1px] border-dashed border-dangerv2 flex justify-center items-center" }, [
238
+ createVNode(unref(HyIcon), {
239
+ "svg-name": "ops-button-icon-brok-link",
240
+ class: "!w-[24px] !h-[24px] text-dangerv2"
241
+ })
242
+ ])
243
+ ]),
244
+ createElementVNode(
245
+ "span",
246
+ { class: "text-xs text-auxiliary mt-4" },
247
+ toDisplayString(unref($t)("videoPlayer.fileLoadingFailed")),
248
+ 1
249
+ /* TEXT */
250
+ ),
251
+ createElementVNode(
252
+ "span",
253
+ { class: "text-xs text-auxiliary" },
254
+ toDisplayString(unref($t)("pleaseCheckWhetherTheCollectionStationIsOnlineAndWhetherTheFileExists")),
255
+ 1
256
+ /* TEXT */
257
+ )
258
+ ],
259
+ 64
260
+ /* STABLE_FRAGMENT */
261
+ )) : (openBlock(), createElementBlock(
262
+ Fragment,
263
+ { key: 1 },
264
+ [
265
+ createCommentVNode(" \u666E\u901A\u6587\u4EF6 "),
266
+ createElementVNode("div", { class: "flex items-center justify-center text-auxiliary" }, [
267
+ createVNode(unref(HyIcon), {
268
+ "svg-name": "ops-audio-center-right-ripple",
269
+ className: "!w-[12px] !h-[12px]"
270
+ }),
271
+ createVNode(unref(HyIcon), {
272
+ "svg-name": "ops-audio-media-center-video3",
273
+ className: "!w-[40px] !h-[40px] mx-1"
274
+ }),
275
+ createVNode(unref(HyIcon), {
276
+ "svg-name": "ops-audio-media-center-left-rippleV2",
277
+ className: "!w-[12px] !h-[12px]"
278
+ })
279
+ ]),
280
+ createElementVNode(
281
+ "div",
282
+ { class: "text-theme text-center mt-3 mb-[14px]" },
283
+ toDisplayString(unref(isCanNotPlayType) ? unref($t)("videoPlayer.vlcPlayerTip") : unref($t)("videoPlayer.theVideoCannotBePlayed")),
284
+ 1
285
+ /* TEXT */
286
+ ),
287
+ unref(isCanNotPlayType) ? (openBlock(), createElementBlock("div", {
288
+ key: 0,
289
+ class: "flex justify-center"
290
+ }, [
291
+ unref(hasVLC) ? (openBlock(), createBlock(unref(HyButton), {
292
+ key: 0,
293
+ onClick: unref(openVLC)
294
+ }, {
295
+ default: withCtx(() => [
296
+ createTextVNode(
297
+ toDisplayString(unref($t)("videoPlayer.clickPlay")),
298
+ 1
299
+ /* TEXT */
300
+ )
301
+ ]),
302
+ _: 1
303
+ /* STABLE */
304
+ }, 8, ["onClick"])) : (openBlock(), createBlock(unref(HyButton), {
305
+ key: 1,
306
+ onClick: unref(downloadVLC)
307
+ }, {
308
+ default: withCtx(() => [
309
+ createTextVNode(
310
+ toDisplayString(unref($t)("videoPlayer.toDownloadVlc")),
311
+ 1
312
+ /* TEXT */
313
+ )
314
+ ]),
315
+ _: 1
316
+ /* STABLE */
317
+ }, 8, ["onClick"]))
318
+ ])) : createCommentVNode("v-if", true)
319
+ ],
320
+ 64
321
+ /* STABLE_FRAGMENT */
322
+ )),
323
+ createCommentVNode(" \u5207\u6362\u89C6\u9891\u63A7\u4EF6 "),
324
+ __props.playList?.length > 1 ? (openBlock(), createElementBlock(
325
+ Fragment,
326
+ { key: 2 },
327
+ [
328
+ createElementVNode("div", { class: "vlc-between-control left-0" }, [
329
+ createVNode(unref(HyTooltip), {
330
+ isAlways: "",
331
+ overLine: 1,
332
+ content: unref($t)("videoPlayer.viewThePreviousVideo")
333
+ }, {
334
+ default: withCtx(() => [
335
+ createElementVNode("div", {
336
+ class: "w-[30px] h-[30px] bg-[#3D6286] flex items-center justify-center cursor-pointer",
337
+ onClick: unref(playPrevious)
338
+ }, [
339
+ createVNode(unref(HyIcon), {
340
+ "svg-name": "ops-audio-audio-previous-btn",
341
+ className: "!w-3 !h-3 text-main"
342
+ })
343
+ ], 8, ["onClick"])
344
+ ]),
345
+ _: 1
346
+ /* STABLE */
347
+ }, 8, ["content"])
348
+ ]),
349
+ createElementVNode("div", { class: "vlc-between-control right-0" }, [
350
+ createVNode(unref(HyTooltip), {
351
+ isAlways: "",
352
+ overLine: 1,
353
+ content: unref($t)("videoPlayer.viewTheNextVideo")
354
+ }, {
355
+ default: withCtx(() => [
356
+ createElementVNode("div", {
357
+ class: "w-[30px] h-[30px] bg-[#3D6286] flex items-center justify-center cursor-pointer",
358
+ onClick: unref(playNext)
359
+ }, [
360
+ createVNode(unref(HyIcon), {
361
+ "svg-name": "dispatch-share1-v3-ai-interpretation-next",
362
+ className: "!w-3 !h-3 text-main"
363
+ })
364
+ ], 8, ["onClick"])
365
+ ]),
366
+ _: 1
367
+ /* STABLE */
368
+ }, 8, ["content"])
369
+ ])
370
+ ],
371
+ 64
372
+ /* STABLE_FRAGMENT */
373
+ )) : createCommentVNode("v-if", true)
374
+ ])) : (openBlock(), createElementBlock(
375
+ Fragment,
376
+ { key: 2 },
377
+ [
378
+ createCommentVNode(" \u53EF\u4EE5\u64AD\u653E "),
379
+ createElementVNode(
380
+ "video",
381
+ {
382
+ ref_key: "videoRef",
383
+ ref: videoRef,
384
+ style: normalizeStyle({ height: unref(videoHeight) })
385
+ },
386
+ [
387
+ createElementVNode("source", { type: "video/mp4" }),
388
+ createElementVNode("source", { type: "video/webm" }),
389
+ createElementVNode("source", { type: "video/ogg" }),
390
+ createTextVNode(
391
+ " " + toDisplayString(unref($t)("videoPlayer.yourBrowserDoesNotSupportHTMLVideoPlayback")),
392
+ 1
393
+ /* TEXT */
394
+ )
395
+ ],
396
+ 4
397
+ /* STYLE */
398
+ ),
399
+ createElementVNode("div", { class: "operator-box" }, [
400
+ createElementVNode("div", { class: "progress-box" }, [
401
+ withDirectives(createElementVNode("input", {
402
+ "onUpdate:modelValue": ($event) => isRef(progress) ? progress.value = $event : null,
403
+ type: "range",
404
+ max: "100",
405
+ style: normalizeStyle({
406
+ background: `linear-gradient(to right, rgba(var(--hy-theme)) ${unref(getPercent)(
407
+ unref(progress),
408
+ 100
409
+ )}%, rgba(var(--hy-theme), 0.5) ${unref(getPercent)(unref(progress), 100)}% `
410
+ }),
411
+ onMousedown: ($event) => isDrop.value = true,
412
+ onMouseup: ($event) => unref(getNowWh)($event)
413
+ }, null, 44, ["onUpdate:modelValue", "onMousedown", "onMouseup"]), [
414
+ [vModelText, unref(progress)]
415
+ ])
416
+ ]),
417
+ createElementVNode("div", { class: "left-operator" }, [
418
+ createElementVNode(
419
+ "span",
420
+ { class: "text-main" },
421
+ toDisplayString(unref(currentDuration)),
422
+ 1
423
+ /* TEXT */
424
+ ),
425
+ createTextVNode(" / "),
426
+ createElementVNode(
427
+ "span",
428
+ null,
429
+ toDisplayString(unref(totalDuration)),
430
+ 1
431
+ /* TEXT */
432
+ )
433
+ ]),
434
+ unref(isCanPlay) ? (openBlock(), createElementBlock(
435
+ "div",
436
+ {
437
+ key: 0,
438
+ class: normalizeClass(["center-operator", { "center-analyse": unref(isAnalyseType) }])
439
+ },
440
+ [
441
+ createElementVNode("div", { onClick: unref(playPrevious) }, [
442
+ createVNode(unref(HyIcon), {
443
+ "svg-name": unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-last" : "ops-audio-audio-previous-btn",
444
+ "class-name": "last-icon"
445
+ }, null, 8, ["svg-name"])
446
+ ], 8, ["onClick"]),
447
+ unref(videoState) !== "PLAYING" ? (openBlock(), createElementBlock("div", {
448
+ key: 0,
449
+ onClick: ($event) => unref(playVideo)(unref(videoUrl))
450
+ }, [
451
+ createVNode(unref(HyIcon), { "svg-name": "ops-audio-audio-play-btn" })
452
+ ], 8, ["onClick"])) : createCommentVNode("v-if", true),
453
+ unref(videoState) === "PLAYING" ? (openBlock(), createElementBlock("div", {
454
+ key: 1,
455
+ onClick: unref(pauseVideo)
456
+ }, [
457
+ createVNode(unref(HyIcon), { "svg-name": "ops-audio-audio-pause-btn" })
458
+ ], 8, ["onClick"])) : createCommentVNode("v-if", true),
459
+ createElementVNode("div", { onClick: unref(playNext) }, [
460
+ createVNode(unref(HyIcon), {
461
+ "svg-name": unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-next" : "ops-audio-audio-next-btn",
462
+ "class-name": "next-icon"
463
+ }, null, 8, ["svg-name"])
464
+ ], 8, ["onClick"])
465
+ ],
466
+ 2
467
+ /* CLASS */
468
+ )) : createCommentVNode("v-if", true),
469
+ createElementVNode("div", { class: "right-operator" }, [
470
+ createCommentVNode(" \u901F\u5EA6 "),
471
+ createVNode(unref(ElPopover), {
472
+ placement: "top",
473
+ trigger: "click",
474
+ appendToBody: false,
475
+ "popper-class": "hy-video-player-popover-speed"
476
+ }, {
477
+ reference: withCtx(() => [
478
+ createElementVNode(
479
+ "div",
480
+ { class: "speed-box" },
481
+ toDisplayString(unref(speedLabel)),
482
+ 1
483
+ /* TEXT */
484
+ )
485
+ ]),
486
+ default: withCtx(() => [
487
+ createElementVNode("div", { class: "flex items-center justify-center py-[10px]" }, [
488
+ createElementVNode("ul", { class: "speed-list" }, [
489
+ (openBlock(true), createElementBlock(
490
+ Fragment,
491
+ null,
492
+ renderList(unref(speedList), (item, index) => {
493
+ return openBlock(), createElementBlock("li", {
494
+ key: index,
495
+ class: normalizeClass(["clickBox", { selectBox: item.value === unref(speed) }]),
496
+ onClick: ($event) => unref(speedHandler)(item.value)
497
+ }, toDisplayString(item.label), 11, ["onClick"]);
498
+ }),
499
+ 128
500
+ /* KEYED_FRAGMENT */
501
+ ))
502
+ ])
503
+ ])
504
+ ]),
505
+ _: 1
506
+ /* STABLE */
507
+ }),
508
+ createCommentVNode(" \u58F0\u97F3 "),
509
+ createVNode(unref(ElPopover), {
510
+ placement: "top",
511
+ appendToBody: false,
512
+ trigger: "click",
513
+ "popper-class": "hy-video-player-popover-volume-slider"
514
+ }, {
515
+ reference: withCtx(() => [
516
+ createElementVNode("div", { class: "flex items-center justify-center" }, [
517
+ createVNode(unref(HyTooltip), {
518
+ isAlways: "",
519
+ overLine: 1,
520
+ content: unref($t)("videoPlayer.adjustPlaybackVolume")
521
+ }, {
522
+ default: withCtx(() => [
523
+ createVNode(unref(HyIcon), {
524
+ "svg-name": "dispatch-share-audio-volumn",
525
+ "class-name": "volume-icon"
526
+ })
527
+ ]),
528
+ _: 1
529
+ /* STABLE */
530
+ }, 8, ["content"])
531
+ ])
532
+ ]),
533
+ default: withCtx(() => [
534
+ createElementVNode("div", { class: "flex items-center justify-center pt-3" }, [
535
+ createVNode(unref(ElSlider), {
536
+ modelValue: unref(volumeValue),
537
+ "onUpdate:modelValue": ($event) => isRef(volumeValue) ? volumeValue.value = $event : null,
538
+ vertical: "",
539
+ height: "105px",
540
+ onInput: ($event) => unref(changeVolume)($event)
541
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
542
+ ])
543
+ ]),
544
+ _: 1
545
+ /* STABLE */
546
+ }),
547
+ createCommentVNode(" \u653E\u5927 "),
548
+ __props.showFullScreen ? (openBlock(), createBlock(unref(HyTooltip), {
549
+ key: 0,
550
+ isAlways: "",
551
+ overLine: 1,
552
+ content: unref($t)("videoPlayer.fullScreenSwitch")
553
+ }, {
554
+ default: withCtx(() => [
555
+ createVNode(unref(HyIcon), {
556
+ "svg-name": unref(isFullScreen) ? "ops-audio-audio-reduce" : "ops-audio-audio-enlarge",
557
+ onClick: unref(onFullScreenHandler)
558
+ }, null, 8, ["svg-name", "onClick"])
559
+ ]),
560
+ _: 1
561
+ /* STABLE */
562
+ }, 8, ["content"])) : createCommentVNode("v-if", true),
563
+ createCommentVNode(" \u6536\u8D77/\u5C55\u5F00 "),
564
+ !unref(isFullScreen) && __props.showShrink ? (openBlock(), createBlock(unref(HyTooltip), {
565
+ key: 1,
566
+ isAlways: "",
567
+ overLine: 1,
568
+ content: unref(isExpand) ? unref($t)("videoPlayer.packUp") : unref($t)("videoPlayer.expand")
569
+ }, {
570
+ default: withCtx(() => [
571
+ createVNode(unref(HyIcon), {
572
+ "svg-name": unref(isExpand) ? "dispatch-share1-v3-ai-interpretation-foldup" : "dispatch-share1-v3-ai-interpretation-expand",
573
+ onClick: unref(onSwitchShrink)
574
+ }, null, 8, ["svg-name", "onClick"])
575
+ ]),
576
+ _: 1
577
+ /* STABLE */
578
+ }, 8, ["content"])) : createCommentVNode("v-if", true)
579
+ ])
580
+ ])
581
+ ],
582
+ 64
583
+ /* STABLE_FRAGMENT */
584
+ )),
585
+ createCommentVNode(" \u89C6\u9891\u989D\u5916\u529F\u80FD "),
586
+ (__props.showDownloadFiles || __props.showPlayRules) && unref(isExpand) ? (openBlock(), createElementBlock(
587
+ "div",
588
+ {
589
+ key: 3,
590
+ class: normalizeClass(["float-operator-item", {
591
+ "!right-[43px]": unref(videoState) === "CAN_NOT_PLAY" && __props.playList?.length > 1
592
+ }])
593
+ },
594
+ [
595
+ createCommentVNode(" \u4E0B\u8F7D "),
596
+ __props.showDownloadFiles && showActionBtn.value ? (openBlock(), createBlock(unref(HyTooltip), {
597
+ key: 0,
598
+ isAlways: "",
599
+ overLine: 1,
600
+ content: unref($t)("videoPlayer.downloadFile")
601
+ }, {
602
+ default: withCtx(() => [
603
+ createVNode(unref(HyIcon), {
604
+ "svg-name": "ops-audio-audio-down-btn",
605
+ onClick: unref(onDownloadHandler)
606
+ }, null, 8, ["onClick"])
607
+ ]),
608
+ _: 1
609
+ /* STABLE */
610
+ }, 8, ["content"])) : createCommentVNode("v-if", true),
611
+ createCommentVNode(" \u64AD\u653E\u89C4\u5219 "),
612
+ __props.showPlayRules && unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(true), createElementBlock(
613
+ Fragment,
614
+ { key: 1 },
615
+ renderList(unref(playRulesList), (item, index) => {
616
+ return openBlock(), createElementBlock(
617
+ Fragment,
618
+ { key: index },
619
+ [
620
+ unref(playRules) === item.value ? (openBlock(), createBlock(unref(HyTooltip), {
621
+ key: 0,
622
+ isAlways: "",
623
+ overLine: 1,
624
+ content: item.label
625
+ }, {
626
+ default: withCtx(() => [
627
+ createVNode(unref(HyIcon), {
628
+ "svg-name": item.svgName,
629
+ onClick: ($event) => unref(playRulesHandler)(item.value)
630
+ }, null, 8, ["svg-name", "onClick"])
631
+ ]),
632
+ _: 2
633
+ /* DYNAMIC */
634
+ }, 1032, ["content"])) : createCommentVNode("v-if", true)
635
+ ],
636
+ 64
637
+ /* STABLE_FRAGMENT */
638
+ );
639
+ }),
640
+ 128
641
+ /* KEYED_FRAGMENT */
642
+ )) : createCommentVNode("v-if", true),
643
+ renderSlot(_ctx.$slots, "pight-control-ranel")
644
+ ],
645
+ 2
646
+ /* CLASS */
647
+ )) : createCommentVNode("v-if", true)
648
+ ],
649
+ 2
650
+ /* CLASS */
651
+ );
652
+ };
653
+ }
654
+ });
655
+
656
+ export { _sfc_main as default };
@@ -1,7 +1,7 @@
1
- import _sfc_main from './videoPlayer.vue.mjs';
1
+ import componnet from './videoPlayer.vue.mjs';
2
2
  import '../../utils/index.mjs';
3
3
  import { withInstall } from '../../utils/handler.mjs';
4
4
 
5
- const HyVideoPlayer = withInstall(_sfc_main);
5
+ const HyVideoPlayer = withInstall(componnet);
6
6
 
7
7
  export { HyVideoPlayer, HyVideoPlayer as default };