@ndscnj/roomkit-web-vue3 25.12.2319 → 25.12.2409

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 (31) 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 +9 -2
  5. package/es/components/RoomFooter/voteControl.vue.mjs +1 -1
  6. package/es/components/RoomFooter/voteControl.vue2.mjs +19 -13
  7. package/es/components/RoomVote/index.d.ts +17 -1
  8. package/es/components/RoomVote/indexPC.vue.d.ts +10 -1
  9. package/es/components/RoomVote/indexPC.vue.mjs +1 -1
  10. package/es/components/RoomVote/indexPC.vue2.mjs +5 -1
  11. package/es/conference.vue.mjs +1 -1
  12. package/es/conference.vue2.mjs +1 -0
  13. package/es/index.mjs +166 -185
  14. package/lib/components/RoomFooter/index/index.d.ts +13 -3
  15. package/lib/components/RoomFooter/index/indexPC.vue.d.ts +5 -1
  16. package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
  17. package/lib/components/RoomFooter/index/indexPC.vue2.js +9 -2
  18. package/lib/components/RoomFooter/voteControl.vue.js +1 -1
  19. package/lib/components/RoomFooter/voteControl.vue2.js +18 -12
  20. package/lib/components/RoomVote/index.d.ts +17 -1
  21. package/lib/components/RoomVote/indexPC.vue.d.ts +10 -1
  22. package/lib/components/RoomVote/indexPC.vue.js +1 -1
  23. package/lib/components/RoomVote/indexPC.vue2.js +4 -0
  24. package/lib/conference.vue.js +1 -1
  25. package/lib/conference.vue2.js +1 -0
  26. package/lib/index.js +166 -185
  27. package/package.json +1 -1
  28. package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +7 -0
  29. package/src/TUIRoom/components/RoomFooter/voteControl.vue +25 -43
  30. package/src/TUIRoom/components/RoomVote/indexPC.vue +3 -0
  31. package/src/TUIRoom/conference.vue +1 -0
@@ -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 & {
@@ -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-6b90d75f"]]);
4
+ const indexPc = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f808bd91"]]);
5
5
  export {
6
6
  indexPc as default
7
7
  };
@@ -73,11 +73,17 @@ const _hoisted_3 = { class: "center-container" };
73
73
  const _hoisted_4 = { class: "right-container" };
74
74
  const _sfc_main = /* @__PURE__ */ defineComponent({
75
75
  __name: "indexPC",
76
- setup(__props) {
76
+ emits: ["on-vote"],
77
+ setup(__props, { emit: __emit }) {
77
78
  const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooter();
78
79
  function handleControlClick(name) {
79
80
  bus.emit("experience-communication", name);
80
81
  }
82
+ const emit = __emit;
83
+ const onVote = (data) => {
84
+ console.log(data, "data111");
85
+ emit("on-vote", { code: data.visible, message: "vote" });
86
+ };
81
87
  return (_ctx, _cache) => {
82
88
  return openBlock(), createElementBlock("div", _hoisted_1, [
83
89
  createElementVNode("div", _hoisted_2, [
@@ -133,7 +139,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
133
139
  })) : createCommentVNode("", true),
134
140
  createVNode(voteControl, {
135
141
  class: "center-container-item",
136
- onClick: _cache[10] || (_cache[10] = ($event) => handleControlClick("voteControl"))
142
+ onClick: _cache[10] || (_cache[10] = ($event) => handleControlClick("voteControl")),
143
+ onOnVote: onVote
137
144
  }, {
138
145
  content: withCtx(() => [
139
146
  renderSlot(_ctx.$slots, "content", {}, void 0, true)
@@ -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-92356fd2"]]);
4
+ const voteControl = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c9bb5a2b"]]);
5
5
  export {
6
6
  voteControl as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, watch, createElementBlock, createCommentVNode, unref, openBlock, createVNode, createTextVNode, createElementVNode, withCtx, toDisplayString, renderSlot } from "vue";
1
+ import { defineComponent, computed, ref, watch, createElementBlock, openBlock, createVNode, createCommentVNode, unref, withCtx, 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";
@@ -9,13 +9,11 @@ import "../../services/manager/roomActionManager.mjs";
9
9
  import "@tencentcloud/tui-core";
10
10
  import IconButton from "../common/base/IconButton.vue.mjs";
11
11
  import { IconAIIcon } from "@tencentcloud/uikit-base-component-vue3";
12
- const _hoisted_1 = {
13
- key: 0,
14
- class: "more-container"
15
- };
12
+ import Index from "../RoomVote/index.mjs";
13
+ const _hoisted_1 = { class: "vote-control-container" };
16
14
  const _hoisted_2 = {
17
15
  key: 0,
18
- class: "tool-box"
16
+ class: "contact-container"
19
17
  };
20
18
  const _sfc_main = /* @__PURE__ */ defineComponent({
21
19
  __name: "voteControl",
@@ -29,17 +27,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
27
  watch(isSidebarOpen, (newValue) => {
30
28
  showToolBox.value = newValue && false;
31
29
  });
32
- const voteControlConfig = roomService.getComponentConfig("VoteControl");
33
30
  const emit = __emit;
34
31
  function toggleToolBox() {
32
+ console.log(showToolBox.value, "0000");
35
33
  showToolBox.value = !showToolBox.value;
36
34
  emit("on-vote", {
37
35
  name: "onVote",
38
36
  visible: showToolBox.value
39
37
  });
40
38
  }
39
+ function handleOnCloseContact() {
40
+ showToolBox.value = false;
41
+ }
41
42
  return (_ctx, _cache) => {
42
- return unref(voteControlConfig).visible ? (openBlock(), createElementBlock("div", _hoisted_1, [
43
+ return openBlock(), createElementBlock("div", _hoisted_1, [
43
44
  createVNode(IconButton, {
44
45
  "is-active": sidebarName.value === "vote",
45
46
  title: unref(t)("Vote"),
@@ -50,13 +51,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
51
  ]),
51
52
  _: 1
52
53
  }, 8, ["is-active", "title"]),
53
- createTextVNode(" " + toDisplayString(sidebarName.value) + " ", 1),
54
- createElementVNode("div", { onClick: toggleToolBox }, "0测试0"),
55
54
  !isSidebarOpen.value && showToolBox.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
56
- _cache[0] || (_cache[0] = createTextVNode(" 123 ", -1)),
57
- renderSlot(_ctx.$slots, "content", {}, void 0, true)
55
+ createVNode(unref(Index), {
56
+ ref: "contactRef",
57
+ onOnCloseContact: handleOnCloseContact
58
+ }, {
59
+ content: withCtx(() => [
60
+ renderSlot(_ctx.$slots, "content", {}, void 0, true)
61
+ ]),
62
+ _: 3
63
+ }, 512)
58
64
  ])) : createCommentVNode("", true)
59
- ])) : createCommentVNode("", true);
65
+ ]);
60
66
  };
61
67
  }
62
68
  });
@@ -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
+ };
@@ -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-17479e8d"]]);
4
+ const indexPC = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d1a96ffd"]]);
5
5
  export {
6
6
  indexPC as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, createVNode, unref, toDisplayString, withCtx, createTextVNode } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, createVNode, unref, toDisplayString, withCtx, createTextVNode, renderSlot } from "vue";
2
2
  import { IconEmail, TUIButton, IconCopy } from "@tencentcloud/uikit-base-component-vue3";
3
3
  import useRoomMoreHooks from "./useRoomMoreHooks.mjs";
4
4
  const _hoisted_1 = { class: "more-container" };
@@ -12,6 +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
16
  const _sfc_main = /* @__PURE__ */ defineComponent({
16
17
  __name: "indexPC",
17
18
  setup(__props) {
@@ -38,6 +39,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
39
  class: "copy-icon",
39
40
  onClick: _cache[0] || (_cache[0] = ($event) => unref(onCopy)(unref(email)))
40
41
  })
42
+ ]),
43
+ createElementVNode("div", _hoisted_9, [
44
+ renderSlot(_ctx.$slots, "content", {}, void 0, true)
41
45
  ])
42
46
  ]);
43
47
  };
@@ -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-d9ae22c4"]]);
5
+ const ConferenceMainView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3b59b436"]]);
6
6
  export {
7
7
  ConferenceMainView as default
8
8
  };
@@ -217,6 +217,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
217
217
  roomService.resetStore();
218
218
  }
219
219
  const onVote = (data) => {
220
+ console.log(data, "data222");
220
221
  emit("on-vote", { code: data.visible, message: "vote" });
221
222
  };
222
223
  const onStartRoom = () => {