@volo/abp.ng.chat 9.3.0-rc.1 → 9.3.0-rc.3
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/config/index.d.ts +89 -5
- package/fesm2022/volo-abp.ng.chat-config.mjs +13 -13
- package/fesm2022/volo-abp.ng.chat-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.chat-proxy.mjs +9 -9
- package/fesm2022/volo-abp.ng.chat-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.chat.mjs +26 -26
- package/fesm2022/volo-abp.ng.chat.mjs.map +1 -1
- package/index.d.ts +199 -5
- package/package.json +1 -1
- package/proxy/index.d.ts +122 -5
- package/config/chat-config.module.d.ts +0 -14
- package/config/components/chat-icon.component.d.ts +0 -7
- package/config/components/chat-tab.component.d.ts +0 -29
- package/config/enums/chat-module-tab-names.d.ts +0 -3
- package/config/enums/delete-message.enums.d.ts +0 -9
- package/config/enums/index.d.ts +0 -2
- package/config/enums/policy-names.d.ts +0 -3
- package/config/enums/route-names.d.ts +0 -3
- package/config/models/deleteMessage.model.d.ts +0 -10
- package/config/providers/chat-config.provider.d.ts +0 -1
- package/config/providers/chat-module-settings.provider.d.ts +0 -2
- package/config/providers/index.d.ts +0 -4
- package/config/providers/nav-item.provider.d.ts +0 -2
- package/config/providers/route.provider.d.ts +0 -2
- package/config/public-api.d.ts +0 -7
- package/config/services/chat-config.service.d.ts +0 -43
- package/config/services/index.d.ts +0 -1
- package/config/validators/index.d.ts +0 -1
- package/config/validators/message-deletion.validator.d.ts +0 -2
- package/lib/chat-routing.module.d.ts +0 -7
- package/lib/chat.module.d.ts +0 -20
- package/lib/chat.routes.d.ts +0 -2
- package/lib/components/chat-contacts.component.d.ts +0 -32
- package/lib/components/chat-message-title.component.d.ts +0 -8
- package/lib/components/chat.component.d.ts +0 -52
- package/lib/components/conversation-avatar.component.d.ts +0 -14
- package/lib/components/index.d.ts +0 -4
- package/lib/enums/chat-message-side.d.ts +0 -4
- package/lib/enums/index.d.ts +0 -1
- package/lib/models/chat-conversation-dto.d.ts +0 -7
- package/lib/models/chat-message-dto.d.ts +0 -9
- package/lib/models/chat-target-user-info.d.ts +0 -7
- package/lib/models/get-conversation-input.d.ts +0 -7
- package/lib/models/index.d.ts +0 -8
- package/lib/models/mark-conversation-as-read-input.d.ts +0 -4
- package/lib/models/send-message-input.d.ts +0 -5
- package/lib/models/send-on-enter-setting-dto.d.ts +0 -4
- package/lib/services/conversation.service.d.ts +0 -17
- package/lib/services/index.d.ts +0 -2
- package/lib/services/settings.service.d.ts +0 -12
- package/proxy/lib/index.d.ts +0 -4
- package/proxy/lib/proxy/volo/chat/conversations/conversation.service.d.ts +0 -16
- package/proxy/lib/proxy/volo/chat/conversations/index.d.ts +0 -2
- package/proxy/lib/proxy/volo/chat/conversations/models.d.ts +0 -16
- package/proxy/lib/proxy/volo/chat/messages/chat-deleting-conversations.enum.d.ts +0 -5
- package/proxy/lib/proxy/volo/chat/messages/chat-deleting-messages.enum.d.ts +0 -6
- package/proxy/lib/proxy/volo/chat/messages/chat-message-side.enum.d.ts +0 -5
- package/proxy/lib/proxy/volo/chat/messages/index.d.ts +0 -4
- package/proxy/lib/proxy/volo/chat/messages/models.d.ts +0 -17
- package/proxy/lib/proxy/volo/chat/settings/index.d.ts +0 -2
- package/proxy/lib/proxy/volo/chat/settings/models.d.ts +0 -10
- package/proxy/lib/proxy/volo/chat/settings/settings.service.d.ts +0 -13
- package/proxy/lib/proxy/volo/chat/users/contact.service.d.ts +0 -12
- package/proxy/lib/proxy/volo/chat/users/index.d.ts +0 -2
- package/proxy/lib/proxy/volo/chat/users/models.d.ts +0 -22
- package/proxy/public-api.d.ts +0 -1
- package/public-api.d.ts +0 -6
package/index.d.ts
CHANGED
|
@@ -1,5 +1,199 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, EventEmitter, AfterViewInit, ElementRef, ModuleWithProviders, NgModuleFactory } from '@angular/core';
|
|
3
|
+
import * as i1$1 from '@abp/ng.core';
|
|
4
|
+
import { ConfigStateService, HttpWaitService, PagedResultRequestDto, RestService } from '@abp/ng.core';
|
|
5
|
+
import * as i2 from '@abp/ng.theme.shared';
|
|
6
|
+
import { ConfirmationService } from '@abp/ng.theme.shared';
|
|
7
|
+
import * as i1 from '@angular/router';
|
|
8
|
+
import { Routes } from '@angular/router';
|
|
9
|
+
import * as i4 from '@ng-bootstrap/ng-bootstrap';
|
|
10
|
+
import { ContactService, ConversationService as ConversationService$1, ChatContactDto, ChatMessageDto as ChatMessageDto$1, ChatMessageSide as ChatMessageSide$1 } from '@volo/abp.ng.chat/proxy';
|
|
11
|
+
import { ChatConfigService } from '@volo/abp.ng.chat/config';
|
|
12
|
+
import { Observable } from 'rxjs';
|
|
13
|
+
|
|
14
|
+
declare class ChatRoutingModule {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatRoutingModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ChatRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ChatRoutingModule>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class ChatContactsComponent implements OnInit {
|
|
21
|
+
#private;
|
|
22
|
+
protected readonly contactService: ContactService;
|
|
23
|
+
protected readonly chatConfigService: ChatConfigService;
|
|
24
|
+
protected readonly chatConversationService: ConversationService$1;
|
|
25
|
+
conversationDeletable: boolean;
|
|
26
|
+
startConversation: i0.ModelSignal<boolean>;
|
|
27
|
+
selected: EventEmitter<ChatContactDto>;
|
|
28
|
+
conversationDeleted: i0.OutputEmitterRef<ChatContactDto>;
|
|
29
|
+
allContacts: ChatContactDto[];
|
|
30
|
+
selectedContact: ChatContactDto;
|
|
31
|
+
filter: string;
|
|
32
|
+
getContactName: typeof getContactName;
|
|
33
|
+
get contacts(): ChatContactDto[];
|
|
34
|
+
get otherContacts(): ChatContactDto[];
|
|
35
|
+
protected listenToNewMessages(): void;
|
|
36
|
+
constructor();
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
typing(): void;
|
|
39
|
+
get(onSuccess?: Function, includeOtherContacts?: boolean): void;
|
|
40
|
+
selectContact(contact: ChatContactDto): void;
|
|
41
|
+
changeLastMessageOfSelectedContact(message: string): void;
|
|
42
|
+
markSelectedContactAsRead(): void;
|
|
43
|
+
deleteConversation(contact: ChatContactDto): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatContactsComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatContactsComponent, "abp-chat-contacts", never, { "conversationDeletable": { "alias": "conversationDeletable"; "required": false; }; "startConversation": { "alias": "startConversation"; "required": false; "isSignal": true; }; }, { "startConversation": "startConversationChange"; "selected": "selected"; "conversationDeleted": "conversationDeleted"; }, never, never, true, never>;
|
|
46
|
+
}
|
|
47
|
+
declare function getContactName({ name, surname, username }: ChatContactDto): string;
|
|
48
|
+
|
|
49
|
+
declare class ChatComponent implements AfterViewInit {
|
|
50
|
+
#private;
|
|
51
|
+
protected readonly conversationService: ConversationService$1;
|
|
52
|
+
protected readonly chatConfigService: ChatConfigService;
|
|
53
|
+
protected readonly configState: ConfigStateService;
|
|
54
|
+
protected readonly httpWaitService: HttpWaitService;
|
|
55
|
+
protected readonly confirmation: ConfirmationService;
|
|
56
|
+
selectedContact: ChatContactDto;
|
|
57
|
+
unreadMessageCount: number;
|
|
58
|
+
userMessages: Map<string, ChatMessageDto$1[]>;
|
|
59
|
+
chatMessageSide: typeof ChatMessageSide$1;
|
|
60
|
+
message: string;
|
|
61
|
+
sendOnEnter: boolean;
|
|
62
|
+
loading: boolean;
|
|
63
|
+
pagingLoading: boolean;
|
|
64
|
+
allMessagesLoaded: boolean;
|
|
65
|
+
clickedStartMessage: boolean;
|
|
66
|
+
conversationDeletable: boolean;
|
|
67
|
+
messageDeletable: boolean;
|
|
68
|
+
messageDeletableWithPeriod: boolean;
|
|
69
|
+
messageDeletePeriod: number;
|
|
70
|
+
chatBoxRef: ElementRef<HTMLDivElement>;
|
|
71
|
+
chatContactsComponent: ChatContactsComponent;
|
|
72
|
+
get selectedContactMessages(): ChatMessageDto$1[];
|
|
73
|
+
protected addFilterToHttpWaitService(): void;
|
|
74
|
+
protected listenToChatBoxScroll(): void;
|
|
75
|
+
protected listenToNewMessages(): void;
|
|
76
|
+
protected init(): void;
|
|
77
|
+
constructor();
|
|
78
|
+
ngAfterViewInit(): void;
|
|
79
|
+
getConversation(scrollToEnd: boolean): void;
|
|
80
|
+
send(): void;
|
|
81
|
+
markConversationAsRead(): void;
|
|
82
|
+
sendWithEnter(event: KeyboardEvent): void;
|
|
83
|
+
onSelectContact(contact: ChatContactDto): void;
|
|
84
|
+
getDateFormat(date: string | Date): string;
|
|
85
|
+
scrollToEnd(): void;
|
|
86
|
+
onScroll: (event: Event) => void;
|
|
87
|
+
startConversation(): void;
|
|
88
|
+
deleteMessage(message: ChatMessageDto$1): void;
|
|
89
|
+
showDeleteDropdown(message: ChatMessageDto$1): boolean;
|
|
90
|
+
conversationDeleted(contact: ChatContactDto): void;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatComponent, never>;
|
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatComponent, "abp-chat", never, {}, {}, never, never, true, never>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare class ConversationAvatarComponent {
|
|
96
|
+
contact: ChatContactDto;
|
|
97
|
+
small: boolean | string;
|
|
98
|
+
get avatarText(): string;
|
|
99
|
+
get avatarBgStyle(): {
|
|
100
|
+
color: string;
|
|
101
|
+
backgroundColor: string;
|
|
102
|
+
};
|
|
103
|
+
get isSmall(): boolean;
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConversationAvatarComponent, never>;
|
|
105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConversationAvatarComponent, "abp-conversation-avatar", never, { "contact": { "alias": "contact"; "required": false; }; "small": { "alias": "small"; "required": false; }; }, {}, never, never, true, never>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
declare class ChatMessageTitleComponent {
|
|
109
|
+
selectedContact: ChatContactDto;
|
|
110
|
+
get contactName(): string;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatMessageTitleComponent, never>;
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatMessageTitleComponent, "abp-chat-message-title", never, { "selectedContact": { "alias": "selectedContact"; "required": false; }; }, {}, never, never, true, never>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare class ChatModule {
|
|
116
|
+
static forChild(): ModuleWithProviders<ChatModule>;
|
|
117
|
+
/**
|
|
118
|
+
* @deprecated `ChatModule.forLazy()` is deprecated. You can use `createRoutes` **function** instead.
|
|
119
|
+
*/
|
|
120
|
+
static forLazy(): NgModuleFactory<ChatModule>;
|
|
121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatModule, never>;
|
|
122
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ChatModule, never, [typeof i1$1.CoreModule, typeof i2.ThemeSharedModule, typeof ChatRoutingModule, typeof i4.NgbDropdownModule, typeof ChatComponent, typeof ChatContactsComponent, typeof ConversationAvatarComponent, typeof ChatMessageTitleComponent], [typeof ChatComponent, typeof ChatContactsComponent, typeof ConversationAvatarComponent, typeof ChatMessageTitleComponent]>;
|
|
123
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ChatModule>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
declare function createRoutes(): Routes;
|
|
127
|
+
|
|
128
|
+
declare class SendMessageInput {
|
|
129
|
+
targetUserId: string;
|
|
130
|
+
message: string;
|
|
131
|
+
constructor(initialValues?: Partial<SendMessageInput>);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
declare class GetConversationInput extends PagedResultRequestDto {
|
|
135
|
+
targetUserId: string;
|
|
136
|
+
skipCount: number;
|
|
137
|
+
maxResultCount: number;
|
|
138
|
+
constructor(initialValues?: Partial<GetConversationInput>);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare class MarkConversationAsReadInput {
|
|
142
|
+
targetUserId: string;
|
|
143
|
+
constructor(initialValues?: Partial<MarkConversationAsReadInput>);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare class ChatTargetUserInfo {
|
|
147
|
+
userId: string;
|
|
148
|
+
name: string;
|
|
149
|
+
surname: string;
|
|
150
|
+
username: string;
|
|
151
|
+
constructor(initialValues?: Partial<ChatTargetUserInfo>);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
declare enum ChatMessageSide {
|
|
155
|
+
Sender = 1,
|
|
156
|
+
Receiver = 2
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare class ChatMessageDto {
|
|
160
|
+
message: string;
|
|
161
|
+
messageDate: Date | string;
|
|
162
|
+
isRead: boolean;
|
|
163
|
+
readDate: Date | string;
|
|
164
|
+
side: ChatMessageSide;
|
|
165
|
+
constructor(initialValues?: Partial<ChatMessageDto>);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
declare class ChatConversationDto {
|
|
169
|
+
messages: ChatMessageDto[];
|
|
170
|
+
targetUserInfo: ChatTargetUserInfo;
|
|
171
|
+
constructor(initialValues?: Partial<ChatConversationDto>);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
declare class ConversationService {
|
|
175
|
+
private restService;
|
|
176
|
+
apiName: string;
|
|
177
|
+
constructor(restService: RestService);
|
|
178
|
+
sendMessageByInput(body: SendMessageInput): Observable<void>;
|
|
179
|
+
getConversationByInput(params?: GetConversationInput): Observable<ChatConversationDto>;
|
|
180
|
+
markConversationAsReadByInput(body: MarkConversationAsReadInput): Observable<void>;
|
|
181
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConversationService, never>;
|
|
182
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConversationService>;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare class SendOnEnterSettingDto {
|
|
186
|
+
sendOnEnter: boolean;
|
|
187
|
+
constructor(initialValues?: Partial<SendOnEnterSettingDto>);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
declare class SettingsService {
|
|
191
|
+
private restService;
|
|
192
|
+
apiName: string;
|
|
193
|
+
constructor(restService: RestService);
|
|
194
|
+
setSendOnEnterSettingByInput(body: SendOnEnterSettingDto): Observable<void>;
|
|
195
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsService, never>;
|
|
196
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SettingsService>;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export { ChatComponent, ChatContactsComponent, ChatConversationDto, ChatMessageDto, ChatMessageSide, ChatMessageTitleComponent, ChatModule, ChatTargetUserInfo, ConversationAvatarComponent, ConversationService, GetConversationInput, MarkConversationAsReadInput, SendMessageInput, SendOnEnterSettingDto, SettingsService, createRoutes, getContactName };
|
package/package.json
CHANGED
package/proxy/index.d.ts
CHANGED
|
@@ -1,5 +1,122 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import * as _abp_ng_core from '@abp/ng.core';
|
|
3
|
+
import { PagedResultRequestDto, Rest, RestService } from '@abp/ng.core';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
|
|
6
|
+
declare enum ChatMessageSide {
|
|
7
|
+
Sender = 1,
|
|
8
|
+
Receiver = 2
|
|
9
|
+
}
|
|
10
|
+
declare const chatMessageSideOptions: _abp_ng_core.ABP.Option<typeof ChatMessageSide>[];
|
|
11
|
+
|
|
12
|
+
interface ChatMessageDto {
|
|
13
|
+
id?: string;
|
|
14
|
+
message?: string;
|
|
15
|
+
messageDate?: string;
|
|
16
|
+
isRead: boolean;
|
|
17
|
+
readDate?: string;
|
|
18
|
+
side: ChatMessageSide;
|
|
19
|
+
}
|
|
20
|
+
interface DeleteMessageInput {
|
|
21
|
+
targetUserId?: string;
|
|
22
|
+
messageId?: string;
|
|
23
|
+
}
|
|
24
|
+
interface SendMessageInput {
|
|
25
|
+
targetUserId?: string;
|
|
26
|
+
message: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface ChatContactDto {
|
|
30
|
+
userId?: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
surname?: string;
|
|
33
|
+
username?: string;
|
|
34
|
+
hasChatPermission: boolean;
|
|
35
|
+
lastMessageSide: ChatMessageSide;
|
|
36
|
+
lastMessage?: string;
|
|
37
|
+
lastMessageDate?: string;
|
|
38
|
+
unreadMessageCount: number;
|
|
39
|
+
}
|
|
40
|
+
interface ChatTargetUserInfo {
|
|
41
|
+
userId?: string;
|
|
42
|
+
name?: string;
|
|
43
|
+
surname?: string;
|
|
44
|
+
username?: string;
|
|
45
|
+
}
|
|
46
|
+
interface GetContactsInput {
|
|
47
|
+
filter?: string;
|
|
48
|
+
includeOtherContacts: boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface ChatConversationDto {
|
|
52
|
+
messages: ChatMessageDto[];
|
|
53
|
+
targetUserInfo: ChatTargetUserInfo;
|
|
54
|
+
}
|
|
55
|
+
interface DeleteConversationInput {
|
|
56
|
+
targetUserId?: string;
|
|
57
|
+
}
|
|
58
|
+
interface GetConversationInput extends PagedResultRequestDto {
|
|
59
|
+
targetUserId?: string;
|
|
60
|
+
}
|
|
61
|
+
interface MarkConversationAsReadInput {
|
|
62
|
+
targetUserId?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare class ConversationService {
|
|
66
|
+
private restService;
|
|
67
|
+
apiName: string;
|
|
68
|
+
deleteConversation: (input: DeleteConversationInput, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
|
|
69
|
+
deleteMessage: (input: DeleteMessageInput, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
|
|
70
|
+
getConversation: (input: GetConversationInput, config?: Partial<Rest.Config>) => rxjs.Observable<ChatConversationDto>;
|
|
71
|
+
markConversationAsRead: (input: MarkConversationAsReadInput, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
|
|
72
|
+
sendMessage: (input: SendMessageInput, config?: Partial<Rest.Config>) => rxjs.Observable<ChatMessageDto>;
|
|
73
|
+
constructor(restService: RestService);
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConversationService, never>;
|
|
75
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConversationService>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare enum ChatDeletingConversations {
|
|
79
|
+
Enabled = 1,
|
|
80
|
+
Disabled = 2
|
|
81
|
+
}
|
|
82
|
+
declare const chatDeletingConversationsOptions: _abp_ng_core.ABP.Option<typeof ChatDeletingConversations>[];
|
|
83
|
+
|
|
84
|
+
declare enum ChatDeletingMessages {
|
|
85
|
+
Enabled = 1,
|
|
86
|
+
Disabled = 2,
|
|
87
|
+
EnabledWithDeletionPeriod = 3
|
|
88
|
+
}
|
|
89
|
+
declare const chatDeletingMessagesOptions: _abp_ng_core.ABP.Option<typeof ChatDeletingMessages>[];
|
|
90
|
+
|
|
91
|
+
interface ChatSettingsDto {
|
|
92
|
+
deletingMessages: ChatDeletingMessages;
|
|
93
|
+
messageDeletionPeriod: number;
|
|
94
|
+
deletingConversations: ChatDeletingConversations;
|
|
95
|
+
}
|
|
96
|
+
interface SendOnEnterSettingDto {
|
|
97
|
+
sendOnEnter: boolean;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare class SettingsService {
|
|
101
|
+
private restService;
|
|
102
|
+
apiName: string;
|
|
103
|
+
get: (config?: Partial<Rest.Config>) => rxjs.Observable<ChatSettingsDto>;
|
|
104
|
+
setSendOnEnterSetting: (input: SendOnEnterSettingDto, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
|
|
105
|
+
update: (input: ChatSettingsDto, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
|
|
106
|
+
constructor(restService: RestService);
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsService, never>;
|
|
108
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SettingsService>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare class ContactService {
|
|
112
|
+
private restService;
|
|
113
|
+
apiName: string;
|
|
114
|
+
getContacts: (input: GetContactsInput, config?: Partial<Rest.Config>) => rxjs.Observable<ChatContactDto[]>;
|
|
115
|
+
getTotalUnreadMessageCount: (config?: Partial<Rest.Config>) => rxjs.Observable<number>;
|
|
116
|
+
constructor(restService: RestService);
|
|
117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContactService, never>;
|
|
118
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContactService>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export { ChatDeletingConversations, ChatDeletingMessages, ChatMessageSide, ContactService, ConversationService, SettingsService, chatDeletingConversationsOptions, chatDeletingMessagesOptions, chatMessageSideOptions };
|
|
122
|
+
export type { ChatContactDto, ChatConversationDto, ChatMessageDto, ChatSettingsDto, ChatTargetUserInfo, DeleteConversationInput, DeleteMessageInput, GetContactsInput, GetConversationInput, MarkConversationAsReadInput, SendMessageInput, SendOnEnterSettingDto };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@abp/ng.core";
|
|
4
|
-
import * as i2 from "@ng-bootstrap/ng-bootstrap";
|
|
5
|
-
import * as i3 from "./components/chat-icon.component";
|
|
6
|
-
export declare class ChatConfigModule {
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated forRoot method is deprecated, use `provideChatConfig` *function* for config settings.
|
|
9
|
-
*/
|
|
10
|
-
static forRoot(): ModuleWithProviders<ChatConfigModule>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatConfigModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ChatConfigModule, never, [typeof i1.CoreModule, typeof i2.NgbTooltipModule, typeof i3.ChatIconComponent], never>;
|
|
13
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ChatConfigModule>;
|
|
14
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ChatConfigService } from '../services/chat-config.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ChatIconComponent {
|
|
4
|
-
protected readonly chatConfigService: ChatConfigService;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatIconComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatIconComponent, "abp-chat-icon", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { FormBuilder } from '@angular/forms';
|
|
2
|
-
import { ConfigStateService, TrackByService } from '@abp/ng.core';
|
|
3
|
-
import { ToasterService } from '@abp/ng.theme.shared';
|
|
4
|
-
import { ChatDeletingMessages, ChatDeletingConversations, SettingsService } from '@volo/abp.ng.chat/proxy';
|
|
5
|
-
import { DeleteConversationModel, DeleteMessageModel } from '../models/deleteMessage.model';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ChatTabComponent {
|
|
8
|
-
protected readonly toasterService: ToasterService;
|
|
9
|
-
protected readonly chatSettingsService: SettingsService;
|
|
10
|
-
protected readonly configStateService: ConfigStateService;
|
|
11
|
-
protected readonly fb: FormBuilder;
|
|
12
|
-
readonly track: TrackByService<any>;
|
|
13
|
-
loading: boolean;
|
|
14
|
-
deleteMessageForm: import("@angular/forms").FormGroup<{
|
|
15
|
-
deletingMessages: import("@angular/forms").FormControl<ChatDeletingMessages>;
|
|
16
|
-
deletingConversations: import("@angular/forms").FormControl<ChatDeletingConversations>;
|
|
17
|
-
messageDeletionPeriod: import("@angular/forms").FormControl<number>;
|
|
18
|
-
}>;
|
|
19
|
-
protected init(): void;
|
|
20
|
-
constructor();
|
|
21
|
-
deleteMessageOptions: DeleteMessageModel[];
|
|
22
|
-
deleteConversationOptions: DeleteConversationModel[];
|
|
23
|
-
get deletingMessages(): ChatDeletingMessages;
|
|
24
|
-
get deletingConversations(): ChatDeletingConversations;
|
|
25
|
-
get messageDeletionPeriod(): number;
|
|
26
|
-
onSubmit(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatTabComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatTabComponent, "abp-chat-tab", never, {}, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const enum ChatDeletingMessagesNames {
|
|
2
|
-
Enabled = "Chat::Enabled",
|
|
3
|
-
Disabled = "Chat::Disabled",
|
|
4
|
-
WithPeriod = "Chat::EnabledWithDeletionPeriod"
|
|
5
|
-
}
|
|
6
|
-
export declare const enum ChatDeletingConversationsNames {
|
|
7
|
-
Enabled = "Chat::Enabled",
|
|
8
|
-
Disabled = "Chat::Disabled"
|
|
9
|
-
}
|
package/config/enums/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ChatDeletingConversationsNames, ChatDeletingMessagesNames } from "../enums/delete-message.enums";
|
|
2
|
-
import { ChatDeletingConversations, ChatDeletingMessages } from "@volo/abp.ng.chat/proxy";
|
|
3
|
-
export interface DeleteMessageModel {
|
|
4
|
-
name: ChatDeletingMessagesNames;
|
|
5
|
-
value: ChatDeletingMessages;
|
|
6
|
-
}
|
|
7
|
-
export interface DeleteConversationModel {
|
|
8
|
-
name: ChatDeletingConversationsNames;
|
|
9
|
-
value: ChatDeletingConversations;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function provideChatConfig(): import("@angular/core").EnvironmentProviders;
|
package/config/public-api.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Router } from '@angular/router';
|
|
2
|
-
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
|
-
import * as signalR from '@microsoft/signalr';
|
|
4
|
-
import { AuthService, ConfigStateService, CurrentUserDto, EnvironmentService, PermissionService } from '@abp/ng.core';
|
|
5
|
-
import { NavItemsService, ToasterService } from '@abp/ng.theme.shared';
|
|
6
|
-
import { ContactService } from '@volo/abp.ng.chat/proxy';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export interface ChatMessage {
|
|
9
|
-
senderUserId: string;
|
|
10
|
-
senderUsername: string;
|
|
11
|
-
senderName: string;
|
|
12
|
-
senderSurname: string;
|
|
13
|
-
text: string;
|
|
14
|
-
}
|
|
15
|
-
export declare class ChatConfigService {
|
|
16
|
-
protected readonly toaster: ToasterService;
|
|
17
|
-
protected readonly router: Router;
|
|
18
|
-
protected readonly authService: AuthService;
|
|
19
|
-
protected readonly navItems: NavItemsService;
|
|
20
|
-
protected readonly permissionService: PermissionService;
|
|
21
|
-
protected readonly configState: ConfigStateService;
|
|
22
|
-
protected readonly environmentService: EnvironmentService;
|
|
23
|
-
protected readonly contactService: ContactService;
|
|
24
|
-
protected readonly unreadMessagesCount: BehaviorSubject<number>;
|
|
25
|
-
apiName: string;
|
|
26
|
-
conectedUserId: string;
|
|
27
|
-
connection: signalR.HubConnection;
|
|
28
|
-
message$: Subject<ChatMessage>;
|
|
29
|
-
get unreadMessagesCount$(): Observable<number>;
|
|
30
|
-
get isChatEnabled(): boolean;
|
|
31
|
-
get signalRUrl(): string;
|
|
32
|
-
protected listenToAppConfig(): void;
|
|
33
|
-
protected toggleChat(): void;
|
|
34
|
-
protected initSignalR(currentUser: CurrentUserDto): void;
|
|
35
|
-
constructor();
|
|
36
|
-
setTotalUnreadMessageCount(): Observable<number>;
|
|
37
|
-
addUnreadMessageCount(count: number): void;
|
|
38
|
-
resetUnreadMessageCount(): void;
|
|
39
|
-
listenToMessages(): Observable<ChatMessage>;
|
|
40
|
-
listenToRouterEvents(): Observable<import("@angular/router").Event>;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatConfigService, never>;
|
|
42
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ChatConfigService>;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './chat-config.service';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './message-deletion.validator';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/router";
|
|
3
|
-
export declare class ChatRoutingModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatRoutingModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ChatRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ChatRoutingModule>;
|
|
7
|
-
}
|
package/lib/chat.module.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders, NgModuleFactory } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@abp/ng.core";
|
|
4
|
-
import * as i2 from "@abp/ng.theme.shared";
|
|
5
|
-
import * as i3 from "./chat-routing.module";
|
|
6
|
-
import * as i4 from "@ng-bootstrap/ng-bootstrap";
|
|
7
|
-
import * as i5 from "./components/chat.component";
|
|
8
|
-
import * as i6 from "./components/chat-contacts.component";
|
|
9
|
-
import * as i7 from "./components/conversation-avatar.component";
|
|
10
|
-
import * as i8 from "./components/chat-message-title.component";
|
|
11
|
-
export declare class ChatModule {
|
|
12
|
-
static forChild(): ModuleWithProviders<ChatModule>;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated `ChatModule.forLazy()` is deprecated. You can use `createRoutes` **function** instead.
|
|
15
|
-
*/
|
|
16
|
-
static forLazy(): NgModuleFactory<ChatModule>;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ChatModule, never, [typeof i1.CoreModule, typeof i2.ThemeSharedModule, typeof i3.ChatRoutingModule, typeof i4.NgbDropdownModule, typeof i5.ChatComponent, typeof i6.ChatContactsComponent, typeof i7.ConversationAvatarComponent, typeof i8.ChatMessageTitleComponent], [typeof i5.ChatComponent, typeof i6.ChatContactsComponent, typeof i7.ConversationAvatarComponent, typeof i8.ChatMessageTitleComponent]>;
|
|
19
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ChatModule>;
|
|
20
|
-
}
|
package/lib/chat.routes.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { ChatContactDto, ContactService, ConversationService } from '@volo/abp.ng.chat/proxy';
|
|
3
|
-
import { ChatConfigService } from '@volo/abp.ng.chat/config';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ChatContactsComponent implements OnInit {
|
|
6
|
-
#private;
|
|
7
|
-
protected readonly contactService: ContactService;
|
|
8
|
-
protected readonly chatConfigService: ChatConfigService;
|
|
9
|
-
protected readonly chatConversationService: ConversationService;
|
|
10
|
-
conversationDeletable: boolean;
|
|
11
|
-
startConversation: import("@angular/core").ModelSignal<boolean>;
|
|
12
|
-
selected: EventEmitter<ChatContactDto>;
|
|
13
|
-
conversationDeleted: import("@angular/core").OutputEmitterRef<ChatContactDto>;
|
|
14
|
-
allContacts: ChatContactDto[];
|
|
15
|
-
selectedContact: ChatContactDto;
|
|
16
|
-
filter: string;
|
|
17
|
-
getContactName: typeof getContactName;
|
|
18
|
-
get contacts(): ChatContactDto[];
|
|
19
|
-
get otherContacts(): ChatContactDto[];
|
|
20
|
-
protected listenToNewMessages(): void;
|
|
21
|
-
constructor();
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
typing(): void;
|
|
24
|
-
get(onSuccess?: Function, includeOtherContacts?: boolean): void;
|
|
25
|
-
selectContact(contact: ChatContactDto): void;
|
|
26
|
-
changeLastMessageOfSelectedContact(message: string): void;
|
|
27
|
-
markSelectedContactAsRead(): void;
|
|
28
|
-
deleteConversation(contact: ChatContactDto): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatContactsComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatContactsComponent, "abp-chat-contacts", never, { "conversationDeletable": { "alias": "conversationDeletable"; "required": false; }; "startConversation": { "alias": "startConversation"; "required": false; "isSignal": true; }; }, { "startConversation": "startConversationChange"; "selected": "selected"; "conversationDeleted": "conversationDeleted"; }, never, never, true, never>;
|
|
31
|
-
}
|
|
32
|
-
export declare function getContactName({ name, surname, username }: ChatContactDto): string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ChatContactDto } from '@volo/abp.ng.chat/proxy';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ChatMessageTitleComponent {
|
|
4
|
-
selectedContact: ChatContactDto;
|
|
5
|
-
get contactName(): string;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatMessageTitleComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatMessageTitleComponent, "abp-chat-message-title", never, { "selectedContact": { "alias": "selectedContact"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
-
import { ConfigStateService, HttpWaitService } from '@abp/ng.core';
|
|
3
|
-
import { ConfirmationService } from '@abp/ng.theme.shared';
|
|
4
|
-
import { ChatMessageSide, ChatContactDto, ChatMessageDto, ConversationService } from '@volo/abp.ng.chat/proxy';
|
|
5
|
-
import { ChatConfigService } from '@volo/abp.ng.chat/config';
|
|
6
|
-
import { ChatContactsComponent } from './chat-contacts.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ChatComponent implements AfterViewInit {
|
|
9
|
-
#private;
|
|
10
|
-
protected readonly conversationService: ConversationService;
|
|
11
|
-
protected readonly chatConfigService: ChatConfigService;
|
|
12
|
-
protected readonly configState: ConfigStateService;
|
|
13
|
-
protected readonly httpWaitService: HttpWaitService;
|
|
14
|
-
protected readonly confirmation: ConfirmationService;
|
|
15
|
-
selectedContact: ChatContactDto;
|
|
16
|
-
unreadMessageCount: number;
|
|
17
|
-
userMessages: Map<string, ChatMessageDto[]>;
|
|
18
|
-
chatMessageSide: typeof ChatMessageSide;
|
|
19
|
-
message: string;
|
|
20
|
-
sendOnEnter: boolean;
|
|
21
|
-
loading: boolean;
|
|
22
|
-
pagingLoading: boolean;
|
|
23
|
-
allMessagesLoaded: boolean;
|
|
24
|
-
clickedStartMessage: boolean;
|
|
25
|
-
conversationDeletable: boolean;
|
|
26
|
-
messageDeletable: boolean;
|
|
27
|
-
messageDeletableWithPeriod: boolean;
|
|
28
|
-
messageDeletePeriod: number;
|
|
29
|
-
chatBoxRef: ElementRef<HTMLDivElement>;
|
|
30
|
-
chatContactsComponent: ChatContactsComponent;
|
|
31
|
-
get selectedContactMessages(): ChatMessageDto[];
|
|
32
|
-
protected addFilterToHttpWaitService(): void;
|
|
33
|
-
protected listenToChatBoxScroll(): void;
|
|
34
|
-
protected listenToNewMessages(): void;
|
|
35
|
-
protected init(): void;
|
|
36
|
-
constructor();
|
|
37
|
-
ngAfterViewInit(): void;
|
|
38
|
-
getConversation(scrollToEnd: boolean): void;
|
|
39
|
-
send(): void;
|
|
40
|
-
markConversationAsRead(): void;
|
|
41
|
-
sendWithEnter(event: KeyboardEvent): void;
|
|
42
|
-
onSelectContact(contact: ChatContactDto): void;
|
|
43
|
-
getDateFormat(date: string | Date): string;
|
|
44
|
-
scrollToEnd(): void;
|
|
45
|
-
onScroll: (event: Event) => void;
|
|
46
|
-
startConversation(): void;
|
|
47
|
-
deleteMessage(message: ChatMessageDto): void;
|
|
48
|
-
showDeleteDropdown(message: ChatMessageDto): boolean;
|
|
49
|
-
conversationDeleted(contact: ChatContactDto): void;
|
|
50
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatComponent, "abp-chat", never, {}, {}, never, never, true, never>;
|
|
52
|
-
}
|