@volo/abp.ng.chat 10.2.0 → 10.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -117,10 +117,10 @@ class ChatConfigService {
|
|
|
117
117
|
listenToRouterEvents() {
|
|
118
118
|
return this.router.events.pipe(filter(event => event instanceof NavigationEnd && event.url === '/chat'), tap(() => this.resetUnreadMessageCount()));
|
|
119
119
|
}
|
|
120
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
121
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
121
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatConfigService, providedIn: 'root' }); }
|
|
122
122
|
}
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatConfigService, decorators: [{
|
|
124
124
|
type: Injectable,
|
|
125
125
|
args: [{
|
|
126
126
|
providedIn: 'root',
|
|
@@ -131,8 +131,8 @@ class ChatIconComponent {
|
|
|
131
131
|
constructor() {
|
|
132
132
|
this.chatConfigService = inject(ChatConfigService);
|
|
133
133
|
}
|
|
134
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
135
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
135
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: ChatIconComponent, isStandalone: true, selector: "abp-chat-icon", ngImport: i0, template: `
|
|
136
136
|
<div
|
|
137
137
|
class="position-relative"
|
|
138
138
|
placement="left"
|
|
@@ -150,7 +150,7 @@ class ChatIconComponent {
|
|
|
150
150
|
</div>
|
|
151
151
|
`, isInline: true, styles: ["a{color:inherit}.badge{position:absolute;right:-10px;top:-8px}\n"], dependencies: [{ kind: "directive", type: NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
152
152
|
}
|
|
153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatIconComponent, decorators: [{
|
|
154
154
|
type: Component,
|
|
155
155
|
args: [{ selector: 'abp-chat-icon', template: `
|
|
156
156
|
<div
|
|
@@ -293,10 +293,10 @@ class ChatTabComponent {
|
|
|
293
293
|
this.configStateService.refreshAppState();
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
297
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
296
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
297
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: ChatTabComponent, isStandalone: true, selector: "abp-chat-tab", ngImport: i0, template: "<form\r\n [formGroup]=\"deleteMessageForm\"\r\n class=\"abp-md-form py-2\"\r\n (ngSubmit)=\"onSubmit()\"\r\n validateOnSubmit\r\n>\r\n <div class=\"mb-3 form-group\">\r\n <label class=\"form-label\">\r\n {{ 'Chat::DisplayName:Abp.Chat.DeletingMessages' | abpLocalization }}\r\n <span class=\"ms-1\"></span>\r\n </label>\r\n <select class=\"form-select form-control\" formControlName=\"deletingMessages\">\r\n @for (option of deleteMessageOptions; track option.value) {\r\n <option [ngValue]=\"option.value\">\r\n {{ option.name | abpLocalization }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n\r\n @if (deletingMessages === 3) {\r\n <div class=\"mb-3 form-group\">\r\n <label class=\"form-label\">\r\n {{ 'Chat::DisplayName:Abp.Chat.MessageDeletionPeriod' | abpLocalization }}\r\n <span class=\"ms-1\"></span>\r\n </label>\r\n <input type=\"number\" class=\"form-control\" formControlName=\"messageDeletionPeriod\" min=\"0\" />\r\n </div>\r\n }\r\n\r\n @if (deletingMessages === 1) {\r\n <div class=\"mb-3 form-group\">\r\n <label class=\"form-label\">\r\n {{ 'Chat::DisplayName:Abp.Chat.DeletingConversations' | abpLocalization }}\r\n <span class=\"ms-1\"></span>\r\n </label>\r\n <select class=\"form-select form-control\" formControlName=\"deletingConversations\">\r\n @for (option of deleteConversationOptions; track option.value) {\r\n <option [ngValue]=\"option.value\">\r\n {{ option.name | abpLocalization }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n }\r\n <hr class=\"my-3\" />\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"submit\" [loading]=\"loading\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n</form>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
298
298
|
}
|
|
299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatTabComponent, decorators: [{
|
|
300
300
|
type: Component,
|
|
301
301
|
args: [{ selector: 'abp-chat-tab', imports: [
|
|
302
302
|
FormsModule,
|
|
@@ -346,11 +346,11 @@ class ChatConfigModule {
|
|
|
346
346
|
providers: [provideChatConfig()],
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
350
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
351
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
349
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
350
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.6", ngImport: i0, type: ChatConfigModule, imports: [CoreModule, NgbTooltipModule, ChatIconComponent] }); }
|
|
351
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatConfigModule, imports: [CoreModule, NgbTooltipModule] }); }
|
|
352
352
|
}
|
|
353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatConfigModule, decorators: [{
|
|
354
354
|
type: NgModule,
|
|
355
355
|
args: [{
|
|
356
356
|
imports: [CoreModule, NgbTooltipModule, ChatIconComponent],
|
|
@@ -32,10 +32,10 @@ class ConversationService {
|
|
|
32
32
|
body: input,
|
|
33
33
|
}, { apiName: this.apiName, ...config });
|
|
34
34
|
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
36
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ConversationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
36
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ConversationService, providedIn: 'root' }); }
|
|
37
37
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ConversationService, decorators: [{
|
|
39
39
|
type: Injectable,
|
|
40
40
|
args: [{
|
|
41
41
|
providedIn: 'root',
|
|
@@ -83,10 +83,10 @@ class SettingsService {
|
|
|
83
83
|
body: input,
|
|
84
84
|
}, { apiName: this.apiName, ...config });
|
|
85
85
|
}
|
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
87
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
86
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
87
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SettingsService, providedIn: 'root' }); }
|
|
88
88
|
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SettingsService, decorators: [{
|
|
90
90
|
type: Injectable,
|
|
91
91
|
args: [{
|
|
92
92
|
providedIn: 'root',
|
|
@@ -107,10 +107,10 @@ class ContactService {
|
|
|
107
107
|
url: '/api/chat/contact/total-unread-message-count',
|
|
108
108
|
}, { apiName: this.apiName, ...config });
|
|
109
109
|
}
|
|
110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
111
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ContactService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
111
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ContactService, providedIn: 'root' }); }
|
|
112
112
|
}
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ContactService, decorators: [{
|
|
114
114
|
type: Injectable,
|
|
115
115
|
args: [{
|
|
116
116
|
providedIn: 'root',
|
|
@@ -35,8 +35,8 @@ const avatarStyles = [
|
|
|
35
35
|
];
|
|
36
36
|
class ConversationAvatarComponent {
|
|
37
37
|
constructor() {
|
|
38
|
-
this.contact = input(undefined, ...(ngDevMode ? [{ debugName: "contact" }] : []));
|
|
39
|
-
this.small = input(undefined, ...(ngDevMode ? [{ debugName: "small" }] : []));
|
|
38
|
+
this.contact = input(undefined, ...(ngDevMode ? [{ debugName: "contact" }] : /* istanbul ignore next */ []));
|
|
39
|
+
this.small = input(undefined, ...(ngDevMode ? [{ debugName: "small" }] : /* istanbul ignore next */ []));
|
|
40
40
|
}
|
|
41
41
|
get avatarText() {
|
|
42
42
|
const contact = this.contact();
|
|
@@ -62,8 +62,8 @@ class ConversationAvatarComponent {
|
|
|
62
62
|
const small = this.small();
|
|
63
63
|
return typeof small === 'string' || small;
|
|
64
64
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
66
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.
|
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ConversationAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
66
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", type: ConversationAvatarComponent, isStandalone: true, selector: "abp-conversation-avatar", inputs: { contact: { classPropertyName: "contact", publicName: "contact", isSignal: true, isRequired: false, transformFunction: null }, small: { classPropertyName: "small", publicName: "small", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
67
67
|
<div
|
|
68
68
|
class="avatar me-2 float-start rounded-circle"
|
|
69
69
|
[class.small]="isSmall"
|
|
@@ -73,7 +73,7 @@ class ConversationAvatarComponent {
|
|
|
73
73
|
</div>
|
|
74
74
|
`, isInline: true, styles: [".avatar{height:48px;width:48px;line-height:48px;font-size:16px;font-weight:700;text-align:center;text-transform:uppercase}.avatar.small{height:36px;width:36px;line-height:37px;font-size:14px}\n"] }); }
|
|
75
75
|
}
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ConversationAvatarComponent, decorators: [{
|
|
77
77
|
type: Component,
|
|
78
78
|
args: [{ selector: 'abp-conversation-avatar', template: `
|
|
79
79
|
<div
|
|
@@ -128,13 +128,13 @@ class ChatContactsComponent {
|
|
|
128
128
|
this.contactService = inject(ContactService);
|
|
129
129
|
this.chatConfigService = inject(ChatConfigService);
|
|
130
130
|
this.chatConversationService = inject(ConversationService$1);
|
|
131
|
-
this.conversationDeletable = input(undefined, ...(ngDevMode ? [{ debugName: "conversationDeletable" }] : []));
|
|
132
|
-
this.startConversation = model(...(ngDevMode ? [undefined, { debugName: "startConversation" }] : []));
|
|
131
|
+
this.conversationDeletable = input(undefined, ...(ngDevMode ? [{ debugName: "conversationDeletable" }] : /* istanbul ignore next */ []));
|
|
132
|
+
this.startConversation = model(...(ngDevMode ? [undefined, { debugName: "startConversation" }] : /* istanbul ignore next */ []));
|
|
133
133
|
this.selected = output();
|
|
134
134
|
this.conversationDeleted = output();
|
|
135
135
|
this.allContacts = [];
|
|
136
136
|
this.selectedContact = {};
|
|
137
|
-
this.filter = signal('', ...(ngDevMode ? [{ debugName: "filter" }] : []));
|
|
137
|
+
this.filter = signal('', ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
138
138
|
this.debouncedFilter = toSignal(toObservable(this.filter).pipe(map(value => (value ?? '').trim()), debounceTime(300), distinctUntilChanged()), { initialValue: '' });
|
|
139
139
|
this.getContactName = getContactName;
|
|
140
140
|
this.listenToNewMessages();
|
|
@@ -214,10 +214,10 @@ class ChatContactsComponent {
|
|
|
214
214
|
this.get(null, true);
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
218
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
217
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatContactsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
218
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: ChatContactsComponent, isStandalone: true, selector: "abp-chat-contacts", inputs: { conversationDeletable: { classPropertyName: "conversationDeletable", publicName: "conversationDeletable", isSignal: true, isRequired: false, transformFunction: null }, startConversation: { classPropertyName: "startConversation", publicName: "startConversation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { startConversation: "startConversationChange", selected: "selected", conversationDeleted: "conversationDeleted" }, ngImport: i0, template: "<div class=\"card w-100 mb-3 mb-md-0\">\r\n <div class=\"card-body p-1 p-md-2 p-lg-3\">\r\n <div class=\"mb-2 rounded-2\">\r\n <div class=\"row\">\r\n <div class=\"col\">\r\n <input\r\n *abpPermission=\"'Chat.Searching'\"\r\n id=\"contacts-filter\"\r\n type=\"search\"\r\n class=\"form-control form-control\"\r\n autocomplete=\"off\"\r\n spellcheck=\"false\"\r\n [ngModel]=\"filter()\"\r\n (ngModelChange)=\"filter.set($event)\"\r\n [placeholder]=\"'Chat::SearchInContacts' | abpLocalization\"\r\n [attr.aria-label]=\"'Chat::SearchInContacts' | abpLocalization\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"messages-box m-0 p-0\">\r\n <div\r\n id=\"contact-list\"\r\n class=\"list-group rounded-3\"\r\n [style.min-height]=\"allContacts.length ? 'calc(100vh - 254.34px)' : null\"\r\n >\r\n @for (contact of contacts; track contact.userId; let i = $index) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"contactTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: contact, index: i }\"\r\n />\r\n }\r\n\r\n @if (otherContacts.length) {\r\n <div\r\n class=\"list-group-item px-2 py-1 bg-light text-muted text-center font-size-sm text-uppercase border-start-0 border-end-0\"\r\n >\r\n <small>{{ 'Chat::OtherContacts' | abpLocalization }}</small>\r\n </div>\r\n }\r\n\r\n @for (contact of otherContacts; track contact.userId; let i = $index) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"contactTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: contact, index: i }\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #contactTemplate let-contact let-i=\"index\">\r\n <a\r\n (click)=\"selectContact(contact)\"\r\n class=\"chat-contact list-group-item list-group-item-action cursor-pointer position-relative px-2 border-2 rounded-2 mb-1 mt-0\"\r\n [class.active]=\"selectedContact?.userId === contact.userId\"\r\n >\r\n <div class=\"media\">\r\n <abp-conversation-avatar [contact]=\"contact\" />\r\n <div class=\"media-body ms-2\">\r\n <div class=\"d-flex align-items-center justify-content-between mb-0\">\r\n <h5 class=\"mb-0 mt-1 cursor-pointer\">\r\n {{ getContactName(contact) }}\r\n @if (contact.unreadMessageCount) {\r\n <span class=\"badge bg-secondary text-white ms-1\">{{\r\n contact.unreadMessageCount\r\n }}</span>\r\n }\r\n </h5>\r\n <small class=\"last-message-date\">{{ contact.lastMessageDate | date: 'HH:mm' }}</small>\r\n </div>\r\n <p class=\"mb-0 small last-message\">\r\n {{\r\n contact.lastMessage?.length > 24\r\n ? (contact.lastMessage | slice: 0 : 23) + '...'\r\n : contact.lastMessage\r\n }}\r\n </p>\r\n\r\n @if (conversationDeletable()) {\r\n <div ngbDropdown class=\"dropdown position-absolute bottom-0 end-0\">\r\n <button class=\"btn p-1 down-arrow\" id=\"dropdownBasic1\" ngbDropdownToggle>\r\n <i class=\"bi bi-chevron-down\"></i>\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"deleteConversation(contact)\">Delete</button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </a>\r\n</ng-template>\r\n", styles: [".messages-box{overflow-y:scroll;max-height:calc(100vh - 254.34px)}.dropdown-toggle:after{display:none}.dropdown{border-color:transparent}.down-arrow{border:none;opacity:0}.media:hover .down-arrow{opacity:100%}.list-group{padding-right:7px}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:var(--lpx-border-color)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NgbDropdownModule }, { kind: "directive", type: i2.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i2.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i2.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i2.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "directive", type: i2.NgbDropdownButtonItem, selector: "button[ngbDropdownItem]" }, { kind: "directive", type: PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "component", type: ConversationAvatarComponent, selector: "abp-conversation-avatar", inputs: ["contact", "small"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: SlicePipe, name: "slice" }, { kind: "pipe", type: DatePipe, name: "date" }] }); }
|
|
219
219
|
}
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatContactsComponent, decorators: [{
|
|
221
221
|
type: Component,
|
|
222
222
|
args: [{ selector: 'abp-chat-contacts', imports: [
|
|
223
223
|
FormsModule,
|
|
@@ -238,13 +238,13 @@ function getContactName({ name, surname, username }) {
|
|
|
238
238
|
|
|
239
239
|
class ChatMessageTitleComponent {
|
|
240
240
|
constructor() {
|
|
241
|
-
this.selectedContact = input(undefined, ...(ngDevMode ? [{ debugName: "selectedContact" }] : []));
|
|
241
|
+
this.selectedContact = input(undefined, ...(ngDevMode ? [{ debugName: "selectedContact" }] : /* istanbul ignore next */ []));
|
|
242
242
|
}
|
|
243
243
|
get contactName() {
|
|
244
244
|
return getContactName(this.selectedContact() || {});
|
|
245
245
|
}
|
|
246
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
247
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.
|
|
246
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatMessageTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
247
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", type: ChatMessageTitleComponent, isStandalone: true, selector: "abp-chat-message-title", inputs: { selectedContact: { classPropertyName: "selectedContact", publicName: "selectedContact", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
248
248
|
<div class="px-2 py-1 border mb-2 rounded-2">
|
|
249
249
|
<div class="row">
|
|
250
250
|
<div class="col-auto py-1 pe-0">
|
|
@@ -258,7 +258,7 @@ class ChatMessageTitleComponent {
|
|
|
258
258
|
</div>
|
|
259
259
|
`, isInline: true, dependencies: [{ kind: "component", type: ConversationAvatarComponent, selector: "abp-conversation-avatar", inputs: ["contact", "small"] }] }); }
|
|
260
260
|
}
|
|
261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatMessageTitleComponent, decorators: [{
|
|
262
262
|
type: Component,
|
|
263
263
|
args: [{
|
|
264
264
|
selector: 'abp-chat-message-title',
|
|
@@ -350,14 +350,14 @@ class ChatComponent {
|
|
|
350
350
|
this.unreadMessageCount = 0;
|
|
351
351
|
this.userMessages = new Map();
|
|
352
352
|
this.chatMessageSide = ChatMessageSide$1;
|
|
353
|
-
this.draftMessages = signal(new Map(), ...(ngDevMode ? [{ debugName: "draftMessages" }] : []));
|
|
353
|
+
this.draftMessages = signal(new Map(), ...(ngDevMode ? [{ debugName: "draftMessages" }] : /* istanbul ignore next */ []));
|
|
354
354
|
this.clickedStartMessage = false;
|
|
355
355
|
this.conversationDeletable = false;
|
|
356
356
|
this.messageDeletable = false;
|
|
357
357
|
this.messageDeletableWithPeriod = false;
|
|
358
358
|
this.hasContacts = toSignal(this.contactService.getContacts({ includeOtherContacts: true }).pipe(map$1(contacts => contacts && contacts.length > 0), startWith(false)), { initialValue: false });
|
|
359
|
-
this.chatBoxRef = viewChild('chatBox', ...(ngDevMode ? [{ debugName: "chatBoxRef" }] : []));
|
|
360
|
-
this.chatContactsComponent = viewChild(ChatContactsComponent, ...(ngDevMode ? [{ debugName: "chatContactsComponent" }] : []));
|
|
359
|
+
this.chatBoxRef = viewChild('chatBox', ...(ngDevMode ? [{ debugName: "chatBoxRef" }] : /* istanbul ignore next */ []));
|
|
360
|
+
this.chatContactsComponent = viewChild(ChatContactsComponent, ...(ngDevMode ? [{ debugName: "chatContactsComponent" }] : /* istanbul ignore next */ []));
|
|
361
361
|
this.onScroll = (event) => {
|
|
362
362
|
if (this.allMessagesLoaded ||
|
|
363
363
|
this.pagingLoading ||
|
|
@@ -553,10 +553,10 @@ class ChatComponent {
|
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
557
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: ChatComponent, isStandalone: true, selector: "abp-chat", viewQueries: [{ propertyName: "chatBoxRef", first: true, predicate: ["chatBox"], descendants: true, isSignal: true }, { propertyName: "chatContactsComponent", first: true, predicate: ChatContactsComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"row entry-row\">\r\n <div class=\"col-auto\"></div>\r\n <div class=\"col-lg-auto ps-lg-0\"></div>\r\n <div class=\"col\">\r\n <div class=\"text-lg-end pt-2\" id=\"AbpContentToolbar\"></div>\r\n </div>\r\n</div>\r\n\r\n<div id=\"chat_wrapper\">\r\n <div class=\"container-fluid\">\r\n <div class=\"row\">\r\n <!-- Users box-->\r\n <div class=\"col-12 col-md-5 col-lg-4 d-flex align-items-stretch\">\r\n <abp-chat-contacts\r\n class=\"d-flex w-100\"\r\n (selected)=\"onSelectContact($event)\"\r\n [(startConversation)]=\"clickedStartMessage\"\r\n [conversationDeletable]=\"conversationDeletable\"\r\n (conversationDeleted)=\"conversationDeleted($event)\"\r\n />\r\n </div>\r\n <!-- /Users box-->\r\n\r\n <!-- Chat Box-->\r\n <div class=\"col-12 col-md-7 col-lg-8 d-flex align-items-stretch\">\r\n <div class=\"card w-100 mb-0\">\r\n @if (selectedContact.userId) {\r\n <div class=\"card-body p-1 p-md-2 p-lg-3\">\r\n <abp-chat-message-title [selectedContact]=\"selectedContact\" />\r\n\r\n <div #chatBox id=\"chat-conversation-wrapper\" class=\"chat-box mb-2\">\r\n <div class=\"chat-box-container\" id=\"chat-conversation\">\r\n @for (\r\n message of selectedContactMessages;\r\n track message.messageDate;\r\n let i = $index\r\n ) {\r\n @if (selectedContactMessages.length - unreadMessageCount === i) {\r\n <div class=\"row justify-content-center unread-message-count-badge-wrapper\">\r\n <h3>\r\n <span class=\"badge badge-info\">\r\n @if (unreadMessageCount === 1) {\r\n {{ 'Chat::YouHaveAnUnreadMessage' | abpLocalization }}\r\n } @else {\r\n {{\r\n 'Chat::YouHave{0}UnreadMessages'\r\n | abpLocalization: '' + unreadMessageCount\r\n }}\r\n }\r\n </span>\r\n </h3>\r\n </div>\r\n }\r\n\r\n @if ({ isSender: message.side === chatMessageSide.Sender }; as data) {\r\n <div class=\"media w-75 mw-65 w-lp-auto mb-2\" [class.ms-auto]=\"data.isSender\">\r\n <div class=\"media-body position-relative\">\r\n <div\r\n class=\"card shadow-sm rounded py-1 px-2 py-lg-2 px-lg-3 mb-1\"\r\n [class.bg-primary]=\"data.isSender\"\r\n [class.bg-light]=\"!data.isSender\"\r\n >\r\n <p\r\n class=\"message-text text-small mb-0 {{\r\n data.isSender ? 'text-white' : 'text-muted'\r\n }}\"\r\n [innerHTML]=\"message.message\"\r\n ></p>\r\n </div>\r\n <p\r\n class=\"message-date small text-muted m-0 {{\r\n data.isSender ? 'left' : 'right'\r\n }}\"\r\n >\r\n {{ message.messageDate | date: getDateFormat(message.messageDate) }}\r\n </p>\r\n\r\n @if (messageDeletable && message.side === chatMessageSide.Sender) {\r\n <div ngbDropdown class=\"dropdown position-absolute top-0 end-0\">\r\n <button class=\"btn p-1 text-white down-arrow\" ngbDropdownToggle>\r\n <i class=\"bi bi-chevron-down\"></i>\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"deleteMessage(message)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (\r\n messageDeletableWithPeriod &&\r\n showDeleteDropdown(message) &&\r\n message.side === chatMessageSide.Sender\r\n ) {\r\n <div ngbDropdown class=\"dropdown position-absolute top-0 end-0\">\r\n <button class=\"btn p-1 text-light down-arrow\" ngbDropdownToggle>\r\n <i class=\"bi bi-chevron-down\"></i>\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"deleteMessage(message)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n }\r\n </div>\r\n </div>\r\n\r\n @if (selectedContact?.userId) {\r\n <div id=\"send-message-form\" class=\"bg-light rounded-3 m-0\">\r\n <div class=\"p-2 p-lg-3\">\r\n <textarea\r\n id=\"chat-message-box\"\r\n name=\"message\"\r\n type=\"text\"\r\n [placeholder]=\"'Chat::TypeMessage' | abpLocalization\"\r\n class=\"form-control rounded py-2\"\r\n [(ngModel)]=\"message\"\r\n (keydown.enter)=\"sendWithEnter($event)\"\r\n ></textarea>\r\n <div class=\"form-check float-start mt-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input border shadow-sm\"\r\n id=\"send-on-enter\"\r\n [(ngModel)]=\"sendOnEnter\"\r\n />\r\n <label class=\"form-check-label\" for=\"send-on-enter\">{{\r\n 'Chat::SendOnEnter' | abpLocalization\r\n }}</label>\r\n </div>\r\n <div class=\"mt-2 text-end\">\r\n <button\r\n [disabled]=\"!message\"\r\n (click)=\"send()\"\r\n id=\"send-message-button\"\r\n type=\"button\"\r\n class=\"btn btn-primary px-3\"\r\n >\r\n {{ 'Chat::Send' | abpLocalization }}\r\n @if (!loading) {\r\n <i class=\"fa fa-paper-plane ms-2\" aria-hidden=\"true\"></i>\r\n } @else {\r\n <i class=\"fas fa-spinner fa-spin ms-2\" aria-hidden=\"true\"></i>\r\n }\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n\r\n @if (!selectedContact.userId) {\r\n <div class=\"card-body pt-5 pb-5 text-center\">\r\n <i class=\"fa fa-commenting-o fs-2\" aria-hidden=\"true\"></i>\r\n <p>{{ 'Chat::NoMessageYetMessage' | abpLocalization }}</p>\r\n <button\r\n [disabled]=\"!hasContacts()\"\r\n (click)=\"startConversation()\"\r\n type=\"button\"\r\n class=\"btn btn-primary\"\r\n >\r\n {{ 'Chat::StartConversation' | abpLocalization }}\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n <!-- /Chat Box-->\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".chat-box{height:calc(100vh - 390px);overflow-y:scroll}.message-text{white-space:pre-line}.message-date{position:absolute;opacity:.35;width:100px;top:1px}.message-date.left{left:-110px;text-align:right}.message-date.right{right:-110px}.dropdown-toggle:after{display:none}.dropdown{border-color:transparent}.down-arrow{border:none;opacity:0}.media-body:hover .down-arrow{opacity:100%}.chat-box-container{padding-right:7px}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:var(--lpx-border-color)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NgbDropdownModule }, { kind: "directive", type: i2.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i2.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i2.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i2.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "directive", type: i2.NgbDropdownButtonItem, selector: "button[ngbDropdownItem]" }, { kind: "component", type: ChatMessageTitleComponent, selector: "abp-chat-message-title", inputs: ["selectedContact"] }, { kind: "component", type: ChatContactsComponent, selector: "abp-chat-contacts", inputs: ["conversationDeletable", "startConversation"], outputs: ["startConversationChange", "selected", "conversationDeleted"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: DatePipe, name: "date" }] }); }
|
|
556
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
557
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: ChatComponent, isStandalone: true, selector: "abp-chat", viewQueries: [{ propertyName: "chatBoxRef", first: true, predicate: ["chatBox"], descendants: true, isSignal: true }, { propertyName: "chatContactsComponent", first: true, predicate: ChatContactsComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"row entry-row\">\r\n <div class=\"col-auto\"></div>\r\n <div class=\"col-lg-auto ps-lg-0\"></div>\r\n <div class=\"col\">\r\n <div class=\"text-lg-end pt-2\" id=\"AbpContentToolbar\"></div>\r\n </div>\r\n</div>\r\n\r\n<div id=\"chat_wrapper\">\r\n <div class=\"container-fluid\">\r\n <div class=\"row\">\r\n <!-- Users box-->\r\n <div class=\"col-12 col-md-5 col-lg-4 d-flex align-items-stretch\">\r\n <abp-chat-contacts\r\n class=\"d-flex w-100\"\r\n (selected)=\"onSelectContact($event)\"\r\n [(startConversation)]=\"clickedStartMessage\"\r\n [conversationDeletable]=\"conversationDeletable\"\r\n (conversationDeleted)=\"conversationDeleted($event)\"\r\n />\r\n </div>\r\n <!-- /Users box-->\r\n\r\n <!-- Chat Box-->\r\n <div class=\"col-12 col-md-7 col-lg-8 d-flex align-items-stretch\">\r\n <div class=\"card w-100 mb-0\">\r\n @if (selectedContact.userId) {\r\n <div class=\"card-body p-1 p-md-2 p-lg-3\">\r\n <abp-chat-message-title [selectedContact]=\"selectedContact\" />\r\n\r\n <div #chatBox id=\"chat-conversation-wrapper\" class=\"chat-box mb-2\">\r\n <div class=\"chat-box-container\" id=\"chat-conversation\">\r\n @for (\r\n message of selectedContactMessages;\r\n track message.messageDate;\r\n let i = $index\r\n ) {\r\n @if (selectedContactMessages.length - unreadMessageCount === i) {\r\n <div class=\"row justify-content-center unread-message-count-badge-wrapper\">\r\n <h3>\r\n <span class=\"badge badge-info\">\r\n @if (unreadMessageCount === 1) {\r\n {{ 'Chat::YouHaveAnUnreadMessage' | abpLocalization }}\r\n } @else {\r\n {{\r\n 'Chat::YouHave{0}UnreadMessages'\r\n | abpLocalization: '' + unreadMessageCount\r\n }}\r\n }\r\n </span>\r\n </h3>\r\n </div>\r\n }\r\n\r\n @if ({ isSender: message.side === chatMessageSide.Sender }; as data) {\r\n <div class=\"media w-75 mw-65 w-lp-auto mb-2\" [class.ms-auto]=\"data.isSender\">\r\n <div class=\"media-body position-relative\">\r\n <div\r\n class=\"card shadow-sm rounded py-1 px-2 py-lg-2 px-lg-3 mb-1\"\r\n [class.bg-primary]=\"data.isSender\"\r\n [class.bg-light]=\"!data.isSender\"\r\n >\r\n <p\r\n class=\"message-text text-small mb-0 {{\r\n data.isSender ? 'text-white' : 'text-muted'\r\n }}\"\r\n [innerHTML]=\"message.message\"\r\n ></p>\r\n </div>\r\n <p\r\n class=\"message-date small text-muted m-0 {{\r\n data.isSender ? 'left' : 'right'\r\n }}\"\r\n >\r\n {{ message.messageDate | date: getDateFormat(message.messageDate) }}\r\n </p>\r\n\r\n @if (messageDeletable && message.side === chatMessageSide.Sender) {\r\n <div ngbDropdown class=\"dropdown position-absolute top-0 end-0\">\r\n <button class=\"btn p-1 text-white down-arrow\" ngbDropdownToggle>\r\n <i class=\"bi bi-chevron-down\"></i>\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"deleteMessage(message)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (\r\n messageDeletableWithPeriod &&\r\n showDeleteDropdown(message) &&\r\n message.side === chatMessageSide.Sender\r\n ) {\r\n <div ngbDropdown class=\"dropdown position-absolute top-0 end-0\">\r\n <button class=\"btn p-1 text-light down-arrow\" ngbDropdownToggle>\r\n <i class=\"bi bi-chevron-down\"></i>\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"deleteMessage(message)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n }\r\n </div>\r\n </div>\r\n\r\n @if (selectedContact?.userId) {\r\n <div id=\"send-message-form\" class=\"bg-light rounded-3 m-0\">\r\n <div class=\"p-2 p-lg-3\">\r\n <textarea\r\n id=\"chat-message-box\"\r\n name=\"message\"\r\n type=\"text\"\r\n [placeholder]=\"'Chat::TypeMessage' | abpLocalization\"\r\n class=\"form-control rounded py-2\"\r\n [(ngModel)]=\"message\"\r\n (keydown.enter)=\"sendWithEnter($event)\"\r\n ></textarea>\r\n <div class=\"form-check float-start mt-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input border shadow-sm\"\r\n id=\"send-on-enter\"\r\n [(ngModel)]=\"sendOnEnter\"\r\n />\r\n <label class=\"form-check-label\" for=\"send-on-enter\">{{\r\n 'Chat::SendOnEnter' | abpLocalization\r\n }}</label>\r\n </div>\r\n <div class=\"mt-2 text-end\">\r\n <button\r\n [disabled]=\"!message\"\r\n (click)=\"send()\"\r\n id=\"send-message-button\"\r\n type=\"button\"\r\n class=\"btn btn-primary px-3\"\r\n >\r\n {{ 'Chat::Send' | abpLocalization }}\r\n @if (!loading) {\r\n <i class=\"fa fa-paper-plane ms-2\" aria-hidden=\"true\"></i>\r\n } @else {\r\n <i class=\"fas fa-spinner fa-spin ms-2\" aria-hidden=\"true\"></i>\r\n }\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n\r\n @if (!selectedContact.userId) {\r\n <div class=\"card-body pt-5 pb-5 text-center\">\r\n <i class=\"fa fa-commenting-o fs-2\" aria-hidden=\"true\"></i>\r\n <p>{{ 'Chat::NoMessageYetMessage' | abpLocalization }}</p>\r\n <button\r\n [disabled]=\"!hasContacts()\"\r\n (click)=\"startConversation()\"\r\n type=\"button\"\r\n class=\"btn btn-primary\"\r\n >\r\n {{ 'Chat::StartConversation' | abpLocalization }}\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n <!-- /Chat Box-->\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".chat-box{height:calc(100vh - 390px);overflow-y:scroll}.message-text{white-space:pre-line}.message-date{position:absolute;opacity:.35;width:100px;top:1px}.message-date.left{left:-110px;text-align:right}.message-date.right{right:-110px}.dropdown-toggle:after{display:none}.dropdown{border-color:transparent}.down-arrow{border:none;opacity:0}.media-body:hover .down-arrow{opacity:100%}.chat-box-container{padding-right:7px}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:var(--lpx-border-color)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NgbDropdownModule }, { kind: "directive", type: i2.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i2.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i2.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i2.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "directive", type: i2.NgbDropdownButtonItem, selector: "button[ngbDropdownItem]" }, { kind: "component", type: ChatMessageTitleComponent, selector: "abp-chat-message-title", inputs: ["selectedContact"] }, { kind: "component", type: ChatContactsComponent, selector: "abp-chat-contacts", inputs: ["conversationDeletable", "startConversation"], outputs: ["startConversationChange", "selected", "conversationDeleted"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: DatePipe, name: "date" }] }); }
|
|
558
558
|
}
|
|
559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatComponent, decorators: [{
|
|
560
560
|
type: Component,
|
|
561
561
|
args: [{ selector: 'abp-chat', imports: [
|
|
562
562
|
FormsModule,
|
|
@@ -590,11 +590,11 @@ const routes = [
|
|
|
590
590
|
},
|
|
591
591
|
];
|
|
592
592
|
class ChatRoutingModule {
|
|
593
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
594
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
595
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
593
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
594
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.6", ngImport: i0, type: ChatRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] }); }
|
|
595
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
|
|
596
596
|
}
|
|
597
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatRoutingModule, decorators: [{
|
|
598
598
|
type: NgModule,
|
|
599
599
|
args: [{
|
|
600
600
|
imports: [RouterModule.forChild(routes)],
|
|
@@ -621,18 +621,18 @@ class ChatModule {
|
|
|
621
621
|
static forLazy() {
|
|
622
622
|
return new LazyModuleFactory(ChatModule.forChild());
|
|
623
623
|
}
|
|
624
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
625
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
624
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
625
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.6", ngImport: i0, type: ChatModule, imports: [CoreModule, ThemeSharedModule, ChatRoutingModule, NgbDropdownModule, ChatComponent,
|
|
626
626
|
ChatContactsComponent,
|
|
627
627
|
ConversationAvatarComponent,
|
|
628
628
|
ChatMessageTitleComponent], exports: [ChatComponent,
|
|
629
629
|
ChatContactsComponent,
|
|
630
630
|
ConversationAvatarComponent,
|
|
631
631
|
ChatMessageTitleComponent] }); }
|
|
632
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
632
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatModule, imports: [CoreModule, ThemeSharedModule, ChatRoutingModule, NgbDropdownModule, ChatComponent,
|
|
633
633
|
ChatContactsComponent] }); }
|
|
634
634
|
}
|
|
635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ChatModule, decorators: [{
|
|
636
636
|
type: NgModule,
|
|
637
637
|
args: [{
|
|
638
638
|
imports: [CoreModule, ThemeSharedModule, ChatRoutingModule, NgbDropdownModule, ...declarations],
|
|
@@ -678,10 +678,10 @@ class ConversationService {
|
|
|
678
678
|
markConversationAsReadByInput(body) {
|
|
679
679
|
return this.restService.request({ url: '/api/chat/conversation/mark-conversation-as-read', method: 'POST', body }, { apiName: this.apiName });
|
|
680
680
|
}
|
|
681
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
682
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
681
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ConversationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
682
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ConversationService, providedIn: 'root' }); }
|
|
683
683
|
}
|
|
684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ConversationService, decorators: [{
|
|
685
685
|
type: Injectable,
|
|
686
686
|
args: [{ providedIn: 'root' }]
|
|
687
687
|
}] });
|
|
@@ -694,10 +694,10 @@ class SettingsService {
|
|
|
694
694
|
setSendOnEnterSettingByInput(body) {
|
|
695
695
|
return this.restService.request({ url: '/api/chat/settings/send-on-enter', method: 'POST', body }, { apiName: this.apiName });
|
|
696
696
|
}
|
|
697
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
698
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
697
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
698
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SettingsService, providedIn: 'root' }); }
|
|
699
699
|
}
|
|
700
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SettingsService, decorators: [{
|
|
701
701
|
type: Injectable,
|
|
702
702
|
args: [{ providedIn: 'root' }]
|
|
703
703
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volo-abp.ng.chat.mjs","sources":["../../../../packages/chat/src/lib/enums/chat-message-side.ts","../../../../packages/chat/src/lib/components/conversation-avatar.component.ts","../../../../packages/chat/src/lib/components/chat-contacts.component.ts","../../../../packages/chat/src/lib/components/chat-contacts.component.html","../../../../packages/chat/src/lib/components/chat-message-title.component.ts","../../../../packages/chat/src/lib/components/chat.component.ts","../../../../packages/chat/src/lib/components/chat.component.html","../../../../packages/chat/src/lib/chat-routing.module.ts","../../../../packages/chat/src/lib/chat.module.ts","../../../../packages/chat/src/lib/chat.routes.ts","../../../../packages/chat/src/lib/services/conversation.service.ts","../../../../packages/chat/src/lib/services/settings.service.ts","../../../../packages/chat/src/lib/models/chat-conversation-dto.ts","../../../../packages/chat/src/lib/models/chat-message-dto.ts","../../../../packages/chat/src/lib/models/chat-target-user-info.ts","../../../../packages/chat/src/lib/models/get-conversation-input.ts","../../../../packages/chat/src/lib/models/mark-conversation-as-read-input.ts","../../../../packages/chat/src/lib/models/send-message-input.ts","../../../../packages/chat/src/lib/models/send-on-enter-setting-dto.ts","../../../../packages/chat/src/volo-abp.ng.chat.ts"],"sourcesContent":["export enum ChatMessageSide {\r\n Sender = 1,\r\n Receiver = 2,\r\n}\r\n","\r\nimport { Component, input } from '@angular/core';\r\nimport { ChatContactDto } from '@volo/abp.ng.chat/proxy';\r\n\r\nconst avatarStyles = [\r\n { color: '#ffffff', backgroundColor: '#3cb160' },\r\n { color: '#ffffff', backgroundColor: '#c373cc' },\r\n { color: '#ffffff', backgroundColor: '#2b78b3' },\r\n { color: '#ffffff', backgroundColor: '#6ac79a' },\r\n { color: '#ffffff', backgroundColor: '#aeb140' },\r\n { color: '#ffffff', backgroundColor: '#b773c0' },\r\n { color: '#ffffff', backgroundColor: '#e16d7a' },\r\n { color: '#ffffff', backgroundColor: '#ffac2a' },\r\n { color: '#ffffff', backgroundColor: '#21bbc7' },\r\n { color: '#ffffff', backgroundColor: '#59ab95' },\r\n];\r\n\r\n@Component({\r\n selector: 'abp-conversation-avatar',\r\n template: `\r\n <div\r\n class=\"avatar me-2 float-start rounded-circle\"\r\n [class.small]=\"isSmall\"\r\n [style]=\"avatarBgStyle\"\r\n >\r\n {{ avatarText }}\r\n </div>\r\n `,\r\n styles: [\r\n `\r\n .avatar {\r\n height: 48px;\r\n width: 48px;\r\n line-height: 48px;\r\n font-size: 16px;\r\n font-weight: 700;\r\n text-align: center;\r\n text-transform: uppercase;\r\n }\r\n\r\n .avatar.small {\r\n height: 36px;\r\n width: 36px;\r\n line-height: 37px;\r\n font-size: 14px;\r\n }\r\n `,\r\n ],\r\n})\r\nexport class ConversationAvatarComponent {\r\n readonly contact = input<ChatContactDto>(undefined);\r\n\r\n readonly small = input<boolean | string>(undefined);\r\n\r\n get avatarText(): string {\r\n const contact = this.contact();\r\n if (!contact || !contact.username) return;\r\n if (contact.name && contact.surname)\r\n return contact.name[0] + contact.surname[0];\r\n if (contact.name) return contact.name.slice(0, 2);\r\n return contact.username.slice(0, 2);\r\n }\r\n\r\n get avatarBgStyle() {\r\n const contact = this.contact();\r\n if (!contact || !contact.username) return;\r\n\r\n let hash = 0;\r\n for (let i = 0; i < contact.username.length; i++) {\r\n hash = contact.username.charCodeAt(i) + ((hash << 5) - hash);\r\n }\r\n return avatarStyles[Math.abs(hash % 10)];\r\n }\r\n\r\n get isSmall() {\r\n const small = this.small();\r\n return typeof small === 'string' || small;\r\n }\r\n}\r\n","import { Component, OnInit, effect, signal, inject, model, output, input } from '@angular/core';\r\nimport { DatePipe, SlicePipe, NgTemplateOutlet } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { debounceTime, distinctUntilChanged, filter, map, take } from 'rxjs';\r\nimport { LocalizationPipe, PermissionDirective } from '@abp/ng.core';\r\nimport { ChatContactDto, ContactService, ConversationService } from '@volo/abp.ng.chat/proxy';\r\nimport { ChatConfigService, ChatMessage } from '@volo/abp.ng.chat/config';\r\nimport { ChatMessageSide } from '../enums/chat-message-side';\r\nimport { ConversationAvatarComponent } from './conversation-avatar.component';\r\n\r\n@Component({\r\n selector: 'abp-chat-contacts',\r\n templateUrl: 'chat-contacts.component.html',\r\n imports: [\r\n FormsModule,\r\n NgbDropdownModule,\r\n PermissionDirective,\r\n LocalizationPipe,\r\n SlicePipe,\r\n DatePipe,\r\n ConversationAvatarComponent,\r\n NgTemplateOutlet,\r\n ],\r\n styles: [\r\n `\r\n .messages-box {\r\n overflow-y: scroll;\r\n max-height: calc(100vh - 254.34px);\r\n }\r\n .dropdown-toggle::after {\r\n display: none;\r\n }\r\n .dropdown {\r\n border-color: transparent;\r\n }\r\n .down-arrow {\r\n border: none;\r\n opacity: 0;\r\n }\r\n .media:hover .down-arrow {\r\n opacity: 100%;\r\n }\r\n\r\n .list-group {\r\n padding-right: 7px;\r\n }\r\n ::-webkit-scrollbar {\r\n width: 5px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background: var(--lpx-border-color);\r\n }\r\n `,\r\n ],\r\n})\r\nexport class ChatContactsComponent implements OnInit {\r\n protected readonly contactService = inject(ContactService);\r\n protected readonly chatConfigService = inject(ChatConfigService);\r\n protected readonly chatConversationService = inject(ConversationService);\r\n\r\n readonly conversationDeletable = input<boolean>(undefined);\r\n\r\n startConversation = model<boolean | undefined>();\r\n #startConversation: boolean | undefined;\r\n\r\n readonly selected = output<ChatContactDto>();\r\n conversationDeleted = output<ChatContactDto>();\r\n\r\n allContacts: ChatContactDto[] = [];\r\n selectedContact = {} as ChatContactDto;\r\n filter = signal<string>('');\r\n debouncedFilter = toSignal(\r\n toObservable(this.filter).pipe(\r\n map(value => (value ?? '').trim()),\r\n debounceTime(300),\r\n distinctUntilChanged(),\r\n ),\r\n { initialValue: '' },\r\n );\r\n\r\n getContactName = getContactName;\r\n\r\n get contacts(): ChatContactDto[] {\r\n return this.allContacts\r\n .filter(contact => contact.lastMessage)\r\n .sort((a, b) =>\r\n new Date(a.lastMessageDate).valueOf() > new Date(b.lastMessageDate).valueOf() ? -1 : 1,\r\n );\r\n }\r\n\r\n get otherContacts(): ChatContactDto[] {\r\n return this.allContacts.filter(contact => !contact.lastMessage);\r\n }\r\n\r\n protected listenToNewMessages() {\r\n this.chatConfigService.message$\r\n .pipe(takeUntilDestroyed())\r\n .subscribe((message = {} as ChatMessage) => {\r\n const index = this.allContacts.findIndex(cont => cont.userId === message.senderUserId);\r\n\r\n const contact = {\r\n userId: message.senderUserId,\r\n username: message.senderUsername,\r\n name: message.senderName,\r\n surname: message.senderSurname,\r\n lastMessage: message.text,\r\n unreadMessageCount: 1,\r\n lastMessageDate: new Date().toString(),\r\n lastMessageSide: ChatMessageSide.Receiver,\r\n } as ChatContactDto;\r\n\r\n if (index > -1) {\r\n let unreadMessageCount = this.allContacts[index].unreadMessageCount + 1;\r\n if (this.selectedContact.userId === this.allContacts[index].userId) {\r\n unreadMessageCount = 0;\r\n }\r\n\r\n this.allContacts[index] = { ...contact, unreadMessageCount };\r\n return;\r\n }\r\n\r\n if (!this.filter()) {\r\n this.allContacts.push(contact);\r\n }\r\n });\r\n }\r\n\r\n constructor() {\r\n this.listenToNewMessages();\r\n this.contactService\r\n .getTotalUnreadMessageCount()\r\n .pipe(filter(Boolean))\r\n .subscribe(count => {\r\n if (count > 0) {\r\n this.get(null, false);\r\n }\r\n });\r\n\r\n effect(() => {\r\n if (this.startConversation()) {\r\n this.#startConversation = this.startConversation();\r\n this.filter.set('');\r\n this.get(null, true);\r\n }\r\n });\r\n\r\n effect(() => {\r\n const currentFilter = this.debouncedFilter();\r\n\r\n if (!currentFilter && this.#startConversation) {\r\n this.get(null, true);\r\n return;\r\n }\r\n\r\n if (currentFilter) {\r\n this.get(() => {\r\n this.startConversation.set(false);\r\n }, true);\r\n return;\r\n }\r\n\r\n if (!currentFilter && !this.#startConversation) {\r\n this.allContacts = [];\r\n }\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n if (this.allContacts.length) {\r\n this.selectContact(this.allContacts[0]);\r\n }\r\n }\r\n\r\n // Search behavior is handled via the debounced signal effect above.\r\n\r\n get(onSuccess?: Function, includeOtherContacts?: boolean) {\r\n const isBoolean = typeof includeOtherContacts === 'boolean';\r\n const includeOtherContactsParam = isBoolean ? includeOtherContacts : !!this.filter();\r\n\r\n this.contactService\r\n .getContacts({\r\n includeOtherContacts: includeOtherContactsParam,\r\n filter: this.debouncedFilter(),\r\n })\r\n .subscribe(res => {\r\n this.allContacts = res;\r\n if (onSuccess) {\r\n onSuccess();\r\n }\r\n });\r\n }\r\n\r\n selectContact(contact: ChatContactDto) {\r\n this.selectedContact = contact;\r\n this.selected.emit(contact);\r\n }\r\n\r\n changeLastMessageOfSelectedContact(message: string) {\r\n this.selectedContact.lastMessage = message;\r\n this.selectedContact.lastMessageDate = new Date().toString();\r\n\r\n const index = this.allContacts.findIndex(\r\n contact => contact.userId === this.selectedContact.userId,\r\n );\r\n\r\n this.allContacts[index] = this.selectedContact;\r\n }\r\n\r\n markSelectedContactAsRead() {\r\n this.selectedContact.unreadMessageCount = 0;\r\n }\r\n\r\n deleteConversation(contact: ChatContactDto) {\r\n this.chatConversationService\r\n .deleteConversation({ targetUserId: contact.userId })\r\n .pipe(take(1))\r\n .subscribe(() => {\r\n this.conversationDeleted.emit(contact);\r\n this.selectedContact = null;\r\n this.get(null, true);\r\n });\r\n }\r\n}\r\n\r\nexport function getContactName({ name, surname, username }: ChatContactDto) {\r\n if (!name && !surname) return username;\r\n\r\n return `${name || ''} ${surname || ''}`;\r\n}\r\n","<div class=\"card w-100 mb-3 mb-md-0\">\r\n <div class=\"card-body p-1 p-md-2 p-lg-3\">\r\n <div class=\"mb-2 rounded-2\">\r\n <div class=\"row\">\r\n <div class=\"col\">\r\n <input\r\n *abpPermission=\"'Chat.Searching'\"\r\n id=\"contacts-filter\"\r\n type=\"search\"\r\n class=\"form-control form-control\"\r\n autocomplete=\"off\"\r\n spellcheck=\"false\"\r\n [ngModel]=\"filter()\"\r\n (ngModelChange)=\"filter.set($event)\"\r\n [placeholder]=\"'Chat::SearchInContacts' | abpLocalization\"\r\n [attr.aria-label]=\"'Chat::SearchInContacts' | abpLocalization\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"messages-box m-0 p-0\">\r\n <div\r\n id=\"contact-list\"\r\n class=\"list-group rounded-3\"\r\n [style.min-height]=\"allContacts.length ? 'calc(100vh - 254.34px)' : null\"\r\n >\r\n @for (contact of contacts; track contact.userId; let i = $index) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"contactTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: contact, index: i }\"\r\n />\r\n }\r\n\r\n @if (otherContacts.length) {\r\n <div\r\n class=\"list-group-item px-2 py-1 bg-light text-muted text-center font-size-sm text-uppercase border-start-0 border-end-0\"\r\n >\r\n <small>{{ 'Chat::OtherContacts' | abpLocalization }}</small>\r\n </div>\r\n }\r\n\r\n @for (contact of otherContacts; track contact.userId; let i = $index) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"contactTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: contact, index: i }\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #contactTemplate let-contact let-i=\"index\">\r\n <a\r\n (click)=\"selectContact(contact)\"\r\n class=\"chat-contact list-group-item list-group-item-action cursor-pointer position-relative px-2 border-2 rounded-2 mb-1 mt-0\"\r\n [class.active]=\"selectedContact?.userId === contact.userId\"\r\n >\r\n <div class=\"media\">\r\n <abp-conversation-avatar [contact]=\"contact\" />\r\n <div class=\"media-body ms-2\">\r\n <div class=\"d-flex align-items-center justify-content-between mb-0\">\r\n <h5 class=\"mb-0 mt-1 cursor-pointer\">\r\n {{ getContactName(contact) }}\r\n @if (contact.unreadMessageCount) {\r\n <span class=\"badge bg-secondary text-white ms-1\">{{\r\n contact.unreadMessageCount\r\n }}</span>\r\n }\r\n </h5>\r\n <small class=\"last-message-date\">{{ contact.lastMessageDate | date: 'HH:mm' }}</small>\r\n </div>\r\n <p class=\"mb-0 small last-message\">\r\n {{\r\n contact.lastMessage?.length > 24\r\n ? (contact.lastMessage | slice: 0 : 23) + '...'\r\n : contact.lastMessage\r\n }}\r\n </p>\r\n\r\n @if (conversationDeletable()) {\r\n <div ngbDropdown class=\"dropdown position-absolute bottom-0 end-0\">\r\n <button class=\"btn p-1 down-arrow\" id=\"dropdownBasic1\" ngbDropdownToggle>\r\n <i class=\"bi bi-chevron-down\"></i>\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"deleteConversation(contact)\">Delete</button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </a>\r\n</ng-template>\r\n","import { Component, input } from '@angular/core';\r\nimport { ChatContactDto } from '@volo/abp.ng.chat/proxy';\r\nimport { getContactName } from './chat-contacts.component';\r\nimport { ConversationAvatarComponent } from './conversation-avatar.component';\r\n\r\n@Component({\r\n selector: 'abp-chat-message-title',\r\n imports: [ConversationAvatarComponent],\r\n template: `\r\n <div class=\"px-2 py-1 border mb-2 rounded-2\">\r\n <div class=\"row\">\r\n <div class=\"col-auto py-1 pe-0\">\r\n <abp-conversation-avatar small [contact]=\"selectedContact()\" />\r\n </div>\r\n <div class=\"col d-flex flex-column justify-content-center\">\r\n <h5 id=\"conversation-title\" class=\"m-0\">{{ contactName }}</h5>\r\n <small id=\"conversation-info\"></small>\r\n </div>\r\n </div>\r\n </div>\r\n `,\r\n})\r\nexport class ChatMessageTitleComponent {\r\n readonly selectedContact = input<ChatContactDto>(undefined);\r\n\r\n get contactName(): string {\r\n return getContactName(this.selectedContact() || ({} as ChatContactDto));\r\n }\r\n}\r\n","import {\r\n AfterViewInit,\r\n Component,\r\n DestroyRef,\r\n ElementRef,\r\n inject,\r\n signal,\r\n DOCUMENT,\r\n viewChild\r\n} from '@angular/core';\r\nimport { DatePipe } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { catchError, debounceTime, finalize, map, startWith } from 'rxjs/operators';\r\nimport { fromEvent } from 'rxjs';\r\nimport { ConfigStateService, HttpWaitService, LocalizationPipe } from '@abp/ng.core';\r\nimport { ConfirmationService } from '@abp/ng.theme.shared';\r\nimport {\r\n ChatMessageSide,\r\n ChatContactDto,\r\n ChatMessageDto,\r\n ChatDeletingConversations,\r\n ChatDeletingMessages,\r\n ConversationService,\r\n chatDeletingConversationsOptions,\r\n chatDeletingMessagesOptions,\r\n ContactService,\r\n} from '@volo/abp.ng.chat/proxy';\r\nimport { ChatConfigService, ChatMessage } from '@volo/abp.ng.chat/config';\r\nimport { ChatContactsComponent } from './chat-contacts.component';\r\nimport { ChatMessageTitleComponent } from './chat-message-title.component';\r\n\r\nconst now = new Date();\r\nconst today = new Date(now.getFullYear(), now.getMonth(), now.getDate()).valueOf();\r\n\r\n@Component({\r\n selector: 'abp-chat',\r\n templateUrl: 'chat.component.html',\r\n imports: [\r\n FormsModule,\r\n NgbDropdownModule,\r\n LocalizationPipe,\r\n DatePipe,\r\n ChatMessageTitleComponent,\r\n ChatContactsComponent,\r\n ],\r\n styles: [\r\n `\r\n .chat-box {\r\n height: calc(100vh - 390px);\r\n overflow-y: scroll;\r\n }\r\n\r\n .message-text {\r\n white-space: pre-line;\r\n }\r\n\r\n .message-date {\r\n position: absolute;\r\n opacity: 0.35;\r\n width: 100px;\r\n top: 1px;\r\n }\r\n\r\n .message-date.left {\r\n left: -110px;\r\n text-align: right;\r\n }\r\n\r\n .message-date.right {\r\n right: -110px;\r\n }\r\n .dropdown-toggle::after {\r\n display: none;\r\n }\r\n .dropdown {\r\n border-color: transparent;\r\n }\r\n .down-arrow {\r\n border: none;\r\n opacity: 0;\r\n }\r\n .media-body:hover .down-arrow {\r\n opacity: 100%;\r\n }\r\n\r\n .chat-box-container {\r\n padding-right: 7px;\r\n }\r\n\r\n ::-webkit-scrollbar {\r\n width: 5px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background: var(--lpx-border-color);\r\n }\r\n `,\r\n ],\r\n})\r\nexport class ChatComponent implements AfterViewInit {\r\n readonly #destroyRef = inject(DestroyRef);\r\n protected readonly conversationService = inject(ConversationService);\r\n protected readonly contactService = inject(ContactService);\r\n protected readonly chatConfigService = inject(ChatConfigService);\r\n protected readonly configState = inject(ConfigStateService);\r\n protected readonly httpWaitService = inject(HttpWaitService);\r\n protected readonly confirmation = inject(ConfirmationService);\r\n private document = inject(DOCUMENT);\r\n\r\n selectedContact = {} as ChatContactDto;\r\n unreadMessageCount = 0;\r\n userMessages = new Map<string, ChatMessageDto[]>();\r\n chatMessageSide = ChatMessageSide;\r\n message: string;\r\n draftMessages = signal(new Map<string, string>());\r\n sendOnEnter: boolean;\r\n loading: boolean;\r\n pagingLoading: boolean;\r\n allMessagesLoaded: boolean;\r\n clickedStartMessage = false;\r\n conversationDeletable = false;\r\n messageDeletable = false;\r\n messageDeletableWithPeriod = false;\r\n messageDeletePeriod: number;\r\n\r\n hasContacts = toSignal(\r\n this.contactService.getContacts({ includeOtherContacts: true }).pipe(\r\n map(contacts => contacts && contacts.length > 0),\r\n startWith(false),\r\n ),\r\n { initialValue: false },\r\n );\r\n\r\n readonly chatBoxRef = viewChild<ElementRef<HTMLDivElement>>('chatBox');\r\n\r\n readonly chatContactsComponent = viewChild(ChatContactsComponent);\r\n\r\n get selectedContactMessages(): ChatMessageDto[] {\r\n return this.userMessages.get(this.selectedContact.userId) || [];\r\n }\r\n\r\n protected addFilterToHttpWaitService(): void {\r\n this.httpWaitService.addFilter([\r\n {\r\n method: 'POST',\r\n endpoint: '/api/chat/conversation/send-message',\r\n },\r\n {\r\n method: 'GET',\r\n endpoint: '/api/chat/contact/contacts',\r\n },\r\n ]);\r\n }\r\n\r\n protected listenToChatBoxScroll(): void {\r\n const chatBoxRef = this.chatBoxRef();\r\n if (chatBoxRef) {\r\n fromEvent(chatBoxRef.nativeElement, 'scroll')\r\n .pipe(debounceTime(150), takeUntilDestroyed(this.#destroyRef))\r\n .subscribe(this.onScroll);\r\n }\r\n }\r\n\r\n protected listenToNewMessages(): void {\r\n this.chatConfigService.message$\r\n .pipe(takeUntilDestroyed(this.#destroyRef))\r\n .subscribe(({ senderUserId, text } = {} as ChatMessage) => {\r\n if (!this.userMessages.has(senderUserId)) {\r\n return;\r\n }\r\n\r\n const isSelected = this.selectedContact.userId === senderUserId;\r\n this.userMessages.get(senderUserId).push({\r\n message: text,\r\n messageDate: Date(),\r\n side: ChatMessageSide.Receiver,\r\n isRead: isSelected,\r\n readDate: isSelected ? Date() : null,\r\n });\r\n\r\n this.scrollToEnd();\r\n });\r\n }\r\n\r\n protected init() {\r\n this.configState.getSettings$('Volo.Chat.Messaging').subscribe(chatSetting => {\r\n const deletingMessages = chatDeletingMessagesOptions.find(\r\n opt => opt.key === chatSetting['Volo.Chat.Messaging.DeletingMessages'],\r\n ).value;\r\n const deletingConversations = chatDeletingConversationsOptions.find(\r\n opt => opt.key === chatSetting['Volo.Chat.Messaging.DeletingConversations'],\r\n ).value;\r\n\r\n this.conversationDeletable =\r\n deletingMessages === ChatDeletingMessages.Enabled &&\r\n deletingConversations === ChatDeletingConversations.Enabled;\r\n\r\n this.messageDeletable = deletingMessages === ChatDeletingMessages.Enabled;\r\n\r\n this.messageDeletableWithPeriod =\r\n deletingMessages === ChatDeletingMessages.EnabledWithDeletionPeriod;\r\n\r\n this.messageDeletePeriod = Number(chatSetting['Volo.Chat.Messaging.MessageDeletionPeriod']);\r\n });\r\n }\r\n\r\n constructor() {\r\n this.init();\r\n this.addFilterToHttpWaitService();\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.sendOnEnter =\r\n (\r\n this.configState.getSetting('Volo.Chat.Messaging.SendMessageOnEnter') || ''\r\n ).toLowerCase() !== 'false';\r\n\r\n this.listenToChatBoxScroll();\r\n this.listenToNewMessages();\r\n }\r\n\r\n getConversation(scrollToEnd: boolean) {\r\n this.allMessagesLoaded = false;\r\n this.conversationService\r\n .getConversation({\r\n skipCount: 0,\r\n maxResultCount: 50,\r\n targetUserId: this.selectedContact.userId,\r\n })\r\n .subscribe(res => {\r\n this.userMessages.set(this.selectedContact.userId, res.messages.reverse());\r\n\r\n if (scrollToEnd) {\r\n this.scrollToEnd();\r\n }\r\n\r\n if (this.selectedContact.unreadMessageCount) {\r\n this.markConversationAsRead();\r\n }\r\n });\r\n }\r\n\r\n send() {\r\n if (!this.message || this.loading) return;\r\n\r\n this.unreadMessageCount = 0;\r\n this.loading = true;\r\n this.conversationService\r\n .sendMessage({ message: this.message, targetUserId: this.selectedContact.userId })\r\n .pipe(finalize(() => (this.loading = false)))\r\n .subscribe(message => {\r\n this.chatContactsComponent().changeLastMessageOfSelectedContact(this.message);\r\n\r\n if (!this.userMessages.has(this.selectedContact.userId)) {\r\n this.userMessages.set(this.selectedContact.userId, []);\r\n }\r\n this.userMessages.get(this.selectedContact.userId).push({\r\n ...message,\r\n });\r\n this.draftMessages.update(curr => {\r\n if (!curr.has(this.selectedContact.userId)) return curr;\r\n const clone = new Map(curr);\r\n clone.delete(this.selectedContact.userId);\r\n return clone;\r\n });\r\n this.message = '';\r\n this.scrollToEnd();\r\n });\r\n }\r\n\r\n markConversationAsRead() {\r\n this.conversationService\r\n .markConversationAsRead({ targetUserId: this.selectedContact.userId })\r\n .subscribe(() => {\r\n this.chatContactsComponent().markSelectedContactAsRead();\r\n this.selectedContact.unreadMessageCount = 0;\r\n setTimeout(() => (this.unreadMessageCount = 0), 5000);\r\n });\r\n }\r\n\r\n sendWithEnter(event: KeyboardEvent) {\r\n if (!this.sendOnEnter) return;\r\n\r\n event.preventDefault();\r\n this.send();\r\n }\r\n\r\n onSelectContact(contact: ChatContactDto) {\r\n if (this.selectedContact?.userId) {\r\n if (this.message) {\r\n this.draftMessages.update(curr => {\r\n const clone = new Map(curr);\r\n clone.set(this.selectedContact.userId, this.message);\r\n return clone;\r\n });\r\n } else {\r\n this.draftMessages.update(curr => {\r\n if (!curr.has(this.selectedContact.userId)) return curr;\r\n const clone = new Map(curr);\r\n clone.delete(this.selectedContact.userId);\r\n return clone;\r\n });\r\n }\r\n }\r\n\r\n this.selectedContact = contact;\r\n this.message = this.draftMessages().get(contact.userId) || '';\r\n this.unreadMessageCount = contact.unreadMessageCount;\r\n this.scrollToEnd();\r\n\r\n if (this.userMessages.has(contact.userId) || !contact.lastMessage) {\r\n if (contact.unreadMessageCount) this.markConversationAsRead();\r\n return;\r\n }\r\n\r\n this.getConversation(true);\r\n }\r\n\r\n getDateFormat(date: string | Date): string {\r\n date = new Date(date);\r\n const messageDay = new Date(date.getFullYear(), date.getMonth(), date.getDate()).valueOf();\r\n\r\n if (messageDay === today) return 'shortTime';\r\n\r\n return 'short';\r\n }\r\n\r\n scrollToEnd() {\r\n setTimeout(() => {\r\n const chatBoxRef = this.chatBoxRef();\r\n if (chatBoxRef?.nativeElement) {\r\n const { offsetTop } = (this.document.querySelector('.unread-message-count-badge-wrapper') ||\r\n {}) as HTMLDivElement;\r\n\r\n chatBoxRef.nativeElement.scrollTo({\r\n top: offsetTop ? offsetTop - 60 : chatBoxRef.nativeElement.scrollHeight,\r\n });\r\n }\r\n }, 0);\r\n }\r\n\r\n onScroll = (event: Event) => {\r\n if (\r\n this.allMessagesLoaded ||\r\n this.pagingLoading ||\r\n !this.selectedContact.lastMessage ||\r\n this.chatBoxRef()?.nativeElement.scrollTop > 250 ||\r\n this.selectedContactMessages.length % 50 !== 0\r\n ) {\r\n event.preventDefault();\r\n return;\r\n }\r\n\r\n this.pagingLoading = true;\r\n this.conversationService\r\n .getConversation({\r\n skipCount: this.selectedContactMessages.length,\r\n maxResultCount: 50,\r\n targetUserId: this.selectedContact.userId,\r\n })\r\n .pipe(finalize(() => (this.pagingLoading = false)))\r\n .subscribe(res => {\r\n if (!res.messages.length) {\r\n this.allMessagesLoaded = true;\r\n return;\r\n }\r\n this.userMessages.get(this.selectedContact.userId).unshift(...res.messages.reverse());\r\n });\r\n };\r\n\r\n startConversation() {\r\n this.clickedStartMessage = true;\r\n }\r\n\r\n deleteMessage(message: ChatMessageDto) {\r\n this.conversationService\r\n .deleteMessage({ targetUserId: this.selectedContact.userId, messageId: message.id })\r\n .pipe(\r\n catchError(err => {\r\n const error = err.error.error;\r\n if (error.code === 'Volo.Chat:010005') {\r\n if (error.data.seconds <= 0) {\r\n this.messageDeletableWithPeriod = false;\r\n } else {\r\n this.selectedContactMessages.find(msg => msg.id === message.id).readDate = null;\r\n }\r\n }\r\n\r\n throw err;\r\n }),\r\n )\r\n .subscribe({\r\n next: () => {\r\n const newArray = this.userMessages.get(this.selectedContact.userId).filter(val => {\r\n return val.id !== message.id;\r\n });\r\n this.userMessages.set(this.selectedContact.userId, newArray);\r\n },\r\n error: err => {\r\n const error = err.error?.error?.message;\r\n this.confirmation.warn(error, 'AbpUi::Warning', {\r\n hideCancelBtn: true,\r\n yesText: 'AbpUi::Ok',\r\n });\r\n },\r\n });\r\n }\r\n\r\n showDeleteDropdown(message: ChatMessageDto) {\r\n const readDate = new Date(message.readDate).getTime();\r\n const now = new Date().getTime();\r\n return now - readDate > this.messageDeletePeriod ? false : true;\r\n }\r\n\r\n conversationDeleted(contact: ChatContactDto) {\r\n if (this.selectedContact.userId === contact.userId) {\r\n this.selectedContact = {} as ChatContactDto;\r\n this.userMessages.delete(contact.userId);\r\n this.draftMessages.update(curr => {\r\n if (!curr.has(contact.userId)) return curr;\r\n const clone = new Map(curr);\r\n clone.delete(contact.userId);\r\n return clone;\r\n });\r\n }\r\n }\r\n}\r\n","<div class=\"row entry-row\">\r\n <div class=\"col-auto\"></div>\r\n <div class=\"col-lg-auto ps-lg-0\"></div>\r\n <div class=\"col\">\r\n <div class=\"text-lg-end pt-2\" id=\"AbpContentToolbar\"></div>\r\n </div>\r\n</div>\r\n\r\n<div id=\"chat_wrapper\">\r\n <div class=\"container-fluid\">\r\n <div class=\"row\">\r\n <!-- Users box-->\r\n <div class=\"col-12 col-md-5 col-lg-4 d-flex align-items-stretch\">\r\n <abp-chat-contacts\r\n class=\"d-flex w-100\"\r\n (selected)=\"onSelectContact($event)\"\r\n [(startConversation)]=\"clickedStartMessage\"\r\n [conversationDeletable]=\"conversationDeletable\"\r\n (conversationDeleted)=\"conversationDeleted($event)\"\r\n />\r\n </div>\r\n <!-- /Users box-->\r\n\r\n <!-- Chat Box-->\r\n <div class=\"col-12 col-md-7 col-lg-8 d-flex align-items-stretch\">\r\n <div class=\"card w-100 mb-0\">\r\n @if (selectedContact.userId) {\r\n <div class=\"card-body p-1 p-md-2 p-lg-3\">\r\n <abp-chat-message-title [selectedContact]=\"selectedContact\" />\r\n\r\n <div #chatBox id=\"chat-conversation-wrapper\" class=\"chat-box mb-2\">\r\n <div class=\"chat-box-container\" id=\"chat-conversation\">\r\n @for (\r\n message of selectedContactMessages;\r\n track message.messageDate;\r\n let i = $index\r\n ) {\r\n @if (selectedContactMessages.length - unreadMessageCount === i) {\r\n <div class=\"row justify-content-center unread-message-count-badge-wrapper\">\r\n <h3>\r\n <span class=\"badge badge-info\">\r\n @if (unreadMessageCount === 1) {\r\n {{ 'Chat::YouHaveAnUnreadMessage' | abpLocalization }}\r\n } @else {\r\n {{\r\n 'Chat::YouHave{0}UnreadMessages'\r\n | abpLocalization: '' + unreadMessageCount\r\n }}\r\n }\r\n </span>\r\n </h3>\r\n </div>\r\n }\r\n\r\n @if ({ isSender: message.side === chatMessageSide.Sender }; as data) {\r\n <div class=\"media w-75 mw-65 w-lp-auto mb-2\" [class.ms-auto]=\"data.isSender\">\r\n <div class=\"media-body position-relative\">\r\n <div\r\n class=\"card shadow-sm rounded py-1 px-2 py-lg-2 px-lg-3 mb-1\"\r\n [class.bg-primary]=\"data.isSender\"\r\n [class.bg-light]=\"!data.isSender\"\r\n >\r\n <p\r\n class=\"message-text text-small mb-0 {{\r\n data.isSender ? 'text-white' : 'text-muted'\r\n }}\"\r\n [innerHTML]=\"message.message\"\r\n ></p>\r\n </div>\r\n <p\r\n class=\"message-date small text-muted m-0 {{\r\n data.isSender ? 'left' : 'right'\r\n }}\"\r\n >\r\n {{ message.messageDate | date: getDateFormat(message.messageDate) }}\r\n </p>\r\n\r\n @if (messageDeletable && message.side === chatMessageSide.Sender) {\r\n <div ngbDropdown class=\"dropdown position-absolute top-0 end-0\">\r\n <button class=\"btn p-1 text-white down-arrow\" ngbDropdownToggle>\r\n <i class=\"bi bi-chevron-down\"></i>\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"deleteMessage(message)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (\r\n messageDeletableWithPeriod &&\r\n showDeleteDropdown(message) &&\r\n message.side === chatMessageSide.Sender\r\n ) {\r\n <div ngbDropdown class=\"dropdown position-absolute top-0 end-0\">\r\n <button class=\"btn p-1 text-light down-arrow\" ngbDropdownToggle>\r\n <i class=\"bi bi-chevron-down\"></i>\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"deleteMessage(message)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n }\r\n </div>\r\n </div>\r\n\r\n @if (selectedContact?.userId) {\r\n <div id=\"send-message-form\" class=\"bg-light rounded-3 m-0\">\r\n <div class=\"p-2 p-lg-3\">\r\n <textarea\r\n id=\"chat-message-box\"\r\n name=\"message\"\r\n type=\"text\"\r\n [placeholder]=\"'Chat::TypeMessage' | abpLocalization\"\r\n class=\"form-control rounded py-2\"\r\n [(ngModel)]=\"message\"\r\n (keydown.enter)=\"sendWithEnter($event)\"\r\n ></textarea>\r\n <div class=\"form-check float-start mt-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input border shadow-sm\"\r\n id=\"send-on-enter\"\r\n [(ngModel)]=\"sendOnEnter\"\r\n />\r\n <label class=\"form-check-label\" for=\"send-on-enter\">{{\r\n 'Chat::SendOnEnter' | abpLocalization\r\n }}</label>\r\n </div>\r\n <div class=\"mt-2 text-end\">\r\n <button\r\n [disabled]=\"!message\"\r\n (click)=\"send()\"\r\n id=\"send-message-button\"\r\n type=\"button\"\r\n class=\"btn btn-primary px-3\"\r\n >\r\n {{ 'Chat::Send' | abpLocalization }}\r\n @if (!loading) {\r\n <i class=\"fa fa-paper-plane ms-2\" aria-hidden=\"true\"></i>\r\n } @else {\r\n <i class=\"fas fa-spinner fa-spin ms-2\" aria-hidden=\"true\"></i>\r\n }\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n\r\n @if (!selectedContact.userId) {\r\n <div class=\"card-body pt-5 pb-5 text-center\">\r\n <i class=\"fa fa-commenting-o fs-2\" aria-hidden=\"true\"></i>\r\n <p>{{ 'Chat::NoMessageYetMessage' | abpLocalization }}</p>\r\n <button\r\n [disabled]=\"!hasContacts()\"\r\n (click)=\"startConversation()\"\r\n type=\"button\"\r\n class=\"btn btn-primary\"\r\n >\r\n {{ 'Chat::StartConversation' | abpLocalization }}\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n <!-- /Chat Box-->\r\n </div>\r\n </div>\r\n</div>\r\n","import {\r\n authGuard,\r\n permissionGuard,\r\n ReplaceableComponents,\r\n ReplaceableRouteContainerComponent,\r\n RouterOutletComponent,\r\n} from '@abp/ng.core';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { ChatComponent } from './components/chat.component';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n component: RouterOutletComponent,\r\n canActivate: [authGuard, permissionGuard],\r\n children: [\r\n {\r\n path: '',\r\n component: ReplaceableRouteContainerComponent,\r\n data: {\r\n requiredPolicy: 'Chat.Messaging',\r\n replaceableComponent: {\r\n defaultComponent: ChatComponent,\r\n key: 'Chat.ChatComponent',\r\n } as ReplaceableComponents.RouteData<ChatComponent>,\r\n title: 'Chat::Menu:Chat',\r\n },\r\n },\r\n ],\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class ChatRoutingModule {}\r\n","import { CoreModule, LazyModuleFactory } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { ModuleWithProviders, NgModule, NgModuleFactory } from '@angular/core';\r\nimport { ChatRoutingModule } from './chat-routing.module';\r\nimport { ChatContactsComponent } from './components/chat-contacts.component';\r\nimport { ChatComponent } from './components/chat.component';\r\nimport { ConversationAvatarComponent } from './components/conversation-avatar.component';\r\nimport { ChatMessageTitleComponent } from './components/chat-message-title.component';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\n\r\nconst declarations = [\r\n ChatComponent,\r\n ChatContactsComponent,\r\n ConversationAvatarComponent,\r\n ChatMessageTitleComponent,\r\n];\r\n\r\n@NgModule({\r\n imports: [CoreModule, ThemeSharedModule, ChatRoutingModule, NgbDropdownModule, ...declarations],\r\n exports: [...declarations],\r\n})\r\nexport class ChatModule {\r\n static forChild(): ModuleWithProviders<ChatModule> {\r\n return {\r\n ngModule: ChatModule,\r\n providers: [],\r\n };\r\n }\r\n /**\r\n * @deprecated `ChatModule.forLazy()` is deprecated. You can use `createRoutes` **function** instead.\r\n */\r\n static forLazy(): NgModuleFactory<ChatModule> {\r\n return new LazyModuleFactory(ChatModule.forChild());\r\n }\r\n}\r\n","import { Routes } from '@angular/router';\r\nimport {\r\n RouterOutletComponent,\r\n authGuard,\r\n permissionGuard,\r\n ReplaceableRouteContainerComponent,\r\n ReplaceableComponents,\r\n} from '@abp/ng.core';\r\nimport { ChatComponent } from './components';\r\n\r\nexport function createRoutes(): Routes {\r\n return [\r\n {\r\n path: '',\r\n component: RouterOutletComponent,\r\n canActivate: [authGuard, permissionGuard],\r\n children: [\r\n {\r\n path: '',\r\n component: ReplaceableRouteContainerComponent,\r\n data: {\r\n requiredPolicy: 'Chat.Messaging',\r\n replaceableComponent: {\r\n defaultComponent: ChatComponent,\r\n key: 'Chat.ChatComponent',\r\n } as ReplaceableComponents.RouteData<ChatComponent>,\r\n title: 'Chat::Menu:Chat',\r\n },\r\n },\r\n ],\r\n },\r\n ];\r\n}\r\n","import { RestService } from '@abp/ng.core';\r\nimport { Injectable, inject } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { SendMessageInput } from '../models/send-message-input';\r\nimport { GetConversationInput } from '../models/get-conversation-input';\r\nimport { MarkConversationAsReadInput } from '../models/mark-conversation-as-read-input';\r\nimport { ChatConversationDto } from '../models/chat-conversation-dto';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ConversationService {\r\n private restService = inject(RestService);\r\n\r\n apiName = 'Chat';\r\n\r\n sendMessageByInput(body: SendMessageInput): Observable<void> {\r\n return this.restService.request(\r\n { url: '/api/chat/conversation/send-message', method: 'POST', body },\r\n { apiName: this.apiName }\r\n );\r\n }\r\n getConversationByInput(params = {} as GetConversationInput): Observable<ChatConversationDto> {\r\n return this.restService.request(\r\n { url: '/api/chat/conversation/conversation', method: 'GET', params },\r\n { apiName: this.apiName }\r\n );\r\n }\r\n markConversationAsReadByInput(body: MarkConversationAsReadInput): Observable<void> {\r\n return this.restService.request(\r\n { url: '/api/chat/conversation/mark-conversation-as-read', method: 'POST', body },\r\n { apiName: this.apiName }\r\n );\r\n }\r\n}\r\n","import { RestService } from '@abp/ng.core';\r\nimport { Injectable, inject } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { SendOnEnterSettingDto } from '../models/send-on-enter-setting-dto';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SettingsService {\r\n private restService = inject(RestService);\r\n\r\n apiName = 'Chat';\r\n\r\n setSendOnEnterSettingByInput(body: SendOnEnterSettingDto): Observable<void> {\r\n return this.restService.request(\r\n { url: '/api/chat/settings/send-on-enter', method: 'POST', body },\r\n { apiName: this.apiName }\r\n );\r\n }\r\n}\r\n","import { ChatTargetUserInfo } from './chat-target-user-info';\r\nimport { ChatMessageDto } from './chat-message-dto';\r\nexport class ChatConversationDto {\r\n messages: ChatMessageDto[];\r\n targetUserInfo: ChatTargetUserInfo;\r\n\r\n constructor(initialValues: Partial<ChatConversationDto> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","import { ChatMessageSide } from '../enums/chat-message-side';\r\n\r\nexport class ChatMessageDto {\r\n message: string;\r\n messageDate: Date | string;\r\n isRead: boolean;\r\n readDate: Date | string;\r\n side: ChatMessageSide;\r\n\r\n constructor(initialValues: Partial<ChatMessageDto> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","\r\nexport class ChatTargetUserInfo {\r\n userId: string;\r\n name: string;\r\n surname: string;\r\n username: string;\r\n\r\n constructor(initialValues: Partial<ChatTargetUserInfo> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","\r\n\r\nimport { PagedResultRequestDto } from '@abp/ng.core';\r\n\r\nexport class GetConversationInput extends PagedResultRequestDto {\r\n targetUserId: string;\r\n skipCount: number;\r\n maxResultCount: number;\r\n\r\n constructor(initialValues: Partial<GetConversationInput> = {}) {\r\n super(initialValues);\r\n }\r\n}\r\n","\r\nexport class MarkConversationAsReadInput {\r\n targetUserId: string;\r\n\r\n constructor(initialValues: Partial<MarkConversationAsReadInput> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","\r\nexport class SendMessageInput {\r\n targetUserId: string;\r\n message: string;\r\n\r\n constructor(initialValues: Partial<SendMessageInput> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","\r\nexport class SendOnEnterSettingDto {\r\n sendOnEnter: boolean;\r\n\r\n constructor(initialValues: Partial<SendOnEnterSettingDto> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ConversationService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Ac,CAAC,GAAG,CAAC,EAAE;oBACrC,IAAI,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC;gBAChC;YACF;QACF;IACF;AACD;;MCZY,gBAAgB,CAAA;AAI3B,IAAA,WAAA,CAAY,gBAA2C,EAAE,EAAA;QACvD,IAAI,aAAa,EAAE;AACjB,YAAA,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE;AAC/B,gBAAA,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACrC,IAAI,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC;gBAChC;YACF;QACF;IACF;AACD;;MCbY,qBAAqB,CAAA;AAGhC,IAAA,WAAA,CAAY,gBAAgD,EAAE,EAAA;QAC5D,IAAI,aAAa,EAAE;AACjB,YAAA,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE;AAC/B,gBAAA,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACrC,IAAI,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC;gBAChC;YACF;QACF;IACF;AACD;;ACbD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"volo-abp.ng.chat.mjs","sources":["../../../../packages/chat/src/lib/enums/chat-message-side.ts","../../../../packages/chat/src/lib/components/conversation-avatar.component.ts","../../../../packages/chat/src/lib/components/chat-contacts.component.ts","../../../../packages/chat/src/lib/components/chat-contacts.component.html","../../../../packages/chat/src/lib/components/chat-message-title.component.ts","../../../../packages/chat/src/lib/components/chat.component.ts","../../../../packages/chat/src/lib/components/chat.component.html","../../../../packages/chat/src/lib/chat-routing.module.ts","../../../../packages/chat/src/lib/chat.module.ts","../../../../packages/chat/src/lib/chat.routes.ts","../../../../packages/chat/src/lib/services/conversation.service.ts","../../../../packages/chat/src/lib/services/settings.service.ts","../../../../packages/chat/src/lib/models/chat-conversation-dto.ts","../../../../packages/chat/src/lib/models/chat-message-dto.ts","../../../../packages/chat/src/lib/models/chat-target-user-info.ts","../../../../packages/chat/src/lib/models/get-conversation-input.ts","../../../../packages/chat/src/lib/models/mark-conversation-as-read-input.ts","../../../../packages/chat/src/lib/models/send-message-input.ts","../../../../packages/chat/src/lib/models/send-on-enter-setting-dto.ts","../../../../packages/chat/src/volo-abp.ng.chat.ts"],"sourcesContent":["export enum ChatMessageSide {\r\n Sender = 1,\r\n Receiver = 2,\r\n}\r\n","\r\nimport { Component, input } from '@angular/core';\r\nimport { ChatContactDto } from '@volo/abp.ng.chat/proxy';\r\n\r\nconst avatarStyles = [\r\n { color: '#ffffff', backgroundColor: '#3cb160' },\r\n { color: '#ffffff', backgroundColor: '#c373cc' },\r\n { color: '#ffffff', backgroundColor: '#2b78b3' },\r\n { color: '#ffffff', backgroundColor: '#6ac79a' },\r\n { color: '#ffffff', backgroundColor: '#aeb140' },\r\n { color: '#ffffff', backgroundColor: '#b773c0' },\r\n { color: '#ffffff', backgroundColor: '#e16d7a' },\r\n { color: '#ffffff', backgroundColor: '#ffac2a' },\r\n { color: '#ffffff', backgroundColor: '#21bbc7' },\r\n { color: '#ffffff', backgroundColor: '#59ab95' },\r\n];\r\n\r\n@Component({\r\n selector: 'abp-conversation-avatar',\r\n template: `\r\n <div\r\n class=\"avatar me-2 float-start rounded-circle\"\r\n [class.small]=\"isSmall\"\r\n [style]=\"avatarBgStyle\"\r\n >\r\n {{ avatarText }}\r\n </div>\r\n `,\r\n styles: [\r\n `\r\n .avatar {\r\n height: 48px;\r\n width: 48px;\r\n line-height: 48px;\r\n font-size: 16px;\r\n font-weight: 700;\r\n text-align: center;\r\n text-transform: uppercase;\r\n }\r\n\r\n .avatar.small {\r\n height: 36px;\r\n width: 36px;\r\n line-height: 37px;\r\n font-size: 14px;\r\n }\r\n `,\r\n ],\r\n})\r\nexport class ConversationAvatarComponent {\r\n readonly contact = input<ChatContactDto>(undefined);\r\n\r\n readonly small = input<boolean | string>(undefined);\r\n\r\n get avatarText(): string {\r\n const contact = this.contact();\r\n if (!contact || !contact.username) return;\r\n if (contact.name && contact.surname)\r\n return contact.name[0] + contact.surname[0];\r\n if (contact.name) return contact.name.slice(0, 2);\r\n return contact.username.slice(0, 2);\r\n }\r\n\r\n get avatarBgStyle() {\r\n const contact = this.contact();\r\n if (!contact || !contact.username) return;\r\n\r\n let hash = 0;\r\n for (let i = 0; i < contact.username.length; i++) {\r\n hash = contact.username.charCodeAt(i) + ((hash << 5) - hash);\r\n }\r\n return avatarStyles[Math.abs(hash % 10)];\r\n }\r\n\r\n get isSmall() {\r\n const small = this.small();\r\n return typeof small === 'string' || small;\r\n }\r\n}\r\n","import { Component, OnInit, effect, signal, inject, model, output, input } from '@angular/core';\r\nimport { DatePipe, SlicePipe, NgTemplateOutlet } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { debounceTime, distinctUntilChanged, filter, map, take } from 'rxjs';\r\nimport { LocalizationPipe, PermissionDirective } from '@abp/ng.core';\r\nimport { ChatContactDto, ContactService, ConversationService } from '@volo/abp.ng.chat/proxy';\r\nimport { ChatConfigService, ChatMessage } from '@volo/abp.ng.chat/config';\r\nimport { ChatMessageSide } from '../enums/chat-message-side';\r\nimport { ConversationAvatarComponent } from './conversation-avatar.component';\r\n\r\n@Component({\r\n selector: 'abp-chat-contacts',\r\n templateUrl: 'chat-contacts.component.html',\r\n imports: [\r\n FormsModule,\r\n NgbDropdownModule,\r\n PermissionDirective,\r\n LocalizationPipe,\r\n SlicePipe,\r\n DatePipe,\r\n ConversationAvatarComponent,\r\n NgTemplateOutlet,\r\n ],\r\n styles: [\r\n `\r\n .messages-box {\r\n overflow-y: scroll;\r\n max-height: calc(100vh - 254.34px);\r\n }\r\n .dropdown-toggle::after {\r\n display: none;\r\n }\r\n .dropdown {\r\n border-color: transparent;\r\n }\r\n .down-arrow {\r\n border: none;\r\n opacity: 0;\r\n }\r\n .media:hover .down-arrow {\r\n opacity: 100%;\r\n }\r\n\r\n .list-group {\r\n padding-right: 7px;\r\n }\r\n ::-webkit-scrollbar {\r\n width: 5px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background: var(--lpx-border-color);\r\n }\r\n `,\r\n ],\r\n})\r\nexport class ChatContactsComponent implements OnInit {\r\n protected readonly contactService = inject(ContactService);\r\n protected readonly chatConfigService = inject(ChatConfigService);\r\n protected readonly chatConversationService = inject(ConversationService);\r\n\r\n readonly conversationDeletable = input<boolean>(undefined);\r\n\r\n startConversation = model<boolean | undefined>();\r\n #startConversation: boolean | undefined;\r\n\r\n readonly selected = output<ChatContactDto>();\r\n conversationDeleted = output<ChatContactDto>();\r\n\r\n allContacts: ChatContactDto[] = [];\r\n selectedContact = {} as ChatContactDto;\r\n filter = signal<string>('');\r\n debouncedFilter = toSignal(\r\n toObservable(this.filter).pipe(\r\n map(value => (value ?? '').trim()),\r\n debounceTime(300),\r\n distinctUntilChanged(),\r\n ),\r\n { initialValue: '' },\r\n );\r\n\r\n getContactName = getContactName;\r\n\r\n get contacts(): ChatContactDto[] {\r\n return this.allContacts\r\n .filter(contact => contact.lastMessage)\r\n .sort((a, b) =>\r\n new Date(a.lastMessageDate).valueOf() > new Date(b.lastMessageDate).valueOf() ? -1 : 1,\r\n );\r\n }\r\n\r\n get otherContacts(): ChatContactDto[] {\r\n return this.allContacts.filter(contact => !contact.lastMessage);\r\n }\r\n\r\n protected listenToNewMessages() {\r\n this.chatConfigService.message$\r\n .pipe(takeUntilDestroyed())\r\n .subscribe((message = {} as ChatMessage) => {\r\n const index = this.allContacts.findIndex(cont => cont.userId === message.senderUserId);\r\n\r\n const contact = {\r\n userId: message.senderUserId,\r\n username: message.senderUsername,\r\n name: message.senderName,\r\n surname: message.senderSurname,\r\n lastMessage: message.text,\r\n unreadMessageCount: 1,\r\n lastMessageDate: new Date().toString(),\r\n lastMessageSide: ChatMessageSide.Receiver,\r\n } as ChatContactDto;\r\n\r\n if (index > -1) {\r\n let unreadMessageCount = this.allContacts[index].unreadMessageCount + 1;\r\n if (this.selectedContact.userId === this.allContacts[index].userId) {\r\n unreadMessageCount = 0;\r\n }\r\n\r\n this.allContacts[index] = { ...contact, unreadMessageCount };\r\n return;\r\n }\r\n\r\n if (!this.filter()) {\r\n this.allContacts.push(contact);\r\n }\r\n });\r\n }\r\n\r\n constructor() {\r\n this.listenToNewMessages();\r\n this.contactService\r\n .getTotalUnreadMessageCount()\r\n .pipe(filter(Boolean))\r\n .subscribe(count => {\r\n if (count > 0) {\r\n this.get(null, false);\r\n }\r\n });\r\n\r\n effect(() => {\r\n if (this.startConversation()) {\r\n this.#startConversation = this.startConversation();\r\n this.filter.set('');\r\n this.get(null, true);\r\n }\r\n });\r\n\r\n effect(() => {\r\n const currentFilter = this.debouncedFilter();\r\n\r\n if (!currentFilter && this.#startConversation) {\r\n this.get(null, true);\r\n return;\r\n }\r\n\r\n if (currentFilter) {\r\n this.get(() => {\r\n this.startConversation.set(false);\r\n }, true);\r\n return;\r\n }\r\n\r\n if (!currentFilter && !this.#startConversation) {\r\n this.allContacts = [];\r\n }\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n if (this.allContacts.length) {\r\n this.selectContact(this.allContacts[0]);\r\n }\r\n }\r\n\r\n // Search behavior is handled via the debounced signal effect above.\r\n\r\n get(onSuccess?: Function, includeOtherContacts?: boolean) {\r\n const isBoolean = typeof includeOtherContacts === 'boolean';\r\n const includeOtherContactsParam = isBoolean ? includeOtherContacts : !!this.filter();\r\n\r\n this.contactService\r\n .getContacts({\r\n includeOtherContacts: includeOtherContactsParam,\r\n filter: this.debouncedFilter(),\r\n })\r\n .subscribe(res => {\r\n this.allContacts = res;\r\n if (onSuccess) {\r\n onSuccess();\r\n }\r\n });\r\n }\r\n\r\n selectContact(contact: ChatContactDto) {\r\n this.selectedContact = contact;\r\n this.selected.emit(contact);\r\n }\r\n\r\n changeLastMessageOfSelectedContact(message: string) {\r\n this.selectedContact.lastMessage = message;\r\n this.selectedContact.lastMessageDate = new Date().toString();\r\n\r\n const index = this.allContacts.findIndex(\r\n contact => contact.userId === this.selectedContact.userId,\r\n );\r\n\r\n this.allContacts[index] = this.selectedContact;\r\n }\r\n\r\n markSelectedContactAsRead() {\r\n this.selectedContact.unreadMessageCount = 0;\r\n }\r\n\r\n deleteConversation(contact: ChatContactDto) {\r\n this.chatConversationService\r\n .deleteConversation({ targetUserId: contact.userId })\r\n .pipe(take(1))\r\n .subscribe(() => {\r\n this.conversationDeleted.emit(contact);\r\n this.selectedContact = null;\r\n this.get(null, true);\r\n });\r\n }\r\n}\r\n\r\nexport function getContactName({ name, surname, username }: ChatContactDto) {\r\n if (!name && !surname) return username;\r\n\r\n return `${name || ''} ${surname || ''}`;\r\n}\r\n","<div class=\"card w-100 mb-3 mb-md-0\">\r\n <div class=\"card-body p-1 p-md-2 p-lg-3\">\r\n <div class=\"mb-2 rounded-2\">\r\n <div class=\"row\">\r\n <div class=\"col\">\r\n <input\r\n *abpPermission=\"'Chat.Searching'\"\r\n id=\"contacts-filter\"\r\n type=\"search\"\r\n class=\"form-control form-control\"\r\n autocomplete=\"off\"\r\n spellcheck=\"false\"\r\n [ngModel]=\"filter()\"\r\n (ngModelChange)=\"filter.set($event)\"\r\n [placeholder]=\"'Chat::SearchInContacts' | abpLocalization\"\r\n [attr.aria-label]=\"'Chat::SearchInContacts' | abpLocalization\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"messages-box m-0 p-0\">\r\n <div\r\n id=\"contact-list\"\r\n class=\"list-group rounded-3\"\r\n [style.min-height]=\"allContacts.length ? 'calc(100vh - 254.34px)' : null\"\r\n >\r\n @for (contact of contacts; track contact.userId; let i = $index) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"contactTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: contact, index: i }\"\r\n />\r\n }\r\n\r\n @if (otherContacts.length) {\r\n <div\r\n class=\"list-group-item px-2 py-1 bg-light text-muted text-center font-size-sm text-uppercase border-start-0 border-end-0\"\r\n >\r\n <small>{{ 'Chat::OtherContacts' | abpLocalization }}</small>\r\n </div>\r\n }\r\n\r\n @for (contact of otherContacts; track contact.userId; let i = $index) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"contactTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: contact, index: i }\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #contactTemplate let-contact let-i=\"index\">\r\n <a\r\n (click)=\"selectContact(contact)\"\r\n class=\"chat-contact list-group-item list-group-item-action cursor-pointer position-relative px-2 border-2 rounded-2 mb-1 mt-0\"\r\n [class.active]=\"selectedContact?.userId === contact.userId\"\r\n >\r\n <div class=\"media\">\r\n <abp-conversation-avatar [contact]=\"contact\" />\r\n <div class=\"media-body ms-2\">\r\n <div class=\"d-flex align-items-center justify-content-between mb-0\">\r\n <h5 class=\"mb-0 mt-1 cursor-pointer\">\r\n {{ getContactName(contact) }}\r\n @if (contact.unreadMessageCount) {\r\n <span class=\"badge bg-secondary text-white ms-1\">{{\r\n contact.unreadMessageCount\r\n }}</span>\r\n }\r\n </h5>\r\n <small class=\"last-message-date\">{{ contact.lastMessageDate | date: 'HH:mm' }}</small>\r\n </div>\r\n <p class=\"mb-0 small last-message\">\r\n {{\r\n contact.lastMessage?.length > 24\r\n ? (contact.lastMessage | slice: 0 : 23) + '...'\r\n : contact.lastMessage\r\n }}\r\n </p>\r\n\r\n @if (conversationDeletable()) {\r\n <div ngbDropdown class=\"dropdown position-absolute bottom-0 end-0\">\r\n <button class=\"btn p-1 down-arrow\" id=\"dropdownBasic1\" ngbDropdownToggle>\r\n <i class=\"bi bi-chevron-down\"></i>\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"deleteConversation(contact)\">Delete</button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </a>\r\n</ng-template>\r\n","import { Component, input } from '@angular/core';\r\nimport { ChatContactDto } from '@volo/abp.ng.chat/proxy';\r\nimport { getContactName } from './chat-contacts.component';\r\nimport { ConversationAvatarComponent } from './conversation-avatar.component';\r\n\r\n@Component({\r\n selector: 'abp-chat-message-title',\r\n imports: [ConversationAvatarComponent],\r\n template: `\r\n <div class=\"px-2 py-1 border mb-2 rounded-2\">\r\n <div class=\"row\">\r\n <div class=\"col-auto py-1 pe-0\">\r\n <abp-conversation-avatar small [contact]=\"selectedContact()\" />\r\n </div>\r\n <div class=\"col d-flex flex-column justify-content-center\">\r\n <h5 id=\"conversation-title\" class=\"m-0\">{{ contactName }}</h5>\r\n <small id=\"conversation-info\"></small>\r\n </div>\r\n </div>\r\n </div>\r\n `,\r\n})\r\nexport class ChatMessageTitleComponent {\r\n readonly selectedContact = input<ChatContactDto>(undefined);\r\n\r\n get contactName(): string {\r\n return getContactName(this.selectedContact() || ({} as ChatContactDto));\r\n }\r\n}\r\n","import {\r\n AfterViewInit,\r\n Component,\r\n DestroyRef,\r\n ElementRef,\r\n inject,\r\n signal,\r\n DOCUMENT,\r\n viewChild\r\n} from '@angular/core';\r\nimport { DatePipe } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { catchError, debounceTime, finalize, map, startWith } from 'rxjs/operators';\r\nimport { fromEvent } from 'rxjs';\r\nimport { ConfigStateService, HttpWaitService, LocalizationPipe } from '@abp/ng.core';\r\nimport { ConfirmationService } from '@abp/ng.theme.shared';\r\nimport {\r\n ChatMessageSide,\r\n ChatContactDto,\r\n ChatMessageDto,\r\n ChatDeletingConversations,\r\n ChatDeletingMessages,\r\n ConversationService,\r\n chatDeletingConversationsOptions,\r\n chatDeletingMessagesOptions,\r\n ContactService,\r\n} from '@volo/abp.ng.chat/proxy';\r\nimport { ChatConfigService, ChatMessage } from '@volo/abp.ng.chat/config';\r\nimport { ChatContactsComponent } from './chat-contacts.component';\r\nimport { ChatMessageTitleComponent } from './chat-message-title.component';\r\n\r\nconst now = new Date();\r\nconst today = new Date(now.getFullYear(), now.getMonth(), now.getDate()).valueOf();\r\n\r\n@Component({\r\n selector: 'abp-chat',\r\n templateUrl: 'chat.component.html',\r\n imports: [\r\n FormsModule,\r\n NgbDropdownModule,\r\n LocalizationPipe,\r\n DatePipe,\r\n ChatMessageTitleComponent,\r\n ChatContactsComponent,\r\n ],\r\n styles: [\r\n `\r\n .chat-box {\r\n height: calc(100vh - 390px);\r\n overflow-y: scroll;\r\n }\r\n\r\n .message-text {\r\n white-space: pre-line;\r\n }\r\n\r\n .message-date {\r\n position: absolute;\r\n opacity: 0.35;\r\n width: 100px;\r\n top: 1px;\r\n }\r\n\r\n .message-date.left {\r\n left: -110px;\r\n text-align: right;\r\n }\r\n\r\n .message-date.right {\r\n right: -110px;\r\n }\r\n .dropdown-toggle::after {\r\n display: none;\r\n }\r\n .dropdown {\r\n border-color: transparent;\r\n }\r\n .down-arrow {\r\n border: none;\r\n opacity: 0;\r\n }\r\n .media-body:hover .down-arrow {\r\n opacity: 100%;\r\n }\r\n\r\n .chat-box-container {\r\n padding-right: 7px;\r\n }\r\n\r\n ::-webkit-scrollbar {\r\n width: 5px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background: var(--lpx-border-color);\r\n }\r\n `,\r\n ],\r\n})\r\nexport class ChatComponent implements AfterViewInit {\r\n readonly #destroyRef = inject(DestroyRef);\r\n protected readonly conversationService = inject(ConversationService);\r\n protected readonly contactService = inject(ContactService);\r\n protected readonly chatConfigService = inject(ChatConfigService);\r\n protected readonly configState = inject(ConfigStateService);\r\n protected readonly httpWaitService = inject(HttpWaitService);\r\n protected readonly confirmation = inject(ConfirmationService);\r\n private document = inject(DOCUMENT);\r\n\r\n selectedContact = {} as ChatContactDto;\r\n unreadMessageCount = 0;\r\n userMessages = new Map<string, ChatMessageDto[]>();\r\n chatMessageSide = ChatMessageSide;\r\n message: string;\r\n draftMessages = signal(new Map<string, string>());\r\n sendOnEnter: boolean;\r\n loading: boolean;\r\n pagingLoading: boolean;\r\n allMessagesLoaded: boolean;\r\n clickedStartMessage = false;\r\n conversationDeletable = false;\r\n messageDeletable = false;\r\n messageDeletableWithPeriod = false;\r\n messageDeletePeriod: number;\r\n\r\n hasContacts = toSignal(\r\n this.contactService.getContacts({ includeOtherContacts: true }).pipe(\r\n map(contacts => contacts && contacts.length > 0),\r\n startWith(false),\r\n ),\r\n { initialValue: false },\r\n );\r\n\r\n readonly chatBoxRef = viewChild<ElementRef<HTMLDivElement>>('chatBox');\r\n\r\n readonly chatContactsComponent = viewChild(ChatContactsComponent);\r\n\r\n get selectedContactMessages(): ChatMessageDto[] {\r\n return this.userMessages.get(this.selectedContact.userId) || [];\r\n }\r\n\r\n protected addFilterToHttpWaitService(): void {\r\n this.httpWaitService.addFilter([\r\n {\r\n method: 'POST',\r\n endpoint: '/api/chat/conversation/send-message',\r\n },\r\n {\r\n method: 'GET',\r\n endpoint: '/api/chat/contact/contacts',\r\n },\r\n ]);\r\n }\r\n\r\n protected listenToChatBoxScroll(): void {\r\n const chatBoxRef = this.chatBoxRef();\r\n if (chatBoxRef) {\r\n fromEvent(chatBoxRef.nativeElement, 'scroll')\r\n .pipe(debounceTime(150), takeUntilDestroyed(this.#destroyRef))\r\n .subscribe(this.onScroll);\r\n }\r\n }\r\n\r\n protected listenToNewMessages(): void {\r\n this.chatConfigService.message$\r\n .pipe(takeUntilDestroyed(this.#destroyRef))\r\n .subscribe(({ senderUserId, text } = {} as ChatMessage) => {\r\n if (!this.userMessages.has(senderUserId)) {\r\n return;\r\n }\r\n\r\n const isSelected = this.selectedContact.userId === senderUserId;\r\n this.userMessages.get(senderUserId).push({\r\n message: text,\r\n messageDate: Date(),\r\n side: ChatMessageSide.Receiver,\r\n isRead: isSelected,\r\n readDate: isSelected ? Date() : null,\r\n });\r\n\r\n this.scrollToEnd();\r\n });\r\n }\r\n\r\n protected init() {\r\n this.configState.getSettings$('Volo.Chat.Messaging').subscribe(chatSetting => {\r\n const deletingMessages = chatDeletingMessagesOptions.find(\r\n opt => opt.key === chatSetting['Volo.Chat.Messaging.DeletingMessages'],\r\n ).value;\r\n const deletingConversations = chatDeletingConversationsOptions.find(\r\n opt => opt.key === chatSetting['Volo.Chat.Messaging.DeletingConversations'],\r\n ).value;\r\n\r\n this.conversationDeletable =\r\n deletingMessages === ChatDeletingMessages.Enabled &&\r\n deletingConversations === ChatDeletingConversations.Enabled;\r\n\r\n this.messageDeletable = deletingMessages === ChatDeletingMessages.Enabled;\r\n\r\n this.messageDeletableWithPeriod =\r\n deletingMessages === ChatDeletingMessages.EnabledWithDeletionPeriod;\r\n\r\n this.messageDeletePeriod = Number(chatSetting['Volo.Chat.Messaging.MessageDeletionPeriod']);\r\n });\r\n }\r\n\r\n constructor() {\r\n this.init();\r\n this.addFilterToHttpWaitService();\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.sendOnEnter =\r\n (\r\n this.configState.getSetting('Volo.Chat.Messaging.SendMessageOnEnter') || ''\r\n ).toLowerCase() !== 'false';\r\n\r\n this.listenToChatBoxScroll();\r\n this.listenToNewMessages();\r\n }\r\n\r\n getConversation(scrollToEnd: boolean) {\r\n this.allMessagesLoaded = false;\r\n this.conversationService\r\n .getConversation({\r\n skipCount: 0,\r\n maxResultCount: 50,\r\n targetUserId: this.selectedContact.userId,\r\n })\r\n .subscribe(res => {\r\n this.userMessages.set(this.selectedContact.userId, res.messages.reverse());\r\n\r\n if (scrollToEnd) {\r\n this.scrollToEnd();\r\n }\r\n\r\n if (this.selectedContact.unreadMessageCount) {\r\n this.markConversationAsRead();\r\n }\r\n });\r\n }\r\n\r\n send() {\r\n if (!this.message || this.loading) return;\r\n\r\n this.unreadMessageCount = 0;\r\n this.loading = true;\r\n this.conversationService\r\n .sendMessage({ message: this.message, targetUserId: this.selectedContact.userId })\r\n .pipe(finalize(() => (this.loading = false)))\r\n .subscribe(message => {\r\n this.chatContactsComponent().changeLastMessageOfSelectedContact(this.message);\r\n\r\n if (!this.userMessages.has(this.selectedContact.userId)) {\r\n this.userMessages.set(this.selectedContact.userId, []);\r\n }\r\n this.userMessages.get(this.selectedContact.userId).push({\r\n ...message,\r\n });\r\n this.draftMessages.update(curr => {\r\n if (!curr.has(this.selectedContact.userId)) return curr;\r\n const clone = new Map(curr);\r\n clone.delete(this.selectedContact.userId);\r\n return clone;\r\n });\r\n this.message = '';\r\n this.scrollToEnd();\r\n });\r\n }\r\n\r\n markConversationAsRead() {\r\n this.conversationService\r\n .markConversationAsRead({ targetUserId: this.selectedContact.userId })\r\n .subscribe(() => {\r\n this.chatContactsComponent().markSelectedContactAsRead();\r\n this.selectedContact.unreadMessageCount = 0;\r\n setTimeout(() => (this.unreadMessageCount = 0), 5000);\r\n });\r\n }\r\n\r\n sendWithEnter(event: KeyboardEvent) {\r\n if (!this.sendOnEnter) return;\r\n\r\n event.preventDefault();\r\n this.send();\r\n }\r\n\r\n onSelectContact(contact: ChatContactDto) {\r\n if (this.selectedContact?.userId) {\r\n if (this.message) {\r\n this.draftMessages.update(curr => {\r\n const clone = new Map(curr);\r\n clone.set(this.selectedContact.userId, this.message);\r\n return clone;\r\n });\r\n } else {\r\n this.draftMessages.update(curr => {\r\n if (!curr.has(this.selectedContact.userId)) return curr;\r\n const clone = new Map(curr);\r\n clone.delete(this.selectedContact.userId);\r\n return clone;\r\n });\r\n }\r\n }\r\n\r\n this.selectedContact = contact;\r\n this.message = this.draftMessages().get(contact.userId) || '';\r\n this.unreadMessageCount = contact.unreadMessageCount;\r\n this.scrollToEnd();\r\n\r\n if (this.userMessages.has(contact.userId) || !contact.lastMessage) {\r\n if (contact.unreadMessageCount) this.markConversationAsRead();\r\n return;\r\n }\r\n\r\n this.getConversation(true);\r\n }\r\n\r\n getDateFormat(date: string | Date): string {\r\n date = new Date(date);\r\n const messageDay = new Date(date.getFullYear(), date.getMonth(), date.getDate()).valueOf();\r\n\r\n if (messageDay === today) return 'shortTime';\r\n\r\n return 'short';\r\n }\r\n\r\n scrollToEnd() {\r\n setTimeout(() => {\r\n const chatBoxRef = this.chatBoxRef();\r\n if (chatBoxRef?.nativeElement) {\r\n const { offsetTop } = (this.document.querySelector('.unread-message-count-badge-wrapper') ||\r\n {}) as HTMLDivElement;\r\n\r\n chatBoxRef.nativeElement.scrollTo({\r\n top: offsetTop ? offsetTop - 60 : chatBoxRef.nativeElement.scrollHeight,\r\n });\r\n }\r\n }, 0);\r\n }\r\n\r\n onScroll = (event: Event) => {\r\n if (\r\n this.allMessagesLoaded ||\r\n this.pagingLoading ||\r\n !this.selectedContact.lastMessage ||\r\n this.chatBoxRef()?.nativeElement.scrollTop > 250 ||\r\n this.selectedContactMessages.length % 50 !== 0\r\n ) {\r\n event.preventDefault();\r\n return;\r\n }\r\n\r\n this.pagingLoading = true;\r\n this.conversationService\r\n .getConversation({\r\n skipCount: this.selectedContactMessages.length,\r\n maxResultCount: 50,\r\n targetUserId: this.selectedContact.userId,\r\n })\r\n .pipe(finalize(() => (this.pagingLoading = false)))\r\n .subscribe(res => {\r\n if (!res.messages.length) {\r\n this.allMessagesLoaded = true;\r\n return;\r\n }\r\n this.userMessages.get(this.selectedContact.userId).unshift(...res.messages.reverse());\r\n });\r\n };\r\n\r\n startConversation() {\r\n this.clickedStartMessage = true;\r\n }\r\n\r\n deleteMessage(message: ChatMessageDto) {\r\n this.conversationService\r\n .deleteMessage({ targetUserId: this.selectedContact.userId, messageId: message.id })\r\n .pipe(\r\n catchError(err => {\r\n const error = err.error.error;\r\n if (error.code === 'Volo.Chat:010005') {\r\n if (error.data.seconds <= 0) {\r\n this.messageDeletableWithPeriod = false;\r\n } else {\r\n this.selectedContactMessages.find(msg => msg.id === message.id).readDate = null;\r\n }\r\n }\r\n\r\n throw err;\r\n }),\r\n )\r\n .subscribe({\r\n next: () => {\r\n const newArray = this.userMessages.get(this.selectedContact.userId).filter(val => {\r\n return val.id !== message.id;\r\n });\r\n this.userMessages.set(this.selectedContact.userId, newArray);\r\n },\r\n error: err => {\r\n const error = err.error?.error?.message;\r\n this.confirmation.warn(error, 'AbpUi::Warning', {\r\n hideCancelBtn: true,\r\n yesText: 'AbpUi::Ok',\r\n });\r\n },\r\n });\r\n }\r\n\r\n showDeleteDropdown(message: ChatMessageDto) {\r\n const readDate = new Date(message.readDate).getTime();\r\n const now = new Date().getTime();\r\n return now - readDate > this.messageDeletePeriod ? false : true;\r\n }\r\n\r\n conversationDeleted(contact: ChatContactDto) {\r\n if (this.selectedContact.userId === contact.userId) {\r\n this.selectedContact = {} as ChatContactDto;\r\n this.userMessages.delete(contact.userId);\r\n this.draftMessages.update(curr => {\r\n if (!curr.has(contact.userId)) return curr;\r\n const clone = new Map(curr);\r\n clone.delete(contact.userId);\r\n return clone;\r\n });\r\n }\r\n }\r\n}\r\n","<div class=\"row entry-row\">\r\n <div class=\"col-auto\"></div>\r\n <div class=\"col-lg-auto ps-lg-0\"></div>\r\n <div class=\"col\">\r\n <div class=\"text-lg-end pt-2\" id=\"AbpContentToolbar\"></div>\r\n </div>\r\n</div>\r\n\r\n<div id=\"chat_wrapper\">\r\n <div class=\"container-fluid\">\r\n <div class=\"row\">\r\n <!-- Users box-->\r\n <div class=\"col-12 col-md-5 col-lg-4 d-flex align-items-stretch\">\r\n <abp-chat-contacts\r\n class=\"d-flex w-100\"\r\n (selected)=\"onSelectContact($event)\"\r\n [(startConversation)]=\"clickedStartMessage\"\r\n [conversationDeletable]=\"conversationDeletable\"\r\n (conversationDeleted)=\"conversationDeleted($event)\"\r\n />\r\n </div>\r\n <!-- /Users box-->\r\n\r\n <!-- Chat Box-->\r\n <div class=\"col-12 col-md-7 col-lg-8 d-flex align-items-stretch\">\r\n <div class=\"card w-100 mb-0\">\r\n @if (selectedContact.userId) {\r\n <div class=\"card-body p-1 p-md-2 p-lg-3\">\r\n <abp-chat-message-title [selectedContact]=\"selectedContact\" />\r\n\r\n <div #chatBox id=\"chat-conversation-wrapper\" class=\"chat-box mb-2\">\r\n <div class=\"chat-box-container\" id=\"chat-conversation\">\r\n @for (\r\n message of selectedContactMessages;\r\n track message.messageDate;\r\n let i = $index\r\n ) {\r\n @if (selectedContactMessages.length - unreadMessageCount === i) {\r\n <div class=\"row justify-content-center unread-message-count-badge-wrapper\">\r\n <h3>\r\n <span class=\"badge badge-info\">\r\n @if (unreadMessageCount === 1) {\r\n {{ 'Chat::YouHaveAnUnreadMessage' | abpLocalization }}\r\n } @else {\r\n {{\r\n 'Chat::YouHave{0}UnreadMessages'\r\n | abpLocalization: '' + unreadMessageCount\r\n }}\r\n }\r\n </span>\r\n </h3>\r\n </div>\r\n }\r\n\r\n @if ({ isSender: message.side === chatMessageSide.Sender }; as data) {\r\n <div class=\"media w-75 mw-65 w-lp-auto mb-2\" [class.ms-auto]=\"data.isSender\">\r\n <div class=\"media-body position-relative\">\r\n <div\r\n class=\"card shadow-sm rounded py-1 px-2 py-lg-2 px-lg-3 mb-1\"\r\n [class.bg-primary]=\"data.isSender\"\r\n [class.bg-light]=\"!data.isSender\"\r\n >\r\n <p\r\n class=\"message-text text-small mb-0 {{\r\n data.isSender ? 'text-white' : 'text-muted'\r\n }}\"\r\n [innerHTML]=\"message.message\"\r\n ></p>\r\n </div>\r\n <p\r\n class=\"message-date small text-muted m-0 {{\r\n data.isSender ? 'left' : 'right'\r\n }}\"\r\n >\r\n {{ message.messageDate | date: getDateFormat(message.messageDate) }}\r\n </p>\r\n\r\n @if (messageDeletable && message.side === chatMessageSide.Sender) {\r\n <div ngbDropdown class=\"dropdown position-absolute top-0 end-0\">\r\n <button class=\"btn p-1 text-white down-arrow\" ngbDropdownToggle>\r\n <i class=\"bi bi-chevron-down\"></i>\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"deleteMessage(message)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n\r\n @if (\r\n messageDeletableWithPeriod &&\r\n showDeleteDropdown(message) &&\r\n message.side === chatMessageSide.Sender\r\n ) {\r\n <div ngbDropdown class=\"dropdown position-absolute top-0 end-0\">\r\n <button class=\"btn p-1 text-light down-arrow\" ngbDropdownToggle>\r\n <i class=\"bi bi-chevron-down\"></i>\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"deleteMessage(message)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n }\r\n </div>\r\n </div>\r\n\r\n @if (selectedContact?.userId) {\r\n <div id=\"send-message-form\" class=\"bg-light rounded-3 m-0\">\r\n <div class=\"p-2 p-lg-3\">\r\n <textarea\r\n id=\"chat-message-box\"\r\n name=\"message\"\r\n type=\"text\"\r\n [placeholder]=\"'Chat::TypeMessage' | abpLocalization\"\r\n class=\"form-control rounded py-2\"\r\n [(ngModel)]=\"message\"\r\n (keydown.enter)=\"sendWithEnter($event)\"\r\n ></textarea>\r\n <div class=\"form-check float-start mt-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input border shadow-sm\"\r\n id=\"send-on-enter\"\r\n [(ngModel)]=\"sendOnEnter\"\r\n />\r\n <label class=\"form-check-label\" for=\"send-on-enter\">{{\r\n 'Chat::SendOnEnter' | abpLocalization\r\n }}</label>\r\n </div>\r\n <div class=\"mt-2 text-end\">\r\n <button\r\n [disabled]=\"!message\"\r\n (click)=\"send()\"\r\n id=\"send-message-button\"\r\n type=\"button\"\r\n class=\"btn btn-primary px-3\"\r\n >\r\n {{ 'Chat::Send' | abpLocalization }}\r\n @if (!loading) {\r\n <i class=\"fa fa-paper-plane ms-2\" aria-hidden=\"true\"></i>\r\n } @else {\r\n <i class=\"fas fa-spinner fa-spin ms-2\" aria-hidden=\"true\"></i>\r\n }\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n\r\n @if (!selectedContact.userId) {\r\n <div class=\"card-body pt-5 pb-5 text-center\">\r\n <i class=\"fa fa-commenting-o fs-2\" aria-hidden=\"true\"></i>\r\n <p>{{ 'Chat::NoMessageYetMessage' | abpLocalization }}</p>\r\n <button\r\n [disabled]=\"!hasContacts()\"\r\n (click)=\"startConversation()\"\r\n type=\"button\"\r\n class=\"btn btn-primary\"\r\n >\r\n {{ 'Chat::StartConversation' | abpLocalization }}\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n <!-- /Chat Box-->\r\n </div>\r\n </div>\r\n</div>\r\n","import {\r\n authGuard,\r\n permissionGuard,\r\n ReplaceableComponents,\r\n ReplaceableRouteContainerComponent,\r\n RouterOutletComponent,\r\n} from '@abp/ng.core';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { ChatComponent } from './components/chat.component';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n component: RouterOutletComponent,\r\n canActivate: [authGuard, permissionGuard],\r\n children: [\r\n {\r\n path: '',\r\n component: ReplaceableRouteContainerComponent,\r\n data: {\r\n requiredPolicy: 'Chat.Messaging',\r\n replaceableComponent: {\r\n defaultComponent: ChatComponent,\r\n key: 'Chat.ChatComponent',\r\n } as ReplaceableComponents.RouteData<ChatComponent>,\r\n title: 'Chat::Menu:Chat',\r\n },\r\n },\r\n ],\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule],\r\n})\r\nexport class ChatRoutingModule {}\r\n","import { CoreModule, LazyModuleFactory } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { ModuleWithProviders, NgModule, NgModuleFactory } from '@angular/core';\r\nimport { ChatRoutingModule } from './chat-routing.module';\r\nimport { ChatContactsComponent } from './components/chat-contacts.component';\r\nimport { ChatComponent } from './components/chat.component';\r\nimport { ConversationAvatarComponent } from './components/conversation-avatar.component';\r\nimport { ChatMessageTitleComponent } from './components/chat-message-title.component';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\n\r\nconst declarations = [\r\n ChatComponent,\r\n ChatContactsComponent,\r\n ConversationAvatarComponent,\r\n ChatMessageTitleComponent,\r\n];\r\n\r\n@NgModule({\r\n imports: [CoreModule, ThemeSharedModule, ChatRoutingModule, NgbDropdownModule, ...declarations],\r\n exports: [...declarations],\r\n})\r\nexport class ChatModule {\r\n static forChild(): ModuleWithProviders<ChatModule> {\r\n return {\r\n ngModule: ChatModule,\r\n providers: [],\r\n };\r\n }\r\n /**\r\n * @deprecated `ChatModule.forLazy()` is deprecated. You can use `createRoutes` **function** instead.\r\n */\r\n static forLazy(): NgModuleFactory<ChatModule> {\r\n return new LazyModuleFactory(ChatModule.forChild());\r\n }\r\n}\r\n","import { Routes } from '@angular/router';\r\nimport {\r\n RouterOutletComponent,\r\n authGuard,\r\n permissionGuard,\r\n ReplaceableRouteContainerComponent,\r\n ReplaceableComponents,\r\n} from '@abp/ng.core';\r\nimport { ChatComponent } from './components';\r\n\r\nexport function createRoutes(): Routes {\r\n return [\r\n {\r\n path: '',\r\n component: RouterOutletComponent,\r\n canActivate: [authGuard, permissionGuard],\r\n children: [\r\n {\r\n path: '',\r\n component: ReplaceableRouteContainerComponent,\r\n data: {\r\n requiredPolicy: 'Chat.Messaging',\r\n replaceableComponent: {\r\n defaultComponent: ChatComponent,\r\n key: 'Chat.ChatComponent',\r\n } as ReplaceableComponents.RouteData<ChatComponent>,\r\n title: 'Chat::Menu:Chat',\r\n },\r\n },\r\n ],\r\n },\r\n ];\r\n}\r\n","import { RestService } from '@abp/ng.core';\r\nimport { Injectable, inject } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { SendMessageInput } from '../models/send-message-input';\r\nimport { GetConversationInput } from '../models/get-conversation-input';\r\nimport { MarkConversationAsReadInput } from '../models/mark-conversation-as-read-input';\r\nimport { ChatConversationDto } from '../models/chat-conversation-dto';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ConversationService {\r\n private restService = inject(RestService);\r\n\r\n apiName = 'Chat';\r\n\r\n sendMessageByInput(body: SendMessageInput): Observable<void> {\r\n return this.restService.request(\r\n { url: '/api/chat/conversation/send-message', method: 'POST', body },\r\n { apiName: this.apiName }\r\n );\r\n }\r\n getConversationByInput(params = {} as GetConversationInput): Observable<ChatConversationDto> {\r\n return this.restService.request(\r\n { url: '/api/chat/conversation/conversation', method: 'GET', params },\r\n { apiName: this.apiName }\r\n );\r\n }\r\n markConversationAsReadByInput(body: MarkConversationAsReadInput): Observable<void> {\r\n return this.restService.request(\r\n { url: '/api/chat/conversation/mark-conversation-as-read', method: 'POST', body },\r\n { apiName: this.apiName }\r\n );\r\n }\r\n}\r\n","import { RestService } from '@abp/ng.core';\r\nimport { Injectable, inject } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { SendOnEnterSettingDto } from '../models/send-on-enter-setting-dto';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class SettingsService {\r\n private restService = inject(RestService);\r\n\r\n apiName = 'Chat';\r\n\r\n setSendOnEnterSettingByInput(body: SendOnEnterSettingDto): Observable<void> {\r\n return this.restService.request(\r\n { url: '/api/chat/settings/send-on-enter', method: 'POST', body },\r\n { apiName: this.apiName }\r\n );\r\n }\r\n}\r\n","import { ChatTargetUserInfo } from './chat-target-user-info';\r\nimport { ChatMessageDto } from './chat-message-dto';\r\nexport class ChatConversationDto {\r\n messages: ChatMessageDto[];\r\n targetUserInfo: ChatTargetUserInfo;\r\n\r\n constructor(initialValues: Partial<ChatConversationDto> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","import { ChatMessageSide } from '../enums/chat-message-side';\r\n\r\nexport class ChatMessageDto {\r\n message: string;\r\n messageDate: Date | string;\r\n isRead: boolean;\r\n readDate: Date | string;\r\n side: ChatMessageSide;\r\n\r\n constructor(initialValues: Partial<ChatMessageDto> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","\r\nexport class ChatTargetUserInfo {\r\n userId: string;\r\n name: string;\r\n surname: string;\r\n username: string;\r\n\r\n constructor(initialValues: Partial<ChatTargetUserInfo> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","\r\n\r\nimport { PagedResultRequestDto } from '@abp/ng.core';\r\n\r\nexport class GetConversationInput extends PagedResultRequestDto {\r\n targetUserId: string;\r\n skipCount: number;\r\n maxResultCount: number;\r\n\r\n constructor(initialValues: Partial<GetConversationInput> = {}) {\r\n super(initialValues);\r\n }\r\n}\r\n","\r\nexport class MarkConversationAsReadInput {\r\n targetUserId: string;\r\n\r\n constructor(initialValues: Partial<MarkConversationAsReadInput> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","\r\nexport class SendMessageInput {\r\n targetUserId: string;\r\n message: string;\r\n\r\n constructor(initialValues: Partial<SendMessageInput> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","\r\nexport class SendOnEnterSettingDto {\r\n sendOnEnter: boolean;\r\n\r\n constructor(initialValues: Partial<SendOnEnterSettingDto> = {}) {\r\n if (initialValues) {\r\n for (const key in initialValues) {\r\n if (initialValues.hasOwnProperty(key)) {\r\n this[key] = initialValues[key];\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ConversationService","debounceTime","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C,GAAG,CAAC,EAAE;oBACrC,IAAI,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC;gBAChC;YACF;QACF;IACF;AACD;;MCZY,gBAAgB,CAAA;AAI3B,IAAA,WAAA,CAAY,gBAA2C,EAAE,EAAA;QACvD,IAAI,aAAa,EAAE;AACjB,YAAA,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE;AAC/B,gBAAA,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACrC,IAAI,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC;gBAChC;YACF;QACF;IACF;AACD;;MCbY,qBAAqB,CAAA;AAGhC,IAAA,WAAA,CAAY,gBAAgD,EAAE,EAAA;QAC5D,IAAI,aAAa,EAAE;AACjB,YAAA,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE;AAC/B,gBAAA,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACrC,IAAI,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC;gBAChC;YACF;QACF;IACF;AACD;;ACbD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volo/abp.ng.chat",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0-rc.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@microsoft/signalr": "^7.0.0",
|
|
6
6
|
"tslib": "^2.3.0"
|
|
@@ -43,5 +43,6 @@
|
|
|
43
43
|
"default": "./fesm2022/volo-abp.ng.chat-proxy.mjs"
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
"sideEffects": false
|
|
46
|
+
"sideEffects": false,
|
|
47
|
+
"type": "module"
|
|
47
48
|
}
|