@cometchat/chat-uikit-angular 4.0.0-beta.1
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/Calls/CallingExtension.d.ts +5 -0
- package/Calls/CallingExtensionDecorator.d.ts +17 -0
- package/Calls/CometChatCallButtons/cometchat-call-buttons/cometchat-call-buttons.component.d.ts +75 -0
- package/Calls/CometChatCallButtons/cometchat-call-buttons.module.d.ts +11 -0
- package/Calls/CometChatIncomingCall/cometchat-incoming-call/cometchat-incoming-call.component.d.ts +80 -0
- package/Calls/CometChatIncomingCall/cometchat-incoming-call.module.d.ts +11 -0
- package/Calls/CometChatOngoingCall/cometchat-ongoing-call/cometchat-ongoing-call.component.d.ts +26 -0
- package/Calls/CometChatOngoingCall/cometchat-ongoing-call.module.d.ts +9 -0
- package/Calls/CometChatOutgoingCall/cometchat-outgoing-call/cometchat-outgoing-call.component.d.ts +58 -0
- package/Calls/CometChatOutgoingCall/cometchat-outgoing-call.module.d.ts +10 -0
- package/CometChatAddMembers/cometchat-add-members/cometchat-add-members.component.d.ts +109 -0
- package/CometChatAddMembers/cometchat-add-members.module.d.ts +12 -0
- package/CometChatBannedMembers/cometchat-banned-members/cometchat-banned-members.component.d.ts +140 -0
- package/CometChatBannedMembers/cometchat-banned-members.module.d.ts +13 -0
- package/CometChatConversations/cometchat-conversations/cometchat-conversations.component.d.ts +335 -0
- package/CometChatConversations/cometchat-conversations.module.d.ts +10 -0
- package/CometChatConversationsWithMessages/cometchat-conversations-with-messages/cometchat-conversations-with-messages.component.d.ts +86 -0
- package/CometChatConversationsWithMessages/cometchat-conversations-with-messages.module.d.ts +12 -0
- package/CometChatDetails/cometchat-details/cometchat-details.component.d.ts +149 -0
- package/CometChatDetails/cometchat-details.module.d.ts +12 -0
- package/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.d.ts +145 -0
- package/CometChatGroupMembers/cometchat-group-members.module.d.ts +13 -0
- package/CometChatGroups/cometchat-groups/cometchat-groups.component.d.ts +136 -0
- package/CometChatGroups/cometchat-groups.module.d.ts +10 -0
- package/CometChatGroupsWithMessages/cometchat-groups-with-messages/cometchat-groups-with-messages.component.d.ts +100 -0
- package/CometChatGroupsWithMessages/cometchat-groups-with-messages.module.d.ts +13 -0
- package/CometChatList/cometchat-list.component.d.ts +87 -0
- package/CometChatList/cometchat-list.module.d.ts +10 -0
- package/CometChatMessageBubble/cometchat-message-bubble/cometchat-message-bubble.component.d.ts +62 -0
- package/CometChatMessageBubble/cometchat-message-bubble.module.d.ts +8 -0
- package/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.d.ts +165 -0
- package/CometChatMessageComposer/cometchat-message-composer.module.d.ts +9 -0
- package/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.d.ts +85 -0
- package/CometChatMessageHeader/cometchat-message-header.module.d.ts +9 -0
- package/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.d.ts +510 -0
- package/CometChatMessageList/cometchat-message-list.module.d.ts +11 -0
- package/CometChatMessages/cometchat-messages/cometchat-messages.component.d.ts +136 -0
- package/CometChatMessages/cometchat-messages.module.d.ts +15 -0
- package/CometChatTheme.service.d.ts +7 -0
- package/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.d.ts +73 -0
- package/CometChatThreadedMessages/cometchat-threaded-messages.module.d.ts +12 -0
- package/CometChatTransferOwnership/cometchat-transfer-ownership/cometchat-transfer-ownership.component.d.ts +88 -0
- package/CometChatTransferOwnership/cometchat-transfer-ownership.module.d.ts +10 -0
- package/CometChatUsers/cometchat-users/cometchat-users.component.d.ts +105 -0
- package/CometChatUsers/cometchat-users.module.d.ts +11 -0
- package/CometChatUsersWithMessages/cometchat-users-with-messages/cometchat-users-with-messages.component.d.ts +71 -0
- package/CometChatUsersWithMessages/cometchat-users-with-messages.module.d.ts +12 -0
- package/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +9 -0
- package/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +17 -0
- package/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +9 -0
- package/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +17 -0
- package/Extensions/ImageModeration/ImageModerationExtension.d.ts +5 -0
- package/Extensions/ImageModeration/ImageModerationExtensionDecorator.d.ts +6 -0
- package/Extensions/LinkPreviewExtension/LinkPreviewExtension.d.ts +5 -0
- package/Extensions/LinkPreviewExtension/LinkPreviewExtensionDecorator.d.ts +6 -0
- package/Extensions/MessageTranslation/MessageTranslationExtension.d.ts +9 -0
- package/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +12 -0
- package/Extensions/PollsExtension/PollsExtension.d.ts +5 -0
- package/Extensions/PollsExtension/PollsExtensionDecorator.d.ts +15 -0
- package/Extensions/Reactions/ReactionExtension.d.ts +5 -0
- package/Extensions/Reactions/ReactionExtensionDecorator.d.ts +10 -0
- package/Extensions/SmartReplies/SmartRepliesExtension.d.ts +9 -0
- package/Extensions/SmartReplies/SmartRepliesExtensionDecorator.d.ts +16 -0
- package/Extensions/Stickers/StickersExtension.d.ts +9 -0
- package/Extensions/Stickers/StickersExtensionDecorator.d.ts +27 -0
- package/Extensions/TextModerator/TextModeratorExtension.d.ts +5 -0
- package/Extensions/TextModerator/TextModeratorExtensionDecorator.d.ts +9 -0
- package/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +5 -0
- package/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +6 -0
- package/README.md +60 -0
- package/Shared/CometChatUIkit/CometChatUIKit.d.ts +18 -0
- package/Shared/Framework/ChatConfigurator.d.ts +8 -0
- package/Shared/Framework/DataSource.d.ts +29 -0
- package/Shared/Framework/DataSourceDecorator.d.ts +32 -0
- package/Shared/Framework/ExtensionDataSource.d.ts +3 -0
- package/Shared/Utils/MessageUtils.d.ts +43 -0
- package/assets/.gitkeep +0 -0
- package/assets/Audio-Call.svg +11 -0
- package/assets/Audio-Call2x.svg +11 -0
- package/assets/Copy.svg +17 -0
- package/assets/Grid-layout.svg +1 -0
- package/assets/Heart.svg +11 -0
- package/assets/Imagemoderation.svg +14 -0
- package/assets/Info.svg +13 -0
- package/assets/Locked.svg +10 -0
- package/assets/More@2x.svg +9 -0
- package/assets/Plus.svg +13 -0
- package/assets/Private.svg +10 -0
- package/assets/Reactionsicon.svg +9 -0
- package/assets/Send.svg +12 -0
- package/assets/Spinner.svg +15 -0
- package/assets/Stickers.svg +16 -0
- package/assets/Stipop.svg +9 -0
- package/assets/Video-call.svg +12 -0
- package/assets/Video-call2x.svg +12 -0
- package/assets/activity.svg +22 -0
- package/assets/addreaction.svg +9 -0
- package/assets/animals.svg +15 -0
- package/assets/attachment-file.svg +14 -0
- package/assets/audio-file.svg +12 -0
- package/assets/back.png +0 -0
- package/assets/backbutton.svg +12 -0
- package/assets/call.svg +1 -0
- package/assets/chats.svg +1 -0
- package/assets/checkmark.svg +11 -0
- package/assets/close.svg +12 -0
- package/assets/close2x.svg +12 -0
- package/assets/collaborativedocument.svg +13 -0
- package/assets/collaborativewhiteboard.svg +12 -0
- package/assets/create-button.svg +12 -0
- package/assets/declaration.d.ts +3 -0
- package/assets/delete.svg +7 -0
- package/assets/deleteicon.svg +15 -0
- package/assets/down-arrow.svg +1 -0
- package/assets/download.svg +13 -0
- package/assets/editicon.svg +14 -0
- package/assets/emoji.svg +2693 -0
- package/assets/file-upload.svg +2693 -0
- package/assets/flags.svg +12 -0
- package/assets/food.svg +26 -0
- package/assets/group.svg +40 -0
- package/assets/heart-reaction.png +0 -0
- package/assets/heart.png +0 -0
- package/assets/image.svg +2693 -0
- package/assets/incomingcall.wav +0 -0
- package/assets/increase-size.svg +6 -0
- package/assets/location.svg +2693 -0
- package/assets/message-delivered.png +0 -0
- package/assets/message-delivered.svg +4 -0
- package/assets/message-read.png +0 -0
- package/assets/message-read.svg +4 -0
- package/assets/message-sent.png +0 -0
- package/assets/message-sent.svg +3 -0
- package/assets/moreicon.svg +9 -0
- package/assets/objects.svg +13 -0
- package/assets/open-thread.svg +11 -0
- package/assets/password-protected-group.svg +3 -0
- package/assets/photolibrary.svg +11 -0
- package/assets/placeholder.png +0 -0
- package/assets/plus-rotated.svg +13 -0
- package/assets/polls.svg +14 -0
- package/assets/privacy.svg +4 -0
- package/assets/private-group.svg +9 -0
- package/assets/public.svg +3 -0
- package/assets/reduce-size.svg +6 -0
- package/assets/right-arrow.svg +6 -0
- package/assets/search.png +0 -0
- package/assets/search.svg +4 -0
- package/assets/side-arrow.svg +1 -0
- package/assets/smileys.svg +16 -0
- package/assets/start-chat.svg +1 -0
- package/assets/symbols.svg +16 -0
- package/assets/thread-arrow.svg +1 -0
- package/assets/thread-icon.svg +38 -0
- package/assets/threadicon.svg +14 -0
- package/assets/translation.svg +16 -0
- package/assets/travel.svg +18 -0
- package/assets/unsafe-content.svg +23 -0
- package/assets/user.svg +31 -0
- package/assets/video-upload.svg +2693 -0
- package/assets/video.svg +12 -0
- package/assets/wait.png +0 -0
- package/assets/wait.svg +4 -0
- package/assets/warning-small.png +0 -0
- package/assets/warning-small.svg +5 -0
- package/cometchat-chat-uikit-angular.d.ts +5 -0
- package/esm2020/Calls/CallingExtension.mjs +11 -0
- package/esm2020/Calls/CallingExtensionDecorator.mjs +114 -0
- package/esm2020/Calls/CometChatCallButtons/cometchat-call-buttons/cometchat-call-buttons.component.mjs +358 -0
- package/esm2020/Calls/CometChatCallButtons/cometchat-call-buttons.module.mjs +32 -0
- package/esm2020/Calls/CometChatIncomingCall/cometchat-incoming-call/cometchat-incoming-call.component.mjs +423 -0
- package/esm2020/Calls/CometChatIncomingCall/cometchat-incoming-call.module.mjs +32 -0
- package/esm2020/Calls/CometChatOngoingCall/cometchat-ongoing-call/cometchat-ongoing-call.component.mjs +54 -0
- package/esm2020/Calls/CometChatOngoingCall/cometchat-ongoing-call.module.mjs +27 -0
- package/esm2020/Calls/CometChatOutgoingCall/cometchat-outgoing-call/cometchat-outgoing-call.component.mjs +196 -0
- package/esm2020/Calls/CometChatOutgoingCall/cometchat-outgoing-call.module.mjs +28 -0
- package/esm2020/CometChatAddMembers/cometchat-add-members/cometchat-add-members.component.mjs +353 -0
- package/esm2020/CometChatAddMembers/cometchat-add-members.module.mjs +23 -0
- package/esm2020/CometChatBannedMembers/cometchat-banned-members/cometchat-banned-members.component.mjs +446 -0
- package/esm2020/CometChatBannedMembers/cometchat-banned-members.module.mjs +24 -0
- package/esm2020/CometChatConversations/cometchat-conversations/cometchat-conversations.component.mjs +1400 -0
- package/esm2020/CometChatConversations/cometchat-conversations.module.mjs +28 -0
- package/esm2020/CometChatConversationsWithMessages/cometchat-conversations-with-messages/cometchat-conversations-with-messages.component.mjs +272 -0
- package/esm2020/CometChatConversationsWithMessages/cometchat-conversations-with-messages.module.mjs +39 -0
- package/esm2020/CometChatDetails/cometchat-details/cometchat-details.component.mjs +696 -0
- package/esm2020/CometChatDetails/cometchat-details.module.mjs +27 -0
- package/esm2020/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.mjs +676 -0
- package/esm2020/CometChatGroupMembers/cometchat-group-members.module.mjs +24 -0
- package/esm2020/CometChatGroups/cometchat-groups/cometchat-groups.component.mjs +564 -0
- package/esm2020/CometChatGroups/cometchat-groups.module.mjs +28 -0
- package/esm2020/CometChatGroupsWithMessages/cometchat-groups-with-messages/cometchat-groups-with-messages.component.mjs +430 -0
- package/esm2020/CometChatGroupsWithMessages/cometchat-groups-with-messages.module.mjs +43 -0
- package/esm2020/CometChatList/cometchat-list.component.mjs +210 -0
- package/esm2020/CometChatList/cometchat-list.module.mjs +28 -0
- package/esm2020/CometChatMessageBubble/cometchat-message-bubble/cometchat-message-bubble.component.mjs +157 -0
- package/esm2020/CometChatMessageBubble/cometchat-message-bubble.module.mjs +23 -0
- package/esm2020/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.mjs +930 -0
- package/esm2020/CometChatMessageComposer/cometchat-message-composer.module.mjs +24 -0
- package/esm2020/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.mjs +420 -0
- package/esm2020/CometChatMessageHeader/cometchat-message-header.module.mjs +26 -0
- package/esm2020/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.mjs +2598 -0
- package/esm2020/CometChatMessageList/cometchat-message-list.module.mjs +34 -0
- package/esm2020/CometChatMessages/cometchat-messages/cometchat-messages.component.mjs +393 -0
- package/esm2020/CometChatMessages/cometchat-messages.module.mjs +48 -0
- package/esm2020/CometChatTheme.service.mjs +17 -0
- package/esm2020/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.mjs +304 -0
- package/esm2020/CometChatThreadedMessages/cometchat-threaded-messages.module.mjs +36 -0
- package/esm2020/CometChatTransferOwnership/cometchat-transfer-ownership/cometchat-transfer-ownership.component.mjs +337 -0
- package/esm2020/CometChatTransferOwnership/cometchat-transfer-ownership.module.mjs +21 -0
- package/esm2020/CometChatUsers/cometchat-users/cometchat-users.component.mjs +447 -0
- package/esm2020/CometChatUsers/cometchat-users.module.mjs +32 -0
- package/esm2020/CometChatUsersWithMessages/cometchat-users-with-messages/cometchat-users-with-messages.component.mjs +185 -0
- package/esm2020/CometChatUsersWithMessages/cometchat-users-with-messages.module.mjs +39 -0
- package/esm2020/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.mjs +11 -0
- package/esm2020/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.mjs +89 -0
- package/esm2020/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.mjs +11 -0
- package/esm2020/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.mjs +89 -0
- package/esm2020/Extensions/ImageModeration/ImageModerationExtension.mjs +10 -0
- package/esm2020/Extensions/ImageModeration/ImageModerationExtensionDecorator.mjs +10 -0
- package/esm2020/Extensions/LinkPreviewExtension/LinkPreviewExtension.mjs +10 -0
- package/esm2020/Extensions/LinkPreviewExtension/LinkPreviewExtensionDecorator.mjs +10 -0
- package/esm2020/Extensions/MessageTranslation/MessageTranslationExtension.mjs +11 -0
- package/esm2020/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.mjs +33 -0
- package/esm2020/Extensions/PollsExtension/PollsExtension.mjs +10 -0
- package/esm2020/Extensions/PollsExtension/PollsExtensionDecorator.mjs +75 -0
- package/esm2020/Extensions/Reactions/ReactionExtension.mjs +10 -0
- package/esm2020/Extensions/Reactions/ReactionExtensionDecorator.mjs +30 -0
- package/esm2020/Extensions/SmartReplies/SmartRepliesExtension.mjs +11 -0
- package/esm2020/Extensions/SmartReplies/SmartRepliesExtensionDecorator.mjs +117 -0
- package/esm2020/Extensions/Stickers/StickersExtension.mjs +15 -0
- package/esm2020/Extensions/Stickers/StickersExtensionDecorator.mjs +118 -0
- package/esm2020/Extensions/TextModerator/TextModeratorExtension.mjs +10 -0
- package/esm2020/Extensions/TextModerator/TextModeratorExtensionDecorator.mjs +32 -0
- package/esm2020/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.mjs +10 -0
- package/esm2020/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.mjs +10 -0
- package/esm2020/Shared/CometChatUIkit/CometChatUIKit.mjs +180 -0
- package/esm2020/Shared/Framework/ChatConfigurator.mjs +20 -0
- package/esm2020/Shared/Framework/DataSource.mjs +3 -0
- package/esm2020/Shared/Framework/DataSourceDecorator.mjs +80 -0
- package/esm2020/Shared/Framework/ExtensionDataSource.mjs +4 -0
- package/esm2020/Shared/Utils/MessageUtils.mjs +342 -0
- package/esm2020/cometchat-chat-uikit-angular.mjs +5 -0
- package/esm2020/public-api.mjs +93 -0
- package/fesm2015/cometchat-chat-uikit-angular.mjs +13683 -0
- package/fesm2015/cometchat-chat-uikit-angular.mjs.map +1 -0
- package/fesm2020/cometchat-chat-uikit-angular.mjs +13586 -0
- package/fesm2020/cometchat-chat-uikit-angular.mjs.map +1 -0
- package/package.json +51 -0
- package/public-api.d.ts +79 -0
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
import { OnInit, OnDestroy, ChangeDetectorRef, ElementRef, OnChanges, SimpleChanges, TemplateRef, NgZone } from "@angular/core";
|
|
2
|
+
import { CometChat } from "@cometchat-pro/chat";
|
|
3
|
+
import { Subscription } from "rxjs";
|
|
4
|
+
import { DateStyle, AvatarStyle, MenuListStyle, ReceiptStyle, BaseStyle, DocumentBubbleStyle, ConfirmDialogStyle, FullScreenViewerStyle } from '@cometchat/uikit-elements';
|
|
5
|
+
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
6
|
+
import { States, localize, MessageListAlignment, DatePatterns, TimestampAlignment, CometChatMessageTemplate, DocumentIconAlignment, CometChatUIKitConstants, CometChatTheme, MessageBubbleAlignment, CometChatMessageOption } from "@cometchat/uikit-resources";
|
|
7
|
+
import { MessageListStyle, MessageTranslationStyle, PollsBubbleStyle, ImageModerationStyle, SmartRepliesStyle, SmartRepliesConfiguration, CallscreenStyle } from "@cometchat/uikit-shared";
|
|
8
|
+
import { LinkPreviewStyle } from "@cometchat/uikit-shared";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* CometChatMessageList is a wrapper component for messageBubble
|
|
13
|
+
*
|
|
14
|
+
* @version 1.0.0
|
|
15
|
+
* @author CometChatTeam
|
|
16
|
+
* @copyright © 2022 CometChat Inc.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class CometChatMessageListComponent implements OnInit, OnDestroy, OnChanges {
|
|
20
|
+
private ngZone;
|
|
21
|
+
private ref;
|
|
22
|
+
private themeService;
|
|
23
|
+
listScroll: ElementRef;
|
|
24
|
+
bottom: ElementRef;
|
|
25
|
+
top: ElementRef;
|
|
26
|
+
textBubble: TemplateRef<any>;
|
|
27
|
+
threadMessageBubble: TemplateRef<any>;
|
|
28
|
+
fileBubble: TemplateRef<any>;
|
|
29
|
+
audioBubble: TemplateRef<any>;
|
|
30
|
+
videoBubble: TemplateRef<any>;
|
|
31
|
+
imageBubble: TemplateRef<any>;
|
|
32
|
+
stickerBubble: TemplateRef<any>;
|
|
33
|
+
documentBubble: TemplateRef<any>;
|
|
34
|
+
whiteboardBubble: TemplateRef<any>;
|
|
35
|
+
popoverRef: any;
|
|
36
|
+
directCalling: TemplateRef<any>;
|
|
37
|
+
pollBubble: TemplateRef<any>;
|
|
38
|
+
hideError: boolean;
|
|
39
|
+
errorStateView: TemplateRef<any>;
|
|
40
|
+
loadingStateView: TemplateRef<any>;
|
|
41
|
+
emptyStateView: TemplateRef<any>;
|
|
42
|
+
errorStateText: string;
|
|
43
|
+
emptyStateText: string;
|
|
44
|
+
loadingIconURL: string;
|
|
45
|
+
user: CometChat.User;
|
|
46
|
+
group: CometChat.Group;
|
|
47
|
+
disableReceipt: boolean;
|
|
48
|
+
disableSoundForMessages: boolean;
|
|
49
|
+
customSoundForMessages: string;
|
|
50
|
+
readIcon: string;
|
|
51
|
+
deliveredIcon: string;
|
|
52
|
+
sentIcon: string;
|
|
53
|
+
waitIcon: string;
|
|
54
|
+
errorIcon: string;
|
|
55
|
+
alignment: MessageListAlignment;
|
|
56
|
+
showAvatar: boolean;
|
|
57
|
+
datePattern: DatePatterns;
|
|
58
|
+
timestampAlignment: TimestampAlignment;
|
|
59
|
+
DateSeparatorPattern: DatePatterns;
|
|
60
|
+
templates: CometChatMessageTemplate[];
|
|
61
|
+
messagesRequestBuilder: CometChat.MessagesRequestBuilder;
|
|
62
|
+
newMessageIndicatorText: string;
|
|
63
|
+
scrollToBottomOnNewMessages: boolean;
|
|
64
|
+
thresholdValue: number;
|
|
65
|
+
onThreadRepliesClick: ((message: CometChat.BaseMessage, view: TemplateRef<any>) => void) | null;
|
|
66
|
+
headerView: TemplateRef<any>;
|
|
67
|
+
footerView: TemplateRef<any>;
|
|
68
|
+
parentMessageId: number;
|
|
69
|
+
avatarStyle: AvatarStyle;
|
|
70
|
+
backdropStyle: BaseStyle;
|
|
71
|
+
dateSeparatorStyle: DateStyle;
|
|
72
|
+
messageListStyle: MessageListStyle;
|
|
73
|
+
onError: (error: any) => void;
|
|
74
|
+
state: States;
|
|
75
|
+
optionsStyle: MenuListStyle;
|
|
76
|
+
receiptStyle: ReceiptStyle;
|
|
77
|
+
documentBubbleAlignment: DocumentIconAlignment;
|
|
78
|
+
callBubbleAlignment: DocumentIconAlignment;
|
|
79
|
+
imageModerationStyle: ImageModerationStyle;
|
|
80
|
+
timestampEnum: typeof TimestampAlignment;
|
|
81
|
+
chatChanged: boolean;
|
|
82
|
+
requestBuilder: any;
|
|
83
|
+
closeImageModeration: any;
|
|
84
|
+
timeStampColor: string;
|
|
85
|
+
timeStampFont: string;
|
|
86
|
+
smartReplyStyle: SmartRepliesStyle;
|
|
87
|
+
showSmartReply: boolean;
|
|
88
|
+
ccHidePanel: Subscription;
|
|
89
|
+
ccShowPanel: Subscription;
|
|
90
|
+
smartReplyMessage: CometChat.BaseMessage | null;
|
|
91
|
+
enableSmartReply: boolean;
|
|
92
|
+
smartReplyConfig: SmartRepliesConfiguration;
|
|
93
|
+
timeStampBackground: string;
|
|
94
|
+
linkPreviewStyle: LinkPreviewStyle;
|
|
95
|
+
unreadMessagesStyle: {
|
|
96
|
+
height: string;
|
|
97
|
+
width: string;
|
|
98
|
+
background: string;
|
|
99
|
+
display: string;
|
|
100
|
+
justifyContent: string;
|
|
101
|
+
buttonTextFont: string;
|
|
102
|
+
color: string;
|
|
103
|
+
border: string;
|
|
104
|
+
borderRadius: string;
|
|
105
|
+
};
|
|
106
|
+
dividerStyle: BaseStyle;
|
|
107
|
+
pollBubbleStyle: PollsBubbleStyle;
|
|
108
|
+
labelStyle: any;
|
|
109
|
+
imageBubbleStyle: any;
|
|
110
|
+
messagesList: CometChat.BaseMessage[];
|
|
111
|
+
bubbleDateStyle: DateStyle;
|
|
112
|
+
whiteboardIconURL: string;
|
|
113
|
+
documentIconURL: string;
|
|
114
|
+
directCallIconURL: string;
|
|
115
|
+
placeholderIconURL: string;
|
|
116
|
+
downloadIconURL: string;
|
|
117
|
+
translationStyle: MessageTranslationStyle;
|
|
118
|
+
documentBubbleStyle: DocumentBubbleStyle;
|
|
119
|
+
callBubbleStyle: DocumentBubbleStyle;
|
|
120
|
+
whiteboardTitle: string;
|
|
121
|
+
whiteboardSubitle: string;
|
|
122
|
+
whiteboardButtonText: string;
|
|
123
|
+
documentTitle: string;
|
|
124
|
+
documentSubitle: string;
|
|
125
|
+
documentButtonText: string;
|
|
126
|
+
joinCallButtonText: string;
|
|
127
|
+
topObserver: IntersectionObserver;
|
|
128
|
+
bottomObserver: IntersectionObserver;
|
|
129
|
+
localize: typeof localize;
|
|
130
|
+
reinitialized: boolean;
|
|
131
|
+
MessageTypesConstant: typeof CometChatUIKitConstants.MessageTypes;
|
|
132
|
+
callConstant: string;
|
|
133
|
+
typesMap: any;
|
|
134
|
+
messageTypesMap: any;
|
|
135
|
+
theme: CometChatTheme;
|
|
136
|
+
msgListenerId: string;
|
|
137
|
+
groupListenerId: string;
|
|
138
|
+
callListenerId: string;
|
|
139
|
+
loggedInUser: CometChat.User;
|
|
140
|
+
states: typeof States;
|
|
141
|
+
MessageCategory: Readonly<{
|
|
142
|
+
message: string;
|
|
143
|
+
custom: string;
|
|
144
|
+
action: string;
|
|
145
|
+
call: string;
|
|
146
|
+
}>;
|
|
147
|
+
numberOfTopScroll: number;
|
|
148
|
+
keepRecentMessages: boolean;
|
|
149
|
+
messageTemplate: CometChatMessageTemplate[];
|
|
150
|
+
messageCount: number;
|
|
151
|
+
isOnBottom: boolean;
|
|
152
|
+
UnreadCount: CometChat.BaseMessage[];
|
|
153
|
+
newMessageCount: number | string;
|
|
154
|
+
type: string;
|
|
155
|
+
confirmText: string;
|
|
156
|
+
cancelText: string;
|
|
157
|
+
warningText: string;
|
|
158
|
+
ccMessageDelete: Subscription;
|
|
159
|
+
ccMessageReact: Subscription;
|
|
160
|
+
ccMessageRead: Subscription;
|
|
161
|
+
ccMessageEdit: Subscription;
|
|
162
|
+
ccLiveReaction: Subscription;
|
|
163
|
+
ccMessageSent: Subscription;
|
|
164
|
+
ccMessageEdited: Subscription;
|
|
165
|
+
ccGroupMemberAdded: Subscription;
|
|
166
|
+
ccGroupLeft: Subscription;
|
|
167
|
+
ccGroupMemberJoined: Subscription;
|
|
168
|
+
ccGroupMemberKicked: Subscription;
|
|
169
|
+
ccGroupMemberBanned: Subscription;
|
|
170
|
+
ccOwnershipChanged: Subscription;
|
|
171
|
+
ccGroupDeleted: Subscription;
|
|
172
|
+
ccGroupCreated: Subscription;
|
|
173
|
+
ccOutgoingCall: Subscription;
|
|
174
|
+
ccCallRejected: Subscription;
|
|
175
|
+
ccCallEnded: Subscription;
|
|
176
|
+
ccCallAccepted: Subscription;
|
|
177
|
+
ccGroupMemberScopeChanged: Subscription;
|
|
178
|
+
threadedAlignment: MessageBubbleAlignment;
|
|
179
|
+
openEmojiKeyboard: boolean;
|
|
180
|
+
keyboardAlignment: string;
|
|
181
|
+
popoverStyle: any;
|
|
182
|
+
videoBubbleStyle: BaseStyle;
|
|
183
|
+
threadViewAlignment: MessageBubbleAlignment;
|
|
184
|
+
whiteboardURL: string | URL | undefined;
|
|
185
|
+
enableDataMasking: boolean;
|
|
186
|
+
enableThumbnailGeneration: boolean;
|
|
187
|
+
enableLinkPreview: boolean;
|
|
188
|
+
enablePolls: boolean;
|
|
189
|
+
enableReactions: boolean;
|
|
190
|
+
enableImageModeration: boolean;
|
|
191
|
+
enableStickers: boolean;
|
|
192
|
+
enableWhiteboard: boolean;
|
|
193
|
+
enableDocument: boolean;
|
|
194
|
+
showOngoingCall: boolean;
|
|
195
|
+
enableCalling: boolean;
|
|
196
|
+
ongoingCallStyle: CallscreenStyle;
|
|
197
|
+
sessionId: string;
|
|
198
|
+
getThreadViewStyle(message: CometChat.BaseMessage): {
|
|
199
|
+
height: string;
|
|
200
|
+
width: string;
|
|
201
|
+
border: string;
|
|
202
|
+
borderRadius: string;
|
|
203
|
+
background: string;
|
|
204
|
+
padding: string;
|
|
205
|
+
buttonIconTint: string | undefined;
|
|
206
|
+
display: string;
|
|
207
|
+
flexFlow: string;
|
|
208
|
+
alignItems: string;
|
|
209
|
+
justifyContent: string;
|
|
210
|
+
buttonTextColor: string | undefined;
|
|
211
|
+
};
|
|
212
|
+
closeIconURL: string;
|
|
213
|
+
threadOpenIcon: string;
|
|
214
|
+
confirmDialogStyle: ConfirmDialogStyle;
|
|
215
|
+
messageToReact: CometChat.BaseMessage | null;
|
|
216
|
+
limit: number;
|
|
217
|
+
types: string[];
|
|
218
|
+
categories: string[];
|
|
219
|
+
constructor(ngZone: NgZone, ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
220
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
221
|
+
addReaction: (event: any) => void;
|
|
222
|
+
getCallBubbleTitle(message: CometChat.BaseMessage): any;
|
|
223
|
+
getCallActionMessage: (call: CometChat.Call) => string;
|
|
224
|
+
reactToMessages(emoji: string): void;
|
|
225
|
+
ngOnDestroy(): void;
|
|
226
|
+
reactionsStyle(message: CometChat.BaseMessage): {
|
|
227
|
+
height: string;
|
|
228
|
+
width: string;
|
|
229
|
+
border: string;
|
|
230
|
+
borderRadius: string;
|
|
231
|
+
background: string;
|
|
232
|
+
textFont: string;
|
|
233
|
+
textColor: string | undefined;
|
|
234
|
+
activeTextColor: string | undefined;
|
|
235
|
+
activeTextFont: string;
|
|
236
|
+
addReactionIconTint: string | undefined;
|
|
237
|
+
activeReactionBackground: string | undefined;
|
|
238
|
+
reactionBackground: string;
|
|
239
|
+
reactionBorder: string;
|
|
240
|
+
reactionBorderRadius: string;
|
|
241
|
+
addReactionIconBackground: string | undefined;
|
|
242
|
+
};
|
|
243
|
+
showEmojiKeyboard: (id: number, event: any) => void;
|
|
244
|
+
setBubbleView: () => void;
|
|
245
|
+
openThreadView: (message: CometChat.BaseMessage) => void;
|
|
246
|
+
threadCallback: (id: number) => void;
|
|
247
|
+
deleteCallback: (id: number) => void;
|
|
248
|
+
editCallback: (id: number) => void;
|
|
249
|
+
copyCallback: (id: number) => void;
|
|
250
|
+
getMessageById(id: number): false | CometChat.BaseMessage;
|
|
251
|
+
isTranslated(message: CometChat.TextMessage): any;
|
|
252
|
+
updateTranslatedMessage: (translation: any) => void;
|
|
253
|
+
translateMessage: (id: number) => void;
|
|
254
|
+
setOptionsCallback(options: CometChatMessageOption[]): CometChatMessageOption[];
|
|
255
|
+
/**
|
|
256
|
+
* send message options based on type
|
|
257
|
+
* @param {CometChat.BaseMessage} msgObject
|
|
258
|
+
*/
|
|
259
|
+
setMessageOptions(msgObject: CometChat.BaseMessage): CometChatMessageOption[];
|
|
260
|
+
/**
|
|
261
|
+
* passing style based on message object
|
|
262
|
+
* @param {CometChat.BaseMessage} messageObject
|
|
263
|
+
*/
|
|
264
|
+
setMessageBubbleStyle(msg: CometChat.BaseMessage): BaseStyle;
|
|
265
|
+
getSessionId(message: CometChat.CustomMessage): any;
|
|
266
|
+
getWhiteboardDocument(message: CometChat.CustomMessage): any;
|
|
267
|
+
openLinkURL(event: any): void;
|
|
268
|
+
getSticker(message: CometChat.CustomMessage): any;
|
|
269
|
+
getContentView: (message: CometChat.BaseMessage) => TemplateRef<any> | null;
|
|
270
|
+
getHeaderView(message: CometChat.BaseMessage): TemplateRef<any> | null;
|
|
271
|
+
getFooterView(message: CometChat.BaseMessage): TemplateRef<any> | null;
|
|
272
|
+
setBubbleAlignment: (message: CometChat.BaseMessage) => MessageBubbleAlignment;
|
|
273
|
+
getCallBubbleStyle(message: CometChat.BaseMessage): {
|
|
274
|
+
titleFont: string;
|
|
275
|
+
titleColor: string | undefined;
|
|
276
|
+
iconTint: string | undefined;
|
|
277
|
+
buttonTextFont: string;
|
|
278
|
+
buttonTextColor: string | undefined;
|
|
279
|
+
buttonBackground: string | undefined;
|
|
280
|
+
width: string;
|
|
281
|
+
};
|
|
282
|
+
getBubbleWrapper: (message: CometChat.BaseMessage) => TemplateRef<any> | null;
|
|
283
|
+
getBubbleAlignment(message: CometChat.BaseMessage): MessageBubbleAlignment.left | MessageBubbleAlignment.right;
|
|
284
|
+
setTranslationStyle: (message: CometChat.BaseMessage) => MessageTranslationStyle;
|
|
285
|
+
getCallTypeIcon(message: CometChat.BaseMessage): "assets/Audio-Call.svg" | "assets/Video-call.svg";
|
|
286
|
+
callStatusStyle(message: CometChat.BaseMessage): {
|
|
287
|
+
buttonTextFont: string;
|
|
288
|
+
buttonTextColor: string | undefined;
|
|
289
|
+
borderRadius: string;
|
|
290
|
+
border: string;
|
|
291
|
+
buttonIconTint: string | undefined;
|
|
292
|
+
background: string;
|
|
293
|
+
iconBackground: string;
|
|
294
|
+
padding: string;
|
|
295
|
+
gap: string;
|
|
296
|
+
height: string;
|
|
297
|
+
justifyContent: string;
|
|
298
|
+
} | null;
|
|
299
|
+
setTextBubbleStyle: (message: CometChat.BaseMessage) => {
|
|
300
|
+
textFont: string;
|
|
301
|
+
textColor: string | undefined;
|
|
302
|
+
};
|
|
303
|
+
setFileBubbleStyle(message: CometChat.BaseMessage): any;
|
|
304
|
+
ngAfterViewInit(): void;
|
|
305
|
+
startDirectCall: (sessionId: string) => void;
|
|
306
|
+
launchCollaborativeWhiteboardDocument: (url: string) => void;
|
|
307
|
+
/**
|
|
308
|
+
* Extracting types and categories from template
|
|
309
|
+
*
|
|
310
|
+
*/
|
|
311
|
+
checkMessageTemplate(): void;
|
|
312
|
+
getPollBubbleData(message: CometChat.CustomMessage, type?: string): any;
|
|
313
|
+
getThreadCount(message: CometChat.BaseMessage): string;
|
|
314
|
+
showEnabledExtensions(): void;
|
|
315
|
+
openConfirmDialog: boolean;
|
|
316
|
+
openFullscreenView: boolean;
|
|
317
|
+
imageurlToOpen: string;
|
|
318
|
+
fullScreenViewerStyle: FullScreenViewerStyle;
|
|
319
|
+
openImageInFullScreen(message: any): void;
|
|
320
|
+
closeImageInFullScreen(): void;
|
|
321
|
+
openWarningDialog(event: any): void;
|
|
322
|
+
onConfirmClick: () => void;
|
|
323
|
+
onCancelClick(): void;
|
|
324
|
+
getTextMessage(message: CometChat.TextMessage): string;
|
|
325
|
+
getLinkPreview(message: CometChat.TextMessage): any;
|
|
326
|
+
getImageThumbnail(msg: CometChat.MediaMessage): string;
|
|
327
|
+
getLinkPreviewDetails(key: string, message: CometChat.TextMessage): string;
|
|
328
|
+
ngOnInit(): void;
|
|
329
|
+
setOngoingCallStyle: () => void;
|
|
330
|
+
setAvatarStyle(): void;
|
|
331
|
+
setDateStyle(): void;
|
|
332
|
+
setMessagesStyle(): void;
|
|
333
|
+
setReceiptStyle(): void;
|
|
334
|
+
createRequestBuilder(): void;
|
|
335
|
+
/**
|
|
336
|
+
* Listener To Receive Messages in Real Time
|
|
337
|
+
* @param
|
|
338
|
+
*/
|
|
339
|
+
fetchPreviousMessages: () => void;
|
|
340
|
+
fetchNextMessage: () => void;
|
|
341
|
+
appendMessages: (messages: CometChat.BaseMessage[]) => void;
|
|
342
|
+
addMessageEventListeners(): void;
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @param
|
|
346
|
+
*/
|
|
347
|
+
/**
|
|
348
|
+
* Updates messageList on basis of user activity or group activity or calling activity
|
|
349
|
+
* @param {any=null} key
|
|
350
|
+
* @param {CometChat.MessageReceipt | CometChat.BaseMessage} message
|
|
351
|
+
* @param {CometChat.Group | null=null} group
|
|
352
|
+
* @param {any=null} options
|
|
353
|
+
*/
|
|
354
|
+
messageUpdate(key?: string | null, message?: CometChat.MessageReceipt | CometChat.BaseMessage | any, group?: CometChat.Group | null, options?: any): void;
|
|
355
|
+
/**
|
|
356
|
+
* translate message then call update message
|
|
357
|
+
* @param {CometChat.BaseMessage} message
|
|
358
|
+
*/
|
|
359
|
+
/**
|
|
360
|
+
* @param {CometChat.BaseMessage} message
|
|
361
|
+
*/
|
|
362
|
+
markMessageAsDelivered: (message: CometChat.BaseMessage) => void;
|
|
363
|
+
/**
|
|
364
|
+
* When Message is Received
|
|
365
|
+
* @param message
|
|
366
|
+
*/
|
|
367
|
+
/**
|
|
368
|
+
* @param {CometChat.BaseMessage} message
|
|
369
|
+
*/
|
|
370
|
+
messageReceived(message: CometChat.BaseMessage): void;
|
|
371
|
+
/**
|
|
372
|
+
* Updating the reply count of Thread Parent Message
|
|
373
|
+
* @param {CometChat.BaseMessage} messages
|
|
374
|
+
*/
|
|
375
|
+
updateReplyCount(messages: CometChat.BaseMessage): void;
|
|
376
|
+
/**
|
|
377
|
+
* @param {CometChat.BaseMessage} message
|
|
378
|
+
* @param {string} type
|
|
379
|
+
*/
|
|
380
|
+
messageReceivedHandler: (message: CometChat.BaseMessage, type: string) => void;
|
|
381
|
+
playAudio(): void;
|
|
382
|
+
reInitializeMessageList(): void;
|
|
383
|
+
reInitializeMessageBuilder: () => void;
|
|
384
|
+
getMessageReceipt(message: CometChat.BaseMessage): import("@cometchat/uikit-shared/dist/Utils/MessageReceiptUtils").receipts;
|
|
385
|
+
messageReadAndDelivered(message: CometChat.MessageReceipt): void;
|
|
386
|
+
/**
|
|
387
|
+
* @param {CometChat.BaseMessage} readMessage
|
|
388
|
+
*/
|
|
389
|
+
markAllMessagAsRead(messageKey: number): void;
|
|
390
|
+
markAllMessagAsDelivered(messageKey: number): void;
|
|
391
|
+
/**
|
|
392
|
+
* Emits an Action Indicating that a message was deleted by the user/person you are chatting with
|
|
393
|
+
* @param {CometChat.BaseMessage} message
|
|
394
|
+
*/
|
|
395
|
+
/**
|
|
396
|
+
* Detects if the message that was edit is your current open conversation window
|
|
397
|
+
* @param {CometChat.BaseMessage} message
|
|
398
|
+
*/
|
|
399
|
+
messageEdited: (message: CometChat.BaseMessage) => void;
|
|
400
|
+
/**
|
|
401
|
+
* Emits an Action Indicating that a message was deleted by the user/person you are chatting with
|
|
402
|
+
* @param {CometChat.BaseMessage} message
|
|
403
|
+
*/
|
|
404
|
+
updateEditedMessage: (message: CometChat.BaseMessage) => void;
|
|
405
|
+
/**
|
|
406
|
+
* Emits an Action Indicating that Group Data has been updated
|
|
407
|
+
* @param
|
|
408
|
+
*/
|
|
409
|
+
/**
|
|
410
|
+
* When custom messages are received eg. Poll, Stickers emits action to update message list
|
|
411
|
+
* @param message
|
|
412
|
+
*/
|
|
413
|
+
/**
|
|
414
|
+
* @param {CometChat.BaseMessage} message
|
|
415
|
+
*/
|
|
416
|
+
customMessageReceived(message: CometChat.BaseMessage): any;
|
|
417
|
+
/**
|
|
418
|
+
* @param {CometChat.BaseMessage} message
|
|
419
|
+
* @param {string} type
|
|
420
|
+
*/
|
|
421
|
+
customMessageReceivedHandler: (message: CometChat.BaseMessage, type: string) => void;
|
|
422
|
+
/**
|
|
423
|
+
* TrackBy method to update UI when a change is detected
|
|
424
|
+
*/
|
|
425
|
+
/**
|
|
426
|
+
* @param {number} index
|
|
427
|
+
* @param {any} item
|
|
428
|
+
*/
|
|
429
|
+
getMessageId(index: number, item: any): any;
|
|
430
|
+
/**
|
|
431
|
+
* Compares two dates and sets Date on a a new day
|
|
432
|
+
*/
|
|
433
|
+
/**
|
|
434
|
+
* @param {number} firstDate
|
|
435
|
+
* @param {number} secondDate
|
|
436
|
+
*/
|
|
437
|
+
isDateDifferent(firstDate: number | undefined, secondDate: number | undefined): boolean;
|
|
438
|
+
/**
|
|
439
|
+
* prepend Fetched Messages
|
|
440
|
+
* @param {CometChat.BaseMessage} messages
|
|
441
|
+
*/
|
|
442
|
+
prependMessages(messages: CometChat.BaseMessage[]): void;
|
|
443
|
+
/**
|
|
444
|
+
* listening to bottom scroll using intersection observer
|
|
445
|
+
*/
|
|
446
|
+
ioBottom(): void;
|
|
447
|
+
/**
|
|
448
|
+
* listening to top scroll using intersection observer
|
|
449
|
+
*/
|
|
450
|
+
ioTop(): void;
|
|
451
|
+
addMessage: (message: CometChat.BaseMessage) => void;
|
|
452
|
+
/**
|
|
453
|
+
* callback for copy message
|
|
454
|
+
* @param {CometChat.TextMessage} object
|
|
455
|
+
*/
|
|
456
|
+
onCopyMessage: (object: CometChat.TextMessage) => void;
|
|
457
|
+
/**
|
|
458
|
+
* callback for deleteMessage
|
|
459
|
+
* @param {CometChat.BaseMessage} object
|
|
460
|
+
*/
|
|
461
|
+
/**
|
|
462
|
+
* @param {CometChat.BaseMessage} messages
|
|
463
|
+
*/
|
|
464
|
+
messageSent(messages: CometChat.BaseMessage): void;
|
|
465
|
+
/**
|
|
466
|
+
* callback for editMessage option
|
|
467
|
+
* @param {CometChat.BaseMessage} object
|
|
468
|
+
*/
|
|
469
|
+
onEditMessage: (object: CometChat.BaseMessage) => void;
|
|
470
|
+
updateMessage(message: CometChat.BaseMessage, muid?: boolean): void;
|
|
471
|
+
removeMessage: (message: CometChat.BaseMessage) => void;
|
|
472
|
+
deleteMessage: (message: CometChat.BaseMessage) => void;
|
|
473
|
+
scrollToBottom: () => void;
|
|
474
|
+
showHeaderTitle(message: CometChat.BaseMessage): boolean;
|
|
475
|
+
subscribeToEvents(): void;
|
|
476
|
+
closeSmartReply: () => void;
|
|
477
|
+
sendReply: (event: any) => void;
|
|
478
|
+
getReplies(): string[] | null;
|
|
479
|
+
unsubscribeToEvents(): void;
|
|
480
|
+
/**
|
|
481
|
+
* styling part
|
|
482
|
+
*/
|
|
483
|
+
chatsListStyle: () => {
|
|
484
|
+
height: string | undefined;
|
|
485
|
+
background: string | undefined;
|
|
486
|
+
};
|
|
487
|
+
messageContainerStyle: () => {
|
|
488
|
+
width: string | undefined;
|
|
489
|
+
};
|
|
490
|
+
errorStyle: () => {
|
|
491
|
+
textFont: string | undefined;
|
|
492
|
+
textColor: string | undefined;
|
|
493
|
+
};
|
|
494
|
+
emptyStyle: () => {
|
|
495
|
+
textFont: string | undefined;
|
|
496
|
+
textColor: string | undefined;
|
|
497
|
+
};
|
|
498
|
+
loadingStyle: () => {
|
|
499
|
+
iconTint: string | undefined;
|
|
500
|
+
};
|
|
501
|
+
wrapperStyle: () => {
|
|
502
|
+
height: string | undefined;
|
|
503
|
+
width: string | undefined;
|
|
504
|
+
background: string | undefined;
|
|
505
|
+
border: string | undefined;
|
|
506
|
+
borderRadius: string | undefined;
|
|
507
|
+
};
|
|
508
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageListComponent, never>;
|
|
509
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageListComponent, "cometchat-message-list", never, { "hideError": "hideError"; "errorStateView": "errorStateView"; "loadingStateView": "loadingStateView"; "emptyStateView": "emptyStateView"; "errorStateText": "errorStateText"; "emptyStateText": "emptyStateText"; "loadingIconURL": "loadingIconURL"; "user": "user"; "group": "group"; "disableReceipt": "disableReceipt"; "disableSoundForMessages": "disableSoundForMessages"; "customSoundForMessages": "customSoundForMessages"; "readIcon": "readIcon"; "deliveredIcon": "deliveredIcon"; "sentIcon": "sentIcon"; "waitIcon": "waitIcon"; "errorIcon": "errorIcon"; "alignment": "alignment"; "showAvatar": "showAvatar"; "datePattern": "datePattern"; "timestampAlignment": "timestampAlignment"; "DateSeparatorPattern": "DateSeparatorPattern"; "templates": "templates"; "messagesRequestBuilder": "messagesRequestBuilder"; "newMessageIndicatorText": "newMessageIndicatorText"; "scrollToBottomOnNewMessages": "scrollToBottomOnNewMessages"; "thresholdValue": "thresholdValue"; "onThreadRepliesClick": "onThreadRepliesClick"; "headerView": "headerView"; "footerView": "footerView"; "parentMessageId": "parentMessageId"; "avatarStyle": "avatarStyle"; "backdropStyle": "backdropStyle"; "dateSeparatorStyle": "dateSeparatorStyle"; "messageListStyle": "messageListStyle"; "onError": "onError"; }, {}, never, never>;
|
|
510
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '@cometchat/uikit-elements';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./cometchat-message-list/cometchat-message-list.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "../CometChatMessageBubble/cometchat-message-bubble.module";
|
|
6
|
+
import * as i4 from "../Calls/CometChatOngoingCall/cometchat-ongoing-call.module";
|
|
7
|
+
export declare class CometChatMessageList {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageList, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatMessageList, [typeof i1.CometChatMessageListComponent], [typeof i2.CommonModule, typeof i3.CometChatMessageBubble, typeof i4.CometChatOngoingCall], [typeof i1.CometChatMessageListComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatMessageList>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges, ChangeDetectorRef, TemplateRef } from "@angular/core";
|
|
2
|
+
import { CometChat } from "@cometchat-pro/chat";
|
|
3
|
+
import { CometChatMessageComposerComponent } from "../../CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component";
|
|
4
|
+
import { CometChatMessageListComponent } from "../../CometChatMessageList/cometchat-message-list/cometchat-message-list.component";
|
|
5
|
+
import { ListItemStyle, AvatarStyle, BaseStyle } from '@cometchat/uikit-elements';
|
|
6
|
+
import { Subscription } from "rxjs";
|
|
7
|
+
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
8
|
+
import { MessageHeaderConfiguration, MessageListConfiguration, MessageComposerConfiguration, ThreadedMessagesConfiguration, DetailsConfiguration, MessagesStyle, MessageComposerStyle, MessageHeaderStyle, CallButtonsStyle } from "@cometchat/uikit-shared";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* CometChatMessages is a wrapper component for messageList, messageHeader, messageComposer and liveReaction component.
|
|
13
|
+
*
|
|
14
|
+
* @version 1.0.0
|
|
15
|
+
* @author CometChatTeam
|
|
16
|
+
* @copyright © 2022 CometChat Inc.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class CometChatMessagesComponent implements OnInit, OnChanges {
|
|
20
|
+
private ref;
|
|
21
|
+
private themeService;
|
|
22
|
+
messageComposerRef: CometChatMessageComposerComponent;
|
|
23
|
+
messageListRef: CometChatMessageListComponent;
|
|
24
|
+
user: CometChat.User;
|
|
25
|
+
group: CometChat.Group;
|
|
26
|
+
hideMessageComposer: boolean;
|
|
27
|
+
disableTyping: boolean;
|
|
28
|
+
messageHeaderConfiguration: MessageHeaderConfiguration;
|
|
29
|
+
messageListConfiguration: MessageListConfiguration;
|
|
30
|
+
messageComposerConfiguration: MessageComposerConfiguration;
|
|
31
|
+
threadedMessageConfiguration: ThreadedMessagesConfiguration;
|
|
32
|
+
detailsConfiguration: DetailsConfiguration;
|
|
33
|
+
customSoundForIncomingMessages: string;
|
|
34
|
+
customSoundForOutgoingMessages: string;
|
|
35
|
+
disableSoundForMessages: boolean;
|
|
36
|
+
messagesStyle: MessagesStyle;
|
|
37
|
+
messageHeaderView: TemplateRef<any>;
|
|
38
|
+
messageComposerView: TemplateRef<any>;
|
|
39
|
+
messageListView: TemplateRef<any>;
|
|
40
|
+
hideMessageHeader: boolean;
|
|
41
|
+
hideDetails: boolean;
|
|
42
|
+
auxiliaryMenu: TemplateRef<any>;
|
|
43
|
+
loggedInUser: CometChat.User | null;
|
|
44
|
+
callButtonsStyle: CallButtonsStyle;
|
|
45
|
+
messageToBeEdited: CometChat.BaseMessage | null;
|
|
46
|
+
liveReaction: boolean;
|
|
47
|
+
reactionName: string;
|
|
48
|
+
messageToReact: CometChat.BaseMessage | null;
|
|
49
|
+
composerStyles: MessageComposerStyle;
|
|
50
|
+
liveReactionTimeout: any;
|
|
51
|
+
openThreadedMessages: boolean;
|
|
52
|
+
subtitleView: TemplateRef<any>;
|
|
53
|
+
disableUsersPresence: boolean;
|
|
54
|
+
protectedGroupIcon: string;
|
|
55
|
+
privateGroupIcon: string;
|
|
56
|
+
menu: TemplateRef<any>;
|
|
57
|
+
headerStyle: MessageHeaderStyle;
|
|
58
|
+
backButtonIconURL: string;
|
|
59
|
+
hideBackIcon: boolean;
|
|
60
|
+
listItemView: TemplateRef<any>;
|
|
61
|
+
onError: (error: any) => void;
|
|
62
|
+
onBack: () => void;
|
|
63
|
+
avatarStyle: AvatarStyle;
|
|
64
|
+
statusIndicatorStyle: BaseStyle;
|
|
65
|
+
messageHeaderStyle: MessageHeaderStyle;
|
|
66
|
+
listItemStyle: ListItemStyle;
|
|
67
|
+
infoIconStyle: string;
|
|
68
|
+
detailsButtonStyle: any;
|
|
69
|
+
enableCalling: boolean;
|
|
70
|
+
ccLiveReaction: Subscription;
|
|
71
|
+
ccGroupDeleted: Subscription;
|
|
72
|
+
ccGroupLeft: Subscription;
|
|
73
|
+
ccUserBlocked: Subscription;
|
|
74
|
+
ccUserUnBlocked: Subscription;
|
|
75
|
+
threadMessageObject: CometChat.BaseMessage | null;
|
|
76
|
+
parentBubbleView: TemplateRef<any>;
|
|
77
|
+
openDetails: boolean;
|
|
78
|
+
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
79
|
+
ngOnInit(): void;
|
|
80
|
+
subscribeToEvents(): void;
|
|
81
|
+
unsubscribeToEvents(): void;
|
|
82
|
+
setMessagesStyle(): void;
|
|
83
|
+
getAuxilaryView(): any;
|
|
84
|
+
openThreadView: (message: CometChat.BaseMessage, bubble: TemplateRef<any>) => void;
|
|
85
|
+
openDetailsPage: () => void;
|
|
86
|
+
closeDetailsPage: () => void;
|
|
87
|
+
closeThreadView: () => void;
|
|
88
|
+
/**
|
|
89
|
+
* @param {string} reactionName
|
|
90
|
+
*/
|
|
91
|
+
liveReactionStart: (reactionName: string) => void;
|
|
92
|
+
ngOnChanges(change: SimpleChanges): void;
|
|
93
|
+
ngOnDestroy(): void;
|
|
94
|
+
chatListStyle(): {
|
|
95
|
+
background: string | undefined;
|
|
96
|
+
height: string | undefined;
|
|
97
|
+
width: string | undefined;
|
|
98
|
+
border: string | undefined;
|
|
99
|
+
borderRadius: string | undefined;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* public methods
|
|
103
|
+
* messageListRef methods
|
|
104
|
+
* This metthod will append message in message list
|
|
105
|
+
* @param {CometChat.BaseMessage} message
|
|
106
|
+
*/
|
|
107
|
+
addMessage(message: CometChat.BaseMessage): void;
|
|
108
|
+
/**
|
|
109
|
+
* This method will update the message in messageList
|
|
110
|
+
* @param {CometChat.BaseMessage} message
|
|
111
|
+
*/
|
|
112
|
+
updateMessage(message: CometChat.BaseMessage, muid?: boolean): void;
|
|
113
|
+
/**
|
|
114
|
+
* This method will remove the message from messageList
|
|
115
|
+
* @param {CometChat.BaseMessage} message
|
|
116
|
+
*/
|
|
117
|
+
removeMessage(message: CometChat.BaseMessage): void;
|
|
118
|
+
/**
|
|
119
|
+
* This method will delete and remove the message from messageList
|
|
120
|
+
* @param {CometChat.BaseMessage} message
|
|
121
|
+
*/
|
|
122
|
+
deleteMessage(message: CometChat.BaseMessage): void;
|
|
123
|
+
/**
|
|
124
|
+
* this method will send a text message
|
|
125
|
+
* @param {string} text
|
|
126
|
+
*/
|
|
127
|
+
sendTextMessage(text: string): void;
|
|
128
|
+
/**
|
|
129
|
+
* this method will open preview of the message
|
|
130
|
+
* @param {CometChat.BaseMessage} message
|
|
131
|
+
* @param {string} mode
|
|
132
|
+
*/
|
|
133
|
+
previewMessage(message: CometChat.TextMessage, mode?: string): void;
|
|
134
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessagesComponent, never>;
|
|
135
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessagesComponent, "cometchat-messages", never, { "user": "user"; "group": "group"; "hideMessageComposer": "hideMessageComposer"; "disableTyping": "disableTyping"; "messageHeaderConfiguration": "messageHeaderConfiguration"; "messageListConfiguration": "messageListConfiguration"; "messageComposerConfiguration": "messageComposerConfiguration"; "threadedMessageConfiguration": "threadedMessageConfiguration"; "detailsConfiguration": "detailsConfiguration"; "customSoundForIncomingMessages": "customSoundForIncomingMessages"; "customSoundForOutgoingMessages": "customSoundForOutgoingMessages"; "disableSoundForMessages": "disableSoundForMessages"; "messagesStyle": "messagesStyle"; "messageHeaderView": "messageHeaderView"; "messageComposerView": "messageComposerView"; "messageListView": "messageListView"; "hideMessageHeader": "hideMessageHeader"; "hideDetails": "hideDetails"; "auxiliaryMenu": "auxiliaryMenu"; }, {}, never, never>;
|
|
136
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import '@cometchat/uikit-elements';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./cometchat-messages/cometchat-messages.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "../CometChatMessageHeader/cometchat-message-header.module";
|
|
6
|
+
import * as i4 from "../CometChatMessageList/cometchat-message-list.module";
|
|
7
|
+
import * as i5 from "../CometChatMessageComposer/cometchat-message-composer.module";
|
|
8
|
+
import * as i6 from "../CometChatThreadedMessages/cometchat-threaded-messages.module";
|
|
9
|
+
import * as i7 from "../CometChatDetails/cometchat-details.module";
|
|
10
|
+
import * as i8 from "../Calls/CometChatCallButtons/cometchat-call-buttons.module";
|
|
11
|
+
export declare class CometChatMessages {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessages, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatMessages, [typeof i1.CometChatMessagesComponent], [typeof i2.CommonModule, typeof i3.CometChatMessageHeader, typeof i4.CometChatMessageList, typeof i5.CometChatMessageComposer, typeof i6.CometChatThreadedMessages, typeof i7.CometChatDetails, typeof i8.CometChatCallButtons], [typeof i1.CometChatMessagesComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatMessages>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CometChatTheme } from '@cometchat/uikit-resources';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CometChatThemeService {
|
|
4
|
+
theme: CometChatTheme;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatThemeService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CometChatThemeService>;
|
|
7
|
+
}
|