@ndscnj/roomkit-web-vue3 25.12.23181 → 25.12.23182

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.
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./voteControl.vue2.mjs";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const voteControl = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-412ed740"]]);
4
+ const voteControl = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-45795e90"]]);
5
5
  export {
6
6
  voteControl as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, watch, resolveComponent, createElementBlock, createCommentVNode, unref, openBlock, createVNode, createTextVNode, createElementVNode, withCtx, toDisplayString, renderSlot } from "vue";
1
+ import { defineComponent, computed, ref, watch, createElementBlock, createCommentVNode, unref, openBlock, createVNode, createTextVNode, createElementVNode, withCtx, toDisplayString, renderSlot } from "vue";
2
2
  import "../../services/main.mjs";
3
3
  import { roomService } from "../../services/roomService.mjs";
4
4
  import { useI18n } from "../../locales/index.mjs";
@@ -7,6 +7,8 @@ import "../../utils/environment.mjs";
7
7
  import "mitt";
8
8
  import "../../services/manager/roomActionManager.mjs";
9
9
  import "@tencentcloud/tui-core";
10
+ import IconButton from "../common/base/IconButton.vue.mjs";
11
+ import { IconAIIcon } from "@tencentcloud/uikit-base-component-vue3";
10
12
  const _hoisted_1 = {
11
13
  key: 0,
12
14
  class: "more-container"
@@ -37,21 +39,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
39
  });
38
40
  }
39
41
  return (_ctx, _cache) => {
40
- const _component_IconAIIcon = resolveComponent("IconAIIcon");
41
- const _component_icon_button = resolveComponent("icon-button");
42
42
  return unref(voteControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
43
- createVNode(_component_icon_button, {
43
+ createVNode(IconButton, {
44
44
  "is-active": sidebarName.value === "vote",
45
45
  title: unref(t)("Vote"),
46
46
  onClickIcon: toggleToolBox
47
47
  }, {
48
48
  default: withCtx(() => [
49
- createVNode(_component_IconAIIcon, { size: "24" })
49
+ createVNode(unref(IconAIIcon), { size: "24" })
50
50
  ]),
51
51
  _: 1
52
52
  }, 8, ["is-active", "title"]),
53
53
  createTextVNode(" " + toDisplayString(sidebarName.value) + " ", 1),
54
- createElementVNode("div", { onClick: toggleToolBox }, "测试"),
54
+ createElementVNode("div", { onClick: toggleToolBox }, "0测试"),
55
55
  !isSidebarOpen.value && showToolBox.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
56
56
  _cache[0] || (_cache[0] = createTextVNode(" 123 ", -1)),
57
57
  renderSlot(_ctx.$slots, "content", {}, void 0, true)
@@ -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
  };
package/es/index.mjs CHANGED
@@ -3928,24 +3928,35 @@ 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
+ }.tool-box[data-v-45795e90] {
3932
+ position: absolute;
3933
+ bottom: 72px;
3934
+ z-index: 2;
3935
+ display: flex;
3936
+ flex-direction: column;
3937
+ align-items: center;
3938
+ justify-content: center;
3939
+ padding: 5px 0;
3940
+ border-radius: 15px;
3941
+ background-color: var(--bg-color-dialog);
3942
+ box-shadow: 0 -8px 30p var(--uikit-color-black-8);
3933
3943
  }
3934
- .more-container .more-title[data-v-412ed740] {
3944
+ .tool-box .tool-box-item[data-v-45795e90] {
3935
3945
  display: flex;
3936
3946
  align-items: center;
3947
+ justify-content: flex-start;
3948
+ width: 100%;
3949
+ padding: 7px 10px;
3950
+ font-size: 12px;
3951
+ white-space: nowrap;
3952
+ cursor: pointer;
3937
3953
  }
3938
- .more-container .more-title .email-icon[data-v-412ed740] {
3939
- color: var(--uikit-color-gray-7);
3954
+ .tool-box .tool-box-item .icon[data-v-45795e90] {
3955
+ margin-right: 8px;
3940
3956
  }
3941
- .more-container .more-title .more-notice[data-v-412ed740] {
3942
- width: 100%;
3943
- height: 22px;
3944
- padding-left: 8px;
3945
- font-size: 14px;
3946
- font-weight: 400;
3947
- line-height: 22px;
3948
- color: var(--text-color-primary);
3957
+ .tool-box .tool-box-item[data-v-45795e90]:hover {
3958
+ border-radius: 8px;
3959
+ background-color: var(--list-color-hover);
3949
3960
  }.footer-container[data-v-6b90d75f] {
3950
3961
  position: absolute;
3951
3962
  bottom: 0;
@@ -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,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const voteControl_vue_vue_type_script_setup_true_lang = require("./voteControl.vue2.js");
4
4
  ;/* empty css */
5
5
  const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.js");
6
- const voteControl = /* @__PURE__ */ _pluginVue_exportHelper.default(voteControl_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-412ed740"]]);
6
+ const voteControl = /* @__PURE__ */ _pluginVue_exportHelper.default(voteControl_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-45795e90"]]);
7
7
  exports.default = voteControl;
@@ -9,6 +9,8 @@ require("../../utils/environment.js");
9
9
  require("mitt");
10
10
  require("../../services/manager/roomActionManager.js");
11
11
  require("@tencentcloud/tui-core");
12
+ const IconButton = require("../common/base/IconButton.vue.js");
13
+ const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
12
14
  const _hoisted_1 = {
13
15
  key: 0,
14
16
  class: "more-container"
@@ -39,21 +41,19 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
39
41
  });
40
42
  }
41
43
  return (_ctx, _cache) => {
42
- const _component_IconAIIcon = Vue.resolveComponent("IconAIIcon");
43
- const _component_icon_button = Vue.resolveComponent("icon-button");
44
44
  return Vue.unref(voteControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
45
- Vue.createVNode(_component_icon_button, {
45
+ Vue.createVNode(IconButton.default, {
46
46
  "is-active": sidebarName.value === "vote",
47
47
  title: Vue.unref(t)("Vote"),
48
48
  onClickIcon: toggleToolBox
49
49
  }, {
50
50
  default: Vue.withCtx(() => [
51
- Vue.createVNode(_component_IconAIIcon, { size: "24" })
51
+ Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconAIIcon), { size: "24" })
52
52
  ]),
53
53
  _: 1
54
54
  }, 8, ["is-active", "title"]),
55
55
  Vue.createTextVNode(" " + Vue.toDisplayString(sidebarName.value) + " ", 1),
56
- Vue.createElementVNode("div", { onClick: toggleToolBox }, "测试"),
56
+ Vue.createElementVNode("div", { onClick: toggleToolBox }, "0测试"),
57
57
  !isSidebarOpen.value && showToolBox.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
58
58
  _cache[0] || (_cache[0] = Vue.createTextVNode(" 123 ", -1)),
59
59
  Vue.renderSlot(_ctx.$slots, "content", {}, void 0, true)
@@ -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
  };
package/lib/index.js CHANGED
@@ -3928,24 +3928,35 @@ 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
+ }.tool-box[data-v-45795e90] {
3932
+ position: absolute;
3933
+ bottom: 72px;
3934
+ z-index: 2;
3935
+ display: flex;
3936
+ flex-direction: column;
3937
+ align-items: center;
3938
+ justify-content: center;
3939
+ padding: 5px 0;
3940
+ border-radius: 15px;
3941
+ background-color: var(--bg-color-dialog);
3942
+ box-shadow: 0 -8px 30p var(--uikit-color-black-8);
3933
3943
  }
3934
- .more-container .more-title[data-v-412ed740] {
3944
+ .tool-box .tool-box-item[data-v-45795e90] {
3935
3945
  display: flex;
3936
3946
  align-items: center;
3947
+ justify-content: flex-start;
3948
+ width: 100%;
3949
+ padding: 7px 10px;
3950
+ font-size: 12px;
3951
+ white-space: nowrap;
3952
+ cursor: pointer;
3937
3953
  }
3938
- .more-container .more-title .email-icon[data-v-412ed740] {
3939
- color: var(--uikit-color-gray-7);
3954
+ .tool-box .tool-box-item .icon[data-v-45795e90] {
3955
+ margin-right: 8px;
3940
3956
  }
3941
- .more-container .more-title .more-notice[data-v-412ed740] {
3942
- width: 100%;
3943
- height: 22px;
3944
- padding-left: 8px;
3945
- font-size: 14px;
3946
- font-weight: 400;
3947
- line-height: 22px;
3948
- color: var(--text-color-primary);
3957
+ .tool-box .tool-box-item[data-v-45795e90]:hover {
3958
+ border-radius: 8px;
3959
+ background-color: var(--list-color-hover);
3949
3960
  }.footer-container[data-v-6b90d75f] {
3950
3961
  position: absolute;
3951
3962
  bottom: 0;
@@ -62,7 +62,7 @@ const ZH = {
62
62
  me: "我",
63
63
  Admin: "管理员",
64
64
  RoomOwner: "主持人",
65
- Vote: "表决",
65
+ "Vote": "表决",
66
66
  More: "更多",
67
67
  "AI Assistant": "AI 助手",
68
68
  "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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndscnj/roomkit-web-vue3",
3
- "version": "25.12.23181",
3
+ "version": "25.12.23182",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",
@@ -8,7 +8,7 @@
8
8
  <IconAIIcon size="24" />
9
9
  </icon-button>
10
10
  {{ sidebarName }}
11
- <div @click="toggleToolBox">测试</div>
11
+ <div @click="toggleToolBox">0测试</div>
12
12
  <div class="tool-box" v-if="!isSidebarOpen && showToolBox">
13
13
  123
14
14
  <slot name="content"></slot>
@@ -17,9 +17,15 @@
17
17
  </template>
18
18
 
19
19
  <script setup lang="ts">
20
- import { roomService } from '../../services';
20
+ import { roomService } from '../../services';
21
21
  import { defineEmits, ref,computed,watch } from 'vue';
22
22
  import { useI18n } from '../../locales';
23
+ import IconButton from '../common/base/IconButton.vue';
24
+ import {
25
+ IconAIIcon,
26
+ IconAISubtitles,
27
+ IconAITranscription,
28
+ } from '@tencentcloud/uikit-base-component-vue3';
23
29
  const { basicStore } = roomService;
24
30
  const isSidebarOpen = computed(() => basicStore.isSidebarOpen);
25
31
  const sidebarName = computed(() => basicStore.sidebarName);
@@ -41,27 +47,37 @@ function toggleToolBox() {
41
47
  </script>
42
48
 
43
49
  <style lang="scss" scoped>
44
- .more-container {
45
- padding: 20px;
50
+ .tool-box {
51
+ position: absolute;
52
+ bottom: 72px;
53
+ z-index: 2;
54
+ display: flex;
55
+ flex-direction: column;
56
+ align-items: center;
57
+ justify-content: center;
58
+ padding: 5px 0;
59
+ border-radius: 15px;
60
+ background-color: var(--bg-color-dialog);
61
+ box-shadow: 0 -8px 30p var(--uikit-color-black-8);
46
62
 
47
- .more-title {
63
+ .tool-box-item {
48
64
  display: flex;
49
65
  align-items: center;
66
+ justify-content: flex-start;
67
+ width: 100%;
68
+ padding: 7px 10px;
69
+ font-size: 12px;
70
+ white-space: nowrap;
71
+ cursor: pointer;
50
72
 
51
- .email-icon {
52
- color: var(--uikit-color-gray-7);
53
- }
54
-
55
- .more-notice {
56
- width: 100%;
57
- height: 22px;
58
- padding-left: 8px;
59
- font-size: 14px;
60
- font-weight: 400;
61
- line-height: 22px;
62
- color: var(--text-color-primary);
73
+ .icon {
74
+ margin-right: 8px;
63
75
  }
64
76
  }
65
77
 
78
+ .tool-box-item:hover {
79
+ border-radius: 8px;
80
+ background-color: var(--list-color-hover);
81
+ }
66
82
  }
67
83
  </style>
@@ -66,7 +66,7 @@ export default {
66
66
  me: '我',
67
67
  Admin: '管理员',
68
68
  RoomOwner: '主持人',
69
- Vote: '表决',
69
+ 'Vote': '表决',
70
70
  More: '更多',
71
71
  'AI Assistant': 'AI 助手',
72
72
  'AI real-time conference content': 'AI 实时会议内容',
@@ -9,11 +9,11 @@ type SideBarType =
9
9
  | 'chat'
10
10
  | 'invite'
11
11
  | 'manage-member'
12
+ | 'vote'
12
13
  | 'more'
13
14
  | 'transfer-leave'
14
15
  | 'apply'
15
16
  | 'aiTranscription'
16
- | 'vote'
17
17
  | '';
18
18
  type SceneType = 'chat' | 'default';
19
19