@cometchat/chat-uikit-angular 4.3.13 → 4.3.15
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/CometChatCallLogDetails/cometchat-call-log-details/cometchat-call-log-details.component.d.ts +21 -4
- package/CometChatAddMembers/cometchat-add-members/cometchat-add-members.component.d.ts +5 -1
- package/CometChatConversations/cometchat-conversations/cometchat-conversations.component.d.ts +4 -1
- package/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.d.ts +4 -0
- package/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.d.ts +3 -1
- package/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.d.ts +6 -0
- package/CometChatMessageInformation/cometchat-message-information/cometchat-message-information.component.d.ts +3 -0
- package/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.d.ts +4 -1
- package/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.d.ts +6 -2
- package/CometChatUsers/cometchat-users/cometchat-users.component.d.ts +4 -0
- package/Shared/Utils/MessageUtils.d.ts +6 -0
- package/esm2020/Calls/CometChatCallLogDetails/cometchat-call-log-details/cometchat-call-log-details.component.mjs +31 -9
- package/esm2020/Calls/CometChatCallLogsWithDetails/cometchat-call-logs-with-details/cometchat-call-logs-with-details.component.mjs +3 -3
- package/esm2020/CometChatAddMembers/cometchat-add-members/cometchat-add-members.component.mjs +9 -3
- package/esm2020/CometChatBannedMembers/cometchat-banned-members/cometchat-banned-members.component.mjs +16 -21
- package/esm2020/CometChatConversations/cometchat-conversations/cometchat-conversations.component.mjs +77 -54
- package/esm2020/CometChatDetails/cometchat-details/cometchat-details.component.mjs +23 -5
- package/esm2020/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.mjs +24 -13
- package/esm2020/CometChatGroups/cometchat-groups/cometchat-groups.component.mjs +3 -3
- package/esm2020/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.mjs +28 -12
- package/esm2020/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.mjs +54 -19
- package/esm2020/CometChatMessageInformation/cometchat-message-information/cometchat-message-information.component.mjs +19 -3
- package/esm2020/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.mjs +30 -21
- package/esm2020/CometChatMessages/cometchat-messages/cometchat-messages.component.mjs +6 -3
- package/esm2020/CometChatThreadedMessages/cometchat-threaded-messages/cometchat-threaded-messages.component.mjs +29 -11
- package/esm2020/CometChatUsers/cometchat-users/cometchat-users.component.mjs +19 -12
- package/esm2020/CometChatUsersWithMessages/cometchat-users-with-messages/cometchat-users-with-messages.component.mjs +3 -3
- package/esm2020/Shared/CometChatUIkit/CometChatUIKit.mjs +2 -2
- package/esm2020/Shared/Utils/MessageUtils.mjs +15 -1
- package/fesm2015/cometchat-chat-uikit-angular.mjs +394 -200
- package/fesm2015/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/fesm2020/cometchat-chat-uikit-angular.mjs +364 -176
- package/fesm2020/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef, TemplateRef, OnChanges, SimpleChanges } from "@angular/core";
|
|
2
2
|
import "@cometchat/uikit-elements";
|
|
3
|
-
import { AvatarStyle, DateStyle, IconStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
3
|
+
import { AvatarStyle, DateStyle, IconStyle, LabelStyle, ListItemStyle } from "@cometchat/uikit-elements";
|
|
4
4
|
import { CallButtonsStyle, CallButtonsConfiguration, CallLogDetailsStyle, CallLogParticipantsConfiguration, CallLogHistoryConfiguration, CallLogRecordingsConfiguration } from "@cometchat/uikit-shared";
|
|
5
5
|
import { CometChatDetailsOption, CometChatDetailsTemplate, DatePatterns, CometChatCallDetailsOption } from "@cometchat/uikit-resources";
|
|
6
6
|
import { CometChatThemeService } from "../../../CometChatTheme.service";
|
|
@@ -12,7 +12,7 @@ export declare class CometChatCallLogDetailsComponent implements OnInit, OnChang
|
|
|
12
12
|
group: CometChat.Group;
|
|
13
13
|
user: CometChat.User;
|
|
14
14
|
title: string;
|
|
15
|
-
onBackClick
|
|
15
|
+
onBackClick?: () => void;
|
|
16
16
|
hideProfile: boolean;
|
|
17
17
|
subtitleView: TemplateRef<any>;
|
|
18
18
|
customProfileView: TemplateRef<any>;
|
|
@@ -27,6 +27,7 @@ export declare class CometChatCallLogDetailsComponent implements OnInit, OnChang
|
|
|
27
27
|
datePattern2: DatePatterns;
|
|
28
28
|
data: CometChatDetailsTemplate[];
|
|
29
29
|
avatarStyle: AvatarStyle;
|
|
30
|
+
labelStyle: LabelStyle;
|
|
30
31
|
callDetailsStyle: CallLogDetailsStyle;
|
|
31
32
|
listItemStyle: ListItemStyle;
|
|
32
33
|
dateStyle: DateStyle;
|
|
@@ -40,7 +41,6 @@ export declare class CometChatCallLogDetailsComponent implements OnInit, OnChang
|
|
|
40
41
|
showParticipantsList: Boolean;
|
|
41
42
|
showCallRecordingList: Boolean;
|
|
42
43
|
showCallHistory: Boolean;
|
|
43
|
-
dividerStyle: any;
|
|
44
44
|
getTitleStyle(): {
|
|
45
45
|
textFont: string;
|
|
46
46
|
textColor: string | undefined;
|
|
@@ -93,6 +93,23 @@ export declare class CometChatCallLogDetailsComponent implements OnInit, OnChang
|
|
|
93
93
|
border: string | undefined;
|
|
94
94
|
borderRadius: string | undefined;
|
|
95
95
|
background: string | undefined;
|
|
96
|
+
padding: string;
|
|
97
|
+
};
|
|
98
|
+
profileContainerStyle: () => {
|
|
99
|
+
height: string;
|
|
100
|
+
width: string;
|
|
101
|
+
minHeight: string;
|
|
102
|
+
padding: string;
|
|
103
|
+
display: string;
|
|
104
|
+
flexDirection: string;
|
|
105
|
+
justifyContent: string;
|
|
106
|
+
alignItems: string;
|
|
107
|
+
boxSizing: string;
|
|
108
|
+
gap: string;
|
|
109
|
+
};
|
|
110
|
+
getTailViewStyle: () => {
|
|
111
|
+
font: string;
|
|
112
|
+
color: string | undefined;
|
|
96
113
|
};
|
|
97
114
|
getTailView(totalSeconds: number): string;
|
|
98
115
|
getSubtitle(call: any): string;
|
|
@@ -115,5 +132,5 @@ export declare class CometChatCallLogDetailsComponent implements OnInit, OnChang
|
|
|
115
132
|
hoverBackground: string | undefined;
|
|
116
133
|
};
|
|
117
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatCallLogDetailsComponent, never>;
|
|
118
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatCallLogDetailsComponent, "cometchat-call-log-details", never, { "call": "call"; "group": "group"; "user": "user"; "title": "title"; "onBackClick": "onBackClick"; "hideProfile": "hideProfile"; "subtitleView": "subtitleView"; "customProfileView": "customProfileView"; "backIconUrl": "backIconUrl"; "greaterThanIconURL": "greaterThanIconURL"; "callButtonsConfiguration": "callButtonsConfiguration"; "callLogParticipantsConfiguration": "callLogParticipantsConfiguration"; "callLogHistoryConfiguration": "callLogHistoryConfiguration"; "callLogRecordingsConfiguration": "callLogRecordingsConfiguration"; "onError": "onError"; "datePattern": "datePattern"; "datePattern2": "datePattern2"; "data": "data"; "avatarStyle": "avatarStyle"; "callDetailsStyle": "callDetailsStyle"; "listItemStyle": "listItemStyle"; "dateStyle": "dateStyle"; "callButtonsStyle": "callButtonsStyle"; }, {}, never, never>;
|
|
135
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatCallLogDetailsComponent, "cometchat-call-log-details", never, { "call": "call"; "group": "group"; "user": "user"; "title": "title"; "onBackClick": "onBackClick"; "hideProfile": "hideProfile"; "subtitleView": "subtitleView"; "customProfileView": "customProfileView"; "backIconUrl": "backIconUrl"; "greaterThanIconURL": "greaterThanIconURL"; "callButtonsConfiguration": "callButtonsConfiguration"; "callLogParticipantsConfiguration": "callLogParticipantsConfiguration"; "callLogHistoryConfiguration": "callLogHistoryConfiguration"; "callLogRecordingsConfiguration": "callLogRecordingsConfiguration"; "onError": "onError"; "datePattern": "datePattern"; "datePattern2": "datePattern2"; "data": "data"; "avatarStyle": "avatarStyle"; "labelStyle": "labelStyle"; "callDetailsStyle": "callDetailsStyle"; "listItemStyle": "listItemStyle"; "dateStyle": "dateStyle"; "callButtonsStyle": "callButtonsStyle"; }, {}, never, never>;
|
|
119
136
|
}
|
|
@@ -55,7 +55,11 @@ export declare class CometChatAddMembersComponent implements OnInit {
|
|
|
55
55
|
titleAlignmentEnum: typeof TitleAlignment;
|
|
56
56
|
selectionmodeEnum: typeof SelectionMode;
|
|
57
57
|
addMembersStyle: AddMembersStyle;
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated This property is deprecated as of version 4.3.14. Use `statusIndicatorStyle` instead.
|
|
60
|
+
*/
|
|
58
61
|
StatusIndicatorStyle: BaseStyle;
|
|
62
|
+
statusIndicatorStyle: BaseStyle;
|
|
59
63
|
avatarStyle: AvatarStyle;
|
|
60
64
|
loggedInUser: CometChat.User | null;
|
|
61
65
|
actionMessagesList: CometChat.Action[];
|
|
@@ -107,5 +111,5 @@ export declare class CometChatAddMembersComponent implements OnInit {
|
|
|
107
111
|
padding: string | undefined;
|
|
108
112
|
};
|
|
109
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatAddMembersComponent, never>;
|
|
110
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatAddMembersComponent, "cometchat-add-members", never, { "usersRequestBuilder": "usersRequestBuilder"; "searchRequestBuilder": "searchRequestBuilder"; "subtitleView": "subtitleView"; "listItemView": "listItemView"; "disableUsersPresence": "disableUsersPresence"; "menu": "menu"; "options": "options"; "backButtonIconURL": "backButtonIconURL"; "closeButtonIconURL": "closeButtonIconURL"; "showBackButton": "showBackButton"; "hideSeparator": "hideSeparator"; "selectionMode": "selectionMode"; "searchPlaceholder": "searchPlaceholder"; "hideError": "hideError"; "searchIconURL": "searchIconURL"; "hideSearch": "hideSearch"; "title": "title"; "onError": "onError"; "onBack": "onBack"; "onClose": "onClose"; "onSelect": "onSelect"; "buttonText": "buttonText"; "group": "group"; "emptyStateView": "emptyStateView"; "errorStateView": "errorStateView"; "loadingIconURL": "loadingIconURL"; "listItemStyle": "listItemStyle"; "showSectionHeader": "showSectionHeader"; "sectionHeaderField": "sectionHeaderField"; "loadingStateView": "loadingStateView"; "emptyStateText": "emptyStateText"; "errorStateText": "errorStateText"; "onAddMembersButtonClick": "onAddMembersButtonClick"; "titleAlignment": "titleAlignment"; "addMembersStyle": "addMembersStyle"; "StatusIndicatorStyle": "StatusIndicatorStyle"; "avatarStyle": "avatarStyle"; }, {}, never, never>;
|
|
114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatAddMembersComponent, "cometchat-add-members", never, { "usersRequestBuilder": "usersRequestBuilder"; "searchRequestBuilder": "searchRequestBuilder"; "subtitleView": "subtitleView"; "listItemView": "listItemView"; "disableUsersPresence": "disableUsersPresence"; "menu": "menu"; "options": "options"; "backButtonIconURL": "backButtonIconURL"; "closeButtonIconURL": "closeButtonIconURL"; "showBackButton": "showBackButton"; "hideSeparator": "hideSeparator"; "selectionMode": "selectionMode"; "searchPlaceholder": "searchPlaceholder"; "hideError": "hideError"; "searchIconURL": "searchIconURL"; "hideSearch": "hideSearch"; "title": "title"; "onError": "onError"; "onBack": "onBack"; "onClose": "onClose"; "onSelect": "onSelect"; "buttonText": "buttonText"; "group": "group"; "emptyStateView": "emptyStateView"; "errorStateView": "errorStateView"; "loadingIconURL": "loadingIconURL"; "listItemStyle": "listItemStyle"; "showSectionHeader": "showSectionHeader"; "sectionHeaderField": "sectionHeaderField"; "loadingStateView": "loadingStateView"; "emptyStateText": "emptyStateText"; "errorStateText": "errorStateText"; "onAddMembersButtonClick": "onAddMembersButtonClick"; "titleAlignment": "titleAlignment"; "addMembersStyle": "addMembersStyle"; "StatusIndicatorStyle": "StatusIndicatorStyle"; "statusIndicatorStyle": "statusIndicatorStyle"; "avatarStyle": "avatarStyle"; }, {}, never, never>;
|
|
111
115
|
}
|
package/CometChatConversations/cometchat-conversations/cometchat-conversations.component.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
95
95
|
ccGroupDeleted: Subscription;
|
|
96
96
|
ccGroupLeft: Subscription;
|
|
97
97
|
ccUserBlocked: Subscription;
|
|
98
|
+
ccUserUnblocked: Subscription;
|
|
98
99
|
ccMessageRead: Subscription;
|
|
99
100
|
onTextMessageReceived: Subscription;
|
|
100
101
|
onMediaMessageReceived: Subscription;
|
|
@@ -105,6 +106,8 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
105
106
|
onCustomInteractiveMessageReceived: Subscription;
|
|
106
107
|
onMessagesRead: Subscription;
|
|
107
108
|
onMessageDeleted: Subscription;
|
|
109
|
+
onMessagesReadByAll: Subscription;
|
|
110
|
+
onMessagesDeliveredToAll: Subscription;
|
|
108
111
|
onMessageEdited: Subscription;
|
|
109
112
|
onMessagesDelivered: Subscription;
|
|
110
113
|
onTypingStarted: Subscription;
|
|
@@ -189,7 +192,7 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
189
192
|
deleteConversationOnClick: (() => void) | null;
|
|
190
193
|
onConfirmClick: () => void;
|
|
191
194
|
onConversationSelected(conversation: CometChat.Conversation, event: any): void;
|
|
192
|
-
|
|
195
|
+
getStatusIndicatorStyle: (conversation: CometChat.Conversation) => any;
|
|
193
196
|
/**
|
|
194
197
|
* @param {CometChat.Conversation} conversation
|
|
195
198
|
*/
|
package/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.d.ts
CHANGED
|
@@ -97,6 +97,10 @@ export declare class CometChatGroupMembersComponent implements OnInit, OnChanges
|
|
|
97
97
|
* @param {CometChat.GroupMember} member
|
|
98
98
|
*/
|
|
99
99
|
getStatusIndicatorColor: (member: CometChat.GroupMember) => string | null | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* @param {CometChat.GroupMember} member
|
|
102
|
+
*/
|
|
103
|
+
getStatusIndicatorStyle: (member: CometChat.GroupMember) => any;
|
|
100
104
|
changeMemberScope(event: any): void;
|
|
101
105
|
handleMenuAction: (menu: any, groupMember: CometChat.GroupMember) => void;
|
|
102
106
|
blockMember: (member: CometChat.GroupMember) => void;
|
|
@@ -65,6 +65,8 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
65
65
|
voiceRecordingStartIconURL: string;
|
|
66
66
|
voiceRecordingStopIconURL: string;
|
|
67
67
|
voiceRecordingSubmitIconURL: string;
|
|
68
|
+
hideLayoutMode: boolean;
|
|
69
|
+
emojiIconURL: string;
|
|
68
70
|
childEvent: EventEmitter<void>;
|
|
69
71
|
userMemberWrapperConfiguration: UserMemberWrapperConfiguration;
|
|
70
72
|
userMemberListType: UserMemberListType;
|
|
@@ -301,7 +303,7 @@ export declare class CometChatMessageComposerComponent implements OnInit, OnChan
|
|
|
301
303
|
};
|
|
302
304
|
handleClickOutside: (event: any) => void;
|
|
303
305
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageComposerComponent, never>;
|
|
304
|
-
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"; "backButtonIconURL": "backButtonIconURL"; "mentionsWarningText": "mentionsWarningText"; "mentionsWarningStyle": "mentionsWarningStyle"; "messageComposerStyle": "messageComposerStyle"; "onSendButtonClick": "onSendButtonClick"; "onError": "onError"; "backdropStyle": "backdropStyle"; "actionSheetStyle": "actionSheetStyle"; "aiActionSheetStyle": "aiActionSheetStyle"; "hideVoiceRecording": "hideVoiceRecording"; "mediaRecorderStyle": "mediaRecorderStyle"; "aiOptionsStyle": "aiOptionsStyle"; "aiIconURL": "aiIconURL"; "voiceRecordingIconURL": "voiceRecordingIconURL"; "voiceRecordingCloseIconURL": "voiceRecordingCloseIconURL"; "voiceRecordingStartIconURL": "voiceRecordingStartIconURL"; "voiceRecordingStopIconURL": "voiceRecordingStopIconURL"; "voiceRecordingSubmitIconURL": "voiceRecordingSubmitIconURL"; "userMemberWrapperConfiguration": "userMemberWrapperConfiguration"; "disableMentions": "disableMentions"; "textFormatters": "textFormatters"; }, { "childEvent": "childEvent"; }, never, never>;
|
|
306
|
+
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"; "backButtonIconURL": "backButtonIconURL"; "mentionsWarningText": "mentionsWarningText"; "mentionsWarningStyle": "mentionsWarningStyle"; "messageComposerStyle": "messageComposerStyle"; "onSendButtonClick": "onSendButtonClick"; "onError": "onError"; "backdropStyle": "backdropStyle"; "actionSheetStyle": "actionSheetStyle"; "aiActionSheetStyle": "aiActionSheetStyle"; "hideVoiceRecording": "hideVoiceRecording"; "mediaRecorderStyle": "mediaRecorderStyle"; "aiOptionsStyle": "aiOptionsStyle"; "aiIconURL": "aiIconURL"; "voiceRecordingIconURL": "voiceRecordingIconURL"; "voiceRecordingCloseIconURL": "voiceRecordingCloseIconURL"; "voiceRecordingStartIconURL": "voiceRecordingStartIconURL"; "voiceRecordingStopIconURL": "voiceRecordingStopIconURL"; "voiceRecordingSubmitIconURL": "voiceRecordingSubmitIconURL"; "hideLayoutMode": "hideLayoutMode"; "emojiIconURL": "emojiIconURL"; "userMemberWrapperConfiguration": "userMemberWrapperConfiguration"; "disableMentions": "disableMentions"; "textFormatters": "textFormatters"; }, { "childEvent": "childEvent"; }, never, never>;
|
|
305
307
|
}
|
|
306
308
|
export interface Buttons {
|
|
307
309
|
title: string;
|
package/CometChatMessageHeader/cometchat-message-header/cometchat-message-header.component.d.ts
CHANGED
|
@@ -54,6 +54,8 @@ export declare class CometChatMessageHeaderComponent implements OnInit, OnChange
|
|
|
54
54
|
ccGroupMemberBanned: Subscription;
|
|
55
55
|
ccOwnershipChanged: Subscription;
|
|
56
56
|
onTypingStarted: Subscription;
|
|
57
|
+
ccUserBlocked: Subscription;
|
|
58
|
+
ccUserUnblocked: Subscription;
|
|
57
59
|
onTypingEnded: Subscription;
|
|
58
60
|
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
59
61
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -63,6 +65,10 @@ export declare class CometChatMessageHeaderComponent implements OnInit, OnChange
|
|
|
63
65
|
setListItemStyle(): void;
|
|
64
66
|
setAvatarStyle(): void;
|
|
65
67
|
setStatusStyle(): void;
|
|
68
|
+
/**
|
|
69
|
+
* @param {CometChat.User} user
|
|
70
|
+
*/
|
|
71
|
+
getStatusIndicatorStyle: (user: CometChat.User) => BaseStyle | null;
|
|
66
72
|
getHeadersStyle(): MessageHeaderStyle;
|
|
67
73
|
statusColor: any;
|
|
68
74
|
backButtonStyle: any;
|
|
@@ -39,6 +39,8 @@ export declare class CometChatMessageInformationComponent implements OnInit, OnC
|
|
|
39
39
|
errorStateView: TemplateRef<any>;
|
|
40
40
|
onMessagesDelivered: Subscription;
|
|
41
41
|
onMessagesRead: Subscription;
|
|
42
|
+
onMessagesReadByAll: Subscription;
|
|
43
|
+
onMessagesDeliveredToAll: Subscription;
|
|
42
44
|
receipts: CometChat.MessageReceipt[];
|
|
43
45
|
receiptStyle: ReceiptStyle;
|
|
44
46
|
isUserType: boolean;
|
|
@@ -64,6 +66,7 @@ export declare class CometChatMessageInformationComponent implements OnInit, OnC
|
|
|
64
66
|
getAvatarUrl(): string;
|
|
65
67
|
getUserReceipt(): number;
|
|
66
68
|
getMessageReceipt(): import("@cometchat/uikit-shared/dist/Utils/MessageReceiptUtils").receipts;
|
|
69
|
+
updateReceipt(receipt: CometChat.MessageReceipt): void;
|
|
67
70
|
getMessageReceipts(): void;
|
|
68
71
|
closeClicked(): void;
|
|
69
72
|
closeButtonStyle: () => {
|
|
@@ -40,6 +40,7 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
40
40
|
pollBubble: TemplateRef<any>;
|
|
41
41
|
messageBubbleRef: QueryList<ElementRef>;
|
|
42
42
|
hideError: boolean;
|
|
43
|
+
hideDateSeparator: boolean;
|
|
43
44
|
errorStateView: TemplateRef<any>;
|
|
44
45
|
loadingStateView: TemplateRef<any>;
|
|
45
46
|
emptyStateView: TemplateRef<any>;
|
|
@@ -214,6 +215,8 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
214
215
|
onMediaMessageReceived: Subscription;
|
|
215
216
|
onMessagesDelivered: Subscription;
|
|
216
217
|
onMessagesRead: Subscription;
|
|
218
|
+
onMessagesReadByAll: Subscription;
|
|
219
|
+
onMessagesDeliveredToAll: Subscription;
|
|
217
220
|
onMessageDeleted: Subscription;
|
|
218
221
|
onMessageEdited: Subscription;
|
|
219
222
|
onTransientMessageReceived: Subscription;
|
|
@@ -799,5 +802,5 @@ export declare class CometChatMessageListComponent implements OnInit, OnDestroy,
|
|
|
799
802
|
justifyContent: string;
|
|
800
803
|
};
|
|
801
804
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatMessageListComponent, never>;
|
|
802
|
-
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"; "aiErrorIcon": "aiErrorIcon"; "aiEmptyIcon": "aiEmptyIcon"; "alignment": "alignment"; "showAvatar": "showAvatar"; "datePattern": "datePattern"; "timestampAlignment": "timestampAlignment"; "DateSeparatorPattern": "DateSeparatorPattern"; "templates": "templates"; "messagesRequestBuilder": "messagesRequestBuilder"; "newMessageIndicatorText": "newMessageIndicatorText"; "scrollToBottomOnNewMessages": "scrollToBottomOnNewMessages"; "thresholdValue": "thresholdValue"; "unreadMessageThreshold": "unreadMessageThreshold"; "reactionsConfiguration": "reactionsConfiguration"; "disableReactions": "disableReactions"; "emojiKeyboardStyle": "emojiKeyboardStyle"; "apiConfiguration": "apiConfiguration"; "onThreadRepliesClick": "onThreadRepliesClick"; "headerView": "headerView"; "footerView": "footerView"; "parentMessageId": "parentMessageId"; "threadIndicatorIcon": "threadIndicatorIcon"; "avatarStyle": "avatarStyle"; "backdropStyle": "backdropStyle"; "dateSeparatorStyle": "dateSeparatorStyle"; "messageListStyle": "messageListStyle"; "onError": "onError"; "messageInformationConfiguration": "messageInformationConfiguration"; "disableMentions": "disableMentions"; "textFormatters": "textFormatters"; }, {}, never, never>;
|
|
805
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatMessageListComponent, "cometchat-message-list", never, { "hideError": "hideError"; "hideDateSeparator": "hideDateSeparator"; "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"; "aiErrorIcon": "aiErrorIcon"; "aiEmptyIcon": "aiEmptyIcon"; "alignment": "alignment"; "showAvatar": "showAvatar"; "datePattern": "datePattern"; "timestampAlignment": "timestampAlignment"; "DateSeparatorPattern": "DateSeparatorPattern"; "templates": "templates"; "messagesRequestBuilder": "messagesRequestBuilder"; "newMessageIndicatorText": "newMessageIndicatorText"; "scrollToBottomOnNewMessages": "scrollToBottomOnNewMessages"; "thresholdValue": "thresholdValue"; "unreadMessageThreshold": "unreadMessageThreshold"; "reactionsConfiguration": "reactionsConfiguration"; "disableReactions": "disableReactions"; "emojiKeyboardStyle": "emojiKeyboardStyle"; "apiConfiguration": "apiConfiguration"; "onThreadRepliesClick": "onThreadRepliesClick"; "headerView": "headerView"; "footerView": "footerView"; "parentMessageId": "parentMessageId"; "threadIndicatorIcon": "threadIndicatorIcon"; "avatarStyle": "avatarStyle"; "backdropStyle": "backdropStyle"; "dateSeparatorStyle": "dateSeparatorStyle"; "messageListStyle": "messageListStyle"; "onError": "onError"; "messageInformationConfiguration": "messageInformationConfiguration"; "disableMentions": "disableMentions"; "textFormatters": "textFormatters"; }, {}, never, never>;
|
|
803
806
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AvatarStyle, BaseStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
2
2
|
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
3
|
-
import { MessageComposerConfiguration, MessageComposerStyle, MessageListConfiguration, ThreadedMessagesStyle } from "@cometchat/uikit-shared";
|
|
3
|
+
import { MessageComposerConfiguration, MessageComposerStyle, MessageListConfiguration, UserMemberWrapperConfiguration, ThreadedMessagesStyle } from "@cometchat/uikit-shared";
|
|
4
4
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
5
5
|
import { Subscription } from "rxjs";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -24,11 +24,13 @@ export declare class CometChatThreadedMessagesComponent implements OnInit, OnCha
|
|
|
24
24
|
bubbleView: TemplateRef<any>;
|
|
25
25
|
messageActionView: TemplateRef<any>;
|
|
26
26
|
messageListConfiguration: MessageListConfiguration;
|
|
27
|
+
userMemberWrapperConfiguration: UserMemberWrapperConfiguration;
|
|
27
28
|
messageComposerConfiguration: MessageComposerConfiguration;
|
|
28
29
|
threadedMessagesStyle: ThreadedMessagesStyle;
|
|
29
30
|
hideMessageComposer: boolean;
|
|
30
31
|
messageComposerView: TemplateRef<any>;
|
|
31
32
|
messageListView: TemplateRef<any>;
|
|
33
|
+
disableSoundForMessages: boolean;
|
|
32
34
|
user: CometChat.User;
|
|
33
35
|
group: CometChat.Group;
|
|
34
36
|
loggedInUser: CometChat.User | null;
|
|
@@ -48,6 +50,8 @@ export declare class CometChatThreadedMessagesComponent implements OnInit, OnCha
|
|
|
48
50
|
onMessagesDelivered: Subscription;
|
|
49
51
|
onMessagesRead: Subscription;
|
|
50
52
|
onMessageDeleted: Subscription;
|
|
53
|
+
onMessagesDeliveredToAll: Subscription;
|
|
54
|
+
onMessagesReadByAll: Subscription;
|
|
51
55
|
onMessageEdited: Subscription;
|
|
52
56
|
onTextMessageReceived: Subscription;
|
|
53
57
|
onCustomMessageReceived: Subscription;
|
|
@@ -77,5 +81,5 @@ export declare class CometChatThreadedMessagesComponent implements OnInit, OnCha
|
|
|
77
81
|
borderRadius: string | undefined;
|
|
78
82
|
};
|
|
79
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatThreadedMessagesComponent, never>;
|
|
80
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatThreadedMessagesComponent, "cometchat-threaded-messages", never, { "onClose": "onClose"; "onError": "onError"; "parentMessage": "parentMessage"; "title": "title"; "closeIconURL": "closeIconURL"; "bubbleView": "bubbleView"; "messageActionView": "messageActionView"; "messageListConfiguration": "messageListConfiguration"; "messageComposerConfiguration": "messageComposerConfiguration"; "threadedMessagesStyle": "threadedMessagesStyle"; "hideMessageComposer": "hideMessageComposer"; "messageComposerView": "messageComposerView"; "messageListView": "messageListView"; }, {}, never, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatThreadedMessagesComponent, "cometchat-threaded-messages", never, { "onClose": "onClose"; "onError": "onError"; "parentMessage": "parentMessage"; "title": "title"; "closeIconURL": "closeIconURL"; "bubbleView": "bubbleView"; "messageActionView": "messageActionView"; "messageListConfiguration": "messageListConfiguration"; "userMemberWrapperConfiguration": "userMemberWrapperConfiguration"; "messageComposerConfiguration": "messageComposerConfiguration"; "threadedMessagesStyle": "threadedMessagesStyle"; "hideMessageComposer": "hideMessageComposer"; "messageComposerView": "messageComposerView"; "messageListView": "messageListView"; "disableSoundForMessages": "disableSoundForMessages"; }, {}, never, never>;
|
|
81
85
|
}
|
|
@@ -91,6 +91,10 @@ export declare class CometChatUsersComponent implements OnInit {
|
|
|
91
91
|
* @param {CometChat.User} user
|
|
92
92
|
*/
|
|
93
93
|
getStatusIndicatorColor: (user: CometChat.User) => string | null | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* @param {CometChat.User} user
|
|
96
|
+
*/
|
|
97
|
+
getStatusIndicatorStyle: (user: CometChat.User) => BaseStyle | null;
|
|
94
98
|
/**
|
|
95
99
|
* @param {CometChat.User} user
|
|
96
100
|
*/
|
|
@@ -106,6 +106,12 @@ export declare class MessageUtils implements DataSource {
|
|
|
106
106
|
getFileMessageTemplate(): CometChatMessageTemplate;
|
|
107
107
|
getFormMessageTemplate(): CometChatMessageTemplate;
|
|
108
108
|
getCardMessageTemplate(): CometChatMessageTemplate;
|
|
109
|
+
/**
|
|
110
|
+
* Function to check if a user's status should be visible
|
|
111
|
+
* @param {CometChat.User | CometChat.GroupMember} user - The user whose status visibility is to be checked.
|
|
112
|
+
* @return {boolean} - Returns `true` if the user's status should be hidden (blocked or offline), `false` otherwise.
|
|
113
|
+
*/
|
|
114
|
+
getUserStatusVisibility(user?: CometChat.User | CometChat.GroupMember): boolean;
|
|
109
115
|
getAllMessageTemplates(): Array<CometChatMessageTemplate>;
|
|
110
116
|
getMessageTemplate(messageType: string, messageCategory: string): CometChatMessageTemplate | null;
|
|
111
117
|
getMessageOptions(loggedInUser: CometChat.User, messageObject: CometChat.BaseMessage, theme: CometChatTheme, group?: CometChat.Group): Array<CometChatMessageOption>;
|