@cometchat/chat-uikit-angular 4.0.0-beta.1.4 → 4.0.0
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 +4 -3
- package/Calls/CallingExtensionDecorator.d.ts +0 -1
- package/Calls/CometChatCallButtons/cometchat-call-buttons/cometchat-call-buttons.component.d.ts +4 -3
- package/Calls/CometChatIncomingCall/cometchat-incoming-call/cometchat-incoming-call.component.d.ts +4 -3
- package/Calls/CometChatOngoingCall/cometchat-ongoing-call/cometchat-ongoing-call.component.d.ts +14 -6
- package/Calls/CometChatOutgoingCall/cometchat-outgoing-call/cometchat-outgoing-call.component.d.ts +0 -1
- package/CometChatAddMembers/cometchat-add-members/cometchat-add-members.component.d.ts +5 -5
- package/CometChatBannedMembers/cometchat-banned-members/cometchat-banned-members.component.d.ts +6 -5
- package/CometChatContacts/cometchat-contacts/cometchat-contacts.component.d.ts +65 -0
- package/CometChatContacts/cometchat-contacts.module.d.ts +12 -0
- package/CometChatConversations/cometchat-conversations/cometchat-conversations.component.d.ts +21 -15
- package/CometChatConversationsWithMessages/cometchat-conversations-with-messages/cometchat-conversations-with-messages.component.d.ts +13 -4
- package/CometChatConversationsWithMessages/cometchat-conversations-with-messages.module.d.ts +2 -1
- package/CometChatDetails/cometchat-details/cometchat-details.component.d.ts +7 -7
- package/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.d.ts +14 -12
- package/CometChatGroups/cometchat-groups/cometchat-groups.component.d.ts +12 -6
- package/CometChatGroupsWithMessages/cometchat-groups-with-messages/cometchat-groups-with-messages.component.d.ts +6 -4
- package/CometChatList/cometchat-list.component.d.ts +2 -1
- package/CometChatMessageBubble/cometchat-message-bubble/cometchat-message-bubble.component.d.ts +2 -2
- package/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.d.ts +23 -6
- package/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.d.ts +1 -1
- package/CometChatMessageInformation/cometchat-message-information/cometchat-message-information.component.d.ts +95 -0
- package/CometChatMessageInformation/cometchat-message-information.module.d.ts +10 -0
- package/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.d.ts +45 -26
- package/CometChatMessageList/cometchat-message-list.module.d.ts +3 -1
- package/CometChatMessages/cometchat-messages/cometchat-messages.component.d.ts +5 -3
- package/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.d.ts +0 -1
- package/CometChatTransferOwnership/cometchat-transfer-ownership/cometchat-transfer-ownership.component.d.ts +3 -3
- package/CometChatUsers/cometchat-users/cometchat-users.component.d.ts +11 -5
- package/CometChatUsersWithMessages/cometchat-users-with-messages/cometchat-users-with-messages.component.d.ts +2 -2
- package/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.d.ts +4 -8
- package/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +1 -4
- package/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.d.ts +4 -8
- package/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +1 -4
- package/Extensions/ImageModeration/ImageModerationExtension.d.ts +4 -4
- package/Extensions/LinkPreviewExtension/LinkPreviewExtension.d.ts +4 -4
- package/Extensions/MessageTranslation/MessageTranslationExtension.d.ts +4 -8
- package/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.d.ts +1 -4
- package/Extensions/PollsExtension/PollsExtension.d.ts +4 -4
- package/Extensions/PollsExtension/PollsExtensionDecorator.d.ts +0 -1
- package/Extensions/Reactions/ReactionExtension.d.ts +4 -4
- package/Extensions/Reactions/ReactionExtensionDecorator.d.ts +0 -1
- package/Extensions/SmartReplies/SmartRepliesExtension.d.ts +4 -8
- package/Extensions/SmartReplies/SmartRepliesExtensionDecorator.d.ts +2 -2
- package/Extensions/Stickers/StickersExtension.d.ts +4 -8
- package/Extensions/Stickers/StickersExtensionDecorator.d.ts +2 -2
- package/Extensions/TextModerator/TextModeratorExtension.d.ts +4 -3
- package/Extensions/TextModerator/TextModeratorExtensionDecorator.d.ts +0 -1
- package/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.d.ts +4 -4
- package/README.md +4 -7
- package/Shared/CometChatUIkit/CometChatUIKit.d.ts +10 -6
- package/Shared/Framework/DataSource.d.ts +0 -1
- package/Shared/Framework/DataSourceDecorator.d.ts +0 -1
- package/Shared/Utils/ComeChatException.d.ts +1 -2
- package/Shared/Utils/MessageUtils.d.ts +2 -1
- package/Shared/Views/CometChatTabs/cometchat-tabs/cometchat-tabs.component.d.ts +38 -9
- package/Shared/Views/CometChatTabs/cometchat-tabs.module.d.ts +1 -5
- package/assets/.gitkeep +0 -0
- package/assets/Reply@2x.svg +9 -0
- package/assets/call.svg +0 -0
- package/assets/chats.svg +0 -0
- package/assets/group.svg +0 -0
- package/assets/message-privately.svg +6 -0
- package/assets/mic.svg +11 -0
- package/assets/new-chat.svg +13 -0
- package/assets/open-thread.svg +0 -0
- package/assets/pause-icon.svg +14 -0
- package/assets/play-icon.svg +18 -0
- package/assets/record-icon.svg +8 -0
- package/assets/start-conversation.svg +46 -0
- package/assets/stop.svg +1 -0
- package/assets/user.svg +0 -0
- package/esm2020/Calls/CallingExtension.mjs +7 -4
- package/esm2020/Calls/CallingExtensionDecorator.mjs +4 -4
- package/esm2020/Calls/CometChatCallButtons/cometchat-call-buttons/cometchat-call-buttons.component.mjs +58 -21
- package/esm2020/Calls/CometChatIncomingCall/cometchat-incoming-call/cometchat-incoming-call.component.mjs +48 -17
- package/esm2020/Calls/CometChatOngoingCall/cometchat-ongoing-call/cometchat-ongoing-call.component.mjs +110 -9
- package/esm2020/Calls/CometChatOutgoingCall/cometchat-outgoing-call/cometchat-outgoing-call.component.mjs +9 -7
- package/esm2020/CometChatAddMembers/cometchat-add-members/cometchat-add-members.component.mjs +9 -6
- package/esm2020/CometChatBannedMembers/cometchat-banned-members/cometchat-banned-members.component.mjs +12 -7
- package/esm2020/CometChatContacts/cometchat-contacts/cometchat-contacts.component.mjs +273 -0
- package/esm2020/CometChatContacts/cometchat-contacts.module.mjs +23 -0
- package/esm2020/CometChatConversations/cometchat-conversations/cometchat-conversations.component.mjs +122 -65
- package/esm2020/CometChatConversationsWithMessages/cometchat-conversations-with-messages/cometchat-conversations-with-messages.component.mjs +105 -17
- package/esm2020/CometChatConversationsWithMessages/cometchat-conversations-with-messages.module.mjs +6 -2
- package/esm2020/CometChatDetails/cometchat-details/cometchat-details.component.mjs +13 -11
- package/esm2020/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.mjs +45 -46
- package/esm2020/CometChatGroups/cometchat-groups/cometchat-groups.component.mjs +69 -28
- package/esm2020/CometChatGroupsWithMessages/cometchat-groups-with-messages/cometchat-groups-with-messages.component.mjs +60 -21
- package/esm2020/CometChatList/cometchat-list.component.mjs +8 -9
- package/esm2020/CometChatMessageBubble/cometchat-message-bubble/cometchat-message-bubble.component.mjs +4 -5
- package/esm2020/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.mjs +200 -30
- package/esm2020/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.mjs +4 -5
- package/esm2020/CometChatMessageInformation/cometchat-message-information/cometchat-message-information.component.mjs +288 -0
- package/esm2020/CometChatMessageInformation/cometchat-message-information.module.mjs +28 -0
- package/esm2020/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.mjs +401 -185
- package/esm2020/CometChatMessageList/cometchat-message-list.module.mjs +12 -4
- package/esm2020/CometChatMessages/cometchat-messages/cometchat-messages.component.mjs +28 -15
- package/esm2020/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.mjs +3 -4
- package/esm2020/CometChatTransferOwnership/cometchat-transfer-ownership/cometchat-transfer-ownership.component.mjs +14 -15
- package/esm2020/CometChatUsers/cometchat-users/cometchat-users.component.mjs +72 -45
- package/esm2020/CometChatUsersWithMessages/cometchat-users-with-messages/cometchat-users-with-messages.component.mjs +21 -9
- package/esm2020/Extensions/CollaborativeDocument/CollaborativeDocumentExtension.mjs +7 -6
- package/esm2020/Extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.mjs +3 -4
- package/esm2020/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtension.mjs +7 -6
- package/esm2020/Extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.mjs +3 -4
- package/esm2020/Extensions/ImageModeration/ImageModerationExtension.mjs +7 -5
- package/esm2020/Extensions/LinkPreviewExtension/LinkPreviewExtension.mjs +7 -5
- package/esm2020/Extensions/MessageTranslation/MessageTranslationExtension.mjs +7 -6
- package/esm2020/Extensions/MessageTranslation/MessageTranslationExtensionDecorator.mjs +2 -4
- package/esm2020/Extensions/PollsExtension/PollsExtension.mjs +7 -5
- package/esm2020/Extensions/PollsExtension/PollsExtensionDecorator.mjs +1 -1
- package/esm2020/Extensions/Reactions/ReactionExtension.mjs +7 -5
- package/esm2020/Extensions/Reactions/ReactionExtensionDecorator.mjs +3 -2
- package/esm2020/Extensions/SmartReplies/SmartRepliesExtension.mjs +7 -6
- package/esm2020/Extensions/SmartReplies/SmartRepliesExtensionDecorator.mjs +5 -7
- package/esm2020/Extensions/Stickers/StickersExtension.mjs +7 -10
- package/esm2020/Extensions/Stickers/StickersExtensionDecorator.mjs +5 -7
- package/esm2020/Extensions/TextModerator/TextModeratorExtension.mjs +16 -4
- package/esm2020/Extensions/TextModerator/TextModeratorExtensionDecorator.mjs +1 -1
- package/esm2020/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension.mjs +7 -5
- package/esm2020/Shared/CometChatUIkit/CometChatUIKit.mjs +66 -32
- package/esm2020/Shared/Framework/DataSource.mjs +1 -1
- package/esm2020/Shared/Framework/DataSourceDecorator.mjs +1 -1
- package/esm2020/Shared/Utils/ComeChatException.mjs +2 -2
- package/esm2020/Shared/Utils/MessageUtils.mjs +36 -6
- package/esm2020/Shared/Views/CometChatTabs/cometchat-tabs/cometchat-tabs.component.mjs +61 -25
- package/esm2020/Shared/Views/CometChatTabs/cometchat-tabs.module.mjs +2 -18
- package/esm2020/public-api.mjs +8 -5
- package/fesm2015/cometchat-chat-uikit-angular.mjs +3658 -3185
- package/fesm2015/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/fesm2020/cometchat-chat-uikit-angular.mjs +3639 -3164
- package/fesm2020/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/package.json +5 -5
- package/public-api.d.ts +7 -4
- package/Calls/CometChatCallDetails/cometchat-call-details/cometchat-call-details.component.d.ts +0 -139
- package/Calls/CometChatCallDetails/cometchat-call-details.module.d.ts +0 -10
- package/Calls/CometChatCallHistory/cometchat-call-history/cometchat-call-history.component.d.ts +0 -125
- package/Calls/CometChatCallHistory/cometchat-call-history.module.d.ts +0 -10
- package/Calls/CometChatCallHistoryWithDetails/cometchat-call-history-with-details/cometchat-call-history-with-details.component.d.ts +0 -59
- package/Calls/CometChatCallHistoryWithDetails/cometchat-call-history-with-details.module.d.ts +0 -12
- package/esm2020/Calls/CometChatCallDetails/cometchat-call-details/cometchat-call-details.component.mjs +0 -452
- package/esm2020/Calls/CometChatCallDetails/cometchat-call-details.module.mjs +0 -31
- package/esm2020/Calls/CometChatCallHistory/cometchat-call-history/cometchat-call-history.component.mjs +0 -397
- package/esm2020/Calls/CometChatCallHistory/cometchat-call-history.module.mjs +0 -28
- package/esm2020/Calls/CometChatCallHistoryWithDetails/cometchat-call-history-with-details/cometchat-call-history-with-details.component.mjs +0 -143
- package/esm2020/Calls/CometChatCallHistoryWithDetails/cometchat-call-history-with-details.module.mjs +0 -39
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import { CometChat } from '@cometchat
|
|
3
|
-
import {
|
|
2
|
+
import { CometChat } from '@cometchat/chat-sdk-javascript';
|
|
3
|
+
import { GroupsStyle, ListStyle } from "@cometchat/uikit-shared";
|
|
4
4
|
import { AvatarStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
import { CometChatThemeService } from '../../CometChatTheme.service';
|
|
7
|
-
import { CometChatOption } from '@cometchat/uikit-resources';
|
|
7
|
+
import { CometChatOption, States, TitleAlignment, SelectionMode } from '@cometchat/uikit-resources';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
@@ -33,7 +33,7 @@ export declare class CometChatGroupsComponent implements OnInit, OnChanges {
|
|
|
33
33
|
hideSearch: boolean;
|
|
34
34
|
title: string;
|
|
35
35
|
onError: (error: CometChat.CometChatException) => void;
|
|
36
|
-
onSelect: (group: CometChat.Group) => void;
|
|
36
|
+
onSelect: (group: CometChat.Group, selected: boolean) => void;
|
|
37
37
|
emptyStateView: TemplateRef<any>;
|
|
38
38
|
errorStateView: TemplateRef<any>;
|
|
39
39
|
loadingIconURL: string;
|
|
@@ -59,6 +59,9 @@ export declare class CometChatGroupsComponent implements OnInit, OnChanges {
|
|
|
59
59
|
groupsListenerId: string;
|
|
60
60
|
loggedInUser: CometChat.User | null;
|
|
61
61
|
statusColor: any;
|
|
62
|
+
requestBuilder: CometChat.GroupsRequest;
|
|
63
|
+
firstReload: boolean;
|
|
64
|
+
connectionListenerId: string;
|
|
62
65
|
onScrolledToBottom: any;
|
|
63
66
|
ccGroupMemberAdded: Subscription;
|
|
64
67
|
ccGroupLeft: Subscription;
|
|
@@ -71,6 +74,7 @@ export declare class CometChatGroupsComponent implements OnInit, OnChanges {
|
|
|
71
74
|
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
72
75
|
ngOnChanges(changes: SimpleChanges): void;
|
|
73
76
|
ngOnInit(): void;
|
|
77
|
+
onGroupSelected(group: CometChat.Group, event: any): void;
|
|
74
78
|
subscribeToEvents(): void;
|
|
75
79
|
unsubscribeToEvents(): void;
|
|
76
80
|
ngOnDestroy(): void;
|
|
@@ -82,9 +86,11 @@ export declare class CometChatGroupsComponent implements OnInit, OnChanges {
|
|
|
82
86
|
* @param {CometChat.Group} group
|
|
83
87
|
*/
|
|
84
88
|
getGroupIcon: (group: CometChat.Group) => string | null | undefined;
|
|
89
|
+
fetchNewUsers(): void;
|
|
90
|
+
attachConnectionListeners(): void;
|
|
85
91
|
attachListeners(): void;
|
|
86
92
|
removeListener(): void;
|
|
87
|
-
fetchNextGroupList: () => void;
|
|
93
|
+
fetchNextGroupList: (state?: States) => void;
|
|
88
94
|
/**
|
|
89
95
|
* @param {CometChat.Group} group
|
|
90
96
|
*/
|
|
@@ -101,7 +107,7 @@ export declare class CometChatGroupsComponent implements OnInit, OnChanges {
|
|
|
101
107
|
* @param {CometChat.Group} group
|
|
102
108
|
*/
|
|
103
109
|
getActiveGroup: (group: CometChat.Group) => boolean;
|
|
104
|
-
|
|
110
|
+
setRequestBuilder(): void;
|
|
105
111
|
/**
|
|
106
112
|
* @param {CometChat.Group} group
|
|
107
113
|
*/
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { OnInit, OnChanges, SimpleChanges, ChangeDetectorRef, ElementRef } from "@angular/core";
|
|
2
|
-
import { CometChat } from "@cometchat-pro/chat";
|
|
3
2
|
import { CometChatMessagesComponent } from "../../CometChatMessages/cometchat-messages/cometchat-messages.component";
|
|
4
3
|
import { CometChatConversationsComponent } from "../../CometChatConversations/cometchat-conversations/cometchat-conversations.component";
|
|
5
4
|
import { WithMessagesStyle, MessagesConfiguration, GroupsConfiguration, CreateGroupConfiguration, JoinGroupConfiguration, MessageHeaderStyle } from '@cometchat/uikit-shared';
|
|
6
5
|
import '@cometchat/uikit-elements';
|
|
7
6
|
import { Subscription } from "rxjs";
|
|
8
|
-
import { CreateGroupStyle, JoinGroupStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
7
|
+
import { BackdropStyle, CreateGroupStyle, JoinGroupStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
9
8
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
10
9
|
import { CometChatTheme } from "@cometchat/uikit-resources";
|
|
11
10
|
import * as i0 from "@angular/core";
|
|
@@ -35,7 +34,7 @@ export declare class CometChatGroupsWithMessagesComponent implements OnInit, OnC
|
|
|
35
34
|
groupsConfiguration: GroupsConfiguration;
|
|
36
35
|
onError: ((error: CometChat.CometChatException) => void) | null;
|
|
37
36
|
theme: CometChatTheme;
|
|
38
|
-
backdropStyle:
|
|
37
|
+
backdropStyle: BackdropStyle;
|
|
39
38
|
createGroupStyle: CreateGroupStyle;
|
|
40
39
|
joinGroupStyle: JoinGroupStyle;
|
|
41
40
|
messageHeaderStyle: MessageHeaderStyle;
|
|
@@ -50,6 +49,7 @@ export declare class CometChatGroupsWithMessagesComponent implements OnInit, OnC
|
|
|
50
49
|
openCreateGroupPage: boolean;
|
|
51
50
|
openPasswordModal: boolean;
|
|
52
51
|
protectedGroup: CometChat.Group | null;
|
|
52
|
+
user: CometChat.User | null;
|
|
53
53
|
/**
|
|
54
54
|
* Events
|
|
55
55
|
*/
|
|
@@ -61,6 +61,8 @@ export declare class CometChatGroupsWithMessagesComponent implements OnInit, OnC
|
|
|
61
61
|
ccOwnershipChanged: Subscription;
|
|
62
62
|
ccGroupDeleted: Subscription;
|
|
63
63
|
ccGroupCreated: Subscription;
|
|
64
|
+
ccOpenChat: Subscription;
|
|
65
|
+
sideBarStyle: any;
|
|
64
66
|
constructor(elementRef: ElementRef, ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
65
67
|
ngOnChanges(changes: SimpleChanges): void;
|
|
66
68
|
ngAfterViewInit(): void;
|
|
@@ -85,7 +87,7 @@ export declare class CometChatGroupsWithMessagesComponent implements OnInit, OnC
|
|
|
85
87
|
background: string | undefined;
|
|
86
88
|
height: string | undefined;
|
|
87
89
|
width: string;
|
|
88
|
-
border: string
|
|
90
|
+
border: string;
|
|
89
91
|
borderRadius: string | undefined;
|
|
90
92
|
};
|
|
91
93
|
groupsWrapperStyles: () => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementRef, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { SearchInputStyle } from '@cometchat/uikit-elements';
|
|
3
|
-
import { ListStyle
|
|
3
|
+
import { ListStyle } from '@cometchat/uikit-shared';
|
|
4
|
+
import { States, TitleAlignment } from '@cometchat/uikit-resources';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class CometchatListComponent implements OnInit {
|
|
6
7
|
listScroll: ElementRef;
|
package/CometChatMessageBubble/cometchat-message-bubble/cometchat-message-bubble.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef, TemplateRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { BaseStyle
|
|
2
|
+
import { BaseStyle } from '@cometchat/uikit-shared';
|
|
3
3
|
import { MenuListStyle } from '@cometchat/uikit-elements';
|
|
4
4
|
import { CometChatThemeService } from '../../CometChatTheme.service';
|
|
5
|
-
import { CometChatMessageOption, CometChatTheme } from '@cometchat/uikit-resources';
|
|
5
|
+
import { CometChatMessageOption, CometChatTheme, MessageBubbleAlignment } from '@cometchat/uikit-resources';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class CometChatMessageBubbleComponent implements OnInit, OnChanges {
|
|
8
8
|
private ref;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { OnInit, ElementRef, ChangeDetectorRef, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { EmojiKeyboardStyle, PopoverStyle, ActionSheetStyle, PreviewStyle } from '@cometchat/uikit-elements';
|
|
2
|
+
import { EmojiKeyboardStyle, PopoverStyle, ActionSheetStyle, PreviewStyle, MediaRecorderStyle, BackdropStyle } from '@cometchat/uikit-elements';
|
|
4
3
|
import { Subscription } from 'rxjs';
|
|
5
4
|
import { localize, CometChatMessageComposerAction, AuxiliaryButtonAlignment, Placement } from '@cometchat/uikit-resources';
|
|
6
|
-
import { MessageComposerStyle, StickersConfiguration, StickersStyle, CreatePollStyle,
|
|
5
|
+
import { MessageComposerStyle, StickersConfiguration, StickersStyle, CreatePollStyle, ComposerId } from '@cometchat/uikit-shared';
|
|
7
6
|
import { CometChatThemeService } from '../../CometChatTheme.service';
|
|
8
7
|
import '@cometchat/uikit-shared';
|
|
9
8
|
import '@cometchat/uikit-elements';
|
|
@@ -25,6 +24,7 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
25
24
|
emojiButtonRef: ElementRef;
|
|
26
25
|
actionSheetRef: ElementRef;
|
|
27
26
|
stickerButtonRef: ElementRef;
|
|
27
|
+
mediaRecordedRef: ElementRef;
|
|
28
28
|
user: CometChat.User;
|
|
29
29
|
group: CometChat.Group;
|
|
30
30
|
disableSoundForMessages: boolean;
|
|
@@ -46,7 +46,14 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
46
46
|
messageComposerStyle: MessageComposerStyle;
|
|
47
47
|
onSendButtonClick: ((message: CometChat.BaseMessage) => void) | undefined;
|
|
48
48
|
onError: ((error: CometChat.CometChatException) => void) | null;
|
|
49
|
-
backdropStyle:
|
|
49
|
+
backdropStyle: BackdropStyle;
|
|
50
|
+
hideVoiceRecording: boolean;
|
|
51
|
+
mediaRecorderStyle: MediaRecorderStyle;
|
|
52
|
+
voiceRecordingIconURL: string;
|
|
53
|
+
voiceRecordingCloseIconURL: string;
|
|
54
|
+
voiceRecordingStartIconURL: string;
|
|
55
|
+
voiceRecordingStopIconURL: string;
|
|
56
|
+
voiceRecordingSubmitIconURL: string;
|
|
50
57
|
composerId: ComposerId;
|
|
51
58
|
composerActions: CometChatMessageComposerAction[];
|
|
52
59
|
showCreatePolls: boolean;
|
|
@@ -57,15 +64,18 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
57
64
|
ccMessageEdit: Subscription;
|
|
58
65
|
acceptHandlers: any;
|
|
59
66
|
enableStickerKeyboard: boolean;
|
|
67
|
+
toggleMediaRecorded: boolean;
|
|
60
68
|
stickerConfiguration: {
|
|
61
69
|
id?: string;
|
|
62
70
|
configuration?: StickersConfiguration;
|
|
63
71
|
};
|
|
64
|
-
|
|
72
|
+
closeButtonIconURL: string;
|
|
65
73
|
sendButtonStyle: any;
|
|
66
74
|
liveReactionStyle: any;
|
|
67
75
|
localize: typeof localize;
|
|
68
76
|
emojiButtonStyle: any;
|
|
77
|
+
stickerButtonStyle: any;
|
|
78
|
+
mediaRecorderButtonStyle: any;
|
|
69
79
|
emojiKeyboardStyle: EmojiKeyboardStyle;
|
|
70
80
|
stickerKeyboardStyle: StickersStyle;
|
|
71
81
|
messageInputStyle: any;
|
|
@@ -74,6 +84,7 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
74
84
|
storeTypingInterval: any;
|
|
75
85
|
emojiPopover: PopoverStyle;
|
|
76
86
|
stickerPopover: PopoverStyle;
|
|
87
|
+
mediaRecordedPopover: PopoverStyle;
|
|
77
88
|
popoverStyle: PopoverStyle;
|
|
78
89
|
sendButtonIconURL: string;
|
|
79
90
|
emojiButtonIconURL: string;
|
|
@@ -94,6 +105,11 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
94
105
|
sendReaction(): void;
|
|
95
106
|
openCreatePolls: () => void;
|
|
96
107
|
closeCreatePolls: () => void;
|
|
108
|
+
sendRecordedMedia: (event: any) => void;
|
|
109
|
+
closeMediaRecorder(event?: any): void;
|
|
110
|
+
getFormattedDate(): string;
|
|
111
|
+
padZero(num: number): string;
|
|
112
|
+
sendRecordedAudio: (file: Blob) => boolean;
|
|
97
113
|
addAttachmentCallback(): void;
|
|
98
114
|
subscribeToEvents(): void;
|
|
99
115
|
openEditPreview(): void;
|
|
@@ -147,6 +163,7 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
147
163
|
openAudioPicker: () => void;
|
|
148
164
|
openActionSheet: (event: any) => void;
|
|
149
165
|
openEmojiKeyboard: (event: any) => void;
|
|
166
|
+
openMediaRecorded: (event: any) => void;
|
|
150
167
|
openStickerKeyboard: (event: any) => void;
|
|
151
168
|
closePopovers(): void;
|
|
152
169
|
getComposerId(): ComposerId;
|
|
@@ -158,5 +175,5 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
158
175
|
setComposerStyle(): void;
|
|
159
176
|
closePreview(): void;
|
|
160
177
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageComposerComponent, never>;
|
|
161
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageComposerComponent, "cometchat-message-composer", never, { "user": "user"; "group": "group"; "disableSoundForMessages": "disableSoundForMessages"; "customSoundForMessage": "customSoundForMessage"; "disableTypingEvents": "disableTypingEvents"; "text": "text"; "placeholderText": "placeholderText"; "headerView": "headerView"; "onTextChange": "onTextChange"; "attachmentIconURL": "attachmentIconURL"; "attachmentOptions": "attachmentOptions"; "secondaryButtonView": "secondaryButtonView"; "auxilaryButtonView": "auxilaryButtonView"; "auxiliaryButtonsAlignment": "auxiliaryButtonsAlignment"; "sendButtonView": "sendButtonView"; "parentMessageId": "parentMessageId"; "hideLiveReaction": "hideLiveReaction"; "LiveReactionIconURL": "LiveReactionIconURL"; "messageComposerStyle": "messageComposerStyle"; "onSendButtonClick": "onSendButtonClick"; "onError": "onError"; "backdropStyle": "backdropStyle"; }, {}, never, never>;
|
|
178
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageComposerComponent, "cometchat-message-composer", never, { "user": "user"; "group": "group"; "disableSoundForMessages": "disableSoundForMessages"; "customSoundForMessage": "customSoundForMessage"; "disableTypingEvents": "disableTypingEvents"; "text": "text"; "placeholderText": "placeholderText"; "headerView": "headerView"; "onTextChange": "onTextChange"; "attachmentIconURL": "attachmentIconURL"; "attachmentOptions": "attachmentOptions"; "secondaryButtonView": "secondaryButtonView"; "auxilaryButtonView": "auxilaryButtonView"; "auxiliaryButtonsAlignment": "auxiliaryButtonsAlignment"; "sendButtonView": "sendButtonView"; "parentMessageId": "parentMessageId"; "hideLiveReaction": "hideLiveReaction"; "LiveReactionIconURL": "LiveReactionIconURL"; "messageComposerStyle": "messageComposerStyle"; "onSendButtonClick": "onSendButtonClick"; "onError": "onError"; "backdropStyle": "backdropStyle"; "hideVoiceRecording": "hideVoiceRecording"; "mediaRecorderStyle": "mediaRecorderStyle"; "voiceRecordingIconURL": "voiceRecordingIconURL"; "voiceRecordingCloseIconURL": "voiceRecordingCloseIconURL"; "voiceRecordingStartIconURL": "voiceRecordingStartIconURL"; "voiceRecordingStopIconURL": "voiceRecordingStopIconURL"; "voiceRecordingSubmitIconURL": "voiceRecordingSubmitIconURL"; }, {}, never, never>;
|
|
162
179
|
}
|
package/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef, TemplateRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { CometChat } from '@cometchat
|
|
2
|
+
import { CometChat } from '@cometchat/chat-sdk-javascript';
|
|
3
3
|
import { ListItemStyle, AvatarStyle, BaseStyle } from '@cometchat/uikit-elements';
|
|
4
4
|
import { Subscription } from 'rxjs';
|
|
5
5
|
import { CometChatTheme } from '@cometchat/uikit-resources';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { OnInit, ChangeDetectorRef, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { CometChatThemeService } from '../../CometChatTheme.service';
|
|
3
|
+
import { CometChatMessageTemplate, Receipts, States } from '@cometchat/uikit-resources';
|
|
4
|
+
import { ListStyle, MessageInformationStyle } from '@cometchat/uikit-shared';
|
|
5
|
+
import { DateStyle, LabelStyle, ListItemStyle, ReceiptStyle } from '@cometchat/uikit-elements';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* CometChatMessageInformationComponent is a used to render listitem component.
|
|
10
|
+
*
|
|
11
|
+
* @version 1.0.0
|
|
12
|
+
* @author CometChatTeam
|
|
13
|
+
* @copyright © 2022 CometChat Inc.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export declare class CometChatMessageInformationComponent implements OnInit, OnChanges {
|
|
17
|
+
private ref;
|
|
18
|
+
private themeService;
|
|
19
|
+
closeIconURL: string;
|
|
20
|
+
message: CometChat.BaseMessage;
|
|
21
|
+
title: string;
|
|
22
|
+
template: CometChatMessageTemplate;
|
|
23
|
+
bubbleView: TemplateRef<any>;
|
|
24
|
+
subtitleView: TemplateRef<any>;
|
|
25
|
+
listItemView: TemplateRef<any>;
|
|
26
|
+
receiptDatePattern: (timestamp: number) => string;
|
|
27
|
+
onError: ((error: CometChat.CometChatException) => void) | null;
|
|
28
|
+
messageInformationStyle: MessageInformationStyle;
|
|
29
|
+
readIcon: string;
|
|
30
|
+
deliveredIcon: string;
|
|
31
|
+
onClose: () => void;
|
|
32
|
+
listItemStyle: ListItemStyle;
|
|
33
|
+
emptyStateText: string;
|
|
34
|
+
errorStateText: string;
|
|
35
|
+
emptyStateView: TemplateRef<any>;
|
|
36
|
+
loadingIconURL: string;
|
|
37
|
+
loadingStateView: TemplateRef<any>;
|
|
38
|
+
errorStateView: TemplateRef<any>;
|
|
39
|
+
receipts: CometChat.MessageReceipt[];
|
|
40
|
+
receiptStyle: ReceiptStyle;
|
|
41
|
+
isUserType: boolean;
|
|
42
|
+
deliveredReceipt: Receipts;
|
|
43
|
+
msgListenerId: string;
|
|
44
|
+
readReceipt: Receipts;
|
|
45
|
+
listStyle: ListStyle;
|
|
46
|
+
messageText: string;
|
|
47
|
+
receiptInfoText: string;
|
|
48
|
+
emptyLabelStyle: LabelStyle;
|
|
49
|
+
dateStyle: DateStyle;
|
|
50
|
+
dividerStyle: any;
|
|
51
|
+
states: States;
|
|
52
|
+
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
53
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
54
|
+
getDatePattern(timestamp: number): string | undefined;
|
|
55
|
+
ngOnInit(): void;
|
|
56
|
+
setTheme(): void;
|
|
57
|
+
setListItemStyle(): void;
|
|
58
|
+
setMessageInfoStyle(): void;
|
|
59
|
+
ngOnDestroy(): void;
|
|
60
|
+
addMessageEventListeners(): void;
|
|
61
|
+
getAvatarUrl(): string;
|
|
62
|
+
getUserReceipt(): number;
|
|
63
|
+
getMessageReceipt(): import("@cometchat/uikit-shared/dist/Utils/MessageReceiptUtils").receipts;
|
|
64
|
+
getMessageReceipts(): void;
|
|
65
|
+
closeClicked(): void;
|
|
66
|
+
closeButtonStyle: () => {
|
|
67
|
+
height: string;
|
|
68
|
+
width: string;
|
|
69
|
+
border: string;
|
|
70
|
+
borderRadius: string;
|
|
71
|
+
background: string;
|
|
72
|
+
buttonIconTint: string | undefined;
|
|
73
|
+
};
|
|
74
|
+
getSubtitleStyle(): {
|
|
75
|
+
textFont: string | undefined;
|
|
76
|
+
textColor: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
getTitleStyle(): {
|
|
79
|
+
textFont: string | undefined;
|
|
80
|
+
textColor: string | undefined;
|
|
81
|
+
};
|
|
82
|
+
wrapperStyle: () => {
|
|
83
|
+
height: string | undefined;
|
|
84
|
+
width: string | undefined;
|
|
85
|
+
background: string | undefined;
|
|
86
|
+
border: string | undefined;
|
|
87
|
+
borderRadius: string | undefined;
|
|
88
|
+
};
|
|
89
|
+
getCaptionStyle: () => {
|
|
90
|
+
textFont: string | undefined;
|
|
91
|
+
textColor: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageInformationComponent, never>;
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageInformationComponent, "cometchat-message-information", never, { "closeIconURL": "closeIconURL"; "message": "message"; "title": "title"; "template": "template"; "bubbleView": "bubbleView"; "subtitleView": "subtitleView"; "listItemView": "listItemView"; "receiptDatePattern": "receiptDatePattern"; "onError": "onError"; "messageInformationStyle": "messageInformationStyle"; "readIcon": "readIcon"; "deliveredIcon": "deliveredIcon"; "onClose": "onClose"; "listItemStyle": "listItemStyle"; "emptyStateText": "emptyStateText"; "errorStateText": "errorStateText"; "emptyStateView": "emptyStateView"; "loadingIconURL": "loadingIconURL"; "loadingStateView": "loadingStateView"; "errorStateView": "errorStateView"; }, {}, never, never>;
|
|
95
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@cometchat/uikit-elements';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./cometchat-message-information/cometchat-message-information.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "../CometChatList/cometchat-list.module";
|
|
6
|
+
export declare class CometChatMessageInformation {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageInformation, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatMessageInformation, [typeof i1.CometChatMessageInformationComponent], [typeof i2.CommonModule, typeof i3.CometChatList], [typeof i1.CometChatMessageInformationComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatMessageInformation>;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnInit, OnDestroy, ChangeDetectorRef, ElementRef, OnChanges, SimpleChanges, TemplateRef, NgZone } from "@angular/core";
|
|
2
|
-
import { CometChat } from "@cometchat
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
3
|
import { Subscription } from "rxjs";
|
|
4
|
-
import { DateStyle, AvatarStyle, MenuListStyle, ReceiptStyle, BaseStyle, DocumentBubbleStyle, ConfirmDialogStyle, FullScreenViewerStyle } from '@cometchat/uikit-elements';
|
|
4
|
+
import { DateStyle, AvatarStyle, MenuListStyle, ReceiptStyle, BaseStyle, DocumentBubbleStyle, ConfirmDialogStyle, FullScreenViewerStyle, CallscreenStyle, BackdropStyle } from '@cometchat/uikit-elements';
|
|
5
5
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
6
6
|
import { States, localize, MessageListAlignment, DatePatterns, TimestampAlignment, CometChatMessageTemplate, DocumentIconAlignment, CometChatUIKitConstants, CometChatTheme, MessageBubbleAlignment, CometChatMessageOption } from "@cometchat/uikit-resources";
|
|
7
|
-
import { MessageListStyle, MessageTranslationStyle, PollsBubbleStyle, ImageModerationStyle, SmartRepliesStyle, SmartRepliesConfiguration,
|
|
7
|
+
import { MessageListStyle, MessageTranslationStyle, PollsBubbleStyle, ImageModerationStyle, SmartRepliesStyle, SmartRepliesConfiguration, MessageInformationConfiguration } from "@cometchat/uikit-shared";
|
|
8
8
|
import { LinkPreviewStyle } from "@cometchat/uikit-shared";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
@@ -67,10 +67,11 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
67
67
|
footerView: TemplateRef<any>;
|
|
68
68
|
parentMessageId: number;
|
|
69
69
|
avatarStyle: AvatarStyle;
|
|
70
|
-
backdropStyle:
|
|
70
|
+
backdropStyle: BackdropStyle;
|
|
71
71
|
dateSeparatorStyle: DateStyle;
|
|
72
72
|
messageListStyle: MessageListStyle;
|
|
73
73
|
onError: ((error: CometChat.CometChatException) => void) | null;
|
|
74
|
+
messageInformationConfiguration: MessageInformationConfiguration;
|
|
74
75
|
state: States;
|
|
75
76
|
optionsStyle: MenuListStyle;
|
|
76
77
|
receiptStyle: ReceiptStyle;
|
|
@@ -92,16 +93,11 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
92
93
|
smartReplyConfig: SmartRepliesConfiguration;
|
|
93
94
|
timeStampBackground: string;
|
|
94
95
|
linkPreviewStyle: LinkPreviewStyle;
|
|
95
|
-
unreadMessagesStyle: {
|
|
96
|
+
unreadMessagesStyle: {};
|
|
97
|
+
modalStyle: {
|
|
96
98
|
height: string;
|
|
97
99
|
width: string;
|
|
98
|
-
|
|
99
|
-
display: string;
|
|
100
|
-
justifyContent: string;
|
|
101
|
-
buttonTextFont: string;
|
|
102
|
-
color: string;
|
|
103
|
-
border: string;
|
|
104
|
-
borderRadius: string;
|
|
100
|
+
closeIconTint: string;
|
|
105
101
|
};
|
|
106
102
|
dividerStyle: BaseStyle;
|
|
107
103
|
pollBubbleStyle: PollsBubbleStyle;
|
|
@@ -128,6 +124,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
128
124
|
bottomObserver: IntersectionObserver;
|
|
129
125
|
localize: typeof localize;
|
|
130
126
|
reinitialized: boolean;
|
|
127
|
+
addReactionIconURL: string;
|
|
131
128
|
MessageTypesConstant: typeof CometChatUIKitConstants.MessageTypes;
|
|
132
129
|
callConstant: string;
|
|
133
130
|
typesMap: any;
|
|
@@ -147,6 +144,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
147
144
|
numberOfTopScroll: number;
|
|
148
145
|
keepRecentMessages: boolean;
|
|
149
146
|
messageTemplate: CometChatMessageTemplate[];
|
|
147
|
+
openContactsView: boolean;
|
|
150
148
|
messageCount: number;
|
|
151
149
|
isOnBottom: boolean;
|
|
152
150
|
UnreadCount: CometChat.BaseMessage[];
|
|
@@ -176,6 +174,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
176
174
|
ccCallAccepted: Subscription;
|
|
177
175
|
ccGroupMemberScopeChanged: Subscription;
|
|
178
176
|
threadedAlignment: MessageBubbleAlignment;
|
|
177
|
+
messageInfoAlignment: MessageBubbleAlignment;
|
|
179
178
|
openEmojiKeyboard: boolean;
|
|
180
179
|
keyboardAlignment: string;
|
|
181
180
|
popoverStyle: any;
|
|
@@ -195,6 +194,13 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
195
194
|
enableCalling: boolean;
|
|
196
195
|
ongoingCallStyle: CallscreenStyle;
|
|
197
196
|
sessionId: string;
|
|
197
|
+
openMessageInfoPage: boolean;
|
|
198
|
+
messageInfoObject: CometChat.BaseMessage;
|
|
199
|
+
firstReload: boolean;
|
|
200
|
+
isWebsocketReconnected: boolean;
|
|
201
|
+
connectionListenerId: string;
|
|
202
|
+
lastMessageId: number;
|
|
203
|
+
isConnectionReestablished: boolean;
|
|
198
204
|
getThreadViewStyle(message: CometChat.BaseMessage): {
|
|
199
205
|
height: string;
|
|
200
206
|
width: string;
|
|
@@ -218,10 +224,13 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
218
224
|
categories: string[];
|
|
219
225
|
constructor(ngZone: NgZone, ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
220
226
|
ngOnChanges(changes: SimpleChanges): void;
|
|
227
|
+
sendMessage(message: CometChat.BaseMessage, receiverId: string, receiverType: string): Promise<unknown>;
|
|
228
|
+
closeContactsPage: () => void;
|
|
221
229
|
addReaction: (event: any) => void;
|
|
222
230
|
getCallBubbleTitle(message: CometChat.BaseMessage): any;
|
|
223
231
|
getCallActionMessage: (call: CometChat.Call) => string;
|
|
224
232
|
reactToMessages(emoji: string): void;
|
|
233
|
+
hasReaction(message: any): boolean;
|
|
225
234
|
ngOnDestroy(): void;
|
|
226
235
|
reactionsStyle(message: CometChat.BaseMessage): {
|
|
227
236
|
height: string;
|
|
@@ -229,14 +238,16 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
229
238
|
border: string;
|
|
230
239
|
borderRadius: string;
|
|
231
240
|
background: string;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
241
|
+
reactionEmojiFontSize: string;
|
|
242
|
+
reactionCountTextFont: string;
|
|
243
|
+
reactionCountTextColor: string | undefined;
|
|
244
|
+
activeReactionCountTextColor: string | undefined;
|
|
245
|
+
activeReactionCountTextFont: string;
|
|
236
246
|
addReactionIconTint: string | undefined;
|
|
237
247
|
activeReactionBackground: string | undefined;
|
|
238
248
|
reactionBackground: string;
|
|
239
249
|
reactionBorder: string;
|
|
250
|
+
activeReactionBorder: string;
|
|
240
251
|
reactionBorderRadius: string;
|
|
241
252
|
addReactionIconBackground: string | undefined;
|
|
242
253
|
};
|
|
@@ -247,7 +258,12 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
247
258
|
deleteCallback: (id: number) => void;
|
|
248
259
|
editCallback: (id: number) => void;
|
|
249
260
|
copyCallback: (id: number) => void;
|
|
250
|
-
|
|
261
|
+
messagePrivatelyCallback: (id: number) => void;
|
|
262
|
+
messageInfoCallback: (id: number) => void;
|
|
263
|
+
openMessageInfo(messageObject: CometChat.BaseMessage): void;
|
|
264
|
+
closeMessageInfoPage: () => void;
|
|
265
|
+
sendMessagePrivately(messageObject: CometChat.BaseMessage): void;
|
|
266
|
+
getMessageById(id: number): false | import("@cometchat/chat-sdk-javascript").BaseMessage;
|
|
251
267
|
isTranslated(message: CometChat.TextMessage): any;
|
|
252
268
|
updateTranslatedMessage: (translation: any) => void;
|
|
253
269
|
translateMessage: (id: number) => void;
|
|
@@ -337,8 +353,10 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
337
353
|
* @param
|
|
338
354
|
*/
|
|
339
355
|
fetchPreviousMessages: () => void;
|
|
356
|
+
fetchActionMessages(): void;
|
|
340
357
|
fetchNextMessage: () => void;
|
|
341
358
|
appendMessages: (messages: CometChat.BaseMessage[]) => void;
|
|
359
|
+
attachConnectionListener(): void;
|
|
342
360
|
addMessageEventListeners(): void;
|
|
343
361
|
/**
|
|
344
362
|
*
|
|
@@ -377,8 +395,9 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
377
395
|
* @param {CometChat.BaseMessage} message
|
|
378
396
|
* @param {string} type
|
|
379
397
|
*/
|
|
380
|
-
messageReceivedHandler: (message: CometChat.BaseMessage
|
|
398
|
+
messageReceivedHandler: (message: CometChat.BaseMessage) => void;
|
|
381
399
|
playAudio(): void;
|
|
400
|
+
getCallBuilder: () => any;
|
|
382
401
|
reInitializeMessageList(): void;
|
|
383
402
|
reInitializeMessageBuilder: () => void;
|
|
384
403
|
getMessageReceipt(message: CometChat.BaseMessage): import("@cometchat/uikit-shared/dist/Utils/MessageReceiptUtils").receipts;
|
|
@@ -418,7 +437,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
418
437
|
* @param {CometChat.BaseMessage} message
|
|
419
438
|
* @param {string} type
|
|
420
439
|
*/
|
|
421
|
-
customMessageReceivedHandler: (message: CometChat.BaseMessage
|
|
440
|
+
customMessageReceivedHandler: (message: CometChat.BaseMessage) => void;
|
|
422
441
|
/**
|
|
423
442
|
* TrackBy method to update UI when a change is detected
|
|
424
443
|
*/
|
|
@@ -455,17 +474,17 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
455
474
|
*/
|
|
456
475
|
onCopyMessage: (object: CometChat.TextMessage) => void;
|
|
457
476
|
/**
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
477
|
+
* callback for deleteMessage
|
|
478
|
+
* @param {CometChat.BaseMessage} object
|
|
479
|
+
*/
|
|
461
480
|
/**
|
|
462
481
|
* @param {CometChat.BaseMessage} messages
|
|
463
482
|
*/
|
|
464
483
|
messageSent(messages: CometChat.BaseMessage): void;
|
|
465
484
|
/**
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
485
|
+
* callback for editMessage option
|
|
486
|
+
* @param {CometChat.BaseMessage} object
|
|
487
|
+
*/
|
|
469
488
|
onEditMessage: (object: CometChat.BaseMessage) => void;
|
|
470
489
|
updateMessage(message: CometChat.BaseMessage, muid?: boolean): void;
|
|
471
490
|
removeMessage: (message: CometChat.BaseMessage) => void;
|
|
@@ -509,5 +528,5 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
509
528
|
height: string;
|
|
510
529
|
};
|
|
511
530
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageListComponent, never>;
|
|
512
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageListComponent, "cometchat-message-list", never, { "hideError": "hideError"; "errorStateView": "errorStateView"; "loadingStateView": "loadingStateView"; "emptyStateView": "emptyStateView"; "errorStateText": "errorStateText"; "emptyStateText": "emptyStateText"; "loadingIconURL": "loadingIconURL"; "user": "user"; "group": "group"; "disableReceipt": "disableReceipt"; "disableSoundForMessages": "disableSoundForMessages"; "customSoundForMessages": "customSoundForMessages"; "readIcon": "readIcon"; "deliveredIcon": "deliveredIcon"; "sentIcon": "sentIcon"; "waitIcon": "waitIcon"; "errorIcon": "errorIcon"; "alignment": "alignment"; "showAvatar": "showAvatar"; "datePattern": "datePattern"; "timestampAlignment": "timestampAlignment"; "DateSeparatorPattern": "DateSeparatorPattern"; "templates": "templates"; "messagesRequestBuilder": "messagesRequestBuilder"; "newMessageIndicatorText": "newMessageIndicatorText"; "scrollToBottomOnNewMessages": "scrollToBottomOnNewMessages"; "thresholdValue": "thresholdValue"; "onThreadRepliesClick": "onThreadRepliesClick"; "headerView": "headerView"; "footerView": "footerView"; "parentMessageId": "parentMessageId"; "avatarStyle": "avatarStyle"; "backdropStyle": "backdropStyle"; "dateSeparatorStyle": "dateSeparatorStyle"; "messageListStyle": "messageListStyle"; "onError": "onError"; }, {}, never, never>;
|
|
531
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageListComponent, "cometchat-message-list", never, { "hideError": "hideError"; "errorStateView": "errorStateView"; "loadingStateView": "loadingStateView"; "emptyStateView": "emptyStateView"; "errorStateText": "errorStateText"; "emptyStateText": "emptyStateText"; "loadingIconURL": "loadingIconURL"; "user": "user"; "group": "group"; "disableReceipt": "disableReceipt"; "disableSoundForMessages": "disableSoundForMessages"; "customSoundForMessages": "customSoundForMessages"; "readIcon": "readIcon"; "deliveredIcon": "deliveredIcon"; "sentIcon": "sentIcon"; "waitIcon": "waitIcon"; "errorIcon": "errorIcon"; "alignment": "alignment"; "showAvatar": "showAvatar"; "datePattern": "datePattern"; "timestampAlignment": "timestampAlignment"; "DateSeparatorPattern": "DateSeparatorPattern"; "templates": "templates"; "messagesRequestBuilder": "messagesRequestBuilder"; "newMessageIndicatorText": "newMessageIndicatorText"; "scrollToBottomOnNewMessages": "scrollToBottomOnNewMessages"; "thresholdValue": "thresholdValue"; "onThreadRepliesClick": "onThreadRepliesClick"; "headerView": "headerView"; "footerView": "footerView"; "parentMessageId": "parentMessageId"; "avatarStyle": "avatarStyle"; "backdropStyle": "backdropStyle"; "dateSeparatorStyle": "dateSeparatorStyle"; "messageListStyle": "messageListStyle"; "onError": "onError"; "messageInformationConfiguration": "messageInformationConfiguration"; }, {}, never, never>;
|
|
513
532
|
}
|
|
@@ -4,8 +4,10 @@ import * as i1 from "./cometchat-message-list/cometchat-message-list.component";
|
|
|
4
4
|
import * as i2 from "@angular/common";
|
|
5
5
|
import * as i3 from "../CometChatMessageBubble/cometchat-message-bubble.module";
|
|
6
6
|
import * as i4 from "../Calls/CometChatOngoingCall/cometchat-ongoing-call.module";
|
|
7
|
+
import * as i5 from "../CometChatContacts/cometchat-contacts.module";
|
|
8
|
+
import * as i6 from "../CometChatMessageInformation/cometchat-message-information.module";
|
|
7
9
|
export declare class CometChatMessageList {
|
|
8
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageList, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatMessageList, [typeof i1.CometChatMessageListComponent], [typeof i2.CommonModule, typeof i3.CometChatMessageBubble, typeof i4.CometChatOngoingCall], [typeof i1.CometChatMessageListComponent]>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatMessageList, [typeof i1.CometChatMessageListComponent], [typeof i2.CommonModule, typeof i3.CometChatMessageBubble, typeof i4.CometChatOngoingCall, typeof i5.CometChatContacts, typeof i6.CometChatMessageInformation], [typeof i1.CometChatMessageListComponent]>;
|
|
10
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatMessageList>;
|
|
11
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OnInit, OnChanges, SimpleChanges, ChangeDetectorRef, TemplateRef } from "@angular/core";
|
|
2
|
-
import { CometChat } from "@cometchat
|
|
1
|
+
import { OnInit, OnChanges, SimpleChanges, ChangeDetectorRef, TemplateRef, ElementRef } from "@angular/core";
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
3
|
import { CometChatMessageComposerComponent } from "../../CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component";
|
|
4
4
|
import { CometChatMessageListComponent } from "../../CometChatMessageList/cometchat-message-list/cometchat-message-list.component";
|
|
5
5
|
import { ListItemStyle, AvatarStyle, BaseStyle } from '@cometchat/uikit-elements';
|
|
@@ -19,6 +19,7 @@ import * as i0 from "@angular/core";
|
|
|
19
19
|
export declare class CometChatMessagesComponent implements OnInit, OnChanges {
|
|
20
20
|
private ref;
|
|
21
21
|
private themeService;
|
|
22
|
+
private elementRef;
|
|
22
23
|
messageComposerRef: CometChatMessageComposerComponent;
|
|
23
24
|
messageListRef: CometChatMessageListComponent;
|
|
24
25
|
user: CometChat.User;
|
|
@@ -75,8 +76,9 @@ export declare class CometChatMessagesComponent implements OnInit, OnChanges {
|
|
|
75
76
|
threadMessageObject: CometChat.BaseMessage | null;
|
|
76
77
|
parentBubbleView: TemplateRef<any>;
|
|
77
78
|
openDetails: boolean;
|
|
78
|
-
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
79
|
+
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService, elementRef: ElementRef);
|
|
79
80
|
ngOnInit(): void;
|
|
81
|
+
ngAfterViewInit(): void;
|
|
80
82
|
subscribeToEvents(): void;
|
|
81
83
|
unsubscribeToEvents(): void;
|
|
82
84
|
setMessagesStyle(): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnInit, OnChanges, SimpleChanges, ChangeDetectorRef, TemplateRef } from "@angular/core";
|
|
2
|
-
import { CometChat } from "@cometchat-pro/chat";
|
|
3
2
|
import { CometChatMessageComposerComponent } from "../../CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component";
|
|
4
3
|
import { CometChatMessageListComponent } from "../../CometChatMessageList/cometchat-message-list/cometchat-message-list.component";
|
|
5
4
|
import { AvatarStyle, ListItemStyle, BaseStyle } from '@cometchat/uikit-elements';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef, TemplateRef } from "@angular/core";
|
|
2
|
-
import { CometChat } from "@cometchat
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
3
|
import { AvatarStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
4
4
|
import { CometChatOption, TitleAlignment, SelectionMode } from "@cometchat/uikit-resources";
|
|
5
5
|
import { TransferOwnershipStyle, GroupMembersStyle } from "@cometchat/uikit-shared";
|
|
@@ -44,7 +44,7 @@ export declare class CometChatTransferOwnershipComponent implements OnInit {
|
|
|
44
44
|
transferButtonText: string;
|
|
45
45
|
cancelButtonText: string;
|
|
46
46
|
avatarStyle: AvatarStyle;
|
|
47
|
-
|
|
47
|
+
groupMembersStyle: GroupMembersStyle;
|
|
48
48
|
listItemStyle: ListItemStyle;
|
|
49
49
|
titleAlignment: TitleAlignment;
|
|
50
50
|
selectionMode: SelectionMode;
|
|
@@ -84,5 +84,5 @@ export declare class CometChatTransferOwnershipComponent implements OnInit {
|
|
|
84
84
|
textColor: string | undefined;
|
|
85
85
|
};
|
|
86
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatTransferOwnershipComponent, never>;
|
|
87
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatTransferOwnershipComponent, "cometchat-transfer-ownership", never, { "groupMemberRequestBuilder": "groupMemberRequestBuilder"; "searchRequestBuilder": "searchRequestBuilder"; "subtitleView": "subtitleView"; "listItemView": "listItemView"; "disableUsersPresence": "disableUsersPresence"; "options": "options"; "closeButtonIconURL": "closeButtonIconURL"; "hideSeparator": "hideSeparator"; "searchPlaceholder": "searchPlaceholder"; "searchIconURL": "searchIconURL"; "hideSearch": "hideSearch"; "title": "title"; "onError": "onError"; "onClose": "onClose"; "onTransferOwnership": "onTransferOwnership"; "group": "group"; "emptyStateView": "emptyStateView"; "errorStateView": "errorStateView"; "loadingIconURL": "loadingIconURL"; "loadingStateView": "loadingStateView"; "emptyStateText": "emptyStateText"; "errorStateText": "errorStateText"; "statusIndicatorStyle": "statusIndicatorStyle"; "transferOwnershipStyle": "transferOwnershipStyle"; "transferButtonText": "transferButtonText"; "cancelButtonText": "cancelButtonText"; "avatarStyle": "avatarStyle"; "
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatTransferOwnershipComponent, "cometchat-transfer-ownership", never, { "groupMemberRequestBuilder": "groupMemberRequestBuilder"; "searchRequestBuilder": "searchRequestBuilder"; "subtitleView": "subtitleView"; "listItemView": "listItemView"; "disableUsersPresence": "disableUsersPresence"; "options": "options"; "closeButtonIconURL": "closeButtonIconURL"; "hideSeparator": "hideSeparator"; "searchPlaceholder": "searchPlaceholder"; "searchIconURL": "searchIconURL"; "hideSearch": "hideSearch"; "title": "title"; "onError": "onError"; "onClose": "onClose"; "onTransferOwnership": "onTransferOwnership"; "group": "group"; "emptyStateView": "emptyStateView"; "errorStateView": "errorStateView"; "loadingIconURL": "loadingIconURL"; "loadingStateView": "loadingStateView"; "emptyStateText": "emptyStateText"; "errorStateText": "errorStateText"; "statusIndicatorStyle": "statusIndicatorStyle"; "transferOwnershipStyle": "transferOwnershipStyle"; "transferButtonText": "transferButtonText"; "cancelButtonText": "cancelButtonText"; "avatarStyle": "avatarStyle"; "groupMembersStyle": "groupMembersStyle"; "listItemStyle": "listItemStyle"; "titleAlignment": "titleAlignment"; }, {}, never, never>;
|
|
88
88
|
}
|