@muraai/mnl-chat 0.0.1-alpha-1d7531e → 0.0.1-alpha-32ca3fa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/ng-chat-friends-list/ng-chat-friends-list.component.mjs +32 -15
- package/esm2022/lib/components/ng-chat-window/ng-chat-window.component.mjs +32 -7
- package/esm2022/lib/core/chat-participant.mjs +1 -1
- package/esm2022/lib/material.module.mjs +10 -5
- package/fesm2022/muraai-mnl-chat.mjs +66 -20
- package/fesm2022/muraai-mnl-chat.mjs.map +1 -1
- package/lib/components/ng-chat-friends-list/ng-chat-friends-list.component.d.ts +1 -0
- package/lib/components/ng-chat-window/ng-chat-window.component.d.ts +2 -0
- package/lib/core/chat-participant.d.ts +12 -0
- package/lib/material.module.d.ts +2 -1
- package/package.json +1 -1
|
@@ -47,6 +47,7 @@ export declare class NgChatFriendsListComponent implements OnChanges, OnInit, On
|
|
|
47
47
|
onSearchInputChange(value: string): void;
|
|
48
48
|
initializeSearchInputListener(): void;
|
|
49
49
|
ngOnDestroy(): void;
|
|
50
|
+
getParticipantTooltip(participant: IChatParticipant): string;
|
|
50
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgChatFriendsListComponent, never>;
|
|
51
52
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgChatFriendsListComponent, "ng-chat-friends-list", never, { "participants": { "alias": "participants"; "required": false; }; "participantsResponse": { "alias": "participantsResponse"; "required": false; }; "participantsInteractedWith": { "alias": "participantsInteractedWith"; "required": false; }; "windows": { "alias": "windows"; "required": false; }; "userId": { "alias": "userId"; "required": false; }; "localization": { "alias": "localization"; "required": false; }; "shouldDisplay": { "alias": "shouldDisplay"; "required": false; }; "isCollapsed": { "alias": "isCollapsed"; "required": false; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "currentActiveOption": { "alias": "currentActiveOption"; "required": false; }; "hideFriendsList": { "alias": "hideFriendsList"; "required": false; }; }, { "onParticipantClicked": "onParticipantClicked"; "onOptionPromptCanceled": "onOptionPromptCanceled"; "onOptionPromptConfirmed": "onOptionPromptConfirmed"; "onCloseWindowClick": "onCloseWindowClick"; "searchInputChanged": "searchInputChanged"; }, never, never, false, never>;
|
|
52
53
|
}
|
|
@@ -60,6 +60,8 @@ export declare class NgChatWindowComponent {
|
|
|
60
60
|
onChatWindowClicked(window: Window): void;
|
|
61
61
|
private clearInUseFileUploader;
|
|
62
62
|
onFileChosen(window: Window): void;
|
|
63
|
+
getParticipantTooltip(participant: IChatParticipant): string;
|
|
64
|
+
getMetadataDisplay(participant: IChatParticipant): string;
|
|
63
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgChatWindowComponent, never>;
|
|
64
66
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgChatWindowComponent, "ng-chat-window", never, { "fileUploadAdapter": { "alias": "fileUploadAdapter"; "required": false; }; "window": { "alias": "window"; "required": false; }; "userId": { "alias": "userId"; "required": false; }; "localization": { "alias": "localization"; "required": false; }; "showOptions": { "alias": "showOptions"; "required": false; }; "emojisEnabled": { "alias": "emojisEnabled"; "required": false; }; "linkfyEnabled": { "alias": "linkfyEnabled"; "required": false; }; "showMessageDate": { "alias": "showMessageDate"; "required": false; }; "messageDatePipeFormat": { "alias": "messageDatePipeFormat"; "required": false; }; "hasPagedHistory": { "alias": "hasPagedHistory"; "required": false; }; }, { "onChatWindowClosed": "onChatWindowClosed"; "onMessagesSeen": "onMessagesSeen"; "onMessageSent": "onMessageSent"; "onTabTriggered": "onTabTriggered"; "onOptionTriggered": "onOptionTriggered"; "onLoadHistoryTriggered": "onLoadHistoryTriggered"; }, never, never, false, never>;
|
|
65
67
|
}
|
|
@@ -6,4 +6,16 @@ export interface IChatParticipant {
|
|
|
6
6
|
readonly status: ChatParticipantStatus;
|
|
7
7
|
readonly avatar: string | null;
|
|
8
8
|
readonly displayName: string;
|
|
9
|
+
readonly metadata?: IMetadata;
|
|
10
|
+
readonly showMetadataInTitle?: IMetadataInTitle;
|
|
11
|
+
}
|
|
12
|
+
export interface IMetadata {
|
|
13
|
+
primary?: string;
|
|
14
|
+
secondary?: string;
|
|
15
|
+
tertiary?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IMetadataInTitle {
|
|
18
|
+
primary?: boolean;
|
|
19
|
+
secondary?: boolean;
|
|
20
|
+
tertiary?: boolean;
|
|
9
21
|
}
|
package/lib/material.module.d.ts
CHANGED
|
@@ -8,9 +8,10 @@ import * as i5 from "@angular/forms";
|
|
|
8
8
|
import * as i6 from "@angular/material/menu";
|
|
9
9
|
import * as i7 from "@angular/material/list";
|
|
10
10
|
import * as i8 from "@angular/material/card";
|
|
11
|
+
import * as i9 from "@angular/material/tooltip";
|
|
11
12
|
export declare function modules(): (typeof MatButtonModule)[];
|
|
12
13
|
export declare class ChatMaterialModule {
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatMaterialModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ChatMaterialModule, never, [typeof i1.MatButtonModule, typeof i2.MatFormFieldModule, typeof i3.MatIconModule, typeof i4.MatInputModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.MatMenuModule, typeof i7.MatListModule, typeof i8.MatCardModule], [typeof i1.MatButtonModule, typeof i2.MatFormFieldModule, typeof i3.MatIconModule, typeof i4.MatInputModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.MatMenuModule, typeof i7.MatListModule, typeof i8.MatCardModule]>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ChatMaterialModule, never, [typeof i1.MatButtonModule, typeof i2.MatFormFieldModule, typeof i3.MatIconModule, typeof i4.MatInputModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.MatMenuModule, typeof i7.MatListModule, typeof i8.MatCardModule, typeof i9.MatTooltipModule], [typeof i1.MatButtonModule, typeof i2.MatFormFieldModule, typeof i3.MatIconModule, typeof i4.MatInputModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.MatMenuModule, typeof i7.MatListModule, typeof i8.MatCardModule, typeof i9.MatTooltipModule]>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<ChatMaterialModule>;
|
|
16
17
|
}
|