@uzum-tech/ui 2.0.0-beta.8 → 2.0.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 +485 -373
- package/dist/index.mjs +485 -373
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_internal/icon/index.d.ts +2 -0
- package/es/_internal/icon/index.mjs +2 -1
- package/es/_internal/icon/src/UIcon.d.ts +126 -0
- package/es/_internal/icon/src/UIcon.mjs +131 -0
- package/es/_internal/select-menu/src/SelectOption.mjs +12 -4
- package/es/_mixins/use-config.d.ts +2 -1
- package/es/_mixins/use-config.mjs +1 -0
- package/es/_utils/wrap-component.mjs +3 -1
- package/es/auto-complete/src/AutoComplete.d.ts +70 -0
- package/es/auto-complete/styles/light.d.ts +7 -0
- package/es/carousel/src/Carousel.mjs +39 -13
- package/es/chat/src/Chat.d.ts +70 -0
- package/es/chat/src/ChatListItems.d.ts +84 -0
- package/es/chat/src/ChatMessages.d.ts +84 -0
- package/es/chat/src/ChatParts/MainArea.mjs +104 -112
- package/es/chat/src/ChatParts/Sidebar.d.ts +14 -0
- package/es/chat/src/styles/index.cssr.mjs +24 -10
- package/es/chat/styles/dark.d.ts +7 -0
- package/es/chat/styles/light.d.ts +7 -0
- package/es/chat/styles/light.mjs +1 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +7 -0
- package/es/color-picker/src/ColorPicker.d.ts +63 -0
- package/es/color-picker/styles/light.d.ts +7 -0
- package/es/components.d.ts +1146 -39
- package/es/config-provider/src/ConfigProvider.d.ts +4 -1
- package/es/config-provider/src/ConfigProvider.mjs +8 -0
- package/es/config-provider/src/interface.d.ts +1 -1
- package/es/config-provider/src/internal-interface.d.ts +8 -0
- package/es/data-table/src/DataTable.d.ts +56 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
- package/es/data-table/src/TableParts/Body.d.ts +28 -0
- package/es/data-table/src/TableParts/Header.d.ts +28 -0
- package/es/data-table/src/interface.d.ts +21 -0
- package/es/data-table/styles/light.d.ts +7 -0
- package/es/date-picker/src/DatePicker.d.ts +147 -0
- package/es/date-picker/src/panel/date.d.ts +42 -0
- package/es/date-picker/src/panel/daterange.d.ts +42 -0
- package/es/date-picker/src/panel/datetime.d.ts +42 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +42 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +168 -0
- package/es/date-picker/src/panel/panelMonthContent.d.ts +42 -0
- package/es/date-picker/src/panel/panelYear.d.ts +168 -0
- package/es/date-picker/src/panel/panelYearContent.d.ts +42 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +42 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +42 -0
- package/es/date-picker/styles/light.d.ts +14 -0
- package/es/date-picker-v2/src/DatePickerV2.d.ts +70 -0
- package/es/date-picker-v2/styles/dark.d.ts +7 -0
- package/es/date-picker-v2/styles/light.d.ts +7 -0
- package/es/dialog/src/DialogEnvironment.mjs +1 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +70 -0
- package/es/dynamic-input/src/InputPreset.d.ts +14 -0
- package/es/dynamic-input/src/PairPreset.d.ts +14 -0
- package/es/dynamic-input/styles/light.d.ts +7 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +70 -0
- package/es/dynamic-tags/styles/light.d.ts +7 -0
- package/es/icon/src/Icon.d.ts +2 -109
- package/es/icon/src/Icon.mjs +1 -93
- package/es/input/src/Input.d.ts +77 -0
- package/es/input/src/Input.mjs +15 -0
- package/es/input/src/InputGroupLabel.d.ts +63 -0
- package/es/input/src/styles/input.cssr.mjs +1 -1
- package/es/input/styles/light.d.ts +7 -0
- package/es/input/styles/light.mjs +11 -0
- package/es/input-number/src/InputNumber.d.ts +70 -0
- package/es/input-number/styles/light.d.ts +7 -0
- package/es/input-otp/src/InputOtp.d.ts +70 -0
- package/es/input-otp/styles/light.d.ts +7 -0
- package/es/legacy-transfer/src/Transfer.d.ts +70 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +14 -0
- package/es/legacy-transfer/src/TransferList.d.ts +14 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +14 -0
- package/es/legacy-transfer/styles/light.d.ts +7 -0
- package/es/mapping-card/src/MappingCard.d.ts +9 -0
- package/es/mapping-card/src/MappingCardParts/Header.mjs +1 -1
- package/es/mapping-card/src/interface.d.ts +5 -0
- package/es/mapping-card/src/interface.mjs +4 -0
- package/es/mention/src/Mention.d.ts +70 -0
- package/es/mention/styles/light.d.ts +7 -0
- package/es/modal/src/BodyWrapper.d.ts +0 -3
- package/es/modal/src/Modal.d.ts +13 -7
- package/es/modal/src/Modal.mjs +5 -2
- package/es/modal/src/ModalEnvironment.d.ts +9 -5
- package/es/modal/src/presetProps.d.ts +1 -2
- package/es/modal/src/presetProps.mjs +0 -1
- package/es/pagination/src/Pagination.d.ts +70 -0
- package/es/pagination/styles/light.d.ts +7 -0
- package/es/time-picker/src/Panel.d.ts +14 -0
- package/es/time-picker/src/TimePicker.d.ts +70 -0
- package/es/time-picker/styles/light.d.ts +7 -0
- package/es/transfer/src/Transfer.d.ts +70 -0
- package/es/transfer/src/TransferFilter.d.ts +14 -0
- package/es/transfer/src/TransferList.d.ts +14 -0
- package/es/transfer/src/TransferListItem.d.ts +14 -0
- package/es/transfer/styles/light.d.ts +7 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/icon/index.d.ts +2 -0
- package/lib/_internal/icon/index.js +4 -1
- package/lib/_internal/icon/src/UIcon.d.ts +126 -0
- package/lib/_internal/icon/src/UIcon.js +108 -0
- package/lib/_internal/select-menu/src/SelectOption.js +8 -4
- package/lib/_mixins/use-config.d.ts +2 -1
- package/lib/_mixins/use-config.js +1 -0
- package/lib/_utils/wrap-component.js +3 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +70 -0
- package/lib/auto-complete/styles/light.d.ts +7 -0
- package/lib/carousel/src/Carousel.js +26 -13
- package/lib/chat/src/Chat.d.ts +70 -0
- package/lib/chat/src/ChatListItems.d.ts +84 -0
- package/lib/chat/src/ChatMessages.d.ts +84 -0
- package/lib/chat/src/ChatParts/MainArea.js +53 -61
- package/lib/chat/src/ChatParts/Sidebar.d.ts +14 -0
- package/lib/chat/src/styles/index.cssr.js +24 -10
- package/lib/chat/styles/dark.d.ts +7 -0
- package/lib/chat/styles/light.d.ts +7 -0
- package/lib/chat/styles/light.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.d.ts +7 -0
- package/lib/color-picker/src/ColorPicker.d.ts +63 -0
- package/lib/color-picker/styles/light.d.ts +7 -0
- package/lib/components.d.ts +1146 -39
- package/lib/config-provider/src/ConfigProvider.d.ts +4 -1
- package/lib/config-provider/src/ConfigProvider.js +8 -0
- package/lib/config-provider/src/interface.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +8 -0
- package/lib/data-table/src/DataTable.d.ts +56 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
- package/lib/data-table/src/TableParts/Body.d.ts +28 -0
- package/lib/data-table/src/TableParts/Header.d.ts +28 -0
- package/lib/data-table/src/interface.d.ts +21 -0
- package/lib/data-table/styles/light.d.ts +7 -0
- package/lib/date-picker/src/DatePicker.d.ts +147 -0
- package/lib/date-picker/src/panel/date.d.ts +42 -0
- package/lib/date-picker/src/panel/daterange.d.ts +42 -0
- package/lib/date-picker/src/panel/datetime.d.ts +42 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +42 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +168 -0
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +42 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +168 -0
- package/lib/date-picker/src/panel/panelYearContent.d.ts +42 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +42 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +42 -0
- package/lib/date-picker/styles/light.d.ts +14 -0
- package/lib/date-picker-v2/src/DatePickerV2.d.ts +70 -0
- package/lib/date-picker-v2/styles/dark.d.ts +7 -0
- package/lib/date-picker-v2/styles/light.d.ts +7 -0
- package/lib/dialog/src/DialogEnvironment.js +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +70 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +14 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +14 -0
- package/lib/dynamic-input/styles/light.d.ts +7 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +70 -0
- package/lib/dynamic-tags/styles/light.d.ts +7 -0
- package/lib/icon/src/Icon.d.ts +2 -109
- package/lib/icon/src/Icon.js +3 -73
- package/lib/input/src/Input.d.ts +77 -0
- package/lib/input/src/Input.js +9 -1
- package/lib/input/src/InputGroupLabel.d.ts +63 -0
- package/lib/input/src/styles/input.cssr.js +1 -1
- package/lib/input/styles/light.d.ts +7 -0
- package/lib/input/styles/light.js +11 -1
- package/lib/input-number/src/InputNumber.d.ts +70 -0
- package/lib/input-number/styles/light.d.ts +7 -0
- package/lib/input-otp/src/InputOtp.d.ts +70 -0
- package/lib/input-otp/styles/light.d.ts +7 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +70 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +14 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +14 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +14 -0
- package/lib/legacy-transfer/styles/light.d.ts +7 -0
- package/lib/mapping-card/src/MappingCard.d.ts +9 -0
- package/lib/mapping-card/src/MappingCardParts/Header.js +2 -2
- package/lib/mapping-card/src/interface.d.ts +5 -0
- package/lib/mapping-card/src/interface.js +4 -0
- package/lib/mention/src/Mention.d.ts +70 -0
- package/lib/mention/styles/light.d.ts +7 -0
- package/lib/modal/src/BodyWrapper.d.ts +0 -3
- package/lib/modal/src/Modal.d.ts +13 -7
- package/lib/modal/src/Modal.js +5 -2
- package/lib/modal/src/ModalEnvironment.d.ts +9 -5
- package/lib/modal/src/presetProps.d.ts +1 -2
- package/lib/modal/src/presetProps.js +1 -1
- package/lib/pagination/src/Pagination.d.ts +70 -0
- package/lib/pagination/styles/light.d.ts +7 -0
- package/lib/time-picker/src/Panel.d.ts +14 -0
- package/lib/time-picker/src/TimePicker.d.ts +70 -0
- package/lib/time-picker/styles/light.d.ts +7 -0
- package/lib/transfer/src/Transfer.d.ts +70 -0
- package/lib/transfer/src/TransferFilter.d.ts +14 -0
- package/lib/transfer/src/TransferList.d.ts +14 -0
- package/lib/transfer/src/TransferListItem.d.ts +14 -0
- package/lib/transfer/styles/light.d.ts +7 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -1
- package/web-types.json +18 -1
|
@@ -242,120 +242,108 @@ export default defineComponent({
|
|
|
242
242
|
return value != null ? String(value) : '';
|
|
243
243
|
};
|
|
244
244
|
const renderHeader = () => {
|
|
245
|
+
const chat = selectedChatRef.value;
|
|
246
|
+
const keyId = toKeyString(chat === null || chat === void 0 ? void 0 : chat.id);
|
|
247
|
+
const keyTitle = toKeyString(chat === null || chat === void 0 ? void 0 : chat.title);
|
|
245
248
|
return h("div", {
|
|
246
|
-
class: `${mergedClsPrefixRef.value}-chat-main__header`
|
|
247
|
-
}, h(
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
class: `${mergedClsPrefixRef.value}-chat-main__header-inner`
|
|
250
|
+
}, h("div", {
|
|
251
|
+
class: `${mergedClsPrefixRef.value}-chat-main__header-title-wrap`
|
|
252
|
+
}, h(UText, {
|
|
253
|
+
key: `${keyId}-${keyTitle}`,
|
|
254
|
+
variant: "heading-s-bold",
|
|
255
|
+
class: `${mergedClsPrefixRef.value}-chat-main__header-title`,
|
|
256
|
+
theme: mergedThemeRef.value.peers.Typography,
|
|
257
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.Typography
|
|
251
258
|
}, {
|
|
252
259
|
default: () => {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
260
|
+
var _a, _b;
|
|
261
|
+
return (_b = (_a = selectedChatRef.value) === null || _a === void 0 ? void 0 : _a.title) !== null && _b !== void 0 ? _b : '';
|
|
262
|
+
}
|
|
263
|
+
}), isTyping.value && h(UText, {
|
|
264
|
+
class: [`${mergedClsPrefixRef.value}-chat-main__header-subtitle`, 'typing'],
|
|
265
|
+
variant: "body-m-medium"
|
|
266
|
+
}, {
|
|
267
|
+
default: () => {
|
|
268
|
+
var _a;
|
|
269
|
+
return (_a = typingTextRef.value) !== null && _a !== void 0 ? _a : '';
|
|
270
|
+
}
|
|
271
|
+
})), h(UFlex, {
|
|
272
|
+
align: "center",
|
|
273
|
+
size: "small",
|
|
274
|
+
class: `${mergedClsPrefixRef.value}-chat-main__header-actions`
|
|
275
|
+
}, {
|
|
276
|
+
default: () => resolveSlot(slots.headerActions, () => {
|
|
277
|
+
const shareButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerShareButtonPropsRef.value);
|
|
278
|
+
const profileButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerProfileButtonPropsRef.value);
|
|
279
|
+
const closeButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerCloseButtonPropsRef.value);
|
|
280
|
+
const shareIconProps = Object.assign(Object.assign({}, headerIconPropsRef.value), headerShareIconPropsRef.value);
|
|
281
|
+
const profileIconProps = Object.assign(Object.assign({}, headerIconPropsRef.value), headerProfileIconPropsRef.value);
|
|
282
|
+
const buttons = [];
|
|
283
|
+
buttons.push(h(UTooltip, null, {
|
|
284
|
+
trigger: () => h(UButton, Object.assign({
|
|
285
|
+
secondary: true,
|
|
286
|
+
circle: true,
|
|
287
|
+
size: "large"
|
|
288
|
+
}, shareButtonProps, {
|
|
289
|
+
theme: mergedThemeRef.value.peers.Button,
|
|
290
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
291
|
+
onClick: () => {
|
|
292
|
+
var _a;
|
|
293
|
+
return (_a = onChatShare === null || onChatShare === void 0 ? void 0 : onChatShare.value) === null || _a === void 0 ? void 0 : _a.call(onChatShare);
|
|
271
294
|
}
|
|
272
|
-
}),
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
295
|
+
}), {
|
|
296
|
+
default: () => h(UIcon, Object.assign({
|
|
297
|
+
size: 20
|
|
298
|
+
}, shareIconProps, {
|
|
299
|
+
theme: mergedThemeRef.value.peers.HeaderShareIcon,
|
|
300
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.HeaderShareIcon
|
|
301
|
+
}), {
|
|
302
|
+
default: () => h(ArrowHookUpRight, null)
|
|
303
|
+
})
|
|
304
|
+
}),
|
|
305
|
+
default: () => shareButtonTooltipRef.value
|
|
306
|
+
}));
|
|
307
|
+
buttons.push(h(UTooltip, null, {
|
|
308
|
+
trigger: () => h(UButton, Object.assign({
|
|
309
|
+
secondary: true,
|
|
310
|
+
circle: true,
|
|
311
|
+
size: "large"
|
|
312
|
+
}, profileButtonProps, {
|
|
313
|
+
theme: mergedThemeRef.value.peers.Button,
|
|
314
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
315
|
+
onClick: () => {
|
|
277
316
|
var _a;
|
|
278
|
-
return (_a =
|
|
317
|
+
return (_a = onUserProfile === null || onUserProfile === void 0 ? void 0 : onUserProfile.value) === null || _a === void 0 ? void 0 : _a.call(onUserProfile);
|
|
279
318
|
}
|
|
280
|
-
})
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
default: () => resolveSlot(slots.headerActions, () => {
|
|
287
|
-
const shareButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerShareButtonPropsRef.value);
|
|
288
|
-
const profileButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerProfileButtonPropsRef.value);
|
|
289
|
-
const closeButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerCloseButtonPropsRef.value);
|
|
290
|
-
const shareIconProps = Object.assign(Object.assign({}, headerIconPropsRef.value), headerShareIconPropsRef.value);
|
|
291
|
-
const profileIconProps = Object.assign(Object.assign({}, headerIconPropsRef.value), headerProfileIconPropsRef.value);
|
|
292
|
-
const buttons = [];
|
|
293
|
-
buttons.push(h(UTooltip, null, {
|
|
294
|
-
trigger: () => h(UButton, Object.assign({
|
|
295
|
-
secondary: true,
|
|
296
|
-
circle: true,
|
|
297
|
-
size: "large"
|
|
298
|
-
}, shareButtonProps, {
|
|
299
|
-
theme: mergedThemeRef.value.peers.Button,
|
|
300
|
-
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
301
|
-
onClick: () => {
|
|
302
|
-
var _a;
|
|
303
|
-
return (_a = onChatShare === null || onChatShare === void 0 ? void 0 : onChatShare.value) === null || _a === void 0 ? void 0 : _a.call(onChatShare);
|
|
304
|
-
}
|
|
305
|
-
}), {
|
|
306
|
-
default: () => h(UIcon, Object.assign({
|
|
307
|
-
size: 20
|
|
308
|
-
}, shareIconProps, {
|
|
309
|
-
theme: mergedThemeRef.value.peers.HeaderShareIcon,
|
|
310
|
-
themeOverrides: mergedThemeRef.value.peerOverrides.HeaderShareIcon
|
|
311
|
-
}), {
|
|
312
|
-
default: () => h(ArrowHookUpRight, null)
|
|
313
|
-
})
|
|
314
|
-
}),
|
|
315
|
-
default: () => shareButtonTooltipRef.value
|
|
316
|
-
}));
|
|
317
|
-
buttons.push(h(UTooltip, null, {
|
|
318
|
-
trigger: () => h(UButton, Object.assign({
|
|
319
|
-
secondary: true,
|
|
320
|
-
circle: true,
|
|
321
|
-
size: "large"
|
|
322
|
-
}, profileButtonProps, {
|
|
323
|
-
theme: mergedThemeRef.value.peers.Button,
|
|
324
|
-
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
325
|
-
onClick: () => {
|
|
326
|
-
var _a;
|
|
327
|
-
return (_a = onUserProfile === null || onUserProfile === void 0 ? void 0 : onUserProfile.value) === null || _a === void 0 ? void 0 : _a.call(onUserProfile);
|
|
328
|
-
}
|
|
329
|
-
}), {
|
|
330
|
-
default: () => h(UIcon, Object.assign({
|
|
331
|
-
size: 20
|
|
332
|
-
}, profileIconProps, {
|
|
333
|
-
theme: mergedThemeRef.value.peers.HeaderProfileIcon,
|
|
334
|
-
themeOverrides: mergedThemeRef.value.peerOverrides.HeaderProfileIcon
|
|
335
|
-
}), {
|
|
336
|
-
default: () => h(PersonNote, null)
|
|
337
|
-
})
|
|
338
|
-
}),
|
|
339
|
-
default: () => profileButtonTooltipRef.value
|
|
340
|
-
}));
|
|
341
|
-
buttons.push(h(UButton, Object.assign({
|
|
342
|
-
type: "primary",
|
|
343
|
-
size: "large",
|
|
344
|
-
round: true
|
|
345
|
-
}, closeButtonProps, {
|
|
346
|
-
theme: mergedThemeRef.value.peers.Button,
|
|
347
|
-
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
348
|
-
onClick: () => {
|
|
349
|
-
var _a;
|
|
350
|
-
return (_a = onChatClose === null || onChatClose === void 0 ? void 0 : onChatClose.value) === null || _a === void 0 ? void 0 : _a.call(onChatClose);
|
|
351
|
-
}
|
|
319
|
+
}), {
|
|
320
|
+
default: () => h(UIcon, Object.assign({
|
|
321
|
+
size: 20
|
|
322
|
+
}, profileIconProps, {
|
|
323
|
+
theme: mergedThemeRef.value.peers.HeaderProfileIcon,
|
|
324
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.HeaderProfileIcon
|
|
352
325
|
}), {
|
|
353
|
-
default: () =>
|
|
354
|
-
})
|
|
355
|
-
|
|
356
|
-
|
|
326
|
+
default: () => h(PersonNote, null)
|
|
327
|
+
})
|
|
328
|
+
}),
|
|
329
|
+
default: () => profileButtonTooltipRef.value
|
|
357
330
|
}));
|
|
358
|
-
|
|
331
|
+
buttons.push(h(UButton, Object.assign({
|
|
332
|
+
type: "primary",
|
|
333
|
+
size: "large",
|
|
334
|
+
round: true
|
|
335
|
+
}, closeButtonProps, {
|
|
336
|
+
theme: mergedThemeRef.value.peers.Button,
|
|
337
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
338
|
+
onClick: () => {
|
|
339
|
+
var _a;
|
|
340
|
+
return (_a = onChatClose === null || onChatClose === void 0 ? void 0 : onChatClose.value) === null || _a === void 0 ? void 0 : _a.call(onChatClose);
|
|
341
|
+
}
|
|
342
|
+
}), {
|
|
343
|
+
default: () => closeButtonTextRef.value
|
|
344
|
+
}));
|
|
345
|
+
return buttons;
|
|
346
|
+
})
|
|
359
347
|
}));
|
|
360
348
|
};
|
|
361
349
|
const renderMessages = () => {
|
|
@@ -408,7 +396,7 @@ export default defineComponent({
|
|
|
408
396
|
if (isSending.value) {
|
|
409
397
|
return;
|
|
410
398
|
}
|
|
411
|
-
const hasContent = inputValue.value
|
|
399
|
+
const hasContent = inputValue.value;
|
|
412
400
|
const hasAttachments = attachmentFileList.value.length > 0;
|
|
413
401
|
if ((editMessageIdRef === null || editMessageIdRef === void 0 ? void 0 : editMessageIdRef.value) && hasContent) {
|
|
414
402
|
isSending.value = true;
|
|
@@ -416,7 +404,7 @@ export default defineComponent({
|
|
|
416
404
|
const messageToEdit = editingMessage.value;
|
|
417
405
|
if (messageToEdit) {
|
|
418
406
|
const updatedMessage = Object.assign(Object.assign({}, messageToEdit), {
|
|
419
|
-
content: inputValue.value
|
|
407
|
+
content: inputValue.value
|
|
420
408
|
});
|
|
421
409
|
const bubbleActions = bubbleActionsRef === null || bubbleActionsRef === void 0 ? void 0 : bubbleActionsRef.value;
|
|
422
410
|
if (bubbleActions) {
|
|
@@ -466,7 +454,7 @@ export default defineComponent({
|
|
|
466
454
|
}
|
|
467
455
|
return result;
|
|
468
456
|
})() : undefined;
|
|
469
|
-
handleMessageSend(inputValue.value
|
|
457
|
+
handleMessageSend(inputValue.value, attachments);
|
|
470
458
|
inputValue.value = '';
|
|
471
459
|
attachmentFileList.value = [];
|
|
472
460
|
chatInputs.value[selectedChatRef.value.id] = '';
|
|
@@ -597,10 +585,14 @@ export default defineComponent({
|
|
|
597
585
|
ref: "inputRef",
|
|
598
586
|
value: inputValue.value,
|
|
599
587
|
placeholder: inputPlaceholderRef.value,
|
|
600
|
-
class: `${mergedClsPrefixRef.value}-chat-main__input
|
|
601
|
-
}, footerInputPropsRef.value, {
|
|
588
|
+
class: `${mergedClsPrefixRef.value}-chat-main__input`,
|
|
602
589
|
theme: mergedThemeRef.value.peers.Input,
|
|
603
590
|
themeOverrides: mergedThemeRef.value.peerOverrides.Input,
|
|
591
|
+
type: "textarea",
|
|
592
|
+
autosize: {
|
|
593
|
+
minRows: 1,
|
|
594
|
+
maxRows: 5
|
|
595
|
+
},
|
|
604
596
|
onUpdateValue: value => {
|
|
605
597
|
inputValue.value = value;
|
|
606
598
|
if (selectedChatRef.value) {
|
|
@@ -614,7 +606,7 @@ export default defineComponent({
|
|
|
614
606
|
void handleSendMessage();
|
|
615
607
|
}
|
|
616
608
|
}
|
|
617
|
-
}), {
|
|
609
|
+
}, footerInputPropsRef.value), {
|
|
618
610
|
prefix: () => renderEditingBlock(),
|
|
619
611
|
suffix: () => h(UIcon, Object.assign({
|
|
620
612
|
size: 24,
|
|
@@ -90,6 +90,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
90
90
|
borderFocus: string;
|
|
91
91
|
boxShadowFocus: string;
|
|
92
92
|
loadingColor: string;
|
|
93
|
+
loadingColorSuccess: string;
|
|
94
|
+
borderSuccess: string;
|
|
95
|
+
borderHoverSuccess: string;
|
|
96
|
+
colorFocusSuccess: string;
|
|
97
|
+
borderFocusSuccess: string;
|
|
98
|
+
boxShadowFocusSuccess: string;
|
|
99
|
+
caretColorSuccess: string;
|
|
93
100
|
loadingColorWarning: string;
|
|
94
101
|
borderWarning: string;
|
|
95
102
|
borderHoverWarning: string;
|
|
@@ -1045,6 +1052,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
1045
1052
|
borderFocus: string;
|
|
1046
1053
|
boxShadowFocus: string;
|
|
1047
1054
|
loadingColor: string;
|
|
1055
|
+
loadingColorSuccess: string;
|
|
1056
|
+
borderSuccess: string;
|
|
1057
|
+
borderHoverSuccess: string;
|
|
1058
|
+
colorFocusSuccess: string;
|
|
1059
|
+
borderFocusSuccess: string;
|
|
1060
|
+
boxShadowFocusSuccess: string;
|
|
1061
|
+
caretColorSuccess: string;
|
|
1048
1062
|
loadingColorWarning: string;
|
|
1049
1063
|
borderWarning: string;
|
|
1050
1064
|
borderHoverWarning: string;
|
|
@@ -134,23 +134,28 @@ export default cB('chat', `
|
|
|
134
134
|
width: 100%;
|
|
135
135
|
padding: 24px 20px 10px 24px;
|
|
136
136
|
flex-shrink: 0;
|
|
137
|
+
`), cE('header-inner', `
|
|
138
|
+
display: grid;
|
|
139
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
140
|
+
align-items: flex-start;
|
|
141
|
+
gap: 8px;
|
|
142
|
+
`), cE('header-title-wrap', `
|
|
143
|
+
min-width: 0;
|
|
144
|
+
overflow: hidden;
|
|
137
145
|
`), cE('header-title', `
|
|
138
146
|
color: var(--u-header-title-color);
|
|
139
|
-
|
|
140
|
-
min-width: 0;
|
|
147
|
+
display: block;
|
|
141
148
|
overflow: hidden;
|
|
142
|
-
text-overflow: ellipsis;
|
|
143
149
|
white-space: nowrap;
|
|
144
|
-
|
|
145
|
-
|
|
150
|
+
text-overflow: ellipsis;
|
|
151
|
+
width: 100%;
|
|
146
152
|
`), cE('header-subtitle', `
|
|
147
153
|
display: block;
|
|
148
154
|
color: var(--u-sidebar-item-subtitle-color);
|
|
149
155
|
overflow: hidden;
|
|
150
156
|
text-overflow: ellipsis;
|
|
151
157
|
white-space: nowrap;
|
|
152
|
-
|
|
153
|
-
maxWidth: 100%;
|
|
158
|
+
width: 100%;
|
|
154
159
|
`), cE('header-actions', `
|
|
155
160
|
padding: 4px;
|
|
156
161
|
flex-shrink: 0;
|
|
@@ -253,6 +258,7 @@ export default cB('chat', `
|
|
|
253
258
|
height: 44px;
|
|
254
259
|
`)]), cE('message-text', `
|
|
255
260
|
padding: 12px 16px;
|
|
261
|
+
white-space: pre-wrap;
|
|
256
262
|
`), cE('message-attachment', `
|
|
257
263
|
display: flex;
|
|
258
264
|
align-items: center;
|
|
@@ -329,6 +335,7 @@ export default cB('chat', `
|
|
|
329
335
|
`, [c('.u-input-wrapper', `
|
|
330
336
|
flex-wrap: wrap;
|
|
331
337
|
padding: 0 4px;
|
|
338
|
+
height: 100%;
|
|
332
339
|
`, [c('.u-input__prefix', `
|
|
333
340
|
width: 100%;
|
|
334
341
|
margin: 0;
|
|
@@ -339,13 +346,20 @@ export default cB('chat', `
|
|
|
339
346
|
border-top-right-radius: 12px;
|
|
340
347
|
`), c('li', `
|
|
341
348
|
padding: 12px;
|
|
342
|
-
`)]), c('.u-
|
|
343
|
-
padding:
|
|
349
|
+
`)]), c('.u-input__textarea-el', `
|
|
350
|
+
padding-top: 12px;
|
|
351
|
+
padding-left: 12px;
|
|
352
|
+
padding-right: 48px;
|
|
344
353
|
`), c('.u-input__placeholder', `
|
|
345
|
-
|
|
354
|
+
padding-top: 12px;
|
|
355
|
+
padding-left: 12px;
|
|
356
|
+
padding-right: 48px;
|
|
346
357
|
`)])]), cE('editing-block', `
|
|
347
358
|
width: 100%;
|
|
348
359
|
`), cE('input-suffix', `
|
|
360
|
+
position: absolute;
|
|
361
|
+
right: 12px;
|
|
362
|
+
bottom: 12px;
|
|
349
363
|
color: var(--u-input-suffix-color) !important;
|
|
350
364
|
cursor: pointer;
|
|
351
365
|
margin-right: 4px;
|
package/es/chat/styles/dark.d.ts
CHANGED
|
@@ -75,6 +75,13 @@ declare const chatDark: import("../../_mixins").Theme<"Chat", {
|
|
|
75
75
|
borderFocus: string;
|
|
76
76
|
boxShadowFocus: string;
|
|
77
77
|
loadingColor: string;
|
|
78
|
+
loadingColorSuccess: string;
|
|
79
|
+
borderSuccess: string;
|
|
80
|
+
borderHoverSuccess: string;
|
|
81
|
+
colorFocusSuccess: string;
|
|
82
|
+
borderFocusSuccess: string;
|
|
83
|
+
boxShadowFocusSuccess: string;
|
|
84
|
+
caretColorSuccess: string;
|
|
78
85
|
loadingColorWarning: string;
|
|
79
86
|
borderWarning: string;
|
|
80
87
|
borderHoverWarning: string;
|
|
@@ -113,6 +113,13 @@ declare const chatLight: import("../../_mixins").Theme<"Chat", {
|
|
|
113
113
|
borderFocus: string;
|
|
114
114
|
boxShadowFocus: string;
|
|
115
115
|
loadingColor: string;
|
|
116
|
+
loadingColorSuccess: string;
|
|
117
|
+
borderSuccess: string;
|
|
118
|
+
borderHoverSuccess: string;
|
|
119
|
+
colorFocusSuccess: string;
|
|
120
|
+
borderFocusSuccess: string;
|
|
121
|
+
boxShadowFocusSuccess: string;
|
|
122
|
+
caretColorSuccess: string;
|
|
116
123
|
loadingColorWarning: string;
|
|
117
124
|
borderWarning: string;
|
|
118
125
|
borderHoverWarning: string;
|
package/es/chat/styles/light.mjs
CHANGED
|
@@ -20,6 +20,7 @@ const chatInputLight = Object.assign(Object.assign({}, inputLight), {
|
|
|
20
20
|
return Object.assign(Object.assign({}, originalInputSelf), {
|
|
21
21
|
color: elementsTertiary,
|
|
22
22
|
colorFocus: elementsTertiary,
|
|
23
|
+
heightMedium: '45px',
|
|
23
24
|
border: 'none',
|
|
24
25
|
borderFocus: 'none',
|
|
25
26
|
borderHover: 'none',
|
|
@@ -77,6 +77,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
77
77
|
borderFocus: string;
|
|
78
78
|
boxShadowFocus: string;
|
|
79
79
|
loadingColor: string;
|
|
80
|
+
loadingColorSuccess: string;
|
|
81
|
+
borderSuccess: string;
|
|
82
|
+
borderHoverSuccess: string;
|
|
83
|
+
colorFocusSuccess: string;
|
|
84
|
+
borderFocusSuccess: string;
|
|
85
|
+
boxShadowFocusSuccess: string;
|
|
86
|
+
caretColorSuccess: string;
|
|
80
87
|
loadingColorWarning: string;
|
|
81
88
|
borderWarning: string;
|
|
82
89
|
borderHoverWarning: string;
|
|
@@ -109,6 +109,13 @@ export declare const colorPickerProps: {
|
|
|
109
109
|
borderFocus: string;
|
|
110
110
|
boxShadowFocus: string;
|
|
111
111
|
loadingColor: string;
|
|
112
|
+
loadingColorSuccess: string;
|
|
113
|
+
borderSuccess: string;
|
|
114
|
+
borderHoverSuccess: string;
|
|
115
|
+
colorFocusSuccess: string;
|
|
116
|
+
borderFocusSuccess: string;
|
|
117
|
+
boxShadowFocusSuccess: string;
|
|
118
|
+
caretColorSuccess: string;
|
|
112
119
|
loadingColorWarning: string;
|
|
113
120
|
borderWarning: string;
|
|
114
121
|
borderHoverWarning: string;
|
|
@@ -413,6 +420,13 @@ export declare const colorPickerProps: {
|
|
|
413
420
|
borderFocus: string;
|
|
414
421
|
boxShadowFocus: string;
|
|
415
422
|
loadingColor: string;
|
|
423
|
+
loadingColorSuccess: string;
|
|
424
|
+
borderSuccess: string;
|
|
425
|
+
borderHoverSuccess: string;
|
|
426
|
+
colorFocusSuccess: string;
|
|
427
|
+
borderFocusSuccess: string;
|
|
428
|
+
boxShadowFocusSuccess: string;
|
|
429
|
+
caretColorSuccess: string;
|
|
416
430
|
loadingColorWarning: string;
|
|
417
431
|
borderWarning: string;
|
|
418
432
|
borderHoverWarning: string;
|
|
@@ -717,6 +731,13 @@ export declare const colorPickerProps: {
|
|
|
717
731
|
borderFocus: string;
|
|
718
732
|
boxShadowFocus: string;
|
|
719
733
|
loadingColor: string;
|
|
734
|
+
loadingColorSuccess: string;
|
|
735
|
+
borderSuccess: string;
|
|
736
|
+
borderHoverSuccess: string;
|
|
737
|
+
colorFocusSuccess: string;
|
|
738
|
+
borderFocusSuccess: string;
|
|
739
|
+
boxShadowFocusSuccess: string;
|
|
740
|
+
caretColorSuccess: string;
|
|
720
741
|
loadingColorWarning: string;
|
|
721
742
|
borderWarning: string;
|
|
722
743
|
borderHoverWarning: string;
|
|
@@ -1077,6 +1098,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1077
1098
|
borderFocus: string;
|
|
1078
1099
|
boxShadowFocus: string;
|
|
1079
1100
|
loadingColor: string;
|
|
1101
|
+
loadingColorSuccess: string;
|
|
1102
|
+
borderSuccess: string;
|
|
1103
|
+
borderHoverSuccess: string;
|
|
1104
|
+
colorFocusSuccess: string;
|
|
1105
|
+
borderFocusSuccess: string;
|
|
1106
|
+
boxShadowFocusSuccess: string;
|
|
1107
|
+
caretColorSuccess: string;
|
|
1080
1108
|
loadingColorWarning: string;
|
|
1081
1109
|
borderWarning: string;
|
|
1082
1110
|
borderHoverWarning: string;
|
|
@@ -1381,6 +1409,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1381
1409
|
borderFocus: string;
|
|
1382
1410
|
boxShadowFocus: string;
|
|
1383
1411
|
loadingColor: string;
|
|
1412
|
+
loadingColorSuccess: string;
|
|
1413
|
+
borderSuccess: string;
|
|
1414
|
+
borderHoverSuccess: string;
|
|
1415
|
+
colorFocusSuccess: string;
|
|
1416
|
+
borderFocusSuccess: string;
|
|
1417
|
+
boxShadowFocusSuccess: string;
|
|
1418
|
+
caretColorSuccess: string;
|
|
1384
1419
|
loadingColorWarning: string;
|
|
1385
1420
|
borderWarning: string;
|
|
1386
1421
|
borderHoverWarning: string;
|
|
@@ -1685,6 +1720,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1685
1720
|
borderFocus: string;
|
|
1686
1721
|
boxShadowFocus: string;
|
|
1687
1722
|
loadingColor: string;
|
|
1723
|
+
loadingColorSuccess: string;
|
|
1724
|
+
borderSuccess: string;
|
|
1725
|
+
borderHoverSuccess: string;
|
|
1726
|
+
colorFocusSuccess: string;
|
|
1727
|
+
borderFocusSuccess: string;
|
|
1728
|
+
boxShadowFocusSuccess: string;
|
|
1729
|
+
caretColorSuccess: string;
|
|
1688
1730
|
loadingColorWarning: string;
|
|
1689
1731
|
borderWarning: string;
|
|
1690
1732
|
borderHoverWarning: string;
|
|
@@ -2065,6 +2107,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2065
2107
|
borderFocus: string;
|
|
2066
2108
|
boxShadowFocus: string;
|
|
2067
2109
|
loadingColor: string;
|
|
2110
|
+
loadingColorSuccess: string;
|
|
2111
|
+
borderSuccess: string;
|
|
2112
|
+
borderHoverSuccess: string;
|
|
2113
|
+
colorFocusSuccess: string;
|
|
2114
|
+
borderFocusSuccess: string;
|
|
2115
|
+
boxShadowFocusSuccess: string;
|
|
2116
|
+
caretColorSuccess: string;
|
|
2068
2117
|
loadingColorWarning: string;
|
|
2069
2118
|
borderWarning: string;
|
|
2070
2119
|
borderHoverWarning: string;
|
|
@@ -2369,6 +2418,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2369
2418
|
borderFocus: string;
|
|
2370
2419
|
boxShadowFocus: string;
|
|
2371
2420
|
loadingColor: string;
|
|
2421
|
+
loadingColorSuccess: string;
|
|
2422
|
+
borderSuccess: string;
|
|
2423
|
+
borderHoverSuccess: string;
|
|
2424
|
+
colorFocusSuccess: string;
|
|
2425
|
+
borderFocusSuccess: string;
|
|
2426
|
+
boxShadowFocusSuccess: string;
|
|
2427
|
+
caretColorSuccess: string;
|
|
2372
2428
|
loadingColorWarning: string;
|
|
2373
2429
|
borderWarning: string;
|
|
2374
2430
|
borderHoverWarning: string;
|
|
@@ -2673,6 +2729,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2673
2729
|
borderFocus: string;
|
|
2674
2730
|
boxShadowFocus: string;
|
|
2675
2731
|
loadingColor: string;
|
|
2732
|
+
loadingColorSuccess: string;
|
|
2733
|
+
borderSuccess: string;
|
|
2734
|
+
borderHoverSuccess: string;
|
|
2735
|
+
colorFocusSuccess: string;
|
|
2736
|
+
borderFocusSuccess: string;
|
|
2737
|
+
boxShadowFocusSuccess: string;
|
|
2738
|
+
caretColorSuccess: string;
|
|
2676
2739
|
loadingColorWarning: string;
|
|
2677
2740
|
borderWarning: string;
|
|
2678
2741
|
borderHoverWarning: string;
|
|
@@ -80,6 +80,13 @@ declare const colorPickerLight: import("../../_mixins").Theme<"ColorPicker", {
|
|
|
80
80
|
borderFocus: string;
|
|
81
81
|
boxShadowFocus: string;
|
|
82
82
|
loadingColor: string;
|
|
83
|
+
loadingColorSuccess: string;
|
|
84
|
+
borderSuccess: string;
|
|
85
|
+
borderHoverSuccess: string;
|
|
86
|
+
colorFocusSuccess: string;
|
|
87
|
+
borderFocusSuccess: string;
|
|
88
|
+
boxShadowFocusSuccess: string;
|
|
89
|
+
caretColorSuccess: string;
|
|
83
90
|
loadingColorWarning: string;
|
|
84
91
|
borderWarning: string;
|
|
85
92
|
borderHoverWarning: string;
|