@opendesign-plus-test/components 0.0.1-rc.21 → 0.0.1-rc.22

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 (148) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +428 -137
  3. package/dist/components/OBanner.vue.d.ts +10 -1
  4. package/dist/components/OFooter.vue.d.ts +1 -1
  5. package/dist/components/OHeaderSearch.vue.d.ts +4 -4
  6. package/dist/components/activity/OActivityApproval.vue.d.ts +277 -0
  7. package/dist/components/activity/OActivityForm.vue.d.ts +140 -0
  8. package/dist/components/activity/OMyActivityCalendar.vue.d.ts +2 -0
  9. package/dist/components/activity/config.d.ts +15 -0
  10. package/dist/components/activity/data.d.ts +51 -0
  11. package/dist/components/activity/index.d.ts +332 -0
  12. package/dist/components/activity/types.d.ts +72 -0
  13. package/dist/components/meeting/OMeetingCalendar.vue.d.ts +309 -0
  14. package/dist/components/meeting/OMeetingForm.vue.d.ts +156 -0
  15. package/dist/components/meeting/OMyMeetingCalendar.vue.d.ts +582 -0
  16. package/dist/components/meeting/OSigMeetingCalendar.vue.d.ts +24 -0
  17. package/dist/components/meeting/components/OMeetingCalendarList.vue.d.ts +27 -0
  18. package/dist/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +664 -0
  19. package/dist/components/meeting/components/OMeetingDetail.vue.d.ts +12 -0
  20. package/dist/components/meeting/components/OMeetingPlaybackSubtitles.vue.d.ts +5 -0
  21. package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +17 -0
  22. package/dist/components/meeting/components/OSigMeetingAside.vue.d.ts +16 -0
  23. package/dist/components/meeting/config.d.ts +27 -0
  24. package/dist/components/meeting/types.d.ts +140 -0
  25. package/dist/components/meeting/utils.d.ts +21 -0
  26. package/dist/components.cjs.js +224 -3
  27. package/dist/components.css +1 -1
  28. package/dist/components.es.js +43019 -2293
  29. package/dist/index.d.ts +2 -0
  30. package/package.json +6 -3
  31. package/scripts/generate-components-index.js +4 -0
  32. package/src/assets/meeting/svg-icons/icon-all.svg +3 -0
  33. package/src/assets/meeting/svg-icons/icon-backward.svg +4 -0
  34. package/src/assets/meeting/svg-icons/icon-calendar.svg +3 -0
  35. package/src/assets/meeting/svg-icons/icon-cancel.svg +4 -0
  36. package/src/assets/meeting/svg-icons/icon-captions.svg +4 -0
  37. package/src/assets/meeting/svg-icons/icon-close-captions.svg +6 -0
  38. package/src/assets/meeting/svg-icons/icon-close-fullscreen.svg +6 -0
  39. package/src/assets/meeting/svg-icons/icon-copy.svg +3 -0
  40. package/src/assets/meeting/svg-icons/icon-create.svg +5 -0
  41. package/src/assets/meeting/svg-icons/icon-delete.svg +7 -0
  42. package/src/assets/meeting/svg-icons/icon-empty.svg +31 -0
  43. package/src/assets/meeting/svg-icons/icon-empty_dark.svg +49 -0
  44. package/src/assets/meeting/svg-icons/icon-event.svg +3 -0
  45. package/src/assets/meeting/svg-icons/icon-export.svg +3 -0
  46. package/src/assets/meeting/svg-icons/icon-forward.svg +4 -0
  47. package/src/assets/meeting/svg-icons/icon-fullscreen.svg +6 -0
  48. package/src/assets/meeting/svg-icons/icon-help.svg +3 -0
  49. package/src/assets/meeting/svg-icons/icon-important.svg +4 -0
  50. package/src/assets/meeting/svg-icons/icon-info.svg +3 -0
  51. package/src/assets/meeting/svg-icons/icon-meet.svg +3 -0
  52. package/src/assets/meeting/svg-icons/icon-meeting-message.svg +5 -0
  53. package/src/assets/meeting/svg-icons/icon-meeting.svg +4 -0
  54. package/src/assets/meeting/svg-icons/icon-play.svg +5 -0
  55. package/src/assets/meeting/svg-icons/icon-playing-tip.svg +7 -0
  56. package/src/assets/meeting/svg-icons/icon-playing.svg +5 -0
  57. package/src/assets/meeting/svg-icons/icon-question.svg +4 -0
  58. package/src/assets/meeting/svg-icons/icon-sound.svg +5 -0
  59. package/src/assets/meeting/svg-icons/icon-speaker.svg +3 -0
  60. package/src/assets/meeting/svg-icons/icon-summit.svg +3 -0
  61. package/src/assets/meeting/svg-icons/icon-telligent.svg +3 -0
  62. package/src/assets/meeting/svg-icons/icon-tip.svg +3 -0
  63. package/src/assets/meeting/svg-icons/icon-todo.svg +4 -0
  64. package/src/assets/meeting/transparent.png +0 -0
  65. package/src/assets/svg-icons/icon-chevron-up.svg +3 -0
  66. package/src/assets/svg-icons/icon-filter.svg +3 -0
  67. package/src/assets/svg-icons/icon-loading.svg +4 -0
  68. package/src/assets/svg-icons/icon-search.svg +3 -0
  69. package/src/assets/svg-icons/icon-tips.svg +3 -0
  70. package/src/components/OBanner.vue +11 -3
  71. package/src/components/OFooter.vue +1 -1
  72. package/src/components/activity/OActivityApproval.vue +775 -0
  73. package/src/components/activity/OActivityForm.vue +540 -0
  74. package/src/components/activity/OMyActivityCalendar.vue +13 -0
  75. package/src/components/activity/config.ts +130 -0
  76. package/src/components/activity/data.ts +365 -0
  77. package/src/components/activity/index.ts +24 -0
  78. package/src/components/activity/types.ts +78 -0
  79. package/src/components/common/MoreText.vue +119 -0
  80. package/src/components/common/ThFilter.vue +326 -0
  81. package/src/components/events/OEventsApply.vue +2 -86
  82. package/src/components/events/OEventsCalendar.vue +0 -25
  83. package/src/components/events/OEventsList.vue +0 -51
  84. package/src/components/events/index.ts +1 -0
  85. package/src/components/meeting/OMeetingCalendar.vue +865 -0
  86. package/src/components/meeting/OMeetingForm.vue +1035 -0
  87. package/src/components/meeting/OMeetingPlayback.vue +439 -0
  88. package/src/components/meeting/OMyMeetingCalendar.vue +1534 -0
  89. package/src/components/meeting/OSigMeetingCalendar.vue +411 -0
  90. package/src/components/meeting/components/OMeetingCalendarList.vue +462 -0
  91. package/src/components/meeting/components/OMeetingCalendarSelector.vue +206 -0
  92. package/src/components/meeting/components/OMeetingDetail.vue +176 -0
  93. package/src/components/meeting/components/OMeetingPlaybackSubtitles.vue +611 -0
  94. package/src/components/meeting/components/OMeetingPlaybackVideo.vue +741 -0
  95. package/src/components/meeting/components/OSigMeetingAside.vue +197 -0
  96. package/src/components/meeting/config.ts +110 -0
  97. package/src/components/meeting/index.ts +45 -0
  98. package/src/components/meeting/types.ts +167 -0
  99. package/src/components/meeting/utils.ts +106 -0
  100. package/src/draft/Footer.vue +4 -4
  101. package/src/env.d.ts +15 -0
  102. package/src/i18n/en.ts +140 -0
  103. package/src/i18n/index.ts +18 -4
  104. package/src/i18n/zh.ts +140 -0
  105. package/src/index.ts +2 -0
  106. package/tsconfig.json +6 -2
  107. package/vite.config.ts +25 -9
  108. package/npmcachae/_cacache/content-v2/sha512/05/f7/dd881de8b21208ea65cfce17c65f29964c3897505819f81151b9798a3a6ab1a1114324192354ead15cd2c8d93f76cc9929af168066ec9cc7878d0fd87578 +0 -1
  109. package/npmcachae/_cacache/content-v2/sha512/08/b7/879230f8c2f3765920a6fd6113f4687141f1f645f96af7d95a0dee9113d1095d000fb78a5dd55c1860bbfb9b698ef6281b3874b03b2384222f61fe055fc4 +0 -1
  110. package/npmcachae/_cacache/content-v2/sha512/10/a0/a6626613c03ee052925a762e8675878efdf83dac64fafea43beb2a875f7d7c3907bb0ee30761253cd16021fd58911449594e1d3358675cbb7c48e62f220a +0 -1
  111. package/npmcachae/_cacache/content-v2/sha512/2e/a6/7cbcf55a98bbe2ca881d10e982ebf59211a0ec051eaf46eb1914df66cc35ae502ed6888850e51d8f45cd92695bac16961a642bc41508f8d5160a9ab617ab +0 -1
  112. package/npmcachae/_cacache/content-v2/sha512/92/8d/e5259c5d5cc2a625247f3c4d809192ca9482467e23683d74924a11e91a7997ad890b3d26adaf34df66d5329cc7a5fbde6713110cad05107a0b504e4fd4e8 +0 -1
  113. package/npmcachae/_cacache/content-v2/sha512/e9/45/9597d870127c35681155cec5fe52fde4e1aa0f778b996ee371e856aca850ee4c13aba74b0c3d3a89ff0ea4c9e1d33e64e53c31dc9cede0b31012695ee659 +0 -1
  114. package/npmcachae/_cacache/index-v5/16/4a/7195fcc6857299c4ab7e26014a8ae6e3c396507a2c8db3da1b74b005d574 +0 -3
  115. package/npmcachae/_cacache/index-v5/58/f0/4fe556f104b09be642895a82afa463fe560d9a0dc8f507efeef825a6905e +0 -3
  116. package/npmcachae/_cacache/index-v5/67/7d/0b50dc4c09555fc922ccf43c46994f1a0a5ff47dc0a5d5cf41437ac2d3e6 +0 -3
  117. package/npmcachae/_cacache/index-v5/8f/28/353f8839e030ab11aab3e7d9f1b8c053403e9f593cf6d4aa6ec8fdd7610d +0 -3
  118. package/npmcachae/_cacache/index-v5/97/10/0fcf20eb29d0726bd820822f6729718464b591b0e6901217c956740e943c +0 -3
  119. package/npmcachae/_cacache/index-v5/db/89/a0a4f35f593105624ab39339962d9e9b5cc65ed0c346b0732fb8dd73721d +0 -3
  120. package/npmcachae/_logs/2026-03-26T14_10_35_885Z-debug-0.log +0 -171
  121. package/npmcachae/_logs/2026-03-26T14_10_38_617Z-debug-0.log +0 -4227
  122. package/npmcachae/_logs/2026-03-26T14_10_45_316Z-debug-0.log +0 -4228
  123. package/npmcachae/_logs/2026-03-26T14_10_48_169Z-debug-0.log +0 -4228
  124. package/npmcachae/_logs/2026-03-26T14_10_51_306Z-debug-0.log +0 -464
  125. package/npmcachae/_logs/2026-03-26T14_10_53_911Z-debug-0.log +0 -464
  126. package/npmcachae/_logs/2026-03-26T14_10_56_398Z-debug-0.log +0 -464
  127. package/npmcachae/_logs/2026-03-26T14_10_58_861Z-debug-0.log +0 -464
  128. package/npmcachae/_logs/2026-03-26T14_11_01_337Z-debug-0.log +0 -464
  129. package/npmcachae/_logs/2026-03-26T14_11_03_851Z-debug-0.log +0 -464
  130. package/npmcachae/_logs/2026-03-26T14_11_08_024Z-debug-0.log +0 -464
  131. package/npmcachae/_update-notifier-last-checked +0 -0
  132. package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/3e/17/1865217b9acb9f4921c53a09b5c76587cd2ab748beb2699ff6cfb1341d73b1aa56ed91ffc5ab2c9c9b3fbe626103b35d9a79ff29ff6b8cbb8d89755fe1a2 +0 -1
  133. package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/a6/15/47bb7552ec9248079e839a5feecc1742d4de19524fdf041cf581701cf4760a5025106036145e279ba193b07c8fa5b07ae3d75f1b6032f0cb2219115b6167 +0 -1
  134. package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/d1/4c/133b32e09c97101a27a07cc4432f94e470cff02d120d21babcea77c3f5cd436793516dc1a8e282ee1a568f923c148b1a48f4a43233462a530d35e8b41c67 +0 -1
  135. package/src/components/meeting/npmcachae/_cacache/index-v5/54/0d/a4909047714a0a7198bb9bd37020992464e47c79a791889919b84d90aab0 +0 -3
  136. package/src/components/meeting/npmcachae/_cacache/index-v5/8e/2b/21a79778e2ac08cf5663baf83cb35f951995a496007eb2e2f7fba54021a4 +0 -3
  137. package/src/components/meeting/npmcachae/_cacache/index-v5/eb/a0/b70c8132e5b57a0f1e129b8cc941796420a9c147c0baa680710083740898 +0 -2
  138. package/src/components/meeting/npmcachae/_logs/2026-03-20T07_03_54_955Z-debug-0.log +0 -277
  139. package/src/components/meeting/npmcachae/_logs/2026-03-20T07_03_57_842Z-debug-0.log +0 -277
  140. package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_00_016Z-debug-0.log +0 -277
  141. package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_02_191Z-debug-0.log +0 -277
  142. package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_04_425Z-debug-0.log +0 -277
  143. package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_06_642Z-debug-0.log +0 -277
  144. package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_08_826Z-debug-0.log +0 -277
  145. package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_36_140Z-debug-0.log +0 -433
  146. package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_39_573Z-debug-0.log +0 -433
  147. package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_42_134Z-debug-0.log +0 -212
  148. package/src/components/meeting/npmcachae/_update-notifier-last-checked +0 -0
@@ -0,0 +1,611 @@
1
+ <script setup lang="ts">
2
+ import {
3
+ OCol,
4
+ ODivider,
5
+ OIcon,
6
+ OInput,
7
+ ORow,
8
+ OScroller,
9
+ OTab,
10
+ OTabPane,
11
+ } from '@opensig/opendesign';
12
+ import { ElSelect, ElCheckbox, ElOption, type CheckboxValueType } from 'element-plus';
13
+ import IconPlaying from '~icons/meeting/icon-playing.svg';
14
+ import IconSearch from '~icons/components/icon-search.svg';
15
+ import IconChevronDown from '~icons/components/icon-chevron-down.svg';
16
+ import IconChevronUp from '~icons/components/icon-chevron-up.svg';
17
+ import IconClose from '~icons/components/icon-close.svg';
18
+ import IconSpeaker from '~icons/meeting/icon-speaker.svg';
19
+ import { useDebounceFn } from '@vueuse/core';
20
+ import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue';
21
+ import { useI18n } from '@/i18n';
22
+ import { buildVueDompurifyHTMLDirective } from 'vue-dompurify-html';
23
+ import { CaptionItemT, MeetingPlaybackSubtitlesPropsT } from '@/components/meeting';
24
+
25
+ // 局部注册 v-dompurify-html 指令
26
+ const vDompurifyHtml = buildVueDompurifyHTMLDirective();
27
+
28
+ const props = withDefaults(
29
+ defineProps<MeetingPlaybackSubtitlesPropsT>(),
30
+ {
31
+ captions: () => [],
32
+ },
33
+ );
34
+
35
+ const { t } = useI18n();
36
+ const currentIndex = computed(() => props.trackIdx);
37
+
38
+
39
+ // -------------------- 右侧字幕原文鼠标滚动事件 --------------------
40
+ const scrollContainer = ref();
41
+ const wheelVisible = ref(false);
42
+ const handleScroll = () => {
43
+ wheelVisible.value = true;
44
+ };
45
+ const debounceFn = useDebounceFn(() => {
46
+ wheelVisible.value = false;
47
+ }, 3000);
48
+
49
+ watch(
50
+ () => wheelVisible.value,
51
+ (val) => {
52
+ if (val) {
53
+ debounceFn();
54
+ }
55
+ },
56
+ );
57
+
58
+ // -------------------- 右侧的字幕原文 --------------------
59
+ const computedCaptions = ref<CaptionItemT[]>([]);
60
+ watch(
61
+ () => props.captions,
62
+ () => {
63
+ computedCaptions.value = props.captions || [];
64
+ nextTick(() => {
65
+ if (scrollContainer.value) {
66
+ scrollContainer.value?.scrollTo({
67
+ top: 0,
68
+ behavior: 'smooth',
69
+ });
70
+ }
71
+ });
72
+ },
73
+ {
74
+ immediate: true,
75
+ deep: true,
76
+ },
77
+ );
78
+
79
+ // 处理时间
80
+ const formatTime = (num: string) => {
81
+ const time = num.split('.')[0];
82
+ return (`00:${ time }`).slice(-8);
83
+ };
84
+
85
+ // 时分秒 转换成 以秒为单位的格式 - xx秒
86
+ const transformTime = (time: string) => {
87
+ const arr = time.split(':');
88
+ const hh = arr[arr.length - 3] ? parseInt(arr[arr.length - 3]) : 0;
89
+ const mm = parseInt(arr[arr.length - 2]);
90
+ const ss = parseFloat(arr[arr.length - 1]);
91
+
92
+ return hh * 60 * 60 + mm * 60 + ss;
93
+ };
94
+
95
+ onMounted(() => {
96
+ scrollContainer.value = document.querySelector('#captionsScrollDom > .o-scroller-container');
97
+ scrollContainer.value?.addEventListener('wheel', handleScroll);
98
+ });
99
+
100
+ watch(
101
+ () => computedCaptions.value,
102
+ () => {
103
+ scrollContainer.value = document.querySelector('#captionsScrollDom > .o-scroller-container');
104
+ scrollContainer.value?.addEventListener('wheel', handleScroll);
105
+ },
106
+ );
107
+
108
+ const activeTab = ref(0);
109
+ const changeTab = () => {
110
+ };
111
+ const videoPosition = (time: string) => {
112
+ const player = props.instance;
113
+ if (!player) {
114
+ return;
115
+ }
116
+
117
+ const startTime = transformTime(time);
118
+
119
+ player.currentTime(startTime);
120
+ };
121
+
122
+ // -------------------- 搜索 --------------------
123
+ const searchValue = ref('');
124
+ const total = ref(0);
125
+ const current = ref(0);
126
+
127
+ const speakers = ref<string[]>([]);
128
+ const ALL = t('common.all');
129
+ const options = computed(() => {
130
+ return [
131
+ ...new Set(
132
+ props.captions
133
+ .map((item) => item.speakerLabel)
134
+ .sort()
135
+ .reverse(),
136
+ ),
137
+ ];
138
+ });
139
+ watch(
140
+ () => currentIndex.value,
141
+ () => {
142
+ if (wheelVisible.value && searchValue.value) {
143
+ return;
144
+ }
145
+ const captionActive = scrollContainer.value?.querySelectorAll('.captions-item')[currentIndex.value - 1];
146
+
147
+ scrollContainer.value?.scrollTo({
148
+ top: captionActive?.offsetTop - 16,
149
+ behavior: 'smooth',
150
+ });
151
+ },
152
+ );
153
+
154
+ onUnmounted(() => {
155
+ if (scrollContainer.value) {
156
+ scrollContainer.value.removeEventListener('wheel', handleScroll);
157
+ }
158
+ });
159
+
160
+ // 搜索定位
161
+ const searchLocate = (step: number, val: number) => {
162
+ const currentLight = document.getElementsByClassName('light-keyword')[step - 1] as HTMLDivElement;
163
+ const nextLight = document.getElementsByClassName('light-keyword')[step - val];
164
+ nextLight?.classList.remove('light-keyword-active');
165
+ currentLight?.classList.add('light-keyword-active');
166
+
167
+ // 定位
168
+ const aboveVisible = currentLight.offsetTop + currentLight.offsetHeight < scrollContainer.value?.scrollTop; // 是否未到屏幕显示区域
169
+ const exceedVisible = currentLight.offsetTop > scrollContainer.value?.offsetHeight + scrollContainer.value?.scrollTop; // 是否超出屏幕
170
+ if (aboveVisible || exceedVisible) {
171
+ scrollContainer.value?.scrollTo({
172
+ top: currentLight.parentElement?.parentElement?.offsetTop,
173
+ behavior: 'smooth',
174
+ });
175
+ }
176
+ };
177
+
178
+
179
+ // 上一个
180
+ const prevKeyword = () => {
181
+ if (!total.value || current.value === 1) {
182
+ return;
183
+ }
184
+
185
+ current.value--;
186
+
187
+ searchLocate(current.value, 0);
188
+ };
189
+
190
+ // 下一个
191
+ const nextKeyword = (e?: any) => {
192
+ if (e?.shiftKey) {
193
+ return;
194
+ }
195
+ if (!total.value || current.value === total.value) {
196
+ return;
197
+ }
198
+
199
+ current.value++;
200
+
201
+ searchLocate(current.value, 2);
202
+ };
203
+ // 高亮匹配
204
+ const highlightText = (val: string) => {
205
+ computedCaptions.value = props.captions!.filter((v) => {
206
+ return speakers.value.includes(v.speakerLabel);
207
+ })
208
+ .map((item) => {
209
+ return {
210
+ ...item,
211
+ contentHtml: val ? item.contentHtml.replaceAll(val, `<span class="light-keyword">${ val }</span>`) : item.contentHtml,
212
+ };
213
+ });
214
+
215
+ nextTick(() => {
216
+ const lightAll = document.getElementsByClassName('light-keyword');
217
+ total.value = lightAll.length;
218
+ if (total.value) {
219
+ nextKeyword();
220
+ } else {
221
+ scrollContainer.value?.scrollTo({
222
+ top: 0,
223
+ behavior: 'smooth',
224
+ });
225
+ }
226
+ });
227
+ };
228
+
229
+ const debounceTextFn = useDebounceFn(highlightText, 300);
230
+
231
+ // 监听搜索参数变化
232
+ watch(
233
+ () => searchValue.value,
234
+ (val) => {
235
+ current.value = 0;
236
+ debounceTextFn(val);
237
+ },
238
+ );
239
+
240
+ // 监听 options 变化,同步更新 speakers
241
+ watch(
242
+ () => options.value,
243
+ (newVal) => {
244
+ speakers.value = newVal;
245
+ },
246
+ { immediate: true },
247
+ );
248
+
249
+ const checkAll = ref(false);
250
+ const indeterminate = ref(false);
251
+ const handleCheckAll = (checked: CheckboxValueType) => {
252
+ indeterminate.value = false;
253
+ if (checked) {
254
+ speakers.value = options.value;
255
+ } else {
256
+ speakers.value = [];
257
+ }
258
+ };
259
+
260
+ watch(
261
+ () => speakers.value,
262
+ (val) => {
263
+ if (val.length === 0) {
264
+ checkAll.value = false;
265
+ indeterminate.value = false;
266
+ } else if (val.length === options.value.length) {
267
+ checkAll.value = true;
268
+ indeterminate.value = false;
269
+ } else {
270
+ indeterminate.value = true;
271
+ }
272
+ debounceTextFn(searchValue.value);
273
+ },
274
+ { deep: true },
275
+ );
276
+ </script>
277
+
278
+ <template>
279
+ <div class="o-meeting-playback-subtitles">
280
+ <div class="search-captions">
281
+ <OInput
282
+ v-model="searchValue"
283
+ @keydown.enter="nextKeyword"
284
+ @keydown.shift.enter.stop="prevKeyword"
285
+ :placeholder="t('meeting.searchSubtitlePlaceholder')"
286
+ size="large"
287
+ class="input-captions"
288
+ >
289
+ <template #prefix>
290
+ <OIcon>
291
+ <IconSearch />
292
+ </OIcon>
293
+ </template>
294
+ <template #suffix>
295
+ <div v-if="searchValue" class="suffix-box">
296
+ <span>{{ current }}/{{ total }}</span>
297
+ <OIcon @click="prevKeyword">
298
+ <IconChevronUp />
299
+ </OIcon>
300
+ <OIcon @click="nextKeyword">
301
+ <IconChevronDown />
302
+ </OIcon>
303
+ <ODivider direction="v" />
304
+ <OIcon class="hover-close" @click="searchValue = ''">
305
+ <IconClose />
306
+ </OIcon>
307
+ </div>
308
+ </template>
309
+ </OInput>
310
+ <div class="right-handle">
311
+ <ElSelect
312
+ multiple
313
+ v-model="speakers"
314
+ popper-class="speakers-selector-popper"
315
+ class="speakers-selector"
316
+ placement="bottom">
317
+ <template #prefix>
318
+ <OIcon>
319
+ <IconSpeaker />
320
+ </OIcon>
321
+ </template>
322
+ <template #header>
323
+ <ElCheckbox v-model="checkAll" :indeterminate="indeterminate" @change="handleCheckAll">{{ ALL }}
324
+ </ElCheckbox>
325
+ </template>
326
+ <ElOption v-for="t in options" :key="t" :label="t" :value="t">
327
+ <ElCheckbox :model-value="speakers.includes(t)">{{ t }}</ElCheckbox>
328
+ </ElOption>
329
+ </ElSelect>
330
+ </div>
331
+ </div>
332
+ <OTab v-model="activeTab" variant="text" class="captions-tab" @change="changeTab">
333
+ <OTabPane :value="0" :label="t('meeting.audioToText')">
334
+ <OScroller v-if="computedCaptions.length" id="captionsScrollDom" class="captions-scroller" show-type="hover"
335
+ size="small" disabled-x>
336
+ <ORow gap="0 12px" wrap="wrap">
337
+ <OCol flex="0 0 100%" v-for="(item, i) in computedCaptions" :key="i">
338
+ <div class="captions-item" :class="{ 'captions-item-active': currentIndex === i + 1 }"
339
+ @click="videoPosition(item.start_time)">
340
+ <div class="info">
341
+ <div class="num">{{ item.speakerIdx }}</div>
342
+ <div class="speaker">{{ item.speakerLabel }}</div>
343
+ <div class="start-time">{{ formatTime(item.start_time) }}</div>
344
+ <OIcon v-if="currentIndex === i + 1" class="playing initial-fill">
345
+ <IconPlaying />
346
+ </OIcon>
347
+ </div>
348
+ <div class="text" v-dompurify-html="item.contentHtml"></div>
349
+ </div>
350
+ </OCol>
351
+ </ORow>
352
+ </OScroller>
353
+ <div v-else>111</div>
354
+ <!-- <AppEmpty v-else height="100%" />-->
355
+ </OTabPane>
356
+ </OTab>
357
+ </div>
358
+ </template>
359
+
360
+ <style lang="scss">
361
+ .o-meeting-playback-subtitles {
362
+ width: 100%;
363
+ height: 100%;
364
+ min-height: calc(var(--layout-content-min-height) - 104px);
365
+ background-color: var(--o-color-fill2);
366
+ border-radius: var(--o-radius-xs);
367
+
368
+ .search-captions {
369
+ display: flex;
370
+ align-items: center;
371
+ gap: var(--o-gap-4);
372
+
373
+ .input-captions {
374
+ --input-radius: var(--o-radius-xs);
375
+ --_box-radius: var(--o-radius-xs);
376
+ flex-grow: 1;
377
+
378
+ .o-icon {
379
+ font-size: 24px;
380
+ }
381
+
382
+ .suffix-box {
383
+ display: flex;
384
+ align-items: center;
385
+ gap: var(--o-gap-2);
386
+
387
+ .o-icon {
388
+ font-size: 20px;
389
+ cursor: pointer;
390
+ @include hover {
391
+ color: var(--o-color-primary1);
392
+ }
393
+ }
394
+
395
+ .o-divider {
396
+ --o-divider-label-gap: 0;
397
+ }
398
+
399
+ .hover-close {
400
+ width: 24px;
401
+ height: 24px;
402
+ transition: all var(--o-duration-m1) var(--o-easing-standard-in);
403
+ @include hover {
404
+ transform: rotate(-180deg);
405
+ }
406
+ }
407
+ }
408
+ }
409
+
410
+ .right-handle {
411
+ flex-shrink: 0;
412
+ display: flex;
413
+ align-items: center;
414
+ gap: var(--o-gap-4);
415
+
416
+ .o-icon {
417
+ font-size: 16px;
418
+ cursor: pointer;
419
+ color: var(--o-color-info2);
420
+ @include hover {
421
+ color: var(--o-color-primary1);
422
+ }
423
+ }
424
+
425
+ .speakers-selector {
426
+ --select-height: 16px;
427
+ height: fit-content;
428
+ width: fit-content;
429
+
430
+ .el-select__wrapper {
431
+ box-shadow: none;
432
+ padding: 0;
433
+ }
434
+
435
+ .el-select__selection,
436
+ .el-select__suffix {
437
+ display: none;
438
+ }
439
+ }
440
+ }
441
+ }
442
+
443
+ .o-tab {
444
+ margin-top: var(--o-gap-5);
445
+ height: calc(100% - 64px);
446
+
447
+ .o-tab-navs {
448
+ justify-content: flex-start;
449
+
450
+ .o-tab-nav {
451
+ padding-bottom: var(--o-gap-4);
452
+ }
453
+ }
454
+
455
+ .o-tab-body {
456
+ height: calc(100% - var(--o-line_height-text2) - var(--o-gap-4));
457
+ .o-tab-pane {
458
+ height: 100%;
459
+ padding-top: var(--o-gap-4);
460
+
461
+ .o-scroller {
462
+ height: 100%;
463
+
464
+ .o-scrollbar {
465
+ width: calc(100% + 16px);
466
+ }
467
+ }
468
+ }
469
+ }
470
+
471
+ .o-row {
472
+ margin-top: var(--o-gap-5);
473
+ }
474
+ }
475
+
476
+ .captions-tab {
477
+ .captions-scroller {
478
+ @include respond-to('<=pad_v') {
479
+ max-height: 600px;
480
+ }
481
+ }
482
+
483
+ .captions-item {
484
+ padding: 4px 8px;
485
+ cursor: pointer;
486
+ border-radius: var(--o-radius-xs);
487
+ @include hover {
488
+ background-color: rgba(var(--o-blue-6), 0.1);
489
+ }
490
+
491
+ &.captions-item-active {
492
+ background-color: rgba(var(--o-blue-6), 0.1);
493
+ }
494
+
495
+ .info {
496
+ display: flex;
497
+ align-items: center;
498
+
499
+ .num {
500
+ width: 18px;
501
+ height: 18px;
502
+ border-radius: 50%;
503
+ background-color: var(--o-color-primary2);
504
+ color: var(--o-color-info1-inverse);
505
+ display: flex;
506
+ justify-content: center;
507
+ align-items: center;
508
+ @include tip2;
509
+ }
510
+
511
+ .speaker {
512
+ color: var(--o-color-info4);
513
+ margin-left: 4px;
514
+ @include tip2;
515
+ }
516
+
517
+ .start-time {
518
+ color: var(--o-color-info4);
519
+ margin-left: 16px;
520
+ @include tip2;
521
+ }
522
+
523
+ .playing {
524
+ margin-left: 16px;
525
+ color: var(--o-color-primary1);
526
+
527
+ svg {
528
+ width: 16px;
529
+ height: 16px;
530
+ }
531
+ }
532
+ }
533
+
534
+ .text {
535
+ color: var(--o-color-info2);
536
+ margin-top: 8px;
537
+ @include tip1;
538
+
539
+ .light-keyword {
540
+ background-color: rgba(var(--o-blue-6), 0.2);
541
+ }
542
+
543
+ .light-keyword-active {
544
+ background-color: rgba(var(--o-blue-6), 0.4);
545
+ }
546
+ }
547
+ }
548
+ }
549
+ }
550
+ </style>
551
+
552
+ <style lang="scss">
553
+ .speakers-selector-popper {
554
+ border: none;
555
+ --item-height: 40px;
556
+ --el-color-primary: var(--o-color-primary1);
557
+
558
+ .el-select-dropdown {
559
+ padding: 4px;
560
+ }
561
+
562
+ .el-checkbox {
563
+ width: 100%;
564
+ cursor: pointer;
565
+ display: flex;
566
+ align-items: center;
567
+ }
568
+ .el-select-dropdown__header {
569
+ height: var(--item-height);
570
+ display: flex;
571
+ align-items: center;
572
+ padding: 0 12px;
573
+ border-bottom: 0;
574
+ cursor: pointer;
575
+
576
+ &:hover {
577
+ background-color: var(--o-color-control2-light);
578
+ }
579
+ }
580
+
581
+ .el-select-dropdown__list {
582
+ padding: 2px 0 0;
583
+
584
+ .el-select-dropdown__item {
585
+ padding: 0 12px;
586
+ height: var(--item-height);
587
+ display: flex;
588
+ align-items: center;
589
+ cursor: pointer;
590
+
591
+ &.is-selected,
592
+ &.is-hovering {
593
+ background-color: transparent;
594
+ }
595
+
596
+ &.is-selected::after {
597
+ content: none;
598
+ display: none;
599
+ }
600
+
601
+ &:hover {
602
+ background-color: var(--o-color-control2-light);
603
+ }
604
+ }
605
+
606
+ .el-select-dropdown__item + .el-select-dropdown__item {
607
+ margin-top: 2px;
608
+ }
609
+ }
610
+ }
611
+ </style>