@uzum-tech/ui 2.0.0-beta.7 → 2.0.0-beta.9
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 +268 -180
- package/dist/index.mjs +268 -180
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_internal/select-menu/src/SelectOption.mjs +12 -4
- 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 +1042 -5
- 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/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/tooltip/index.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +84 -70
- package/es/tooltip/src/Tooltip.mjs +18 -3
- 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/select-menu/src/SelectOption.js +8 -4
- 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 +1042 -5
- 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/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/tooltip/index.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +84 -70
- package/lib/tooltip/src/Tooltip.js +9 -3
- 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 +1 -1
- package/web-types.json +39 -3
|
@@ -128,6 +128,13 @@ export declare const chatMessagesProps: {
|
|
|
128
128
|
borderFocus: string;
|
|
129
129
|
boxShadowFocus: string;
|
|
130
130
|
loadingColor: string;
|
|
131
|
+
loadingColorSuccess: string;
|
|
132
|
+
borderSuccess: string;
|
|
133
|
+
borderHoverSuccess: string;
|
|
134
|
+
colorFocusSuccess: string;
|
|
135
|
+
borderFocusSuccess: string;
|
|
136
|
+
boxShadowFocusSuccess: string;
|
|
137
|
+
caretColorSuccess: string;
|
|
131
138
|
loadingColorWarning: string;
|
|
132
139
|
borderWarning: string;
|
|
133
140
|
borderHoverWarning: string;
|
|
@@ -826,6 +833,13 @@ export declare const chatMessagesProps: {
|
|
|
826
833
|
borderFocus: string;
|
|
827
834
|
boxShadowFocus: string;
|
|
828
835
|
loadingColor: string;
|
|
836
|
+
loadingColorSuccess: string;
|
|
837
|
+
borderSuccess: string;
|
|
838
|
+
borderHoverSuccess: string;
|
|
839
|
+
colorFocusSuccess: string;
|
|
840
|
+
borderFocusSuccess: string;
|
|
841
|
+
boxShadowFocusSuccess: string;
|
|
842
|
+
caretColorSuccess: string;
|
|
829
843
|
loadingColorWarning: string;
|
|
830
844
|
borderWarning: string;
|
|
831
845
|
borderHoverWarning: string;
|
|
@@ -1524,6 +1538,13 @@ export declare const chatMessagesProps: {
|
|
|
1524
1538
|
borderFocus: string;
|
|
1525
1539
|
boxShadowFocus: string;
|
|
1526
1540
|
loadingColor: string;
|
|
1541
|
+
loadingColorSuccess: string;
|
|
1542
|
+
borderSuccess: string;
|
|
1543
|
+
borderHoverSuccess: string;
|
|
1544
|
+
colorFocusSuccess: string;
|
|
1545
|
+
borderFocusSuccess: string;
|
|
1546
|
+
boxShadowFocusSuccess: string;
|
|
1547
|
+
caretColorSuccess: string;
|
|
1527
1548
|
loadingColorWarning: string;
|
|
1528
1549
|
borderWarning: string;
|
|
1529
1550
|
borderHoverWarning: string;
|
|
@@ -2273,6 +2294,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2273
2294
|
borderFocus: string;
|
|
2274
2295
|
boxShadowFocus: string;
|
|
2275
2296
|
loadingColor: string;
|
|
2297
|
+
loadingColorSuccess: string;
|
|
2298
|
+
borderSuccess: string;
|
|
2299
|
+
borderHoverSuccess: string;
|
|
2300
|
+
colorFocusSuccess: string;
|
|
2301
|
+
borderFocusSuccess: string;
|
|
2302
|
+
boxShadowFocusSuccess: string;
|
|
2303
|
+
caretColorSuccess: string;
|
|
2276
2304
|
loadingColorWarning: string;
|
|
2277
2305
|
borderWarning: string;
|
|
2278
2306
|
borderHoverWarning: string;
|
|
@@ -2971,6 +2999,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2971
2999
|
borderFocus: string;
|
|
2972
3000
|
boxShadowFocus: string;
|
|
2973
3001
|
loadingColor: string;
|
|
3002
|
+
loadingColorSuccess: string;
|
|
3003
|
+
borderSuccess: string;
|
|
3004
|
+
borderHoverSuccess: string;
|
|
3005
|
+
colorFocusSuccess: string;
|
|
3006
|
+
borderFocusSuccess: string;
|
|
3007
|
+
boxShadowFocusSuccess: string;
|
|
3008
|
+
caretColorSuccess: string;
|
|
2974
3009
|
loadingColorWarning: string;
|
|
2975
3010
|
borderWarning: string;
|
|
2976
3011
|
borderHoverWarning: string;
|
|
@@ -3669,6 +3704,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3669
3704
|
borderFocus: string;
|
|
3670
3705
|
boxShadowFocus: string;
|
|
3671
3706
|
loadingColor: string;
|
|
3707
|
+
loadingColorSuccess: string;
|
|
3708
|
+
borderSuccess: string;
|
|
3709
|
+
borderHoverSuccess: string;
|
|
3710
|
+
colorFocusSuccess: string;
|
|
3711
|
+
borderFocusSuccess: string;
|
|
3712
|
+
boxShadowFocusSuccess: string;
|
|
3713
|
+
caretColorSuccess: string;
|
|
3672
3714
|
loadingColorWarning: string;
|
|
3673
3715
|
borderWarning: string;
|
|
3674
3716
|
borderHoverWarning: string;
|
|
@@ -4372,6 +4414,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4372
4414
|
borderFocus: string;
|
|
4373
4415
|
boxShadowFocus: string;
|
|
4374
4416
|
loadingColor: string;
|
|
4417
|
+
loadingColorSuccess: string;
|
|
4418
|
+
borderSuccess: string;
|
|
4419
|
+
borderHoverSuccess: string;
|
|
4420
|
+
colorFocusSuccess: string;
|
|
4421
|
+
borderFocusSuccess: string;
|
|
4422
|
+
boxShadowFocusSuccess: string;
|
|
4423
|
+
caretColorSuccess: string;
|
|
4375
4424
|
loadingColorWarning: string;
|
|
4376
4425
|
borderWarning: string;
|
|
4377
4426
|
borderHoverWarning: string;
|
|
@@ -5327,6 +5376,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5327
5376
|
borderFocus: string;
|
|
5328
5377
|
boxShadowFocus: string;
|
|
5329
5378
|
loadingColor: string;
|
|
5379
|
+
loadingColorSuccess: string;
|
|
5380
|
+
borderSuccess: string;
|
|
5381
|
+
borderHoverSuccess: string;
|
|
5382
|
+
colorFocusSuccess: string;
|
|
5383
|
+
borderFocusSuccess: string;
|
|
5384
|
+
boxShadowFocusSuccess: string;
|
|
5385
|
+
caretColorSuccess: string;
|
|
5330
5386
|
loadingColorWarning: string;
|
|
5331
5387
|
borderWarning: string;
|
|
5332
5388
|
borderHoverWarning: string;
|
|
@@ -6282,6 +6338,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6282
6338
|
borderFocus: string;
|
|
6283
6339
|
boxShadowFocus: string;
|
|
6284
6340
|
loadingColor: string;
|
|
6341
|
+
loadingColorSuccess: string;
|
|
6342
|
+
borderSuccess: string;
|
|
6343
|
+
borderHoverSuccess: string;
|
|
6344
|
+
colorFocusSuccess: string;
|
|
6345
|
+
borderFocusSuccess: string;
|
|
6346
|
+
boxShadowFocusSuccess: string;
|
|
6347
|
+
caretColorSuccess: string;
|
|
6285
6348
|
loadingColorWarning: string;
|
|
6286
6349
|
borderWarning: string;
|
|
6287
6350
|
borderHoverWarning: string;
|
|
@@ -7324,6 +7387,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7324
7387
|
borderFocus: string;
|
|
7325
7388
|
boxShadowFocus: string;
|
|
7326
7389
|
loadingColor: string;
|
|
7390
|
+
loadingColorSuccess: string;
|
|
7391
|
+
borderSuccess: string;
|
|
7392
|
+
borderHoverSuccess: string;
|
|
7393
|
+
colorFocusSuccess: string;
|
|
7394
|
+
borderFocusSuccess: string;
|
|
7395
|
+
boxShadowFocusSuccess: string;
|
|
7396
|
+
caretColorSuccess: string;
|
|
7327
7397
|
loadingColorWarning: string;
|
|
7328
7398
|
borderWarning: string;
|
|
7329
7399
|
borderHoverWarning: string;
|
|
@@ -8022,6 +8092,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8022
8092
|
borderFocus: string;
|
|
8023
8093
|
boxShadowFocus: string;
|
|
8024
8094
|
loadingColor: string;
|
|
8095
|
+
loadingColorSuccess: string;
|
|
8096
|
+
borderSuccess: string;
|
|
8097
|
+
borderHoverSuccess: string;
|
|
8098
|
+
colorFocusSuccess: string;
|
|
8099
|
+
borderFocusSuccess: string;
|
|
8100
|
+
boxShadowFocusSuccess: string;
|
|
8101
|
+
caretColorSuccess: string;
|
|
8025
8102
|
loadingColorWarning: string;
|
|
8026
8103
|
borderWarning: string;
|
|
8027
8104
|
borderHoverWarning: string;
|
|
@@ -8720,6 +8797,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8720
8797
|
borderFocus: string;
|
|
8721
8798
|
boxShadowFocus: string;
|
|
8722
8799
|
loadingColor: string;
|
|
8800
|
+
loadingColorSuccess: string;
|
|
8801
|
+
borderSuccess: string;
|
|
8802
|
+
borderHoverSuccess: string;
|
|
8803
|
+
colorFocusSuccess: string;
|
|
8804
|
+
borderFocusSuccess: string;
|
|
8805
|
+
boxShadowFocusSuccess: string;
|
|
8806
|
+
caretColorSuccess: string;
|
|
8723
8807
|
loadingColorWarning: string;
|
|
8724
8808
|
borderWarning: string;
|
|
8725
8809
|
borderHoverWarning: string;
|
|
@@ -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;
|