@mobilon-dev/chotto 0.3.39 → 0.3.41
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/dist/chotto.css +1 -1
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +174 -135
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +25 -0
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +18 -0
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +21 -0
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +25 -0
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/apps/data/chats.d.ts +57 -5
- package/dist/types/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.d.ts +2 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.d.ts +2 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.d.ts +2 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.d.ts +2 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/styles/types.d.ts +24 -6
- package/dist/types/components/2_chatlist_elements/ChatItem/types.d.ts +25 -1
- package/package.json +1 -1
|
@@ -184,7 +184,15 @@ export declare const chats: ({
|
|
|
184
184
|
chatId: number;
|
|
185
185
|
name: string;
|
|
186
186
|
countUnread: number;
|
|
187
|
-
lastMessage:
|
|
187
|
+
lastMessage: {
|
|
188
|
+
type: string;
|
|
189
|
+
data: {
|
|
190
|
+
text: string;
|
|
191
|
+
url: string;
|
|
192
|
+
filename: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
'lastMessage.status': string;
|
|
188
196
|
'lastActivity.time': string;
|
|
189
197
|
'lastActivity.timestamp': string;
|
|
190
198
|
avatar: string;
|
|
@@ -218,7 +226,6 @@ export declare const chats: ({
|
|
|
218
226
|
};
|
|
219
227
|
isFixedBottom?: undefined;
|
|
220
228
|
status?: undefined;
|
|
221
|
-
'lastMessage.status'?: undefined;
|
|
222
229
|
typing?: undefined;
|
|
223
230
|
dialogsExpanded?: undefined;
|
|
224
231
|
dialogs?: undefined;
|
|
@@ -230,7 +237,14 @@ export declare const chats: ({
|
|
|
230
237
|
chatId: number;
|
|
231
238
|
name: string;
|
|
232
239
|
countUnread: number;
|
|
233
|
-
lastMessage:
|
|
240
|
+
lastMessage: {
|
|
241
|
+
type: string;
|
|
242
|
+
data: {
|
|
243
|
+
text: string;
|
|
244
|
+
url: string;
|
|
245
|
+
filename: string;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
234
248
|
'lastActivity.time': string;
|
|
235
249
|
'lastActivity.timestamp': string;
|
|
236
250
|
'lastMessage.status': string;
|
|
@@ -238,7 +252,6 @@ export declare const chats: ({
|
|
|
238
252
|
action: string;
|
|
239
253
|
title: string;
|
|
240
254
|
}[];
|
|
241
|
-
typing: boolean;
|
|
242
255
|
metadata: string;
|
|
243
256
|
contact: {
|
|
244
257
|
attributes: ({
|
|
@@ -266,6 +279,7 @@ export declare const chats: ({
|
|
|
266
279
|
avatar?: undefined;
|
|
267
280
|
isFixedBottom?: undefined;
|
|
268
281
|
status?: undefined;
|
|
282
|
+
typing?: undefined;
|
|
269
283
|
dialogsExpanded?: undefined;
|
|
270
284
|
dialogs?: undefined;
|
|
271
285
|
colorUnread?: undefined;
|
|
@@ -277,7 +291,14 @@ export declare const chats: ({
|
|
|
277
291
|
name: string;
|
|
278
292
|
avatar: string;
|
|
279
293
|
countUnread: number;
|
|
280
|
-
lastMessage:
|
|
294
|
+
lastMessage: {
|
|
295
|
+
type: string;
|
|
296
|
+
data: {
|
|
297
|
+
text: string;
|
|
298
|
+
url: string;
|
|
299
|
+
filename: string;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
281
302
|
'lastActivity.time': string;
|
|
282
303
|
'lastActivity.timestamp': string;
|
|
283
304
|
actions: {
|
|
@@ -335,6 +356,37 @@ export declare const chats: ({
|
|
|
335
356
|
isFixedTop?: undefined;
|
|
336
357
|
statusMessage?: undefined;
|
|
337
358
|
isFixed?: undefined;
|
|
359
|
+
} | {
|
|
360
|
+
chatId: number;
|
|
361
|
+
name: string;
|
|
362
|
+
countUnread: number;
|
|
363
|
+
lastMessage: {
|
|
364
|
+
type: string;
|
|
365
|
+
data: {
|
|
366
|
+
text: string;
|
|
367
|
+
url: string;
|
|
368
|
+
filename: string;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
'lastActivity.time': string;
|
|
372
|
+
'lastActivity.timestamp': string;
|
|
373
|
+
'lastMessage.status': string;
|
|
374
|
+
actions: {
|
|
375
|
+
action: string;
|
|
376
|
+
title: string;
|
|
377
|
+
}[];
|
|
378
|
+
metadata: string;
|
|
379
|
+
avatar?: undefined;
|
|
380
|
+
isFixedBottom?: undefined;
|
|
381
|
+
status?: undefined;
|
|
382
|
+
typing?: undefined;
|
|
383
|
+
dialogsExpanded?: undefined;
|
|
384
|
+
dialogs?: undefined;
|
|
385
|
+
contact?: undefined;
|
|
386
|
+
colorUnread?: undefined;
|
|
387
|
+
isFixedTop?: undefined;
|
|
388
|
+
statusMessage?: undefined;
|
|
389
|
+
isFixed?: undefined;
|
|
338
390
|
} | {
|
|
339
391
|
chatId: number;
|
|
340
392
|
name: string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -110,18 +110,36 @@ export interface ChatItemThemeCSSVariables {
|
|
|
110
110
|
'--chotto-chatitem-name-text-color': string;
|
|
111
111
|
/** Переполнение последнего сообщения */
|
|
112
112
|
'--chotto-chatitem-last-message-overflow': string;
|
|
113
|
-
/** Обрезка текста последнего сообщения */
|
|
114
|
-
'--chotto-chatitem-last-message-text-overflow': string;
|
|
115
113
|
/** Отображение последнего сообщения */
|
|
116
114
|
'--chotto-chatitem-last-message-display': string;
|
|
117
|
-
/**
|
|
118
|
-
'--chotto-chatitem-last-message-
|
|
119
|
-
/**
|
|
120
|
-
'--chotto-chatitem-last-message-
|
|
115
|
+
/** Выравнивание элементов последнего сообщения */
|
|
116
|
+
'--chotto-chatitem-last-message-align-items': string;
|
|
117
|
+
/** Промежуток между элементами последнего сообщения */
|
|
118
|
+
'--chotto-chatitem-last-message-gap': string;
|
|
121
119
|
/** Размер шрифта последнего сообщения */
|
|
122
120
|
'--chotto-chatitem-last-message-font-size': string;
|
|
123
121
|
/** Цвет текста последнего сообщения */
|
|
124
122
|
'--chotto-chatitem-last-message-text-color': string;
|
|
123
|
+
/** Переполнение текста последнего сообщения (скрытие) */
|
|
124
|
+
'--chotto-chatitem-last-message-text-overflow-hidden': string;
|
|
125
|
+
/** Обрезка текста последнего сообщения */
|
|
126
|
+
'--chotto-chatitem-last-message-text-overflow': string;
|
|
127
|
+
/** Отображение текста последнего сообщения */
|
|
128
|
+
'--chotto-chatitem-last-message-text-display': string;
|
|
129
|
+
/** Flex-коэффициент текста последнего сообщения */
|
|
130
|
+
'--chotto-chatitem-last-message-text-flex': string;
|
|
131
|
+
/** Минимальная ширина текста последнего сообщения */
|
|
132
|
+
'--chotto-chatitem-last-message-text-min-width': string;
|
|
133
|
+
/** Перенос строк текста последнего сообщения */
|
|
134
|
+
'--chotto-chatitem-last-message-text-white-space': string;
|
|
135
|
+
/** Максимальная ширина текста последнего сообщения */
|
|
136
|
+
'--chotto-chatitem-last-message-text-max-width': string;
|
|
137
|
+
/** Коэффициент сжатия иконки сообщения */
|
|
138
|
+
'--chotto-chatitem-message-icon-flex-shrink': string;
|
|
139
|
+
/** Размер иконки сообщения */
|
|
140
|
+
'--chotto-chatitem-message-icon-size': string;
|
|
141
|
+
/** Цвет иконки сообщения */
|
|
142
|
+
'--chotto-chatitem-message-icon-color': string;
|
|
125
143
|
/** Позиционирование контейнера деталей */
|
|
126
144
|
'--chotto-chatitem-details-container-position': string;
|
|
127
145
|
/** Отображение контейнера деталей */
|
|
@@ -19,12 +19,36 @@ export interface IChatDialog {
|
|
|
19
19
|
isSelected: boolean;
|
|
20
20
|
colorUnread?: string;
|
|
21
21
|
}
|
|
22
|
+
export interface ILastMessageObject {
|
|
23
|
+
_id?: string;
|
|
24
|
+
branchId?: string;
|
|
25
|
+
contactId?: string;
|
|
26
|
+
dialogId?: string;
|
|
27
|
+
sessionId?: string;
|
|
28
|
+
messageId?: string;
|
|
29
|
+
channelId?: string;
|
|
30
|
+
senderId?: string;
|
|
31
|
+
type?: string;
|
|
32
|
+
data?: {
|
|
33
|
+
text?: string;
|
|
34
|
+
url?: string;
|
|
35
|
+
filename?: string;
|
|
36
|
+
};
|
|
37
|
+
timestampms?: number;
|
|
38
|
+
channel?: {
|
|
39
|
+
_id?: string;
|
|
40
|
+
branchId?: string;
|
|
41
|
+
channelId?: string;
|
|
42
|
+
title?: string;
|
|
43
|
+
status?: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
22
46
|
export interface IChatItem {
|
|
23
47
|
chatId: number;
|
|
24
48
|
name: string;
|
|
25
49
|
avatar?: string;
|
|
26
50
|
countUnread: number;
|
|
27
|
-
lastMessage: string;
|
|
51
|
+
lastMessage: string | ILastMessageObject;
|
|
28
52
|
'lastActivity.time': string;
|
|
29
53
|
'lastActivity.timestamp': string;
|
|
30
54
|
isFixedBottom: boolean;
|