@opendesign-plus-test/components 0.0.1-rc.118 → 0.0.1-rc.120
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/components/OMeetingSigAside.vue.d.ts +175 -1
- package/dist/components/meeting/types.d.ts +1 -2
- package/dist/components.cjs.js +25 -25
- package/dist/components.css +1 -1
- package/dist/components.es.js +1461 -1441
- package/dist/treeshaking/components/meeting/OMeetingPlayback.css +5 -1
- package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.mjs +1 -1
- package/dist/treeshaking/components/meeting/OMeetingSigCalendar.css +3 -0
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.css +33 -1
- package/dist/treeshaking/components/meeting/components/OMeetingSigAside.vue.d.ts +175 -1
- package/dist/treeshaking/components/meeting/components/OMeetingSigAside.vue.mjs +33 -2
- package/dist/treeshaking/components/meeting/types.d.ts +1 -2
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
--meeting-card-radius: var(--o-radius-xs);
|
|
14
14
|
--meeting-input-radius: var(--o-radius-xs);
|
|
15
15
|
--meeting-cell-radius: var(--o-radius-xs);
|
|
16
|
+
--after-linear-bg: linear-gradient(180deg, rgba(var(--o-grey-1), 0), rgba(var(--o-grey-1), 1) 100%);
|
|
16
17
|
}
|
|
17
18
|
@media (max-width: 840px) {
|
|
18
19
|
.o-meeting-playback {
|
|
@@ -173,7 +174,7 @@
|
|
|
173
174
|
bottom: 0;
|
|
174
175
|
left: 0;
|
|
175
176
|
right: 0;
|
|
176
|
-
background:
|
|
177
|
+
background: var(--after-linear-bg);
|
|
177
178
|
}
|
|
178
179
|
@media (max-width: 840px) {
|
|
179
180
|
.o-meeting-playback .left-card .info-wrapper .tab-content::after {
|
|
@@ -353,4 +354,7 @@
|
|
|
353
354
|
.o-meeting-playback .right-card {
|
|
354
355
|
width: 100%;
|
|
355
356
|
}
|
|
357
|
+
}
|
|
358
|
+
[data-o-theme*=dark] .o-meeting-playback {
|
|
359
|
+
--after-linear-bg: linear-gradient(180deg, rgba(var(--o-grey-4), 0), rgba(var(--o-grey-4), 1) 100%);
|
|
356
360
|
}
|
|
@@ -309,7 +309,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
309
309
|
]),
|
|
310
310
|
createElementVNode("div", _hoisted_8, [
|
|
311
311
|
createElementVNode("span", null, toDisplayString(unref(t)("meeting.item2")), 1),
|
|
312
|
-
createElementVNode("span", null, toDisplayString(__props.detail.groupName
|
|
312
|
+
createElementVNode("span", null, toDisplayString(__props.detail.groupName), 1)
|
|
313
313
|
]),
|
|
314
314
|
createElementVNode("div", _hoisted_9, [
|
|
315
315
|
createElementVNode("span", null, toDisplayString(unref(t)("meeting.item3")), 1),
|
|
@@ -149,6 +149,9 @@
|
|
|
149
149
|
.o-sig-meeting-calendar .meeting-card-header .o-tab .o-tab-nav {
|
|
150
150
|
padding-bottom: var(--o-gap-3);
|
|
151
151
|
}
|
|
152
|
+
.o-sig-meeting-calendar .meeting-card-header .o-tab .o-tab-nav .o-icon svg path {
|
|
153
|
+
fill: currentColor;
|
|
154
|
+
}
|
|
152
155
|
.o-sig-meeting-calendar .el-input__prefix {
|
|
153
156
|
display: none;
|
|
154
157
|
}
|
|
@@ -303,6 +303,7 @@
|
|
|
303
303
|
min-height: calc(var(--layout-content-min-height) - 104px);
|
|
304
304
|
background-color: var(--o-color-fill2);
|
|
305
305
|
border-radius: var(--meeting-card-radius);
|
|
306
|
+
--after-linear-bg: linear-gradient(180deg, rgba(var(--o-grey-1), 0), rgba(var(--o-grey-1), 1) 100%);
|
|
306
307
|
}
|
|
307
308
|
.o-meeting-playback-subtitles .search-captions {
|
|
308
309
|
display: flex;
|
|
@@ -437,6 +438,34 @@
|
|
|
437
438
|
padding: 0 var(--o-gap-3);
|
|
438
439
|
}
|
|
439
440
|
}
|
|
441
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-head.show-line::after {
|
|
442
|
+
left: var(--o-gap-5);
|
|
443
|
+
right: var(--o-gap-5);
|
|
444
|
+
}
|
|
445
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
446
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-head.show-line::after {
|
|
447
|
+
left: var(--o-gap-4);
|
|
448
|
+
right: var(--o-gap-4);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
452
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-head.show-line::after {
|
|
453
|
+
left: var(--o-gap-3);
|
|
454
|
+
right: var(--o-gap-3);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
458
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-head.show-line::after {
|
|
459
|
+
left: var(--o-gap-3);
|
|
460
|
+
right: var(--o-gap-3);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
@media (max-width: 600px) {
|
|
464
|
+
.o-meeting-playback-subtitles .o-tab .o-tab-head.show-line::after {
|
|
465
|
+
left: var(--o-gap-3);
|
|
466
|
+
right: var(--o-gap-3);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
440
469
|
.o-meeting-playback-subtitles .o-tab .o-tab-nav-list {
|
|
441
470
|
width: 100%;
|
|
442
471
|
}
|
|
@@ -514,7 +543,7 @@
|
|
|
514
543
|
bottom: 0;
|
|
515
544
|
left: 0;
|
|
516
545
|
right: 0;
|
|
517
|
-
background:
|
|
546
|
+
background: var(--after-linear-bg);
|
|
518
547
|
}
|
|
519
548
|
.o-meeting-playback-subtitles .o-tab .o-tab-body .o-tab-pane .o-scroller {
|
|
520
549
|
height: 100%;
|
|
@@ -708,4 +737,7 @@
|
|
|
708
737
|
}
|
|
709
738
|
.o-meeting-playback-subtitles .captions-tab .captions-item .text .light-keyword-active {
|
|
710
739
|
background-color: rgba(var(--o-blue-6), 0.4);
|
|
740
|
+
}
|
|
741
|
+
[data-o-theme*=dark] .o-meeting-playback-subtitles {
|
|
742
|
+
--after-linear-bg: linear-gradient(180deg, rgba(var(--o-grey-4), 0), rgba(var(--o-grey-4), 1) 100%);
|
|
711
743
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { nextTick, ComponentPublicInstance } from 'vue';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
data: any[];
|
|
3
4
|
current: number;
|
|
@@ -12,5 +13,178 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
12
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
14
|
"onClick-date"?: ((...args: any[]) => any) | undefined;
|
|
14
15
|
"onChange-month"?: ((...args: any[]) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
17
|
+
scrollerRef: ({
|
|
18
|
+
$: import('vue').ComponentInternalInstance;
|
|
19
|
+
$data: {};
|
|
20
|
+
$props: Partial<{
|
|
21
|
+
size: "medium" | "small";
|
|
22
|
+
duration: number;
|
|
23
|
+
disabledX: boolean;
|
|
24
|
+
disabledY: boolean;
|
|
25
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
26
|
+
autoUpdateOnScrollSize: boolean;
|
|
27
|
+
}> & Omit<{
|
|
28
|
+
readonly size: "small" | "medium";
|
|
29
|
+
readonly duration: number;
|
|
30
|
+
readonly disabledX: boolean;
|
|
31
|
+
readonly disabledY: boolean;
|
|
32
|
+
readonly showType: "auto" | "hover" | "always" | "never";
|
|
33
|
+
readonly autoUpdateOnScrollSize: boolean;
|
|
34
|
+
readonly wrapClass?: string | {
|
|
35
|
+
[k: string]: boolean;
|
|
36
|
+
} | (string | {
|
|
37
|
+
[k: string]: boolean;
|
|
38
|
+
})[] | undefined;
|
|
39
|
+
readonly barClass?: string | {
|
|
40
|
+
[k: string]: boolean;
|
|
41
|
+
} | (string | {
|
|
42
|
+
[k: string]: boolean;
|
|
43
|
+
})[] | undefined;
|
|
44
|
+
readonly onScroll?: ((event: Event) => any) | undefined | undefined;
|
|
45
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize">;
|
|
46
|
+
$attrs: import('vue').Attrs;
|
|
47
|
+
$refs: {
|
|
48
|
+
[x: string]: unknown;
|
|
49
|
+
} & {
|
|
50
|
+
targetRef: HTMLDivElement;
|
|
51
|
+
};
|
|
52
|
+
$slots: Readonly<{
|
|
53
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
$root: ComponentPublicInstance | null;
|
|
56
|
+
$parent: ComponentPublicInstance | null;
|
|
57
|
+
$host: Element | null;
|
|
58
|
+
$emit: (event: "scroll", event: Event) => void;
|
|
59
|
+
$el: HTMLDivElement;
|
|
60
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
61
|
+
wrapClass: {
|
|
62
|
+
type: import('vue').PropType<string | {
|
|
63
|
+
[k: string]: boolean;
|
|
64
|
+
} | Array<{
|
|
65
|
+
[k: string]: boolean;
|
|
66
|
+
} | string>>;
|
|
67
|
+
};
|
|
68
|
+
disabledX: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
required: false;
|
|
71
|
+
};
|
|
72
|
+
disabledY: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
};
|
|
75
|
+
duration: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
default: number;
|
|
78
|
+
};
|
|
79
|
+
showType: {
|
|
80
|
+
type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
size: {
|
|
84
|
+
type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
autoUpdateOnScrollSize: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
};
|
|
90
|
+
barClass: {
|
|
91
|
+
type: import('vue').PropType<string | {
|
|
92
|
+
[k: string]: boolean;
|
|
93
|
+
} | Array<{
|
|
94
|
+
[k: string]: boolean;
|
|
95
|
+
} | string>>;
|
|
96
|
+
};
|
|
97
|
+
}>> & Readonly<{
|
|
98
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
99
|
+
}>, {
|
|
100
|
+
scrollTo: (options?: ScrollToOptions | undefined) => void;
|
|
101
|
+
scrollBy: (options?: ScrollToOptions | undefined) => void;
|
|
102
|
+
getContainerEl(): HTMLElement | null;
|
|
103
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
104
|
+
scroll: (event: Event) => any;
|
|
105
|
+
}, string, {
|
|
106
|
+
size: "medium" | "small";
|
|
107
|
+
duration: number;
|
|
108
|
+
disabledX: boolean;
|
|
109
|
+
disabledY: boolean;
|
|
110
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
111
|
+
autoUpdateOnScrollSize: boolean;
|
|
112
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
113
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
114
|
+
created?: (() => void) | (() => void)[];
|
|
115
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
116
|
+
mounted?: (() => void) | (() => void)[];
|
|
117
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
118
|
+
updated?: (() => void) | (() => void)[];
|
|
119
|
+
activated?: (() => void) | (() => void)[];
|
|
120
|
+
deactivated?: (() => void) | (() => void)[];
|
|
121
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
122
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
123
|
+
destroyed?: (() => void) | (() => void)[];
|
|
124
|
+
unmounted?: (() => void) | (() => void)[];
|
|
125
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
126
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
127
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
128
|
+
};
|
|
129
|
+
$forceUpdate: () => void;
|
|
130
|
+
$nextTick: typeof nextTick;
|
|
131
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
132
|
+
} & Readonly<{
|
|
133
|
+
size: "medium" | "small";
|
|
134
|
+
duration: number;
|
|
135
|
+
disabledX: boolean;
|
|
136
|
+
disabledY: boolean;
|
|
137
|
+
showType: "auto" | "always" | "never" | "hover";
|
|
138
|
+
autoUpdateOnScrollSize: boolean;
|
|
139
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
140
|
+
wrapClass: {
|
|
141
|
+
type: import('vue').PropType<string | {
|
|
142
|
+
[k: string]: boolean;
|
|
143
|
+
} | Array<{
|
|
144
|
+
[k: string]: boolean;
|
|
145
|
+
} | string>>;
|
|
146
|
+
};
|
|
147
|
+
disabledX: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
required: false;
|
|
150
|
+
};
|
|
151
|
+
disabledY: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
};
|
|
154
|
+
duration: {
|
|
155
|
+
type: NumberConstructor;
|
|
156
|
+
default: number;
|
|
157
|
+
};
|
|
158
|
+
showType: {
|
|
159
|
+
type: import('vue').PropType<"auto" | "always" | "hover" | "never">;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
size: {
|
|
163
|
+
type: import('vue').PropType<import('@opensig/opendesign').ScrollerSizeT>;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
autoUpdateOnScrollSize: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
};
|
|
169
|
+
barClass: {
|
|
170
|
+
type: import('vue').PropType<string | {
|
|
171
|
+
[k: string]: boolean;
|
|
172
|
+
} | Array<{
|
|
173
|
+
[k: string]: boolean;
|
|
174
|
+
} | string>>;
|
|
175
|
+
};
|
|
176
|
+
}>> & Readonly<{
|
|
177
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
178
|
+
}>, "size" | "duration" | "disabledX" | "disabledY" | "showType" | "autoUpdateOnScrollSize" | "scrollTo" | "scrollBy" | "getContainerEl"> & {
|
|
179
|
+
scrollTo: (options?: ScrollToOptions | undefined) => void;
|
|
180
|
+
scrollBy: (options?: ScrollToOptions | undefined) => void;
|
|
181
|
+
getContainerEl: () => HTMLElement | null;
|
|
182
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
183
|
+
$slots: {
|
|
184
|
+
default?(_: {}): any;
|
|
185
|
+
thumb?(_: {}): any;
|
|
186
|
+
track?(_: {}): any;
|
|
187
|
+
};
|
|
188
|
+
}) | null;
|
|
189
|
+
}, HTMLDivElement>;
|
|
16
190
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createElementVNode, toDisplayString, normalizeClass, createBlock, normalizeStyle, resolveDynamicComponent, createCommentVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, watch, nextTick, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createElementVNode, toDisplayString, normalizeClass, createBlock, normalizeStyle, resolveDynamicComponent, createCommentVNode } from "vue";
|
|
2
2
|
import { OScroller, OIcon, OIconArrowLeft, OIconArrowRight } from "@opensig/opendesign";
|
|
3
3
|
import { useMeetingConfig } from "../composables/useMeetingConfig.mjs";
|
|
4
4
|
import { CalendarDataType } from "../types.mjs";
|
|
@@ -32,9 +32,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
if (props.current + step >= props.total || props.current + step < 0) return;
|
|
33
33
|
emits("change-month", step);
|
|
34
34
|
};
|
|
35
|
+
const scrollerRef = ref(null);
|
|
36
|
+
const scrollToActiveTop = () => {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
const containerEl = ((_b = (_a = scrollerRef.value) == null ? void 0 : _a.getContainerEl) == null ? void 0 : _b.call(_a)) ?? null;
|
|
39
|
+
if (!containerEl) return false;
|
|
40
|
+
const activeEl = containerEl.querySelector(".day-item.active");
|
|
41
|
+
if (!activeEl) return false;
|
|
42
|
+
const containerRect = containerEl.getBoundingClientRect();
|
|
43
|
+
const activeRect = activeEl.getBoundingClientRect();
|
|
44
|
+
containerEl.scrollTop += activeRect.top - containerRect.top;
|
|
45
|
+
return true;
|
|
46
|
+
};
|
|
47
|
+
let scrolled = false;
|
|
48
|
+
const stopActiveWatch = watch(
|
|
49
|
+
[() => props.active, () => props.data],
|
|
50
|
+
() => {
|
|
51
|
+
if (scrolled || !props.active) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
nextTick(() => {
|
|
55
|
+
if (scrolled) return;
|
|
56
|
+
if (scrollToActiveTop()) {
|
|
57
|
+
scrolled = true;
|
|
58
|
+
stopActiveWatch();
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
{ immediate: true, flush: "post" }
|
|
63
|
+
);
|
|
35
64
|
return (_ctx, _cache) => {
|
|
36
65
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
37
66
|
createVNode(unref(OScroller), {
|
|
67
|
+
ref_key: "scrollerRef",
|
|
68
|
+
ref: scrollerRef,
|
|
38
69
|
class: "month-wrapper",
|
|
39
70
|
"show-type": "hover",
|
|
40
71
|
size: "small"
|
|
@@ -91,7 +122,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
122
|
}), 128))
|
|
92
123
|
]),
|
|
93
124
|
_: 1
|
|
94
|
-
}),
|
|
125
|
+
}, 512),
|
|
95
126
|
createElementVNode("div", _hoisted_7, [
|
|
96
127
|
createVNode(unref(OIcon), {
|
|
97
128
|
onClick: _cache[0] || (_cache[0] = ($event) => changeMonth(0 - STEP)),
|