@opendesign-plus-test/components 0.0.1-rc.158 → 0.0.1-rc.159
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 +10917 -10435
- package/dist/index.d.ts +1 -0
- package/dist/treeshaking/_virtual/icon-time.mjs +20 -0
- package/dist/treeshaking/components/activity/OActivityApproval.vue.mjs +20 -24
- package/dist/treeshaking/components/meeting/OMeetingCalendar.vue.mjs +10 -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 +1 -1
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
|
+
};
|
|
@@ -46,13 +46,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
getActivityDetailRequest: {}
|
|
47
47
|
},
|
|
48
48
|
setup(__props) {
|
|
49
|
-
var _a, _b, _c;
|
|
50
49
|
const { t, locale } = useI18n();
|
|
51
50
|
const isZh = computed(() => locale.value === "zh");
|
|
52
51
|
const { approvalStatusMap, statusMap, activityTypeMap } = useActivityConfig();
|
|
53
|
-
console.log(statusMap.value);
|
|
54
|
-
console.log((_a = statusMap.value) == null ? void 0 : _a.get(3));
|
|
55
|
-
console.log((_c = (_b = statusMap.value) == null ? void 0 : _b.get(3)) == null ? void 0 : _c.text);
|
|
56
52
|
const message = useMessage(null);
|
|
57
53
|
const { isPhone, lePadV } = useScreen();
|
|
58
54
|
const props = __props;
|
|
@@ -145,7 +141,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
145
141
|
}
|
|
146
142
|
const res = await props.getTableDataRequest(paramsData);
|
|
147
143
|
tableData.value = (res.data || []).map((item) => {
|
|
148
|
-
var
|
|
144
|
+
var _a;
|
|
149
145
|
const { start_date, end_date, start, end, activity_type } = item;
|
|
150
146
|
return [
|
|
151
147
|
{
|
|
@@ -155,7 +151,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
155
151
|
end_date_time: `${end_date} ${end}`,
|
|
156
152
|
type: CalendarDataType.EVENTS,
|
|
157
153
|
dateRange: `${start_date} ${start}-${end_date} ${end}`,
|
|
158
|
-
activity_type: (
|
|
154
|
+
activity_type: (_a = activityTypeMap.value.get(activity_type)) == null ? void 0 : _a.label
|
|
159
155
|
}
|
|
160
156
|
];
|
|
161
157
|
}).flat();
|
|
@@ -183,21 +179,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
183
179
|
reason: [{ required: true, message: t("meeting.enterReviewNotes") }]
|
|
184
180
|
});
|
|
185
181
|
const confirm = async () => {
|
|
186
|
-
var
|
|
182
|
+
var _a, _b, _c, _d;
|
|
187
183
|
if (!props.approveActivityRequest || !props.rejectActivityRequest) {
|
|
188
184
|
return;
|
|
189
185
|
}
|
|
190
186
|
try {
|
|
191
187
|
loading.value = true;
|
|
192
|
-
const valid = await ((
|
|
188
|
+
const valid = await ((_a = formRef.value) == null ? void 0 : _a.validate());
|
|
193
189
|
if (!valid || valid.some((v) => !!v)) {
|
|
194
190
|
loading.value = false;
|
|
195
191
|
return;
|
|
196
192
|
}
|
|
197
193
|
if (reviewStatus.value === 1) {
|
|
198
|
-
await props.approveActivityRequest((
|
|
194
|
+
await props.approveActivityRequest((_b = currentRow.value) == null ? void 0 : _b.id, form.value);
|
|
199
195
|
} else {
|
|
200
|
-
await props.rejectActivityRequest((
|
|
196
|
+
await props.rejectActivityRequest((_c = currentRow.value) == null ? void 0 : _c.id, form.value);
|
|
201
197
|
}
|
|
202
198
|
getData();
|
|
203
199
|
cancel();
|
|
@@ -216,7 +212,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
216
212
|
form.value.reason = "";
|
|
217
213
|
};
|
|
218
214
|
const confirmCancel = async () => {
|
|
219
|
-
var
|
|
215
|
+
var _a;
|
|
220
216
|
if (props.deleteActivityRequest && props.cancelActivityRequest) {
|
|
221
217
|
try {
|
|
222
218
|
loading.value = true;
|
|
@@ -228,7 +224,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
228
224
|
getData();
|
|
229
225
|
cancel();
|
|
230
226
|
message.success({
|
|
231
|
-
content: t("meeting.activityActionSuccess", [(
|
|
227
|
+
content: t("meeting.activityActionSuccess", [(_a = currentRow.value) == null ? void 0 : _a.title, cancelText.value])
|
|
232
228
|
});
|
|
233
229
|
} finally {
|
|
234
230
|
loading.value = false;
|
|
@@ -275,8 +271,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
275
271
|
}
|
|
276
272
|
fetchedDetailIds.value.add(val);
|
|
277
273
|
props.getActivityDetailRequest(val).then((res) => {
|
|
278
|
-
var
|
|
279
|
-
(
|
|
274
|
+
var _a;
|
|
275
|
+
(_a = tableData.value) == null ? void 0 : _a.forEach((item) => {
|
|
280
276
|
if (item.id === res.id) {
|
|
281
277
|
item.approve_record = res.approve_record;
|
|
282
278
|
item.approver = res.approver;
|
|
@@ -387,18 +383,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
387
383
|
createTextVNode(toDisplayString(unref(dayjs)(asItem(row).create_time).format("YYYY/MM/DD HH:mm:ss")), 1)
|
|
388
384
|
]),
|
|
389
385
|
td_status: withCtx(({ row }) => {
|
|
390
|
-
var
|
|
386
|
+
var _a;
|
|
391
387
|
return [
|
|
392
388
|
asItem(row).is_delete !== 1 ? (openBlock(), createBlock(unref(OTag), {
|
|
393
389
|
key: 0,
|
|
394
390
|
color: "primary",
|
|
395
391
|
variant: "outline",
|
|
396
|
-
class: normalizeClass([`tag-${(
|
|
392
|
+
class: normalizeClass([`tag-${(_a = unref(statusMap).get(asItem(row).status)) == null ? void 0 : _a.id}`])
|
|
397
393
|
}, {
|
|
398
394
|
default: withCtx(() => {
|
|
399
|
-
var
|
|
395
|
+
var _a2;
|
|
400
396
|
return [
|
|
401
|
-
createTextVNode(toDisplayString(
|
|
397
|
+
createTextVNode(toDisplayString((_a2 = unref(statusMap).get(asItem(row).status)) == null ? void 0 : _a2.text), 1)
|
|
402
398
|
];
|
|
403
399
|
}),
|
|
404
400
|
_: 2
|
|
@@ -485,7 +481,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
485
481
|
}, {
|
|
486
482
|
default: withCtx(() => [
|
|
487
483
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tableData.value, (act) => {
|
|
488
|
-
var
|
|
484
|
+
var _a;
|
|
489
485
|
return openBlock(), createElementBlock(Fragment, {
|
|
490
486
|
key: act.id
|
|
491
487
|
}, [
|
|
@@ -495,12 +491,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
495
491
|
key: 0,
|
|
496
492
|
color: "primary",
|
|
497
493
|
variant: "outline",
|
|
498
|
-
class: normalizeClass([`tag-${(
|
|
494
|
+
class: normalizeClass([`tag-${(_a = unref(statusMap).get(act.status)) == null ? void 0 : _a.id}`])
|
|
499
495
|
}, {
|
|
500
496
|
default: withCtx(() => {
|
|
501
|
-
var
|
|
497
|
+
var _a2;
|
|
502
498
|
return [
|
|
503
|
-
createTextVNode(toDisplayString((
|
|
499
|
+
createTextVNode(toDisplayString((_a2 = unref(statusMap).get(act.status)) == null ? void 0 : _a2.text), 1)
|
|
504
500
|
];
|
|
505
501
|
}),
|
|
506
502
|
_: 2
|
|
@@ -660,9 +656,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
660
656
|
createTextVNode(toDisplayString(cancelTitle.value), 1)
|
|
661
657
|
]),
|
|
662
658
|
default: withCtx(() => {
|
|
663
|
-
var
|
|
659
|
+
var _a, _b;
|
|
664
660
|
return [
|
|
665
|
-
createElementVNode("div", _hoisted_15, toDisplayString(cancelStatus.value === 1 ? unref(t)("meeting.confirmCancelActivity", [(
|
|
661
|
+
createElementVNode("div", _hoisted_15, toDisplayString(cancelStatus.value === 1 ? unref(t)("meeting.confirmCancelActivity", [(_a = currentRow.value) == null ? void 0 : _a.title]) : unref(t)("meeting.confirmDeleteActivity", [(_b = currentRow.value) == null ? void 0 : _b.title])), 1)
|
|
666
662
|
];
|
|
667
663
|
}),
|
|
668
664
|
_: 1
|
|
@@ -190,6 +190,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
190
190
|
if (!allDatesLoaded.value) {
|
|
191
191
|
return [];
|
|
192
192
|
}
|
|
193
|
+
console.log(dateList.value);
|
|
194
|
+
console.log(summitDates.value);
|
|
195
|
+
console.log(eventsDates.value);
|
|
193
196
|
return [.../* @__PURE__ */ new Set([...dateList.value, ...summitDates.value, ...eventsDates.value])].flat().sort((a, b) => dayjs(a).isAfter(dayjs(b)) ? 1 : -1);
|
|
194
197
|
});
|
|
195
198
|
const latestDayLoaded = ref("");
|
|
@@ -198,6 +201,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
198
201
|
return latestDayLoaded.value;
|
|
199
202
|
}
|
|
200
203
|
const dates = allDates.value;
|
|
204
|
+
console.log("dates", dates);
|
|
201
205
|
if (!dates.length) return null;
|
|
202
206
|
const today = dayjs().format("YYYY-MM-DD");
|
|
203
207
|
let lo = 0, hi = dates.length - 1;
|
|
@@ -209,6 +213,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
209
213
|
hi = mid - 1;
|
|
210
214
|
}
|
|
211
215
|
}
|
|
216
|
+
console.log("lo", lo);
|
|
212
217
|
return formatDate(lo < dates.length ? dates[lo] : dates[dates.length - 1]);
|
|
213
218
|
});
|
|
214
219
|
const changeMeetingDay = useDebounceFn((day, event) => {
|
|
@@ -226,8 +231,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
226
231
|
() => latestDay.value,
|
|
227
232
|
() => {
|
|
228
233
|
var _a;
|
|
234
|
+
console.log(latestDay.value);
|
|
229
235
|
if (latestDay.value) {
|
|
230
|
-
|
|
236
|
+
if (latestDay.value !== latestDayLoaded.value) {
|
|
237
|
+
latestDayLoaded.value = latestDay.value;
|
|
238
|
+
}
|
|
231
239
|
(_a = calendar.value) == null ? void 0 : _a.pickDay(dayjs(latestDay.value));
|
|
232
240
|
changeMeetingDay(latestDay.value);
|
|
233
241
|
} else {
|
|
@@ -423,7 +431,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
423
431
|
]),
|
|
424
432
|
createElementVNode("div", _hoisted_6, [
|
|
425
433
|
createElementVNode("span", null, toDisplayString(unref(t)("meeting.latestMeeting")) + " ", 1),
|
|
426
|
-
createElementVNode("span", null, toDisplayString(unref(formatDate)(
|
|
434
|
+
createElementVNode("span", null, toDisplayString(latestDay.value ? latestDay.value : unref(formatDate)()), 1)
|
|
427
435
|
])
|
|
428
436
|
];
|
|
429
437
|
}),
|
|
@@ -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
|
+
};
|