hy-dispatch-ui-v3 0.1.6 → 0.2.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 (160) hide show
  1. package/README.md +47 -0
  2. package/dist/tailwind.css +349 -4
  3. package/es/components/appAudioPlayer/appAudioPlayer.vue.mjs +462 -0
  4. package/es/components/appAudioPlayer/index.mjs +6 -0
  5. package/es/components/appAudioPlayer/js/index.mjs +327 -0
  6. package/es/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
  7. package/es/components/appButton/style/appButton.scss +0 -1
  8. package/es/components/appConfigProvider/appConfigProvider.vue.mjs +22 -1
  9. package/es/components/appCutter/appCutter.vue.mjs +202 -129
  10. package/es/components/appDatePicker/appDatePicker.vue.mjs +1 -1
  11. package/es/components/appForm/appForm.vue.mjs +132 -209
  12. package/es/components/appForm/cpns/appFormItem.vue.mjs +312 -0
  13. package/es/components/appForm/cpns/arrayItem.vue.mjs +305 -0
  14. package/es/components/appForm/cpns/extraItem.vue.mjs +140 -0
  15. package/es/components/appForm/js/index.mjs +46 -24
  16. package/es/components/appForm/js/useAppForm.mjs +30 -6
  17. package/es/components/appForm/style/appForm.scss +53 -0
  18. package/es/components/appIcon/appIcon.vue.mjs +2 -1
  19. package/es/components/appIconBox/style/appIconBox.scss +0 -1
  20. package/es/components/appInput/appInput.vue.mjs +99 -0
  21. package/es/components/appInput/index.mjs +6 -0
  22. package/es/components/appMenu/appMenu.vue.mjs +129 -0
  23. package/es/components/appMenu/index.mjs +6 -0
  24. package/es/components/appMenu/style/appMenu.scss +145 -0
  25. package/es/components/appOrgCascader/appOrgCascader.vue.mjs +14 -10
  26. package/es/components/appSearch/appSearch.vue.mjs +55 -211
  27. package/es/components/appSearch/cpns/appSearchItem.vue.mjs +238 -0
  28. package/es/components/appSearch/js/index.mjs +20 -8
  29. package/es/components/appSearch/js/useAppSearch.mjs +10 -5
  30. package/es/components/appSearch/style/appSearch.scss +10 -0
  31. package/es/components/appTable/appTable.vue.mjs +312 -158
  32. package/es/components/appTable/cpns/columnSelect.vue.mjs +151 -156
  33. package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +104 -110
  34. package/es/components/appTable/cpns/headerItem.vue.mjs +98 -0
  35. package/es/components/appTable/cpns/virtualTable.vue.mjs +560 -0
  36. package/es/components/appTable/js/index.mjs +46 -20
  37. package/es/components/appTable/js/search.mjs +1 -2
  38. package/es/components/appTable/js/useAppTable.mjs +58 -14
  39. package/es/components/appTable/style/appTable.scss +16 -0
  40. package/es/components/appTooltip/appTooltip.vue.mjs +24 -13
  41. package/es/components/appTree/appTree.vue.mjs +304 -0
  42. package/es/components/appTree/index.mjs +6 -0
  43. package/es/components/appTree/js/index.mjs +531 -0
  44. package/es/components/appUserAvatar/appUserAvatar.vue.mjs +9 -8
  45. package/es/components/appUserAvatar/style/appUserAvatar.scss +0 -1
  46. package/es/components/appVideoPlayer/appVideoPlayer.vue.mjs +647 -0
  47. package/es/components/appVideoPlayer/cpns/mediaLoading.vue.mjs +35 -0
  48. package/es/components/appVideoPlayer/index.mjs +6 -0
  49. package/es/components/appVideoPlayer/js/index.mjs +426 -0
  50. package/es/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
  51. package/es/components/appVideoPlayer/style/mediaLoading.scss +62 -0
  52. package/es/components/index.mjs +5 -0
  53. package/es/hooks/index.mjs +3 -0
  54. package/es/hooks/useApi.mjs +4 -4
  55. package/es/hooks/useAudioPlayerConfig.mjs +12 -0
  56. package/es/hooks/useGlobalConfig.mjs +18 -7
  57. package/es/hooks/useLocale.mjs +3 -11
  58. package/es/hooks/useMixins.mjs +1 -1
  59. package/es/hooks/usePermissionMap.mjs +12 -0
  60. package/es/hooks/useUserAvatarMap.mjs +2 -3
  61. package/es/hooks/useVideoPlayerConfig.mjs +12 -0
  62. package/es/index.mjs +14 -4
  63. package/es/locale/en.mjs +52 -3
  64. package/es/locale/zh_CN.mjs +48 -3
  65. package/es/make-installer.mjs +2 -0
  66. package/es/static/hy-svg-icons.js +462 -0
  67. package/es/static/protocolcheck.js +247 -0
  68. package/es/style/element/element.scss +9 -0
  69. package/es/style/element/index.scss +6 -3
  70. package/es/style/index.scss +11 -0
  71. package/es/style/theme.scss +73 -0
  72. package/es/utils/date.mjs +25 -1
  73. package/es/utils/file.mjs +5 -4
  74. package/es/utils/form.mjs +52 -0
  75. package/es/utils/handler.mjs +22 -2
  76. package/es/utils/index.mjs +6 -4
  77. package/es/utils/is.mjs +23 -2
  78. package/es/utils/loadScript.mjs +33 -0
  79. package/es/version.mjs +1 -1
  80. package/lib/components/appAudioPlayer/appAudioPlayer.vue.js +466 -0
  81. package/lib/components/appAudioPlayer/index.js +11 -0
  82. package/lib/components/appAudioPlayer/js/index.js +329 -0
  83. package/lib/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
  84. package/lib/components/appButton/style/appButton.scss +0 -1
  85. package/lib/components/appConfigProvider/appConfigProvider.vue.js +22 -1
  86. package/lib/components/appCutter/appCutter.vue.js +201 -128
  87. package/lib/components/appDatePicker/appDatePicker.vue.js +1 -1
  88. package/lib/components/appForm/appForm.vue.js +129 -206
  89. package/lib/components/appForm/cpns/appFormItem.vue.js +316 -0
  90. package/lib/components/appForm/cpns/arrayItem.vue.js +309 -0
  91. package/lib/components/appForm/cpns/extraItem.vue.js +144 -0
  92. package/lib/components/appForm/js/index.js +48 -23
  93. package/lib/components/appForm/js/useAppForm.js +30 -6
  94. package/lib/components/appForm/style/appForm.scss +53 -0
  95. package/lib/components/appIcon/appIcon.vue.js +2 -1
  96. package/lib/components/appIconBox/style/appIconBox.scss +0 -1
  97. package/lib/components/appInput/appInput.vue.js +103 -0
  98. package/lib/components/appInput/index.js +11 -0
  99. package/lib/components/appMenu/appMenu.vue.js +133 -0
  100. package/lib/components/appMenu/index.js +11 -0
  101. package/lib/components/appMenu/style/appMenu.scss +145 -0
  102. package/lib/components/appOrgCascader/appOrgCascader.vue.js +14 -10
  103. package/lib/components/appSearch/appSearch.vue.js +51 -207
  104. package/lib/components/appSearch/cpns/appSearchItem.vue.js +242 -0
  105. package/lib/components/appSearch/js/index.js +20 -7
  106. package/lib/components/appSearch/js/useAppSearch.js +10 -5
  107. package/lib/components/appSearch/style/appSearch.scss +10 -0
  108. package/lib/components/appTable/appTable.vue.js +319 -165
  109. package/lib/components/appTable/cpns/columnSelect.vue.js +151 -156
  110. package/lib/components/appTable/cpns/columnSelectItem.vue2.js +105 -111
  111. package/lib/components/appTable/cpns/headerItem.vue.js +102 -0
  112. package/lib/components/appTable/cpns/virtualTable.vue.js +564 -0
  113. package/lib/components/appTable/js/index.js +47 -19
  114. package/lib/components/appTable/js/search.js +1 -2
  115. package/lib/components/appTable/js/useAppTable.js +57 -13
  116. package/lib/components/appTable/style/appTable.scss +16 -0
  117. package/lib/components/appTooltip/appTooltip.vue.js +23 -12
  118. package/lib/components/appTree/appTree.vue.js +308 -0
  119. package/lib/components/appTree/index.js +11 -0
  120. package/lib/components/appTree/js/index.js +533 -0
  121. package/lib/components/appUserAvatar/appUserAvatar.vue.js +9 -8
  122. package/lib/components/appUserAvatar/style/appUserAvatar.scss +0 -1
  123. package/lib/components/appVideoPlayer/appVideoPlayer.vue.js +651 -0
  124. package/lib/components/appVideoPlayer/cpns/mediaLoading.vue.js +39 -0
  125. package/lib/components/appVideoPlayer/index.js +11 -0
  126. package/lib/components/appVideoPlayer/js/index.js +429 -0
  127. package/lib/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
  128. package/lib/components/appVideoPlayer/style/mediaLoading.scss +62 -0
  129. package/lib/components/index.js +42 -32
  130. package/lib/hooks/index.js +9 -0
  131. package/lib/hooks/useApi.js +4 -4
  132. package/lib/hooks/useAudioPlayerConfig.js +15 -0
  133. package/lib/hooks/useGlobalConfig.js +18 -7
  134. package/lib/hooks/useLocale.js +3 -11
  135. package/lib/hooks/useMixins.js +1 -1
  136. package/lib/hooks/usePermissionMap.js +15 -0
  137. package/lib/hooks/useUserAvatarMap.js +1 -2
  138. package/lib/hooks/useVideoPlayerConfig.js +15 -0
  139. package/lib/index.js +62 -33
  140. package/lib/locale/en.js +52 -3
  141. package/lib/locale/zh_CN.js +48 -3
  142. package/lib/make-installer.js +2 -0
  143. package/lib/static/hy-svg-icons.js +459 -8
  144. package/lib/static/protocolcheck.js +249 -0
  145. package/lib/style/element/element.scss +9 -0
  146. package/lib/style/element/index.scss +6 -3
  147. package/lib/style/index.scss +11 -0
  148. package/lib/style/theme.scss +73 -0
  149. package/lib/utils/date.js +25 -0
  150. package/lib/utils/file.js +4 -4
  151. package/lib/utils/form.js +57 -0
  152. package/lib/utils/handler.js +22 -1
  153. package/lib/utils/index.js +11 -1
  154. package/lib/utils/is.js +23 -1
  155. package/lib/utils/loadScript.js +37 -0
  156. package/lib/version.js +1 -1
  157. package/package.json +12 -10
  158. package/es/config/index.mjs +0 -1
  159. package/es/static/hy-svg-icons.mjs +0 -11
  160. package/lib/config/index.js +0 -2
@@ -0,0 +1,462 @@
1
+ import { defineComponent, useTemplateRef, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, createVNode, createElementVNode, toDisplayString, withDirectives, vShow, createCommentVNode, createTextVNode, normalizeStyle, isRef, vModelText, withCtx, Fragment, renderList, createBlock } from 'vue';
2
+ import { ElPopover, ElSlider } from 'element-plus';
3
+ import _sfc_main$1 from '../appVideoPlayer/cpns/mediaLoading.vue.mjs';
4
+ import { useAudioPlayer } from './js/index.mjs';
5
+ import { useLocale } from '../../hooks/useLocale.mjs';
6
+ import { useMixins } from '../../hooks/useMixins.mjs';
7
+ import { AppIcon } from '../appIcon/index.mjs';
8
+ import { AppTooltip } from '../appTooltip/index.mjs';
9
+ import { useAudioPlayerConfig } from '../../hooks/useAudioPlayerConfig.mjs';
10
+ import { isBoolean, isNumber } from '../../utils/is.mjs';
11
+
12
+ import "./style/appAudioPlayer.scss";
13
+
14
+ const __default__ = defineComponent({
15
+ name: "AppAudioPlayer"
16
+ });
17
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
18
+ props: {
19
+ type: {
20
+ type: String,
21
+ default: () => {
22
+ const { audioPlayerConfig } = useAudioPlayerConfig();
23
+ const { type } = audioPlayerConfig.value;
24
+ if (["default", "analyse"].includes(type)) return type;
25
+ return "default";
26
+ }
27
+ },
28
+ // 播放列表
29
+ playList: {
30
+ type: Array,
31
+ default: () => []
32
+ },
33
+ // 播放速度
34
+ speed: {
35
+ type: Number,
36
+ default: () => {
37
+ const { audioPlayerConfig } = useAudioPlayerConfig();
38
+ if (isNumber(audioPlayerConfig.value.speed)) {
39
+ return audioPlayerConfig.value.speed;
40
+ }
41
+ return 1;
42
+ }
43
+ },
44
+ // 播放规则
45
+ playRules: {
46
+ type: Number,
47
+ default: () => {
48
+ const { audioPlayerConfig } = useAudioPlayerConfig();
49
+ if ([1, 2, 3].includes(audioPlayerConfig.value.playRules)) {
50
+ return audioPlayerConfig.value.playRules;
51
+ }
52
+ return 3;
53
+ }
54
+ },
55
+ // 是否显示播放规则
56
+ showPlayRules: {
57
+ type: Boolean,
58
+ default: () => {
59
+ const { audioPlayerConfig } = useAudioPlayerConfig();
60
+ const { showPlayRules } = audioPlayerConfig.value;
61
+ return isBoolean(showPlayRules) ? showPlayRules : true;
62
+ }
63
+ },
64
+ // 是否显示画面
65
+ showPicture: {
66
+ type: Boolean,
67
+ default: () => {
68
+ const { audioPlayerConfig } = useAudioPlayerConfig();
69
+ const { showPicture } = audioPlayerConfig.value;
70
+ return isBoolean(showPicture) ? showPicture : true;
71
+ }
72
+ },
73
+ // 是否显示下载文件
74
+ showDownloadFiles: {
75
+ type: Boolean,
76
+ default: () => {
77
+ const { audioPlayerConfig } = useAudioPlayerConfig();
78
+ const { showDownloadFiles } = audioPlayerConfig.value;
79
+ return isBoolean(showDownloadFiles) ? showDownloadFiles : true;
80
+ }
81
+ },
82
+ // 下载处理
83
+ downloadFn: {
84
+ type: Function
85
+ }
86
+ },
87
+ emits: [
88
+ "canplay",
89
+ "timeupdate",
90
+ "play-start",
91
+ "play-ended",
92
+ "play-previous",
93
+ "play-next"
94
+ ],
95
+ setup(__props, { expose: __expose, emit: __emit }) {
96
+ const props = __props;
97
+ const emits = __emit;
98
+ const { t } = useLocale();
99
+ const audioWrapperRef = useTemplateRef("audioWrapperRef");
100
+ const audioRef = useTemplateRef("audioRef");
101
+ const {
102
+ // useAudioPlayer
103
+ speed,
104
+ playRules,
105
+ loading,
106
+ audioItem,
107
+ audioUrl,
108
+ currentDuration,
109
+ totalDuration,
110
+ progress,
111
+ isDrop,
112
+ isFullScreen,
113
+ volumeValue,
114
+ audioState,
115
+ speedLabel,
116
+ isCanPlay,
117
+ isPlaying,
118
+ isAnalyseType,
119
+ // 配置
120
+ speedList,
121
+ playRulesList,
122
+ // 函数
123
+ playAudio,
124
+ pauseAudio,
125
+ playPrevious,
126
+ playNext,
127
+ playRulesHandler,
128
+ speedHandler,
129
+ changeVolume,
130
+ getNowWh,
131
+ setAudioCurrentTime,
132
+ getPercent,
133
+ isCantPlayType,
134
+ jumpDuration,
135
+ initFullScreenEvent,
136
+ destroyFullScreenEvent,
137
+ onFullScreenHandler,
138
+ onDownloadHandler
139
+ } = useMixins(
140
+ {
141
+ props,
142
+ emits,
143
+ audioWrapperRef,
144
+ audioRef
145
+ },
146
+ [useAudioPlayer]
147
+ );
148
+ onMounted(() => {
149
+ initFullScreenEvent();
150
+ });
151
+ onUnmounted(() => {
152
+ destroyFullScreenEvent();
153
+ });
154
+ __expose({
155
+ playAudio,
156
+ setAudioCurrentTime
157
+ });
158
+ return (_ctx, _cache) => {
159
+ return openBlock(), createElementBlock(
160
+ "div",
161
+ {
162
+ class: normalizeClass(["audio-player", { "audio-player-analyse": unref(isAnalyseType) }])
163
+ },
164
+ [
165
+ __props.showPicture ? (openBlock(), createElementBlock("div", {
166
+ key: 0,
167
+ class: "audio-play-box"
168
+ }, [
169
+ unref(loading) ? (openBlock(), createElementBlock("div", {
170
+ key: 0,
171
+ class: "w-full h-full flex flex-col justify-center items-center"
172
+ }, [
173
+ createVNode(_sfc_main$1),
174
+ createElementVNode(
175
+ "span",
176
+ { class: "text-xs text-theme mt-4" },
177
+ "..." + toDisplayString(unref(t)("audioPlayer.audioResourcesAreLoading")) + "...",
178
+ 1
179
+ /* TEXT */
180
+ )
181
+ ])) : (openBlock(), createElementBlock("div", {
182
+ key: 1,
183
+ class: "point_area"
184
+ }, [
185
+ createElementVNode("div", { class: "point point_dot" }, [
186
+ createElementVNode("div", { class: "flex items-center justify-center" }, [
187
+ createVNode(unref(AppIcon), { "svg-name": "menu-menu_micphone_v2-select" })
188
+ ])
189
+ ]),
190
+ withDirectives(createElementVNode(
191
+ "div",
192
+ { style: { "transition": "1s" } },
193
+ [
194
+ createElementVNode("div", { class: "point point_10" }),
195
+ createElementVNode("div", { class: "point point_40" }),
196
+ createElementVNode("div", { class: "point point_shadow point_80" })
197
+ ],
198
+ 512
199
+ /* NEED_PATCH */
200
+ ), [
201
+ [vShow, unref(isPlaying)]
202
+ ])
203
+ ]))
204
+ ])) : createCommentVNode("v-if", true),
205
+ createElementVNode(
206
+ "div",
207
+ {
208
+ ref_key: "audioWrapperRef",
209
+ ref: audioWrapperRef,
210
+ class: normalizeClass(["operator-box", { "operator-analyse": unref(isAnalyseType) }])
211
+ },
212
+ [
213
+ unref(isAnalyseType) ? (openBlock(), createElementBlock("div", {
214
+ key: 0,
215
+ class: "duration-operator"
216
+ }, [
217
+ createElementVNode(
218
+ "span",
219
+ { class: "text-main" },
220
+ toDisplayString(unref(currentDuration)),
221
+ 1
222
+ /* TEXT */
223
+ ),
224
+ createTextVNode(" / "),
225
+ createElementVNode(
226
+ "span",
227
+ null,
228
+ toDisplayString(unref(totalDuration)),
229
+ 1
230
+ /* TEXT */
231
+ )
232
+ ])) : createCommentVNode("v-if", true),
233
+ createElementVNode(
234
+ "div",
235
+ {
236
+ class: normalizeClass(["play-operator", { "play-analyse": unref(isAnalyseType) }])
237
+ },
238
+ [
239
+ createElementVNode("div", { onClick: unref(playPrevious) }, [
240
+ createVNode(unref(AppIcon), {
241
+ "svg-name": unref(isAnalyseType) ? "player--interpretation-last" : "player-audio_previous-btn",
242
+ "class-name": "last-icon"
243
+ }, null, 8, ["svg-name"])
244
+ ], 8, ["onClick"]),
245
+ unref(audioState) !== "PLAYING" && unref(isCanPlay) ? (openBlock(), createElementBlock("div", {
246
+ key: 0,
247
+ onClick: ($event) => unref(playAudio)(unref(audioUrl))
248
+ }, [
249
+ createVNode(unref(AppIcon), { "svg-name": "player-audio_play-btn" })
250
+ ], 8, ["onClick"])) : createCommentVNode("v-if", true),
251
+ unref(audioState) === "PLAYING" ? (openBlock(), createElementBlock("div", {
252
+ key: 1,
253
+ onClick: unref(pauseAudio)
254
+ }, [
255
+ createVNode(unref(AppIcon), { "svg-name": "player-audio_pause-btn" })
256
+ ], 8, ["onClick"])) : createCommentVNode("v-if", true),
257
+ createElementVNode("div", { onClick: unref(playNext) }, [
258
+ createVNode(unref(AppIcon), {
259
+ "svg-name": unref(isAnalyseType) ? "player--interpretation-next" : "player-audio_next-btn",
260
+ "class-name": "next-icon"
261
+ }, null, 8, ["svg-name"])
262
+ ], 8, ["onClick"]),
263
+ createElementVNode(
264
+ "audio",
265
+ {
266
+ ref_key: "audioRef",
267
+ ref: audioRef
268
+ },
269
+ null,
270
+ 512
271
+ /* NEED_PATCH */
272
+ )
273
+ ],
274
+ 2
275
+ /* CLASS */
276
+ ),
277
+ createElementVNode(
278
+ "div",
279
+ {
280
+ class: normalizeClass(["progress-operator", { "progress-analyse": unref(isAnalyseType) }])
281
+ },
282
+ [
283
+ withDirectives(createElementVNode("input", {
284
+ "onUpdate:modelValue": ($event) => isRef(progress) ? progress.value = $event : null,
285
+ type: "range",
286
+ max: "100",
287
+ style: normalizeStyle({
288
+ background: `linear-gradient(to right, rgba(var(--hy-theme)) ${unref(getPercent)(
289
+ unref(progress),
290
+ 100
291
+ )}%, rgba(var(--hy-theme),0.5) ${unref(getPercent)(unref(progress), 100)}% `
292
+ }),
293
+ onMousedown: ($event) => isDrop.value = true,
294
+ onMouseup: ($event) => unref(getNowWh)($event)
295
+ }, null, 44, ["onUpdate:modelValue", "onMousedown", "onMouseup"]), [
296
+ [vModelText, unref(progress)]
297
+ ]),
298
+ __props.type === "default" ? (openBlock(), createElementBlock("div", {
299
+ key: 0,
300
+ class: "duration-operator justify-between"
301
+ }, [
302
+ createElementVNode(
303
+ "span",
304
+ { class: "text-main" },
305
+ toDisplayString(unref(currentDuration)),
306
+ 1
307
+ /* TEXT */
308
+ ),
309
+ createElementVNode(
310
+ "span",
311
+ null,
312
+ toDisplayString(unref(totalDuration)),
313
+ 1
314
+ /* TEXT */
315
+ )
316
+ ])) : createCommentVNode("v-if", true)
317
+ ],
318
+ 2
319
+ /* CLASS */
320
+ ),
321
+ createElementVNode(
322
+ "div",
323
+ {
324
+ class: normalizeClass(["tools-operator", { "tools-analyse": unref(isAnalyseType) }])
325
+ },
326
+ [
327
+ createCommentVNode(" \u901F\u5EA6 "),
328
+ createVNode(unref(ElPopover), {
329
+ placement: "top",
330
+ trigger: "click",
331
+ appendToBody: false,
332
+ "popper-class": "popover-speed"
333
+ }, {
334
+ reference: withCtx(() => [
335
+ createElementVNode(
336
+ "div",
337
+ { class: "speed-box" },
338
+ toDisplayString(unref(speedLabel)),
339
+ 1
340
+ /* TEXT */
341
+ )
342
+ ]),
343
+ default: withCtx(() => [
344
+ createElementVNode("div", { class: "flex items-center justify-center py-[10px]" }, [
345
+ createElementVNode("ul", { class: "speed-list" }, [
346
+ (openBlock(true), createElementBlock(
347
+ Fragment,
348
+ null,
349
+ renderList(unref(speedList), (item, index) => {
350
+ return openBlock(), createElementBlock("li", {
351
+ key: index,
352
+ class: normalizeClass(["clickBox", { selectBox: item.value === unref(speed) }]),
353
+ onClick: ($event) => unref(speedHandler)(item.value)
354
+ }, toDisplayString(item.label), 11, ["onClick"]);
355
+ }),
356
+ 128
357
+ /* KEYED_FRAGMENT */
358
+ ))
359
+ ])
360
+ ])
361
+ ]),
362
+ _: 1
363
+ /* STABLE */
364
+ }),
365
+ createCommentVNode(" \u4E0B\u8F7D "),
366
+ __props.showDownloadFiles ? (openBlock(), createBlock(unref(AppTooltip), {
367
+ key: 0,
368
+ isAlways: "",
369
+ content: unref(t)("audioPlayer.downloadFile")
370
+ }, {
371
+ default: withCtx(() => [
372
+ createVNode(unref(AppIcon), {
373
+ "svg-name": "player-audio_down-btn",
374
+ onClick: unref(onDownloadHandler)
375
+ }, null, 8, ["onClick"])
376
+ ]),
377
+ _: 1
378
+ /* STABLE */
379
+ }, 8, ["content"])) : createCommentVNode("v-if", true),
380
+ createCommentVNode(" \u64AD\u653E\u89C4\u5219 "),
381
+ __props.showPlayRules ? (openBlock(true), createElementBlock(
382
+ Fragment,
383
+ { key: 1 },
384
+ renderList(unref(playRulesList), (item, index) => {
385
+ return openBlock(), createElementBlock(
386
+ Fragment,
387
+ { key: index },
388
+ [
389
+ unref(playRules) === item.value ? (openBlock(), createBlock(unref(AppTooltip), {
390
+ key: 0,
391
+ isAlways: "",
392
+ content: item.label
393
+ }, {
394
+ default: withCtx(() => [
395
+ createVNode(unref(AppIcon), {
396
+ "svg-name": item.svgName,
397
+ onClick: ($event) => unref(playRulesHandler)(item.value)
398
+ }, null, 8, ["svg-name", "onClick"])
399
+ ]),
400
+ _: 2
401
+ /* DYNAMIC */
402
+ }, 1032, ["content"])) : createCommentVNode("v-if", true)
403
+ ],
404
+ 64
405
+ /* STABLE_FRAGMENT */
406
+ );
407
+ }),
408
+ 128
409
+ /* KEYED_FRAGMENT */
410
+ )) : createCommentVNode("v-if", true),
411
+ createCommentVNode(" \u58F0\u97F3 "),
412
+ createVNode(unref(ElPopover), {
413
+ placement: "top",
414
+ appendToBody: false,
415
+ trigger: "click",
416
+ "popper-class": "popover-volume-slider"
417
+ }, {
418
+ reference: withCtx(() => [
419
+ createElementVNode("div", { class: "flex items-center justify-center" }, [
420
+ createVNode(unref(AppTooltip), {
421
+ isAlways: "",
422
+ content: unref(t)("audioPlayer.adjustPlaybackVolume")
423
+ }, {
424
+ default: withCtx(() => [
425
+ createVNode(unref(AppIcon), { "svg-name": "player-audio_volumn" })
426
+ ]),
427
+ _: 1
428
+ /* STABLE */
429
+ }, 8, ["content"])
430
+ ])
431
+ ]),
432
+ default: withCtx(() => [
433
+ createElementVNode("div", { class: "flex items-center justify-center" }, [
434
+ createVNode(unref(ElSlider), {
435
+ modelValue: unref(volumeValue),
436
+ "onUpdate:modelValue": ($event) => isRef(volumeValue) ? volumeValue.value = $event : null,
437
+ vertical: "",
438
+ height: "105px",
439
+ onInput: ($event) => unref(changeVolume)($event)
440
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
441
+ ])
442
+ ]),
443
+ _: 1
444
+ /* STABLE */
445
+ })
446
+ ],
447
+ 2
448
+ /* CLASS */
449
+ )
450
+ ],
451
+ 2
452
+ /* CLASS */
453
+ )
454
+ ],
455
+ 2
456
+ /* CLASS */
457
+ );
458
+ };
459
+ }
460
+ });
461
+
462
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './appAudioPlayer.vue.mjs';
2
+ import { withInstall } from '../../utils/handler.mjs';
3
+
4
+ const AppAudioPlayer = withInstall(_sfc_main);
5
+
6
+ export { AppAudioPlayer, AppAudioPlayer as default };