@ndscnj/roomkit-web-vue3 25.12.24141 → 25.12.24151

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 (46) hide show
  1. package/es/components/RoomFooter/VoteControl/MoreControlH5.vue.d.ts +6 -0
  2. package/es/components/RoomFooter/VoteControl/MoreControlH5.vue.mjs +7 -0
  3. package/es/components/RoomFooter/VoteControl/MoreControlH5.vue2.mjs +105 -0
  4. package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.d.ts +2 -0
  5. package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.mjs +49 -0
  6. package/es/components/RoomFooter/VoteControl/MoreControlPC.vue2.mjs +4 -0
  7. package/es/components/RoomFooter/VoteControl/index.d.ts +6 -0
  8. package/es/components/RoomFooter/VoteControl/index.mjs +7 -0
  9. package/es/components/RoomFooter/VoteControl/useMoreControlHooks.mjs +22 -0
  10. package/es/components/RoomFooter/index/indexPC.vue.mjs +1 -1
  11. package/es/components/RoomFooter/index/indexPC.vue2.mjs +4 -4
  12. package/es/components/RoomVote/index.d.ts +1 -17
  13. package/es/components/RoomVote/indexPC.vue.d.ts +1 -10
  14. package/es/components/RoomVote/indexPC.vue.mjs +1 -1
  15. package/es/components/RoomVote/indexPC.vue2.mjs +1 -5
  16. package/es/index.mjs +53 -25
  17. package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue.d.ts +6 -0
  18. package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue.js +7 -0
  19. package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue2.js +105 -0
  20. package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.d.ts +2 -0
  21. package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.js +49 -0
  22. package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue2.js +4 -0
  23. package/lib/components/RoomFooter/VoteControl/index.d.ts +6 -0
  24. package/lib/components/RoomFooter/VoteControl/index.js +7 -0
  25. package/lib/components/RoomFooter/VoteControl/useMoreControlHooks.js +22 -0
  26. package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
  27. package/lib/components/RoomFooter/index/indexPC.vue2.js +6 -6
  28. package/lib/components/RoomVote/index.d.ts +1 -17
  29. package/lib/components/RoomVote/indexPC.vue.d.ts +1 -10
  30. package/lib/components/RoomVote/indexPC.vue.js +1 -1
  31. package/lib/components/RoomVote/indexPC.vue2.js +0 -4
  32. package/lib/index.js +53 -25
  33. package/package.json +1 -1
  34. package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlH5.vue +122 -0
  35. package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlPC.vue +31 -0
  36. package/src/TUIRoom/components/RoomFooter/VoteControl/index.ts +8 -0
  37. package/src/TUIRoom/components/RoomFooter/VoteControl/useMoreControlHooks.ts +23 -0
  38. package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +1 -1
  39. package/src/TUIRoom/components/RoomFooter/voteControl.vue +1 -13
  40. package/src/TUIRoom/components/RoomVote/indexPC.vue +0 -3
  41. package/es/components/RoomFooter/voteControl.vue.d.ts +0 -15
  42. package/es/components/RoomFooter/voteControl.vue.mjs +0 -7
  43. package/es/components/RoomFooter/voteControl.vue2.mjs +0 -59
  44. package/lib/components/RoomFooter/voteControl.vue.d.ts +0 -15
  45. package/lib/components/RoomFooter/voteControl.vue.js +0 -7
  46. package/lib/components/RoomFooter/voteControl.vue2.js +0 -59
@@ -1,59 +0,0 @@
1
- import { defineComponent, computed, ref, watch, createElementBlock, openBlock, createVNode, createCommentVNode, unref, withCtx, renderSlot } from "vue";
2
- import "../../services/main.mjs";
3
- import { roomService } from "../../services/roomService.mjs";
4
- import { useI18n } from "../../locales/index.mjs";
5
- import "@tencentcloud/tuiroom-engine-js";
6
- import "../../utils/environment.mjs";
7
- import "mitt";
8
- import "../../services/manager/roomActionManager.mjs";
9
- import "@tencentcloud/tui-core";
10
- import IconButton from "../common/base/IconButton.vue.mjs";
11
- import { IconAIIcon } from "@tencentcloud/uikit-base-component-vue3";
12
- const _hoisted_1 = { class: "vote-control-container" };
13
- const _hoisted_2 = {
14
- key: 0,
15
- class: "contact-container"
16
- };
17
- const _sfc_main = /* @__PURE__ */ defineComponent({
18
- __name: "voteControl",
19
- emits: ["on-vote"],
20
- setup(__props, { emit: __emit }) {
21
- const { basicStore } = roomService;
22
- const isSidebarOpen = computed(() => basicStore.isSidebarOpen);
23
- const sidebarName = computed(() => basicStore.sidebarName);
24
- const { t } = useI18n();
25
- const showToolBox = ref(false);
26
- watch(isSidebarOpen, (newValue) => {
27
- showToolBox.value = newValue && false;
28
- });
29
- const emit = __emit;
30
- function toggleToolBox() {
31
- console.log(showToolBox.value, "0000");
32
- showToolBox.value = !showToolBox.value;
33
- emit("on-vote", {
34
- name: "onVote",
35
- visible: showToolBox.value
36
- });
37
- }
38
- return (_ctx, _cache) => {
39
- return openBlock(), createElementBlock("div", _hoisted_1, [
40
- createVNode(IconButton, {
41
- "is-active": sidebarName.value === "vote",
42
- title: unref(t)("Vote"),
43
- onClickIcon: toggleToolBox
44
- }, {
45
- default: withCtx(() => [
46
- createVNode(unref(IconAIIcon), { size: "24" })
47
- ]),
48
- _: 1
49
- }, 8, ["is-active", "title"]),
50
- !isSidebarOpen.value && showToolBox.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
51
- renderSlot(_ctx.$slots, "content", {}, void 0, true)
52
- ])) : createCommentVNode("", true)
53
- ]);
54
- };
55
- }
56
- });
57
- export {
58
- _sfc_main as default
59
- };
@@ -1,15 +0,0 @@
1
- declare function __VLS_template(): {
2
- content?(_: {}): any;
3
- };
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>;
9
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
10
- export default _default;
11
- type __VLS_WithTemplateSlots<T, S> = T & {
12
- new (): {
13
- $slots: S;
14
- };
15
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const voteControl_vue_vue_type_script_setup_true_lang = require("./voteControl.vue2.js");
4
- ;/* empty css */
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-5d452e2c"]]);
7
- exports.default = voteControl;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const Vue = require("vue");
4
- require("../../services/main.js");
5
- const roomService = require("../../services/roomService.js");
6
- const index = require("../../locales/index.js");
7
- require("@tencentcloud/tuiroom-engine-js");
8
- require("../../utils/environment.js");
9
- require("mitt");
10
- require("../../services/manager/roomActionManager.js");
11
- require("@tencentcloud/tui-core");
12
- const IconButton = require("../common/base/IconButton.vue.js");
13
- const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
14
- const _hoisted_1 = { class: "vote-control-container" };
15
- const _hoisted_2 = {
16
- key: 0,
17
- class: "contact-container"
18
- };
19
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
20
- __name: "voteControl",
21
- emits: ["on-vote"],
22
- setup(__props, { emit: __emit }) {
23
- const { basicStore } = roomService.roomService;
24
- const isSidebarOpen = Vue.computed(() => basicStore.isSidebarOpen);
25
- const sidebarName = Vue.computed(() => basicStore.sidebarName);
26
- const { t } = index.useI18n();
27
- const showToolBox = Vue.ref(false);
28
- Vue.watch(isSidebarOpen, (newValue) => {
29
- showToolBox.value = newValue && false;
30
- });
31
- const emit = __emit;
32
- function toggleToolBox() {
33
- console.log(showToolBox.value, "0000");
34
- showToolBox.value = !showToolBox.value;
35
- emit("on-vote", {
36
- name: "onVote",
37
- visible: showToolBox.value
38
- });
39
- }
40
- return (_ctx, _cache) => {
41
- return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
42
- Vue.createVNode(IconButton.default, {
43
- "is-active": sidebarName.value === "vote",
44
- title: Vue.unref(t)("Vote"),
45
- onClickIcon: toggleToolBox
46
- }, {
47
- default: Vue.withCtx(() => [
48
- Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconAIIcon), { size: "24" })
49
- ]),
50
- _: 1
51
- }, 8, ["is-active", "title"]),
52
- !isSidebarOpen.value && showToolBox.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
53
- Vue.renderSlot(_ctx.$slots, "content", {}, void 0, true)
54
- ])) : Vue.createCommentVNode("", true)
55
- ]);
56
- };
57
- }
58
- });
59
- exports.default = _sfc_main;