@mobilon-dev/chotto 0.3.97 → 0.3.98
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.
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +29 -4
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +42 -61
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -38
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -2
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +26 -13
- package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
- package/dist/components/1_icons/CloseIcon.vue.js +16 -10
- package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
- package/dist/components/1_icons/MenuIcon.vue.js +16 -10
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
- package/dist/components/1_icons/SearchIcon.vue.js +29 -17
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
- package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +8 -42
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +61 -4
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +80 -51
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +34 -60
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +39 -33
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +35 -67
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +19 -39
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +250 -4
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +155 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +36 -120
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +75 -4
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +346 -4
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +35 -18
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
- package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +85 -4
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +253 -163
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
- package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +31 -18
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
- package/package.json +1 -1
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { createBlock as i, openBlock as
|
|
1
|
+
import { createBlock as i, openBlock as n, Transition as p, withCtx as m, withDirectives as _, createElementVNode as r, renderSlot as u, vShow as f } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
class: "modal",
|
|
6
|
-
role: "dialog",
|
|
7
|
-
"aria-labelledby": "modalTitle",
|
|
8
|
-
"aria-describedby": "modalDescription"
|
|
9
|
-
}, h = {
|
|
3
|
+
import h from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const b = {
|
|
10
5
|
__name: "ModalNoFooter",
|
|
11
6
|
props: {
|
|
12
7
|
theme: {
|
|
@@ -16,28 +11,42 @@ const f = ["data-theme"], u = {
|
|
|
16
11
|
}
|
|
17
12
|
},
|
|
18
13
|
emits: ["close"],
|
|
19
|
-
setup(o, {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
n(t("div", {
|
|
26
|
-
"data-theme": o.theme,
|
|
27
|
-
class: "modal-backdrop",
|
|
28
|
-
onClick: s
|
|
29
|
-
}, [
|
|
30
|
-
t("div", u, [
|
|
31
|
-
m(e.$slots, "default", {}, void 0, !0)
|
|
32
|
-
])
|
|
33
|
-
], 8, f), [
|
|
34
|
-
[p, !0]
|
|
35
|
-
])
|
|
36
|
-
]),
|
|
37
|
-
_: 3
|
|
38
|
-
}));
|
|
14
|
+
setup(o, { expose: a, emit: t }) {
|
|
15
|
+
a();
|
|
16
|
+
const e = t, s = { emit: e, props: o, closeModalOutside: (c) => {
|
|
17
|
+
c.target.classList.contains("modal-backdrop") && e("close");
|
|
18
|
+
} };
|
|
19
|
+
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
39
20
|
}
|
|
40
|
-
},
|
|
21
|
+
}, v = ["data-theme"], M = {
|
|
22
|
+
class: "modal",
|
|
23
|
+
role: "dialog",
|
|
24
|
+
"aria-labelledby": "modalTitle",
|
|
25
|
+
"aria-describedby": "modalDescription"
|
|
26
|
+
};
|
|
27
|
+
function k(o, a, t, e, d, l) {
|
|
28
|
+
return n(), i(p, {
|
|
29
|
+
name: "modal-fade",
|
|
30
|
+
persisted: ""
|
|
31
|
+
}, {
|
|
32
|
+
default: m(() => [
|
|
33
|
+
_(r("div", {
|
|
34
|
+
"data-theme": t.theme,
|
|
35
|
+
class: "modal-backdrop",
|
|
36
|
+
onClick: e.closeModalOutside
|
|
37
|
+
}, [
|
|
38
|
+
r("div", M, [
|
|
39
|
+
u(o.$slots, "default", {}, void 0, !0)
|
|
40
|
+
])
|
|
41
|
+
], 8, v), [
|
|
42
|
+
[f, !0]
|
|
43
|
+
])
|
|
44
|
+
]),
|
|
45
|
+
_: 3
|
|
46
|
+
/* FORWARDED */
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
const y = /* @__PURE__ */ h(b, [["render", k], ["__scopeId", "data-v-a54b1abe"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/ModalNoFooter/ModalNoFooter.vue"]]);
|
|
41
50
|
export {
|
|
42
|
-
|
|
51
|
+
y as default
|
|
43
52
|
};
|
|
@@ -1,7 +1,158 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l from "./ModalVideoRecorder.vue2.js";
|
|
2
|
+
import { createElementBlock as i, openBlock as d, Fragment as a, createElementVNode as e, withDirectives as t, vShow as s, createCommentVNode as c, normalizeClass as n, toDisplayString as v } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = { class: "video-recorder__header" }, p = {
|
|
6
|
+
ref: "refVideo",
|
|
7
|
+
class: "video-recorder__view-area"
|
|
8
|
+
}, R = {
|
|
9
|
+
ref: "refRecord",
|
|
10
|
+
class: "video-recorder__view-area",
|
|
11
|
+
controls: ""
|
|
12
|
+
}, f = { class: "video-recorder__controls" }, b = { class: "video-recorder__recording-container" }, g = { class: "video-recorder__recording-time" };
|
|
13
|
+
function u(k, r, V, o, C, L) {
|
|
14
|
+
return d(), i(
|
|
15
|
+
a,
|
|
16
|
+
null,
|
|
17
|
+
[
|
|
18
|
+
e("div", m, [
|
|
19
|
+
e("button", {
|
|
20
|
+
class: "video-recorder__button video-recorder__button-close",
|
|
21
|
+
onClick: r[0] || (r[0] = (U) => o.emit("close"))
|
|
22
|
+
}, [...r[1] || (r[1] = [
|
|
23
|
+
e(
|
|
24
|
+
"span",
|
|
25
|
+
{ class: "pi pi-times" },
|
|
26
|
+
null,
|
|
27
|
+
-1
|
|
28
|
+
/* CACHED */
|
|
29
|
+
)
|
|
30
|
+
])])
|
|
31
|
+
]),
|
|
32
|
+
e("div", null, [
|
|
33
|
+
t(e(
|
|
34
|
+
"video",
|
|
35
|
+
p,
|
|
36
|
+
null,
|
|
37
|
+
512
|
|
38
|
+
/* NEED_PATCH */
|
|
39
|
+
), [
|
|
40
|
+
[s, !o.videoURL]
|
|
41
|
+
]),
|
|
42
|
+
t(e(
|
|
43
|
+
"video",
|
|
44
|
+
R,
|
|
45
|
+
null,
|
|
46
|
+
512
|
|
47
|
+
/* NEED_PATCH */
|
|
48
|
+
), [
|
|
49
|
+
[s, o.videoURL]
|
|
50
|
+
]),
|
|
51
|
+
e("div", f, [
|
|
52
|
+
e("div", b, [
|
|
53
|
+
!o.videoRecording && !o.videoURL ? (d(), i("button", {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "video-recorder__button",
|
|
56
|
+
onClick: o.changeRecordSource
|
|
57
|
+
}, [
|
|
58
|
+
e(
|
|
59
|
+
"span",
|
|
60
|
+
{
|
|
61
|
+
class: n({
|
|
62
|
+
"pi pi-desktop": o.recordSource == "camera",
|
|
63
|
+
"pi pi-camera": o.recordSource == "screen"
|
|
64
|
+
})
|
|
65
|
+
},
|
|
66
|
+
null,
|
|
67
|
+
2
|
|
68
|
+
/* CLASS */
|
|
69
|
+
)
|
|
70
|
+
])) : c("v-if", !0),
|
|
71
|
+
o.videoURL ? c("v-if", !0) : (d(), i(
|
|
72
|
+
"button",
|
|
73
|
+
{
|
|
74
|
+
key: 1,
|
|
75
|
+
class: n(["video-recorder__button", { "video-recorder__recording-button": o.videoRecording }]),
|
|
76
|
+
onClick: o.startVideoRecording
|
|
77
|
+
},
|
|
78
|
+
[
|
|
79
|
+
e(
|
|
80
|
+
"span",
|
|
81
|
+
{
|
|
82
|
+
class: n(["pi", {
|
|
83
|
+
"pi-circle-fill video-recorder__recording-icon": o.videoRecording,
|
|
84
|
+
"pi-video": !o.videoRecording
|
|
85
|
+
}])
|
|
86
|
+
},
|
|
87
|
+
null,
|
|
88
|
+
2
|
|
89
|
+
/* CLASS */
|
|
90
|
+
)
|
|
91
|
+
],
|
|
92
|
+
2
|
|
93
|
+
/* CLASS */
|
|
94
|
+
)),
|
|
95
|
+
!o.videoRecording && o.videoURL ? (d(), i("button", {
|
|
96
|
+
key: 2,
|
|
97
|
+
class: "video-recorder__button",
|
|
98
|
+
onClick: o.cancelVideoRecording
|
|
99
|
+
}, [...r[2] || (r[2] = [
|
|
100
|
+
e(
|
|
101
|
+
"span",
|
|
102
|
+
{ class: "pi pi-trash" },
|
|
103
|
+
null,
|
|
104
|
+
-1
|
|
105
|
+
/* CACHED */
|
|
106
|
+
)
|
|
107
|
+
])])) : c("v-if", !0),
|
|
108
|
+
o.videoRecording ? (d(), i("button", {
|
|
109
|
+
key: 3,
|
|
110
|
+
class: "video-recorder__button",
|
|
111
|
+
onClick: o.stopVideoRecording
|
|
112
|
+
}, [
|
|
113
|
+
c('span class="pi pi-stop" /'),
|
|
114
|
+
r[3] || (r[3] = e(
|
|
115
|
+
"div",
|
|
116
|
+
{ class: "video-recorder__stop" },
|
|
117
|
+
null,
|
|
118
|
+
-1
|
|
119
|
+
/* CACHED */
|
|
120
|
+
))
|
|
121
|
+
])) : c("v-if", !0),
|
|
122
|
+
e(
|
|
123
|
+
"span",
|
|
124
|
+
g,
|
|
125
|
+
v(o.elapsedTime),
|
|
126
|
+
1
|
|
127
|
+
/* TEXT */
|
|
128
|
+
)
|
|
129
|
+
]),
|
|
130
|
+
e(
|
|
131
|
+
"button",
|
|
132
|
+
{
|
|
133
|
+
class: n(["video-recorder__button", { "video-recorder__button-disabled": !o.videoURL }]),
|
|
134
|
+
onClick: o.saveRecordedVideo
|
|
135
|
+
},
|
|
136
|
+
[...r[4] || (r[4] = [
|
|
137
|
+
e(
|
|
138
|
+
"span",
|
|
139
|
+
{ class: "video-recorder__save-button" },
|
|
140
|
+
" Прикрепить видео ",
|
|
141
|
+
-1
|
|
142
|
+
/* CACHED */
|
|
143
|
+
)
|
|
144
|
+
])],
|
|
145
|
+
2
|
|
146
|
+
/* CLASS */
|
|
147
|
+
)
|
|
148
|
+
])
|
|
149
|
+
])
|
|
150
|
+
],
|
|
151
|
+
64
|
|
152
|
+
/* STABLE_FRAGMENT */
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
const x = /* @__PURE__ */ _(l, [["render", u], ["__scopeId", "data-v-f7244f75"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue"]]);
|
|
5
156
|
export {
|
|
6
|
-
|
|
157
|
+
x as default
|
|
7
158
|
};
|
|
@@ -1,142 +1,70 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { safeMediaPlayVoid as
|
|
1
|
+
import { defineComponent as F, ref as a, computed as k, onMounted as C, nextTick as P, unref as y } from "vue";
|
|
2
|
+
import { safeMediaPlayVoid as S } from "../../../functions/safeMediaPlay.js";
|
|
3
3
|
import "../../../functions/parseMarkdown.js";
|
|
4
|
-
const
|
|
4
|
+
const G = /* @__PURE__ */ F({
|
|
5
5
|
__name: "ModalVideoRecorder",
|
|
6
6
|
emits: ["change", "submit", "close"],
|
|
7
|
-
setup(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
setup(q, { expose: L, emit: O }) {
|
|
8
|
+
L();
|
|
9
|
+
const _ = a(), l = a(0), u = a(0), o = a(0), n = a(0), j = k(() => {
|
|
10
|
+
let e = n.value < 10 ? "0" + n.value : n.value, t = o.value < 10 ? "0" + o.value : o.value, v = u.value < 10 ? "0" + u.value : u.value, E = l.value < 10 ? "00" + l.value : l.value < 100 ? "0" + l.value : l.value;
|
|
11
|
+
return r.value ? e + ":" + t + ":" + v + ":" + E : " ";
|
|
12
|
+
}), i = a(), h = a(), r = a(!1), s = a(), c = a(), m = a([]), f = a(), p = a(), d = a("camera"), I = () => {
|
|
13
|
+
d.value == "camera" ? (d.value = "screen", M()) : d.value == "screen" && (g(), d.value = "camera", R());
|
|
13
14
|
}, T = async () => {
|
|
14
|
-
!
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
|
|
15
|
+
!r.value && c.value instanceof MediaStream && (s.value = new MediaRecorder(c.value), s.value.start(), s.value.ondataavailable = (e) => {
|
|
16
|
+
m.value.push(e.data);
|
|
17
|
+
}, r.value = !0, _.value = setInterval(() => {
|
|
18
|
+
l.value += 10, l.value == 1e3 && (l.value = 0, u.value++, u.value == 60 && (u.value = 0, o.value++, o.value == 60 && (o.value = 0, n.value++)));
|
|
18
19
|
}, 10));
|
|
19
20
|
}, U = async () => {
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
V(), g(), f.value && (f.value = void 0, await R());
|
|
22
|
+
}, x = () => {
|
|
23
|
+
s.value && (s.value.stop(), s.value.onstop = async () => {
|
|
24
|
+
p.value = new File(m.value, "videomessage.mp4", { type: "video/*" });
|
|
25
|
+
const e = URL.createObjectURL(p.value);
|
|
26
|
+
f.value = e, P(() => {
|
|
27
|
+
h.value && (h.value.src = e);
|
|
27
28
|
});
|
|
28
|
-
}),
|
|
29
|
+
}), V(), g();
|
|
29
30
|
};
|
|
30
|
-
function
|
|
31
|
-
var
|
|
32
|
-
let
|
|
33
|
-
|
|
31
|
+
function g() {
|
|
32
|
+
var t;
|
|
33
|
+
let e = (t = c.value) == null ? void 0 : t.getTracks();
|
|
34
|
+
e == null || e.forEach((v) => v.stop());
|
|
34
35
|
}
|
|
35
|
-
const
|
|
36
|
-
clearInterval(
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
await navigator.mediaDevices.getUserMedia({ audio: !0, video: !0 }).then((
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}),
|
|
36
|
+
const V = () => {
|
|
37
|
+
clearInterval(_.value), l.value = 0, u.value = 0, o.value = 0, n.value = 0, r.value = !1, s.value = void 0, m.value = [];
|
|
38
|
+
}, b = O, D = () => {
|
|
39
|
+
b("change", { videoFile: p.value }), b("submit");
|
|
40
|
+
}, R = async () => {
|
|
41
|
+
await navigator.mediaDevices.getUserMedia({ audio: !0, video: !0 }).then((e) => {
|
|
42
|
+
const t = y(i.value);
|
|
43
|
+
c.value = e, t.srcObject = e, t.addEventListener("loadedmetadata", () => {
|
|
44
|
+
S(y(i.value));
|
|
45
|
+
}), t.muted = !0;
|
|
45
46
|
});
|
|
46
|
-
},
|
|
47
|
-
const
|
|
47
|
+
}, M = async () => {
|
|
48
|
+
const e = {
|
|
48
49
|
video: {
|
|
49
50
|
cursor: "always"
|
|
50
51
|
},
|
|
51
52
|
audio: !1
|
|
52
53
|
};
|
|
53
|
-
await navigator.mediaDevices.getDisplayMedia(
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}),
|
|
54
|
+
await navigator.mediaDevices.getDisplayMedia(e).then((t) => {
|
|
55
|
+
const v = y(i.value);
|
|
56
|
+
c.value = t, v.srcObject = t, v.addEventListener("loadedmetadata", () => {
|
|
57
|
+
S(y(i.value));
|
|
58
|
+
}), v.muted = !0;
|
|
58
59
|
});
|
|
59
60
|
};
|
|
60
|
-
|
|
61
|
-
await
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
class: "video-recorder__button video-recorder__button-close",
|
|
66
|
-
onClick: e[0] || (e[0] = (i) => C("close"))
|
|
67
|
-
}, [...e[1] || (e[1] = [
|
|
68
|
-
o("span", { class: "pi pi-times" }, null, -1)
|
|
69
|
-
])])
|
|
70
|
-
]),
|
|
71
|
-
o("div", null, [
|
|
72
|
-
D(o("video", {
|
|
73
|
-
ref_key: "refVideo",
|
|
74
|
-
ref: m,
|
|
75
|
-
class: "video-recorder__view-area"
|
|
76
|
-
}, null, 512), [
|
|
77
|
-
[E, !s.value]
|
|
78
|
-
]),
|
|
79
|
-
D(o("video", {
|
|
80
|
-
ref_key: "refRecord",
|
|
81
|
-
ref: k,
|
|
82
|
-
class: "video-recorder__view-area",
|
|
83
|
-
controls: ""
|
|
84
|
-
}, null, 512), [
|
|
85
|
-
[E, s.value]
|
|
86
|
-
]),
|
|
87
|
-
o("div", J, [
|
|
88
|
-
o("div", K, [
|
|
89
|
-
!t.value && !s.value ? (f(), _("button", {
|
|
90
|
-
key: 0,
|
|
91
|
-
class: "video-recorder__button",
|
|
92
|
-
onClick: O
|
|
93
|
-
}, [
|
|
94
|
-
o("span", {
|
|
95
|
-
class: g({
|
|
96
|
-
"pi pi-desktop": c.value == "camera",
|
|
97
|
-
"pi pi-camera": c.value == "screen"
|
|
98
|
-
})
|
|
99
|
-
}, null, 2)
|
|
100
|
-
])) : b("", !0),
|
|
101
|
-
s.value ? b("", !0) : (f(), _("button", {
|
|
102
|
-
key: 1,
|
|
103
|
-
class: g(["video-recorder__button", { "video-recorder__recording-button": t.value }]),
|
|
104
|
-
onClick: T
|
|
105
|
-
}, [
|
|
106
|
-
o("span", {
|
|
107
|
-
class: g(["pi", {
|
|
108
|
-
"pi-circle-fill video-recorder__recording-icon": t.value,
|
|
109
|
-
"pi-video": !t.value
|
|
110
|
-
}])
|
|
111
|
-
}, null, 2)
|
|
112
|
-
], 2)),
|
|
113
|
-
!t.value && s.value ? (f(), _("button", {
|
|
114
|
-
key: 2,
|
|
115
|
-
class: "video-recorder__button",
|
|
116
|
-
onClick: U
|
|
117
|
-
}, [...e[2] || (e[2] = [
|
|
118
|
-
o("span", { class: "pi pi-trash" }, null, -1)
|
|
119
|
-
])])) : b("", !0),
|
|
120
|
-
t.value ? (f(), _("button", {
|
|
121
|
-
key: 3,
|
|
122
|
-
class: "video-recorder__button",
|
|
123
|
-
onClick: j
|
|
124
|
-
}, [...e[3] || (e[3] = [
|
|
125
|
-
o("div", { class: "video-recorder__stop" }, null, -1)
|
|
126
|
-
])])) : b("", !0),
|
|
127
|
-
o("span", Q, A(I.value), 1)
|
|
128
|
-
]),
|
|
129
|
-
o("button", {
|
|
130
|
-
class: g(["video-recorder__button", { "video-recorder__button-disabled": !s.value }]),
|
|
131
|
-
onClick: x
|
|
132
|
-
}, [...e[4] || (e[4] = [
|
|
133
|
-
o("span", { class: "video-recorder__save-button" }, " Прикрепить видео ", -1)
|
|
134
|
-
])], 2)
|
|
135
|
-
])
|
|
136
|
-
])
|
|
137
|
-
], 64));
|
|
61
|
+
C(async () => {
|
|
62
|
+
await R();
|
|
63
|
+
});
|
|
64
|
+
const w = { timer: _, ms: l, s: u, m: o, h: n, elapsedTime: j, refVideo: i, refRecord: h, videoRecording: r, mediaRecorder: s, stream: c, chunks: m, videoURL: f, videoFile: p, recordSource: d, changeRecordSource: I, startVideoRecording: T, cancelVideoRecording: U, stopVideoRecording: x, stopCapture: g, clearTemp: V, emit: b, saveRecordedVideo: D, runIdleVideo: R, runIdleScreenVideo: M };
|
|
65
|
+
return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
|
|
138
66
|
}
|
|
139
67
|
});
|
|
140
68
|
export {
|
|
141
|
-
|
|
69
|
+
G as default
|
|
142
70
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as c, openBlock as l, createCommentVNode as v, createElementVNode as t, toDisplayString as f, Fragment as h, renderList as k, withDirectives as y, vModelCheckbox as C, ref as m } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "new-chat-modal"
|
|
7
|
-
}, w = { class: "modal-content" }, S = { class: "participant-list" }, U = ["id", "value"], V = ["for"], g = {
|
|
3
|
+
import S from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const U = {
|
|
8
5
|
__name: "SelectUser",
|
|
9
6
|
props: {
|
|
10
7
|
users: {
|
|
@@ -17,47 +14,67 @@ const I = {
|
|
|
17
14
|
}
|
|
18
15
|
},
|
|
19
16
|
emits: ["confirm", "close"],
|
|
20
|
-
setup(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
17
|
+
setup(_, { expose: s, emit: n }) {
|
|
18
|
+
s();
|
|
19
|
+
const o = _, a = m(!0), r = m([]), e = n, i = async () => {
|
|
20
|
+
e("confirm", r.value), d(), u();
|
|
21
|
+
}, d = () => {
|
|
22
|
+
e("close"), a.value = !1;
|
|
23
|
+
}, u = () => {
|
|
24
|
+
r.value = [];
|
|
25
|
+
}, p = { props: o, showModal: a, selectedUsers: r, emit: e, onConfirm: i, closeModal: d, resetValues: u, onCancel: () => {
|
|
26
|
+
d(), u();
|
|
27
|
+
}, ref: m };
|
|
28
|
+
return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
|
|
29
|
+
}
|
|
30
|
+
}, b = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "new-chat-modal"
|
|
33
|
+
}, x = { class: "modal-content" }, w = { class: "participant-list" }, I = ["id", "value"], M = ["for"];
|
|
34
|
+
function V(_, s, n, o, a, r) {
|
|
35
|
+
return l(), c("div", null, [
|
|
36
|
+
o.showModal ? (l(), c("div", b, [
|
|
37
|
+
t("div", x, [
|
|
38
|
+
t(
|
|
39
|
+
"h2",
|
|
40
|
+
null,
|
|
41
|
+
f(n.title),
|
|
42
|
+
1
|
|
43
|
+
/* TEXT */
|
|
44
|
+
),
|
|
45
|
+
t("div", w, [
|
|
46
|
+
(l(!0), c(
|
|
47
|
+
h,
|
|
48
|
+
null,
|
|
49
|
+
k(n.users, (e) => (l(), c("div", {
|
|
50
|
+
key: e.userId,
|
|
37
51
|
class: "participant-item"
|
|
38
52
|
}, [
|
|
39
|
-
|
|
40
|
-
id:
|
|
41
|
-
"onUpdate:modelValue":
|
|
53
|
+
y(t("input", {
|
|
54
|
+
id: e.userId,
|
|
55
|
+
"onUpdate:modelValue": s[0] || (s[0] = (i) => o.selectedUsers = i),
|
|
42
56
|
type: "checkbox",
|
|
43
|
-
value:
|
|
44
|
-
}, null, 8,
|
|
45
|
-
[
|
|
57
|
+
value: e.userId
|
|
58
|
+
}, null, 8, I), [
|
|
59
|
+
[C, o.selectedUsers]
|
|
46
60
|
]),
|
|
47
|
-
|
|
48
|
-
for:
|
|
49
|
-
},
|
|
50
|
-
]))),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
t("label", {
|
|
62
|
+
for: e.userId
|
|
63
|
+
}, f(e.name || "unknown username"), 9, M)
|
|
64
|
+
]))),
|
|
65
|
+
128
|
|
66
|
+
/* KEYED_FRAGMENT */
|
|
67
|
+
))
|
|
68
|
+
]),
|
|
69
|
+
t("div", { class: "modal-actions" }, [
|
|
70
|
+
t("button", { onClick: o.onConfirm }, " ОК "),
|
|
71
|
+
t("button", { onClick: o.onCancel }, " Отмена ")
|
|
56
72
|
])
|
|
57
|
-
])
|
|
58
|
-
]))
|
|
59
|
-
|
|
60
|
-
}
|
|
73
|
+
])
|
|
74
|
+
])) : v("v-if", !0)
|
|
75
|
+
]);
|
|
76
|
+
}
|
|
77
|
+
const D = /* @__PURE__ */ S(U, [["render", V], ["__scopeId", "data-v-afe2ae62"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/SelectUser/SelectUser.vue"]]);
|
|
61
78
|
export {
|
|
62
|
-
|
|
79
|
+
D as default
|
|
63
80
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as i, openBlock as a, createElementVNode as n, toDisplayString as u, Fragment as _, renderList as m, withDirectives as h, vModelCheckbox as f, ref as p } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const g = {
|
|
3
|
+
import v from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const g = {
|
|
5
5
|
__name: "SelectUser2",
|
|
6
6
|
props: {
|
|
7
7
|
users: {
|
|
@@ -14,34 +14,51 @@ const g = { class: "participant-list" }, k = ["id", "value"], y = ["for"], b = {
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
emits: ["change"],
|
|
17
|
-
setup(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
setup(d, { expose: r, emit: s }) {
|
|
18
|
+
r();
|
|
19
|
+
const t = d, c = p([]), l = s, o = { props: t, selectedUsers: c, emit: l, onChange: () => {
|
|
20
|
+
console.log("check"), l("change", { selectedUsers: c.value });
|
|
21
|
+
}, ref: p };
|
|
22
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
23
|
+
}
|
|
24
|
+
}, U = { class: "participant-list" }, S = ["id", "value"], k = ["for"];
|
|
25
|
+
function y(d, r, s, t, c, l) {
|
|
26
|
+
return a(), i("div", null, [
|
|
27
|
+
n(
|
|
28
|
+
"h2",
|
|
29
|
+
null,
|
|
30
|
+
u(s.title),
|
|
31
|
+
1
|
|
32
|
+
/* TEXT */
|
|
33
|
+
),
|
|
34
|
+
n("div", U, [
|
|
35
|
+
(a(!0), i(
|
|
36
|
+
_,
|
|
37
|
+
null,
|
|
38
|
+
m(s.users, (e) => (a(), i("div", {
|
|
25
39
|
key: e.userId,
|
|
26
40
|
class: "participant-item"
|
|
27
41
|
}, [
|
|
28
|
-
h(
|
|
42
|
+
h(n("input", {
|
|
29
43
|
id: e.userId,
|
|
30
|
-
"onUpdate:modelValue":
|
|
44
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => t.selectedUsers = o),
|
|
31
45
|
type: "checkbox",
|
|
32
46
|
value: e.userId,
|
|
33
|
-
onChange:
|
|
34
|
-
}, null, 40,
|
|
35
|
-
[
|
|
47
|
+
onChange: t.onChange
|
|
48
|
+
}, null, 40, S), [
|
|
49
|
+
[f, t.selectedUsers]
|
|
36
50
|
]),
|
|
37
|
-
|
|
51
|
+
n("label", {
|
|
38
52
|
for: e.userId
|
|
39
|
-
},
|
|
40
|
-
]))),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
53
|
+
}, u(e.name || "unknown username"), 9, k)
|
|
54
|
+
]))),
|
|
55
|
+
128
|
|
56
|
+
/* KEYED_FRAGMENT */
|
|
57
|
+
))
|
|
58
|
+
])
|
|
59
|
+
]);
|
|
60
|
+
}
|
|
61
|
+
const I = /* @__PURE__ */ v(g, [["render", y], ["__scopeId", "data-v-361b37cc"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/SelectUser2/SelectUser2.vue"]]);
|
|
45
62
|
export {
|
|
46
|
-
|
|
63
|
+
I as default
|
|
47
64
|
};
|