@ndscnj/roomkit-web-vue3 25.12.24164 → 25.12.24165

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 (45) hide show
  1. package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.mjs +53 -5
  2. package/es/components/RoomFooter/VoteControl/MoreControlPC.vue2.mjs +1 -59
  3. package/es/components/RoomFooter/VoteControl/index.mjs +2 -2
  4. package/es/components/RoomFooter/index/index.d.ts +4 -26
  5. package/es/components/RoomFooter/index/indexH5.vue.d.ts +1 -10
  6. package/es/components/RoomFooter/index/indexH5.vue.mjs +1 -1
  7. package/es/components/RoomFooter/index/indexH5.vue2.mjs +1 -2
  8. package/es/components/RoomVote/index.d.ts +6 -2
  9. package/es/components/RoomVote/indexH5.vue.d.ts +5 -10
  10. package/es/components/RoomVote/indexH5.vue.mjs +2 -9
  11. package/es/components/RoomVote/indexH5.vue2.mjs +51 -0
  12. package/es/components/RoomVote/useRoomMoreHooks.mjs +43 -0
  13. package/es/conference.vue.d.ts +0 -1
  14. package/es/conference.vue.mjs +1 -1
  15. package/es/conference.vue2.mjs +0 -3
  16. package/es/index.mjs +20 -23
  17. package/lib/components/Chat/index/indexH5.vue.js +1 -1
  18. package/lib/components/ManageMember/MemberItem/indexH5.vue.js +1 -1
  19. package/lib/components/ManageMember/indexH5.vue.js +1 -1
  20. package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.js +53 -5
  21. package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue2.js +2 -60
  22. package/lib/components/RoomFooter/VoteControl/index.js +2 -2
  23. package/lib/components/RoomFooter/index/index.d.ts +4 -26
  24. package/lib/components/RoomFooter/index/indexH5.vue.d.ts +1 -10
  25. package/lib/components/RoomFooter/index/indexH5.vue.js +2 -2
  26. package/lib/components/RoomFooter/index/indexH5.vue2.js +0 -1
  27. package/lib/components/RoomInvite/indexH5.vue.js +1 -1
  28. package/lib/components/RoomMore/indexH5.vue.js +1 -1
  29. package/lib/components/RoomSidebar/indexH5.vue.js +1 -1
  30. package/lib/components/RoomVote/index.d.ts +6 -2
  31. package/lib/components/RoomVote/indexH5.vue.d.ts +5 -10
  32. package/lib/components/RoomVote/indexH5.vue.js +2 -9
  33. package/lib/components/RoomVote/indexH5.vue2.js +51 -0
  34. package/lib/components/RoomVote/useRoomMoreHooks.js +43 -0
  35. package/lib/conference.vue.d.ts +0 -1
  36. package/lib/conference.vue.js +1 -1
  37. package/lib/conference.vue2.js +0 -3
  38. package/lib/index.js +20 -23
  39. package/package.json +1 -1
  40. package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlPC.vue +1 -7
  41. package/src/TUIRoom/components/RoomFooter/index/indexH5.vue +0 -1
  42. package/src/TUIRoom/components/RoomVote/indexH5.vue +30 -1
  43. package/src/TUIRoom/conference.vue +2 -5
  44. package/es/assets/imgs/vote-icon.png.mjs +0 -4
  45. package/lib/assets/imgs/vote-icon.png.js +0 -4
@@ -1,7 +1,55 @@
1
- import _sfc_main from "./MoreControlPC.vue2.mjs";
2
- /* empty css */
3
- import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const MoreControlPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-50420946"]]);
1
+ import { defineComponent, createElementBlock, createCommentVNode, unref, openBlock, createVNode, withCtx } from "vue";
2
+ import { IconMore } from "@tencentcloud/uikit-base-component-vue3";
3
+ import IconButton from "../../common/base/IconButton.vue.mjs";
4
+ import useControl from "./useMoreControlHooks.mjs";
5
+ import "../../../services/main.mjs";
6
+ import { roomService } from "../../../services/roomService.mjs";
7
+ import "../../../locales/index.mjs";
8
+ import "@tencentcloud/tuiroom-engine-js";
9
+ import "../../../utils/environment.mjs";
10
+ import "mitt";
11
+ import "../../../services/manager/roomActionManager.mjs";
12
+ import "@tencentcloud/tui-core";
13
+ const _hoisted_1 = {
14
+ key: 0,
15
+ class: "more-control-container"
16
+ };
17
+ const _sfc_main = /* @__PURE__ */ defineComponent({
18
+ __name: "MoreControlPC",
19
+ emits: ["on-vote"],
20
+ setup(__props, { emit: __emit }) {
21
+ const moreControlConfig = roomService.getComponentConfig("MoreControl");
22
+ const { t, basicStore, sidebarName } = useControl();
23
+ const emit = __emit;
24
+ function toggleMoreSidebar() {
25
+ if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
26
+ basicStore.setSidebarOpenStatus(false);
27
+ basicStore.setSidebarName("");
28
+ return;
29
+ }
30
+ basicStore.setSidebarOpenStatus(true);
31
+ basicStore.setSidebarName("vote");
32
+ emit("on-vote", {
33
+ name: "onVote",
34
+ visible: basicStore.isSidebarOpen
35
+ });
36
+ }
37
+ return (_ctx, _cache) => {
38
+ return unref(moreControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
39
+ createVNode(IconButton, {
40
+ "is-active": unref(sidebarName) === "vote",
41
+ title: unref(t)("Vote"),
42
+ onClickIcon: toggleMoreSidebar
43
+ }, {
44
+ default: withCtx(() => [
45
+ createVNode(unref(IconMore), { size: "24" })
46
+ ]),
47
+ _: 1
48
+ }, 8, ["is-active", "title"])
49
+ ])) : createCommentVNode("", true);
50
+ };
51
+ }
52
+ });
5
53
  export {
6
- MoreControlPc as default
54
+ _sfc_main as default
7
55
  };
@@ -1,62 +1,4 @@
1
- import { defineComponent, createElementBlock, createCommentVNode, unref, openBlock, createVNode, createElementVNode, withCtx } from "vue";
2
- import _imports_0 from "../../../assets/imgs/vote-icon.png.mjs";
3
- import { IconMore } from "@tencentcloud/uikit-base-component-vue3";
4
- import IconButton from "../../common/base/IconButton.vue.mjs";
5
- import useControl from "./useMoreControlHooks.mjs";
6
- import "../../../services/main.mjs";
7
- import { roomService } from "../../../services/roomService.mjs";
8
- import "../../../locales/index.mjs";
9
- import "@tencentcloud/tuiroom-engine-js";
10
- import "../../../utils/environment.mjs";
11
- import "mitt";
12
- import "../../../services/manager/roomActionManager.mjs";
13
- import "@tencentcloud/tui-core";
14
- const _hoisted_1 = {
15
- key: 0,
16
- class: "more-control-container"
17
- };
18
- const _sfc_main = /* @__PURE__ */ defineComponent({
19
- __name: "MoreControlPC",
20
- emits: ["on-vote"],
21
- setup(__props, { emit: __emit }) {
22
- const moreControlConfig = roomService.getComponentConfig("MoreControl");
23
- const { t, basicStore, sidebarName } = useControl();
24
- const emit = __emit;
25
- function toggleMoreSidebar() {
26
- if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
27
- basicStore.setSidebarOpenStatus(false);
28
- basicStore.setSidebarName("");
29
- return;
30
- }
31
- basicStore.setSidebarOpenStatus(true);
32
- basicStore.setSidebarName("vote");
33
- emit("on-vote", {
34
- name: "onVote",
35
- visible: basicStore.isSidebarOpen
36
- });
37
- }
38
- return (_ctx, _cache) => {
39
- return unref(moreControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
40
- createVNode(IconButton, {
41
- "is-active": unref(sidebarName) === "vote",
42
- title: unref(t)("Vote"),
43
- onClickIcon: toggleMoreSidebar
44
- }, {
45
- default: withCtx(() => [
46
- createVNode(unref(IconMore), { size: "24" })
47
- ]),
48
- _: 1
49
- }, 8, ["is-active", "title"]),
50
- _cache[0] || (_cache[0] = createElementVNode("img", {
51
- class: "ndsc-img-box",
52
- src: _imports_0,
53
- alt: "",
54
- click: "toggleMoreSidebar"
55
- }, null, -1))
56
- ])) : createCommentVNode("", true);
57
- };
58
- }
59
- });
1
+ import _sfc_main from "./MoreControlPC.vue.mjs";
60
2
  export {
61
3
  _sfc_main as default
62
4
  };
@@ -1,7 +1,7 @@
1
1
  import MoreControlH5 from "./MoreControlH5.vue.mjs";
2
- import MoreControlPc from "./MoreControlPC.vue.mjs";
2
+ import _sfc_main from "./MoreControlPC.vue.mjs";
3
3
  import { isMobile } from "../../../utils/environment.mjs";
4
- const MoreControl = isMobile ? MoreControlH5 : MoreControlPc;
4
+ const MoreControl = isMobile ? MoreControlH5 : _sfc_main;
5
5
  export {
6
6
  MoreControl as default
7
7
  };
@@ -1,30 +1,8 @@
1
- declare const Index: ({
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
3
- "onShow-overlay"?: ((...args: any[]) => any) | undefined;
4
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
- "show-overlay": (...args: any[]) => void;
6
- }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
7
- P: {};
8
- B: {};
9
- D: {};
10
- C: {};
11
- M: {};
12
- Defaults: {};
13
- }, Readonly<{}> & Readonly<{
14
- "onShow-overlay"?: ((...args: any[]) => any) | undefined;
15
- }>, {}, {}, {}, {}, {}>;
16
- __isFragment?: never;
17
- __isTeleport?: never;
18
- __isSuspense?: never;
19
- } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
20
- "onShow-overlay"?: ((...args: any[]) => any) | undefined;
21
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1
+ declare const Index: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
2
  "show-overlay": (...args: any[]) => void;
23
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
24
- $slots: {
25
- contentH5?(_: {}): any;
26
- };
27
- })) | ({
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ "onShow-overlay"?: ((...args: any[]) => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | ({
28
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
29
7
  "onOn-vote"?: ((...args: any[]) => any) | undefined;
30
8
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -1,15 +1,6 @@
1
- declare function __VLS_template(): {
2
- contentH5?(_: {}): any;
3
- };
4
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
2
  "show-overlay": (...args: any[]) => void;
6
3
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
7
4
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
8
5
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
10
6
  export default _default;
11
- type __VLS_WithTemplateSlots<T, S> = T & {
12
- new (): {
13
- $slots: S;
14
- };
15
- };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./indexH5.vue2.mjs";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const indexH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4905d960"]]);
4
+ const indexH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f3bbac91"]]);
5
5
  export {
6
6
  indexH5 as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, withDirectives, createCommentVNode, renderSlot, createVNode, unref, createBlock } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, withDirectives, createCommentVNode, createVNode, unref, createBlock } from "vue";
2
2
  import _sfc_main$1 from "../../../core/components/AudioSetting/index.vue.mjs";
3
3
  import VideoSetting from "../../../core/components/VideoSetting/index.vue.mjs";
4
4
  import "@tencentcloud/uikit-base-component-vue3";
@@ -89,7 +89,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
89
89
  !unref(roomStore).isSpeakAfterTakingSeatMode ? withDirectives((openBlock(), createBlock(_sfc_main$2, { key: 2 }, null, 512)), [
90
90
  [unref(vTap), () => handleControlClick("chatControl")]
91
91
  ]) : createCommentVNode("", true),
92
- renderSlot(_ctx.$slots, "contentH5", {}, void 0, true),
93
92
  createVNode(AIControl, {
94
93
  onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("AIControl"))
95
94
  }),
@@ -1,4 +1,8 @@
1
- declare const Index: {
1
+ declare const Index: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ "on-close-contact": (...args: any[]) => void;
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ "onOn-close-contact"?: ((...args: any[]) => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | ({
2
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
3
7
  P: {};
4
8
  B: {};
@@ -14,5 +18,5 @@ declare const Index: {
14
18
  $slots: {
15
19
  content?(_: {}): any;
16
20
  };
17
- });
21
+ }));
18
22
  export default Index;
@@ -1,11 +1,6 @@
1
- declare function __VLS_template(): {
2
- content?(_: {}): any;
3
- };
4
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ "on-close-contact": (...args: any[]) => void;
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ "onOn-close-contact"?: ((...args: any[]) => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
6
  export default _default;
7
- type __VLS_WithTemplateSlots<T, S> = T & {
8
- new (): {
9
- $slots: S;
10
- };
11
- };
@@ -1,14 +1,7 @@
1
- import { createElementBlock, openBlock, renderSlot } from "vue";
1
+ import _sfc_main from "./indexH5.vue2.mjs";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const _sfc_main = {};
5
- const _hoisted_1 = { class: "contact-container-main" };
6
- function _sfc_render(_ctx, _cache) {
7
- return openBlock(), createElementBlock("div", _hoisted_1, [
8
- renderSlot(_ctx.$slots, "content", {}, void 0, true)
9
- ]);
10
- }
11
- const indexH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-872a5da4"]]);
4
+ const indexH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-939000cb"]]);
12
5
  export {
13
6
  indexH5 as default
14
7
  };
@@ -0,0 +1,51 @@
1
+ import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, unref, createTextVNode, Fragment, renderList, createVNode } from "vue";
2
+ import useRoomMoreHooks from "./useRoomMoreHooks.mjs";
3
+ import { IconCopy } from "@tencentcloud/uikit-base-component-vue3";
4
+ import vTap from "../../directives/vTap.mjs";
5
+ const _hoisted_1 = { class: "contact-container-main" };
6
+ const _hoisted_2 = { class: "contact-title-main" };
7
+ const _hoisted_3 = { class: "cancel" };
8
+ const _hoisted_4 = { class: "contact-title" };
9
+ const _hoisted_5 = { class: "contact-content" };
10
+ const _hoisted_6 = { class: "contact-bottom" };
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ __name: "indexH5",
13
+ emits: ["on-close-contact"],
14
+ setup(__props, { emit: __emit }) {
15
+ const { t, onCopy, contactContentList } = useRoomMoreHooks();
16
+ const emit = __emit;
17
+ function handleCloseContact() {
18
+ emit("on-close-contact");
19
+ }
20
+ return (_ctx, _cache) => {
21
+ return openBlock(), createElementBlock("div", _hoisted_1, [
22
+ createElementVNode("div", _hoisted_2, [
23
+ createElementVNode("div", null, toDisplayString(unref(t)("Contact us")), 1),
24
+ withDirectives((openBlock(), createElementBlock("span", _hoisted_3, [
25
+ createTextVNode(toDisplayString(unref(t)("Cancel")), 1)
26
+ ])), [
27
+ [unref(vTap), handleCloseContact]
28
+ ])
29
+ ]),
30
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(contactContentList), (item) => {
31
+ return openBlock(), createElementBlock("div", {
32
+ key: item.id,
33
+ class: "contact-content-main"
34
+ }, [
35
+ createElementVNode("span", _hoisted_4, toDisplayString(unref(t)(item.title)), 1),
36
+ createElementVNode("span", _hoisted_5, toDisplayString(item.content), 1),
37
+ withDirectives(createVNode(unref(IconCopy), { class: "copy" }, null, 512), [
38
+ [unref(vTap), () => unref(onCopy)(item.copyLink)]
39
+ ])
40
+ ]);
41
+ }), 128)),
42
+ createElementVNode("span", _hoisted_6, toDisplayString(unref(t)(
43
+ "If you have any questions, please feel free to join our QQ group or send an email"
44
+ )), 1)
45
+ ]);
46
+ };
47
+ }
48
+ });
49
+ export {
50
+ _sfc_main as default
51
+ };
@@ -0,0 +1,43 @@
1
+ import { computed } from "vue";
2
+ import { TUIToast, TOAST_TYPE } from "@tencentcloud/uikit-base-component-vue3";
3
+ import i18n, { useI18n } from "../../locales/index.mjs";
4
+ import "../../utils/environment.mjs";
5
+ import { clipBoard } from "../../utils/adapter.mjs";
6
+ function useRoomMoreHooks() {
7
+ const { t } = useI18n();
8
+ const groupNumber = "770645461";
9
+ const email = "chaooliang@tencent.com";
10
+ async function onCopy(value) {
11
+ try {
12
+ await clipBoard(value);
13
+ TUIToast({
14
+ message: t("Copied successfully"),
15
+ type: TOAST_TYPE.SUCCESS
16
+ });
17
+ } catch (error) {
18
+ TUIToast({
19
+ message: t("Copied failure"),
20
+ type: TOAST_TYPE.ERROR
21
+ });
22
+ }
23
+ }
24
+ const isZH = computed(() => i18n.global.locale.value === "zh-CN");
25
+ const contactContentList = [
26
+ { id: 1, title: "group chat", content: groupNumber, copyLink: groupNumber },
27
+ { id: 2, title: "Email", content: email, copyLink: email }
28
+ ];
29
+ const handleClick = () => {
30
+ window.open("https://zhiliao.qq.com/s/c5GY7HIM62CK", "_blank");
31
+ };
32
+ return {
33
+ t,
34
+ onCopy,
35
+ contactContentList,
36
+ email,
37
+ handleClick,
38
+ isZH
39
+ };
40
+ }
41
+ export {
42
+ useRoomMoreHooks as default
43
+ };
@@ -16,7 +16,6 @@ declare function enterRoom(options: {
16
16
  declare function resetStore(): void;
17
17
  declare function __VLS_template(): {
18
18
  content?(_: {}): any;
19
- contentH5?(_: {}): any;
20
19
  };
21
20
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
22
21
  displayMode: "permanent" | "wake-up";
@@ -2,7 +2,7 @@ import _sfc_main from "./conference.vue2.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import _export_sfc from "./_virtual/_plugin-vue_export-helper.mjs";
5
- const ConferenceMainView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-14e58a3b"]]);
5
+ const ConferenceMainView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4dd66a12"]]);
6
6
  export {
7
7
  ConferenceMainView as default
8
8
  };
@@ -278,9 +278,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
278
278
  content: withCtx(() => [
279
279
  renderSlot(_ctx.$slots, "content", {}, void 0, true)
280
280
  ]),
281
- contentH5: withCtx(() => [
282
- renderSlot(_ctx.$slots, "contentH5", {}, void 0, true)
283
- ]),
284
281
  _: 3
285
282
  }, 512), [
286
283
  [vShow, unref(showRoomTool)]
package/es/index.mjs CHANGED
@@ -3664,7 +3664,7 @@ to {
3664
3664
  .tool-box .tool-box-item[data-v-34681937]:hover {
3665
3665
  border-radius: 8px;
3666
3666
  background-color: var(--list-color-hover);
3667
- }.footer-container[data-v-4905d960] {
3667
+ }.footer-container[data-v-f3bbac91] {
3668
3668
  position: absolute;
3669
3669
  bottom: 0;
3670
3670
  display: flex;
@@ -3966,9 +3966,6 @@ to {
3966
3966
  border-radius: 8px;
3967
3967
  color: var(--text-color-primary);
3968
3968
  background-color: var(--button-color-secondary-default);
3969
- }.ndsc-img-box[data-v-50420946] {
3970
- width: 50px;
3971
- height: 50px;
3972
3969
  }.footer-container[data-v-4afcea78] {
3973
3970
  position: absolute;
3974
3971
  bottom: 0;
@@ -4989,13 +4986,13 @@ to {
4989
4986
  right: 0;
4990
4987
  z-index: 101;
4991
4988
  height: 100%;
4992
- }span[data-v-872a5da4] {
4989
+ }span[data-v-939000cb] {
4993
4990
  padding-right: 5px;
4994
4991
  font-size: 12px;
4995
4992
  font-weight: 500;
4996
4993
  line-height: 17px;
4997
4994
  }
4998
- .contact-container-main[data-v-872a5da4] {
4995
+ .contact-container-main[data-v-939000cb] {
4999
4996
  position: fixed;
5000
4997
  bottom: 0;
5001
4998
  display: flex;
@@ -5003,11 +5000,11 @@ to {
5003
5000
  width: 100%;
5004
5001
  padding-bottom: 4vh;
5005
5002
  border-radius: 15px 15px 0 0;
5006
- animation-name: popup-872a5da4;
5003
+ animation-name: popup-939000cb;
5007
5004
  animation-duration: 200ms;
5008
5005
  background-color: var(--bg-color-operate);
5009
5006
  }
5010
- @keyframes popup-872a5da4 {
5007
+ @keyframes popup-939000cb {
5011
5008
  from {
5012
5009
  transform: scaleY(0);
5013
5010
  transform-origin: bottom;
@@ -5017,7 +5014,7 @@ to {
5017
5014
  transform-origin: bottom;
5018
5015
  }
5019
5016
  }
5020
- .contact-container-main .contact-title-main[data-v-872a5da4] {
5017
+ .contact-container-main .contact-title-main[data-v-939000cb] {
5021
5018
  display: flex;
5022
5019
  flex-direction: row;
5023
5020
  align-items: center;
@@ -5029,7 +5026,7 @@ to {
5029
5026
  line-height: 24px;
5030
5027
  color: var(--text-color-primary);
5031
5028
  }
5032
- .contact-container-main .contact-content-main[data-v-872a5da4] {
5029
+ .contact-container-main .contact-content-main[data-v-939000cb] {
5033
5030
  display: flex;
5034
5031
  flex-direction: row;
5035
5032
  align-items: center;
@@ -5038,8 +5035,8 @@ to {
5038
5035
  padding: 0 0 0 25px;
5039
5036
  margin-bottom: 10px;
5040
5037
  }
5041
- .contact-container-main .contact-title[data-v-872a5da4],
5042
- .contact-container-main .contact-content[data-v-872a5da4] {
5038
+ .contact-container-main .contact-title[data-v-939000cb],
5039
+ .contact-container-main .contact-content[data-v-939000cb] {
5043
5040
  width: 28%;
5044
5041
  font-family: "PingFang SC";
5045
5042
  font-size: 14px;
@@ -5049,7 +5046,7 @@ to {
5049
5046
  white-space: nowrap;
5050
5047
  color: var(--text-color-primary);
5051
5048
  }
5052
- .contact-container-main .contact-content[data-v-872a5da4] {
5049
+ .contact-container-main .contact-content[data-v-939000cb] {
5053
5050
  width: 62%;
5054
5051
  overflow: hidden;
5055
5052
  font-size: 14px;
@@ -5057,7 +5054,7 @@ to {
5057
5054
  white-space: nowrap;
5058
5055
  color: var(--text-color-secondary);
5059
5056
  }
5060
- .contact-container-main .contact-bottom[data-v-872a5da4] {
5057
+ .contact-container-main .contact-bottom[data-v-939000cb] {
5061
5058
  width: 90%;
5062
5059
  padding-left: 40px;
5063
5060
  font-family: "PingFang SC";
@@ -5068,11 +5065,11 @@ to {
5068
5065
  text-align: center;
5069
5066
  color: var(--text-color-secondary);
5070
5067
  }
5071
- .contact-container-main .copy[data-v-872a5da4] {
5068
+ .contact-container-main .copy[data-v-939000cb] {
5072
5069
  margin-left: 30px;
5073
5070
  color: var(--text-color-link);
5074
5071
  }
5075
- .cancel[data-v-872a5da4] {
5072
+ .cancel[data-v-939000cb] {
5076
5073
  flex: 1;
5077
5074
  padding-right: 30px;
5078
5075
  font-size: 16px;
@@ -9171,7 +9168,7 @@ body, html {
9171
9168
  }
9172
9169
  .tui-room :not([class|=el]) {
9173
9170
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
9174
- }.tui-room[data-v-14e58a3b] {
9171
+ }.tui-room[data-v-4dd66a12] {
9175
9172
  position: relative;
9176
9173
  display: flex;
9177
9174
  flex-direction: column;
@@ -9183,7 +9180,7 @@ body, html {
9183
9180
  text-align: left;
9184
9181
  background-color: var(--bg-color-topbar);
9185
9182
  }
9186
- .tui-room .header[data-v-14e58a3b] {
9183
+ .tui-room .header[data-v-4dd66a12] {
9187
9184
  position: absolute;
9188
9185
  top: 0;
9189
9186
  left: 0;
@@ -9194,20 +9191,20 @@ body, html {
9194
9191
  border-bottom: 1px solid var(--stroke-color-primary);
9195
9192
  box-shadow: 0 1px 0 var(--uikit-color-black-8);
9196
9193
  }
9197
- .tui-room .content[data-v-14e58a3b] {
9194
+ .tui-room .content[data-v-4dd66a12] {
9198
9195
  position: absolute;
9199
9196
  top: 0;
9200
9197
  width: 100%;
9201
9198
  height: 100%;
9202
9199
  background-color: var(--bg-color-topbar);
9203
9200
  }
9204
- .tui-room.tui-room-h5[data-v-14e58a3b] {
9201
+ .tui-room.tui-room-h5[data-v-4dd66a12] {
9205
9202
  width: 100%;
9206
9203
  min-width: 350px;
9207
9204
  height: 100%;
9208
9205
  min-height: 525px;
9209
9206
  }
9210
- #roomContainer.chat-room[data-v-14e58a3b] {
9207
+ #roomContainer.chat-room[data-v-4dd66a12] {
9211
9208
  position: absolute;
9212
9209
  top: 0;
9213
9210
  right: 0;
@@ -9219,8 +9216,8 @@ body, html {
9219
9216
  margin: auto;
9220
9217
  border-radius: 10px;
9221
9218
  }
9222
- #roomContainer.tui-room-h5[data-v-14e58a3b],
9223
- #roomContainer .chat-room[data-v-14e58a3b] {
9219
+ #roomContainer.tui-room-h5[data-v-4dd66a12],
9220
+ #roomContainer .chat-room[data-v-4dd66a12] {
9224
9221
  width: 100%;
9225
9222
  height: 100%;
9226
9223
  }.user-info-container[data-v-9e9aff53] {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const indexH5_vue_vue_type_script_setup_true_lang = ;/* empty css */
3
+ const indexH5_vue_vue_type_script_setup_true_lang = require("./indexH5.vue2.js");
4
4
  ;/* empty css */
5
5
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
6
6
  const indexH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(indexH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-a8c21a66"]]);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const indexH5_vue_vue_type_script_setup_true_lang = ;/* empty css */
3
+ const indexH5_vue_vue_type_script_setup_true_lang = require("./indexH5.vue2.js");
4
4
  ;/* empty css */
5
5
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
6
6
  const indexH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(indexH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-04bc5b87"]]);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const indexH5_vue_vue_type_script_setup_true_lang = ;/* empty css */
3
+ const indexH5_vue_vue_type_script_setup_true_lang = require("./indexH5.vue2.js");
4
4
  ;/* empty css */
5
5
  const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.js");
6
6
  const indexH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(indexH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-524b1604"]]);
@@ -1,7 +1,55 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const MoreControlPC_vue_vue_type_script_setup_true_lang = require("./MoreControlPC.vue2.js");
4
- ;/* empty css */
5
- const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
6
- const MoreControlPc = /* @__PURE__ */ _pluginVue_exportHelper.default(MoreControlPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-50420946"]]);
7
- exports.default = MoreControlPc;
3
+ const Vue = require("vue");
4
+ const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
5
+ const IconButton = require("../../common/base/IconButton.vue.js");
6
+ const useMoreControlHooks = require("./useMoreControlHooks.js");
7
+ require("../../../services/main.js");
8
+ const roomService = require("../../../services/roomService.js");
9
+ require("../../../locales/index.js");
10
+ require("@tencentcloud/tuiroom-engine-js");
11
+ require("../../../utils/environment.js");
12
+ require("mitt");
13
+ require("../../../services/manager/roomActionManager.js");
14
+ require("@tencentcloud/tui-core");
15
+ const _hoisted_1 = {
16
+ key: 0,
17
+ class: "more-control-container"
18
+ };
19
+ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
20
+ __name: "MoreControlPC",
21
+ emits: ["on-vote"],
22
+ setup(__props, { emit: __emit }) {
23
+ const moreControlConfig = roomService.roomService.getComponentConfig("MoreControl");
24
+ const { t, basicStore, sidebarName } = useMoreControlHooks.default();
25
+ const emit = __emit;
26
+ function toggleMoreSidebar() {
27
+ if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
28
+ basicStore.setSidebarOpenStatus(false);
29
+ basicStore.setSidebarName("");
30
+ return;
31
+ }
32
+ basicStore.setSidebarOpenStatus(true);
33
+ basicStore.setSidebarName("vote");
34
+ emit("on-vote", {
35
+ name: "onVote",
36
+ visible: basicStore.isSidebarOpen
37
+ });
38
+ }
39
+ return (_ctx, _cache) => {
40
+ return Vue.unref(moreControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
41
+ Vue.createVNode(IconButton.default, {
42
+ "is-active": Vue.unref(sidebarName) === "vote",
43
+ title: Vue.unref(t)("Vote"),
44
+ onClickIcon: toggleMoreSidebar
45
+ }, {
46
+ default: Vue.withCtx(() => [
47
+ Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconMore), { size: "24" })
48
+ ]),
49
+ _: 1
50
+ }, 8, ["is-active", "title"])
51
+ ])) : Vue.createCommentVNode("", true);
52
+ };
53
+ }
54
+ });
55
+ exports.default = _sfc_main;