@opendesign-plus-test/components 0.0.1-rc.107 → 0.0.1-rc.110
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.
- package/dist/components/meeting/types.d.ts +1 -0
- package/dist/components.cjs.js +32 -32
- package/dist/components.css +1 -1
- package/dist/components.es.js +2548 -2533
- package/dist/treeshaking/components/meeting/OMeetingPlayback.css +20 -0
- package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.mjs +41 -18
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.css +65 -5
- package/dist/treeshaking/components/meeting/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -24,6 +24,26 @@
|
|
|
24
24
|
background-color: var(--o-color-fill2);
|
|
25
25
|
padding: var(--o-gap-5);
|
|
26
26
|
}
|
|
27
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
28
|
+
.o-meeting-playback .card-wrapper {
|
|
29
|
+
padding: var(--o-gap-4);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
33
|
+
.o-meeting-playback .card-wrapper {
|
|
34
|
+
padding: var(--o-gap-3);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
38
|
+
.o-meeting-playback .card-wrapper {
|
|
39
|
+
padding: var(--o-gap-3);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@media (max-width: 600px) {
|
|
43
|
+
.o-meeting-playback .card-wrapper {
|
|
44
|
+
padding: var(--o-gap-3);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
27
47
|
.o-meeting-playback .card-wrapper.left-card {
|
|
28
48
|
padding-bottom: 0;
|
|
29
49
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watchEffect, onMounted, onUnmounted, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, unref,
|
|
1
|
+
import { defineComponent, ref, computed, watchEffect, onMounted, onUnmounted, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, createTextVNode, toDisplayString, createBlock, unref, Fragment, renderList, createCommentVNode, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
2
2
|
import { transformSeconds, speakerNum, transformTime } from "./utils.mjs";
|
|
3
3
|
import { OSelect, OOption, OTab, OTabPane, OScroller } from "@opensig/opendesign";
|
|
4
|
-
import _sfc_main$
|
|
4
|
+
import _sfc_main$3 from "./components/OMeetingPlaybackSubtitles.vue.mjs";
|
|
5
5
|
import './components/OMeetingPlaybackSubtitles.css';
|
|
6
6
|
import './components/OMeetingPlaybackSubtitles2.css';
|
|
7
|
-
import _sfc_main$
|
|
7
|
+
import _sfc_main$2 from "./components/OMeetingPlaybackVideo.vue.mjs";
|
|
8
8
|
import './components/OMeetingPlaybackVideo.css';
|
|
9
9
|
import { useI18n } from "../../i18n/index.mjs";
|
|
10
10
|
import { PROGRESS_COLORS } from "./config.mjs";
|
|
11
|
+
import _sfc_main$1 from "../common/TooltipText.vue.mjs";
|
|
12
|
+
import '../common/TooltipText.css';
|
|
11
13
|
const _hoisted_1 = { class: "o-meeting-playback" };
|
|
12
14
|
const _hoisted_2 = { class: "video-header" };
|
|
13
15
|
const _hoisted_3 = { class: "video-title" };
|
|
@@ -36,7 +38,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
38
|
props: {
|
|
37
39
|
dates: { default: () => [] },
|
|
38
40
|
detail: { default: () => ({}) },
|
|
39
|
-
data: { default: () => ({}) }
|
|
41
|
+
data: { default: () => ({}) },
|
|
42
|
+
dev: { type: Boolean }
|
|
40
43
|
},
|
|
41
44
|
emits: ["change-date"],
|
|
42
45
|
setup(__props, { emit: __emit }) {
|
|
@@ -67,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
70
|
};
|
|
68
71
|
const subjectList = ref([]);
|
|
69
72
|
const getProgressColor = (idx) => {
|
|
70
|
-
return PROGRESS_COLORS[idx %
|
|
73
|
+
return PROGRESS_COLORS[idx % 6];
|
|
71
74
|
};
|
|
72
75
|
const playerDuration = ref(0);
|
|
73
76
|
const getPlayerDuration = (seconds) => {
|
|
@@ -110,13 +113,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
113
|
const getSubjectList = async (url) => {
|
|
111
114
|
const res = await fetch(url);
|
|
112
115
|
const json = await res.json();
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
if (props.dev) {
|
|
117
|
+
subjectList.value = [...json || [], ...json || [], ...json || []].map((z) => {
|
|
118
|
+
return {
|
|
119
|
+
...z,
|
|
120
|
+
startTimeNumber: transformTime(z.startTime),
|
|
121
|
+
endTimeNumber: transformTime(z.endTime)
|
|
122
|
+
};
|
|
123
|
+
});
|
|
124
|
+
} else {
|
|
125
|
+
subjectList.value = (json || []).map((z) => {
|
|
126
|
+
return {
|
|
127
|
+
...z,
|
|
128
|
+
startTimeNumber: transformTime(z.startTime),
|
|
129
|
+
endTimeNumber: transformTime(z.endTime)
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
}
|
|
120
133
|
};
|
|
121
134
|
const tab = ref("info");
|
|
122
135
|
const tabOptions = computed(() => {
|
|
@@ -176,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
176
189
|
observer == null ? void 0 : observer.disconnect();
|
|
177
190
|
});
|
|
178
191
|
return (_ctx, _cache) => {
|
|
179
|
-
var _a, _b
|
|
192
|
+
var _a, _b;
|
|
180
193
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
181
194
|
createElementVNode("div", {
|
|
182
195
|
class: "left-card card-wrapper",
|
|
@@ -184,12 +197,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
184
197
|
ref: leftRef
|
|
185
198
|
}, [
|
|
186
199
|
createElementVNode("div", _hoisted_2, [
|
|
187
|
-
createElementVNode("div", _hoisted_3,
|
|
188
|
-
|
|
200
|
+
createElementVNode("div", _hoisted_3, [
|
|
201
|
+
createVNode(_sfc_main$1, { lines: 2 }, {
|
|
202
|
+
default: withCtx(() => {
|
|
203
|
+
var _a2, _b2;
|
|
204
|
+
return [
|
|
205
|
+
createTextVNode(toDisplayString((_a2 = __props.detail) == null ? void 0 : _a2.topic) + "(" + toDisplayString((_b2 = __props.detail) == null ? void 0 : _b2.date) + ")", 1)
|
|
206
|
+
];
|
|
207
|
+
}),
|
|
208
|
+
_: 1
|
|
209
|
+
})
|
|
210
|
+
]),
|
|
211
|
+
((_a = __props.dates) == null ? void 0 : _a.length) ? (openBlock(), createBlock(unref(OSelect), {
|
|
189
212
|
key: 0,
|
|
190
213
|
size: "large",
|
|
191
214
|
clearable: false,
|
|
192
|
-
"model-value": (
|
|
215
|
+
"model-value": (_b = __props.detail) == null ? void 0 : _b.date,
|
|
193
216
|
placeholder: unref(t)("meeting.selectDate"),
|
|
194
217
|
onChange: changeDate
|
|
195
218
|
}, {
|
|
@@ -206,7 +229,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
206
229
|
}, 8, ["model-value", "placeholder"])) : createCommentVNode("", true)
|
|
207
230
|
]),
|
|
208
231
|
createElementVNode("div", _hoisted_4, [
|
|
209
|
-
__props.data ? (openBlock(), createBlock(_sfc_main$
|
|
232
|
+
__props.data ? (openBlock(), createBlock(_sfc_main$2, {
|
|
210
233
|
key: 0,
|
|
211
234
|
ref_key: "playerRef",
|
|
212
235
|
ref: playerRef,
|
|
@@ -308,7 +331,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
308
331
|
height: rightHeight.value
|
|
309
332
|
})
|
|
310
333
|
}, [
|
|
311
|
-
createVNode(_sfc_main$
|
|
334
|
+
createVNode(_sfc_main$3, {
|
|
312
335
|
captions: captionsList.value,
|
|
313
336
|
trackIdx: trackIdx.value,
|
|
314
337
|
instance: playbackInstance.value
|
|
@@ -378,18 +378,78 @@
|
|
|
378
378
|
height: calc(100% - 64px);
|
|
379
379
|
--tab-nav-justify: flex-start;
|
|
380
380
|
}
|
|
381
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
382
|
+
.o-meeting-playback-subtitles .o-tab {
|
|
383
|
+
margin-top: var(--o-gap-4);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
@media (min-width: 601px) and (max-width: 1200px) {
|
|
387
|
+
.o-meeting-playback-subtitles .o-tab {
|
|
388
|
+
margin-top: var(--o-gap-3);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
@media (max-width: 600px) {
|
|
392
|
+
.o-meeting-playback-subtitles .o-tab {
|
|
393
|
+
margin-top: var(--o-gap-2);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
381
396
|
.o-meeting-playback-subtitles .o-tab .o-tab-nav-list {
|
|
382
397
|
width: 100%;
|
|
383
398
|
}
|
|
384
399
|
.o-meeting-playback-subtitles .o-tab .o-tab-navs .o-tab-nav {
|
|
385
400
|
padding-bottom: var(--o-gap-4);
|
|
386
401
|
}
|
|
402
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
403
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-navs .o-tab-nav {
|
|
404
|
+
margin-top: var(--o-gap-3);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
408
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-navs .o-tab-nav {
|
|
409
|
+
margin-top: var(--o-gap-2);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
413
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-navs .o-tab-nav {
|
|
414
|
+
margin-top: var(--o-gap-3);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
@media (max-width: 600px) {
|
|
418
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-navs .o-tab-nav {
|
|
419
|
+
margin-top: var(--o-gap-1);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
387
422
|
.o-meeting-playback-subtitles .o-tab .o-tab-body {
|
|
388
423
|
height: calc(100% - var(--o-line_height-text2) - var(--o-gap-4));
|
|
389
424
|
}
|
|
390
425
|
.o-meeting-playback-subtitles .o-tab .o-tab-body .o-tab-pane {
|
|
391
426
|
height: 100%;
|
|
392
427
|
padding-top: var(--o-gap-5);
|
|
428
|
+
position: relative;
|
|
429
|
+
}
|
|
430
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
431
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-body .o-tab-pane {
|
|
432
|
+
padding-top: var(--o-gap-4);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
@media (min-width: 601px) and (max-width: 1200px) {
|
|
436
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-body .o-tab-pane {
|
|
437
|
+
padding-top: var(--o-gap-3);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
@media (max-width: 600px) {
|
|
441
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-body .o-tab-pane {
|
|
442
|
+
padding-top: var(--o-gap-3);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-body .o-tab-pane::after {
|
|
446
|
+
height: 24px;
|
|
447
|
+
content: "";
|
|
448
|
+
position: absolute;
|
|
449
|
+
bottom: 0;
|
|
450
|
+
left: 0;
|
|
451
|
+
right: 0;
|
|
452
|
+
background: linear-gradient(180deg, rgba(var(--o-grey-1), 0), rgba(var(--o-grey-1), 1) 100%);
|
|
393
453
|
}
|
|
394
454
|
.o-meeting-playback-subtitles .o-tab .o-tab-body .o-tab-pane .o-scroller {
|
|
395
455
|
height: 100%;
|
|
@@ -398,7 +458,7 @@
|
|
|
398
458
|
width: calc(100% + 16px);
|
|
399
459
|
}
|
|
400
460
|
.o-meeting-playback-subtitles .o-tab .o-row {
|
|
401
|
-
margin-top:
|
|
461
|
+
margin-top: 0;
|
|
402
462
|
}
|
|
403
463
|
@media (max-width: 840px) {
|
|
404
464
|
.o-meeting-playback-subtitles .captions-tab .captions-scroller {
|
|
@@ -461,8 +521,8 @@
|
|
|
461
521
|
.o-meeting-playback-subtitles .captions-tab .captions-item .info .speaker {
|
|
462
522
|
color: var(--o-color-info3);
|
|
463
523
|
margin-left: 4px;
|
|
464
|
-
font-size:
|
|
465
|
-
line-height:
|
|
524
|
+
font-size: 14px;
|
|
525
|
+
line-height: 22px;
|
|
466
526
|
}
|
|
467
527
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
468
528
|
.o-meeting-playback-subtitles .captions-tab .captions-item .info .speaker {
|
|
@@ -491,8 +551,8 @@
|
|
|
491
551
|
.o-meeting-playback-subtitles .captions-tab .captions-item .info .start-time {
|
|
492
552
|
color: var(--o-color-info3);
|
|
493
553
|
margin-left: 16px;
|
|
494
|
-
font-size:
|
|
495
|
-
line-height:
|
|
554
|
+
font-size: 14px;
|
|
555
|
+
line-height: 22px;
|
|
496
556
|
}
|
|
497
557
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
498
558
|
.o-meeting-playback-subtitles .captions-tab .captions-item .info .start-time {
|