@uzum-tech/ui 1.9.0 → 1.10.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/dist/index.js +5789 -1014
- package/dist/index.prod.js +12 -3
- package/es/_internal/scrollbar/src/Scrollbar.js +19 -38
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/cascader/src/Cascader.d.ts +1 -1
- package/es/chat/index.d.ts +1 -1
- package/es/chat/src/Chat.d.ts +233 -11
- package/es/chat/src/Chat.js +73 -22
- package/es/chat/src/ChatParts/ChatAttachment.js +14 -12
- package/es/chat/src/ChatParts/MainArea.d.ts +1 -0
- package/es/chat/src/ChatParts/MainArea.js +95 -57
- package/es/chat/src/ChatParts/Sidebar.d.ts +920 -0
- package/es/chat/src/ChatParts/Sidebar.js +63 -12
- package/es/chat/src/interface.d.ts +24 -3
- package/es/chat/src/styles/index.cssr.js +13 -2
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/crop/index.d.ts +3 -0
- package/es/crop/index.js +1 -0
- package/es/crop/src/Crop.d.ts +222 -0
- package/es/crop/src/Crop.js +157 -0
- package/es/crop/src/interface.d.ts +6 -0
- package/es/crop/src/interface.js +7 -0
- package/es/crop/src/styles/index.cssr.d.ts +2 -0
- package/es/crop/src/styles/index.cssr.js +333 -0
- package/es/crop/styles/_common.d.ts +4 -0
- package/es/crop/styles/_common.js +3 -0
- package/es/crop/styles/dark.d.ts +3 -0
- package/es/crop/styles/dark.js +9 -0
- package/es/crop/styles/index.d.ts +3 -0
- package/es/crop/styles/index.js +2 -0
- package/es/crop/styles/light.d.ts +14 -0
- package/es/crop/styles/light.js +14 -0
- package/es/date-picker/src/DatePicker.d.ts +1308 -43
- package/es/date-picker/src/DatePicker.js +54 -29
- package/es/date-picker/src/interface.d.ts +1 -0
- package/es/date-picker/src/panel/date.d.ts +141 -0
- package/es/date-picker/src/panel/daterange.d.ts +141 -0
- package/es/date-picker/src/panel/datetime.d.ts +141 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +141 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +283 -1
- package/es/date-picker/src/panel/panelMonthContent.d.ts +141 -0
- package/es/date-picker/src/panel/panelYear.d.ts +283 -1
- package/es/date-picker/src/panel/panelYearContent.d.ts +141 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +141 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +141 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +141 -0
- package/es/date-picker/styles/dark.js +3 -1
- package/es/date-picker/styles/light.d.ts +123 -0
- package/es/date-picker/styles/light.js +3 -1
- package/es/descriptions/src/Descriptions.d.ts +30 -0
- package/es/descriptions/src/Descriptions.js +18 -10
- package/es/dynamic-tags/src/DynamicTags.d.ts +30 -0
- package/es/dynamic-tags/styles/light.d.ts +3 -0
- package/es/infinite-scroll/src/InfiniteScroll.js +3 -6
- package/es/input/src/Input.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +1 -1
- package/es/locales/common/arDZ.js +2 -0
- package/es/locales/common/deDE.js +2 -0
- package/es/locales/common/enGB.js +2 -0
- package/es/locales/common/enUS.d.ts +2 -0
- package/es/locales/common/enUS.js +2 -0
- package/es/locales/common/eo.js +2 -0
- package/es/locales/common/esAR.js +2 -0
- package/es/locales/common/faIR.js +2 -0
- package/es/locales/common/frFR.js +2 -0
- package/es/locales/common/idID.js +2 -0
- package/es/locales/common/itIT.js +2 -0
- package/es/locales/common/jaJP.js +2 -0
- package/es/locales/common/koKR.js +2 -0
- package/es/locales/common/nbNO.js +2 -0
- package/es/locales/common/nlNL.js +2 -0
- package/es/locales/common/plPL.js +2 -0
- package/es/locales/common/ptBR.js +2 -0
- package/es/locales/common/ruRU.js +2 -0
- package/es/locales/common/skSK.js +2 -0
- package/es/locales/common/svSE.js +2 -0
- package/es/locales/common/thTH.js +2 -0
- package/es/locales/common/trTR.js +2 -0
- package/es/locales/common/ukUA.js +2 -0
- package/es/locales/common/viVN.js +2 -0
- package/es/locales/common/zhCN.js +2 -0
- package/es/locales/common/zhTW.js +2 -0
- package/es/modal-fullscreen/index.d.ts +2 -0
- package/es/modal-fullscreen/index.js +1 -0
- package/es/modal-fullscreen/src/ModalFull.d.ts +953 -0
- package/es/modal-fullscreen/src/ModalFull.js +250 -0
- package/es/modal-fullscreen/src/interface.d.ts +0 -0
- package/es/modal-fullscreen/src/interface.js +1 -0
- package/es/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
- package/es/modal-fullscreen/src/styles/index.cssr.js +85 -0
- package/es/modal-fullscreen/styles/_common.d.ts +12 -0
- package/es/modal-fullscreen/styles/_common.js +11 -0
- package/es/modal-fullscreen/styles/dark.d.ts +3 -0
- package/es/modal-fullscreen/styles/dark.js +14 -0
- package/es/modal-fullscreen/styles/index.d.ts +3 -0
- package/es/modal-fullscreen/styles/index.js +2 -0
- package/es/modal-fullscreen/styles/light.d.ts +100 -0
- package/es/modal-fullscreen/styles/light.js +19 -0
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/select/src/Select.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/tag/index.d.ts +2 -0
- package/es/tag/index.js +1 -0
- package/es/tag/src/Tag.d.ts +40 -0
- package/es/tag/src/Tag.js +3 -0
- package/es/tag/src/TagGroup.d.ts +644 -0
- package/es/tag/src/TagGroup.js +109 -0
- package/es/tag/src/styles/index.cssr.d.ts +1 -0
- package/es/tag/src/styles/index.cssr.js +8 -1
- package/es/tag/styles/light.d.ts +3 -0
- package/es/tag/styles/light.js +5 -0
- package/es/themes/dark.js +5 -1
- package/es/themes/light.js +5 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/index.d.ts +1 -1
- package/es/virtual-list/index.js +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +19 -38
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/cascader/src/Cascader.d.ts +1 -1
- package/lib/chat/index.d.ts +1 -1
- package/lib/chat/src/Chat.d.ts +233 -11
- package/lib/chat/src/Chat.js +73 -22
- package/lib/chat/src/ChatParts/ChatAttachment.js +14 -12
- package/lib/chat/src/ChatParts/MainArea.d.ts +1 -0
- package/lib/chat/src/ChatParts/MainArea.js +94 -56
- package/lib/chat/src/ChatParts/Sidebar.d.ts +920 -0
- package/lib/chat/src/ChatParts/Sidebar.js +62 -11
- package/lib/chat/src/interface.d.ts +24 -3
- package/lib/chat/src/styles/index.cssr.js +13 -2
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/crop/index.d.ts +3 -0
- package/lib/crop/index.js +9 -0
- package/lib/crop/src/Crop.d.ts +222 -0
- package/lib/crop/src/Crop.js +163 -0
- package/lib/crop/src/interface.d.ts +6 -0
- package/lib/crop/src/interface.js +10 -0
- package/lib/crop/src/styles/index.cssr.d.ts +2 -0
- package/lib/crop/src/styles/index.cssr.js +338 -0
- package/lib/crop/styles/_common.d.ts +4 -0
- package/lib/crop/styles/_common.js +5 -0
- package/lib/crop/styles/dark.d.ts +3 -0
- package/lib/crop/styles/dark.js +11 -0
- package/lib/crop/styles/index.d.ts +3 -0
- package/lib/crop/styles/index.js +10 -0
- package/lib/crop/styles/light.d.ts +14 -0
- package/lib/crop/styles/light.js +21 -0
- package/lib/date-picker/src/DatePicker.d.ts +1308 -43
- package/lib/date-picker/src/DatePicker.js +53 -28
- package/lib/date-picker/src/interface.d.ts +1 -0
- package/lib/date-picker/src/panel/date.d.ts +141 -0
- package/lib/date-picker/src/panel/daterange.d.ts +141 -0
- package/lib/date-picker/src/panel/datetime.d.ts +141 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +141 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +283 -1
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +141 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +283 -1
- package/lib/date-picker/src/panel/panelYearContent.d.ts +141 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +141 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +141 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +141 -0
- package/lib/date-picker/styles/dark.js +3 -1
- package/lib/date-picker/styles/light.d.ts +123 -0
- package/lib/date-picker/styles/light.js +3 -1
- package/lib/descriptions/src/Descriptions.d.ts +30 -0
- package/lib/descriptions/src/Descriptions.js +18 -10
- package/lib/dynamic-tags/src/DynamicTags.d.ts +30 -0
- package/lib/dynamic-tags/styles/light.d.ts +3 -0
- package/lib/infinite-scroll/src/InfiniteScroll.js +3 -6
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +1 -1
- package/lib/locales/common/arDZ.js +2 -0
- package/lib/locales/common/deDE.js +2 -0
- package/lib/locales/common/enGB.js +2 -0
- package/lib/locales/common/enUS.d.ts +2 -0
- package/lib/locales/common/enUS.js +2 -0
- package/lib/locales/common/eo.js +2 -0
- package/lib/locales/common/esAR.js +2 -0
- package/lib/locales/common/faIR.js +2 -0
- package/lib/locales/common/frFR.js +2 -0
- package/lib/locales/common/idID.js +2 -0
- package/lib/locales/common/itIT.js +2 -0
- package/lib/locales/common/jaJP.js +2 -0
- package/lib/locales/common/koKR.js +2 -0
- package/lib/locales/common/nbNO.js +2 -0
- package/lib/locales/common/nlNL.js +2 -0
- package/lib/locales/common/plPL.js +2 -0
- package/lib/locales/common/ptBR.js +2 -0
- package/lib/locales/common/ruRU.js +2 -0
- package/lib/locales/common/skSK.js +2 -0
- package/lib/locales/common/svSE.js +2 -0
- package/lib/locales/common/thTH.js +2 -0
- package/lib/locales/common/trTR.js +2 -0
- package/lib/locales/common/ukUA.js +2 -0
- package/lib/locales/common/viVN.js +2 -0
- package/lib/locales/common/zhCN.js +2 -0
- package/lib/locales/common/zhTW.js +2 -0
- package/lib/modal-fullscreen/index.d.ts +2 -0
- package/lib/modal-fullscreen/index.js +9 -0
- package/lib/modal-fullscreen/src/ModalFull.d.ts +953 -0
- package/lib/modal-fullscreen/src/ModalFull.js +256 -0
- package/lib/modal-fullscreen/src/interface.d.ts +0 -0
- package/lib/modal-fullscreen/src/interface.js +1 -0
- package/lib/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
- package/lib/modal-fullscreen/src/styles/index.cssr.js +90 -0
- package/lib/modal-fullscreen/styles/_common.d.ts +12 -0
- package/lib/modal-fullscreen/styles/_common.js +13 -0
- package/lib/modal-fullscreen/styles/dark.d.ts +3 -0
- package/lib/modal-fullscreen/styles/dark.js +16 -0
- package/lib/modal-fullscreen/styles/index.d.ts +3 -0
- package/lib/modal-fullscreen/styles/index.js +10 -0
- package/lib/modal-fullscreen/styles/light.d.ts +100 -0
- package/lib/modal-fullscreen/styles/light.js +26 -0
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/tag/index.d.ts +2 -0
- package/lib/tag/index.js +3 -1
- package/lib/tag/src/Tag.d.ts +40 -0
- package/lib/tag/src/Tag.js +3 -0
- package/lib/tag/src/TagGroup.d.ts +644 -0
- package/lib/tag/src/TagGroup.js +112 -0
- package/lib/tag/src/styles/index.cssr.d.ts +1 -0
- package/lib/tag/src/styles/index.cssr.js +9 -1
- package/lib/tag/styles/light.d.ts +3 -0
- package/lib/tag/styles/light.js +5 -0
- package/lib/themes/dark.js +5 -1
- package/lib/themes/light.js +5 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/index.d.ts +1 -1
- package/lib/virtual-list/index.js +2 -2
- package/package.json +4 -3
- package/volar.d.ts +4 -0
- package/web-types.json +472 -4
|
@@ -105,9 +105,8 @@ const Scrollbar = defineComponent({
|
|
|
105
105
|
}
|
|
106
106
|
else {
|
|
107
107
|
const heightDiff = contentHeight - containerHeight;
|
|
108
|
-
if (!heightDiff)
|
|
108
|
+
if (!heightDiff)
|
|
109
109
|
return 0;
|
|
110
|
-
}
|
|
111
110
|
return ((containerScrollTop / heightDiff) * (yRailSize - yBarSizeRef.value));
|
|
112
111
|
}
|
|
113
112
|
});
|
|
@@ -126,9 +125,8 @@ const Scrollbar = defineComponent({
|
|
|
126
125
|
}
|
|
127
126
|
else {
|
|
128
127
|
const widthDiff = contentWidth - containerWidth;
|
|
129
|
-
if (!widthDiff)
|
|
128
|
+
if (!widthDiff)
|
|
130
129
|
return 0;
|
|
131
|
-
}
|
|
132
130
|
return ((containerScrollLeft / widthDiff) * (xRailSize - xBarSizeRef.value));
|
|
133
131
|
}
|
|
134
132
|
});
|
|
@@ -159,22 +157,19 @@ const Scrollbar = defineComponent({
|
|
|
159
157
|
});
|
|
160
158
|
const mergedContainerRef = computed(() => {
|
|
161
159
|
const { container } = props;
|
|
162
|
-
if (container)
|
|
160
|
+
if (container)
|
|
163
161
|
return container();
|
|
164
|
-
}
|
|
165
162
|
return containerRef.value;
|
|
166
163
|
});
|
|
167
164
|
const mergedContentRef = computed(() => {
|
|
168
165
|
const { content } = props;
|
|
169
|
-
if (content)
|
|
166
|
+
if (content)
|
|
170
167
|
return content();
|
|
171
|
-
}
|
|
172
168
|
return contentRef.value;
|
|
173
169
|
});
|
|
174
170
|
const scrollTo = (options, y) => {
|
|
175
|
-
if (!props.scrollable)
|
|
171
|
+
if (!props.scrollable)
|
|
176
172
|
return;
|
|
177
|
-
}
|
|
178
173
|
if (typeof options === 'number') {
|
|
179
174
|
scrollToPosition(options, y !== null && y !== void 0 ? y : 0, 0, false, 'auto');
|
|
180
175
|
return;
|
|
@@ -208,15 +203,13 @@ const Scrollbar = defineComponent({
|
|
|
208
203
|
});
|
|
209
204
|
// methods
|
|
210
205
|
const handleContentResize = () => {
|
|
211
|
-
if (activateState.isDeactivated)
|
|
206
|
+
if (activateState.isDeactivated)
|
|
212
207
|
return;
|
|
213
|
-
}
|
|
214
208
|
sync();
|
|
215
209
|
};
|
|
216
210
|
const handleContainerResize = (e) => {
|
|
217
|
-
if (activateState.isDeactivated)
|
|
211
|
+
if (activateState.isDeactivated)
|
|
218
212
|
return;
|
|
219
|
-
}
|
|
220
213
|
const { onResize } = props;
|
|
221
214
|
if (onResize) {
|
|
222
215
|
onResize(e);
|
|
@@ -224,13 +217,11 @@ const Scrollbar = defineComponent({
|
|
|
224
217
|
sync();
|
|
225
218
|
};
|
|
226
219
|
const scrollBy = (options, y) => {
|
|
227
|
-
if (!props.scrollable)
|
|
220
|
+
if (!props.scrollable)
|
|
228
221
|
return;
|
|
229
|
-
}
|
|
230
222
|
const { value: container } = mergedContainerRef;
|
|
231
|
-
if (!container)
|
|
223
|
+
if (!container)
|
|
232
224
|
return;
|
|
233
|
-
}
|
|
234
225
|
if (typeof options === 'object') {
|
|
235
226
|
container.scrollBy(options);
|
|
236
227
|
}
|
|
@@ -240,9 +231,8 @@ const Scrollbar = defineComponent({
|
|
|
240
231
|
};
|
|
241
232
|
function scrollToPosition(left, top, elSize, debounce, behavior) {
|
|
242
233
|
const { value: container } = mergedContainerRef;
|
|
243
|
-
if (!container)
|
|
234
|
+
if (!container)
|
|
244
235
|
return;
|
|
245
|
-
}
|
|
246
236
|
if (debounce) {
|
|
247
237
|
const { scrollTop, offsetHeight } = container;
|
|
248
238
|
if (top > scrollTop) {
|
|
@@ -307,9 +297,8 @@ const Scrollbar = defineComponent({
|
|
|
307
297
|
}
|
|
308
298
|
function handleScroll(e) {
|
|
309
299
|
const { onScroll } = props;
|
|
310
|
-
if (onScroll)
|
|
300
|
+
if (onScroll)
|
|
311
301
|
onScroll(e);
|
|
312
|
-
}
|
|
313
302
|
syncScrollState();
|
|
314
303
|
}
|
|
315
304
|
function syncScrollState() {
|
|
@@ -368,9 +357,8 @@ const Scrollbar = defineComponent({
|
|
|
368
357
|
}
|
|
369
358
|
}
|
|
370
359
|
function sync() {
|
|
371
|
-
if (!props.scrollable)
|
|
360
|
+
if (!props.scrollable)
|
|
372
361
|
return;
|
|
373
|
-
}
|
|
374
362
|
if (props.useUnifiedContainer) {
|
|
375
363
|
syncUnifiedContainer();
|
|
376
364
|
}
|
|
@@ -395,9 +383,8 @@ const Scrollbar = defineComponent({
|
|
|
395
383
|
: e.clientX;
|
|
396
384
|
}
|
|
397
385
|
function handleXScrollMouseMove(e) {
|
|
398
|
-
if (!xBarPressed)
|
|
386
|
+
if (!xBarPressed)
|
|
399
387
|
return;
|
|
400
|
-
}
|
|
401
388
|
if (xBarVanishTimerId !== undefined) {
|
|
402
389
|
window.clearTimeout(xBarVanishTimerId);
|
|
403
390
|
}
|
|
@@ -407,9 +394,8 @@ const Scrollbar = defineComponent({
|
|
|
407
394
|
const { value: containerWidth } = containerWidthRef;
|
|
408
395
|
const { value: contentWidth } = contentWidthRef;
|
|
409
396
|
const { value: xBarSize } = xBarSizeRef;
|
|
410
|
-
if (containerWidth === null || contentWidth === null)
|
|
397
|
+
if (containerWidth === null || contentWidth === null)
|
|
411
398
|
return;
|
|
412
|
-
}
|
|
413
399
|
const dX = (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value)
|
|
414
400
|
? window.innerWidth - e.clientX - memoMouseX
|
|
415
401
|
: e.clientX - memoMouseX;
|
|
@@ -422,9 +408,8 @@ const Scrollbar = defineComponent({
|
|
|
422
408
|
if (container) {
|
|
423
409
|
container.scrollLeft = toScrollLeft * ((rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) ? -1 : 1);
|
|
424
410
|
const { internalOnUpdateScrollLeft } = props;
|
|
425
|
-
if (internalOnUpdateScrollLeft)
|
|
411
|
+
if (internalOnUpdateScrollLeft)
|
|
426
412
|
internalOnUpdateScrollLeft(toScrollLeft);
|
|
427
|
-
}
|
|
428
413
|
}
|
|
429
414
|
}
|
|
430
415
|
function handleXScrollMouseUp(e) {
|
|
@@ -448,9 +433,8 @@ const Scrollbar = defineComponent({
|
|
|
448
433
|
memoMouseY = e.clientY;
|
|
449
434
|
}
|
|
450
435
|
function handleYScrollMouseMove(e) {
|
|
451
|
-
if (!yBarPressed)
|
|
436
|
+
if (!yBarPressed)
|
|
452
437
|
return;
|
|
453
|
-
}
|
|
454
438
|
if (xBarVanishTimerId !== undefined) {
|
|
455
439
|
window.clearTimeout(xBarVanishTimerId);
|
|
456
440
|
}
|
|
@@ -460,9 +444,8 @@ const Scrollbar = defineComponent({
|
|
|
460
444
|
const { value: containerHeight } = containerHeightRef;
|
|
461
445
|
const { value: contentHeight } = contentHeightRef;
|
|
462
446
|
const { value: yBarSize } = yBarSizeRef;
|
|
463
|
-
if (containerHeight === null || contentHeight === null)
|
|
447
|
+
if (containerHeight === null || contentHeight === null)
|
|
464
448
|
return;
|
|
465
|
-
}
|
|
466
449
|
const dY = e.clientY - memoMouseY;
|
|
467
450
|
const dScrollTop = (dY * (contentHeight - containerHeight)) / (containerHeight - yBarSize);
|
|
468
451
|
const toScrollTopUpperBound = contentHeight - containerHeight;
|
|
@@ -517,9 +500,8 @@ const Scrollbar = defineComponent({
|
|
|
517
500
|
// if you pass inner to scrollbar, you may use a ref inside component
|
|
518
501
|
// however, when scrollbar is mounted, ref is not ready at component
|
|
519
502
|
// you need to init by yourself
|
|
520
|
-
if (props.container)
|
|
503
|
+
if (props.container)
|
|
521
504
|
return;
|
|
522
|
-
}
|
|
523
505
|
sync();
|
|
524
506
|
});
|
|
525
507
|
onBeforeUnmount(() => {
|
|
@@ -593,9 +575,8 @@ const Scrollbar = defineComponent({
|
|
|
593
575
|
render() {
|
|
594
576
|
var _a;
|
|
595
577
|
const { $slots, mergedClsPrefix, triggerDisplayManually, rtlEnabled, internalHoistYRail, yPlacement, xPlacement, xScrollable } = this;
|
|
596
|
-
if (!this.scrollable)
|
|
578
|
+
if (!this.scrollable)
|
|
597
579
|
return (_a = $slots.default) === null || _a === void 0 ? void 0 : _a.call($slots);
|
|
598
|
-
}
|
|
599
580
|
const triggerIsNone = this.trigger === 'none';
|
|
600
581
|
const createYRail = (className, style) => {
|
|
601
582
|
return (h("div", { ref: "yRailRef", class: [
|
|
@@ -1610,8 +1610,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1610
1610
|
readonly to: string | boolean | HTMLElement;
|
|
1611
1611
|
readonly resetMenuOnOptionsChange: boolean;
|
|
1612
1612
|
readonly placement: FollowerPlacement;
|
|
1613
|
-
readonly clearable: boolean;
|
|
1614
1613
|
readonly defaultValue: string | null;
|
|
1614
|
+
readonly clearable: boolean;
|
|
1615
1615
|
readonly options: AutoCompleteOptions;
|
|
1616
1616
|
readonly blurAfterSelect: boolean;
|
|
1617
1617
|
readonly clearAfterSelect: boolean;
|
|
@@ -3364,9 +3364,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3364
3364
|
readonly virtualScroll: boolean;
|
|
3365
3365
|
readonly valueField: string;
|
|
3366
3366
|
readonly placement: FollowerPlacement;
|
|
3367
|
+
readonly defaultValue: Value | null;
|
|
3367
3368
|
readonly filterable: boolean;
|
|
3368
3369
|
readonly clearable: boolean;
|
|
3369
|
-
readonly defaultValue: Value | null;
|
|
3370
3370
|
readonly options: CascaderOption[];
|
|
3371
3371
|
readonly clearFilterAfterSelect: boolean;
|
|
3372
3372
|
readonly remote: boolean;
|
package/es/chat/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as UChat } from './src/Chat';
|
|
2
2
|
export { default as UChatListItems } from './src/ChatListItems';
|
|
3
3
|
export { default as UChatMessages } from './src/ChatMessages';
|
|
4
|
-
export type { ChatId, ChatProps, ChatListItemProps, ChatMessageProps, ChatMarkProps, ChatHeaderProps, ChatFooterProps, ChatListHeaderProps, ChatSlots, ChatListItemSlots, ChatMessageSlots, ChatMarkSlots, ChatHeaderSlots, ChatFooterSlots, ChatListItemData, ChatMessageData, ChatAttachment, OnChatSelect, OnMessageSend, OnAttachmentUpload, OnFilterChange,
|
|
4
|
+
export type { ChatId, ChatProps, ChatListItemProps, ChatMessageProps, ChatMarkProps, ChatHeaderProps, ChatFooterProps, ChatListHeaderProps, ChatSlots, ChatListItemSlots, ChatMessageSlots, ChatMarkSlots, ChatHeaderSlots, ChatFooterSlots, ChatListItemData, ChatMessageData, ChatAttachment, OnChatSelect, OnMessageSend, OnAttachmentUpload, OnFilterChange, OnNetworkError, OnUploadError, OnSendError, ChatInst, ChatListInst, chatInjectionKey } from './src/interface';
|
|
5
5
|
export { MessageStatus, ChatMessageType, ChatMarkType } from './src/interface';
|
|
6
6
|
export type { ChatListItemsProps } from './src/ChatListItems';
|
|
7
7
|
export type { ChatMessagesProps } from './src/ChatMessages';
|
package/es/chat/src/Chat.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type ChatProps as ChatPropsInterface, type ChatListItemData, type ChatMessageData } from './interface';
|
|
2
|
+
import { type ChatProps as ChatPropsInterface, type ChatListItemData, type ChatMessageData, type ChatId } from './interface';
|
|
3
3
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
4
4
|
type ChatPropsType = ChatPropsInterface;
|
|
5
5
|
export declare const chatProps: {
|
|
@@ -67,6 +67,26 @@ export declare const chatProps: {
|
|
|
67
67
|
type: PropType<Partial<ChatPropsType["headerIconProps"]>>;
|
|
68
68
|
default: undefined;
|
|
69
69
|
};
|
|
70
|
+
headerShareButtonProps: {
|
|
71
|
+
type: PropType<Partial<ChatPropsType["headerShareButtonProps"]>>;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
headerProfileButtonProps: {
|
|
75
|
+
type: PropType<Partial<ChatPropsType["headerProfileButtonProps"]>>;
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
78
|
+
headerCloseButtonProps: {
|
|
79
|
+
type: PropType<Partial<ChatPropsType["headerCloseButtonProps"]>>;
|
|
80
|
+
default: undefined;
|
|
81
|
+
};
|
|
82
|
+
headerShareIconProps: {
|
|
83
|
+
type: PropType<Partial<ChatPropsType["headerShareIconProps"]>>;
|
|
84
|
+
default: undefined;
|
|
85
|
+
};
|
|
86
|
+
headerProfileIconProps: {
|
|
87
|
+
type: PropType<Partial<ChatPropsType["headerProfileIconProps"]>>;
|
|
88
|
+
default: undefined;
|
|
89
|
+
};
|
|
70
90
|
messageSenderAvatarProps: {
|
|
71
91
|
type: PropType<Partial<ChatPropsType["messageSenderAvatarProps"]>>;
|
|
72
92
|
default: undefined;
|
|
@@ -115,6 +135,14 @@ export declare const chatProps: {
|
|
|
115
135
|
type: PropType<ChatPropsType["closeButtonText"]>;
|
|
116
136
|
default: undefined;
|
|
117
137
|
};
|
|
138
|
+
shareButtonTooltip: {
|
|
139
|
+
type: PropType<ChatPropsType["shareButtonTooltip"]>;
|
|
140
|
+
default: undefined;
|
|
141
|
+
};
|
|
142
|
+
profileButtonTooltip: {
|
|
143
|
+
type: PropType<ChatPropsType["profileButtonTooltip"]>;
|
|
144
|
+
default: undefined;
|
|
145
|
+
};
|
|
118
146
|
unreadNotificationText: {
|
|
119
147
|
type: PropType<ChatPropsType["unreadNotificationText"]>;
|
|
120
148
|
default: undefined;
|
|
@@ -167,8 +195,8 @@ export declare const chatProps: {
|
|
|
167
195
|
type: PropType<ChatPropsType["onFilterChange"]>;
|
|
168
196
|
default: undefined;
|
|
169
197
|
};
|
|
170
|
-
|
|
171
|
-
type: PropType<
|
|
198
|
+
onFooterInputChange: {
|
|
199
|
+
type: PropType<(value: string, chatId: ChatId) => void>;
|
|
172
200
|
default: undefined;
|
|
173
201
|
};
|
|
174
202
|
onNetworkError: {
|
|
@@ -183,6 +211,22 @@ export declare const chatProps: {
|
|
|
183
211
|
type: PropType<ChatPropsType["onSendError"]>;
|
|
184
212
|
default: undefined;
|
|
185
213
|
};
|
|
214
|
+
onChatItemsScrollToTop: {
|
|
215
|
+
type: PropType<() => void>;
|
|
216
|
+
default: undefined;
|
|
217
|
+
};
|
|
218
|
+
onChatItemsScrollToBottom: {
|
|
219
|
+
type: PropType<() => void>;
|
|
220
|
+
default: undefined;
|
|
221
|
+
};
|
|
222
|
+
onMessagesScrollToTop: {
|
|
223
|
+
type: PropType<() => void>;
|
|
224
|
+
default: undefined;
|
|
225
|
+
};
|
|
226
|
+
onMessagesScrollToBottom: {
|
|
227
|
+
type: PropType<() => void>;
|
|
228
|
+
default: undefined;
|
|
229
|
+
};
|
|
186
230
|
theme: PropType<import("../../_mixins").Theme<"Chat", {
|
|
187
231
|
backgroundColor: string;
|
|
188
232
|
borderColor: string;
|
|
@@ -2245,6 +2289,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2245
2289
|
type: PropType<Partial<ChatPropsType["headerIconProps"]>>;
|
|
2246
2290
|
default: undefined;
|
|
2247
2291
|
};
|
|
2292
|
+
headerShareButtonProps: {
|
|
2293
|
+
type: PropType<Partial<ChatPropsType["headerShareButtonProps"]>>;
|
|
2294
|
+
default: undefined;
|
|
2295
|
+
};
|
|
2296
|
+
headerProfileButtonProps: {
|
|
2297
|
+
type: PropType<Partial<ChatPropsType["headerProfileButtonProps"]>>;
|
|
2298
|
+
default: undefined;
|
|
2299
|
+
};
|
|
2300
|
+
headerCloseButtonProps: {
|
|
2301
|
+
type: PropType<Partial<ChatPropsType["headerCloseButtonProps"]>>;
|
|
2302
|
+
default: undefined;
|
|
2303
|
+
};
|
|
2304
|
+
headerShareIconProps: {
|
|
2305
|
+
type: PropType<Partial<ChatPropsType["headerShareIconProps"]>>;
|
|
2306
|
+
default: undefined;
|
|
2307
|
+
};
|
|
2308
|
+
headerProfileIconProps: {
|
|
2309
|
+
type: PropType<Partial<ChatPropsType["headerProfileIconProps"]>>;
|
|
2310
|
+
default: undefined;
|
|
2311
|
+
};
|
|
2248
2312
|
messageSenderAvatarProps: {
|
|
2249
2313
|
type: PropType<Partial<ChatPropsType["messageSenderAvatarProps"]>>;
|
|
2250
2314
|
default: undefined;
|
|
@@ -2293,6 +2357,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2293
2357
|
type: PropType<ChatPropsType["closeButtonText"]>;
|
|
2294
2358
|
default: undefined;
|
|
2295
2359
|
};
|
|
2360
|
+
shareButtonTooltip: {
|
|
2361
|
+
type: PropType<ChatPropsType["shareButtonTooltip"]>;
|
|
2362
|
+
default: undefined;
|
|
2363
|
+
};
|
|
2364
|
+
profileButtonTooltip: {
|
|
2365
|
+
type: PropType<ChatPropsType["profileButtonTooltip"]>;
|
|
2366
|
+
default: undefined;
|
|
2367
|
+
};
|
|
2296
2368
|
unreadNotificationText: {
|
|
2297
2369
|
type: PropType<ChatPropsType["unreadNotificationText"]>;
|
|
2298
2370
|
default: undefined;
|
|
@@ -2345,8 +2417,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2345
2417
|
type: PropType<ChatPropsType["onFilterChange"]>;
|
|
2346
2418
|
default: undefined;
|
|
2347
2419
|
};
|
|
2348
|
-
|
|
2349
|
-
type: PropType<
|
|
2420
|
+
onFooterInputChange: {
|
|
2421
|
+
type: PropType<(value: string, chatId: ChatId) => void>;
|
|
2350
2422
|
default: undefined;
|
|
2351
2423
|
};
|
|
2352
2424
|
onNetworkError: {
|
|
@@ -2361,6 +2433,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2361
2433
|
type: PropType<ChatPropsType["onSendError"]>;
|
|
2362
2434
|
default: undefined;
|
|
2363
2435
|
};
|
|
2436
|
+
onChatItemsScrollToTop: {
|
|
2437
|
+
type: PropType<() => void>;
|
|
2438
|
+
default: undefined;
|
|
2439
|
+
};
|
|
2440
|
+
onChatItemsScrollToBottom: {
|
|
2441
|
+
type: PropType<() => void>;
|
|
2442
|
+
default: undefined;
|
|
2443
|
+
};
|
|
2444
|
+
onMessagesScrollToTop: {
|
|
2445
|
+
type: PropType<() => void>;
|
|
2446
|
+
default: undefined;
|
|
2447
|
+
};
|
|
2448
|
+
onMessagesScrollToBottom: {
|
|
2449
|
+
type: PropType<() => void>;
|
|
2450
|
+
default: undefined;
|
|
2451
|
+
};
|
|
2364
2452
|
theme: PropType<import("../../_mixins").Theme<"Chat", {
|
|
2365
2453
|
backgroundColor: string;
|
|
2366
2454
|
borderColor: string;
|
|
@@ -5300,7 +5388,82 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5300
5388
|
}>;
|
|
5301
5389
|
themeClass: import("vue").Ref<string>;
|
|
5302
5390
|
onRender: () => void;
|
|
5303
|
-
|
|
5391
|
+
mainAreaRef: import("vue").Ref<({
|
|
5392
|
+
$: import("vue").ComponentInternalInstance;
|
|
5393
|
+
$data: {};
|
|
5394
|
+
$props: {
|
|
5395
|
+
ref?: import("vue").VNodeRef | undefined;
|
|
5396
|
+
class?: unknown;
|
|
5397
|
+
style?: unknown;
|
|
5398
|
+
key?: (string | number | symbol) | undefined;
|
|
5399
|
+
ref_for?: boolean | undefined;
|
|
5400
|
+
ref_key?: string | undefined;
|
|
5401
|
+
onVnodeBeforeMount?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
5402
|
+
onVnodeMounted?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
5403
|
+
onVnodeBeforeUpdate?: (((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[]) | undefined;
|
|
5404
|
+
onVnodeUpdated?: (((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[]) | undefined;
|
|
5405
|
+
onVnodeBeforeUnmount?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
5406
|
+
onVnodeUnmounted?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
5407
|
+
};
|
|
5408
|
+
$attrs: {
|
|
5409
|
+
[x: string]: unknown;
|
|
5410
|
+
};
|
|
5411
|
+
$refs: {
|
|
5412
|
+
[x: string]: unknown;
|
|
5413
|
+
};
|
|
5414
|
+
$slots: Readonly<{
|
|
5415
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
5416
|
+
}>;
|
|
5417
|
+
$root: import("vue").ComponentPublicInstance | null;
|
|
5418
|
+
$parent: import("vue").ComponentPublicInstance | null;
|
|
5419
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
5420
|
+
$el: any;
|
|
5421
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
5422
|
+
renderHeader: () => JSX.Element;
|
|
5423
|
+
renderMessages: () => JSX.Element;
|
|
5424
|
+
renderFooter: () => JSX.Element;
|
|
5425
|
+
messagesBodyRef: import("vue").Ref<HTMLElement | {
|
|
5426
|
+
$el: HTMLElement;
|
|
5427
|
+
} | undefined>;
|
|
5428
|
+
inputRef: import("vue").Ref<HTMLInputElement | undefined>;
|
|
5429
|
+
inputValue: import("vue").Ref<string>;
|
|
5430
|
+
handleSendMessage: () => Promise<void>;
|
|
5431
|
+
handleMessagesScroll: (e: Event) => void;
|
|
5432
|
+
scrollToBottom: () => void;
|
|
5433
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
|
|
5434
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
5435
|
+
created?: (() => void) | (() => void)[];
|
|
5436
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
5437
|
+
mounted?: (() => void) | (() => void)[];
|
|
5438
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
5439
|
+
updated?: (() => void) | (() => void)[];
|
|
5440
|
+
activated?: (() => void) | (() => void)[];
|
|
5441
|
+
deactivated?: (() => void) | (() => void)[];
|
|
5442
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
5443
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
5444
|
+
destroyed?: (() => void) | (() => void)[];
|
|
5445
|
+
unmounted?: (() => void) | (() => void)[];
|
|
5446
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
5447
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
5448
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
5449
|
+
};
|
|
5450
|
+
$forceUpdate: () => void;
|
|
5451
|
+
$nextTick: typeof import("vue").nextTick;
|
|
5452
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R]) => any : (...args: any) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
5453
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
5454
|
+
renderHeader: () => JSX.Element;
|
|
5455
|
+
renderMessages: () => JSX.Element;
|
|
5456
|
+
renderFooter: () => JSX.Element;
|
|
5457
|
+
messagesBodyRef: import("vue").Ref<HTMLElement | {
|
|
5458
|
+
$el: HTMLElement;
|
|
5459
|
+
} | undefined>;
|
|
5460
|
+
inputRef: import("vue").Ref<HTMLInputElement | undefined>;
|
|
5461
|
+
inputValue: import("vue").Ref<string>;
|
|
5462
|
+
handleSendMessage: () => Promise<void>;
|
|
5463
|
+
handleMessagesScroll: (e: Event) => void;
|
|
5464
|
+
scrollToBottom: () => void;
|
|
5465
|
+
}> & {} & import("vue").ComponentCustomProperties & {}) | null>;
|
|
5466
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("message-retry" | "update:selectedChatId" | "message-send" | "attachment-upload" | "mark-messages-read" | "filter-change" | "footer-input-change" | "network-error" | "upload-error" | "send-error" | "chat-items-scroll-to-top" | "chat-items-scroll-to-bottom" | "messages-scroll-to-top" | "messages-scroll-to-bottom")[], "message-retry" | "update:selectedChatId" | "message-send" | "attachment-upload" | "mark-messages-read" | "filter-change" | "footer-input-change" | "network-error" | "upload-error" | "send-error" | "chat-items-scroll-to-top" | "chat-items-scroll-to-bottom" | "messages-scroll-to-top" | "messages-scroll-to-bottom", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5304
5467
|
chatItems: {
|
|
5305
5468
|
type: PropType<ChatPropsType["chatItems"]>;
|
|
5306
5469
|
default: () => never[];
|
|
@@ -5365,6 +5528,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5365
5528
|
type: PropType<Partial<ChatPropsType["headerIconProps"]>>;
|
|
5366
5529
|
default: undefined;
|
|
5367
5530
|
};
|
|
5531
|
+
headerShareButtonProps: {
|
|
5532
|
+
type: PropType<Partial<ChatPropsType["headerShareButtonProps"]>>;
|
|
5533
|
+
default: undefined;
|
|
5534
|
+
};
|
|
5535
|
+
headerProfileButtonProps: {
|
|
5536
|
+
type: PropType<Partial<ChatPropsType["headerProfileButtonProps"]>>;
|
|
5537
|
+
default: undefined;
|
|
5538
|
+
};
|
|
5539
|
+
headerCloseButtonProps: {
|
|
5540
|
+
type: PropType<Partial<ChatPropsType["headerCloseButtonProps"]>>;
|
|
5541
|
+
default: undefined;
|
|
5542
|
+
};
|
|
5543
|
+
headerShareIconProps: {
|
|
5544
|
+
type: PropType<Partial<ChatPropsType["headerShareIconProps"]>>;
|
|
5545
|
+
default: undefined;
|
|
5546
|
+
};
|
|
5547
|
+
headerProfileIconProps: {
|
|
5548
|
+
type: PropType<Partial<ChatPropsType["headerProfileIconProps"]>>;
|
|
5549
|
+
default: undefined;
|
|
5550
|
+
};
|
|
5368
5551
|
messageSenderAvatarProps: {
|
|
5369
5552
|
type: PropType<Partial<ChatPropsType["messageSenderAvatarProps"]>>;
|
|
5370
5553
|
default: undefined;
|
|
@@ -5413,6 +5596,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5413
5596
|
type: PropType<ChatPropsType["closeButtonText"]>;
|
|
5414
5597
|
default: undefined;
|
|
5415
5598
|
};
|
|
5599
|
+
shareButtonTooltip: {
|
|
5600
|
+
type: PropType<ChatPropsType["shareButtonTooltip"]>;
|
|
5601
|
+
default: undefined;
|
|
5602
|
+
};
|
|
5603
|
+
profileButtonTooltip: {
|
|
5604
|
+
type: PropType<ChatPropsType["profileButtonTooltip"]>;
|
|
5605
|
+
default: undefined;
|
|
5606
|
+
};
|
|
5416
5607
|
unreadNotificationText: {
|
|
5417
5608
|
type: PropType<ChatPropsType["unreadNotificationText"]>;
|
|
5418
5609
|
default: undefined;
|
|
@@ -5465,8 +5656,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5465
5656
|
type: PropType<ChatPropsType["onFilterChange"]>;
|
|
5466
5657
|
default: undefined;
|
|
5467
5658
|
};
|
|
5468
|
-
|
|
5469
|
-
type: PropType<
|
|
5659
|
+
onFooterInputChange: {
|
|
5660
|
+
type: PropType<(value: string, chatId: ChatId) => void>;
|
|
5470
5661
|
default: undefined;
|
|
5471
5662
|
};
|
|
5472
5663
|
onNetworkError: {
|
|
@@ -5481,6 +5672,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5481
5672
|
type: PropType<ChatPropsType["onSendError"]>;
|
|
5482
5673
|
default: undefined;
|
|
5483
5674
|
};
|
|
5675
|
+
onChatItemsScrollToTop: {
|
|
5676
|
+
type: PropType<() => void>;
|
|
5677
|
+
default: undefined;
|
|
5678
|
+
};
|
|
5679
|
+
onChatItemsScrollToBottom: {
|
|
5680
|
+
type: PropType<() => void>;
|
|
5681
|
+
default: undefined;
|
|
5682
|
+
};
|
|
5683
|
+
onMessagesScrollToTop: {
|
|
5684
|
+
type: PropType<() => void>;
|
|
5685
|
+
default: undefined;
|
|
5686
|
+
};
|
|
5687
|
+
onMessagesScrollToBottom: {
|
|
5688
|
+
type: PropType<() => void>;
|
|
5689
|
+
default: undefined;
|
|
5690
|
+
};
|
|
5484
5691
|
theme: PropType<import("../../_mixins").Theme<"Chat", {
|
|
5485
5692
|
backgroundColor: string;
|
|
5486
5693
|
borderColor: string;
|
|
@@ -7483,27 +7690,37 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7483
7690
|
"onAttachment-upload"?: ((...args: any[]) => any) | undefined;
|
|
7484
7691
|
"onMark-messages-read"?: ((...args: any[]) => any) | undefined;
|
|
7485
7692
|
"onFilter-change"?: ((...args: any[]) => any) | undefined;
|
|
7486
|
-
"
|
|
7693
|
+
"onFooter-input-change"?: ((...args: any[]) => any) | undefined;
|
|
7487
7694
|
"onNetwork-error"?: ((...args: any[]) => any) | undefined;
|
|
7488
7695
|
"onUpload-error"?: ((...args: any[]) => any) | undefined;
|
|
7489
7696
|
"onSend-error"?: ((...args: any[]) => any) | undefined;
|
|
7697
|
+
"onChat-items-scroll-to-top"?: ((...args: any[]) => any) | undefined;
|
|
7698
|
+
"onChat-items-scroll-to-bottom"?: ((...args: any[]) => any) | undefined;
|
|
7699
|
+
"onMessages-scroll-to-top"?: ((...args: any[]) => any) | undefined;
|
|
7700
|
+
"onMessages-scroll-to-bottom"?: ((...args: any[]) => any) | undefined;
|
|
7490
7701
|
}, {
|
|
7491
7702
|
disabled: boolean | undefined;
|
|
7492
7703
|
typingText: string | undefined;
|
|
7493
7704
|
retryText: string | undefined;
|
|
7494
7705
|
closeButtonText: string | undefined;
|
|
7706
|
+
shareButtonTooltip: string | undefined;
|
|
7707
|
+
profileButtonTooltip: string | undefined;
|
|
7495
7708
|
unreadNotificationText: string | undefined;
|
|
7496
7709
|
height: string | number;
|
|
7497
7710
|
emptyProps: Partial<Partial<import("../..").EmptyProps> | undefined>;
|
|
7498
7711
|
chatItems: ChatListItemData[] | undefined;
|
|
7499
|
-
selectedChatId:
|
|
7712
|
+
selectedChatId: ChatId | undefined;
|
|
7500
7713
|
typingChatIds: (string | number | symbol)[];
|
|
7501
7714
|
onChatSelect: import("./interface").OnChatSelect | undefined;
|
|
7715
|
+
onChatItemsScrollToTop: () => void;
|
|
7716
|
+
onChatItemsScrollToBottom: () => void;
|
|
7502
7717
|
messages: ChatMessageData[] | undefined;
|
|
7503
7718
|
onMessageRetry: ((message: ChatMessageData) => void) | undefined;
|
|
7504
7719
|
onChatClose: () => void;
|
|
7505
7720
|
onChatShare: () => void;
|
|
7506
7721
|
onUserProfile: () => void;
|
|
7722
|
+
onMessagesScrollToTop: () => void;
|
|
7723
|
+
onMessagesScrollToBottom: () => void;
|
|
7507
7724
|
headerActions: (() => import("vue").VNodeChild)[] | undefined;
|
|
7508
7725
|
listEmptyProps: Partial<Partial<import("../..").EmptyProps> | undefined>;
|
|
7509
7726
|
listHeaderTitle: string | (() => import("vue").VNodeChild) | undefined;
|
|
@@ -7515,6 +7732,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7515
7732
|
headerTitle: string | (() => import("vue").VNodeChild) | undefined;
|
|
7516
7733
|
headerButtonProps: Partial<Partial<import("../..").ButtonProps> | undefined>;
|
|
7517
7734
|
headerIconProps: Partial<Partial<import("../..").IconProps> | undefined>;
|
|
7735
|
+
headerShareButtonProps: Partial<Partial<import("../..").ButtonProps> | undefined>;
|
|
7736
|
+
headerProfileButtonProps: Partial<Partial<import("../..").ButtonProps> | undefined>;
|
|
7737
|
+
headerCloseButtonProps: Partial<Partial<import("../..").ButtonProps> | undefined>;
|
|
7738
|
+
headerShareIconProps: Partial<Partial<import("../..").IconProps> | undefined>;
|
|
7739
|
+
headerProfileIconProps: Partial<Partial<import("../..").IconProps> | undefined>;
|
|
7518
7740
|
messageSenderAvatarProps: Partial<Partial<import("../..").AvatarProps> | undefined>;
|
|
7519
7741
|
messageUploadProps: Partial<Partial<import("../..").UploadProps> | undefined>;
|
|
7520
7742
|
messageButtonProps: Partial<Partial<import("../..").ButtonProps> | undefined>;
|
|
@@ -7529,9 +7751,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7529
7751
|
messagesLoadingCount: number | undefined;
|
|
7530
7752
|
onAttachmentUpload: import("./interface").OnAttachmentUpload | undefined;
|
|
7531
7753
|
onFilterChange: import("./interface").OnFilterChange | undefined;
|
|
7532
|
-
onLoadMoreChats: import("./interface").OnLoadMoreChats | undefined;
|
|
7533
7754
|
onNetworkError: import("./interface").OnNetworkError | undefined;
|
|
7534
7755
|
onUploadError: import("./interface").OnUploadError | undefined;
|
|
7535
7756
|
onSendError: import("./interface").OnSendError | undefined;
|
|
7757
|
+
onFooterInputChange: (value: string, chatId: ChatId) => void;
|
|
7536
7758
|
}, {}>;
|
|
7537
7759
|
export default _default;
|