@uzum-tech/ui 2.3.3 → 2.3.4

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.
@@ -1,3 +1,4 @@
1
+ import { useTheme } from "../../_mixins/index.mjs";
1
2
  import { createInjectionKey } from "../../_utils/index.mjs";
2
3
  import { MessageBubbleServiceVariant } from "../../message-bubble/index.mjs";
3
4
  export var MessageStatus;
@@ -38,4 +39,246 @@ export const markTypeToServiceVariantMap = {
38
39
  [ChatMarkType.SYSTEM]: MessageBubbleServiceVariant.SYSTEM,
39
40
  [ChatMarkType.EVENT]: MessageBubbleServiceVariant.EVENT,
40
41
  [ChatMarkType.DIVIDER]: MessageBubbleServiceVariant.DIVIDER
41
- };
42
+ };
43
+ export const chatProps = Object.assign(Object.assign({}, useTheme.props), {
44
+ chatItems: {
45
+ type: Array,
46
+ default: () => []
47
+ },
48
+ selectedChatId: {
49
+ type: [String, Number],
50
+ default: undefined
51
+ },
52
+ inputValue: {
53
+ type: String,
54
+ default: undefined
55
+ },
56
+ messages: {
57
+ type: Array,
58
+ default: () => []
59
+ },
60
+ typingChatIds: {
61
+ type: Array,
62
+ default: () => []
63
+ },
64
+ disabled: {
65
+ type: Boolean,
66
+ default: false
67
+ },
68
+ listEmptyProps: {
69
+ type: Object,
70
+ default: undefined
71
+ },
72
+ listHeaderTitle: {
73
+ type: [String, Function],
74
+ default: 'Chats'
75
+ },
76
+ listHeaderActions: {
77
+ type: Array,
78
+ default: () => []
79
+ },
80
+ listHeaderButtonProps: {
81
+ type: Object,
82
+ default: undefined
83
+ },
84
+ listHeaderIconProps: {
85
+ type: Object,
86
+ default: undefined
87
+ },
88
+ listItemAvatarProps: {
89
+ type: Object,
90
+ default: undefined
91
+ },
92
+ listItemBadgeProps: {
93
+ type: Object,
94
+ default: undefined
95
+ },
96
+ headerTitle: {
97
+ type: [String, Function],
98
+ default: undefined
99
+ },
100
+ headerActions: {
101
+ type: Array,
102
+ default: () => []
103
+ },
104
+ headerButtonProps: {
105
+ type: Object,
106
+ default: undefined
107
+ },
108
+ headerIconProps: {
109
+ type: Object,
110
+ default: undefined
111
+ },
112
+ headerShareButtonProps: {
113
+ type: Object,
114
+ default: undefined
115
+ },
116
+ headerProfileButtonProps: {
117
+ type: Object,
118
+ default: undefined
119
+ },
120
+ headerCloseButtonProps: {
121
+ type: Object,
122
+ default: undefined
123
+ },
124
+ headerShareIconProps: {
125
+ type: Object,
126
+ default: undefined
127
+ },
128
+ headerProfileIconProps: {
129
+ type: Object,
130
+ default: undefined
131
+ },
132
+ messageSenderAvatarProps: {
133
+ type: Object,
134
+ default: undefined
135
+ },
136
+ messageUploadProps: {
137
+ type: Object,
138
+ default: undefined
139
+ },
140
+ messageButtonProps: {
141
+ type: Object,
142
+ default: undefined
143
+ },
144
+ footerInputProps: {
145
+ type: Object,
146
+ default: undefined
147
+ },
148
+ footerButtonProps: {
149
+ type: Object,
150
+ default: undefined
151
+ },
152
+ footerUploadProps: {
153
+ type: Object,
154
+ default: undefined
155
+ },
156
+ footerUploadTriggerProps: {
157
+ type: Object,
158
+ default: undefined
159
+ },
160
+ footerIconProps: {
161
+ type: Object,
162
+ default: undefined
163
+ },
164
+ footerSuffixIconProps: {
165
+ type: Object,
166
+ default: undefined
167
+ },
168
+ emptyProps: {
169
+ type: Object,
170
+ default: undefined
171
+ },
172
+ retryText: {
173
+ type: String,
174
+ default: undefined
175
+ },
176
+ typingText: {
177
+ type: String,
178
+ default: undefined
179
+ },
180
+ closeButtonText: {
181
+ type: String,
182
+ default: undefined
183
+ },
184
+ shareButtonTooltip: {
185
+ type: String,
186
+ default: undefined
187
+ },
188
+ profileButtonTooltip: {
189
+ type: String,
190
+ default: undefined
191
+ },
192
+ unreadNotificationText: {
193
+ type: String,
194
+ default: undefined
195
+ },
196
+ chatItemsLoading: {
197
+ type: Boolean,
198
+ default: false
199
+ },
200
+ chatItemsLoadingCount: {
201
+ type: Number,
202
+ default: 10
203
+ },
204
+ messagesLoading: {
205
+ type: Boolean,
206
+ default: false
207
+ },
208
+ messagesLoadingCount: {
209
+ type: Number,
210
+ default: 10
211
+ },
212
+ height: {
213
+ type: [String, Number],
214
+ default: 800
215
+ },
216
+ onChatSelect: {
217
+ type: Function,
218
+ default: undefined
219
+ },
220
+ onMessageRetry: {
221
+ type: Function,
222
+ default: undefined
223
+ },
224
+ bubbleActions: {
225
+ type: Array,
226
+ default: undefined
227
+ },
228
+ onChatClose: {
229
+ type: Function,
230
+ default: undefined
231
+ },
232
+ onChatShare: {
233
+ type: Function,
234
+ default: undefined
235
+ },
236
+ onUserProfile: {
237
+ type: Function,
238
+ default: undefined
239
+ },
240
+ onAttachmentUpload: {
241
+ type: Function,
242
+ default: undefined
243
+ },
244
+ onAttachmentDownload: {
245
+ type: Function,
246
+ default: undefined
247
+ },
248
+ onFilterChange: {
249
+ type: Function,
250
+ default: undefined
251
+ },
252
+ onFooterInputChange: {
253
+ type: Function,
254
+ default: undefined
255
+ },
256
+ onNetworkError: {
257
+ type: Function,
258
+ default: undefined
259
+ },
260
+ onUploadError: {
261
+ type: Function,
262
+ default: undefined
263
+ },
264
+ onSendError: {
265
+ type: Function,
266
+ default: undefined
267
+ },
268
+ onChatItemsScrollToTop: {
269
+ type: Function,
270
+ default: undefined
271
+ },
272
+ onChatItemsScrollToBottom: {
273
+ type: Function,
274
+ default: undefined
275
+ },
276
+ onMessagesScrollToTop: {
277
+ type: Function,
278
+ default: undefined
279
+ },
280
+ onMessagesScrollToBottom: {
281
+ type: Function,
282
+ default: undefined
283
+ }
284
+ });