@opendesign-plus/components 0.0.1-rc.73 → 0.0.1-rc.75
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/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +34 -22
- package/dist/components/meeting/utils.d.ts +1 -1
- package/dist/components/summit/OSummit.vue.d.ts +7 -0
- package/dist/components/summit/OSummitIntro.vue.d.ts +3 -0
- package/dist/components/summit/OSummitLive.vue.d.ts +7 -0
- package/dist/components/summit/OSummitSchedule.vue.d.ts +3 -0
- package/dist/components/summit/components/OSummitTabs.vue.d.ts +16 -0
- package/dist/components/summit/index.d.ts +83 -0
- package/dist/components/summit/types.d.ts +69 -0
- package/dist/components.cjs.js +39 -39
- package/dist/components.css +1 -1
- package/dist/components.es.js +10326 -9841
- package/dist/index.d.ts +1 -0
- package/dist/treeshaking/_virtual/icon-time.mjs +20 -0
- package/dist/treeshaking/components/meeting/OMeetingCalendar.vue.mjs +4 -2
- package/dist/treeshaking/components/meeting/utils.d.ts +1 -1
- package/dist/treeshaking/components/summit/OSummit.css +13 -0
- package/dist/treeshaking/components/summit/OSummit.vue.d.ts +7 -0
- package/dist/treeshaking/components/summit/OSummit.vue.mjs +7 -0
- package/dist/treeshaking/components/summit/OSummit.vue2.mjs +49 -0
- package/dist/treeshaking/components/summit/OSummitIntro.css +27 -0
- package/dist/treeshaking/components/summit/OSummitIntro.vue.d.ts +3 -0
- package/dist/treeshaking/components/summit/OSummitIntro.vue.mjs +7 -0
- package/dist/treeshaking/components/summit/OSummitIntro.vue2.mjs +26 -0
- package/dist/treeshaking/components/summit/OSummitLive.css +103 -0
- package/dist/treeshaking/components/summit/OSummitLive.vue.d.ts +7 -0
- package/dist/treeshaking/components/summit/OSummitLive.vue.mjs +7 -0
- package/dist/treeshaking/components/summit/OSummitLive.vue2.mjs +135 -0
- package/dist/treeshaking/components/summit/OSummitSchedule.css +187 -0
- package/dist/treeshaking/components/summit/OSummitSchedule.vue.d.ts +3 -0
- package/dist/treeshaking/components/summit/OSummitSchedule.vue.mjs +8 -0
- package/dist/treeshaking/components/summit/OSummitSchedule.vue2.mjs +266 -0
- package/dist/treeshaking/components/summit/OSummitSchedule2.css +43 -0
- package/dist/treeshaking/components/summit/components/OSummitTabs.css +137 -0
- package/dist/treeshaking/components/summit/components/OSummitTabs.vue.d.ts +16 -0
- package/dist/treeshaking/components/summit/components/OSummitTabs.vue.mjs +7 -0
- package/dist/treeshaking/components/summit/components/OSummitTabs.vue2.mjs +155 -0
- package/dist/treeshaking/components/summit/index.d.ts +83 -0
- package/dist/treeshaking/components/summit/index.mjs +30 -0
- package/dist/treeshaking/components/summit/types.d.ts +69 -0
- package/dist/treeshaking/i18n/en.mjs +7 -1
- package/dist/treeshaking/i18n/zh.mjs +7 -1
- package/dist/treeshaking/index.d.ts +1 -0
- package/dist/treeshaking/index.mjs +5 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
version: "1.1",
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: "32",
|
|
6
|
+
height: "32",
|
|
7
|
+
viewBox: "0 0 32 32"
|
|
8
|
+
};
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
11
|
+
createElementVNode("path", {
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
d: "M16 2.667c-7.364 0-13.333 5.97-13.333 13.333s5.97 13.333 13.333 13.333c7.364 0 13.333-5.97 13.333-13.333 0-3.536-1.405-6.928-3.905-9.428s-5.892-3.905-9.428-3.905zM16 26.667c-5.891 0-10.667-4.776-10.667-10.667s4.776-10.667 10.667-10.667c5.891 0 10.667 4.776 10.667 10.667 0 2.829-1.124 5.542-3.124 7.542s-4.713 3.124-7.542 3.124zM17.173 15.52v-6.853c0-0.368-0.298-0.667-0.667-0.667h-1.013c-0.368 0-0.667 0.298-0.667 0.667v7.547c0.007 0.175 0.078 0.341 0.2 0.467l5.333 5.333c0.264 0.256 0.683 0.256 0.947 0l0.707-0.707c0.256-0.264 0.256-0.683 0-0.947l-4.84-4.84z"
|
|
14
|
+
}, null, -1)
|
|
15
|
+
])]);
|
|
16
|
+
}
|
|
17
|
+
const IconTime = { name: "components-icon-time", render };
|
|
18
|
+
export {
|
|
19
|
+
IconTime as default
|
|
20
|
+
};
|
|
@@ -227,7 +227,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
227
227
|
() => {
|
|
228
228
|
var _a;
|
|
229
229
|
if (latestDay.value) {
|
|
230
|
-
|
|
230
|
+
if (latestDay.value !== latestDayLoaded.value) {
|
|
231
|
+
latestDayLoaded.value = latestDay.value;
|
|
232
|
+
}
|
|
231
233
|
(_a = calendar.value) == null ? void 0 : _a.pickDay(dayjs(latestDay.value));
|
|
232
234
|
changeMeetingDay(latestDay.value);
|
|
233
235
|
} else {
|
|
@@ -423,7 +425,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
423
425
|
]),
|
|
424
426
|
createElementVNode("div", _hoisted_6, [
|
|
425
427
|
createElementVNode("span", null, toDisplayString(unref(t)("meeting.latestMeeting")) + " ", 1),
|
|
426
|
-
createElementVNode("span", null, toDisplayString(unref(formatDate)(
|
|
428
|
+
createElementVNode("span", null, toDisplayString(latestDay.value ? latestDay.value : unref(formatDate)()), 1)
|
|
427
429
|
])
|
|
428
430
|
];
|
|
429
431
|
}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
2
|
import { OptionItemT } from './types';
|
|
3
|
-
export declare const formatDate: (date?: undefined | string | Date | Dayjs, format?: string) => string;
|
|
3
|
+
export declare const formatDate: (date?: undefined | null | string | Date | Dayjs, format?: string) => string;
|
|
4
4
|
export declare const findLabelFromOptions: (value: string | number, options: OptionItemT[], labelKey?: keyof OptionItemT, valueKey?: keyof OptionItemT) => any;
|
|
5
5
|
export declare const speakerNum: (val: string) => number;
|
|
6
6
|
export declare const getDateNumber: (date: string) => number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-83d1b7cb] {
|
|
2
|
+
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
|
+
}
|
|
4
|
+
@media (hover: hover) {
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-83d1b7cb] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-summit[data-v-83d1b7cb] {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: var(--o-r-gap-8);
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SummitPropsT } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<SummitPropsT, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
liveChange: (liveId: string | number) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<SummitPropsT> & Readonly<{
|
|
5
|
+
onLiveChange?: ((liveId: string | number) => any) | undefined;
|
|
6
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./OSummit.vue2.mjs";
|
|
2
|
+
import './OSummit.css';
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const _OSummit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-83d1b7cb"]]);
|
|
5
|
+
export {
|
|
6
|
+
_OSummit as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, createBlock, createCommentVNode } from "vue";
|
|
2
|
+
import { useI18n } from "../../i18n/index.mjs";
|
|
3
|
+
import _OSummitIntro from "./OSummitIntro.vue.mjs";
|
|
4
|
+
import _OSummitLive from "./OSummitLive.vue.mjs";
|
|
5
|
+
import _OSummitSchedule from "./OSummitSchedule.vue.mjs";
|
|
6
|
+
const _hoisted_1 = { class: "o-summit" };
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "OSummit",
|
|
9
|
+
props: {
|
|
10
|
+
descList: {},
|
|
11
|
+
descTitle: {},
|
|
12
|
+
live: {},
|
|
13
|
+
liveUrl: {},
|
|
14
|
+
schedule: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["liveChange"],
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const emit = __emit;
|
|
20
|
+
const { t } = useI18n();
|
|
21
|
+
const introTitle = computed(() => props.descTitle || t("summit.introTitle"));
|
|
22
|
+
const onLiveChange = (liveId) => {
|
|
23
|
+
emit("liveChange", liveId);
|
|
24
|
+
};
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
27
|
+
props.descList ? (openBlock(), createBlock(_OSummitIntro, {
|
|
28
|
+
key: 0,
|
|
29
|
+
title: introTitle.value,
|
|
30
|
+
"desc-list": props.descList,
|
|
31
|
+
class: "o-summit-intro-section"
|
|
32
|
+
}, null, 8, ["title", "desc-list"])) : createCommentVNode("", true),
|
|
33
|
+
props.live ? (openBlock(), createBlock(_OSummitLive, {
|
|
34
|
+
key: 1,
|
|
35
|
+
section: props.live,
|
|
36
|
+
"live-url": props.liveUrl || "",
|
|
37
|
+
onChange: onLiveChange
|
|
38
|
+
}, null, 8, ["section", "live-url"])) : createCommentVNode("", true),
|
|
39
|
+
props.schedule ? (openBlock(), createBlock(_OSummitSchedule, {
|
|
40
|
+
key: 2,
|
|
41
|
+
schedule: props.schedule
|
|
42
|
+
}, null, 8, ["schedule"])) : createCommentVNode("", true)
|
|
43
|
+
]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
_sfc_main as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-4878dd94] {
|
|
2
|
+
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
|
+
}
|
|
4
|
+
@media (hover: hover) {
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-4878dd94] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-summit-intro .o-summit-intro-title[data-v-4878dd94] {
|
|
10
|
+
margin-bottom: var(--o-r-gap-7);
|
|
11
|
+
color: var(--o-color-info1);
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
text-align: center;
|
|
14
|
+
font-size: var(--o-r-font_size-display3);
|
|
15
|
+
line-height: var(--o-r-line_height-display3);
|
|
16
|
+
}
|
|
17
|
+
.o-summit-intro p[data-v-4878dd94] {
|
|
18
|
+
color: var(--o-color-info2);
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
text-align: justify;
|
|
21
|
+
text-indent: 2em;
|
|
22
|
+
font-size: var(--o-r-font_size-text1);
|
|
23
|
+
line-height: var(--o-r-line_height-text1);
|
|
24
|
+
}
|
|
25
|
+
.o-summit-intro p + p[data-v-4878dd94] {
|
|
26
|
+
margin-top: var(--o-r-gap-5);
|
|
27
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SummitIntroPropsT } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<SummitIntroPropsT, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SummitIntroPropsT> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./OSummitIntro.vue2.mjs";
|
|
2
|
+
import './OSummitIntro.css';
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const _OSummitIntro = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4878dd94"]]);
|
|
5
|
+
export {
|
|
6
|
+
_OSummitIntro as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList } from "vue";
|
|
2
|
+
const _hoisted_1 = { class: "o-summit-intro" };
|
|
3
|
+
const _hoisted_2 = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "o-summit-intro-title"
|
|
6
|
+
};
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "OSummitIntro",
|
|
9
|
+
props: {
|
|
10
|
+
title: {},
|
|
11
|
+
descList: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
16
|
+
__props.title ? (openBlock(), createElementBlock("h3", _hoisted_2, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
17
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.descList, (item) => {
|
|
18
|
+
return openBlock(), createElementBlock("p", { key: item }, toDisplayString(item), 1);
|
|
19
|
+
}), 128))
|
|
20
|
+
]);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
_sfc_main as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-dbbe6ecb] {
|
|
2
|
+
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
|
+
}
|
|
4
|
+
@media (hover: hover) {
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-dbbe6ecb] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-summit-live .o-summit-title[data-v-dbbe6ecb] {
|
|
10
|
+
margin-bottom: var(--o-r-gap-6);
|
|
11
|
+
color: var(--o-color-info1);
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
text-align: center;
|
|
14
|
+
font-size: var(--o-r-font_size-display3);
|
|
15
|
+
line-height: var(--o-r-line_height-display3);
|
|
16
|
+
}
|
|
17
|
+
.o-summit-live .o-summit-live-wrapper[data-v-dbbe6ecb] {
|
|
18
|
+
margin-top: var(--o-r-gap-6);
|
|
19
|
+
}
|
|
20
|
+
.o-summit-live .o-summit-live-select[data-v-dbbe6ecb] {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
.o-summit-live .o-summit-live-select[data-v-dbbe6ecb] .o-select {
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
.o-summit-live .o-summit-live-select[data-v-dbbe6ecb] .o-select .o-input {
|
|
27
|
+
height: 48px;
|
|
28
|
+
}
|
|
29
|
+
@media (max-width: 840px) {
|
|
30
|
+
.o-summit-live .o-summit-live-select[data-v-dbbe6ecb] {
|
|
31
|
+
display: block;
|
|
32
|
+
margin-bottom: var(--o-gap-2);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.o-summit-live .o-summit-live-video[data-v-dbbe6ecb] {
|
|
36
|
+
margin-bottom: var(--o-r-gap-5);
|
|
37
|
+
width: 100%;
|
|
38
|
+
display: block;
|
|
39
|
+
border: none;
|
|
40
|
+
}
|
|
41
|
+
.o-summit-live .o-summit-live-web[data-v-dbbe6ecb] {
|
|
42
|
+
display: block;
|
|
43
|
+
}
|
|
44
|
+
@media (max-width: 840px) {
|
|
45
|
+
.o-summit-live .o-summit-live-web[data-v-dbbe6ecb] {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
.o-summit-live .o-summit-live-itembox[data-v-dbbe6ecb] {
|
|
50
|
+
display: grid;
|
|
51
|
+
grid-template-columns: repeat(4, 1fr);
|
|
52
|
+
gap: var(--o-r-gap-6) var(--o-r-gap-5);
|
|
53
|
+
width: 100%;
|
|
54
|
+
--link-height: 96px;
|
|
55
|
+
}
|
|
56
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
57
|
+
.o-summit-live .o-summit-live-itembox[data-v-dbbe6ecb] {
|
|
58
|
+
--link-height: 92px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
62
|
+
.o-summit-live .o-summit-live-itembox[data-v-dbbe6ecb] {
|
|
63
|
+
--link-height: 68px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
.o-summit-live .o-summit-live-link[data-v-dbbe6ecb] {
|
|
67
|
+
flex: 1;
|
|
68
|
+
padding: var(--o-r-gap-6) var(--o-r-gap-5);
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
background-color: var(--o-color-fill2);
|
|
71
|
+
background-image: var(--o-summit-live-bg);
|
|
72
|
+
background-position: right center;
|
|
73
|
+
background-repeat: no-repeat;
|
|
74
|
+
height: var(--link-height);
|
|
75
|
+
text-align: center;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
border-radius: var(--o-radius-xs);
|
|
80
|
+
}
|
|
81
|
+
.o-summit-live .o-summit-live-link [data-o-theme*=dark][data-v-dbbe6ecb] {
|
|
82
|
+
background-image: var(--o-summit-live-bg-dark);
|
|
83
|
+
}
|
|
84
|
+
.o-summit-live .o-summit-live-link .o-summit-live-name[data-v-dbbe6ecb] {
|
|
85
|
+
color: var(--o-color-info1);
|
|
86
|
+
font-size: var(--o-r-font_size-h2);
|
|
87
|
+
line-height: var(--o-r-line_height-h2);
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
text-overflow: ellipsis;
|
|
90
|
+
word-break: break-all;
|
|
91
|
+
display: -webkit-box;
|
|
92
|
+
-webkit-box-orient: vertical;
|
|
93
|
+
-webkit-line-clamp: 2;
|
|
94
|
+
}
|
|
95
|
+
.o-summit-live .o-summit-live-link[data-v-dbbe6ecb]:hover {
|
|
96
|
+
box-shadow: var(--o-shadow-2);
|
|
97
|
+
}
|
|
98
|
+
.o-summit-live .o-summit-live-link.is-active .o-summit-live-name[data-v-dbbe6ecb] {
|
|
99
|
+
color: #fff;
|
|
100
|
+
}
|
|
101
|
+
.o-summit-live .o-summit-live-link.is-main[data-v-dbbe6ecb] {
|
|
102
|
+
grid-column: 1/5;
|
|
103
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SummitLivePropsT } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<SummitLivePropsT, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
change: (liveId: string | number) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<SummitLivePropsT> & Readonly<{
|
|
5
|
+
onChange?: ((liveId: string | number) => any) | undefined;
|
|
6
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./OSummitLive.vue2.mjs";
|
|
2
|
+
import './OSummitLive.css';
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const _OSummitLive = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dbbe6ecb"]]);
|
|
5
|
+
export {
|
|
6
|
+
_OSummitLive as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, onUnmounted, openBlock, createElementBlock, toDisplayString, createCommentVNode, createVNode, createElementVNode, unref, withCtx, Fragment, renderList, createBlock, normalizeStyle, normalizeClass } from "vue";
|
|
2
|
+
import { OSelect, OOption } from "@opensig/opendesign";
|
|
3
|
+
import OSummitTabs from "./components/OSummitTabs.vue.mjs";
|
|
4
|
+
const _hoisted_1 = { class: "o-summit-live" };
|
|
5
|
+
const _hoisted_2 = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "o-summit-title"
|
|
8
|
+
};
|
|
9
|
+
const _hoisted_3 = { class: "o-summit-live-wrapper" };
|
|
10
|
+
const _hoisted_4 = { class: "o-summit-live-select" };
|
|
11
|
+
const _hoisted_5 = ["height", "src"];
|
|
12
|
+
const _hoisted_6 = { class: "o-summit-live-web" };
|
|
13
|
+
const _hoisted_7 = { class: "o-summit-live-itembox" };
|
|
14
|
+
const _hoisted_8 = ["onClick"];
|
|
15
|
+
const _hoisted_9 = { class: "o-summit-live-name" };
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
+
__name: "OSummitLive",
|
|
18
|
+
props: {
|
|
19
|
+
section: {},
|
|
20
|
+
liveUrl: {}
|
|
21
|
+
},
|
|
22
|
+
emits: ["change"],
|
|
23
|
+
setup(__props, { emit: __emit }) {
|
|
24
|
+
var _a;
|
|
25
|
+
const props = __props;
|
|
26
|
+
const emit = __emit;
|
|
27
|
+
const height = ref(800);
|
|
28
|
+
const roomId = ref(0);
|
|
29
|
+
const dateIndex = ref(0);
|
|
30
|
+
const currentRooms = computed(() => {
|
|
31
|
+
var _a2;
|
|
32
|
+
return ((_a2 = props.section.rooms) == null ? void 0 : _a2[dateIndex.value]) || [];
|
|
33
|
+
});
|
|
34
|
+
const liveRoom = ref((_a = currentRooms.value[0]) == null ? void 0 : _a.liveId);
|
|
35
|
+
watch(currentRooms, (val) => {
|
|
36
|
+
var _a2;
|
|
37
|
+
liveRoom.value = (_a2 = val[0]) == null ? void 0 : _a2.liveId;
|
|
38
|
+
roomId.value = 0;
|
|
39
|
+
emit("change", liveRoom.value);
|
|
40
|
+
});
|
|
41
|
+
const setLiveRoom = (item, index) => {
|
|
42
|
+
roomId.value = index;
|
|
43
|
+
emit("change", item.liveId);
|
|
44
|
+
};
|
|
45
|
+
const changeLive = (val) => {
|
|
46
|
+
emit("change", val);
|
|
47
|
+
};
|
|
48
|
+
function setHeight(data) {
|
|
49
|
+
if (data.height === "auto") {
|
|
50
|
+
height.value = 550;
|
|
51
|
+
} else if (data.height) {
|
|
52
|
+
height.value = parseInt(data.height, 10);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const messageHandler = (event) => {
|
|
56
|
+
let data = "";
|
|
57
|
+
try {
|
|
58
|
+
data = JSON.parse(event.data);
|
|
59
|
+
} catch {
|
|
60
|
+
data = event.data;
|
|
61
|
+
}
|
|
62
|
+
setHeight(data);
|
|
63
|
+
};
|
|
64
|
+
onMounted(() => {
|
|
65
|
+
window.addEventListener("message", messageHandler, false);
|
|
66
|
+
});
|
|
67
|
+
onUnmounted(() => {
|
|
68
|
+
window.removeEventListener("message", messageHandler);
|
|
69
|
+
});
|
|
70
|
+
return (_ctx, _cache) => {
|
|
71
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
72
|
+
props.section.title ? (openBlock(), createElementBlock("h3", _hoisted_2, toDisplayString(props.section.title), 1)) : createCommentVNode("", true),
|
|
73
|
+
createVNode(OSummitTabs, {
|
|
74
|
+
modelValue: dateIndex.value,
|
|
75
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dateIndex.value = $event),
|
|
76
|
+
items: props.section.dates || []
|
|
77
|
+
}, null, 8, ["modelValue", "items"]),
|
|
78
|
+
createElementVNode("div", _hoisted_3, [
|
|
79
|
+
createElementVNode("div", _hoisted_4, [
|
|
80
|
+
createVNode(unref(OSelect), {
|
|
81
|
+
modelValue: liveRoom.value,
|
|
82
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => liveRoom.value = $event),
|
|
83
|
+
clearable: "",
|
|
84
|
+
filterable: "",
|
|
85
|
+
onChange: changeLive
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(currentRooms.value, (item) => {
|
|
89
|
+
return openBlock(), createBlock(unref(OOption), {
|
|
90
|
+
key: item.id,
|
|
91
|
+
label: item.name,
|
|
92
|
+
value: item.liveId
|
|
93
|
+
}, null, 8, ["label", "value"]);
|
|
94
|
+
}), 128))
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["modelValue"])
|
|
98
|
+
]),
|
|
99
|
+
createElementVNode("iframe", {
|
|
100
|
+
height: height.value,
|
|
101
|
+
allow: "camera *;microphone *;",
|
|
102
|
+
scrolling: "no",
|
|
103
|
+
src: props.liveUrl,
|
|
104
|
+
allowfullscreen: "true",
|
|
105
|
+
class: "o-summit-live-video"
|
|
106
|
+
}, null, 8, _hoisted_5),
|
|
107
|
+
createElementVNode("div", _hoisted_6, [
|
|
108
|
+
createElementVNode("div", _hoisted_7, [
|
|
109
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(currentRooms.value, (item, index) => {
|
|
110
|
+
return openBlock(), createElementBlock("div", {
|
|
111
|
+
key: item.id,
|
|
112
|
+
class: normalizeClass([
|
|
113
|
+
"o-summit-live-link",
|
|
114
|
+
roomId.value === index ? "is-active" : "",
|
|
115
|
+
index === 0 ? "is-main" : ""
|
|
116
|
+
]),
|
|
117
|
+
style: normalizeStyle({
|
|
118
|
+
"--o-summit-live-bg": item.background ? `url(${item.background})` : "",
|
|
119
|
+
"--o-summit-live-bg-dark": item.backgroundDark ? `url(${item.backgroundDark})` : ""
|
|
120
|
+
}),
|
|
121
|
+
onClick: ($event) => setLiveRoom(item, index)
|
|
122
|
+
}, [
|
|
123
|
+
createElementVNode("p", _hoisted_9, toDisplayString(item.name), 1)
|
|
124
|
+
], 14, _hoisted_8);
|
|
125
|
+
}), 128))
|
|
126
|
+
])
|
|
127
|
+
])
|
|
128
|
+
])
|
|
129
|
+
]);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
_sfc_main as default
|
|
135
|
+
};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-41c99a8e] {
|
|
2
|
+
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
|
+
}
|
|
4
|
+
@media (hover: hover) {
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-41c99a8e] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
@media (max-width: 1200px) {
|
|
10
|
+
.o-summit-schedule[data-v-41c99a8e] {
|
|
11
|
+
position: relative;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
.o-summit-schedule .o-summit-title[data-v-41c99a8e] {
|
|
15
|
+
margin-bottom: var(--o-r-gap-7);
|
|
16
|
+
color: var(--o-color-info1);
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
text-align: center;
|
|
19
|
+
font-size: var(--o-r-font_size-display3);
|
|
20
|
+
line-height: var(--o-r-line_height-display3);
|
|
21
|
+
}
|
|
22
|
+
.o-summit-schedule .o-summit-category-tabs[data-v-41c99a8e] {
|
|
23
|
+
--tab-nav-text-size: var(--o-r-font_size-h4);
|
|
24
|
+
--tab-nav-text-height: var(--o-r-line_height-h4);
|
|
25
|
+
margin-bottom: var(--o-r-gap-5);
|
|
26
|
+
}
|
|
27
|
+
.o-summit-schedule .o-summit-forum-type-tabs[data-v-41c99a8e] {
|
|
28
|
+
margin-bottom: var(--o-r-gap-5);
|
|
29
|
+
}
|
|
30
|
+
.o-summit-schedule .o-summit-agenda-content-wrapper[data-v-41c99a8e] {
|
|
31
|
+
background-color: var(--o-color-fill2);
|
|
32
|
+
border-radius: var(--o-radius-xs);
|
|
33
|
+
padding: var(--o-r-gap-5) var(--o-r-gap-6);
|
|
34
|
+
}
|
|
35
|
+
.o-summit-schedule .o-summit-agenda-content[data-v-41c99a8e] {
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-columns: max-content var(--o-r-gap-6) 1fr var(--o-r-gap-5) max-content var(--o-r-gap-4) 1fr;
|
|
38
|
+
align-items: center;
|
|
39
|
+
}
|
|
40
|
+
@media (max-width: 840px) {
|
|
41
|
+
.o-summit-schedule .o-summit-agenda-content[data-v-41c99a8e] {
|
|
42
|
+
display: block;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
.o-summit-schedule .o-summit-schedule-item[data-v-41c99a8e] {
|
|
46
|
+
display: grid;
|
|
47
|
+
grid-template-columns: subgrid;
|
|
48
|
+
grid-column: 1/-1;
|
|
49
|
+
align-items: center;
|
|
50
|
+
padding: var(--o-r-gap-4) 0;
|
|
51
|
+
transition: all 0.25s ease;
|
|
52
|
+
min-height: 64px;
|
|
53
|
+
font-size: var(--o-r-font_size-text1);
|
|
54
|
+
line-height: var(--o-r-line_height-text1);
|
|
55
|
+
}
|
|
56
|
+
@media (max-width: 1200px) {
|
|
57
|
+
.o-summit-schedule .o-summit-schedule-item[data-v-41c99a8e] {
|
|
58
|
+
padding: 6px 0;
|
|
59
|
+
min-height: 36px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
@media (max-width: 840px) {
|
|
63
|
+
.o-summit-schedule .o-summit-schedule-item[data-v-41c99a8e] {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
align-items: flex-start;
|
|
67
|
+
gap: var(--o-gap-2);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
.o-summit-schedule .o-summit-schedule-item + .o-summit-schedule-item[data-v-41c99a8e] {
|
|
71
|
+
border-top: 1px solid var(--o-color-control4);
|
|
72
|
+
}
|
|
73
|
+
.o-summit-schedule .o-summit-schedule-item[data-v-41c99a8e]:hover {
|
|
74
|
+
background-color: var(--o-color-control2-light);
|
|
75
|
+
}
|
|
76
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-time[data-v-41c99a8e] {
|
|
77
|
+
grid-column: 1;
|
|
78
|
+
color: var(--o-color-info2);
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
font-weight: 400;
|
|
82
|
+
flex-wrap: nowrap;
|
|
83
|
+
}
|
|
84
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-time svg[data-v-41c99a8e] {
|
|
85
|
+
--icon-size: 24px;
|
|
86
|
+
height: var(--icon-size);
|
|
87
|
+
width: var(--icon-size);
|
|
88
|
+
font-size: var(--icon-size);
|
|
89
|
+
color: var(--o-color-info3);
|
|
90
|
+
margin-right: var(--o-gap-2);
|
|
91
|
+
}
|
|
92
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
93
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-time svg[data-v-41c99a8e] {
|
|
94
|
+
--icon-size: 20px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
@media (max-width: 840px) {
|
|
98
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-time svg[data-v-41c99a8e] {
|
|
99
|
+
--icon-size: 16px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-time span[data-v-41c99a8e] {
|
|
103
|
+
white-space: nowrap;
|
|
104
|
+
}
|
|
105
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-topics[data-v-41c99a8e] {
|
|
106
|
+
display: grid;
|
|
107
|
+
grid-template-columns: subgrid;
|
|
108
|
+
grid-column: 3/-1;
|
|
109
|
+
align-items: center;
|
|
110
|
+
}
|
|
111
|
+
@media (max-width: 840px) {
|
|
112
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-topics[data-v-41c99a8e] {
|
|
113
|
+
display: block;
|
|
114
|
+
width: 100%;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-topic[data-v-41c99a8e] {
|
|
118
|
+
display: grid;
|
|
119
|
+
grid-template-columns: subgrid;
|
|
120
|
+
grid-column: 1/-1;
|
|
121
|
+
align-items: center;
|
|
122
|
+
}
|
|
123
|
+
@media (max-width: 840px) {
|
|
124
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-topic[data-v-41c99a8e] {
|
|
125
|
+
display: flex;
|
|
126
|
+
gap: var(--o-gap-2);
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
align-items: flex-start;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
@media (max-width: 840px) {
|
|
132
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-topic + .o-summit-schedule-topic[data-v-41c99a8e] {
|
|
133
|
+
margin-top: var(--o-gap-2);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-desc-cell[data-v-41c99a8e] {
|
|
137
|
+
grid-column: 1;
|
|
138
|
+
}
|
|
139
|
+
@media (max-width: 840px) {
|
|
140
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-desc-cell[data-v-41c99a8e] {
|
|
141
|
+
width: 100%;
|
|
142
|
+
flex-shrink: 0;
|
|
143
|
+
flex-grow: 0;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-desc-list[data-v-41c99a8e] {
|
|
147
|
+
display: block;
|
|
148
|
+
}
|
|
149
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-desc[data-v-41c99a8e] {
|
|
150
|
+
color: var(--o-color-info1);
|
|
151
|
+
display: block;
|
|
152
|
+
cursor: pointer;
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
}
|
|
155
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-speakers[data-v-41c99a8e] {
|
|
156
|
+
display: grid;
|
|
157
|
+
grid-template-columns: subgrid;
|
|
158
|
+
grid-column: 3/6;
|
|
159
|
+
row-gap: var(--o-r-gap-3);
|
|
160
|
+
align-items: center;
|
|
161
|
+
}
|
|
162
|
+
@media (max-width: 840px) {
|
|
163
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-speakers[data-v-41c99a8e] {
|
|
164
|
+
grid-column: auto;
|
|
165
|
+
grid-template-columns: 4em 1fr;
|
|
166
|
+
column-gap: var(--o-r-gap-4);
|
|
167
|
+
width: 100%;
|
|
168
|
+
flex-shrink: 0;
|
|
169
|
+
flex-grow: 0;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-speakers .o-summit-schedule-name[data-v-41c99a8e] {
|
|
173
|
+
grid-column: 1;
|
|
174
|
+
color: var(--o-color-info1);
|
|
175
|
+
}
|
|
176
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-speakers .o-summit-schedule-post[data-v-41c99a8e] {
|
|
177
|
+
grid-column: 3;
|
|
178
|
+
display: flex;
|
|
179
|
+
flex-wrap: wrap;
|
|
180
|
+
gap: var(--o-r-gap-2);
|
|
181
|
+
color: var(--o-color-info3);
|
|
182
|
+
}
|
|
183
|
+
@media (max-width: 840px) {
|
|
184
|
+
.o-summit-schedule .o-summit-schedule-item .o-summit-schedule-speakers .o-summit-schedule-post[data-v-41c99a8e] {
|
|
185
|
+
grid-column: 2;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SummitSchedulePropsT } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<SummitSchedulePropsT, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SummitSchedulePropsT> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from "./OSummitSchedule.vue2.mjs";
|
|
2
|
+
import './OSummitSchedule.css';
|
|
3
|
+
import './OSummitSchedule2.css';
|
|
4
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const _OSummitSchedule = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-41c99a8e"]]);
|
|
6
|
+
export {
|
|
7
|
+
_OSummitSchedule as default
|
|
8
|
+
};
|