@uzum-tech/ui 2.0.0-beta.8 → 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.
Files changed (180) hide show
  1. package/dist/index.js +246 -177
  2. package/dist/index.mjs +246 -177
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/_internal/select-menu/src/SelectOption.mjs +12 -4
  6. package/es/_utils/wrap-component.mjs +3 -1
  7. package/es/auto-complete/src/AutoComplete.d.ts +70 -0
  8. package/es/auto-complete/styles/light.d.ts +7 -0
  9. package/es/carousel/src/Carousel.mjs +39 -13
  10. package/es/chat/src/Chat.d.ts +70 -0
  11. package/es/chat/src/ChatListItems.d.ts +84 -0
  12. package/es/chat/src/ChatMessages.d.ts +84 -0
  13. package/es/chat/src/ChatParts/MainArea.mjs +104 -112
  14. package/es/chat/src/ChatParts/Sidebar.d.ts +14 -0
  15. package/es/chat/src/styles/index.cssr.mjs +24 -10
  16. package/es/chat/styles/dark.d.ts +7 -0
  17. package/es/chat/styles/light.d.ts +7 -0
  18. package/es/chat/styles/light.mjs +1 -0
  19. package/es/color-picker/src/ColorInputUnit.d.ts +7 -0
  20. package/es/color-picker/src/ColorPicker.d.ts +63 -0
  21. package/es/color-picker/styles/light.d.ts +7 -0
  22. package/es/components.d.ts +1033 -5
  23. package/es/data-table/src/DataTable.d.ts +56 -0
  24. package/es/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
  25. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
  26. package/es/data-table/src/TableParts/Body.d.ts +28 -0
  27. package/es/data-table/src/TableParts/Header.d.ts +28 -0
  28. package/es/data-table/src/interface.d.ts +21 -0
  29. package/es/data-table/styles/light.d.ts +7 -0
  30. package/es/date-picker/src/DatePicker.d.ts +147 -0
  31. package/es/date-picker/src/panel/date.d.ts +42 -0
  32. package/es/date-picker/src/panel/daterange.d.ts +42 -0
  33. package/es/date-picker/src/panel/datetime.d.ts +42 -0
  34. package/es/date-picker/src/panel/datetimerange.d.ts +42 -0
  35. package/es/date-picker/src/panel/panelMonth.d.ts +168 -0
  36. package/es/date-picker/src/panel/panelMonthContent.d.ts +42 -0
  37. package/es/date-picker/src/panel/panelYear.d.ts +168 -0
  38. package/es/date-picker/src/panel/panelYearContent.d.ts +42 -0
  39. package/es/date-picker/src/panel/use-calendar.d.ts +42 -0
  40. package/es/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
  41. package/es/date-picker/src/panel/use-panel-common.d.ts +42 -0
  42. package/es/date-picker/styles/light.d.ts +14 -0
  43. package/es/date-picker-v2/src/DatePickerV2.d.ts +70 -0
  44. package/es/date-picker-v2/styles/dark.d.ts +7 -0
  45. package/es/date-picker-v2/styles/light.d.ts +7 -0
  46. package/es/dialog/src/DialogEnvironment.mjs +1 -2
  47. package/es/dynamic-input/src/DynamicInput.d.ts +70 -0
  48. package/es/dynamic-input/src/InputPreset.d.ts +14 -0
  49. package/es/dynamic-input/src/PairPreset.d.ts +14 -0
  50. package/es/dynamic-input/styles/light.d.ts +7 -0
  51. package/es/dynamic-tags/src/DynamicTags.d.ts +70 -0
  52. package/es/dynamic-tags/styles/light.d.ts +7 -0
  53. package/es/input/src/Input.d.ts +77 -0
  54. package/es/input/src/Input.mjs +15 -0
  55. package/es/input/src/InputGroupLabel.d.ts +63 -0
  56. package/es/input/src/styles/input.cssr.mjs +1 -1
  57. package/es/input/styles/light.d.ts +7 -0
  58. package/es/input/styles/light.mjs +11 -0
  59. package/es/input-number/src/InputNumber.d.ts +70 -0
  60. package/es/input-number/styles/light.d.ts +7 -0
  61. package/es/input-otp/src/InputOtp.d.ts +70 -0
  62. package/es/input-otp/styles/light.d.ts +7 -0
  63. package/es/legacy-transfer/src/Transfer.d.ts +70 -0
  64. package/es/legacy-transfer/src/TransferFilter.d.ts +14 -0
  65. package/es/legacy-transfer/src/TransferList.d.ts +14 -0
  66. package/es/legacy-transfer/src/TransferListItem.d.ts +14 -0
  67. package/es/legacy-transfer/styles/light.d.ts +7 -0
  68. package/es/mapping-card/src/MappingCard.d.ts +9 -0
  69. package/es/mapping-card/src/MappingCardParts/Header.mjs +1 -1
  70. package/es/mapping-card/src/interface.d.ts +5 -0
  71. package/es/mapping-card/src/interface.mjs +4 -0
  72. package/es/mention/src/Mention.d.ts +70 -0
  73. package/es/mention/styles/light.d.ts +7 -0
  74. package/es/modal/src/BodyWrapper.d.ts +0 -3
  75. package/es/modal/src/Modal.d.ts +13 -7
  76. package/es/modal/src/Modal.mjs +5 -2
  77. package/es/modal/src/ModalEnvironment.d.ts +9 -5
  78. package/es/modal/src/presetProps.d.ts +1 -2
  79. package/es/modal/src/presetProps.mjs +0 -1
  80. package/es/pagination/src/Pagination.d.ts +70 -0
  81. package/es/pagination/styles/light.d.ts +7 -0
  82. package/es/time-picker/src/Panel.d.ts +14 -0
  83. package/es/time-picker/src/TimePicker.d.ts +70 -0
  84. package/es/time-picker/styles/light.d.ts +7 -0
  85. package/es/transfer/src/Transfer.d.ts +70 -0
  86. package/es/transfer/src/TransferFilter.d.ts +14 -0
  87. package/es/transfer/src/TransferList.d.ts +14 -0
  88. package/es/transfer/src/TransferListItem.d.ts +14 -0
  89. package/es/transfer/styles/light.d.ts +7 -0
  90. package/es/version.d.ts +1 -1
  91. package/es/version.mjs +1 -1
  92. package/lib/_internal/select-menu/src/SelectOption.js +8 -4
  93. package/lib/_utils/wrap-component.js +3 -1
  94. package/lib/auto-complete/src/AutoComplete.d.ts +70 -0
  95. package/lib/auto-complete/styles/light.d.ts +7 -0
  96. package/lib/carousel/src/Carousel.js +26 -13
  97. package/lib/chat/src/Chat.d.ts +70 -0
  98. package/lib/chat/src/ChatListItems.d.ts +84 -0
  99. package/lib/chat/src/ChatMessages.d.ts +84 -0
  100. package/lib/chat/src/ChatParts/MainArea.js +53 -61
  101. package/lib/chat/src/ChatParts/Sidebar.d.ts +14 -0
  102. package/lib/chat/src/styles/index.cssr.js +24 -10
  103. package/lib/chat/styles/dark.d.ts +7 -0
  104. package/lib/chat/styles/light.d.ts +7 -0
  105. package/lib/chat/styles/light.js +1 -1
  106. package/lib/color-picker/src/ColorInputUnit.d.ts +7 -0
  107. package/lib/color-picker/src/ColorPicker.d.ts +63 -0
  108. package/lib/color-picker/styles/light.d.ts +7 -0
  109. package/lib/components.d.ts +1033 -5
  110. package/lib/data-table/src/DataTable.d.ts +56 -0
  111. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
  112. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
  113. package/lib/data-table/src/TableParts/Body.d.ts +28 -0
  114. package/lib/data-table/src/TableParts/Header.d.ts +28 -0
  115. package/lib/data-table/src/interface.d.ts +21 -0
  116. package/lib/data-table/styles/light.d.ts +7 -0
  117. package/lib/date-picker/src/DatePicker.d.ts +147 -0
  118. package/lib/date-picker/src/panel/date.d.ts +42 -0
  119. package/lib/date-picker/src/panel/daterange.d.ts +42 -0
  120. package/lib/date-picker/src/panel/datetime.d.ts +42 -0
  121. package/lib/date-picker/src/panel/datetimerange.d.ts +42 -0
  122. package/lib/date-picker/src/panel/panelMonth.d.ts +168 -0
  123. package/lib/date-picker/src/panel/panelMonthContent.d.ts +42 -0
  124. package/lib/date-picker/src/panel/panelYear.d.ts +168 -0
  125. package/lib/date-picker/src/panel/panelYearContent.d.ts +42 -0
  126. package/lib/date-picker/src/panel/use-calendar.d.ts +42 -0
  127. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
  128. package/lib/date-picker/src/panel/use-panel-common.d.ts +42 -0
  129. package/lib/date-picker/styles/light.d.ts +14 -0
  130. package/lib/date-picker-v2/src/DatePickerV2.d.ts +70 -0
  131. package/lib/date-picker-v2/styles/dark.d.ts +7 -0
  132. package/lib/date-picker-v2/styles/light.d.ts +7 -0
  133. package/lib/dialog/src/DialogEnvironment.js +1 -1
  134. package/lib/dynamic-input/src/DynamicInput.d.ts +70 -0
  135. package/lib/dynamic-input/src/InputPreset.d.ts +14 -0
  136. package/lib/dynamic-input/src/PairPreset.d.ts +14 -0
  137. package/lib/dynamic-input/styles/light.d.ts +7 -0
  138. package/lib/dynamic-tags/src/DynamicTags.d.ts +70 -0
  139. package/lib/dynamic-tags/styles/light.d.ts +7 -0
  140. package/lib/input/src/Input.d.ts +77 -0
  141. package/lib/input/src/Input.js +9 -1
  142. package/lib/input/src/InputGroupLabel.d.ts +63 -0
  143. package/lib/input/src/styles/input.cssr.js +1 -1
  144. package/lib/input/styles/light.d.ts +7 -0
  145. package/lib/input/styles/light.js +11 -1
  146. package/lib/input-number/src/InputNumber.d.ts +70 -0
  147. package/lib/input-number/styles/light.d.ts +7 -0
  148. package/lib/input-otp/src/InputOtp.d.ts +70 -0
  149. package/lib/input-otp/styles/light.d.ts +7 -0
  150. package/lib/legacy-transfer/src/Transfer.d.ts +70 -0
  151. package/lib/legacy-transfer/src/TransferFilter.d.ts +14 -0
  152. package/lib/legacy-transfer/src/TransferList.d.ts +14 -0
  153. package/lib/legacy-transfer/src/TransferListItem.d.ts +14 -0
  154. package/lib/legacy-transfer/styles/light.d.ts +7 -0
  155. package/lib/mapping-card/src/MappingCard.d.ts +9 -0
  156. package/lib/mapping-card/src/MappingCardParts/Header.js +2 -2
  157. package/lib/mapping-card/src/interface.d.ts +5 -0
  158. package/lib/mapping-card/src/interface.js +4 -0
  159. package/lib/mention/src/Mention.d.ts +70 -0
  160. package/lib/mention/styles/light.d.ts +7 -0
  161. package/lib/modal/src/BodyWrapper.d.ts +0 -3
  162. package/lib/modal/src/Modal.d.ts +13 -7
  163. package/lib/modal/src/Modal.js +5 -2
  164. package/lib/modal/src/ModalEnvironment.d.ts +9 -5
  165. package/lib/modal/src/presetProps.d.ts +1 -2
  166. package/lib/modal/src/presetProps.js +1 -1
  167. package/lib/pagination/src/Pagination.d.ts +70 -0
  168. package/lib/pagination/styles/light.d.ts +7 -0
  169. package/lib/time-picker/src/Panel.d.ts +14 -0
  170. package/lib/time-picker/src/TimePicker.d.ts +70 -0
  171. package/lib/time-picker/styles/light.d.ts +7 -0
  172. package/lib/transfer/src/Transfer.d.ts +70 -0
  173. package/lib/transfer/src/TransferFilter.d.ts +14 -0
  174. package/lib/transfer/src/TransferList.d.ts +14 -0
  175. package/lib/transfer/src/TransferListItem.d.ts +14 -0
  176. package/lib/transfer/styles/light.d.ts +7 -0
  177. package/lib/version.d.ts +1 -1
  178. package/lib/version.js +1 -1
  179. package/package.json +1 -1
  180. package/web-types.json +8 -1
@@ -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;
@@ -184,62 +184,51 @@ exports.default = (0, vue_1.defineComponent)({
184
184
  return value != null ? String(value) : '';
185
185
  };
186
186
  const renderHeader = () => {
187
- return ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-chat-main__header` },
188
- (0, vue_1.h)(flex_1.UFlex, { justify: "space-between", align: "flex-start", wrap: false }, {
189
- default: () => {
190
- const chat = selectedChatRef.value;
191
- const keyId = toKeyString(chat === null || chat === void 0 ? void 0 : chat.id);
192
- const keyTitle = toKeyString(chat === null || chat === void 0 ? void 0 : chat.title);
193
- return ((0, vue_1.h)(vue_1.Fragment, null,
194
- (0, vue_1.h)(flex_1.UFlex, { vertical: true, size: [0, 0], justify: "flex-start" }, {
195
- default: () => ((0, vue_1.h)(vue_1.Fragment, null,
196
- (0, vue_1.h)(typography_1.UText, { key: `${keyId}-${keyTitle}`, variant: "heading-s-bold", class: `${mergedClsPrefixRef.value}-chat-main__header-title`, theme: mergedThemeRef.value.peers.Typography, themeOverrides: mergedThemeRef.value.peerOverrides.Typography }, {
197
- default: () => { var _a, _b; return (_b = (_a = selectedChatRef.value) === null || _a === void 0 ? void 0 : _a.title) !== null && _b !== void 0 ? _b : ''; }
198
- }),
199
- isTyping.value && ((0, vue_1.h)(typography_1.UText, { class: [
200
- `${mergedClsPrefixRef.value}-chat-main__header-subtitle`,
201
- 'typing'
202
- ], variant: "body-m-medium" }, {
203
- default: () => { var _a; return (_a = typingTextRef.value) !== null && _a !== void 0 ? _a : ''; }
204
- }))))
205
- }),
206
- (0, vue_1.h)(flex_1.UFlex, { align: "center", size: "small", class: `${mergedClsPrefixRef.value}-chat-main__header-actions` }, {
207
- default: () => (0, _utils_1.resolveSlot)(slots.headerActions, () => {
208
- const shareButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerShareButtonPropsRef.value);
209
- const profileButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerProfileButtonPropsRef.value);
210
- const closeButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerCloseButtonPropsRef.value);
211
- const shareIconProps = Object.assign(Object.assign({}, headerIconPropsRef.value), headerShareIconPropsRef.value);
212
- const profileIconProps = Object.assign(Object.assign({}, headerIconPropsRef.value), headerProfileIconPropsRef.value);
213
- const buttons = [];
214
- buttons.push((0, vue_1.h)(tooltip_1.UTooltip, null, {
215
- trigger: () => ((0, vue_1.h)(button_1.UButton, Object.assign({ secondary: true, circle: true, size: "large" }, shareButtonProps, { theme: mergedThemeRef.value.peers.Button, themeOverrides: mergedThemeRef.value.peerOverrides
216
- .Button, onClick: () => { var _a; return (_a = onChatShare === null || onChatShare === void 0 ? void 0 : onChatShare.value) === null || _a === void 0 ? void 0 : _a.call(onChatShare); } }), {
217
- default: () => ((0, vue_1.h)(icon_1.UIcon, Object.assign({ size: 20 }, shareIconProps, { theme: mergedThemeRef.value.peers
218
- .HeaderShareIcon, themeOverrides: mergedThemeRef.value.peerOverrides
219
- .HeaderShareIcon }), {
220
- default: () => ((0, vue_1.h)(icons_1.ArrowHookUpRight, null))
221
- }))
222
- })),
223
- default: () => shareButtonTooltipRef.value
224
- }));
225
- buttons.push((0, vue_1.h)(tooltip_1.UTooltip, null, {
226
- trigger: () => ((0, vue_1.h)(button_1.UButton, Object.assign({ secondary: true, circle: true, size: "large" }, profileButtonProps, { theme: mergedThemeRef.value.peers.Button, themeOverrides: mergedThemeRef.value.peerOverrides
227
- .Button, onClick: () => { var _a; return (_a = onUserProfile === null || onUserProfile === void 0 ? void 0 : onUserProfile.value) === null || _a === void 0 ? void 0 : _a.call(onUserProfile); } }), {
228
- default: () => ((0, vue_1.h)(icon_1.UIcon, Object.assign({ size: 20 }, profileIconProps, { theme: mergedThemeRef.value.peers
229
- .HeaderProfileIcon, themeOverrides: mergedThemeRef.value.peerOverrides
230
- .HeaderProfileIcon }), {
231
- default: () => (0, vue_1.h)(icons_1.PersonNote, null)
232
- }))
233
- })),
234
- default: () => profileButtonTooltipRef.value
235
- }));
236
- buttons.push((0, vue_1.h)(button_1.UButton, Object.assign({ type: "primary", size: "large", round: true }, closeButtonProps, { theme: mergedThemeRef.value.peers.Button, themeOverrides: mergedThemeRef.value.peerOverrides.Button, onClick: () => { var _a; return (_a = onChatClose === null || onChatClose === void 0 ? void 0 : onChatClose.value) === null || _a === void 0 ? void 0 : _a.call(onChatClose); } }), {
237
- default: () => closeButtonTextRef.value
238
- }));
239
- return buttons;
240
- })
241
- })));
242
- }
187
+ const chat = selectedChatRef.value;
188
+ const keyId = toKeyString(chat === null || chat === void 0 ? void 0 : chat.id);
189
+ const keyTitle = toKeyString(chat === null || chat === void 0 ? void 0 : chat.title);
190
+ return ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-chat-main__header-inner` },
191
+ (0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-chat-main__header-title-wrap` },
192
+ (0, vue_1.h)(typography_1.UText, { key: `${keyId}-${keyTitle}`, variant: "heading-s-bold", class: `${mergedClsPrefixRef.value}-chat-main__header-title`, theme: mergedThemeRef.value.peers.Typography, themeOverrides: mergedThemeRef.value.peerOverrides.Typography }, {
193
+ default: () => { var _a, _b; return (_b = (_a = selectedChatRef.value) === null || _a === void 0 ? void 0 : _a.title) !== null && _b !== void 0 ? _b : ''; }
194
+ }),
195
+ isTyping.value && ((0, vue_1.h)(typography_1.UText, { class: [
196
+ `${mergedClsPrefixRef.value}-chat-main__header-subtitle`,
197
+ 'typing'
198
+ ], variant: "body-m-medium" }, {
199
+ default: () => { var _a; return (_a = typingTextRef.value) !== null && _a !== void 0 ? _a : ''; }
200
+ }))),
201
+ (0, vue_1.h)(flex_1.UFlex, { align: "center", size: "small", class: `${mergedClsPrefixRef.value}-chat-main__header-actions` }, {
202
+ default: () => (0, _utils_1.resolveSlot)(slots.headerActions, () => {
203
+ const shareButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerShareButtonPropsRef.value);
204
+ const profileButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerProfileButtonPropsRef.value);
205
+ const closeButtonProps = Object.assign(Object.assign({}, headerButtonPropsRef.value), headerCloseButtonPropsRef.value);
206
+ const shareIconProps = Object.assign(Object.assign({}, headerIconPropsRef.value), headerShareIconPropsRef.value);
207
+ const profileIconProps = Object.assign(Object.assign({}, headerIconPropsRef.value), headerProfileIconPropsRef.value);
208
+ const buttons = [];
209
+ buttons.push((0, vue_1.h)(tooltip_1.UTooltip, null, {
210
+ trigger: () => ((0, vue_1.h)(button_1.UButton, Object.assign({ secondary: true, circle: true, size: "large" }, shareButtonProps, { theme: mergedThemeRef.value.peers.Button, themeOverrides: mergedThemeRef.value.peerOverrides.Button, onClick: () => { var _a; return (_a = onChatShare === null || onChatShare === void 0 ? void 0 : onChatShare.value) === null || _a === void 0 ? void 0 : _a.call(onChatShare); } }), {
211
+ default: () => ((0, vue_1.h)(icon_1.UIcon, Object.assign({ size: 20 }, shareIconProps, { theme: mergedThemeRef.value.peers.HeaderShareIcon, themeOverrides: mergedThemeRef.value.peerOverrides
212
+ .HeaderShareIcon }), {
213
+ default: () => (0, vue_1.h)(icons_1.ArrowHookUpRight, null)
214
+ }))
215
+ })),
216
+ default: () => shareButtonTooltipRef.value
217
+ }));
218
+ buttons.push((0, vue_1.h)(tooltip_1.UTooltip, null, {
219
+ trigger: () => ((0, vue_1.h)(button_1.UButton, Object.assign({ secondary: true, circle: true, size: "large" }, profileButtonProps, { theme: mergedThemeRef.value.peers.Button, themeOverrides: mergedThemeRef.value.peerOverrides.Button, onClick: () => { var _a; return (_a = onUserProfile === null || onUserProfile === void 0 ? void 0 : onUserProfile.value) === null || _a === void 0 ? void 0 : _a.call(onUserProfile); } }), {
220
+ default: () => ((0, vue_1.h)(icon_1.UIcon, Object.assign({ size: 20 }, profileIconProps, { theme: mergedThemeRef.value.peers.HeaderProfileIcon, themeOverrides: mergedThemeRef.value.peerOverrides
221
+ .HeaderProfileIcon }), {
222
+ default: () => (0, vue_1.h)(icons_1.PersonNote, null)
223
+ }))
224
+ })),
225
+ default: () => profileButtonTooltipRef.value
226
+ }));
227
+ buttons.push((0, vue_1.h)(button_1.UButton, Object.assign({ type: "primary", size: "large", round: true }, closeButtonProps, { theme: mergedThemeRef.value.peers.Button, themeOverrides: mergedThemeRef.value.peerOverrides.Button, onClick: () => { var _a; return (_a = onChatClose === null || onChatClose === void 0 ? void 0 : onChatClose.value) === null || _a === void 0 ? void 0 : _a.call(onChatClose); } }), {
228
+ default: () => closeButtonTextRef.value
229
+ }));
230
+ return buttons;
231
+ })
243
232
  })));
244
233
  };
245
234
  const renderMessages = () => {
@@ -280,14 +269,14 @@ exports.default = (0, vue_1.defineComponent)({
280
269
  if (isSending.value) {
281
270
  return;
282
271
  }
283
- const hasContent = inputValue.value.trim();
272
+ const hasContent = inputValue.value;
284
273
  const hasAttachments = attachmentFileList.value.length > 0;
285
274
  if ((editMessageIdRef === null || editMessageIdRef === void 0 ? void 0 : editMessageIdRef.value) && hasContent) {
286
275
  isSending.value = true;
287
276
  try {
288
277
  const messageToEdit = editingMessage.value;
289
278
  if (messageToEdit) {
290
- const updatedMessage = Object.assign(Object.assign({}, messageToEdit), { content: inputValue.value.trim() });
279
+ const updatedMessage = Object.assign(Object.assign({}, messageToEdit), { content: inputValue.value });
291
280
  const bubbleActions = bubbleActionsRef === null || bubbleActionsRef === void 0 ? void 0 : bubbleActionsRef.value;
292
281
  if (bubbleActions) {
293
282
  const editAction = bubbleActions.find(action => action.key === interface_1.ChatBubbleActionKey.EDIT);
@@ -342,7 +331,7 @@ exports.default = (0, vue_1.defineComponent)({
342
331
  return result;
343
332
  })()
344
333
  : undefined;
345
- handleMessageSend(inputValue.value.trim(), attachments);
334
+ handleMessageSend(inputValue.value, attachments);
346
335
  inputValue.value = '';
347
336
  attachmentFileList.value = [];
348
337
  chatInputs.value[selectedChatRef.value.id] = '';
@@ -426,7 +415,10 @@ exports.default = (0, vue_1.defineComponent)({
426
415
  }));
427
416
  }
428
417
  }),
429
- (0, vue_1.h)(input_1.UInput, Object.assign({ ref: "inputRef", value: inputValue.value, placeholder: inputPlaceholderRef.value, class: `${mergedClsPrefixRef.value}-chat-main__input` }, footerInputPropsRef.value, { theme: mergedThemeRef.value.peers.Input, themeOverrides: mergedThemeRef.value.peerOverrides.Input, onUpdateValue: (value) => {
418
+ (0, vue_1.h)(input_1.UInput, Object.assign({ ref: "inputRef", value: inputValue.value, placeholder: inputPlaceholderRef.value, class: `${mergedClsPrefixRef.value}-chat-main__input`, theme: mergedThemeRef.value.peers.Input, themeOverrides: mergedThemeRef.value.peerOverrides.Input, type: "textarea", autosize: {
419
+ minRows: 1,
420
+ maxRows: 5
421
+ }, onUpdateValue: (value) => {
430
422
  inputValue.value = value;
431
423
  if (selectedChatRef.value) {
432
424
  chatInputs.value[selectedChatRef.value.id] = value;
@@ -437,7 +429,7 @@ exports.default = (0, vue_1.defineComponent)({
437
429
  e.stopPropagation();
438
430
  void handleSendMessage();
439
431
  }
440
- } }), {
432
+ } }, footerInputPropsRef.value), {
441
433
  prefix: () => renderEditingBlock(),
442
434
  suffix: () => ((0, vue_1.h)(icon_1.UIcon, Object.assign({ size: 24, class: `${mergedClsPrefixRef.value}-chat-main__input-suffix` }, footerSuffixIconPropsRef.value, { theme: mergedThemeRef.value.peers.FooterSuffixIcon, themeOverrides: mergedThemeRef.value.peerOverrides
443
435
  .FooterSuffixIcon, onClick: () => {
@@ -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;
@@ -139,23 +139,28 @@ exports.default = (0, cssr_1.cB)('chat', `
139
139
  width: 100%;
140
140
  padding: 24px 20px 10px 24px;
141
141
  flex-shrink: 0;
142
+ `), (0, cssr_1.cE)('header-inner', `
143
+ display: grid;
144
+ grid-template-columns: minmax(0, 1fr) auto;
145
+ align-items: flex-start;
146
+ gap: 8px;
147
+ `), (0, cssr_1.cE)('header-title-wrap', `
148
+ min-width: 0;
149
+ overflow: hidden;
142
150
  `), (0, cssr_1.cE)('header-title', `
143
151
  color: var(--u-header-title-color);
144
- flex: 1;
145
- min-width: 0;
152
+ display: block;
146
153
  overflow: hidden;
147
- text-overflow: ellipsis;
148
154
  white-space: nowrap;
149
- display: block;
150
- margin-right: 16px;
155
+ text-overflow: ellipsis;
156
+ width: 100%;
151
157
  `), (0, cssr_1.cE)('header-subtitle', `
152
158
  display: block;
153
159
  color: var(--u-sidebar-item-subtitle-color);
154
160
  overflow: hidden;
155
161
  text-overflow: ellipsis;
156
162
  white-space: nowrap;
157
- minWidth: 0;
158
- maxWidth: 100%;
163
+ width: 100%;
159
164
  `), (0, cssr_1.cE)('header-actions', `
160
165
  padding: 4px;
161
166
  flex-shrink: 0;
@@ -258,6 +263,7 @@ exports.default = (0, cssr_1.cB)('chat', `
258
263
  height: 44px;
259
264
  `)]), (0, cssr_1.cE)('message-text', `
260
265
  padding: 12px 16px;
266
+ white-space: pre-wrap;
261
267
  `), (0, cssr_1.cE)('message-attachment', `
262
268
  display: flex;
263
269
  align-items: center;
@@ -334,6 +340,7 @@ exports.default = (0, cssr_1.cB)('chat', `
334
340
  `, [(0, cssr_1.c)('.u-input-wrapper', `
335
341
  flex-wrap: wrap;
336
342
  padding: 0 4px;
343
+ height: 100%;
337
344
  `, [(0, cssr_1.c)('.u-input__prefix', `
338
345
  width: 100%;
339
346
  margin: 0;
@@ -344,13 +351,20 @@ exports.default = (0, cssr_1.cB)('chat', `
344
351
  border-top-right-radius: 12px;
345
352
  `), (0, cssr_1.c)('li', `
346
353
  padding: 12px;
347
- `)]), (0, cssr_1.c)('.u-input__input-el', `
348
- padding: 8px;
354
+ `)]), (0, cssr_1.c)('.u-input__textarea-el', `
355
+ padding-top: 12px;
356
+ padding-left: 12px;
357
+ padding-right: 48px;
349
358
  `), (0, cssr_1.c)('.u-input__placeholder', `
350
- margin: 8px;
359
+ padding-top: 12px;
360
+ padding-left: 12px;
361
+ padding-right: 48px;
351
362
  `)])]), (0, cssr_1.cE)('editing-block', `
352
363
  width: 100%;
353
364
  `), (0, cssr_1.cE)('input-suffix', `
365
+ position: absolute;
366
+ right: 12px;
367
+ bottom: 12px;
354
368
  color: var(--u-input-suffix-color) !important;
355
369
  cursor: pointer;
356
370
  margin-right: 4px;
@@ -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;
@@ -17,7 +17,7 @@ const styles_9 = require("../../typography/styles");
17
17
  const chatInputLight = Object.assign(Object.assign({}, styles_6.inputLight), { self(vars) {
18
18
  const originalInputSelf = (0, light_2.self)(vars);
19
19
  const { elementsTertiary } = vars;
20
- return Object.assign(Object.assign({}, originalInputSelf), { color: elementsTertiary, colorFocus: elementsTertiary, border: 'none', borderFocus: 'none', borderHover: 'none', boxShadow: 'none', boxShadowFocus: 'none' });
20
+ return Object.assign(Object.assign({}, originalInputSelf), { color: elementsTertiary, colorFocus: elementsTertiary, heightMedium: '45px', border: 'none', borderFocus: 'none', borderHover: 'none', boxShadow: 'none', boxShadowFocus: 'none' });
21
21
  } });
22
22
  const chatBadgeLight = Object.assign(Object.assign({}, styles_2.badgeLight), { self(vars) {
23
23
  const originalBadgeSelf = (0, light_1.self)(vars);
@@ -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/use-theme").Theme<"ColorPi
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;