@trixwell/ngx-parl 3.0.1 → 4.1.0

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/README.md CHANGED
@@ -68,17 +68,18 @@ assets/ngx-parl/...
68
68
 
69
69
  ## Signal Data
70
70
 
71
- | Name | Type | Description |
72
- |:-------------:|:------------------:|:-----------------------------------------------------------------:|
73
- | header | boolean | Display the chat title with the name of the interlocutor |
74
- | theme | string | Choose a theme color (```primary``` or ```secondary```) |
75
- | language | string | Set language (```uk``` or ```en```). Default ```en``` |
76
- | messageList | ChatMessage[] | List of chat messages, user information |
77
- | messageUpdate | ChatMessage | Incoming message from external source (signal/subject/observable) |
78
- | messageAction | MessageActionEvent | Emits chat events: send, edit, delete |
79
- | loadHistory | boolean | Use scroll for load history |
80
- | incomingUser | string | User writing in messenger |
81
-
71
+ | Name | Type | Description |
72
+ |:-----------------:|:------------------:|:-----------------------------------------------------------------:|
73
+ | header | boolean | Display the chat title with the name of the interlocutor |
74
+ | theme | string | Choose a theme color (```primary``` or ```secondary```) |
75
+ | language | string | Set language (```uk``` or ```en```). Default ```en``` |
76
+ | messageList | ChatMessage[] | List of chat messages, user information |
77
+ | messageUpdate | ChatMessage | Incoming message from external source (signal/subject/observable) |
78
+ | messageAction | MessageActionEvent | Emits chat events: send, edit, delete |
79
+ | loadHistory | boolean | Use scroll for load history |
80
+ | incomingUser | string | User writing in messenger |
81
+ | transportType | string | Transport type label (Telegram, etc.) |
82
+ | transportTypeIcon | string | Path to transport icon (e.g. assets/ngx-parl/...) |
82
83
 
83
84
  ## Scrolling to the Bottom
84
85
 
@@ -111,6 +112,8 @@ export interface ChatMessageDTO {
111
112
  chat_id: number;
112
113
  cr_time: string; // ISO or 'YYYY-MM-DD HH:mm:ss'
113
114
  type: ChatMessageType;
115
+ transport_type?: string | null;
116
+ transport_type_icon?: string | null;
114
117
  user: string;
115
118
  content: string;
116
119
  avatar?: string | null;
@@ -139,6 +142,8 @@ export interface MessageActionEvent {
139
142
  [(messageList)]="messageList"
140
143
  [(messageUpdate)]="messageUpdate"
141
144
  [(messageAction)]="messageAction"
145
+ [transportType]="transportType()"
146
+ [transportTypeIcon]="transportTypeIcon()"
142
147
  [(isScrolledToTop)]="isScrolledToTop">
143
148
  </ngx-parl>
144
149
  ```