@ndscnj/roomkit-web-vue3 25.12.2410 → 25.12.2412

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/index/indexPC.vue.mjs +1 -1
  2. package/es/components/RoomFooter/index/indexPC.vue2.mjs +2 -2
  3. package/es/components/RoomFooter/voteControl/VoteControlH5.vue.d.ts +6 -0
  4. package/es/components/RoomFooter/voteControl/VoteControlH5.vue.mjs +7 -0
  5. package/es/components/RoomFooter/voteControl/VoteControlH5.vue2.mjs +105 -0
  6. package/es/components/RoomFooter/voteControl/VoteControlPC.vue.mjs +55 -0
  7. package/es/components/RoomFooter/voteControl/VoteControlPC.vue2.mjs +4 -0
  8. package/es/components/RoomFooter/voteControl/index.d.ts +10 -0
  9. package/es/components/RoomFooter/voteControl/index.mjs +7 -0
  10. package/es/components/RoomFooter/voteControl/useVoteControlHooks.mjs +22 -0
  11. package/es/components/RoomVote/indexPC.vue.mjs +1 -1
  12. package/es/components/RoomVote/indexPC.vue2.mjs +2 -2
  13. package/es/constants/icon.d.ts +2 -0
  14. package/es/constants/icon.mjs +2 -0
  15. package/es/index.mjs +53 -25
  16. package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
  17. package/lib/components/RoomFooter/index/indexPC.vue2.js +6 -6
  18. package/lib/components/RoomFooter/voteControl/VoteControlH5.vue.d.ts +6 -0
  19. package/lib/components/RoomFooter/voteControl/VoteControlH5.vue.js +7 -0
  20. package/lib/components/RoomFooter/voteControl/VoteControlH5.vue2.js +105 -0
  21. package/lib/components/RoomFooter/voteControl/VoteControlPC.vue.js +55 -0
  22. package/lib/components/RoomFooter/voteControl/VoteControlPC.vue2.js +4 -0
  23. package/lib/components/RoomFooter/voteControl/index.d.ts +10 -0
  24. package/lib/components/RoomFooter/voteControl/index.js +7 -0
  25. package/lib/components/RoomFooter/voteControl/useVoteControlHooks.js +22 -0
  26. package/lib/components/RoomVote/indexPC.vue.js +1 -1
  27. package/lib/components/RoomVote/indexPC.vue2.js +2 -2
  28. package/lib/constants/icon.d.ts +2 -0
  29. package/lib/constants/icon.js +2 -0
  30. package/lib/index.js +53 -25
  31. package/package.json +1 -1
  32. package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +1 -1
  33. package/src/TUIRoom/components/RoomFooter/voteControl/VoteControlH5.vue +122 -0
  34. package/src/TUIRoom/components/RoomFooter/voteControl/VoteControlPC.vue +35 -0
  35. package/src/TUIRoom/components/RoomFooter/voteControl/index.ts +8 -0
  36. package/src/TUIRoom/components/RoomFooter/voteControl/useVoteControlHooks.ts +23 -0
  37. package/src/TUIRoom/components/RoomFooter/voteControl.vue +5 -4
  38. package/src/TUIRoom/components/RoomVote/indexPC.vue +2 -2
  39. package/src/TUIRoom/constants/icon.ts +2 -0
  40. package/es/components/RoomFooter/voteControl.vue.mjs +0 -7
  41. package/es/components/RoomFooter/voteControl.vue2.mjs +0 -52
  42. package/lib/components/RoomFooter/voteControl.vue.js +0 -7
  43. package/lib/components/RoomFooter/voteControl.vue2.js +0 -52
  44. /package/es/components/RoomFooter/{voteControl.vue.d.ts → voteControl/VoteControlPC.vue.d.ts} +0 -0
  45. /package/lib/components/RoomFooter/{voteControl.vue.d.ts → voteControl/VoteControlPC.vue.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./indexPC.vue2.mjs";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const indexPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f808bd91"]]);
4
+ const indexPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3a373c3a"]]);
5
5
  export {
6
6
  indexPc as default
7
7
  };
@@ -65,7 +65,7 @@ import VirtualBackground from "../VirtualBackground.vue.mjs";
65
65
  import AIControl from "../AIControl.vue.mjs";
66
66
  import BasicBeauty from "../BasicBeauty.vue.mjs";
67
67
  import bus from "../../../hooks/useMitt.mjs";
68
- import voteControl from "../voteControl.vue.mjs";
68
+ import VoteControl from "../voteControl/index.mjs";
69
69
  import useRoomFooter from "./useRoomFooterHooks.mjs";
70
70
  const _hoisted_1 = { class: "footer-container" };
71
71
  const _hoisted_2 = { class: "left-container" };
@@ -137,7 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
137
  class: "center-container-item",
138
138
  onClick: _cache[9] || (_cache[9] = ($event) => handleControlClick("MasterApplyControl"))
139
139
  })) : createCommentVNode("", true),
140
- createVNode(voteControl, {
140
+ createVNode(unref(VoteControl), {
141
141
  class: "center-container-item",
142
142
  onClick: _cache[10] || (_cache[10] = ($event) => handleControlClick("voteControl")),
143
143
  onOnVote: onVote
@@ -0,0 +1,6 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ "show-overlay": (...args: any[]) => void;
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ "onShow-overlay"?: ((...args: any[]) => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./VoteControlH5.vue2.mjs";
2
+ /* empty css */
3
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const VoteControlH5 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1506794c"]]);
5
+ export {
6
+ VoteControlH5 as default
7
+ };
@@ -0,0 +1,105 @@
1
+ import { defineComponent, ref, onMounted, onUnmounted, createElementBlock, openBlock, createCommentVNode, unref, withDirectives, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString } from "vue";
2
+ import { IconExtension } from "@tencentcloud/uikit-base-component-vue3";
3
+ import IconButton from "../../common/base/IconButton.vue.mjs";
4
+ import useControl from "./useVoteControlHooks.mjs";
5
+ import _sfc_main$1 from "../ChatControl.vue.mjs";
6
+ import InviteControl from "../InviteControl.vue.mjs";
7
+ import ContactControl from "../ContactControl.vue.mjs";
8
+ import { useRoomStore } from "../../../stores/room.mjs";
9
+ import bus from "../../../hooks/useMitt.mjs";
10
+ import vTap from "../../../directives/vTap.mjs";
11
+ import "../../../services/main.mjs";
12
+ import { roomService } from "../../../services/roomService.mjs";
13
+ import "../../../locales/index.mjs";
14
+ import "@tencentcloud/tuiroom-engine-js";
15
+ import "../../../utils/environment.mjs";
16
+ import "mitt";
17
+ import "../../../services/manager/roomActionManager.mjs";
18
+ import "@tencentcloud/tui-core";
19
+ const _hoisted_1 = {
20
+ key: 0,
21
+ class: "more-control-container"
22
+ };
23
+ const _hoisted_2 = { class: "control-compent" };
24
+ const _hoisted_3 = { class: "close" };
25
+ const _sfc_main = /* @__PURE__ */ defineComponent({
26
+ __name: "VoteControlH5",
27
+ emits: ["show-overlay"],
28
+ setup(__props, { emit: __emit }) {
29
+ const moreControlConfig = roomService.getComponentConfig("MoreControl");
30
+ const showMoreContent = ref(false);
31
+ const moreContentRef = ref();
32
+ const { t, sidebarName } = useControl();
33
+ const roomStore = useRoomStore();
34
+ const emit = __emit;
35
+ function showMore() {
36
+ showMoreContent.value = true;
37
+ }
38
+ function handleCancelControl() {
39
+ showMoreContent.value = false;
40
+ }
41
+ function handleControlClick(name) {
42
+ bus.emit("experience-communication", name);
43
+ }
44
+ function handleShowOverlay(data) {
45
+ showMoreContent.value = false;
46
+ emit("show-overlay", data);
47
+ }
48
+ function handleDocumentClick(event) {
49
+ if (showMoreContent.value && !moreContentRef.value.contains(event.target)) {
50
+ showMoreContent.value = false;
51
+ }
52
+ }
53
+ onMounted(() => {
54
+ document == null ? void 0 : document.addEventListener("click", handleDocumentClick, true);
55
+ });
56
+ onUnmounted(() => {
57
+ document == null ? void 0 : document.removeEventListener("click", handleDocumentClick, true);
58
+ });
59
+ return (_ctx, _cache) => {
60
+ return openBlock(), createElementBlock("div", null, [
61
+ unref(moreControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
62
+ withDirectives((openBlock(), createBlock(IconButton, {
63
+ "is-active": unref(sidebarName) === "more",
64
+ title: unref(t)("More")
65
+ }, {
66
+ default: withCtx(() => [
67
+ createVNode(unref(IconExtension), { size: "24" })
68
+ ]),
69
+ _: 1
70
+ }, 8, ["is-active", "title"])), [
71
+ [unref(vTap), showMore]
72
+ ])
73
+ ])) : createCommentVNode("", true),
74
+ showMoreContent.value ? (openBlock(), createElementBlock("div", {
75
+ key: 1,
76
+ ref_key: "moreContentRef",
77
+ ref: moreContentRef,
78
+ class: "show-more-content"
79
+ }, [
80
+ createElementVNode("div", _hoisted_2, [
81
+ unref(roomStore).isSpeakAfterTakingSeatMode ? (openBlock(), createBlock(_sfc_main$1, {
82
+ key: 0,
83
+ onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("chatControl"))
84
+ })) : createCommentVNode("", true),
85
+ createVNode(ContactControl, {
86
+ onClick: _cache[1] || (_cache[1] = ($event) => handleControlClick("contactControl"))
87
+ }),
88
+ createVNode(InviteControl, {
89
+ onShowOverlay: handleShowOverlay,
90
+ onClick: _cache[2] || (_cache[2] = ($event) => handleControlClick("inviteControl"))
91
+ })
92
+ ]),
93
+ withDirectives((openBlock(), createElementBlock("div", _hoisted_3, [
94
+ createTextVNode(toDisplayString(unref(t)("Cancel")), 1)
95
+ ])), [
96
+ [unref(vTap), handleCancelControl]
97
+ ])
98
+ ], 512)) : createCommentVNode("", true)
99
+ ]);
100
+ };
101
+ }
102
+ });
103
+ export {
104
+ _sfc_main as default
105
+ };
@@ -0,0 +1,55 @@
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 "./useVoteControlHooks.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: "vote-control-container"
16
+ };
17
+ const _sfc_main = /* @__PURE__ */ defineComponent({
18
+ __name: "VoteControlPC",
19
+ emits: ["on-vote"],
20
+ setup(__props, { emit: __emit }) {
21
+ const voteControlConfig = roomService.getComponentConfig("VoteControl");
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: voteControlConfig.visible
35
+ });
36
+ }
37
+ return (_ctx, _cache) => {
38
+ return unref(voteControlConfig).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
+ });
53
+ export {
54
+ _sfc_main as default
55
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./VoteControlPC.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,10 @@
1
+ declare const VoteControl: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ "show-overlay": (...args: any[]) => void;
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ "onShow-overlay"?: ((...args: any[]) => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "on-vote": (...args: any[]) => void;
7
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
8
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
+ export default VoteControl;
@@ -0,0 +1,7 @@
1
+ import VoteControlH5 from "./VoteControlH5.vue.mjs";
2
+ import _sfc_main from "./VoteControlPC.vue.mjs";
3
+ import { isMobile } from "../../../utils/environment.mjs";
4
+ const VoteControl = isMobile ? VoteControlH5 : _sfc_main;
5
+ export {
6
+ VoteControl as default
7
+ };
@@ -0,0 +1,22 @@
1
+ import { computed } from "vue";
2
+ import { useBasicStore } from "../../../stores/basic.mjs";
3
+ import { storeToRefs } from "pinia";
4
+ import { useI18n } from "../../../locales/index.mjs";
5
+ import { ICON_NAME } from "../../../constants/icon.mjs";
6
+ function useControl() {
7
+ const { t } = useI18n();
8
+ const basicStore = useBasicStore();
9
+ const { sidebarName } = storeToRefs(basicStore);
10
+ const iconName = computed(
11
+ () => sidebarName.value === "vote" ? ICON_NAME.VoteActive : ICON_NAME.Vote
12
+ );
13
+ return {
14
+ t,
15
+ basicStore,
16
+ iconName,
17
+ sidebarName
18
+ };
19
+ }
20
+ export {
21
+ useControl as default
22
+ };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./indexPC.vue2.mjs";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const indexPC = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d1a96ffd"]]);
4
+ const indexPC = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-11728c2b"]]);
5
5
  export {
6
6
  indexPC as default
7
7
  };
@@ -12,7 +12,7 @@ const _hoisted_5 = { class: "item-title" };
12
12
  const _hoisted_6 = { class: "more-item" };
13
13
  const _hoisted_7 = { class: "item-title" };
14
14
  const _hoisted_8 = { class: "more-content" };
15
- const _hoisted_9 = { class: "more-item" };
15
+ const _hoisted_9 = { class: "contact-container" };
16
16
  const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  __name: "indexPC",
18
18
  setup(__props) {
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  return openBlock(), createElementBlock("div", _hoisted_1, [
22
22
  createElementVNode("div", _hoisted_2, [
23
23
  createVNode(unref(IconEmail), { class: "email-icon" }),
24
- createElementVNode("div", _hoisted_3, toDisplayString(unref(t)("If you have any questions, please email us.")), 1)
24
+ createElementVNode("div", _hoisted_3, toDisplayString(unref(t)("Vote")), 1)
25
25
  ]),
26
26
  unref(isZH) ? (openBlock(), createElementBlock("div", _hoisted_4, [
27
27
  createElementVNode("div", _hoisted_5, toDisplayString(unref(t)("Join our product discussion group")), 1),
@@ -20,6 +20,8 @@ export declare enum ICON_NAME {
20
20
  ManageMember = "manage-member",
21
21
  More = "more",
22
22
  MoreActive = "more-active",
23
+ Vote = "vote",
24
+ VoteActive = "vote-active",
23
25
  SettingActive = "setting-active",
24
26
  Setting = "setting",
25
27
  LineArrowUp = "line-arrow-up",
@@ -20,6 +20,8 @@ var ICON_NAME = /* @__PURE__ */ ((ICON_NAME2) => {
20
20
  ICON_NAME2["ManageMember"] = "manage-member";
21
21
  ICON_NAME2["More"] = "more";
22
22
  ICON_NAME2["MoreActive"] = "more-active";
23
+ ICON_NAME2["Vote"] = "vote";
24
+ ICON_NAME2["VoteActive"] = "vote-active";
23
25
  ICON_NAME2["SettingActive"] = "setting-active";
24
26
  ICON_NAME2["Setting"] = "setting";
25
27
  ICON_NAME2["LineArrowUp"] = "line-arrow-up";
package/es/index.mjs CHANGED
@@ -3928,17 +3928,45 @@ to {
3928
3928
  }
3929
3929
  .footer .mirror-container .mirror-text[data-v-21a63691] {
3930
3930
  margin-left: 4px;
3931
- }.contact-container[data-v-5b3301b3] {
3932
- position: fixed;
3933
- top: 0;
3934
- bottom: 0;
3935
- left: 0;
3936
- z-index: 11;
3937
- box-sizing: border-box;
3938
- width: 100vw;
3939
- height: auto;
3940
- background-color: var(--uikit-color-black-8);
3941
- }.footer-container[data-v-f808bd91] {
3931
+ }.show-more-content[data-v-1506794c] {
3932
+ position: absolute;
3933
+ bottom: 15px;
3934
+ left: 5%;
3935
+ width: 90%;
3936
+ height: 17vh;
3937
+ padding: 10px;
3938
+ border-radius: 13px;
3939
+ animation-name: popup-1506794c;
3940
+ animation-duration: 200ms;
3941
+ background-color: var(--bg-color-operate);
3942
+ }
3943
+ @keyframes popup-1506794c {
3944
+ from {
3945
+ bottom: 0;
3946
+ }
3947
+ to {
3948
+ bottom: 15px;
3949
+ }
3950
+ }
3951
+ .control-compent[data-v-1506794c] {
3952
+ display: flex;
3953
+ }
3954
+ .close[data-v-1506794c] {
3955
+ position: relative;
3956
+ top: 10%;
3957
+ display: flex;
3958
+ align-items: center;
3959
+ justify-content: center;
3960
+ width: 100%;
3961
+ padding: 10px;
3962
+ font-style: normal;
3963
+ font-weight: 400;
3964
+ line-height: 24px;
3965
+ text-align: center;
3966
+ border-radius: 8px;
3967
+ color: var(--text-color-primary);
3968
+ background-color: var(--button-color-secondary-default);
3969
+ }.footer-container[data-v-3a373c3a] {
3942
3970
  position: absolute;
3943
3971
  bottom: 0;
3944
3972
  display: flex;
@@ -3952,25 +3980,25 @@ to {
3952
3980
  background-color: var(--bg-color-topbar);
3953
3981
  box-shadow: 0 -8px 30px var(--uikit-color-black-8);
3954
3982
  }
3955
- .footer-container .left-container[data-v-f808bd91] {
3983
+ .footer-container .left-container[data-v-3a373c3a] {
3956
3984
  display: flex;
3957
3985
  align-items: center;
3958
3986
  height: 100%;
3959
3987
  }
3960
- .footer-container .left-container .left-container-item[data-v-f808bd91]:not(:first-child) {
3988
+ .footer-container .left-container .left-container-item[data-v-3a373c3a]:not(:first-child) {
3961
3989
  margin-left: 1rem;
3962
3990
  }
3963
- .footer-container .center-container[data-v-f808bd91] {
3991
+ .footer-container .center-container[data-v-3a373c3a] {
3964
3992
  position: relative;
3965
3993
  display: flex;
3966
3994
  align-items: center;
3967
3995
  height: 100%;
3968
3996
  margin: 0 auto;
3969
3997
  }
3970
- .footer-container .center-container .center-container-item[data-v-f808bd91]:not(:first-child) {
3998
+ .footer-container .center-container .center-container-item[data-v-3a373c3a]:not(:first-child) {
3971
3999
  margin-left: 16px;
3972
4000
  }
3973
- .footer-container .right-container[data-v-f808bd91] {
4001
+ .footer-container .right-container[data-v-3a373c3a] {
3974
4002
  display: flex;
3975
4003
  align-items: center;
3976
4004
  height: 100%;
@@ -5047,17 +5075,17 @@ to {
5047
5075
  font-size: 16px;
5048
5076
  font-weight: 400;
5049
5077
  text-align: end;
5050
- }.more-container[data-v-d1a96ffd] {
5078
+ }.more-container[data-v-11728c2b] {
5051
5079
  padding: 20px;
5052
5080
  }
5053
- .more-container .more-title[data-v-d1a96ffd] {
5081
+ .more-container .more-title[data-v-11728c2b] {
5054
5082
  display: flex;
5055
5083
  align-items: center;
5056
5084
  }
5057
- .more-container .more-title .email-icon[data-v-d1a96ffd] {
5085
+ .more-container .more-title .email-icon[data-v-11728c2b] {
5058
5086
  color: var(--uikit-color-gray-7);
5059
5087
  }
5060
- .more-container .more-title .more-notice[data-v-d1a96ffd] {
5088
+ .more-container .more-title .more-notice[data-v-11728c2b] {
5061
5089
  width: 100%;
5062
5090
  height: 22px;
5063
5091
  padding-left: 8px;
@@ -5066,15 +5094,15 @@ to {
5066
5094
  line-height: 22px;
5067
5095
  color: var(--text-color-primary);
5068
5096
  }
5069
- .more-container .more-item[data-v-d1a96ffd] {
5097
+ .more-container .more-item[data-v-11728c2b] {
5070
5098
  position: relative;
5071
5099
  display: flex;
5072
5100
  flex-direction: column;
5073
5101
  }
5074
- .more-container .more-item[data-v-d1a96ffd]:not(:first-child) {
5102
+ .more-container .more-item[data-v-11728c2b]:not(:first-child) {
5075
5103
  margin-top: 20px;
5076
5104
  }
5077
- .more-container .more-item:not(:first-child) .item-title[data-v-d1a96ffd] {
5105
+ .more-container .more-item:not(:first-child) .item-title[data-v-11728c2b] {
5078
5106
  width: 100%;
5079
5107
  padding-bottom: 8px;
5080
5108
  font-size: 14px;
@@ -5082,7 +5110,7 @@ to {
5082
5110
  line-height: 22px;
5083
5111
  color: var(--text-color-primary);
5084
5112
  }
5085
- .more-container .more-item:not(:first-child) .more-content[data-v-d1a96ffd] {
5113
+ .more-container .more-item:not(:first-child) .more-content[data-v-11728c2b] {
5086
5114
  position: relative;
5087
5115
  box-sizing: border-box;
5088
5116
  display: inline-block;
@@ -5102,7 +5130,7 @@ to {
5102
5130
  background-color: var(--bg-color-input);
5103
5131
  border: 1px solid var(--stroke-color-module);
5104
5132
  }
5105
- .more-container .more-item:not(:first-child) .copy-icon[data-v-d1a96ffd] {
5133
+ .more-container .more-item:not(:first-child) .copy-icon[data-v-11728c2b] {
5106
5134
  position: absolute;
5107
5135
  top: 45px;
5108
5136
  right: 10px;
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const indexPC_vue_vue_type_script_setup_true_lang = require("./indexPC.vue2.js");
4
4
  ;/* empty css */
5
5
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
6
- const indexPc = /* @__PURE__ */ _pluginVue_exportHelper.default(indexPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-f808bd91"]]);
6
+ const indexPc = /* @__PURE__ */ _pluginVue_exportHelper.default(indexPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-3a373c3a"]]);
7
7
  exports.default = indexPc;
@@ -59,15 +59,15 @@ const ManageMemberControl_vue_vue_type_script_setup_true_lang = require("../Mana
59
59
  const ChatControl_vue_vue_type_script_setup_true_lang = require("../ChatControl.vue.js");
60
60
  const ManageStageControl_vue_vue_type_script_setup_true_lang = require("../ManageStageControl.vue.js");
61
61
  const MemberApplyControl = require("../ApplyControl/MemberApplyControl.vue.js");
62
- const index$1 = require("../MoreControl/index.js");
63
- const index$2 = require("../EndControl/index.js");
62
+ const index$2 = require("../MoreControl/index.js");
63
+ const index$3 = require("../EndControl/index.js");
64
64
  const SettingControl_vue_vue_type_script_setup_true_lang = require("../SettingControl.vue.js");
65
65
  const WhiteboardControl = require("../WhiteboardControl.vue.js");
66
66
  const VirtualBackground = require("../VirtualBackground.vue.js");
67
67
  const AIControl = require("../AIControl.vue.js");
68
68
  const BasicBeauty = require("../BasicBeauty.vue.js");
69
69
  const useMitt = require("../../../hooks/useMitt.js");
70
- const voteControl = require("../voteControl.vue.js");
70
+ const index$1 = require("../voteControl/index.js");
71
71
  const useRoomFooterHooks = require("./useRoomFooterHooks.js");
72
72
  const _hoisted_1 = { class: "footer-container" };
73
73
  const _hoisted_2 = { class: "left-container" };
@@ -139,7 +139,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
139
139
  class: "center-container-item",
140
140
  onClick: _cache[9] || (_cache[9] = ($event) => handleControlClick("MasterApplyControl"))
141
141
  })) : Vue.createCommentVNode("", true),
142
- Vue.createVNode(voteControl.default, {
142
+ Vue.createVNode(Vue.unref(index$1.default), {
143
143
  class: "center-container-item",
144
144
  onClick: _cache[10] || (_cache[10] = ($event) => handleControlClick("voteControl")),
145
145
  onOnVote: onVote
@@ -149,7 +149,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
149
149
  ]),
150
150
  _: 3
151
151
  }),
152
- Vue.createVNode(Vue.unref(index$1.default), {
152
+ Vue.createVNode(Vue.unref(index$2.default), {
153
153
  class: "center-container-item",
154
154
  onClick: _cache[11] || (_cache[11] = ($event) => handleControlClick("moreControl"))
155
155
  }),
@@ -168,7 +168,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
168
168
  })) : Vue.createCommentVNode("", true)
169
169
  ]),
170
170
  Vue.createElementVNode("div", _hoisted_4, [
171
- Vue.createVNode(Vue.unref(index$2.default))
171
+ Vue.createVNode(Vue.unref(index$3.default))
172
172
  ])
173
173
  ]);
174
174
  };
@@ -0,0 +1,6 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ "show-overlay": (...args: any[]) => void;
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ "onShow-overlay"?: ((...args: any[]) => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const VoteControlH5_vue_vue_type_script_setup_true_lang = require("./VoteControlH5.vue2.js");
4
+ ;/* empty css */
5
+ const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
6
+ const VoteControlH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(VoteControlH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-1506794c"]]);
7
+ exports.default = VoteControlH5;
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
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 useVoteControlHooks = require("./useVoteControlHooks.js");
7
+ const ChatControl_vue_vue_type_script_setup_true_lang = require("../ChatControl.vue.js");
8
+ const InviteControl = require("../InviteControl.vue.js");
9
+ const ContactControl = require("../ContactControl.vue.js");
10
+ const room = require("../../../stores/room.js");
11
+ const useMitt = require("../../../hooks/useMitt.js");
12
+ const vTap = require("../../../directives/vTap.js");
13
+ require("../../../services/main.js");
14
+ const roomService = require("../../../services/roomService.js");
15
+ require("../../../locales/index.js");
16
+ require("@tencentcloud/tuiroom-engine-js");
17
+ require("../../../utils/environment.js");
18
+ require("mitt");
19
+ require("../../../services/manager/roomActionManager.js");
20
+ require("@tencentcloud/tui-core");
21
+ const _hoisted_1 = {
22
+ key: 0,
23
+ class: "more-control-container"
24
+ };
25
+ const _hoisted_2 = { class: "control-compent" };
26
+ const _hoisted_3 = { class: "close" };
27
+ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
28
+ __name: "VoteControlH5",
29
+ emits: ["show-overlay"],
30
+ setup(__props, { emit: __emit }) {
31
+ const moreControlConfig = roomService.roomService.getComponentConfig("MoreControl");
32
+ const showMoreContent = Vue.ref(false);
33
+ const moreContentRef = Vue.ref();
34
+ const { t, sidebarName } = useVoteControlHooks.default();
35
+ const roomStore = room.useRoomStore();
36
+ const emit = __emit;
37
+ function showMore() {
38
+ showMoreContent.value = true;
39
+ }
40
+ function handleCancelControl() {
41
+ showMoreContent.value = false;
42
+ }
43
+ function handleControlClick(name) {
44
+ useMitt.default.emit("experience-communication", name);
45
+ }
46
+ function handleShowOverlay(data) {
47
+ showMoreContent.value = false;
48
+ emit("show-overlay", data);
49
+ }
50
+ function handleDocumentClick(event) {
51
+ if (showMoreContent.value && !moreContentRef.value.contains(event.target)) {
52
+ showMoreContent.value = false;
53
+ }
54
+ }
55
+ Vue.onMounted(() => {
56
+ document == null ? void 0 : document.addEventListener("click", handleDocumentClick, true);
57
+ });
58
+ Vue.onUnmounted(() => {
59
+ document == null ? void 0 : document.removeEventListener("click", handleDocumentClick, true);
60
+ });
61
+ return (_ctx, _cache) => {
62
+ return Vue.openBlock(), Vue.createElementBlock("div", null, [
63
+ Vue.unref(moreControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
64
+ Vue.withDirectives((Vue.openBlock(), Vue.createBlock(IconButton.default, {
65
+ "is-active": Vue.unref(sidebarName) === "more",
66
+ title: Vue.unref(t)("More")
67
+ }, {
68
+ default: Vue.withCtx(() => [
69
+ Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconExtension), { size: "24" })
70
+ ]),
71
+ _: 1
72
+ }, 8, ["is-active", "title"])), [
73
+ [Vue.unref(vTap.default), showMore]
74
+ ])
75
+ ])) : Vue.createCommentVNode("", true),
76
+ showMoreContent.value ? (Vue.openBlock(), Vue.createElementBlock("div", {
77
+ key: 1,
78
+ ref_key: "moreContentRef",
79
+ ref: moreContentRef,
80
+ class: "show-more-content"
81
+ }, [
82
+ Vue.createElementVNode("div", _hoisted_2, [
83
+ Vue.unref(roomStore).isSpeakAfterTakingSeatMode ? (Vue.openBlock(), Vue.createBlock(ChatControl_vue_vue_type_script_setup_true_lang.default, {
84
+ key: 0,
85
+ onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("chatControl"))
86
+ })) : Vue.createCommentVNode("", true),
87
+ Vue.createVNode(ContactControl.default, {
88
+ onClick: _cache[1] || (_cache[1] = ($event) => handleControlClick("contactControl"))
89
+ }),
90
+ Vue.createVNode(InviteControl.default, {
91
+ onShowOverlay: handleShowOverlay,
92
+ onClick: _cache[2] || (_cache[2] = ($event) => handleControlClick("inviteControl"))
93
+ })
94
+ ]),
95
+ Vue.withDirectives((Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3, [
96
+ Vue.createTextVNode(Vue.toDisplayString(Vue.unref(t)("Cancel")), 1)
97
+ ])), [
98
+ [Vue.unref(vTap.default), handleCancelControl]
99
+ ])
100
+ ], 512)) : Vue.createCommentVNode("", true)
101
+ ]);
102
+ };
103
+ }
104
+ });
105
+ exports.default = _sfc_main;