@ndscnj/roomkit-web-vue3 25.12.23181 → 25.12.24111

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 (70) hide show
  1. package/es/components/RoomFooter/index/index.d.ts +13 -3
  2. package/es/components/RoomFooter/index/indexPC.vue.d.ts +5 -1
  3. package/es/components/RoomFooter/index/indexPC.vue.mjs +1 -1
  4. package/es/components/RoomFooter/index/indexPC.vue2.mjs +11 -4
  5. package/es/components/RoomFooter/voteControl/VoteControlH5.vue.d.ts +6 -0
  6. package/es/components/RoomFooter/voteControl/VoteControlH5.vue.mjs +7 -0
  7. package/es/components/RoomFooter/voteControl/VoteControlH5.vue2.mjs +105 -0
  8. package/es/components/RoomFooter/voteControl/VoteControlPC.vue.d.ts +6 -0
  9. package/es/components/RoomFooter/voteControl/VoteControlPC.vue.mjs +55 -0
  10. package/es/components/RoomFooter/voteControl/VoteControlPC.vue2.mjs +4 -0
  11. package/es/components/RoomFooter/voteControl/index.d.ts +10 -0
  12. package/es/components/RoomFooter/voteControl/index.mjs +7 -0
  13. package/es/components/RoomFooter/voteControl/useVoteControlHooks.mjs +22 -0
  14. package/es/components/RoomInvite/useRoomInviteHooks.d.ts +1 -1
  15. package/es/components/RoomSidebar/useSideBarHooks.d.ts +1 -1
  16. package/es/components/RoomVote/index.d.ts +17 -1
  17. package/es/components/RoomVote/indexPC.vue.d.ts +10 -1
  18. package/es/components/RoomVote/indexPC.vue.mjs +1 -1
  19. package/es/components/RoomVote/indexPC.vue2.mjs +6 -2
  20. package/es/conference.vue.mjs +1 -1
  21. package/es/conference.vue2.mjs +1 -0
  22. package/es/constants/icon.d.ts +2 -0
  23. package/es/constants/icon.mjs +2 -0
  24. package/es/index.mjs +54 -34
  25. package/es/locales/zh-CN.mjs +1 -1
  26. package/es/stores/basic.d.ts +1 -1
  27. package/lib/components/RoomFooter/index/index.d.ts +13 -3
  28. package/lib/components/RoomFooter/index/indexPC.vue.d.ts +5 -1
  29. package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
  30. package/lib/components/RoomFooter/index/indexPC.vue2.js +15 -8
  31. package/lib/components/RoomFooter/voteControl/VoteControlH5.vue.d.ts +6 -0
  32. package/lib/components/RoomFooter/voteControl/VoteControlH5.vue.js +7 -0
  33. package/lib/components/RoomFooter/voteControl/VoteControlH5.vue2.js +105 -0
  34. package/lib/components/RoomFooter/voteControl/VoteControlPC.vue.d.ts +6 -0
  35. package/lib/components/RoomFooter/voteControl/VoteControlPC.vue.js +55 -0
  36. package/lib/components/RoomFooter/voteControl/VoteControlPC.vue2.js +4 -0
  37. package/lib/components/RoomFooter/voteControl/index.d.ts +10 -0
  38. package/lib/components/RoomFooter/voteControl/index.js +7 -0
  39. package/lib/components/RoomFooter/voteControl/useVoteControlHooks.js +22 -0
  40. package/lib/components/RoomInvite/useRoomInviteHooks.d.ts +1 -1
  41. package/lib/components/RoomSidebar/useSideBarHooks.d.ts +1 -1
  42. package/lib/components/RoomVote/index.d.ts +17 -1
  43. package/lib/components/RoomVote/indexPC.vue.d.ts +10 -1
  44. package/lib/components/RoomVote/indexPC.vue.js +1 -1
  45. package/lib/components/RoomVote/indexPC.vue2.js +5 -1
  46. package/lib/conference.vue.js +1 -1
  47. package/lib/conference.vue2.js +1 -0
  48. package/lib/constants/icon.d.ts +2 -0
  49. package/lib/constants/icon.js +2 -0
  50. package/lib/index.js +54 -34
  51. package/lib/locales/zh-CN.js +1 -1
  52. package/lib/stores/basic.d.ts +1 -1
  53. package/package.json +1 -1
  54. package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +8 -1
  55. package/src/TUIRoom/components/RoomFooter/voteControl/VoteControlH5.vue +122 -0
  56. package/src/TUIRoom/components/RoomFooter/voteControl/VoteControlPC.vue +35 -0
  57. package/src/TUIRoom/components/RoomFooter/voteControl/index.ts +8 -0
  58. package/src/TUIRoom/components/RoomFooter/voteControl/useVoteControlHooks.ts +23 -0
  59. package/src/TUIRoom/components/RoomFooter/voteControl.vue +30 -33
  60. package/src/TUIRoom/components/RoomVote/indexPC.vue +4 -1
  61. package/src/TUIRoom/conference.vue +1 -0
  62. package/src/TUIRoom/constants/icon.ts +2 -0
  63. package/src/TUIRoom/locales/zh-CN.ts +1 -1
  64. package/src/TUIRoom/stores/basic.ts +1 -1
  65. package/es/components/RoomFooter/voteControl.vue.d.ts +0 -15
  66. package/es/components/RoomFooter/voteControl.vue.mjs +0 -7
  67. package/es/components/RoomFooter/voteControl.vue2.mjs +0 -65
  68. package/lib/components/RoomFooter/voteControl.vue.d.ts +0 -15
  69. package/lib/components/RoomFooter/voteControl.vue.js +0 -7
  70. package/lib/components/RoomFooter/voteControl.vue2.js +0 -65
package/es/index.mjs CHANGED
@@ -3928,25 +3928,45 @@ to {
3928
3928
  }
3929
3929
  .footer .mirror-container .mirror-text[data-v-21a63691] {
3930
3930
  margin-left: 4px;
3931
- }.more-container[data-v-412ed740] {
3932
- padding: 20px;
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);
3933
3942
  }
3934
- .more-container .more-title[data-v-412ed740] {
3935
- display: flex;
3936
- align-items: center;
3943
+ @keyframes popup-1506794c {
3944
+ from {
3945
+ bottom: 0;
3946
+ }
3947
+ to {
3948
+ bottom: 15px;
3937
3949
  }
3938
- .more-container .more-title .email-icon[data-v-412ed740] {
3939
- color: var(--uikit-color-gray-7);
3940
3950
  }
3941
- .more-container .more-title .more-notice[data-v-412ed740] {
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;
3942
3960
  width: 100%;
3943
- height: 22px;
3944
- padding-left: 8px;
3945
- font-size: 14px;
3961
+ padding: 10px;
3962
+ font-style: normal;
3946
3963
  font-weight: 400;
3947
- line-height: 22px;
3964
+ line-height: 24px;
3965
+ text-align: center;
3966
+ border-radius: 8px;
3948
3967
  color: var(--text-color-primary);
3949
- }.footer-container[data-v-6b90d75f] {
3968
+ background-color: var(--button-color-secondary-default);
3969
+ }.footer-container[data-v-3a373c3a] {
3950
3970
  position: absolute;
3951
3971
  bottom: 0;
3952
3972
  display: flex;
@@ -3960,25 +3980,25 @@ to {
3960
3980
  background-color: var(--bg-color-topbar);
3961
3981
  box-shadow: 0 -8px 30px var(--uikit-color-black-8);
3962
3982
  }
3963
- .footer-container .left-container[data-v-6b90d75f] {
3983
+ .footer-container .left-container[data-v-3a373c3a] {
3964
3984
  display: flex;
3965
3985
  align-items: center;
3966
3986
  height: 100%;
3967
3987
  }
3968
- .footer-container .left-container .left-container-item[data-v-6b90d75f]:not(:first-child) {
3988
+ .footer-container .left-container .left-container-item[data-v-3a373c3a]:not(:first-child) {
3969
3989
  margin-left: 1rem;
3970
3990
  }
3971
- .footer-container .center-container[data-v-6b90d75f] {
3991
+ .footer-container .center-container[data-v-3a373c3a] {
3972
3992
  position: relative;
3973
3993
  display: flex;
3974
3994
  align-items: center;
3975
3995
  height: 100%;
3976
3996
  margin: 0 auto;
3977
3997
  }
3978
- .footer-container .center-container .center-container-item[data-v-6b90d75f]:not(:first-child) {
3998
+ .footer-container .center-container .center-container-item[data-v-3a373c3a]:not(:first-child) {
3979
3999
  margin-left: 16px;
3980
4000
  }
3981
- .footer-container .right-container[data-v-6b90d75f] {
4001
+ .footer-container .right-container[data-v-3a373c3a] {
3982
4002
  display: flex;
3983
4003
  align-items: center;
3984
4004
  height: 100%;
@@ -5055,17 +5075,17 @@ to {
5055
5075
  font-size: 16px;
5056
5076
  font-weight: 400;
5057
5077
  text-align: end;
5058
- }.more-container[data-v-17479e8d] {
5078
+ }.more-container[data-v-11728c2b] {
5059
5079
  padding: 20px;
5060
5080
  }
5061
- .more-container .more-title[data-v-17479e8d] {
5081
+ .more-container .more-title[data-v-11728c2b] {
5062
5082
  display: flex;
5063
5083
  align-items: center;
5064
5084
  }
5065
- .more-container .more-title .email-icon[data-v-17479e8d] {
5085
+ .more-container .more-title .email-icon[data-v-11728c2b] {
5066
5086
  color: var(--uikit-color-gray-7);
5067
5087
  }
5068
- .more-container .more-title .more-notice[data-v-17479e8d] {
5088
+ .more-container .more-title .more-notice[data-v-11728c2b] {
5069
5089
  width: 100%;
5070
5090
  height: 22px;
5071
5091
  padding-left: 8px;
@@ -5074,15 +5094,15 @@ to {
5074
5094
  line-height: 22px;
5075
5095
  color: var(--text-color-primary);
5076
5096
  }
5077
- .more-container .more-item[data-v-17479e8d] {
5097
+ .more-container .more-item[data-v-11728c2b] {
5078
5098
  position: relative;
5079
5099
  display: flex;
5080
5100
  flex-direction: column;
5081
5101
  }
5082
- .more-container .more-item[data-v-17479e8d]:not(:first-child) {
5102
+ .more-container .more-item[data-v-11728c2b]:not(:first-child) {
5083
5103
  margin-top: 20px;
5084
5104
  }
5085
- .more-container .more-item:not(:first-child) .item-title[data-v-17479e8d] {
5105
+ .more-container .more-item:not(:first-child) .item-title[data-v-11728c2b] {
5086
5106
  width: 100%;
5087
5107
  padding-bottom: 8px;
5088
5108
  font-size: 14px;
@@ -5090,7 +5110,7 @@ to {
5090
5110
  line-height: 22px;
5091
5111
  color: var(--text-color-primary);
5092
5112
  }
5093
- .more-container .more-item:not(:first-child) .more-content[data-v-17479e8d] {
5113
+ .more-container .more-item:not(:first-child) .more-content[data-v-11728c2b] {
5094
5114
  position: relative;
5095
5115
  box-sizing: border-box;
5096
5116
  display: inline-block;
@@ -5110,7 +5130,7 @@ to {
5110
5130
  background-color: var(--bg-color-input);
5111
5131
  border: 1px solid var(--stroke-color-module);
5112
5132
  }
5113
- .more-container .more-item:not(:first-child) .copy-icon[data-v-17479e8d] {
5133
+ .more-container .more-item:not(:first-child) .copy-icon[data-v-11728c2b] {
5114
5134
  position: absolute;
5115
5135
  top: 45px;
5116
5136
  right: 10px;
@@ -9148,7 +9168,7 @@ body, html {
9148
9168
  }
9149
9169
  .tui-room :not([class|=el]) {
9150
9170
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
9151
- }.tui-room[data-v-d9ae22c4] {
9171
+ }.tui-room[data-v-3b59b436] {
9152
9172
  position: relative;
9153
9173
  display: flex;
9154
9174
  flex-direction: column;
@@ -9160,7 +9180,7 @@ body, html {
9160
9180
  text-align: left;
9161
9181
  background-color: var(--bg-color-topbar);
9162
9182
  }
9163
- .tui-room .header[data-v-d9ae22c4] {
9183
+ .tui-room .header[data-v-3b59b436] {
9164
9184
  position: absolute;
9165
9185
  top: 0;
9166
9186
  left: 0;
@@ -9171,20 +9191,20 @@ body, html {
9171
9191
  border-bottom: 1px solid var(--stroke-color-primary);
9172
9192
  box-shadow: 0 1px 0 var(--uikit-color-black-8);
9173
9193
  }
9174
- .tui-room .content[data-v-d9ae22c4] {
9194
+ .tui-room .content[data-v-3b59b436] {
9175
9195
  position: absolute;
9176
9196
  top: 0;
9177
9197
  width: 100%;
9178
9198
  height: 100%;
9179
9199
  background-color: var(--bg-color-topbar);
9180
9200
  }
9181
- .tui-room.tui-room-h5[data-v-d9ae22c4] {
9201
+ .tui-room.tui-room-h5[data-v-3b59b436] {
9182
9202
  width: 100%;
9183
9203
  min-width: 350px;
9184
9204
  height: 100%;
9185
9205
  min-height: 525px;
9186
9206
  }
9187
- #roomContainer.chat-room[data-v-d9ae22c4] {
9207
+ #roomContainer.chat-room[data-v-3b59b436] {
9188
9208
  position: absolute;
9189
9209
  top: 0;
9190
9210
  right: 0;
@@ -9196,8 +9216,8 @@ body, html {
9196
9216
  margin: auto;
9197
9217
  border-radius: 10px;
9198
9218
  }
9199
- #roomContainer.tui-room-h5[data-v-d9ae22c4],
9200
- #roomContainer .chat-room[data-v-d9ae22c4] {
9219
+ #roomContainer.tui-room-h5[data-v-3b59b436],
9220
+ #roomContainer .chat-room[data-v-3b59b436] {
9201
9221
  width: 100%;
9202
9222
  height: 100%;
9203
9223
  }.user-info-container[data-v-9e9aff53] {
@@ -60,7 +60,7 @@ const ZH = {
60
60
  me: "我",
61
61
  Admin: "管理员",
62
62
  RoomOwner: "主持人",
63
- Vote: "表决",
63
+ "Vote": "表决",
64
64
  More: "更多",
65
65
  "AI Assistant": "AI 助手",
66
66
  "AI real-time conference content": "AI 实时会议内容",
@@ -1,7 +1,7 @@
1
1
  import { LAYOUT } from '../constants/render';
2
2
  import { TUINetwork } from '../../../node_modules/@tencentcloud/tuiroom-engine-js';
3
3
 
4
- type SideBarType = 'chat' | 'invite' | 'manage-member' | 'more' | 'transfer-leave' | 'apply' | 'aiTranscription' | 'vote' | '';
4
+ type SideBarType = 'chat' | 'invite' | 'manage-member' | 'vote' | 'more' | 'transfer-leave' | 'apply' | 'aiTranscription' | '';
5
5
  type SceneType = 'chat' | 'default';
6
6
  interface BasicState {
7
7
  sdkAppId: number;
@@ -3,18 +3,28 @@ declare const Index: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('v
3
3
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
4
  "onShow-overlay"?: ((...args: any[]) => any) | undefined;
5
5
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | ({
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, {
6
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
7
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
8
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "on-vote": (...args: any[]) => void;
10
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
7
11
  P: {};
8
12
  B: {};
9
13
  D: {};
10
14
  C: {};
11
15
  M: {};
12
16
  Defaults: {};
13
- }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
17
+ }, Readonly<{}> & Readonly<{
18
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
19
+ }>, {}, {}, {}, {}, {}>;
14
20
  __isFragment?: never;
15
21
  __isTeleport?: never;
16
22
  __isSuspense?: never;
17
- } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
23
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
24
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
25
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ "on-vote": (...args: any[]) => void;
27
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
18
28
  $slots: {
19
29
  content?(_: {}): any;
20
30
  };
@@ -1,7 +1,11 @@
1
1
  declare function __VLS_template(): {
2
2
  content?(_: {}): any;
3
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>;
4
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ "on-vote": (...args: any[]) => void;
6
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
7
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
9
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
10
  export default _default;
7
11
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -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-6b90d75f"]]);
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" };
@@ -75,11 +75,17 @@ const _hoisted_3 = { class: "center-container" };
75
75
  const _hoisted_4 = { class: "right-container" };
76
76
  const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
77
77
  __name: "indexPC",
78
- setup(__props) {
78
+ emits: ["on-vote"],
79
+ setup(__props, { emit: __emit }) {
79
80
  const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooterHooks.default();
80
81
  function handleControlClick(name) {
81
82
  useMitt.default.emit("experience-communication", name);
82
83
  }
84
+ const emit = __emit;
85
+ const onVote = (data) => {
86
+ console.log(data, "data111");
87
+ emit("on-vote", { code: data.visible, message: "vote" });
88
+ };
83
89
  return (_ctx, _cache) => {
84
90
  return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
85
91
  Vue.createElementVNode("div", _hoisted_2, [
@@ -133,16 +139,17 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
133
139
  class: "center-container-item",
134
140
  onClick: _cache[9] || (_cache[9] = ($event) => handleControlClick("MasterApplyControl"))
135
141
  })) : Vue.createCommentVNode("", true),
136
- Vue.createVNode(voteControl.default, {
142
+ Vue.createVNode(Vue.unref(index$1.default), {
137
143
  class: "center-container-item",
138
- onClick: _cache[10] || (_cache[10] = ($event) => handleControlClick("voteControl"))
144
+ onClick: _cache[10] || (_cache[10] = ($event) => handleControlClick("voteControl")),
145
+ onOnVote: onVote
139
146
  }, {
140
147
  content: Vue.withCtx(() => [
141
148
  Vue.renderSlot(_ctx.$slots, "content", {}, void 0, true)
142
149
  ]),
143
150
  _: 3
144
151
  }),
145
- Vue.createVNode(Vue.unref(index$1.default), {
152
+ Vue.createVNode(Vue.unref(index$2.default), {
146
153
  class: "center-container-item",
147
154
  onClick: _cache[11] || (_cache[11] = ($event) => handleControlClick("moreControl"))
148
155
  }),
@@ -161,7 +168,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
161
168
  })) : Vue.createCommentVNode("", true)
162
169
  ]),
163
170
  Vue.createElementVNode("div", _hoisted_4, [
164
- Vue.createVNode(Vue.unref(index$2.default))
171
+ Vue.createVNode(Vue.unref(index$3.default))
165
172
  ])
166
173
  ]);
167
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;
@@ -0,0 +1,6 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ "on-vote": (...args: any[]) => void;
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
+ "onOn-vote"?: ((...args: any[]) => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
@@ -0,0 +1,55 @@
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
+ 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: "vote-control-container"
18
+ };
19
+ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
20
+ __name: "VoteControlPC",
21
+ emits: ["on-vote"],
22
+ setup(__props, { emit: __emit }) {
23
+ const voteControlConfig = roomService.roomService.getComponentConfig("VoteControl");
24
+ const { t, basicStore, sidebarName } = useVoteControlHooks.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: voteControlConfig.visible
37
+ });
38
+ }
39
+ return (_ctx, _cache) => {
40
+ return Vue.unref(voteControlConfig).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;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const VoteControlPC_vue_vue_type_script_setup_true_lang = require("./VoteControlPC.vue.js");
4
+ exports.default = VoteControlPC_vue_vue_type_script_setup_true_lang.default;
@@ -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
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const VoteControlH5 = require("./VoteControlH5.vue.js");
4
+ const VoteControlPC_vue_vue_type_script_setup_true_lang = require("./VoteControlPC.vue.js");
5
+ const environment = require("../../../utils/environment.js");
6
+ const VoteControl = environment.isMobile ? VoteControlH5.default : VoteControlPC_vue_vue_type_script_setup_true_lang.default;
7
+ exports.default = VoteControl;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const Vue = require("vue");
4
+ const basic = require("../../../stores/basic.js");
5
+ const pinia = require("pinia");
6
+ const index = require("../../../locales/index.js");
7
+ const icon = require("../../../constants/icon.js");
8
+ function useControl() {
9
+ const { t } = index.useI18n();
10
+ const basicStore = basic.useBasicStore();
11
+ const { sidebarName } = pinia.storeToRefs(basicStore);
12
+ const iconName = Vue.computed(
13
+ () => sidebarName.value === "vote" ? icon.ICON_NAME.VoteActive : icon.ICON_NAME.Vote
14
+ );
15
+ return {
16
+ t,
17
+ basicStore,
18
+ iconName,
19
+ sidebarName
20
+ };
21
+ }
22
+ exports.default = useControl;
@@ -76,5 +76,5 @@ export default function useRoomInvite(): {
76
76
  isVisible: boolean;
77
77
  }[]>;
78
78
  copyRoomIdAndRoomLink: () => void;
79
- sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "more" | "transfer-leave" | "apply" | "aiTranscription" | "vote", "" | "chat" | "invite" | "manage-member" | "more" | "transfer-leave" | "apply" | "aiTranscription" | "vote">;
79
+ sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription", "" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription">;
80
80
  };
@@ -2,7 +2,7 @@ export default function useSideBar(): {
2
2
  t: any;
3
3
  isSidebarOpen: import('vue').Ref<boolean, boolean>;
4
4
  title: import('vue').ComputedRef<string>;
5
- sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "more" | "transfer-leave" | "apply" | "aiTranscription" | "vote", "" | "chat" | "invite" | "manage-member" | "more" | "transfer-leave" | "apply" | "aiTranscription" | "vote">;
5
+ sidebarName: import('vue').Ref<"" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription", "" | "chat" | "invite" | "manage-member" | "vote" | "more" | "transfer-leave" | "apply" | "aiTranscription">;
6
6
  handleClose: (done: any) => void;
7
7
  showSideBar: import('vue').ComputedRef<boolean>;
8
8
  };
@@ -2,5 +2,21 @@ declare const Index: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('v
2
2
  "on-close-contact": (...args: any[]) => void;
3
3
  }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
4
  "onOn-close-contact"?: ((...args: any[]) => any) | undefined;
5
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | ({
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, {
7
+ P: {};
8
+ B: {};
9
+ D: {};
10
+ C: {};
11
+ M: {};
12
+ Defaults: {};
13
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
14
+ __isFragment?: never;
15
+ __isTeleport?: never;
16
+ __isSuspense?: never;
17
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
18
+ $slots: {
19
+ content?(_: {}): any;
20
+ };
21
+ }));
6
22
  export default Index;
@@ -1,2 +1,11 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
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>>;
2
6
  export default _default;
7
+ type __VLS_WithTemplateSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -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-17479e8d"]]);
6
+ const indexPC = /* @__PURE__ */ _pluginVue_exportHelper.default(indexPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-11728c2b"]]);
7
7
  exports.default = indexPC;