@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,335 @@
|
|
|
1
|
+
import { ChangeDetectorRef, NgZone, OnChanges, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
|
+
import { CometChat } from "@cometchat-pro/chat";
|
|
3
|
+
import { Subscription } from "rxjs";
|
|
4
|
+
import { SelectionMode, States, TitleAlignment, BaseStyle, ConversationsStyle, ListStyle } from "@cometchat/uikit-shared";
|
|
5
|
+
import { CometChatOption, DatePatterns } from '@cometchat/uikit-resources';
|
|
6
|
+
import '@cometchat/uikit-elements';
|
|
7
|
+
import { AvatarStyle, ListItemStyle, ConfirmDialogStyle, ReceiptStyle, DateStyle, BadgeStyle } from '@cometchat/uikit-elements';
|
|
8
|
+
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* CometChatConversation is a wrapper component consists of CometChatListBaseComponent and ConversationListComponent.
|
|
13
|
+
*
|
|
14
|
+
* @version 1.0.0
|
|
15
|
+
* @author CometChatTeam
|
|
16
|
+
* @copyright © 2022 CometChat Inc.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class CometChatConversationsComponent implements OnInit, OnChanges {
|
|
20
|
+
private ngZone;
|
|
21
|
+
private ref;
|
|
22
|
+
private themeService;
|
|
23
|
+
/**
|
|
24
|
+
* This properties will come from Parent.
|
|
25
|
+
*/
|
|
26
|
+
subtitleView: TemplateRef<any>;
|
|
27
|
+
title: string;
|
|
28
|
+
options: ((member: CometChat.Conversation) => CometChatOption[]) | null;
|
|
29
|
+
searchPlaceHolder: string;
|
|
30
|
+
disableUsersPresence: boolean;
|
|
31
|
+
disableReceipt: boolean;
|
|
32
|
+
disableTyping: boolean;
|
|
33
|
+
deliveredIcon: string;
|
|
34
|
+
readIcon: string;
|
|
35
|
+
errorIcon: string;
|
|
36
|
+
datePattern: DatePatterns;
|
|
37
|
+
onError: (error: CometChat.CometChatException) => void;
|
|
38
|
+
sentIcon: string;
|
|
39
|
+
privateGroupIcon: string;
|
|
40
|
+
protectedGroupIcon: string;
|
|
41
|
+
customSoundForMessages: string;
|
|
42
|
+
activeConversation: CometChat.Conversation | null;
|
|
43
|
+
searchIconURL: string;
|
|
44
|
+
hideSearch: boolean;
|
|
45
|
+
conversationsRequestBuilder: any;
|
|
46
|
+
emptyStateView: TemplateRef<any>;
|
|
47
|
+
onSelect: (conversation: CometChat.Conversation) => void;
|
|
48
|
+
loadingIconURL: string;
|
|
49
|
+
errorStateView: TemplateRef<any>;
|
|
50
|
+
loadingStateView: TemplateRef<any>;
|
|
51
|
+
emptyStateText: string;
|
|
52
|
+
errorStateText: string;
|
|
53
|
+
titleAlignment: TitleAlignment;
|
|
54
|
+
listItemView: TemplateRef<any>;
|
|
55
|
+
menu: TemplateRef<any>;
|
|
56
|
+
hideSeparator: boolean;
|
|
57
|
+
searchPlaceholder: string;
|
|
58
|
+
hideError: boolean;
|
|
59
|
+
selectionMode: SelectionMode;
|
|
60
|
+
disableSoundForMessages: boolean;
|
|
61
|
+
confirmDialogTitle: any;
|
|
62
|
+
confirmButtonText: string;
|
|
63
|
+
cancelButtonText: string;
|
|
64
|
+
confirmDialogMessage: string;
|
|
65
|
+
onItemClick: (conversation: CometChat.Conversation) => void;
|
|
66
|
+
deleteConversationDialogStyle: ConfirmDialogStyle;
|
|
67
|
+
backdropStyle: BaseStyle;
|
|
68
|
+
badgeStyle: BadgeStyle;
|
|
69
|
+
dateStyle: DateStyle;
|
|
70
|
+
conversationsStyle: ConversationsStyle;
|
|
71
|
+
listItemStyle: ListItemStyle;
|
|
72
|
+
statusIndicatorStyle: any;
|
|
73
|
+
typingIndicatorText: string;
|
|
74
|
+
threadIndicatorText: string;
|
|
75
|
+
avatarStyle: AvatarStyle;
|
|
76
|
+
receiptStyle: ReceiptStyle;
|
|
77
|
+
ccGroupMemberAdded: Subscription;
|
|
78
|
+
ccGroupMemberJoined: Subscription;
|
|
79
|
+
ccGroupMemberKicked: Subscription;
|
|
80
|
+
ccGroupMemberBanned: Subscription;
|
|
81
|
+
ccGroupMemberScopeChanged: Subscription;
|
|
82
|
+
ccOwnershipChanged: Subscription;
|
|
83
|
+
ccMessageEdit: Subscription;
|
|
84
|
+
ccMessageSent: Subscription;
|
|
85
|
+
ccMessageEdited: Subscription;
|
|
86
|
+
ccMessageDelete: Subscription;
|
|
87
|
+
ccGroupDeleted: Subscription;
|
|
88
|
+
ccGroupLeft: Subscription;
|
|
89
|
+
ccUserBlocked: Subscription;
|
|
90
|
+
ccMessageRead: Subscription;
|
|
91
|
+
ccOutgoingCall: Subscription;
|
|
92
|
+
ccCallRejected: Subscription;
|
|
93
|
+
ccCallEnded: Subscription;
|
|
94
|
+
ccCallAccepted: Subscription;
|
|
95
|
+
iconStyle: any;
|
|
96
|
+
listStyle: ListStyle;
|
|
97
|
+
menustyle: {
|
|
98
|
+
width: string;
|
|
99
|
+
height: string;
|
|
100
|
+
border: string;
|
|
101
|
+
borderRadius: string;
|
|
102
|
+
background: string;
|
|
103
|
+
textFont: string;
|
|
104
|
+
textColor: string;
|
|
105
|
+
iconTint: string;
|
|
106
|
+
iconBackground: string;
|
|
107
|
+
iconBorder: string;
|
|
108
|
+
iconBorderRadius: string;
|
|
109
|
+
submenuWidth: string;
|
|
110
|
+
submenuHeight: string;
|
|
111
|
+
submenuBorder: string;
|
|
112
|
+
submenuBorderRadius: string;
|
|
113
|
+
submenuBackground: string;
|
|
114
|
+
};
|
|
115
|
+
typingIndicator: CometChat.TypingIndicator | null;
|
|
116
|
+
typingListenerId: string;
|
|
117
|
+
callListenerId: string;
|
|
118
|
+
selectionmodeEnum: typeof SelectionMode;
|
|
119
|
+
isDialogOpen: boolean;
|
|
120
|
+
isEmpty: boolean;
|
|
121
|
+
isLoading: boolean;
|
|
122
|
+
state: States;
|
|
123
|
+
statusColor: any;
|
|
124
|
+
limit: number;
|
|
125
|
+
isError: boolean;
|
|
126
|
+
conversationList: CometChat.Conversation[];
|
|
127
|
+
scrolledToBottom: boolean;
|
|
128
|
+
checkItemChange: boolean;
|
|
129
|
+
conversationOptions: CometChatOption[];
|
|
130
|
+
showConfirmDialog: boolean;
|
|
131
|
+
conversationToBeDeleted: CometChat.Conversation | null;
|
|
132
|
+
conversationListenerId: string;
|
|
133
|
+
userListenerId: string;
|
|
134
|
+
groupListenerId: string;
|
|
135
|
+
groupToUpdate: CometChat.Group | {};
|
|
136
|
+
enablePolls: boolean;
|
|
137
|
+
enableStickers: boolean;
|
|
138
|
+
enableWhiteboard: boolean;
|
|
139
|
+
enableDocument: boolean;
|
|
140
|
+
threadIconURL: string;
|
|
141
|
+
confirmDialogStyle: ConfirmDialogStyle;
|
|
142
|
+
subtitleValue: string;
|
|
143
|
+
modalStyle: BaseStyle;
|
|
144
|
+
/**
|
|
145
|
+
* Properties for internal use
|
|
146
|
+
*/
|
|
147
|
+
localize: (str: string) => any;
|
|
148
|
+
/**
|
|
149
|
+
* This properties will come from Parent.
|
|
150
|
+
*/
|
|
151
|
+
loggedInUser: CometChat.User | null;
|
|
152
|
+
/**
|
|
153
|
+
* Properties for internal use
|
|
154
|
+
*/
|
|
155
|
+
/**
|
|
156
|
+
* passing this callback to menuList component on delete click
|
|
157
|
+
* @param {CometChat.Conversation} conversation
|
|
158
|
+
*/
|
|
159
|
+
deleteConversationOnClick: (() => void) | null;
|
|
160
|
+
onConfirmClick: () => void;
|
|
161
|
+
setStatusIndicatorStyle: (conversation: CometChat.Conversation) => any;
|
|
162
|
+
/**
|
|
163
|
+
* @param {CometChat.Conversation} conversation
|
|
164
|
+
*/
|
|
165
|
+
checkStatusType(conversation: CometChat.Conversation): any;
|
|
166
|
+
getExtensionData(messageObject: CometChat.BaseMessage): any;
|
|
167
|
+
setSubtitle: (conversationObject: CometChat.Conversation) => string;
|
|
168
|
+
checkGroupType(conversation: CometChat.Conversation): string;
|
|
169
|
+
onCancelClick: () => void;
|
|
170
|
+
getMessageReceipt: (conversation: CometChat.Conversation) => import("@cometchat/uikit-shared/dist/Utils/MessageReceiptUtils").receipts;
|
|
171
|
+
getDate(): DatePatterns.DayDate | DatePatterns.DayDateTime;
|
|
172
|
+
optionsStyle: {
|
|
173
|
+
background: string;
|
|
174
|
+
border: string;
|
|
175
|
+
};
|
|
176
|
+
isActive: boolean;
|
|
177
|
+
contactsNotFound: boolean;
|
|
178
|
+
chatSearch: boolean;
|
|
179
|
+
constructor(ngZone: NgZone, ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
180
|
+
ngOnInit(): void;
|
|
181
|
+
updateConversationObject(conversation: CometChat.Conversation): void;
|
|
182
|
+
subscribeToEvents(): void;
|
|
183
|
+
unsubscribeToEvents(): void;
|
|
184
|
+
getConversationFromUser(user: CometChat.User): CometChat.Conversation | null;
|
|
185
|
+
getConversationFromGroup(group: CometChat.Group): CometChat.Conversation | null;
|
|
186
|
+
ngOnChanges(change: SimpleChanges): void;
|
|
187
|
+
ngOnDestroy(): void;
|
|
188
|
+
setConversationOptions(): void;
|
|
189
|
+
onClick(conversation: CometChat.Conversation): void;
|
|
190
|
+
resetUnreadCount(): void;
|
|
191
|
+
setThemeStyle(): void;
|
|
192
|
+
setListItemStyle(): void;
|
|
193
|
+
setAvatarStyle(): void;
|
|
194
|
+
setStatusStyle(): void;
|
|
195
|
+
setConversationsStyle(): void;
|
|
196
|
+
setDateStyle(): void;
|
|
197
|
+
setReceiptStyle(): void;
|
|
198
|
+
setBadgeStyle(): void;
|
|
199
|
+
setConfirmDialogStyle(): void;
|
|
200
|
+
/**
|
|
201
|
+
* @param {Object={}} config
|
|
202
|
+
* @param {Object} defaultConfig?
|
|
203
|
+
* @returns defaultConfig
|
|
204
|
+
*/
|
|
205
|
+
/**
|
|
206
|
+
* @param {CometChat.Conversation} conversation
|
|
207
|
+
*/
|
|
208
|
+
/**
|
|
209
|
+
* Fetches the coversation based on the conversationRequest config
|
|
210
|
+
*/
|
|
211
|
+
fetchNextConversation(): any;
|
|
212
|
+
updateEditedMessage(message: CometChat.TextMessage): void;
|
|
213
|
+
/**
|
|
214
|
+
* attaches Listeners for user activity , group activities and calling
|
|
215
|
+
* @param callback
|
|
216
|
+
*/
|
|
217
|
+
/**
|
|
218
|
+
* @param {Function} callback
|
|
219
|
+
*/
|
|
220
|
+
attachListeners(callback: any): void;
|
|
221
|
+
/**
|
|
222
|
+
* Removes all listeners
|
|
223
|
+
*/
|
|
224
|
+
removeListeners(): void;
|
|
225
|
+
/**
|
|
226
|
+
* Fetches Conversations Details with all the users
|
|
227
|
+
*/
|
|
228
|
+
getConversation: () => void;
|
|
229
|
+
isReceiptDisable(conversation: CometChat.Conversation): boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Updates the conversation list's last message , badgeCount , user presence based on activities propagated by listeners
|
|
232
|
+
*/
|
|
233
|
+
conversationUpdated: (key: any, item: CometChat.User | CometChat.Group | null | undefined, message: CometChat.BaseMessage, options?: null) => void;
|
|
234
|
+
/**
|
|
235
|
+
* @param {CometChat.BaseMessage} message
|
|
236
|
+
*/
|
|
237
|
+
markMessageAsDelivered: (message: CometChat.BaseMessage) => void;
|
|
238
|
+
/**
|
|
239
|
+
* @param {CometChat.BaseMessage} readMessage
|
|
240
|
+
*/
|
|
241
|
+
getUinx: () => string;
|
|
242
|
+
markAsRead(readMessage: CometChat.MessageReceipt): void;
|
|
243
|
+
/**
|
|
244
|
+
* Updates Detail when user comes online/offline
|
|
245
|
+
* @param
|
|
246
|
+
*/
|
|
247
|
+
/**
|
|
248
|
+
* @param {CometChat.User|CometChat.Group|null} user
|
|
249
|
+
*/
|
|
250
|
+
updateUser(user: CometChat.User | CometChat.Group | null): void;
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* Gets the last message
|
|
254
|
+
* @param conversation
|
|
255
|
+
/**
|
|
256
|
+
* @param {CometChat.BaseMessage} message
|
|
257
|
+
* @param {CometChat.Conversation|{}} conversation
|
|
258
|
+
*/
|
|
259
|
+
makeLastMessage(message: CometChat.BaseMessage, conversation?: CometChat.Conversation | {}): CometChat.BaseMessage;
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* Updates Conversations as Text/Custom Messages are received
|
|
263
|
+
* @param
|
|
264
|
+
*
|
|
265
|
+
*/
|
|
266
|
+
/**
|
|
267
|
+
* @param {CometChat.BaseMessage} message
|
|
268
|
+
* @param {boolean} notification
|
|
269
|
+
*/
|
|
270
|
+
updateConversation(message: CometChat.BaseMessage, notification?: boolean): void;
|
|
271
|
+
updateDeliveredMessage(messageReceipt: CometChat.MessageReceipt): void;
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* Gets The Count of Unread Messages
|
|
275
|
+
* @param
|
|
276
|
+
*/
|
|
277
|
+
/**
|
|
278
|
+
* @param {any} conversation
|
|
279
|
+
* @param {any} operator
|
|
280
|
+
*/
|
|
281
|
+
makeUnreadMessageCount(conversation: CometChat.Conversation, operator?: any): number;
|
|
282
|
+
/**
|
|
283
|
+
* Changes detail of conversations
|
|
284
|
+
* @param
|
|
285
|
+
*/
|
|
286
|
+
/**
|
|
287
|
+
* @param {CometChat.BaseMessage} message
|
|
288
|
+
*/
|
|
289
|
+
makeConversation(message: CometChat.BaseMessage): Promise<unknown>;
|
|
290
|
+
/**
|
|
291
|
+
* Updates Conversation View when message is edited or deleted
|
|
292
|
+
*/
|
|
293
|
+
conversationEditedDeleted(message: CometChat.BaseMessage): void;
|
|
294
|
+
/**
|
|
295
|
+
* If User scrolls to the bottom of the current Conversation list than fetch next items of the Conversation list and append
|
|
296
|
+
* @param Event
|
|
297
|
+
*/
|
|
298
|
+
/**
|
|
299
|
+
* Plays Audio When Message is Received
|
|
300
|
+
*/
|
|
301
|
+
playAudio(): void;
|
|
302
|
+
/**
|
|
303
|
+
* @param {CometChat.Conversation|{}} conversation
|
|
304
|
+
*/
|
|
305
|
+
updateConversationList(conversation: CometChat.Conversation | null): void;
|
|
306
|
+
/**
|
|
307
|
+
* showing dialog for confirm and cancel
|
|
308
|
+
* @param {CometChat.Conversation|{}} conversation
|
|
309
|
+
*/
|
|
310
|
+
showConfirmationDialog: (conversation: CometChat.Conversation) => void;
|
|
311
|
+
onOptionClick(event: any, conversation: CometChat.Conversation): void;
|
|
312
|
+
/**
|
|
313
|
+
* show confirm dialog screen
|
|
314
|
+
* @param {CometChat.Conversation|{}} conversaton
|
|
315
|
+
*/
|
|
316
|
+
getActiveConversation(conversation: CometChat.Conversation): boolean | null;
|
|
317
|
+
/**
|
|
318
|
+
* handle confirm dialog response
|
|
319
|
+
* @param {string} value
|
|
320
|
+
*/
|
|
321
|
+
deleteSelectedConversation(): void;
|
|
322
|
+
updateLastMessage(message: CometChat.BaseMessage): void;
|
|
323
|
+
removeConversation(conversation: CometChat.Conversation): void;
|
|
324
|
+
styles: any;
|
|
325
|
+
subtitleStyle: (conversation: any) => {
|
|
326
|
+
font: string | undefined;
|
|
327
|
+
color: string | undefined;
|
|
328
|
+
};
|
|
329
|
+
itemThreadIndicatorStyle: () => {
|
|
330
|
+
textFont: string;
|
|
331
|
+
textColor: string | undefined;
|
|
332
|
+
};
|
|
333
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatConversationsComponent, never>;
|
|
334
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatConversationsComponent, "cometchat-conversations", never, { "subtitleView": "subtitleView"; "title": "title"; "options": "options"; "searchPlaceHolder": "searchPlaceHolder"; "disableUsersPresence": "disableUsersPresence"; "disableReceipt": "disableReceipt"; "disableTyping": "disableTyping"; "deliveredIcon": "deliveredIcon"; "readIcon": "readIcon"; "errorIcon": "errorIcon"; "datePattern": "datePattern"; "onError": "onError"; "sentIcon": "sentIcon"; "privateGroupIcon": "privateGroupIcon"; "protectedGroupIcon": "protectedGroupIcon"; "customSoundForMessages": "customSoundForMessages"; "activeConversation": "activeConversation"; "searchIconURL": "searchIconURL"; "hideSearch": "hideSearch"; "conversationsRequestBuilder": "conversationsRequestBuilder"; "emptyStateView": "emptyStateView"; "onSelect": "onSelect"; "loadingIconURL": "loadingIconURL"; "errorStateView": "errorStateView"; "loadingStateView": "loadingStateView"; "emptyStateText": "emptyStateText"; "errorStateText": "errorStateText"; "titleAlignment": "titleAlignment"; "listItemView": "listItemView"; "menu": "menu"; "hideSeparator": "hideSeparator"; "searchPlaceholder": "searchPlaceholder"; "hideError": "hideError"; "selectionMode": "selectionMode"; "disableSoundForMessages": "disableSoundForMessages"; "confirmDialogTitle": "confirmDialogTitle"; "confirmButtonText": "confirmButtonText"; "cancelButtonText": "cancelButtonText"; "confirmDialogMessage": "confirmDialogMessage"; "onItemClick": "onItemClick"; "deleteConversationDialogStyle": "deleteConversationDialogStyle"; "backdropStyle": "backdropStyle"; "badgeStyle": "badgeStyle"; "dateStyle": "dateStyle"; "conversationsStyle": "conversationsStyle"; "listItemStyle": "listItemStyle"; "statusIndicatorStyle": "statusIndicatorStyle"; "typingIndicatorText": "typingIndicatorText"; "threadIndicatorText": "threadIndicatorText"; "avatarStyle": "avatarStyle"; "receiptStyle": "receiptStyle"; "loggedInUser": "loggedInUser"; }, {}, never, never>;
|
|
335
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@cometchat/uikit-elements';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./cometchat-conversations/cometchat-conversations.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "../CometChatList/cometchat-list.module";
|
|
6
|
+
export declare class CometChatConversations {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatConversations, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatConversations, [typeof i1.CometChatConversationsComponent], [typeof i2.CommonModule, typeof i3.CometChatList], [typeof i1.CometChatConversationsComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatConversations>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges, ChangeDetectorRef, ElementRef } from "@angular/core";
|
|
2
|
+
import { CometChat } from "@cometchat-pro/chat";
|
|
3
|
+
import { CometChatMessagesComponent } from "../../CometChatMessages/cometchat-messages/cometchat-messages.component";
|
|
4
|
+
import { CometChatConversationsComponent } from "../../CometChatConversations/cometchat-conversations/cometchat-conversations.component";
|
|
5
|
+
import { WithMessagesStyle, MessagesConfiguration, ConversationsConfiguration } from '@cometchat/uikit-shared';
|
|
6
|
+
import { CometChatTheme } from '@cometchat/uikit-resources';
|
|
7
|
+
import '@cometchat/uikit-elements';
|
|
8
|
+
import { Subscription } from "rxjs";
|
|
9
|
+
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* CometChatConversationsWithMessagesComponent is a wrapper component for CometChatMessagesComponent and CometChatConversations component to show chats and messages in one screen
|
|
14
|
+
*
|
|
15
|
+
* @version 1.0.0
|
|
16
|
+
* @author CometChatTeam
|
|
17
|
+
* @copyright © 2022 CometChat Inc.
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class CometChatConversationsWithMessagesComponent implements OnInit, OnChanges {
|
|
21
|
+
private elementRef;
|
|
22
|
+
private ref;
|
|
23
|
+
private themeService;
|
|
24
|
+
conversationRef: CometChatConversationsComponent;
|
|
25
|
+
messageListRef: CometChatMessagesComponent;
|
|
26
|
+
user: CometChat.User | null;
|
|
27
|
+
group: CometChat.Group | null;
|
|
28
|
+
isMobileView: boolean;
|
|
29
|
+
messageText: string;
|
|
30
|
+
conversationsWithMessagesStyle: WithMessagesStyle;
|
|
31
|
+
messagesConfiguration: MessagesConfiguration;
|
|
32
|
+
conversationConfiguration: ConversationsConfiguration;
|
|
33
|
+
onError: ((error: any) => void) | null;
|
|
34
|
+
theme: CometChatTheme;
|
|
35
|
+
/**
|
|
36
|
+
* Properties for internal use
|
|
37
|
+
*/
|
|
38
|
+
loggedInUser: CometChat.User | null;
|
|
39
|
+
activeConversation: CometChat.Conversation | null;
|
|
40
|
+
labelStyle: any;
|
|
41
|
+
hideSearch: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Events
|
|
44
|
+
*/
|
|
45
|
+
ccGroupMemberAdded: Subscription;
|
|
46
|
+
ccGroupLeft: Subscription;
|
|
47
|
+
ccGroupMemberJoined: Subscription;
|
|
48
|
+
ccGroupMemberKicked: Subscription;
|
|
49
|
+
ccGroupMemberBanned: Subscription;
|
|
50
|
+
ccOwnershipChanged: Subscription;
|
|
51
|
+
ccGroupDeleted: Subscription;
|
|
52
|
+
ccConversationDeleted: Subscription;
|
|
53
|
+
constructor(elementRef: ElementRef, ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
54
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
55
|
+
onBack: () => void;
|
|
56
|
+
setWithMessagesStyle(): void;
|
|
57
|
+
onItemClick: ((conversation: CometChat.Conversation) => void);
|
|
58
|
+
ngAfterViewInit(): void;
|
|
59
|
+
updateBackdropHeight(): void;
|
|
60
|
+
setActiveChat(): void;
|
|
61
|
+
ngOnInit(): void;
|
|
62
|
+
ngOnDestroy(): void;
|
|
63
|
+
subscribeToEvents(): void;
|
|
64
|
+
unsubscribeToEvents(): void;
|
|
65
|
+
/**
|
|
66
|
+
* remove active chat screen after deleting the conversation.
|
|
67
|
+
* @param {CometChat.Conversation} conversation
|
|
68
|
+
*/
|
|
69
|
+
removeActiveChatList(conversation: CometChat.Conversation): void;
|
|
70
|
+
emptyMessageStyle: () => {
|
|
71
|
+
background: string | undefined;
|
|
72
|
+
height: string | undefined;
|
|
73
|
+
width: string;
|
|
74
|
+
border: string | undefined;
|
|
75
|
+
borderRadius: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
chatsWrapperStyles: () => {
|
|
78
|
+
height: string | undefined;
|
|
79
|
+
width: string | undefined;
|
|
80
|
+
border: string | undefined;
|
|
81
|
+
borderRadius: string | undefined;
|
|
82
|
+
background: string | undefined;
|
|
83
|
+
};
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatConversationsWithMessagesComponent, never>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatConversationsWithMessagesComponent, "cometchat-conversations-with-messages", never, { "user": "user"; "group": "group"; "isMobileView": "isMobileView"; "messageText": "messageText"; "conversationsWithMessagesStyle": "conversationsWithMessagesStyle"; "messagesConfiguration": "messagesConfiguration"; "conversationConfiguration": "conversationConfiguration"; "onError": "onError"; }, {}, never, never>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./cometchat-conversations-with-messages/cometchat-conversations-with-messages.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../CometChatConversations/cometchat-conversations.module";
|
|
5
|
+
import * as i4 from "../CometChatMessages/cometchat-messages.module";
|
|
6
|
+
import * as i5 from "@angular/platform-browser";
|
|
7
|
+
import * as i6 from "@angular/platform-browser/animations";
|
|
8
|
+
export declare class CometChatConversationsWithMessages {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatConversationsWithMessages, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatConversationsWithMessages, [typeof i1.CometChatConversationsWithMessagesComponent], [typeof i2.CommonModule, typeof i3.CometChatConversations, typeof i4.CometChatMessages, typeof i5.BrowserModule, typeof i6.BrowserAnimationsModule], [typeof i1.CometChatConversationsWithMessagesComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatConversationsWithMessages>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { OnInit, ChangeDetectorRef, TemplateRef, OnChanges, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { Subscription } from "rxjs";
|
|
3
|
+
import '@cometchat/uikit-elements';
|
|
4
|
+
import { AvatarStyle, ConfirmDialogStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
5
|
+
import { AddMembersConfiguration, BannedMembersConfiguration, DetailsStyle, GroupMembersConfiguration, SelectionMode, TransferOwnershipConfiguration, BaseStyle } from "@cometchat/uikit-shared";
|
|
6
|
+
import { CometChatDetailsOption, CometChatDetailsTemplate } from '@cometchat/uikit-resources';
|
|
7
|
+
import { CometChat } from "@cometchat-pro/chat";
|
|
8
|
+
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* CometChatDetailsComponent renders details of user or group.
|
|
13
|
+
*
|
|
14
|
+
* @version 1.0.0
|
|
15
|
+
* @author CometChatTeam
|
|
16
|
+
* @copyright © 2022 CometChat Inc.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class CometChatDetailsComponent implements OnInit, OnChanges {
|
|
20
|
+
private ref;
|
|
21
|
+
private themeService;
|
|
22
|
+
group: CometChat.Group;
|
|
23
|
+
user: CometChat.User;
|
|
24
|
+
title: string;
|
|
25
|
+
closeButtonIconURL: string;
|
|
26
|
+
hideProfile: boolean;
|
|
27
|
+
subtitleView: TemplateRef<any>;
|
|
28
|
+
customProfileView: TemplateRef<any>;
|
|
29
|
+
data: CometChatDetailsTemplate[];
|
|
30
|
+
disableUsersPresence: boolean;
|
|
31
|
+
privateGroupIcon: string;
|
|
32
|
+
protectedGroupIcon: string;
|
|
33
|
+
onError: ((error: any) => void) | null;
|
|
34
|
+
onClose: () => void;
|
|
35
|
+
leaveButtonText: string;
|
|
36
|
+
cancelButtonText: string;
|
|
37
|
+
confirmDialogMessage: string;
|
|
38
|
+
addMembersConfiguration: AddMembersConfiguration;
|
|
39
|
+
bannedMembersConfiguration: BannedMembersConfiguration;
|
|
40
|
+
groupMembersConfiguration: GroupMembersConfiguration;
|
|
41
|
+
transferOwnershipConfiguration: TransferOwnershipConfiguration;
|
|
42
|
+
leaveDialogStyle: ConfirmDialogStyle;
|
|
43
|
+
backiconurl: string;
|
|
44
|
+
statusIndicatorStyle: any;
|
|
45
|
+
backdropStyle: BaseStyle;
|
|
46
|
+
avatarStyle: AvatarStyle;
|
|
47
|
+
detailsStyle: DetailsStyle;
|
|
48
|
+
listItemStyle: ListItemStyle;
|
|
49
|
+
leaveGroupText: string;
|
|
50
|
+
leaveGroupMessage: string;
|
|
51
|
+
transferText: string;
|
|
52
|
+
transferConfirm: string;
|
|
53
|
+
defaultTemplate: CometChatDetailsTemplate[];
|
|
54
|
+
loggedInUser: CometChat.User | null;
|
|
55
|
+
openViewMembersPage: boolean;
|
|
56
|
+
openBannedMembersPage: boolean;
|
|
57
|
+
openAddMembersPage: boolean;
|
|
58
|
+
confirmLeaveGroupModal: boolean;
|
|
59
|
+
openTransferOwnershipModal: boolean;
|
|
60
|
+
selectionmodeEnum: SelectionMode;
|
|
61
|
+
ccGroupMemberAdded: Subscription;
|
|
62
|
+
ccGroupMemberJoined: Subscription;
|
|
63
|
+
ccGroupMemberKicked: Subscription;
|
|
64
|
+
ccGroupMemberBanned: Subscription;
|
|
65
|
+
ccOwnershipChanged: Subscription;
|
|
66
|
+
statusColor: any;
|
|
67
|
+
closeButtonStyle: any;
|
|
68
|
+
buttonStyle: any;
|
|
69
|
+
dividerStyle: any;
|
|
70
|
+
getTitleStyle(): {
|
|
71
|
+
textFont: string;
|
|
72
|
+
textColor: string | undefined;
|
|
73
|
+
};
|
|
74
|
+
getCustomOptionView(option: CometChatDetailsOption): any;
|
|
75
|
+
subtitleText: string;
|
|
76
|
+
userListenerId: string;
|
|
77
|
+
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
78
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
79
|
+
getTemplate(): void;
|
|
80
|
+
removeListener(): void;
|
|
81
|
+
ngOnDestroy(): void;
|
|
82
|
+
ngOnInit(): void;
|
|
83
|
+
subscribeToEvents(): void;
|
|
84
|
+
unsubscribeToEvents(): void;
|
|
85
|
+
checkStatusType: () => any;
|
|
86
|
+
updateSubtitle(): void;
|
|
87
|
+
getButtonStyle(option: CometChatDetailsOption): {
|
|
88
|
+
height: string;
|
|
89
|
+
width: string;
|
|
90
|
+
border: string;
|
|
91
|
+
borderRadius: string;
|
|
92
|
+
buttonTextFont: string | undefined;
|
|
93
|
+
buttonTextColor: string | undefined;
|
|
94
|
+
background: string;
|
|
95
|
+
};
|
|
96
|
+
checkGroupType(): string;
|
|
97
|
+
updateUserStatus(user: CometChat.User): void;
|
|
98
|
+
attachListeners(): void;
|
|
99
|
+
getSectionHeaderStyle(template: CometChatDetailsTemplate): {
|
|
100
|
+
textFont: string | undefined;
|
|
101
|
+
textColor: string | undefined;
|
|
102
|
+
};
|
|
103
|
+
onOptionClick(option: CometChatDetailsOption): void;
|
|
104
|
+
onLeaveClick(): void;
|
|
105
|
+
createActionMessage(actionOn: CometChat.GroupMember, action: string): CometChat.Action;
|
|
106
|
+
createUserLeftAction(actionOn: CometChat.User, action: string): CometChat.Action;
|
|
107
|
+
onCloseClick: () => void;
|
|
108
|
+
onCancelClick(): void;
|
|
109
|
+
blockUser(): void;
|
|
110
|
+
unBlockUser(): void;
|
|
111
|
+
viewMembers: () => void;
|
|
112
|
+
addMembers: () => void;
|
|
113
|
+
bannedMembers: () => void;
|
|
114
|
+
leaveGroup(): void;
|
|
115
|
+
deleteGroup(): void;
|
|
116
|
+
openTransferOwnership: () => void;
|
|
117
|
+
onCloseDetails(): void;
|
|
118
|
+
subtitleStyle: () => {
|
|
119
|
+
textFont: string | undefined;
|
|
120
|
+
textColor: string | undefined;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* @param {CometChat.Group} group
|
|
124
|
+
*/
|
|
125
|
+
getGroupIcon: (group: CometChat.Group) => string | null | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* @param {CometChat.Group} group
|
|
128
|
+
*/
|
|
129
|
+
getStatusIndicatorColor(group: CometChat.Group): any;
|
|
130
|
+
getTemplateOptions: (template: CometChatDetailsTemplate) => CometChatDetailsOption[];
|
|
131
|
+
setThemeStyle(): void;
|
|
132
|
+
setConfirmDialogStyle(): void;
|
|
133
|
+
setListItemStyle(): void;
|
|
134
|
+
setAvatarStyle(): void;
|
|
135
|
+
setStatusStyle(): void;
|
|
136
|
+
setDetailsStyle(): void;
|
|
137
|
+
wrapperStyle: () => {
|
|
138
|
+
width: string | undefined;
|
|
139
|
+
height: string | undefined;
|
|
140
|
+
border: string | undefined;
|
|
141
|
+
borderRadius: string | undefined;
|
|
142
|
+
background: string | undefined;
|
|
143
|
+
};
|
|
144
|
+
marginStyle: () => {
|
|
145
|
+
padding: string | undefined;
|
|
146
|
+
};
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatDetailsComponent, never>;
|
|
148
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatDetailsComponent, "cometchat-details", never, { "group": "group"; "user": "user"; "title": "title"; "closeButtonIconURL": "closeButtonIconURL"; "hideProfile": "hideProfile"; "subtitleView": "subtitleView"; "customProfileView": "customProfileView"; "data": "data"; "disableUsersPresence": "disableUsersPresence"; "privateGroupIcon": "privateGroupIcon"; "protectedGroupIcon": "protectedGroupIcon"; "onError": "onError"; "onClose": "onClose"; "leaveButtonText": "leaveButtonText"; "cancelButtonText": "cancelButtonText"; "confirmDialogMessage": "confirmDialogMessage"; "addMembersConfiguration": "addMembersConfiguration"; "bannedMembersConfiguration": "bannedMembersConfiguration"; "groupMembersConfiguration": "groupMembersConfiguration"; "transferOwnershipConfiguration": "transferOwnershipConfiguration"; "leaveDialogStyle": "leaveDialogStyle"; "statusIndicatorStyle": "statusIndicatorStyle"; "backdropStyle": "backdropStyle"; "avatarStyle": "avatarStyle"; "detailsStyle": "detailsStyle"; "listItemStyle": "listItemStyle"; }, {}, never, never>;
|
|
149
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./cometchat-details/cometchat-details.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../CometChatAddMembers/cometchat-add-members.module";
|
|
5
|
+
import * as i4 from "../CometChatBannedMembers/cometchat-banned-members.module";
|
|
6
|
+
import * as i5 from "../CometChatGroupMembers/cometchat-group-members.module";
|
|
7
|
+
import * as i6 from "../CometChatTransferOwnership/cometchat-transfer-ownership.module";
|
|
8
|
+
export declare class CometChatDetails {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatDetails, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatDetails, [typeof i1.CometChatDetailsComponent], [typeof i2.CommonModule, typeof i3.CometChatAddMembers, typeof i4.CometChatBannedMembers, typeof i5.CometChatGroupMembers, typeof i6.CometChatTransferOwnership], [typeof i1.CometChatDetailsComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatDetails>;
|
|
12
|
+
}
|