@uzum-tech/ui 2.4.1 → 2.4.3

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 (214) hide show
  1. package/dist/index.js +243 -74
  2. package/dist/index.mjs +244 -75
  3. package/dist/index.prod.js +3 -3
  4. package/dist/index.prod.mjs +3 -3
  5. package/es/_internal/selection/src/Selection.d.ts +27 -0
  6. package/es/_internal/selection/src/Selection.mjs +54 -26
  7. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
  8. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.mjs +15 -0
  9. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
  10. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.mjs +16 -0
  11. package/es/_internal/selection/src/styles/index.cssr.mjs +45 -4
  12. package/es/_internal/selection/styles/light.d.ts +6 -0
  13. package/es/_internal/selection/styles/light.mjs +3 -0
  14. package/es/_utils/index.d.ts +1 -1
  15. package/es/_utils/index.mjs +1 -1
  16. package/es/_utils/markdown/constants.d.ts +1 -0
  17. package/es/_utils/markdown/constants.mjs +1 -0
  18. package/es/_utils/markdown/index.d.ts +1 -1
  19. package/es/_utils/markdown/index.mjs +1 -1
  20. package/es/_utils/markdown/render-markdown.d.ts +3 -0
  21. package/es/_utils/markdown/render-markdown.mjs +18 -3
  22. package/es/_utils/vue/index.d.ts +1 -0
  23. package/es/_utils/vue/index.mjs +1 -0
  24. package/es/_utils/vue/resolve-reactive.d.ts +3 -0
  25. package/es/_utils/vue/resolve-reactive.mjs +9 -0
  26. package/es/cascader/src/Cascader.d.ts +30 -0
  27. package/es/cascader/src/CascaderMenu.d.ts +6 -0
  28. package/es/cascader/src/CascaderOption.d.ts +6 -0
  29. package/es/cascader/src/CascaderSelectMenu.d.ts +6 -0
  30. package/es/cascader/src/CascaderSubmenu.d.ts +6 -0
  31. package/es/cascader/styles/light.d.ts +3 -0
  32. package/es/chat/src/Chat.d.ts +132 -0
  33. package/es/chat/src/ChatListItems.d.ts +45 -0
  34. package/es/chat/src/ChatListItems.mjs +16 -11
  35. package/es/chat/src/ChatMainArea.d.ts +45 -0
  36. package/es/chat/src/ChatMainArea.mjs +2 -1
  37. package/es/chat/src/ChatMessages.d.ts +46 -1
  38. package/es/chat/src/ChatMessages.mjs +6 -5
  39. package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
  40. package/es/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
  41. package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
  42. package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.mjs +2 -1
  43. package/es/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
  44. package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
  45. package/es/chat/src/ChatParts/ChatHeader/ChatHeader.mjs +3 -6
  46. package/es/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
  47. package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
  48. package/es/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
  49. package/es/chat/src/ChatParts/Sidebar.d.ts +12 -0
  50. package/es/chat/src/interface.d.ts +26 -34
  51. package/es/chat/styles/dark.d.ts +3 -0
  52. package/es/chat/styles/light.d.ts +3 -0
  53. package/es/chat/tests/utils/constants.d.ts +12 -0
  54. package/es/chat/tests/utils/constants.mjs +12 -0
  55. package/es/chat/tests/utils/create-chat-item-mock.d.ts +2 -0
  56. package/es/chat/tests/utils/create-chat-item-mock.mjs +9 -0
  57. package/es/chat/tests/utils/create-chat-message-mock.d.ts +2 -0
  58. package/es/chat/tests/utils/create-chat-message-mock.mjs +13 -0
  59. package/es/components.d.ts +457 -4
  60. package/es/data-table/src/DataTable.d.ts +24 -0
  61. package/es/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
  62. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
  63. package/es/data-table/src/TableParts/Body.d.ts +12 -0
  64. package/es/data-table/src/TableParts/Header.d.ts +12 -0
  65. package/es/data-table/src/interface.d.ts +9 -0
  66. package/es/data-table/styles/light.d.ts +3 -0
  67. package/es/date-picker/src/DatePicker.d.ts +30 -0
  68. package/es/date-picker/src/panel/date.d.ts +6 -0
  69. package/es/date-picker/src/panel/daterange.d.ts +6 -0
  70. package/es/date-picker/src/panel/datetime.d.ts +6 -0
  71. package/es/date-picker/src/panel/datetimerange.d.ts +6 -0
  72. package/es/date-picker/src/panel/panelMonth.d.ts +24 -0
  73. package/es/date-picker/src/panel/panelMonthContent.d.ts +6 -0
  74. package/es/date-picker/src/panel/panelYear.d.ts +24 -0
  75. package/es/date-picker/src/panel/panelYearContent.d.ts +6 -0
  76. package/es/date-picker/src/panel/use-calendar.d.ts +6 -0
  77. package/es/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  78. package/es/date-picker/src/panel/use-panel-common.d.ts +6 -0
  79. package/es/date-picker/styles/light.d.ts +3 -0
  80. package/es/date-picker-v2/src/DatePickerV2.d.ts +30 -0
  81. package/es/date-picker-v2/styles/dark.d.ts +3 -0
  82. package/es/date-picker-v2/styles/light.d.ts +3 -0
  83. package/es/editor/src/Editor.d.ts +18 -0
  84. package/es/editor/src/Editor.mjs +14 -2
  85. package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
  86. package/es/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
  87. package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
  88. package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  89. package/es/editor/src/interface.d.ts +9 -0
  90. package/es/editor/styles/dark.d.ts +3 -0
  91. package/es/editor/styles/light.d.ts +3 -0
  92. package/es/message-bubble/src/MessageBubble.d.ts +10 -10
  93. package/es/message-bubble/src/MessageBubble.mjs +13 -17
  94. package/es/message-bubble/src/interface.d.ts +5 -5
  95. package/es/message-bubble/src/interface.mjs +3 -3
  96. package/es/pagination/src/Pagination.d.ts +24 -0
  97. package/es/pagination/src/interface.d.ts +9 -0
  98. package/es/pagination/styles/light.d.ts +3 -0
  99. package/es/select/src/Select.d.ts +24 -0
  100. package/es/select/src/Select.mjs +2 -1
  101. package/es/select/src/interface.d.ts +10 -0
  102. package/es/select/src/interface.mjs +1 -0
  103. package/es/select/src/styles/index.cssr.mjs +4 -1
  104. package/es/select/styles/light.d.ts +3 -0
  105. package/es/tree-select/src/TreeSelect.d.ts +30 -0
  106. package/es/tree-select/styles/light.d.ts +3 -0
  107. package/es/version.d.ts +1 -1
  108. package/es/version.mjs +1 -1
  109. package/lib/_internal/selection/src/Selection.d.ts +27 -0
  110. package/lib/_internal/selection/src/Selection.js +43 -35
  111. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
  112. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.js +13 -0
  113. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
  114. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.js +19 -0
  115. package/lib/_internal/selection/src/styles/index.cssr.js +45 -4
  116. package/lib/_internal/selection/styles/light.d.ts +6 -0
  117. package/lib/_internal/selection/styles/light.js +3 -0
  118. package/lib/_utils/index.d.ts +1 -1
  119. package/lib/_utils/index.js +3 -1
  120. package/lib/_utils/markdown/constants.d.ts +1 -0
  121. package/lib/_utils/markdown/constants.js +2 -1
  122. package/lib/_utils/markdown/index.d.ts +1 -1
  123. package/lib/_utils/markdown/index.js +4 -1
  124. package/lib/_utils/markdown/render-markdown.d.ts +3 -0
  125. package/lib/_utils/markdown/render-markdown.js +20 -2
  126. package/lib/_utils/vue/index.d.ts +1 -0
  127. package/lib/_utils/vue/index.js +4 -1
  128. package/lib/_utils/vue/resolve-reactive.d.ts +3 -0
  129. package/lib/_utils/vue/resolve-reactive.js +17 -0
  130. package/lib/cascader/src/Cascader.d.ts +30 -0
  131. package/lib/cascader/src/CascaderMenu.d.ts +6 -0
  132. package/lib/cascader/src/CascaderOption.d.ts +6 -0
  133. package/lib/cascader/src/CascaderSelectMenu.d.ts +6 -0
  134. package/lib/cascader/src/CascaderSubmenu.d.ts +6 -0
  135. package/lib/cascader/styles/light.d.ts +3 -0
  136. package/lib/chat/src/Chat.d.ts +132 -0
  137. package/lib/chat/src/ChatListItems.d.ts +45 -0
  138. package/lib/chat/src/ChatListItems.js +20 -17
  139. package/lib/chat/src/ChatMainArea.d.ts +45 -0
  140. package/lib/chat/src/ChatMainArea.js +2 -2
  141. package/lib/chat/src/ChatMessages.d.ts +46 -1
  142. package/lib/chat/src/ChatMessages.js +6 -5
  143. package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
  144. package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
  145. package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
  146. package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.js +4 -1
  147. package/lib/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
  148. package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
  149. package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.js +2 -2
  150. package/lib/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
  151. package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
  152. package/lib/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
  153. package/lib/chat/src/ChatParts/Sidebar.d.ts +12 -0
  154. package/lib/chat/src/interface.d.ts +26 -34
  155. package/lib/chat/styles/dark.d.ts +3 -0
  156. package/lib/chat/styles/light.d.ts +3 -0
  157. package/lib/chat/tests/utils/constants.d.ts +12 -0
  158. package/lib/chat/tests/utils/constants.js +15 -0
  159. package/lib/chat/tests/utils/create-chat-item-mock.d.ts +2 -0
  160. package/lib/chat/tests/utils/create-chat-item-mock.js +10 -0
  161. package/lib/chat/tests/utils/create-chat-message-mock.d.ts +2 -0
  162. package/lib/chat/tests/utils/create-chat-message-mock.js +14 -0
  163. package/lib/components.d.ts +457 -4
  164. package/lib/data-table/src/DataTable.d.ts +24 -0
  165. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
  166. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
  167. package/lib/data-table/src/TableParts/Body.d.ts +12 -0
  168. package/lib/data-table/src/TableParts/Header.d.ts +12 -0
  169. package/lib/data-table/src/interface.d.ts +9 -0
  170. package/lib/data-table/styles/light.d.ts +3 -0
  171. package/lib/date-picker/src/DatePicker.d.ts +30 -0
  172. package/lib/date-picker/src/panel/date.d.ts +6 -0
  173. package/lib/date-picker/src/panel/daterange.d.ts +6 -0
  174. package/lib/date-picker/src/panel/datetime.d.ts +6 -0
  175. package/lib/date-picker/src/panel/datetimerange.d.ts +6 -0
  176. package/lib/date-picker/src/panel/panelMonth.d.ts +24 -0
  177. package/lib/date-picker/src/panel/panelMonthContent.d.ts +6 -0
  178. package/lib/date-picker/src/panel/panelYear.d.ts +24 -0
  179. package/lib/date-picker/src/panel/panelYearContent.d.ts +6 -0
  180. package/lib/date-picker/src/panel/use-calendar.d.ts +6 -0
  181. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  182. package/lib/date-picker/src/panel/use-panel-common.d.ts +6 -0
  183. package/lib/date-picker/styles/light.d.ts +3 -0
  184. package/lib/date-picker-v2/src/DatePickerV2.d.ts +30 -0
  185. package/lib/date-picker-v2/styles/dark.d.ts +3 -0
  186. package/lib/date-picker-v2/styles/light.d.ts +3 -0
  187. package/lib/editor/src/Editor.d.ts +20 -2
  188. package/lib/editor/src/Editor.js +13 -1
  189. package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
  190. package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
  191. package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
  192. package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  193. package/lib/editor/src/interface.d.ts +9 -0
  194. package/lib/editor/styles/dark.d.ts +3 -0
  195. package/lib/editor/styles/light.d.ts +3 -0
  196. package/lib/message-bubble/src/MessageBubble.d.ts +10 -10
  197. package/lib/message-bubble/src/MessageBubble.js +15 -19
  198. package/lib/message-bubble/src/interface.d.ts +5 -5
  199. package/lib/message-bubble/src/interface.js +3 -3
  200. package/lib/pagination/src/Pagination.d.ts +24 -0
  201. package/lib/pagination/src/interface.d.ts +9 -0
  202. package/lib/pagination/styles/light.d.ts +3 -0
  203. package/lib/select/src/Select.d.ts +24 -0
  204. package/lib/select/src/Select.js +5 -2
  205. package/lib/select/src/interface.d.ts +10 -0
  206. package/lib/select/src/interface.js +1 -1
  207. package/lib/select/src/styles/index.cssr.js +3 -0
  208. package/lib/select/styles/light.d.ts +3 -0
  209. package/lib/tree-select/src/TreeSelect.d.ts +30 -0
  210. package/lib/tree-select/styles/light.d.ts +3 -0
  211. package/lib/version.d.ts +1 -1
  212. package/lib/version.js +1 -1
  213. package/package.json +1 -1
  214. package/web-types.json +17 -7
@@ -246,8 +246,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
246
246
  caretColorSecondary: string;
247
247
  filterCounterTextColor: string;
248
248
  filterCounterTextColorDisabled: string;
249
+ filterCounterGap: string;
250
+ filterSuffixWrapperGap: string;
249
251
  arrowColorSecondary: string;
250
252
  clearColorSecondary: string;
253
+ loadingColorSecondary: string;
251
254
  colorSecondary: string;
252
255
  textColorSecondary: string;
253
256
  borderSecondary: string;
@@ -1119,8 +1122,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1119
1122
  caretColorSecondary: string;
1120
1123
  filterCounterTextColor: string;
1121
1124
  filterCounterTextColorDisabled: string;
1125
+ filterCounterGap: string;
1126
+ filterSuffixWrapperGap: string;
1122
1127
  arrowColorSecondary: string;
1123
1128
  clearColorSecondary: string;
1129
+ loadingColorSecondary: string;
1124
1130
  colorSecondary: string;
1125
1131
  textColorSecondary: string;
1126
1132
  borderSecondary: string;
@@ -1992,8 +1998,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1992
1998
  caretColorSecondary: string;
1993
1999
  filterCounterTextColor: string;
1994
2000
  filterCounterTextColorDisabled: string;
2001
+ filterCounterGap: string;
2002
+ filterSuffixWrapperGap: string;
1995
2003
  arrowColorSecondary: string;
1996
2004
  clearColorSecondary: string;
2005
+ loadingColorSecondary: string;
1997
2006
  colorSecondary: string;
1998
2007
  textColorSecondary: string;
1999
2008
  borderSecondary: string;
@@ -2870,8 +2879,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2870
2879
  caretColorSecondary: string;
2871
2880
  filterCounterTextColor: string;
2872
2881
  filterCounterTextColorDisabled: string;
2882
+ filterCounterGap: string;
2883
+ filterSuffixWrapperGap: string;
2873
2884
  arrowColorSecondary: string;
2874
2885
  clearColorSecondary: string;
2886
+ loadingColorSecondary: string;
2875
2887
  colorSecondary: string;
2876
2888
  textColorSecondary: string;
2877
2889
  borderSecondary: string;
@@ -3619,8 +3631,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3619
3631
  caretColorSecondary: string;
3620
3632
  filterCounterTextColor: string;
3621
3633
  filterCounterTextColorDisabled: string;
3634
+ filterCounterGap: string;
3635
+ filterSuffixWrapperGap: string;
3622
3636
  arrowColorSecondary: string;
3623
3637
  clearColorSecondary: string;
3638
+ loadingColorSecondary: string;
3624
3639
  colorSecondary: string;
3625
3640
  textColorSecondary: string;
3626
3641
  borderSecondary: string;
@@ -4135,8 +4150,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4135
4150
  caretColorSecondary: string;
4136
4151
  filterCounterTextColor: string;
4137
4152
  filterCounterTextColorDisabled: string;
4153
+ filterCounterGap: string;
4154
+ filterSuffixWrapperGap: string;
4138
4155
  arrowColorSecondary: string;
4139
4156
  clearColorSecondary: string;
4157
+ loadingColorSecondary: string;
4140
4158
  colorSecondary: string;
4141
4159
  textColorSecondary: string;
4142
4160
  borderSecondary: string;
@@ -4884,8 +4902,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4884
4902
  caretColorSecondary: string;
4885
4903
  filterCounterTextColor: string;
4886
4904
  filterCounterTextColorDisabled: string;
4905
+ filterCounterGap: string;
4906
+ filterSuffixWrapperGap: string;
4887
4907
  arrowColorSecondary: string;
4888
4908
  clearColorSecondary: string;
4909
+ loadingColorSecondary: string;
4889
4910
  colorSecondary: string;
4890
4911
  textColorSecondary: string;
4891
4912
  borderSecondary: string;
@@ -5400,8 +5421,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
5400
5421
  caretColorSecondary: string;
5401
5422
  filterCounterTextColor: string;
5402
5423
  filterCounterTextColorDisabled: string;
5424
+ filterCounterGap: string;
5425
+ filterSuffixWrapperGap: string;
5403
5426
  arrowColorSecondary: string;
5404
5427
  clearColorSecondary: string;
5428
+ loadingColorSecondary: string;
5405
5429
  colorSecondary: string;
5406
5430
  textColorSecondary: string;
5407
5431
  borderSecondary: string;
@@ -6149,8 +6173,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
6149
6173
  caretColorSecondary: string;
6150
6174
  filterCounterTextColor: string;
6151
6175
  filterCounterTextColorDisabled: string;
6176
+ filterCounterGap: string;
6177
+ filterSuffixWrapperGap: string;
6152
6178
  arrowColorSecondary: string;
6153
6179
  clearColorSecondary: string;
6180
+ loadingColorSecondary: string;
6154
6181
  colorSecondary: string;
6155
6182
  textColorSecondary: string;
6156
6183
  borderSecondary: string;
@@ -6731,8 +6758,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
6731
6758
  caretColorSecondary: string;
6732
6759
  filterCounterTextColor: string;
6733
6760
  filterCounterTextColorDisabled: string;
6761
+ filterCounterGap: string;
6762
+ filterSuffixWrapperGap: string;
6734
6763
  arrowColorSecondary: string;
6735
6764
  clearColorSecondary: string;
6765
+ loadingColorSecondary: string;
6736
6766
  colorSecondary: string;
6737
6767
  textColorSecondary: string;
6738
6768
  borderSecondary: string;
@@ -7604,8 +7634,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
7604
7634
  caretColorSecondary: string;
7605
7635
  filterCounterTextColor: string;
7606
7636
  filterCounterTextColorDisabled: string;
7637
+ filterCounterGap: string;
7638
+ filterSuffixWrapperGap: string;
7607
7639
  arrowColorSecondary: string;
7608
7640
  clearColorSecondary: string;
7641
+ loadingColorSecondary: string;
7609
7642
  colorSecondary: string;
7610
7643
  textColorSecondary: string;
7611
7644
  borderSecondary: string;
@@ -8477,8 +8510,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
8477
8510
  caretColorSecondary: string;
8478
8511
  filterCounterTextColor: string;
8479
8512
  filterCounterTextColorDisabled: string;
8513
+ filterCounterGap: string;
8514
+ filterSuffixWrapperGap: string;
8480
8515
  arrowColorSecondary: string;
8481
8516
  clearColorSecondary: string;
8517
+ loadingColorSecondary: string;
8482
8518
  colorSecondary: string;
8483
8519
  textColorSecondary: string;
8484
8520
  borderSecondary: string;
@@ -250,8 +250,11 @@ export declare const chatLegacyInputProps: {
250
250
  caretColorSecondary: string;
251
251
  filterCounterTextColor: string;
252
252
  filterCounterTextColorDisabled: string;
253
+ filterCounterGap: string;
254
+ filterSuffixWrapperGap: string;
253
255
  arrowColorSecondary: string;
254
256
  clearColorSecondary: string;
257
+ loadingColorSecondary: string;
255
258
  colorSecondary: string;
256
259
  textColorSecondary: string;
257
260
  borderSecondary: string;
@@ -1123,8 +1126,11 @@ export declare const chatLegacyInputProps: {
1123
1126
  caretColorSecondary: string;
1124
1127
  filterCounterTextColor: string;
1125
1128
  filterCounterTextColorDisabled: string;
1129
+ filterCounterGap: string;
1130
+ filterSuffixWrapperGap: string;
1126
1131
  arrowColorSecondary: string;
1127
1132
  clearColorSecondary: string;
1133
+ loadingColorSecondary: string;
1128
1134
  colorSecondary: string;
1129
1135
  textColorSecondary: string;
1130
1136
  borderSecondary: string;
@@ -1996,8 +2002,11 @@ export declare const chatLegacyInputProps: {
1996
2002
  caretColorSecondary: string;
1997
2003
  filterCounterTextColor: string;
1998
2004
  filterCounterTextColorDisabled: string;
2005
+ filterCounterGap: string;
2006
+ filterSuffixWrapperGap: string;
1999
2007
  arrowColorSecondary: string;
2000
2008
  clearColorSecondary: string;
2009
+ loadingColorSecondary: string;
2001
2010
  colorSecondary: string;
2002
2011
  textColorSecondary: string;
2003
2012
  borderSecondary: string;
@@ -232,8 +232,11 @@ declare const _default: import("vue").DefineComponent<{}, {
232
232
  caretColorSecondary: string;
233
233
  filterCounterTextColor: string;
234
234
  filterCounterTextColorDisabled: string;
235
+ filterCounterGap: string;
236
+ filterSuffixWrapperGap: string;
235
237
  arrowColorSecondary: string;
236
238
  clearColorSecondary: string;
239
+ loadingColorSecondary: string;
237
240
  colorSecondary: string;
238
241
  textColorSecondary: string;
239
242
  borderSecondary: string;
@@ -981,8 +984,11 @@ declare const _default: import("vue").DefineComponent<{}, {
981
984
  caretColorSecondary: string;
982
985
  filterCounterTextColor: string;
983
986
  filterCounterTextColorDisabled: string;
987
+ filterCounterGap: string;
988
+ filterSuffixWrapperGap: string;
984
989
  arrowColorSecondary: string;
985
990
  clearColorSecondary: string;
991
+ loadingColorSecondary: string;
986
992
  colorSecondary: string;
987
993
  textColorSecondary: string;
988
994
  borderSecondary: string;
@@ -1497,8 +1503,11 @@ declare const _default: import("vue").DefineComponent<{}, {
1497
1503
  caretColorSecondary: string;
1498
1504
  filterCounterTextColor: string;
1499
1505
  filterCounterTextColorDisabled: string;
1506
+ filterCounterGap: string;
1507
+ filterSuffixWrapperGap: string;
1500
1508
  arrowColorSecondary: string;
1501
1509
  clearColorSecondary: string;
1510
+ loadingColorSecondary: string;
1502
1511
  colorSecondary: string;
1503
1512
  textColorSecondary: string;
1504
1513
  borderSecondary: string;
@@ -2246,8 +2255,11 @@ declare const _default: import("vue").DefineComponent<{}, {
2246
2255
  caretColorSecondary: string;
2247
2256
  filterCounterTextColor: string;
2248
2257
  filterCounterTextColorDisabled: string;
2258
+ filterCounterGap: string;
2259
+ filterSuffixWrapperGap: string;
2249
2260
  arrowColorSecondary: string;
2250
2261
  clearColorSecondary: string;
2262
+ loadingColorSecondary: string;
2251
2263
  colorSecondary: string;
2252
2264
  textColorSecondary: string;
2253
2265
  borderSecondary: string;
@@ -1,4 +1,4 @@
1
- import type { ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNodeChild } from 'vue';
1
+ import type { ExtractPublicPropTypes, InjectionKey, MaybeRefOrGetter, PropType, Ref, VNodeChild } from 'vue';
2
2
  import type { MergedTheme } from '../../_mixins';
3
3
  import type { MarkdownOptions } from '../../_utils/markdown';
4
4
  import type { AvatarProps } from '../../avatar';
@@ -43,9 +43,9 @@ export type ChatId = string | number | symbol;
43
43
  export interface ChatListItemData {
44
44
  id: ChatId;
45
45
  disabled?: boolean;
46
- title?: string | (() => VNodeChild);
47
- subtitle?: string | (() => VNodeChild);
48
- datetime?: string | number | Date | (() => VNodeChild);
46
+ title?: MaybeRefOrGetter<string> | (() => VNodeChild);
47
+ subtitle?: MaybeRefOrGetter<string> | (() => VNodeChild);
48
+ datetime?: MaybeRefOrGetter<string | number | Date> | (() => VNodeChild);
49
49
  unreadCount?: number;
50
50
  messageStatus?: MessageStatus;
51
51
  lastMessageIsOwn?: boolean;
@@ -56,59 +56,42 @@ export interface ChatMessageMark {
56
56
  id: ChatId;
57
57
  type: ChatMessageType.MARK;
58
58
  }
59
- export interface ChatMessageText {
60
- id: ChatId;
61
- type: ChatMessageType.TEXT;
62
- isOwn: boolean;
63
- content: string | (() => VNodeChild);
64
- timestamp?: string | number | Date | (() => VNodeChild);
65
- status?: MessageStatus;
66
- }
67
- export interface ChatMessageFile {
68
- id: ChatId;
69
- type: ChatMessageType.FILE;
70
- isOwn: boolean;
71
- content?: string | (() => VNodeChild);
72
- timestamp?: string | number | Date | (() => VNodeChild);
73
- status?: MessageStatus;
74
- attachments: ChatAttachment[];
75
- }
76
59
  export interface ChatMessageData {
77
60
  id: ChatId;
78
61
  type?: ChatMessageType;
79
62
  isOwn?: boolean;
80
- content?: string;
81
- timestamp?: string | number | Date | (() => VNodeChild);
63
+ content?: MaybeRefOrGetter<string> | (() => VNodeChild);
64
+ timestamp?: MaybeRefOrGetter<string | number | Date> | (() => VNodeChild);
82
65
  status?: MessageStatus;
83
- date?: string;
66
+ date?: MaybeRefOrGetter<string> | (() => VNodeChild);
84
67
  attachment?: ChatAttachment[];
85
68
  uploadProps?: Partial<UploadProps>;
86
69
  senderAvatar?: string | (() => VNodeChild);
87
- senderName?: string | (() => VNodeChild);
70
+ senderName?: MaybeRefOrGetter<string> | (() => VNodeChild);
88
71
  markType?: ChatMarkType;
89
- title?: string | (() => VNodeChild);
72
+ title?: MaybeRefOrGetter<string> | (() => VNodeChild);
90
73
  markdown?: boolean;
91
74
  }
92
75
  export interface ChatMessageProps {
93
76
  id: ChatId;
94
77
  type?: ChatMessageType;
95
78
  isOwn?: boolean;
96
- content?: string;
97
- timestamp?: string | number | Date | (() => VNodeChild);
79
+ content?: MaybeRefOrGetter<string> | (() => VNodeChild);
80
+ timestamp?: MaybeRefOrGetter<string | number | Date> | (() => VNodeChild);
98
81
  status?: MessageStatus;
99
82
  attachment?: ChatAttachment[];
100
83
  uploadProps?: Partial<UploadProps>;
101
84
  senderAvatar?: string | (() => VNodeChild);
102
- senderName?: string | (() => VNodeChild);
85
+ senderName?: MaybeRefOrGetter<string> | (() => VNodeChild);
103
86
  disabled?: boolean;
104
- title?: string | (() => VNodeChild);
87
+ title?: MaybeRefOrGetter<string> | (() => VNodeChild);
105
88
  }
106
89
  export interface ChatListItemProps {
107
90
  id: ChatId;
108
91
  disabled?: boolean;
109
- title?: string | (() => VNodeChild);
110
- subtitle?: string | (() => VNodeChild);
111
- datetime?: string | number | Date | (() => VNodeChild);
92
+ title?: MaybeRefOrGetter<string> | (() => VNodeChild);
93
+ subtitle?: MaybeRefOrGetter<string> | (() => VNodeChild);
94
+ datetime?: MaybeRefOrGetter<string | number | Date> | (() => VNodeChild);
112
95
  unreadCount?: number;
113
96
  messageStatus?: MessageStatus;
114
97
  lastMessageIsOwn?: boolean;
@@ -232,7 +215,7 @@ export interface ChatMessageSlots {
232
215
  }
233
216
  export interface ChatBubbleAction {
234
217
  key: ChatBubbleActionKey | string;
235
- label: string | (() => VNodeChild);
218
+ label: MaybeRefOrGetter<string> | (() => VNodeChild);
236
219
  handler: (message: ChatMessageData) => void;
237
220
  visible?: (message: ChatMessageData) => boolean;
238
221
  }
@@ -845,8 +828,11 @@ export declare const chatProps: {
845
828
  caretColorSecondary: string;
846
829
  filterCounterTextColor: string;
847
830
  filterCounterTextColorDisabled: string;
831
+ filterCounterGap: string;
832
+ filterSuffixWrapperGap: string;
848
833
  arrowColorSecondary: string;
849
834
  clearColorSecondary: string;
835
+ loadingColorSecondary: string;
850
836
  colorSecondary: string;
851
837
  textColorSecondary: string;
852
838
  borderSecondary: string;
@@ -1718,8 +1704,11 @@ export declare const chatProps: {
1718
1704
  caretColorSecondary: string;
1719
1705
  filterCounterTextColor: string;
1720
1706
  filterCounterTextColorDisabled: string;
1707
+ filterCounterGap: string;
1708
+ filterSuffixWrapperGap: string;
1721
1709
  arrowColorSecondary: string;
1722
1710
  clearColorSecondary: string;
1711
+ loadingColorSecondary: string;
1723
1712
  colorSecondary: string;
1724
1713
  textColorSecondary: string;
1725
1714
  borderSecondary: string;
@@ -2591,8 +2580,11 @@ export declare const chatProps: {
2591
2580
  caretColorSecondary: string;
2592
2581
  filterCounterTextColor: string;
2593
2582
  filterCounterTextColorDisabled: string;
2583
+ filterCounterGap: string;
2584
+ filterSuffixWrapperGap: string;
2594
2585
  arrowColorSecondary: string;
2595
2586
  clearColorSecondary: string;
2587
+ loadingColorSecondary: string;
2596
2588
  colorSecondary: string;
2597
2589
  textColorSecondary: string;
2598
2590
  borderSecondary: string;
@@ -217,8 +217,11 @@ declare const chatDark: import("../../_mixins").Theme<"Chat", {
217
217
  caretColorSecondary: string;
218
218
  filterCounterTextColor: string;
219
219
  filterCounterTextColorDisabled: string;
220
+ filterCounterGap: string;
221
+ filterSuffixWrapperGap: string;
220
222
  arrowColorSecondary: string;
221
223
  clearColorSecondary: string;
224
+ loadingColorSecondary: string;
222
225
  colorSecondary: string;
223
226
  textColorSecondary: string;
224
227
  borderSecondary: string;
@@ -266,8 +266,11 @@ declare const chatLight: import("../../_mixins").Theme<"Chat", {
266
266
  caretColorSecondary: string;
267
267
  filterCounterTextColor: string;
268
268
  filterCounterTextColorDisabled: string;
269
+ filterCounterGap: string;
270
+ filterSuffixWrapperGap: string;
269
271
  arrowColorSecondary: string;
270
272
  clearColorSecondary: string;
273
+ loadingColorSecondary: string;
271
274
  colorSecondary: string;
272
275
  textColorSecondary: string;
273
276
  borderSecondary: string;
@@ -0,0 +1,12 @@
1
+ export declare const manyChatsTest: {
2
+ readonly chatCount: 15;
3
+ readonly messagesPerChat: 8;
4
+ readonly runCount: 2;
5
+ };
6
+ export declare const messageBubbleTest: {
7
+ readonly messageCount: 20;
8
+ };
9
+ export declare const sendMessageTest: {
10
+ readonly messageToSendCount: 20;
11
+ readonly sendingDelayMs: 150;
12
+ };
@@ -0,0 +1,12 @@
1
+ export const manyChatsTest = {
2
+ chatCount: 15,
3
+ messagesPerChat: 8,
4
+ runCount: 2
5
+ };
6
+ export const messageBubbleTest = {
7
+ messageCount: 20
8
+ };
9
+ export const sendMessageTest = {
10
+ messageToSendCount: 20,
11
+ sendingDelayMs: 150
12
+ };
@@ -0,0 +1,2 @@
1
+ import type { ChatListItemData } from '@uzum-tech/ui';
2
+ export default function createChatItemMock(length: number): ChatListItemData[];
@@ -0,0 +1,9 @@
1
+ export default function createChatItemMock(length) {
2
+ return Array.from({
3
+ length
4
+ }, (_, index) => ({
5
+ id: index + 1,
6
+ title: `**Чат ${index + 1}**`,
7
+ subtitle: `*последнее сообщение ${index + 1}*`
8
+ }));
9
+ }
@@ -0,0 +1,2 @@
1
+ import type { ChatMessageData } from '@uzum-tech/ui';
2
+ export default function createChatMessageMock(chatId: string | number, length: number): ChatMessageData[];
@@ -0,0 +1,13 @@
1
+ import { ChatMessageType, MessageStatus } from '@uzum-tech/ui';
2
+ export default function createChatMessageMock(chatId, length) {
3
+ return Array.from({
4
+ length
5
+ }, (_, index) => ({
6
+ id: `${chatId}-${index}`,
7
+ type: ChatMessageType.TEXT,
8
+ isOwn: index % 2 === 1,
9
+ content: `Сообщение **${index}** в чате ${chatId}\n\n- пункт\n- пункт`,
10
+ timestamp: '10:00',
11
+ status: MessageStatus.READ
12
+ }));
13
+ }