@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,145 @@
|
|
|
1
|
+
import { OnInit, ChangeDetectorRef, TemplateRef } from "@angular/core";
|
|
2
|
+
import { CometChat } from "@cometchat-pro/chat";
|
|
3
|
+
import { AvatarStyle, ListItemStyle, ChangeScopeStyle, MenuListStyle } from '@cometchat/uikit-elements';
|
|
4
|
+
import { SelectionMode, States, TitleAlignment, GroupMembersStyle, ListStyle, BaseStyle } from "@cometchat/uikit-shared";
|
|
5
|
+
import { CometChatOption } from '@cometchat/uikit-resources';
|
|
6
|
+
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* CometChatGroupMembersComponent is used to render list of group members
|
|
11
|
+
*
|
|
12
|
+
* @version 1.0.0
|
|
13
|
+
* @author CometChatTeam
|
|
14
|
+
* @copyright © 2022 CometChat Inc.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class CometChatGroupMembersComponent implements OnInit {
|
|
18
|
+
private ref;
|
|
19
|
+
private themeService;
|
|
20
|
+
groupMemberRequestBuilder: CometChat.GroupMembersRequestBuilder;
|
|
21
|
+
searchRequestBuilder: CometChat.GroupMembersRequestBuilder;
|
|
22
|
+
subtitleView: TemplateRef<any>;
|
|
23
|
+
listItemView: TemplateRef<any>;
|
|
24
|
+
tailView: TemplateRef<any>;
|
|
25
|
+
disableUsersPresence: boolean;
|
|
26
|
+
menu: TemplateRef<any>;
|
|
27
|
+
options: ((member: CometChat.GroupMember) => CometChatOption[]) | null;
|
|
28
|
+
backButtonIconURL: string;
|
|
29
|
+
closeButtonIconURL: string;
|
|
30
|
+
showBackButton: boolean;
|
|
31
|
+
hideSeparator: boolean;
|
|
32
|
+
selectionMode: SelectionMode;
|
|
33
|
+
searchPlaceholder: string;
|
|
34
|
+
searchIconURL: string;
|
|
35
|
+
hideSearch: boolean;
|
|
36
|
+
title: string;
|
|
37
|
+
onError: ((error: any) => void) | null;
|
|
38
|
+
backdropStyle: BaseStyle;
|
|
39
|
+
onBack: () => void;
|
|
40
|
+
onClose: () => void;
|
|
41
|
+
onSelect: (groupMember: CometChat.GroupMember) => void;
|
|
42
|
+
group: CometChat.Group;
|
|
43
|
+
emptyStateView: TemplateRef<any>;
|
|
44
|
+
errorStateView: TemplateRef<any>;
|
|
45
|
+
loadingIconURL: string;
|
|
46
|
+
loadingStateView: TemplateRef<any>;
|
|
47
|
+
emptyStateText: string;
|
|
48
|
+
errorStateText: string;
|
|
49
|
+
titleAlignment: TitleAlignment;
|
|
50
|
+
dropdownIconURL: string;
|
|
51
|
+
statusIndicatorStyle: any;
|
|
52
|
+
avatarStyle: AvatarStyle;
|
|
53
|
+
groupMemberStyle: GroupMembersStyle;
|
|
54
|
+
groupScopeStyle: ChangeScopeStyle;
|
|
55
|
+
listItemStyle: ListItemStyle;
|
|
56
|
+
listStyle: ListStyle;
|
|
57
|
+
menuListStyle: MenuListStyle;
|
|
58
|
+
modalStyle: any;
|
|
59
|
+
limit: number;
|
|
60
|
+
moreIconURL: string;
|
|
61
|
+
searchKeyword: string;
|
|
62
|
+
onScrolledToBottom: any;
|
|
63
|
+
isString: (data: any) => boolean;
|
|
64
|
+
isArray: (data: any) => boolean;
|
|
65
|
+
getOptions: (member: CometChat.GroupMember) => string | CometChatOption[];
|
|
66
|
+
selectedMember: CometChat.GroupMember | null;
|
|
67
|
+
titleAlignmentEnum: typeof TitleAlignment;
|
|
68
|
+
selectionmodeEnum: typeof SelectionMode;
|
|
69
|
+
groupsRequest: any;
|
|
70
|
+
state: States;
|
|
71
|
+
timeout: any;
|
|
72
|
+
groupMembers: CometChat.GroupMember[];
|
|
73
|
+
scopes: string[];
|
|
74
|
+
membersListenerId: string;
|
|
75
|
+
loggedInUser: CometChat.User | null;
|
|
76
|
+
changeScope: boolean;
|
|
77
|
+
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
78
|
+
memberScope: any[];
|
|
79
|
+
membersList: CometChat.GroupMember[];
|
|
80
|
+
closeClicked(): void;
|
|
81
|
+
backClicked(): void;
|
|
82
|
+
ngOnInit(): void;
|
|
83
|
+
ngOnDestroy(): void;
|
|
84
|
+
/**
|
|
85
|
+
* @param {CometChat.GroupMember} member
|
|
86
|
+
*/
|
|
87
|
+
getStatusIndicatorColor: (member: CometChat.GroupMember) => string | null | undefined;
|
|
88
|
+
changeMemberScope(event: any): void;
|
|
89
|
+
handleMenuAction: (menu: any, groupMember: CometChat.GroupMember) => void;
|
|
90
|
+
blockMember: (member: CometChat.GroupMember) => void;
|
|
91
|
+
createActionMessage(actionOn: CometChat.GroupMember, action: string): CometChat.Action;
|
|
92
|
+
kickMember: (member: CometChat.GroupMember) => void;
|
|
93
|
+
/**
|
|
94
|
+
* @param {CometChat.User} member
|
|
95
|
+
*/
|
|
96
|
+
updateMemberStatus: (member: CometChat.User) => void;
|
|
97
|
+
updateMember: (member: CometChat.GroupMember | null) => void;
|
|
98
|
+
attachListeners(): void;
|
|
99
|
+
removeListener(): void;
|
|
100
|
+
addRemoveMember: (member: CometChat.GroupMember) => void;
|
|
101
|
+
fetchNextGroupMembers: () => void;
|
|
102
|
+
getRequestBuilder(): CometChat.GroupMembersRequest;
|
|
103
|
+
/**
|
|
104
|
+
* @param {string} key
|
|
105
|
+
*/
|
|
106
|
+
onSearch: (key: string) => void;
|
|
107
|
+
setThemeStyle(): void;
|
|
108
|
+
setGroupMembersStyle(): void;
|
|
109
|
+
setListItemStyle(): void;
|
|
110
|
+
setAvatarStyle(): void;
|
|
111
|
+
setStatusStyle(): void;
|
|
112
|
+
setScopeStyle(): void;
|
|
113
|
+
membersStyle: () => {
|
|
114
|
+
padding: string | undefined;
|
|
115
|
+
};
|
|
116
|
+
backButtonStyle: () => {
|
|
117
|
+
height: string;
|
|
118
|
+
width: string;
|
|
119
|
+
border: string;
|
|
120
|
+
borderRadius: string;
|
|
121
|
+
background: string;
|
|
122
|
+
buttonIconTint: string | undefined;
|
|
123
|
+
};
|
|
124
|
+
closeButtonStyle: () => {
|
|
125
|
+
height: string;
|
|
126
|
+
width: string;
|
|
127
|
+
border: string;
|
|
128
|
+
borderRadius: string;
|
|
129
|
+
background: string;
|
|
130
|
+
buttonIconTint: string | undefined;
|
|
131
|
+
};
|
|
132
|
+
wrapperStyle: () => {
|
|
133
|
+
height: string | undefined;
|
|
134
|
+
width: string | undefined;
|
|
135
|
+
background: string | undefined;
|
|
136
|
+
border: string | undefined;
|
|
137
|
+
borderRadius: string | undefined;
|
|
138
|
+
};
|
|
139
|
+
getScopeStyle: () => {
|
|
140
|
+
textFont: string | undefined;
|
|
141
|
+
textColor: string | undefined;
|
|
142
|
+
};
|
|
143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatGroupMembersComponent, never>;
|
|
144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatGroupMembersComponent, "cometchat-group-members", never, { "groupMemberRequestBuilder": "groupMemberRequestBuilder"; "searchRequestBuilder": "searchRequestBuilder"; "subtitleView": "subtitleView"; "listItemView": "listItemView"; "tailView": "tailView"; "disableUsersPresence": "disableUsersPresence"; "menu": "menu"; "options": "options"; "backButtonIconURL": "backButtonIconURL"; "closeButtonIconURL": "closeButtonIconURL"; "showBackButton": "showBackButton"; "hideSeparator": "hideSeparator"; "selectionMode": "selectionMode"; "searchPlaceholder": "searchPlaceholder"; "searchIconURL": "searchIconURL"; "hideSearch": "hideSearch"; "title": "title"; "onError": "onError"; "backdropStyle": "backdropStyle"; "onBack": "onBack"; "onClose": "onClose"; "onSelect": "onSelect"; "group": "group"; "emptyStateView": "emptyStateView"; "errorStateView": "errorStateView"; "loadingIconURL": "loadingIconURL"; "loadingStateView": "loadingStateView"; "emptyStateText": "emptyStateText"; "errorStateText": "errorStateText"; "titleAlignment": "titleAlignment"; "dropdownIconURL": "dropdownIconURL"; "statusIndicatorStyle": "statusIndicatorStyle"; "avatarStyle": "avatarStyle"; "groupMemberStyle": "groupMemberStyle"; "groupScopeStyle": "groupScopeStyle"; "listItemStyle": "listItemStyle"; }, {}, never, never>;
|
|
145
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '@cometchat/uikit-elements';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./cometchat-group-members/cometchat-group-members.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@angular/forms";
|
|
6
|
+
import * as i4 from "../CometChatMessageHeader/cometchat-message-header.module";
|
|
7
|
+
import * as i5 from "../CometChatUsers/cometchat-users.module";
|
|
8
|
+
import * as i6 from "../CometChatList/cometchat-list.module";
|
|
9
|
+
export declare class CometChatGroupMembers {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatGroupMembers, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatGroupMembers, [typeof i1.CometChatGroupMembersComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.CometChatMessageHeader, typeof i5.CometChatUsers, typeof i6.CometChatList], [typeof i1.CometChatGroupMembersComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatGroupMembers>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { CometChat } from '@cometchat-pro/chat';
|
|
3
|
+
import { States, TitleAlignment, SelectionMode, GroupsStyle, ListStyle } from "@cometchat/uikit-shared";
|
|
4
|
+
import { AvatarStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
6
|
+
import { CometChatThemeService } from '../../CometChatTheme.service';
|
|
7
|
+
import { CometChatOption } from '@cometchat/uikit-resources';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* CometChatGroups is a wrapper component which consists of CometChatListBaseComponent and CometChatGroupListComponent.
|
|
12
|
+
*
|
|
13
|
+
* @version 1.0.0
|
|
14
|
+
* @author CometChatTeam
|
|
15
|
+
* @copyright © 2022 CometChat Inc.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare class CometChatGroupsComponent implements OnInit, OnChanges {
|
|
19
|
+
private ref;
|
|
20
|
+
private themeService;
|
|
21
|
+
groupsRequestBuilder: CometChat.GroupsRequestBuilder;
|
|
22
|
+
searchRequestBuilder: CometChat.GroupsRequestBuilder;
|
|
23
|
+
subtitleView: TemplateRef<any>;
|
|
24
|
+
listItemView: TemplateRef<any>;
|
|
25
|
+
menu: TemplateRef<any>;
|
|
26
|
+
options: ((member: CometChat.Group) => CometChatOption[]) | null;
|
|
27
|
+
activeGroup: CometChat.Group | null;
|
|
28
|
+
hideSeparator: boolean;
|
|
29
|
+
selectionMode: SelectionMode;
|
|
30
|
+
searchPlaceholder: string;
|
|
31
|
+
hideError: boolean;
|
|
32
|
+
searchIconURL: string;
|
|
33
|
+
hideSearch: boolean;
|
|
34
|
+
title: string;
|
|
35
|
+
onError: (error: any) => void;
|
|
36
|
+
onSelect: (group: CometChat.Group) => void;
|
|
37
|
+
emptyStateView: TemplateRef<any>;
|
|
38
|
+
errorStateView: TemplateRef<any>;
|
|
39
|
+
loadingIconURL: string;
|
|
40
|
+
privateGroupIcon: string;
|
|
41
|
+
protectedGroupIcon: string;
|
|
42
|
+
loadingStateView: TemplateRef<any>;
|
|
43
|
+
emptyStateText: string;
|
|
44
|
+
errorStateText: string;
|
|
45
|
+
titleAlignment: TitleAlignment;
|
|
46
|
+
selectionmodeEnum: typeof SelectionMode;
|
|
47
|
+
state: States;
|
|
48
|
+
statusIndicatorStyle: any;
|
|
49
|
+
avatarStyle: AvatarStyle;
|
|
50
|
+
groupsStyle: GroupsStyle;
|
|
51
|
+
listItemStyle: ListItemStyle;
|
|
52
|
+
onItemClick: (group: CometChat.Group) => void;
|
|
53
|
+
groupsRequest: any;
|
|
54
|
+
listStyle: ListStyle;
|
|
55
|
+
limit: number;
|
|
56
|
+
searchKeyword: string;
|
|
57
|
+
timeout: any;
|
|
58
|
+
groupsList: CometChat.Group[];
|
|
59
|
+
groupsListenerId: string;
|
|
60
|
+
loggedInUser: CometChat.User | null;
|
|
61
|
+
statusColor: any;
|
|
62
|
+
onScrolledToBottom: any;
|
|
63
|
+
ccGroupMemberAdded: Subscription;
|
|
64
|
+
ccGroupLeft: Subscription;
|
|
65
|
+
ccGroupMemberJoined: Subscription;
|
|
66
|
+
ccGroupMemberKicked: Subscription;
|
|
67
|
+
ccGroupMemberBanned: Subscription;
|
|
68
|
+
ccOwnershipChanged: Subscription;
|
|
69
|
+
ccGroupDeleted: Subscription;
|
|
70
|
+
ccGroupCreated: Subscription;
|
|
71
|
+
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
72
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
73
|
+
ngOnInit(): void;
|
|
74
|
+
subscribeToEvents(): void;
|
|
75
|
+
unsubscribeToEvents(): void;
|
|
76
|
+
ngOnDestroy(): void;
|
|
77
|
+
/**
|
|
78
|
+
* @param {CometChat.Group} group
|
|
79
|
+
*/
|
|
80
|
+
updateGroup(group: CometChat.Group): void;
|
|
81
|
+
/**
|
|
82
|
+
* @param {CometChat.Group} group
|
|
83
|
+
*/
|
|
84
|
+
getGroupIcon: (group: CometChat.Group) => string | null | undefined;
|
|
85
|
+
attachListeners(): void;
|
|
86
|
+
removeListener(): void;
|
|
87
|
+
fetchNextGroupList: () => void;
|
|
88
|
+
/**
|
|
89
|
+
* @param {CometChat.Group} group
|
|
90
|
+
*/
|
|
91
|
+
onClick: (group: CometChat.Group) => void;
|
|
92
|
+
/**
|
|
93
|
+
* @param {CometChat.Group} group
|
|
94
|
+
*/
|
|
95
|
+
getStatusIndicatorColor(group: CometChat.Group): any;
|
|
96
|
+
/**
|
|
97
|
+
* @param {CometChat.Group} group
|
|
98
|
+
*/
|
|
99
|
+
getMemberCount: (group: CometChat.Group) => string;
|
|
100
|
+
/**
|
|
101
|
+
* @param {CometChat.Group} group
|
|
102
|
+
*/
|
|
103
|
+
getActiveGroup: (group: CometChat.Group) => boolean;
|
|
104
|
+
getRequestBuilder(): CometChat.GroupsRequest;
|
|
105
|
+
/**
|
|
106
|
+
* @param {CometChat.Group} group
|
|
107
|
+
*/
|
|
108
|
+
removeGroup(group: CometChat.Group): void;
|
|
109
|
+
/**
|
|
110
|
+
* addGroup
|
|
111
|
+
* @param group
|
|
112
|
+
*/
|
|
113
|
+
addGroup(group: CometChat.Group): void;
|
|
114
|
+
/**
|
|
115
|
+
* @param {string} key
|
|
116
|
+
*/
|
|
117
|
+
onSearch: (key: string) => void;
|
|
118
|
+
groupStyle: () => {
|
|
119
|
+
height: string | undefined;
|
|
120
|
+
width: string | undefined;
|
|
121
|
+
background: string | undefined;
|
|
122
|
+
border: string | undefined;
|
|
123
|
+
borderRadius: string | undefined;
|
|
124
|
+
};
|
|
125
|
+
setThemeStyle(): void;
|
|
126
|
+
setListItemStyle(): void;
|
|
127
|
+
setAvatarStyle(): void;
|
|
128
|
+
setStatusStyle(): void;
|
|
129
|
+
setGroupsStyle(): void;
|
|
130
|
+
subtitleStyle: () => {
|
|
131
|
+
font: string | undefined;
|
|
132
|
+
color: string | undefined;
|
|
133
|
+
};
|
|
134
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatGroupsComponent, never>;
|
|
135
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatGroupsComponent, "cometchat-groups", never, { "groupsRequestBuilder": "groupsRequestBuilder"; "searchRequestBuilder": "searchRequestBuilder"; "subtitleView": "subtitleView"; "listItemView": "listItemView"; "menu": "menu"; "options": "options"; "activeGroup": "activeGroup"; "hideSeparator": "hideSeparator"; "selectionMode": "selectionMode"; "searchPlaceholder": "searchPlaceholder"; "hideError": "hideError"; "searchIconURL": "searchIconURL"; "hideSearch": "hideSearch"; "title": "title"; "onError": "onError"; "onSelect": "onSelect"; "emptyStateView": "emptyStateView"; "errorStateView": "errorStateView"; "loadingIconURL": "loadingIconURL"; "privateGroupIcon": "privateGroupIcon"; "protectedGroupIcon": "protectedGroupIcon"; "loadingStateView": "loadingStateView"; "emptyStateText": "emptyStateText"; "errorStateText": "errorStateText"; "titleAlignment": "titleAlignment"; "statusIndicatorStyle": "statusIndicatorStyle"; "avatarStyle": "avatarStyle"; "groupsStyle": "groupsStyle"; "listItemStyle": "listItemStyle"; "onItemClick": "onItemClick"; }, {}, never, never>;
|
|
136
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "@cometchat/uikit-elements";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./cometchat-groups/cometchat-groups.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "../CometChatList/cometchat-list.module";
|
|
6
|
+
export declare class CometChatGroups {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatGroups, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatGroups, [typeof i1.CometChatGroupsComponent], [typeof i2.CommonModule, typeof i3.CometChatList], [typeof i1.CometChatGroupsComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatGroups>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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, GroupsConfiguration, CreateGroupConfiguration, JoinGroupConfiguration, MessageHeaderStyle } from '@cometchat/uikit-shared';
|
|
6
|
+
import '@cometchat/uikit-elements';
|
|
7
|
+
import { Subscription } from "rxjs";
|
|
8
|
+
import { CreateGroupStyle, JoinGroupStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
9
|
+
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
10
|
+
import { CometChatTheme } from "@cometchat/uikit-resources";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* CometChatGroupsWithMessagesComponent is a wrapper component for CometChatMessagesComponent and CometChatConversations component to show chats and messages in one screen
|
|
15
|
+
*
|
|
16
|
+
* @version 1.0.0
|
|
17
|
+
* @author CometChatTeam
|
|
18
|
+
* @copyright © 2022 CometChat Inc.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare class CometChatGroupsWithMessagesComponent implements OnInit, OnChanges {
|
|
22
|
+
private elementRef;
|
|
23
|
+
private ref;
|
|
24
|
+
private themeService;
|
|
25
|
+
groupRef: CometChatConversationsComponent;
|
|
26
|
+
messageListRef: CometChatMessagesComponent;
|
|
27
|
+
group: CometChat.Group | null;
|
|
28
|
+
isMobileView: boolean;
|
|
29
|
+
hideCreateGroup: boolean;
|
|
30
|
+
messageText: string;
|
|
31
|
+
groupsWithMessagesStyle: WithMessagesStyle;
|
|
32
|
+
messagesConfiguration: MessagesConfiguration;
|
|
33
|
+
createGroupConfiguration: CreateGroupConfiguration;
|
|
34
|
+
joinGroupConfiguration: JoinGroupConfiguration;
|
|
35
|
+
groupsConfiguration: GroupsConfiguration;
|
|
36
|
+
onError: ((error: any) => void) | null;
|
|
37
|
+
theme: CometChatTheme;
|
|
38
|
+
backdropStyle: any;
|
|
39
|
+
createGroupStyle: CreateGroupStyle;
|
|
40
|
+
joinGroupStyle: JoinGroupStyle;
|
|
41
|
+
messageHeaderStyle: MessageHeaderStyle;
|
|
42
|
+
listItemStyle: ListItemStyle;
|
|
43
|
+
/**
|
|
44
|
+
* Properties for internal use
|
|
45
|
+
*/
|
|
46
|
+
createIconURL: string;
|
|
47
|
+
loggedInUser: CometChat.User | null;
|
|
48
|
+
createGroupButtonStyle: any;
|
|
49
|
+
labelStyle: any;
|
|
50
|
+
openCreateGroupPage: boolean;
|
|
51
|
+
openPasswordModal: boolean;
|
|
52
|
+
protectedGroup: CometChat.Group | null;
|
|
53
|
+
/**
|
|
54
|
+
* Events
|
|
55
|
+
*/
|
|
56
|
+
ccGroupMemberAdded: Subscription;
|
|
57
|
+
ccGroupLeft: Subscription;
|
|
58
|
+
ccGroupMemberJoined: Subscription;
|
|
59
|
+
ccGroupMemberKicked: Subscription;
|
|
60
|
+
ccGroupMemberBanned: Subscription;
|
|
61
|
+
ccOwnershipChanged: Subscription;
|
|
62
|
+
ccGroupDeleted: Subscription;
|
|
63
|
+
ccGroupCreated: Subscription;
|
|
64
|
+
constructor(elementRef: ElementRef, ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
65
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
66
|
+
ngAfterViewInit(): void;
|
|
67
|
+
onBack: () => void;
|
|
68
|
+
openCreateGroup(): void;
|
|
69
|
+
closeCreateGroup: () => void;
|
|
70
|
+
closeJoinGroup: () => void;
|
|
71
|
+
onItemClick: ((group: CometChat.Group) => void);
|
|
72
|
+
updateBackdropHeight(): void;
|
|
73
|
+
ngOnInit(): void;
|
|
74
|
+
setWithMessagesStyle(): void;
|
|
75
|
+
setCreateGroupStyles: () => void;
|
|
76
|
+
setJoinGroupStyles: () => void;
|
|
77
|
+
setHeadersStyle(): void;
|
|
78
|
+
setListItemStyle(): void;
|
|
79
|
+
ngOnDestroy(): void;
|
|
80
|
+
onGroupJoined: (event: any) => void;
|
|
81
|
+
updatedCreatedGroup(event: any): void;
|
|
82
|
+
subscribeToEvents(): void;
|
|
83
|
+
unsubscribeToEvents(): void;
|
|
84
|
+
emptyMessageStyle: () => {
|
|
85
|
+
background: string | undefined;
|
|
86
|
+
height: string | undefined;
|
|
87
|
+
width: string;
|
|
88
|
+
border: string | undefined;
|
|
89
|
+
borderRadius: string | undefined;
|
|
90
|
+
};
|
|
91
|
+
groupsWrapperStyles: () => {
|
|
92
|
+
height: string | undefined;
|
|
93
|
+
width: string | undefined;
|
|
94
|
+
border: string | undefined;
|
|
95
|
+
borderRadius: string | undefined;
|
|
96
|
+
background: string | undefined;
|
|
97
|
+
};
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatGroupsWithMessagesComponent, never>;
|
|
99
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatGroupsWithMessagesComponent, "cometchat-groups-with-messages", never, { "group": "group"; "isMobileView": "isMobileView"; "hideCreateGroup": "hideCreateGroup"; "messageText": "messageText"; "groupsWithMessagesStyle": "groupsWithMessagesStyle"; "messagesConfiguration": "messagesConfiguration"; "createGroupConfiguration": "createGroupConfiguration"; "joinGroupConfiguration": "joinGroupConfiguration"; "groupsConfiguration": "groupsConfiguration"; "onError": "onError"; }, {}, never, never>;
|
|
100
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./cometchat-groups-with-messages/cometchat-groups-with-messages.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../CometChatGroups/cometchat-groups.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
|
+
import * as i7 from "../CometChatMessageHeader/cometchat-message-header.module";
|
|
9
|
+
export declare class CometChatGroupsWithMessages {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatGroupsWithMessages, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatGroupsWithMessages, [typeof i1.CometChatGroupsWithMessagesComponent], [typeof i2.CommonModule, typeof i3.CometChatGroups, typeof i4.CometChatMessages, typeof i5.BrowserModule, typeof i6.BrowserAnimationsModule, typeof i7.CometChatMessageHeader], [typeof i1.CometChatGroupsWithMessagesComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatGroupsWithMessages>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ElementRef, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { SearchInputStyle } from '@cometchat/uikit-elements';
|
|
3
|
+
import { ListStyle, States, TitleAlignment } from '@cometchat/uikit-shared';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CometchatListComponent implements OnInit {
|
|
6
|
+
listScroll: ElementRef;
|
|
7
|
+
bottom: ElementRef;
|
|
8
|
+
top: ElementRef;
|
|
9
|
+
listItemView: TemplateRef<any>;
|
|
10
|
+
onScrolledToBottom: () => void;
|
|
11
|
+
onScrolledToTop: () => void;
|
|
12
|
+
list: any;
|
|
13
|
+
onSearch: (text: string) => void;
|
|
14
|
+
searchText: string;
|
|
15
|
+
searchIconURL: String;
|
|
16
|
+
listStyle: ListStyle;
|
|
17
|
+
searchPlaceholderText: String;
|
|
18
|
+
hideSearch: boolean;
|
|
19
|
+
hideError: boolean;
|
|
20
|
+
title: string;
|
|
21
|
+
titleAlignment: TitleAlignment;
|
|
22
|
+
errorStateView: TemplateRef<any>;
|
|
23
|
+
loadingStateView: TemplateRef<any>;
|
|
24
|
+
emptyStateView: TemplateRef<any>;
|
|
25
|
+
state: States;
|
|
26
|
+
errorStateText: string;
|
|
27
|
+
emptyStateText: string;
|
|
28
|
+
loadingIconURL: string;
|
|
29
|
+
showSectionHeader: boolean;
|
|
30
|
+
sectionHeaderField: string;
|
|
31
|
+
states: typeof States;
|
|
32
|
+
numberOfTopScroll: number;
|
|
33
|
+
searchStyle: SearchInputStyle;
|
|
34
|
+
iconStyle: any;
|
|
35
|
+
constructor();
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
ngAfterViewInit(): void;
|
|
38
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
39
|
+
/**
|
|
40
|
+
* listening to bottom scroll using intersection observer
|
|
41
|
+
*/
|
|
42
|
+
ioBottom: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* listening to top scroll using intersection observer
|
|
45
|
+
*/
|
|
46
|
+
ioTop: () => void;
|
|
47
|
+
searchEvent: (event: any) => void;
|
|
48
|
+
/**
|
|
49
|
+
* styling part
|
|
50
|
+
*/
|
|
51
|
+
chatsListStyle: () => {
|
|
52
|
+
height: string | undefined;
|
|
53
|
+
background: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
messageContainerStyle: () => {
|
|
56
|
+
width: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
errorStyle: () => {
|
|
59
|
+
textFont: string | undefined;
|
|
60
|
+
textColor: string | undefined;
|
|
61
|
+
};
|
|
62
|
+
emptyStyle: () => {
|
|
63
|
+
textFont: string | undefined;
|
|
64
|
+
textColor: string | undefined;
|
|
65
|
+
};
|
|
66
|
+
wrapperStyle: () => {
|
|
67
|
+
height: string | undefined;
|
|
68
|
+
width: string | undefined;
|
|
69
|
+
background: string | undefined;
|
|
70
|
+
border: string | undefined;
|
|
71
|
+
borderRadius: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
headerTitle: () => any;
|
|
74
|
+
sectionHeaderStyle: () => {
|
|
75
|
+
font: string | undefined;
|
|
76
|
+
color: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
headerStyle: () => {
|
|
79
|
+
height: string;
|
|
80
|
+
marginBottom: string;
|
|
81
|
+
};
|
|
82
|
+
listStyles: () => {
|
|
83
|
+
height: string;
|
|
84
|
+
};
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometchatListComponent, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometchatListComponent, "cometchat-list", never, { "listItemView": "listItemView"; "onScrolledToBottom": "onScrolledToBottom"; "onScrolledToTop": "onScrolledToTop"; "list": "list"; "onSearch": "onSearch"; "searchText": "searchText"; "searchIconURL": "searchIconURL"; "listStyle": "listStyle"; "searchPlaceholderText": "searchPlaceholderText"; "hideSearch": "hideSearch"; "hideError": "hideError"; "title": "title"; "titleAlignment": "titleAlignment"; "errorStateView": "errorStateView"; "loadingStateView": "loadingStateView"; "emptyStateView": "emptyStateView"; "state": "state"; "errorStateText": "errorStateText"; "emptyStateText": "emptyStateText"; "loadingIconURL": "loadingIconURL"; "showSectionHeader": "showSectionHeader"; "sectionHeaderField": "sectionHeaderField"; }, {}, never, never>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@cometchat/uikit-elements';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./cometchat-list.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@angular/forms";
|
|
6
|
+
export declare class CometChatList {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatList, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatList, [typeof i1.CometchatListComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.CometchatListComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatList>;
|
|
10
|
+
}
|
package/CometChatMessageBubble/cometchat-message-bubble/cometchat-message-bubble.component.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { OnInit, ChangeDetectorRef, TemplateRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { BaseStyle, MessageBubbleAlignment } from '@cometchat/uikit-shared';
|
|
3
|
+
import { MenuListStyle } from '@cometchat/uikit-elements';
|
|
4
|
+
import { CometChatThemeService } from '../../CometChatTheme.service';
|
|
5
|
+
import { CometChatMessageOption, CometChatTheme } from '@cometchat/uikit-resources';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CometChatMessageBubbleComponent implements OnInit, OnChanges {
|
|
8
|
+
private ref;
|
|
9
|
+
private themeService;
|
|
10
|
+
messageBubbleStyle: BaseStyle;
|
|
11
|
+
alignment: MessageBubbleAlignment;
|
|
12
|
+
options: CometChatMessageOption[];
|
|
13
|
+
id: number | string | undefined;
|
|
14
|
+
leadingView: TemplateRef<any> | null;
|
|
15
|
+
headerView: TemplateRef<any> | null;
|
|
16
|
+
replyView: TemplateRef<any> | null;
|
|
17
|
+
contentView: TemplateRef<any> | null;
|
|
18
|
+
threadView: TemplateRef<any> | null;
|
|
19
|
+
footerView: TemplateRef<any> | null;
|
|
20
|
+
bottomView: TemplateRef<any> | null;
|
|
21
|
+
optionsStyle: MenuListStyle;
|
|
22
|
+
moreIconURL: string;
|
|
23
|
+
topMenuSize: number;
|
|
24
|
+
theme: CometChatTheme;
|
|
25
|
+
uikitConstant: typeof MessageBubbleAlignment;
|
|
26
|
+
isHovering: boolean;
|
|
27
|
+
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
28
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
/**
|
|
31
|
+
* hide show menu options on hover
|
|
32
|
+
* @param {MouseEvent} event?
|
|
33
|
+
*/
|
|
34
|
+
hideShowMenuOption(event?: MouseEvent): void;
|
|
35
|
+
/**
|
|
36
|
+
* @param {any} event
|
|
37
|
+
*/
|
|
38
|
+
onOptionClick(event: any): void;
|
|
39
|
+
wrapperStyle: () => {
|
|
40
|
+
display: string;
|
|
41
|
+
justifyContent: string;
|
|
42
|
+
};
|
|
43
|
+
bubbleStyle: () => {
|
|
44
|
+
display: string;
|
|
45
|
+
flexDirection: string;
|
|
46
|
+
alignItems: string;
|
|
47
|
+
height?: string | undefined;
|
|
48
|
+
width?: string | undefined;
|
|
49
|
+
border?: string | undefined;
|
|
50
|
+
borderRadius?: string | undefined;
|
|
51
|
+
background?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
bubbleAlignmentStyle(): any;
|
|
54
|
+
optionsStyles: any;
|
|
55
|
+
titleStyle(): {
|
|
56
|
+
display: string;
|
|
57
|
+
justifyContent: string;
|
|
58
|
+
alignItems: string;
|
|
59
|
+
};
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageBubbleComponent, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageBubbleComponent, "cometchat-message-bubble", never, { "messageBubbleStyle": "messageBubbleStyle"; "alignment": "alignment"; "options": "options"; "id": "id"; "leadingView": "leadingView"; "headerView": "headerView"; "replyView": "replyView"; "contentView": "contentView"; "threadView": "threadView"; "footerView": "footerView"; "bottomView": "bottomView"; "moreIconURL": "moreIconURL"; "topMenuSize": "topMenuSize"; }, {}, never, never>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./cometchat-message-bubble/cometchat-message-bubble.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class CometChatMessageBubble {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageBubble, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatMessageBubble, [typeof i1.CometChatMessageBubbleComponent], [typeof i2.CommonModule], [typeof i1.CometChatMessageBubbleComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatMessageBubble>;
|
|
8
|
+
}
|