@cometchat/chat-uikit-angular 4.0.0-beta.1.4 → 4.0.0-beta.1.5
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/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/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,5 +1,6 @@
|
|
|
1
|
-
import { ExtensionsDataSource } from '
|
|
2
|
-
export declare class CallingExtension
|
|
3
|
-
|
|
1
|
+
import { ExtensionsDataSource } from '@cometchat/uikit-shared';
|
|
2
|
+
export declare class CallingExtension extends ExtensionsDataSource {
|
|
3
|
+
getExtensionId(): string;
|
|
4
|
+
addExtension(): void;
|
|
4
5
|
enable(): void;
|
|
5
6
|
}
|
package/Calls/CometChatCallButtons/cometchat-call-buttons/cometchat-call-buttons.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { CometChat } from '@cometchat-pro/chat';
|
|
3
2
|
import { CometChatThemeService } from '../../../CometChatTheme.service';
|
|
4
3
|
import { Subscription } from 'rxjs';
|
|
5
|
-
import { CallButtonsStyle,
|
|
4
|
+
import { CallButtonsStyle, OutgoingCallStyle, OutgoingCallConfiguration, CallScreenConfiguration, CometChatUIKitCalls } from '@cometchat/uikit-shared';
|
|
5
|
+
import { CallscreenStyle } from '@cometchat/uikit-elements';
|
|
6
6
|
import '@cometchat/uikit-shared';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
@@ -50,7 +50,8 @@ export declare class CometChatCallButtonsComponent implements OnInit {
|
|
|
50
50
|
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
51
51
|
ngOnInit(): void;
|
|
52
52
|
ngOnDestroy(): void;
|
|
53
|
-
getCallBuilder():
|
|
53
|
+
getCallBuilder(): typeof CometChatUIKitCalls.CallSettings | undefined;
|
|
54
|
+
closeCallScreen(): void;
|
|
54
55
|
openOngoingCallScreen(call: CometChat.Call): void;
|
|
55
56
|
initiateCall(type: string): void;
|
|
56
57
|
initiateAudioCall(): void;
|
package/Calls/CometChatIncomingCall/cometchat-incoming-call/cometchat-incoming-call.component.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { CallscreenStyle
|
|
2
|
+
import { IncomingCallStyle, CometChatUIKitCalls } from "@cometchat/uikit-shared";
|
|
3
|
+
import { CallscreenStyle } from '@cometchat/uikit-elements';
|
|
4
4
|
import { AvatarStyle, IconStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
6
|
import { CometChatThemeService } from '../../../CometChatTheme.service';
|
|
@@ -51,13 +51,14 @@ export declare class CometChatIncomingCallComponent implements OnInit, OnChanges
|
|
|
51
51
|
removeListener(): void;
|
|
52
52
|
localStorageChange: (event: any) => any;
|
|
53
53
|
ngOnInit(): void;
|
|
54
|
+
closeCallScreen(): void;
|
|
54
55
|
ngOnDestroy(): void;
|
|
55
56
|
setOngoingCallStyle: () => void;
|
|
56
57
|
getCallTypeIcon(): "assets/Audio-Call.svg" | "assets/Video-call.svg";
|
|
57
58
|
acceptIncomingCall(): void;
|
|
58
59
|
checkForActiveCallAndEndCall: () => Promise<unknown>;
|
|
59
60
|
rejectIncomingCall(reason?: string): void;
|
|
60
|
-
getCallBuilder():
|
|
61
|
+
getCallBuilder(): typeof CometChatUIKitCalls.CallSettings | undefined;
|
|
61
62
|
setThemeStyle(): void;
|
|
62
63
|
setListItemStyle(): void;
|
|
63
64
|
setincomingCallStyle(): void;
|
package/Calls/CometChatOngoingCall/cometchat-ongoing-call/cometchat-ongoing-call.component.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { CometChat } from '@cometchat-pro/chat';
|
|
1
|
+
import { ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
3
2
|
import "@cometchat/uikit-elements";
|
|
4
3
|
import '@cometchat/uikit-shared';
|
|
5
|
-
import {
|
|
4
|
+
import { CallWorkflow } from '@cometchat/uikit-resources';
|
|
5
|
+
import { CometChatUIKitCalls } from '@cometchat/uikit-shared';
|
|
6
|
+
import { CallscreenStyle } from '@cometchat/uikit-elements';
|
|
6
7
|
import { CometChatThemeService } from '../../../CometChatTheme.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
@@ -14,17 +15,24 @@ import * as i0 from "@angular/core";
|
|
|
14
15
|
* @copyright © 2022 CometChat Inc.
|
|
15
16
|
*
|
|
16
17
|
*/
|
|
17
|
-
export declare class CometChatOngoingCallComponent implements OnInit {
|
|
18
|
+
export declare class CometChatOngoingCallComponent implements OnInit, OnChanges {
|
|
18
19
|
private themeService;
|
|
20
|
+
callScreenFrame: ElementRef;
|
|
19
21
|
ongoingCallStyle: CallscreenStyle;
|
|
20
22
|
resizeIconHoverText: string;
|
|
21
23
|
sessionID: string;
|
|
22
24
|
minimizeIconURL: string;
|
|
23
25
|
maximizeIconURL: string;
|
|
24
|
-
callSettingsBuilder:
|
|
26
|
+
callSettingsBuilder: typeof CometChatUIKitCalls.CallSettingsBuilder;
|
|
27
|
+
callWorkflow: CallWorkflow;
|
|
28
|
+
onError: (error: CometChat.CometChatException) => void;
|
|
29
|
+
loggedInUser: CometChat.User;
|
|
25
30
|
ngOnInit(): void;
|
|
26
31
|
constructor(themeService: CometChatThemeService);
|
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
+
getCallBuilder: () => any;
|
|
34
|
+
startCall: () => void;
|
|
27
35
|
setongoingCallStyle(): void;
|
|
28
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatOngoingCallComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatOngoingCallComponent, "cometchat-ongoing-call", never, { "ongoingCallStyle": "ongoingCallStyle"; "resizeIconHoverText": "resizeIconHoverText"; "sessionID": "sessionID"; "minimizeIconURL": "minimizeIconURL"; "maximizeIconURL": "maximizeIconURL"; "callSettingsBuilder": "callSettingsBuilder"; }, {}, never, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatOngoingCallComponent, "cometchat-ongoing-call", never, { "ongoingCallStyle": "ongoingCallStyle"; "resizeIconHoverText": "resizeIconHoverText"; "sessionID": "sessionID"; "minimizeIconURL": "minimizeIconURL"; "maximizeIconURL": "maximizeIconURL"; "callSettingsBuilder": "callSettingsBuilder"; "callWorkflow": "callWorkflow"; "onError": "onError"; }, {}, never, never>;
|
|
30
38
|
}
|
package/Calls/CometChatOutgoingCall/cometchat-outgoing-call/cometchat-outgoing-call.component.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import { CometChat } from '@cometchat-pro/chat';
|
|
3
2
|
import { OutgoingCallStyle } from "@cometchat/uikit-shared";
|
|
4
3
|
import { AvatarStyle, CardStyle, IconStyle } from '@cometchat/uikit-elements';
|
|
5
4
|
import { CometChatThemeService } from '../../../CometChatTheme.service';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef, TemplateRef } from "@angular/core";
|
|
2
|
-
import { CometChat } from "@cometchat
|
|
3
|
-
import { AddMembersStyle,
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
|
+
import { AddMembersStyle, UsersStyle, BaseStyle } from '@cometchat/uikit-shared';
|
|
4
4
|
import '@cometchat/uikit-elements';
|
|
5
|
-
import { CometChatOption } from '@cometchat/uikit-resources';
|
|
5
|
+
import { CometChatOption, TitleAlignment, SelectionMode } from '@cometchat/uikit-resources';
|
|
6
6
|
import { AvatarStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
7
7
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -38,7 +38,7 @@ export declare class CometChatAddMembersComponent implements OnInit {
|
|
|
38
38
|
onError: ((error: CometChat.CometChatException) => void) | null;
|
|
39
39
|
onBack: () => void;
|
|
40
40
|
onClose: () => void;
|
|
41
|
-
onSelect: (user: CometChat.User) => void;
|
|
41
|
+
onSelect: (user: CometChat.User, selected: boolean) => void;
|
|
42
42
|
buttonText: string;
|
|
43
43
|
group: CometChat.Group;
|
|
44
44
|
emptyStateView: TemplateRef<any>;
|
|
@@ -73,7 +73,7 @@ export declare class CometChatAddMembersComponent implements OnInit {
|
|
|
73
73
|
/**
|
|
74
74
|
* @param {string} uid
|
|
75
75
|
*/
|
|
76
|
-
addRemoveUsers: (user: CometChat.User) => void;
|
|
76
|
+
addRemoveUsers: (user: CometChat.User, selected: boolean) => void;
|
|
77
77
|
closeClicked(): void;
|
|
78
78
|
backClicked(): void;
|
|
79
79
|
addMembersToGroup: () => void;
|
package/CometChatBannedMembers/cometchat-banned-members/cometchat-banned-members.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 { Subscription } from "rxjs";
|
|
4
|
-
import { BannedMembersStyle,
|
|
5
|
-
import { CometChatOption } from '@cometchat/uikit-resources';
|
|
4
|
+
import { BannedMembersStyle, ListStyle } from '@cometchat/uikit-shared';
|
|
5
|
+
import { CometChatOption, SelectionMode, States, TitleAlignment } from '@cometchat/uikit-resources';
|
|
6
6
|
import '@cometchat/uikit-elements';
|
|
7
7
|
import { AvatarStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
8
8
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
@@ -36,7 +36,7 @@ export declare class CometChatBannedMembersComponent implements OnInit {
|
|
|
36
36
|
hideSearch: boolean;
|
|
37
37
|
title: string;
|
|
38
38
|
onError: ((error: CometChat.CometChatException) => void) | null;
|
|
39
|
-
onSelect: (member: CometChat.GroupMember) => void;
|
|
39
|
+
onSelect: (member: CometChat.GroupMember, selected: boolean) => void;
|
|
40
40
|
onBack: () => void;
|
|
41
41
|
onClose: () => void;
|
|
42
42
|
group: CometChat.Group;
|
|
@@ -91,6 +91,7 @@ export declare class CometChatBannedMembersComponent implements OnInit {
|
|
|
91
91
|
ngOnInit(): void;
|
|
92
92
|
backClicked(): void;
|
|
93
93
|
closeClicked(): void;
|
|
94
|
+
onMembersSelected(member: CometChat.GroupMember, event: any): void;
|
|
94
95
|
/**
|
|
95
96
|
* @param {CometChat.GroupMember} member
|
|
96
97
|
*/
|
|
@@ -107,7 +108,7 @@ export declare class CometChatBannedMembersComponent implements OnInit {
|
|
|
107
108
|
attachListeners(): void;
|
|
108
109
|
removeListener(): void;
|
|
109
110
|
fetchNextBannedMembers: () => void;
|
|
110
|
-
getRequestBuilder():
|
|
111
|
+
getRequestBuilder(): import("@cometchat/chat-sdk-javascript").BannedMembersRequest;
|
|
111
112
|
subscribeToEvents(): void;
|
|
112
113
|
unsubscribeToEvents(): void;
|
|
113
114
|
/**
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { OnInit, ChangeDetectorRef, TemplateRef, AfterViewInit } from "@angular/core";
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
|
+
import { BaseStyle, GroupsConfiguration, UsersConfiguration, TabItemStyle, ContactsStyle } from '@cometchat/uikit-shared';
|
|
4
|
+
import '@cometchat/uikit-elements';
|
|
5
|
+
import { CometChatTabItem, TabsVisibility, SelectionMode } from '@cometchat/uikit-resources';
|
|
6
|
+
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* CometChatContactsComponent is used to render group members to add
|
|
11
|
+
*
|
|
12
|
+
* @version 1.0.0
|
|
13
|
+
* @author CometChatTeam
|
|
14
|
+
* @copyright © 2022 CometChat Inc.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class CometChatContactsComponent implements OnInit, AfterViewInit {
|
|
18
|
+
private ref;
|
|
19
|
+
private themeService;
|
|
20
|
+
usersRef: TemplateRef<any>;
|
|
21
|
+
groupsRef: TemplateRef<any>;
|
|
22
|
+
title: string;
|
|
23
|
+
usersTabTitle: string;
|
|
24
|
+
groupsTabTitle: string;
|
|
25
|
+
usersConfiguration: UsersConfiguration;
|
|
26
|
+
groupsConfiguration: GroupsConfiguration;
|
|
27
|
+
onSubmitButtonClick: (users?: CometChat.User[], groups?: CometChat.Group[]) => void;
|
|
28
|
+
closeIconURL: string;
|
|
29
|
+
contactsStyle: ContactsStyle;
|
|
30
|
+
selectionMode: SelectionMode;
|
|
31
|
+
onClose: () => void;
|
|
32
|
+
onItemClick: (user?: CometChat.User, group?: CometChat.Group) => void;
|
|
33
|
+
tabVisibility: TabsVisibility;
|
|
34
|
+
selectionLimit: number;
|
|
35
|
+
tabs: CometChatTabItem[];
|
|
36
|
+
hideSubmitButton: boolean;
|
|
37
|
+
submitButtonText: string;
|
|
38
|
+
usersRequestBuilder: CometChat.UsersRequestBuilder;
|
|
39
|
+
usersSearchRequestBuilder: CometChat.UsersRequestBuilder;
|
|
40
|
+
groupsRequestBuilder: CometChat.GroupsRequestBuilder;
|
|
41
|
+
groupsSearchRequestBuilder: CometChat.GroupsRequestBuilder;
|
|
42
|
+
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
43
|
+
tabItemStyle: TabItemStyle;
|
|
44
|
+
usersList: CometChat.User[];
|
|
45
|
+
groupsList: CometChat.Group[];
|
|
46
|
+
submitButtonStyle: any;
|
|
47
|
+
closeButtonStyle: any;
|
|
48
|
+
wrapperStyle: any;
|
|
49
|
+
contactsPadding: any;
|
|
50
|
+
titleStyle: any;
|
|
51
|
+
errorStyle: any;
|
|
52
|
+
isLimitReached: boolean;
|
|
53
|
+
tabsStyle: BaseStyle;
|
|
54
|
+
onGroupSelected: (group: CometChat.Group) => void;
|
|
55
|
+
onUserSelected: (user: CometChat.User) => void;
|
|
56
|
+
ngOnInit(): void;
|
|
57
|
+
ngAfterViewInit(): void;
|
|
58
|
+
userClicked: (user: CometChat.User) => void;
|
|
59
|
+
groupClicked: (group: CometChat.Group) => void;
|
|
60
|
+
closeClicked(): void;
|
|
61
|
+
submitClicked(): void;
|
|
62
|
+
setcontactsStyle(): void;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatContactsComponent, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatContactsComponent, "cometchat-contacts", never, { "title": "title"; "usersTabTitle": "usersTabTitle"; "groupsTabTitle": "groupsTabTitle"; "usersConfiguration": "usersConfiguration"; "groupsConfiguration": "groupsConfiguration"; "onSubmitButtonClick": "onSubmitButtonClick"; "closeIconURL": "closeIconURL"; "contactsStyle": "contactsStyle"; "selectionMode": "selectionMode"; "onClose": "onClose"; "onItemClick": "onItemClick"; "tabVisibility": "tabVisibility"; "selectionLimit": "selectionLimit"; "tabs": "tabs"; "hideSubmitButton": "hideSubmitButton"; "submitButtonText": "submitButtonText"; }, {}, never, never>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./cometchat-contacts/cometchat-contacts.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../CometChatUsers/cometchat-users.module";
|
|
6
|
+
import * as i5 from "../Shared/Views/CometChatTabs/cometchat-tabs.module";
|
|
7
|
+
import * as i6 from "../CometChatGroups/cometchat-groups.module";
|
|
8
|
+
export declare class CometChatContacts {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatContacts, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatContacts, [typeof i1.CometChatContactsComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.CometChatUsers, typeof i5.CometChatTabs, typeof i6.CometChatGroups], [typeof i1.CometChatContactsComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatContacts>;
|
|
12
|
+
}
|
package/CometChatConversations/cometchat-conversations/cometchat-conversations.component.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ChangeDetectorRef, NgZone, OnChanges, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
|
-
import { CometChat } from "@cometchat
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
3
|
import { Subscription } from "rxjs";
|
|
4
|
-
import {
|
|
5
|
-
import { CometChatOption, DatePatterns } from '@cometchat/uikit-resources';
|
|
4
|
+
import { BaseStyle, ConversationsStyle, ListStyle } from "@cometchat/uikit-shared";
|
|
5
|
+
import { CometChatOption, DatePatterns, SelectionMode, States, TitleAlignment } from '@cometchat/uikit-resources';
|
|
6
6
|
import '@cometchat/uikit-elements';
|
|
7
|
-
import { AvatarStyle, ListItemStyle, ConfirmDialogStyle, ReceiptStyle, DateStyle, BadgeStyle } from '@cometchat/uikit-elements';
|
|
7
|
+
import { AvatarStyle, ListItemStyle, ConfirmDialogStyle, ReceiptStyle, DateStyle, BadgeStyle, BackdropStyle } from '@cometchat/uikit-elements';
|
|
8
8
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
@@ -42,9 +42,9 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
42
42
|
activeConversation: CometChat.Conversation | null;
|
|
43
43
|
searchIconURL: string;
|
|
44
44
|
hideSearch: boolean;
|
|
45
|
-
conversationsRequestBuilder:
|
|
45
|
+
conversationsRequestBuilder: CometChat.ConversationsRequestBuilder;
|
|
46
46
|
emptyStateView: TemplateRef<any>;
|
|
47
|
-
onSelect: (conversation: CometChat.Conversation) => void;
|
|
47
|
+
onSelect: (conversation: CometChat.Conversation, selected: boolean) => void;
|
|
48
48
|
loadingIconURL: string;
|
|
49
49
|
errorStateView: TemplateRef<any>;
|
|
50
50
|
loadingStateView: TemplateRef<any>;
|
|
@@ -64,7 +64,7 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
64
64
|
confirmDialogMessage: string;
|
|
65
65
|
onItemClick: (conversation: CometChat.Conversation) => void;
|
|
66
66
|
deleteConversationDialogStyle: ConfirmDialogStyle;
|
|
67
|
-
backdropStyle:
|
|
67
|
+
backdropStyle: BackdropStyle;
|
|
68
68
|
badgeStyle: BadgeStyle;
|
|
69
69
|
dateStyle: DateStyle;
|
|
70
70
|
conversationsStyle: ConversationsStyle;
|
|
@@ -115,6 +115,7 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
115
115
|
typingIndicator: CometChat.TypingIndicator | null;
|
|
116
116
|
typingListenerId: string;
|
|
117
117
|
callListenerId: string;
|
|
118
|
+
connectionListenerId: string;
|
|
118
119
|
selectionmodeEnum: typeof SelectionMode;
|
|
119
120
|
isDialogOpen: boolean;
|
|
120
121
|
isEmpty: boolean;
|
|
@@ -141,6 +142,11 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
141
142
|
confirmDialogStyle: ConfirmDialogStyle;
|
|
142
143
|
subtitleValue: string;
|
|
143
144
|
modalStyle: BaseStyle;
|
|
145
|
+
firstReload: boolean;
|
|
146
|
+
isActive: boolean;
|
|
147
|
+
contactsNotFound: boolean;
|
|
148
|
+
chatSearch: boolean;
|
|
149
|
+
requestBuilder: CometChat.ConversationsRequest;
|
|
144
150
|
/**
|
|
145
151
|
* Properties for internal use
|
|
146
152
|
*/
|
|
@@ -158,6 +164,7 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
158
164
|
*/
|
|
159
165
|
deleteConversationOnClick: (() => void) | null;
|
|
160
166
|
onConfirmClick: () => void;
|
|
167
|
+
onConversationSelected(conversation: CometChat.Conversation, event: any): void;
|
|
161
168
|
setStatusIndicatorStyle: (conversation: CometChat.Conversation) => any;
|
|
162
169
|
/**
|
|
163
170
|
* @param {CometChat.Conversation} conversation
|
|
@@ -168,20 +175,18 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
168
175
|
checkGroupType(conversation: CometChat.Conversation): string;
|
|
169
176
|
onCancelClick: () => void;
|
|
170
177
|
getMessageReceipt: (conversation: CometChat.Conversation) => import("@cometchat/uikit-shared/dist/Utils/MessageReceiptUtils").receipts;
|
|
171
|
-
getDate(): DatePatterns.DayDate | DatePatterns.DayDateTime;
|
|
178
|
+
getDate(): DatePatterns.DayDate | DatePatterns.DayDateTime | DatePatterns.DateTime;
|
|
172
179
|
optionsStyle: {
|
|
173
180
|
background: string;
|
|
174
181
|
border: string;
|
|
175
182
|
};
|
|
176
|
-
isActive: boolean;
|
|
177
|
-
contactsNotFound: boolean;
|
|
178
|
-
chatSearch: boolean;
|
|
179
183
|
constructor(ngZone: NgZone, ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
180
184
|
ngOnInit(): void;
|
|
185
|
+
attachConnectionListeners(): void;
|
|
181
186
|
updateConversationObject(conversation: CometChat.Conversation): void;
|
|
182
187
|
subscribeToEvents(): void;
|
|
183
188
|
unsubscribeToEvents(): void;
|
|
184
|
-
getConversationFromUser(user: CometChat.User):
|
|
189
|
+
getConversationFromUser(user: CometChat.User): import("@cometchat/chat-sdk-javascript").Conversation | null;
|
|
185
190
|
getConversationFromGroup(group: CometChat.Group): CometChat.Conversation | null;
|
|
186
191
|
ngOnChanges(change: SimpleChanges): void;
|
|
187
192
|
ngOnDestroy(): void;
|
|
@@ -218,6 +223,7 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
218
223
|
* @param {Function} callback
|
|
219
224
|
*/
|
|
220
225
|
attachListeners(callback: any): void;
|
|
226
|
+
fetchNewConversations(): void;
|
|
221
227
|
/**
|
|
222
228
|
* Removes all listeners
|
|
223
229
|
*/
|
|
@@ -225,12 +231,12 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
225
231
|
/**
|
|
226
232
|
* Fetches Conversations Details with all the users
|
|
227
233
|
*/
|
|
228
|
-
getConversation: () => void;
|
|
234
|
+
getConversation: (states?: States) => void;
|
|
229
235
|
isReceiptDisable(conversation: CometChat.Conversation): boolean;
|
|
230
236
|
/**
|
|
231
237
|
* Updates the conversation list's last message , badgeCount , user presence based on activities propagated by listeners
|
|
232
238
|
*/
|
|
233
|
-
conversationUpdated: (key: any, item:
|
|
239
|
+
conversationUpdated: (key: any, item: import("@cometchat/chat-sdk-javascript").User | import("@cometchat/chat-sdk-javascript").Group | null | undefined, message: CometChat.BaseMessage, options?: null) => void;
|
|
234
240
|
/**
|
|
235
241
|
* @param {CometChat.BaseMessage} message
|
|
236
242
|
*/
|
|
@@ -256,7 +262,7 @@ export declare class CometChatConversationsComponent implements OnInit, OnChange
|
|
|
256
262
|
* @param {CometChat.BaseMessage} message
|
|
257
263
|
* @param {CometChat.Conversation|{}} conversation
|
|
258
264
|
*/
|
|
259
|
-
makeLastMessage(message: CometChat.BaseMessage, conversation?: CometChat.Conversation | {}):
|
|
265
|
+
makeLastMessage(message: CometChat.BaseMessage, conversation?: CometChat.Conversation | {}): import("@cometchat/chat-sdk-javascript").BaseMessage;
|
|
260
266
|
/**
|
|
261
267
|
*
|
|
262
268
|
* Updates Conversations as Text/Custom Messages are received
|
|
@@ -1,8 +1,7 @@
|
|
|
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
|
-
import { WithMessagesStyle, MessagesConfiguration, ConversationsConfiguration } from '@cometchat/uikit-shared';
|
|
4
|
+
import { WithMessagesStyle, MessagesConfiguration, ConversationsConfiguration, ContactsConfiguration } from '@cometchat/uikit-shared';
|
|
6
5
|
import { CometChatTheme } from '@cometchat/uikit-resources';
|
|
7
6
|
import '@cometchat/uikit-elements';
|
|
8
7
|
import { Subscription } from "rxjs";
|
|
@@ -31,33 +30,43 @@ export declare class CometChatConversationsWithMessagesComponent implements OnIn
|
|
|
31
30
|
messagesConfiguration: MessagesConfiguration;
|
|
32
31
|
conversationConfiguration: ConversationsConfiguration;
|
|
33
32
|
onError: ((error: CometChat.CometChatException) => void) | null;
|
|
33
|
+
startNewConversationIconURL: string;
|
|
34
|
+
hideStartNewConversation: boolean;
|
|
35
|
+
StartConversationConfiguration: ContactsConfiguration;
|
|
34
36
|
theme: CometChatTheme;
|
|
35
37
|
/**
|
|
36
38
|
* Properties for internal use
|
|
37
39
|
*/
|
|
40
|
+
showStartConversation: boolean;
|
|
38
41
|
loggedInUser: CometChat.User | null;
|
|
39
42
|
activeConversation: CometChat.Conversation | null;
|
|
40
43
|
labelStyle: any;
|
|
41
44
|
hideSearch: boolean;
|
|
45
|
+
startConversationButtonStyle: any;
|
|
42
46
|
/**
|
|
43
47
|
* Events
|
|
44
48
|
*/
|
|
45
49
|
ccGroupMemberAdded: Subscription;
|
|
46
50
|
ccGroupLeft: Subscription;
|
|
51
|
+
ccOpenChat: Subscription;
|
|
47
52
|
ccGroupMemberJoined: Subscription;
|
|
48
53
|
ccGroupMemberKicked: Subscription;
|
|
49
54
|
ccGroupMemberBanned: Subscription;
|
|
50
55
|
ccOwnershipChanged: Subscription;
|
|
51
56
|
ccGroupDeleted: Subscription;
|
|
57
|
+
sideBarStyle: any;
|
|
52
58
|
ccConversationDeleted: Subscription;
|
|
53
59
|
constructor(elementRef: ElementRef, ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
54
60
|
ngOnChanges(changes: SimpleChanges): void;
|
|
61
|
+
triggerStartConversation(): void;
|
|
55
62
|
onBack: () => void;
|
|
56
63
|
setWithMessagesStyle(): void;
|
|
64
|
+
onContactSelected: (users?: import("@cometchat/chat-sdk-javascript").User[] | undefined, groups?: import("@cometchat/chat-sdk-javascript").Group[] | undefined) => void;
|
|
57
65
|
onItemClick: ((conversation: CometChat.Conversation) => void);
|
|
58
66
|
ngAfterViewInit(): void;
|
|
59
67
|
updateBackdropHeight(): void;
|
|
60
68
|
setActiveChat(): void;
|
|
69
|
+
closeStartConversation: () => void;
|
|
61
70
|
ngOnInit(): void;
|
|
62
71
|
ngOnDestroy(): void;
|
|
63
72
|
subscribeToEvents(): void;
|
|
@@ -71,7 +80,7 @@ export declare class CometChatConversationsWithMessagesComponent implements OnIn
|
|
|
71
80
|
background: string | undefined;
|
|
72
81
|
height: string | undefined;
|
|
73
82
|
width: string;
|
|
74
|
-
border: string
|
|
83
|
+
border: string;
|
|
75
84
|
borderRadius: string | undefined;
|
|
76
85
|
};
|
|
77
86
|
chatsWrapperStyles: () => {
|
|
@@ -82,5 +91,5 @@ export declare class CometChatConversationsWithMessagesComponent implements OnIn
|
|
|
82
91
|
background: string | undefined;
|
|
83
92
|
};
|
|
84
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatConversationsWithMessagesComponent, never>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatConversationsWithMessagesComponent, "cometchat-conversations-with-messages", never, { "user": "user"; "group": "group"; "isMobileView": "isMobileView"; "messageText": "messageText"; "conversationsWithMessagesStyle": "conversationsWithMessagesStyle"; "messagesConfiguration": "messagesConfiguration"; "conversationConfiguration": "conversationConfiguration"; "onError": "onError"; }, {}, never, never>;
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CometChatConversationsWithMessagesComponent, "cometchat-conversations-with-messages", never, { "user": "user"; "group": "group"; "isMobileView": "isMobileView"; "messageText": "messageText"; "conversationsWithMessagesStyle": "conversationsWithMessagesStyle"; "messagesConfiguration": "messagesConfiguration"; "conversationConfiguration": "conversationConfiguration"; "onError": "onError"; "startNewConversationIconURL": "startNewConversationIconURL"; "hideStartNewConversation": "hideStartNewConversation"; "StartConversationConfiguration": "StartConversationConfiguration"; }, {}, never, never>;
|
|
86
95
|
}
|
package/CometChatConversationsWithMessages/cometchat-conversations-with-messages.module.d.ts
CHANGED
|
@@ -5,8 +5,9 @@ import * as i3 from "../CometChatConversations/cometchat-conversations.module";
|
|
|
5
5
|
import * as i4 from "../CometChatMessages/cometchat-messages.module";
|
|
6
6
|
import * as i5 from "@angular/platform-browser";
|
|
7
7
|
import * as i6 from "@angular/platform-browser/animations";
|
|
8
|
+
import * as i7 from "../CometChatContacts/cometchat-contacts.module";
|
|
8
9
|
export declare class CometChatConversationsWithMessages {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<CometChatConversationsWithMessages, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatConversationsWithMessages, [typeof i1.CometChatConversationsWithMessagesComponent], [typeof i2.CommonModule, typeof i3.CometChatConversations, typeof i4.CometChatMessages, typeof i5.BrowserModule, typeof i6.BrowserAnimationsModule], [typeof i1.CometChatConversationsWithMessagesComponent]>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CometChatConversationsWithMessages, [typeof i1.CometChatConversationsWithMessagesComponent], [typeof i2.CommonModule, typeof i3.CometChatConversations, typeof i4.CometChatMessages, typeof i5.BrowserModule, typeof i6.BrowserAnimationsModule, typeof i7.CometChatContacts], [typeof i1.CometChatConversationsWithMessagesComponent]>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<CometChatConversationsWithMessages>;
|
|
12
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef, TemplateRef, OnChanges, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { Subscription } from "rxjs";
|
|
3
3
|
import '@cometchat/uikit-elements';
|
|
4
|
-
import { AvatarStyle, ConfirmDialogStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
5
|
-
import { AddMembersConfiguration, BannedMembersConfiguration, DetailsStyle, GroupMembersConfiguration,
|
|
6
|
-
import { CometChatDetailsOption, CometChatDetailsTemplate } from '@cometchat/uikit-resources';
|
|
7
|
-
import { CometChat } from "@cometchat
|
|
4
|
+
import { AvatarStyle, BackdropStyle, ConfirmDialogStyle, ListItemStyle } from '@cometchat/uikit-elements';
|
|
5
|
+
import { AddMembersConfiguration, BannedMembersConfiguration, DetailsStyle, GroupMembersConfiguration, TransferOwnershipConfiguration } from "@cometchat/uikit-shared";
|
|
6
|
+
import { CometChatDetailsOption, CometChatDetailsTemplate, SelectionMode } from '@cometchat/uikit-resources';
|
|
7
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
8
8
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
@@ -50,7 +50,7 @@ export declare class CometChatDetailsComponent implements OnInit, OnChanges {
|
|
|
50
50
|
transferOwnershipConfiguration: TransferOwnershipConfiguration;
|
|
51
51
|
backiconurl: string;
|
|
52
52
|
statusIndicatorStyle: any;
|
|
53
|
-
backdropStyle:
|
|
53
|
+
backdropStyle: BackdropStyle;
|
|
54
54
|
avatarStyle: AvatarStyle;
|
|
55
55
|
detailsStyle: DetailsStyle;
|
|
56
56
|
listItemStyle: ListItemStyle;
|
|
@@ -109,8 +109,8 @@ export declare class CometChatDetailsComponent implements OnInit, OnChanges {
|
|
|
109
109
|
onOptionClick(option: CometChatDetailsOption): void;
|
|
110
110
|
onTransferClick(): void;
|
|
111
111
|
onLeaveClick(): void;
|
|
112
|
-
createActionMessage(actionOn: CometChat.GroupMember, action: string):
|
|
113
|
-
createUserLeftAction(actionOn: CometChat.User, action: string):
|
|
112
|
+
createActionMessage(actionOn: CometChat.GroupMember, action: string): import("@cometchat/chat-sdk-javascript").Action;
|
|
113
|
+
createUserLeftAction(actionOn: CometChat.User, action: string): import("@cometchat/chat-sdk-javascript").Action;
|
|
114
114
|
onCloseClick: () => void;
|
|
115
115
|
onCancelClick(): void;
|
|
116
116
|
blockUser(): void;
|
package/CometChatGroupMembers/cometchat-group-members/cometchat-group-members.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OnInit, ChangeDetectorRef, TemplateRef } from "@angular/core";
|
|
2
|
-
import { CometChat } from "@cometchat
|
|
3
|
-
import { AvatarStyle, ListItemStyle, ChangeScopeStyle, MenuListStyle } from '@cometchat/uikit-elements';
|
|
4
|
-
import {
|
|
5
|
-
import { CometChatOption } from '@cometchat/uikit-resources';
|
|
1
|
+
import { OnInit, ChangeDetectorRef, TemplateRef, OnChanges, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { CometChat } from "@cometchat/chat-sdk-javascript";
|
|
3
|
+
import { AvatarStyle, ListItemStyle, ChangeScopeStyle, MenuListStyle, BackdropStyle } from '@cometchat/uikit-elements';
|
|
4
|
+
import { GroupMembersStyle, ListStyle } from "@cometchat/uikit-shared";
|
|
5
|
+
import { CometChatOption, SelectionMode, States, TitleAlignment } from '@cometchat/uikit-resources';
|
|
6
6
|
import { CometChatThemeService } from "../../CometChatTheme.service";
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
@@ -14,7 +14,7 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* @copyright © 2022 CometChat Inc.
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
|
-
export declare class CometChatGroupMembersComponent implements OnInit {
|
|
17
|
+
export declare class CometChatGroupMembersComponent implements OnInit, OnChanges {
|
|
18
18
|
private ref;
|
|
19
19
|
private themeService;
|
|
20
20
|
groupMemberRequestBuilder: CometChat.GroupMembersRequestBuilder;
|
|
@@ -35,10 +35,10 @@ export declare class CometChatGroupMembersComponent implements OnInit {
|
|
|
35
35
|
hideSearch: boolean;
|
|
36
36
|
title: string;
|
|
37
37
|
onError: ((error: CometChat.CometChatException) => void) | null;
|
|
38
|
-
backdropStyle:
|
|
38
|
+
backdropStyle: BackdropStyle;
|
|
39
39
|
onBack: () => void;
|
|
40
40
|
onClose: () => void;
|
|
41
|
-
onSelect: (groupMember: CometChat.GroupMember) => void;
|
|
41
|
+
onSelect: (groupMember: CometChat.GroupMember, selected: boolean) => void;
|
|
42
42
|
group: CometChat.Group;
|
|
43
43
|
emptyStateView: TemplateRef<any>;
|
|
44
44
|
errorStateView: TemplateRef<any>;
|
|
@@ -50,7 +50,7 @@ export declare class CometChatGroupMembersComponent implements OnInit {
|
|
|
50
50
|
dropdownIconURL: string;
|
|
51
51
|
statusIndicatorStyle: any;
|
|
52
52
|
avatarStyle: AvatarStyle;
|
|
53
|
-
|
|
53
|
+
groupMembersStyle: GroupMembersStyle;
|
|
54
54
|
groupScopeStyle: ChangeScopeStyle;
|
|
55
55
|
listItemStyle: ListItemStyle;
|
|
56
56
|
listStyle: ListStyle;
|
|
@@ -75,10 +75,12 @@ export declare class CometChatGroupMembersComponent implements OnInit {
|
|
|
75
75
|
loggedInUser: CometChat.User | null;
|
|
76
76
|
changeScope: boolean;
|
|
77
77
|
constructor(ref: ChangeDetectorRef, themeService: CometChatThemeService);
|
|
78
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
78
79
|
memberScope: any[];
|
|
79
80
|
membersList: CometChat.GroupMember[];
|
|
80
81
|
closeClicked(): void;
|
|
81
82
|
backClicked(): void;
|
|
83
|
+
onMemberSelected(member: CometChat.GroupMember, event: any): void;
|
|
82
84
|
ngOnInit(): void;
|
|
83
85
|
ngOnDestroy(): void;
|
|
84
86
|
/**
|
|
@@ -88,7 +90,7 @@ export declare class CometChatGroupMembersComponent implements OnInit {
|
|
|
88
90
|
changeMemberScope(event: any): void;
|
|
89
91
|
handleMenuAction: (menu: any, groupMember: CometChat.GroupMember) => void;
|
|
90
92
|
blockMember: (member: CometChat.GroupMember) => void;
|
|
91
|
-
createActionMessage(actionOn: CometChat.GroupMember, action: string):
|
|
93
|
+
createActionMessage(actionOn: CometChat.GroupMember, action: string): import("@cometchat/chat-sdk-javascript").Action;
|
|
92
94
|
kickMember: (member: CometChat.GroupMember) => void;
|
|
93
95
|
/**
|
|
94
96
|
* @param {CometChat.User} member
|
|
@@ -99,7 +101,7 @@ export declare class CometChatGroupMembersComponent implements OnInit {
|
|
|
99
101
|
removeListener(): void;
|
|
100
102
|
addRemoveMember: (member: CometChat.GroupMember) => void;
|
|
101
103
|
fetchNextGroupMembers: () => void;
|
|
102
|
-
getRequestBuilder():
|
|
104
|
+
getRequestBuilder(): import("@cometchat/chat-sdk-javascript").GroupMembersRequest;
|
|
103
105
|
/**
|
|
104
106
|
* @param {string} key
|
|
105
107
|
*/
|
|
@@ -141,5 +143,5 @@ export declare class CometChatGroupMembersComponent implements OnInit {
|
|
|
141
143
|
textColor: string | undefined;
|
|
142
144
|
};
|
|
143
145
|
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"; "
|
|
146
|
+
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"; "groupMembersStyle": "groupMembersStyle"; "groupScopeStyle": "groupScopeStyle"; "listItemStyle": "listItemStyle"; }, {}, never, never>;
|
|
145
147
|
}
|