@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
@@ -380,8 +380,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
380
380
  caretColorSecondary: string;
381
381
  filterCounterTextColor: string;
382
382
  filterCounterTextColorDisabled: string;
383
+ filterCounterGap: string;
384
+ filterSuffixWrapperGap: string;
383
385
  arrowColorSecondary: string;
384
386
  clearColorSecondary: string;
387
+ loadingColorSecondary: string;
385
388
  colorSecondary: string;
386
389
  textColorSecondary: string;
387
390
  borderSecondary: string;
@@ -1012,8 +1015,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1012
1015
  caretColorSecondary: string;
1013
1016
  filterCounterTextColor: string;
1014
1017
  filterCounterTextColorDisabled: string;
1018
+ filterCounterGap: string;
1019
+ filterSuffixWrapperGap: string;
1015
1020
  arrowColorSecondary: string;
1016
1021
  clearColorSecondary: string;
1022
+ loadingColorSecondary: string;
1017
1023
  colorSecondary: string;
1018
1024
  textColorSecondary: string;
1019
1025
  borderSecondary: string;
@@ -1644,8 +1650,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1644
1650
  caretColorSecondary: string;
1645
1651
  filterCounterTextColor: string;
1646
1652
  filterCounterTextColorDisabled: string;
1653
+ filterCounterGap: string;
1654
+ filterSuffixWrapperGap: string;
1647
1655
  arrowColorSecondary: string;
1648
1656
  clearColorSecondary: string;
1657
+ loadingColorSecondary: string;
1649
1658
  colorSecondary: string;
1650
1659
  textColorSecondary: string;
1651
1660
  borderSecondary: string;
@@ -2449,8 +2458,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2449
2458
  caretColorSecondary: string;
2450
2459
  filterCounterTextColor: string;
2451
2460
  filterCounterTextColorDisabled: string;
2461
+ filterCounterGap: string;
2462
+ filterSuffixWrapperGap: string;
2452
2463
  arrowColorSecondary: string;
2453
2464
  clearColorSecondary: string;
2465
+ loadingColorSecondary: string;
2454
2466
  colorSecondary: string;
2455
2467
  textColorSecondary: string;
2456
2468
  borderSecondary: string;
@@ -3063,8 +3075,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3063
3075
  caretColorSecondary: string;
3064
3076
  filterCounterTextColor: string;
3065
3077
  filterCounterTextColorDisabled: string;
3078
+ filterCounterGap: string;
3079
+ filterSuffixWrapperGap: string;
3066
3080
  arrowColorSecondary: string;
3067
3081
  clearColorSecondary: string;
3082
+ loadingColorSecondary: string;
3068
3083
  colorSecondary: string;
3069
3084
  textColorSecondary: string;
3070
3085
  borderSecondary: string;
@@ -3695,8 +3710,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3695
3710
  caretColorSecondary: string;
3696
3711
  filterCounterTextColor: string;
3697
3712
  filterCounterTextColorDisabled: string;
3713
+ filterCounterGap: string;
3714
+ filterSuffixWrapperGap: string;
3698
3715
  arrowColorSecondary: string;
3699
3716
  clearColorSecondary: string;
3717
+ loadingColorSecondary: string;
3700
3718
  colorSecondary: string;
3701
3719
  textColorSecondary: string;
3702
3720
  borderSecondary: string;
@@ -4327,8 +4345,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4327
4345
  caretColorSecondary: string;
4328
4346
  filterCounterTextColor: string;
4329
4347
  filterCounterTextColorDisabled: string;
4348
+ filterCounterGap: string;
4349
+ filterSuffixWrapperGap: string;
4330
4350
  arrowColorSecondary: string;
4331
4351
  clearColorSecondary: string;
4352
+ loadingColorSecondary: string;
4332
4353
  colorSecondary: string;
4333
4354
  textColorSecondary: string;
4334
4355
  borderSecondary: string;
@@ -386,8 +386,11 @@ export declare const editorToolbarProps: {
386
386
  caretColorSecondary: string;
387
387
  filterCounterTextColor: string;
388
388
  filterCounterTextColorDisabled: string;
389
+ filterCounterGap: string;
390
+ filterSuffixWrapperGap: string;
389
391
  arrowColorSecondary: string;
390
392
  clearColorSecondary: string;
393
+ loadingColorSecondary: string;
391
394
  colorSecondary: string;
392
395
  textColorSecondary: string;
393
396
  borderSecondary: string;
@@ -1018,8 +1021,11 @@ export declare const editorToolbarProps: {
1018
1021
  caretColorSecondary: string;
1019
1022
  filterCounterTextColor: string;
1020
1023
  filterCounterTextColorDisabled: string;
1024
+ filterCounterGap: string;
1025
+ filterSuffixWrapperGap: string;
1021
1026
  arrowColorSecondary: string;
1022
1027
  clearColorSecondary: string;
1028
+ loadingColorSecondary: string;
1023
1029
  colorSecondary: string;
1024
1030
  textColorSecondary: string;
1025
1031
  borderSecondary: string;
@@ -1650,8 +1656,11 @@ export declare const editorToolbarProps: {
1650
1656
  caretColorSecondary: string;
1651
1657
  filterCounterTextColor: string;
1652
1658
  filterCounterTextColorDisabled: string;
1659
+ filterCounterGap: string;
1660
+ filterSuffixWrapperGap: string;
1653
1661
  arrowColorSecondary: string;
1654
1662
  clearColorSecondary: string;
1663
+ loadingColorSecondary: string;
1655
1664
  colorSecondary: string;
1656
1665
  textColorSecondary: string;
1657
1666
  borderSecondary: string;
@@ -499,8 +499,11 @@ export declare const editorProps: {
499
499
  caretColorSecondary: string;
500
500
  filterCounterTextColor: string;
501
501
  filterCounterTextColorDisabled: string;
502
+ filterCounterGap: string;
503
+ filterSuffixWrapperGap: string;
502
504
  arrowColorSecondary: string;
503
505
  clearColorSecondary: string;
506
+ loadingColorSecondary: string;
504
507
  colorSecondary: string;
505
508
  textColorSecondary: string;
506
509
  borderSecondary: string;
@@ -1131,8 +1134,11 @@ export declare const editorProps: {
1131
1134
  caretColorSecondary: string;
1132
1135
  filterCounterTextColor: string;
1133
1136
  filterCounterTextColorDisabled: string;
1137
+ filterCounterGap: string;
1138
+ filterSuffixWrapperGap: string;
1134
1139
  arrowColorSecondary: string;
1135
1140
  clearColorSecondary: string;
1141
+ loadingColorSecondary: string;
1136
1142
  colorSecondary: string;
1137
1143
  textColorSecondary: string;
1138
1144
  borderSecondary: string;
@@ -1763,8 +1769,11 @@ export declare const editorProps: {
1763
1769
  caretColorSecondary: string;
1764
1770
  filterCounterTextColor: string;
1765
1771
  filterCounterTextColorDisabled: string;
1772
+ filterCounterGap: string;
1773
+ filterSuffixWrapperGap: string;
1766
1774
  arrowColorSecondary: string;
1767
1775
  clearColorSecondary: string;
1776
+ loadingColorSecondary: string;
1768
1777
  colorSecondary: string;
1769
1778
  textColorSecondary: string;
1770
1779
  borderSecondary: string;
@@ -359,8 +359,11 @@ declare const editorDark: import("../../_mixins").Theme<"Editor", {
359
359
  caretColorSecondary: string;
360
360
  filterCounterTextColor: string;
361
361
  filterCounterTextColorDisabled: string;
362
+ filterCounterGap: string;
363
+ filterSuffixWrapperGap: string;
362
364
  arrowColorSecondary: string;
363
365
  clearColorSecondary: string;
366
+ loadingColorSecondary: string;
364
367
  colorSecondary: string;
365
368
  textColorSecondary: string;
366
369
  borderSecondary: string;
@@ -409,8 +409,11 @@ declare const editorLight: import("../../_mixins").Theme<"Editor", {
409
409
  caretColorSecondary: string;
410
410
  filterCounterTextColor: string;
411
411
  filterCounterTextColorDisabled: string;
412
+ filterCounterGap: string;
413
+ filterSuffixWrapperGap: string;
412
414
  arrowColorSecondary: string;
413
415
  clearColorSecondary: string;
416
+ loadingColorSecondary: string;
414
417
  colorSecondary: string;
415
418
  textColorSecondary: string;
416
419
  borderSecondary: string;
@@ -1,5 +1,5 @@
1
1
  import type { SlotsType, VNodeChild } from 'vue';
2
- import type { MessageBubbleAttachment, MessageBubbleMessagePayload, MessageBubbleRenderContent, MessageBubbleSlots } from './interface';
2
+ import type { MessageBubbleAttachment, MessageBubbleMessagePayload, MessageBubbleSlots } from './interface';
3
3
  import { MessageBubbleServiceVariant, MessageBubbleStatus, MessageBubbleType } from './interface';
4
4
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
5
  readonly type: {
@@ -19,11 +19,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
19
19
  readonly default: false;
20
20
  };
21
21
  readonly title: {
22
- readonly type: import("vue").PropType<MessageBubbleRenderContent>;
22
+ readonly type: import("vue").PropType<import("./interface").MessageBubbleRenderContent>;
23
23
  readonly default: undefined;
24
24
  };
25
25
  readonly content: {
26
- readonly type: import("vue").PropType<MessageBubbleRenderContent>;
26
+ readonly type: import("vue").PropType<import("./interface").MessageBubbleRenderContent>;
27
27
  readonly default: undefined;
28
28
  };
29
29
  readonly markdown: {
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
39
39
  readonly default: undefined;
40
40
  };
41
41
  readonly timestamp: {
42
- readonly type: import("vue").PropType<string | number | Date | (() => VNodeChild)>;
42
+ readonly type: import("vue").PropType<import("vue").MaybeRefOrGetter<string | number | Date> | (() => VNodeChild)>;
43
43
  readonly default: undefined;
44
44
  };
45
45
  readonly status: {
@@ -210,11 +210,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
210
210
  readonly default: false;
211
211
  };
212
212
  readonly title: {
213
- readonly type: import("vue").PropType<MessageBubbleRenderContent>;
213
+ readonly type: import("vue").PropType<import("./interface").MessageBubbleRenderContent>;
214
214
  readonly default: undefined;
215
215
  };
216
216
  readonly content: {
217
- readonly type: import("vue").PropType<MessageBubbleRenderContent>;
217
+ readonly type: import("vue").PropType<import("./interface").MessageBubbleRenderContent>;
218
218
  readonly default: undefined;
219
219
  };
220
220
  readonly markdown: {
@@ -230,7 +230,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
230
230
  readonly default: undefined;
231
231
  };
232
232
  readonly timestamp: {
233
- readonly type: import("vue").PropType<string | number | Date | (() => VNodeChild)>;
233
+ readonly type: import("vue").PropType<import("vue").MaybeRefOrGetter<string | number | Date> | (() => VNodeChild)>;
234
234
  readonly default: undefined;
235
235
  };
236
236
  readonly status: {
@@ -376,10 +376,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
376
376
  }, any>;
377
377
  }>>>;
378
378
  }>> & Readonly<{}>, {
379
- readonly title: MessageBubbleRenderContent;
379
+ readonly title: import("./interface").MessageBubbleRenderContent;
380
380
  readonly retryText: string;
381
381
  readonly type: MessageBubbleType;
382
- readonly content: MessageBubbleRenderContent;
382
+ readonly content: import("./interface").MessageBubbleRenderContent;
383
383
  readonly status: MessageBubbleStatus;
384
384
  readonly actions: import("./interface").MessageBubbleAction[];
385
385
  readonly onRetry: (message: MessageBubbleMessagePayload) => void;
@@ -389,7 +389,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
389
389
  readonly markdown: boolean;
390
390
  readonly markdownOptions: import("../../_utils/markdown").MarkdownOptions;
391
391
  readonly markdownProps: import("vue").HTMLAttributes;
392
- readonly timestamp: string | number | Date | (() => VNodeChild);
392
+ readonly timestamp: import("vue").MaybeRefOrGetter<string | number | Date> | (() => VNodeChild);
393
393
  readonly attachments: MessageBubbleAttachment | MessageBubbleAttachment[];
394
394
  readonly uploadProps: Partial<import("../../upload").UploadProps>;
395
395
  readonly onAttachmentDownload: (attachment: MessageBubbleAttachment) => Promise<void> | void;
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const vue_1 = require("vue");
16
16
  const _mixins_1 = require("../../_mixins");
17
+ const _utils_1 = require("../../_utils");
17
18
  const markdown_1 = require("../../_utils/markdown");
18
19
  const dropdown_1 = require("../../dropdown");
19
20
  const icon_1 = require("../../icon");
@@ -47,8 +48,10 @@ exports.default = (0, vue_1.defineComponent)({
47
48
  status: props.status,
48
49
  attachments: normalizedAttachmentsRef.value
49
50
  }));
51
+ const resolvedContentRef = (0, vue_1.computed)(() => (0, _utils_1.resolveReactiveContent)(props.content));
52
+ const resolvedTitleRef = (0, vue_1.computed)(() => (0, _utils_1.resolveReactiveContent)(props.title));
50
53
  const markdownContent = (0, vue_1.computed)(() => {
51
- const content = props.content;
54
+ const content = resolvedContentRef.value;
52
55
  return props.markdown && typeof content === 'string' ? content : null;
53
56
  });
54
57
  const markdownActive = (0, vue_1.computed)(() => markdownContent.value !== null);
@@ -106,20 +109,11 @@ exports.default = (0, vue_1.defineComponent)({
106
109
  }
107
110
  result.push({
108
111
  key: action.key,
109
- label: typeof action.label === 'function' ? action.label() : action.label
112
+ label: () => (0, _utils_1.resolveReactiveContent)(action.label)
110
113
  });
111
114
  }
112
115
  return result;
113
116
  });
114
- const resolveRenderContent = (content) => {
115
- if (typeof content === 'function') {
116
- return content();
117
- }
118
- if (content instanceof Date) {
119
- return content.toString();
120
- }
121
- return content;
122
- };
123
117
  const getThumbnailUrl = (attachment) => {
124
118
  const url = [attachment.preview, attachment.thumbnail].find(value => typeof value === 'string');
125
119
  return url !== null && url !== void 0 ? url : null;
@@ -210,12 +204,12 @@ exports.default = (0, vue_1.defineComponent)({
210
204
  var _a, _b;
211
205
  const hasBubbleActionsSlot = slots.bubbleActions !== undefined;
212
206
  const hasBubbleActionsConfig = Boolean(props.actions && props.actions.length > 0);
213
- const hasTitle = Boolean(props.title || slots.title);
207
+ const hasTitle = Boolean(resolvedTitleRef.value || slots.title);
214
208
  const afterContentSlot = slots.afterContent || slots['after-content'];
215
209
  const hasAfterContent = Boolean(afterContentSlot);
216
210
  const hasVisibleTextContent = markdownActive.value
217
211
  ? markdownHtmlRef.value !== null
218
- : Boolean(props.content);
212
+ : Boolean(resolvedContentRef.value);
219
213
  const hasContentInsideBubble = Boolean(hasVisibleTextContent
220
214
  || slots.default
221
215
  || hasAfterContent
@@ -227,16 +221,18 @@ exports.default = (0, vue_1.defineComponent)({
227
221
  ? `${mergedClsPrefixRef.value}-message-bubble__bubble--own`
228
222
  : `${mergedClsPrefixRef.value}-message-bubble__bubble--other`
229
223
  ] },
230
- hasTitle && ((0, vue_1.h)(typography_1.UText, { class: `${mergedClsPrefixRef.value}-message-bubble__title`, variant: "body-l-semi-bold" }, slots.title
231
- ? slots.title(messagePayloadRef.value)
232
- : resolveRenderContent(props.title))),
224
+ hasTitle && ((0, vue_1.h)(typography_1.UText, { class: `${mergedClsPrefixRef.value}-message-bubble__title`, variant: "body-l-semi-bold" }, {
225
+ default: () => slots.title
226
+ ? slots.title(messagePayloadRef.value)
227
+ : resolvedTitleRef.value
228
+ })),
233
229
  normalizedAttachmentsRef.value.length > 0 && renderAttachment(true),
234
230
  (hasVisibleTextContent || slots.default)
235
231
  && (slots.default ? ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-message-bubble__text` }, slots.default(messagePayloadRef.value))) : markdownHtmlRef.value !== null ? ((0, vue_1.h)("div", Object.assign({}, props.markdownProps, { class: [
236
232
  `${mergedClsPrefixRef.value}-message-bubble__text`,
237
233
  `${mergedClsPrefixRef.value}-message-bubble__markdown`,
238
234
  (_a = props.markdownProps) === null || _a === void 0 ? void 0 : _a.class
239
- ], innerHTML: markdownHtmlRef.value }))) : ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-message-bubble__text` }, resolveRenderContent(props.content)))),
235
+ ], innerHTML: markdownHtmlRef.value }))) : ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-message-bubble__text` }, resolvedContentRef.value))),
240
236
  hasAfterContent && ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-message-bubble__after-content` }, afterContentSlot === null || afterContentSlot === void 0 ? void 0 : afterContentSlot(messagePayloadRef.value))))) : normalizedAttachmentsRef.value.length === 1 ? (renderAttachment()) : null;
241
237
  return ((0, vue_1.h)("div", { class: [
242
238
  `${mergedClsPrefixRef.value}-message-bubble__message`,
@@ -279,7 +275,7 @@ exports.default = (0, vue_1.defineComponent)({
279
275
  ] }, props.status === interface_1.MessageBubbleStatus.RETRY ? ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-message-bubble__retry`, onClick: handleRetryClick },
280
276
  (0, vue_1.h)(icon_1.UIcon, { size: 16, component: interface_1.statusIconMapper[interface_1.MessageBubbleStatus.RETRY], class: `${mergedClsPrefixRef.value}-message-bubble__retry-icon`, theme: themeRef.value.peers.StatusIcon, themeOverrides: themeRef.value.peerOverrides.StatusIcon }),
281
277
  (0, vue_1.h)("span", { class: `${mergedClsPrefixRef.value}-message-bubble__retry-text` }, mergedRetryTextRef.value))) : ((0, vue_1.h)(vue_1.Fragment, null,
282
- (0, vue_1.h)("span", { class: `${mergedClsPrefixRef.value}-message-bubble__time` }, resolveRenderContent(props.timestamp)),
278
+ (0, vue_1.h)("span", { class: `${mergedClsPrefixRef.value}-message-bubble__time` }, (0, _utils_1.resolveReactiveContent)(props.timestamp)),
283
279
  props.isOwn && props.status && ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-message-bubble__status` }, slots.messageStatus
284
280
  ? slots.messageStatus(messagePayloadRef.value)
285
281
  : interface_1.statusIconMapper[props.status] && ((0, vue_1.h)(icon_1.UIcon, { size: 16, component: interface_1.statusIconMapper[props.status], class: [
@@ -303,7 +299,7 @@ exports.default = (0, vue_1.defineComponent)({
303
299
  `${mergedClsPrefixRef.value}-message-bubble__markdown`,
304
300
  (_a = props.markdownProps) === null || _a === void 0 ? void 0 : _a.class
305
301
  ], innerHTML: markdownHtmlRef.value })))
306
- : props.content && ((0, vue_1.h)("span", null, resolveRenderContent(props.content)))));
302
+ : resolvedContentRef.value && ((0, vue_1.h)("span", null, resolvedContentRef.value))));
307
303
  };
308
304
  return {
309
305
  mergedClsPrefixRef,
@@ -1,4 +1,4 @@
1
- import type { Component, HTMLAttributes, PropType, VNodeChild } from 'vue';
1
+ import type { Component, HTMLAttributes, MaybeRefOrGetter, PropType, VNodeChild } from 'vue';
2
2
  import type { ExtractPublicPropTypes } from '../../_utils';
3
3
  import type { MarkdownOptions } from '../../_utils/markdown';
4
4
  import type { UploadFileInfo, UploadProps } from '../../upload';
@@ -52,18 +52,18 @@ export interface MessageBubbleMessagePayload {
52
52
  isOwn: boolean;
53
53
  title?: MessageBubbleRenderContent;
54
54
  content?: MessageBubbleRenderContent;
55
- timestamp?: string | number | Date | (() => VNodeChild);
55
+ timestamp?: MaybeRefOrGetter<string | number | Date> | (() => VNodeChild);
56
56
  status?: MessageBubbleStatus;
57
57
  attachments: MessageBubbleAttachment[];
58
58
  }
59
59
  export interface MessageBubbleAction {
60
60
  key: string;
61
- label: string | (() => VNodeChild);
61
+ label: MessageBubbleRenderContent;
62
62
  handler: (message: MessageBubbleMessagePayload) => void;
63
63
  visible?: (message: MessageBubbleMessagePayload) => boolean;
64
64
  }
65
65
  export type MessageBubbleId = string | number | symbol;
66
- export type MessageBubbleRenderContent = string | (() => VNodeChild);
66
+ export type MessageBubbleRenderContent = MaybeRefOrGetter<string> | (() => VNodeChild);
67
67
  export type MessageBubbleProps = ExtractPublicPropTypes<typeof messageBubbleProps>;
68
68
  export declare const statusIconMapper: Partial<Record<MessageBubbleStatus, Component>>;
69
69
  export declare const messageBubbleProps: {
@@ -104,7 +104,7 @@ export declare const messageBubbleProps: {
104
104
  readonly default: undefined;
105
105
  };
106
106
  readonly timestamp: {
107
- readonly type: PropType<string | number | Date | (() => VNodeChild)>;
107
+ readonly type: PropType<MaybeRefOrGetter<string | number | Date> | (() => VNodeChild)>;
108
108
  readonly default: undefined;
109
109
  };
110
110
  readonly status: {
@@ -48,10 +48,10 @@ exports.messageBubbleProps = Object.assign(Object.assign({}, _mixins_1.useTheme.
48
48
  type: Boolean,
49
49
  default: false
50
50
  }, title: {
51
- type: [String, Function],
51
+ type: [String, Object, Function],
52
52
  default: undefined
53
53
  }, content: {
54
- type: [String, Function],
54
+ type: [String, Object, Function],
55
55
  default: undefined
56
56
  }, markdown: {
57
57
  type: Boolean,
@@ -63,7 +63,7 @@ exports.messageBubbleProps = Object.assign(Object.assign({}, _mixins_1.useTheme.
63
63
  type: Object,
64
64
  default: undefined
65
65
  }, timestamp: {
66
- type: [String, Number, Date, Function],
66
+ type: [String, Number, Date, Object, Function],
67
67
  default: undefined
68
68
  }, status: {
69
69
  type: String,
@@ -228,8 +228,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
228
228
  caretColorSecondary: string;
229
229
  filterCounterTextColor: string;
230
230
  filterCounterTextColorDisabled: string;
231
+ filterCounterGap: string;
232
+ filterSuffixWrapperGap: string;
231
233
  arrowColorSecondary: string;
232
234
  clearColorSecondary: string;
235
+ loadingColorSecondary: string;
233
236
  colorSecondary: string;
234
237
  textColorSecondary: string;
235
238
  borderSecondary: string;
@@ -895,8 +898,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
895
898
  caretColorSecondary: string;
896
899
  filterCounterTextColor: string;
897
900
  filterCounterTextColorDisabled: string;
901
+ filterCounterGap: string;
902
+ filterSuffixWrapperGap: string;
898
903
  arrowColorSecondary: string;
899
904
  clearColorSecondary: string;
905
+ loadingColorSecondary: string;
900
906
  colorSecondary: string;
901
907
  textColorSecondary: string;
902
908
  borderSecondary: string;
@@ -1562,8 +1568,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1562
1568
  caretColorSecondary: string;
1563
1569
  filterCounterTextColor: string;
1564
1570
  filterCounterTextColorDisabled: string;
1571
+ filterCounterGap: string;
1572
+ filterSuffixWrapperGap: string;
1565
1573
  arrowColorSecondary: string;
1566
1574
  clearColorSecondary: string;
1575
+ loadingColorSecondary: string;
1567
1576
  colorSecondary: string;
1568
1577
  textColorSecondary: string;
1569
1578
  borderSecondary: string;
@@ -2253,8 +2262,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2253
2262
  caretColorSecondary: string;
2254
2263
  filterCounterTextColor: string;
2255
2264
  filterCounterTextColorDisabled: string;
2265
+ filterCounterGap: string;
2266
+ filterSuffixWrapperGap: string;
2256
2267
  arrowColorSecondary: string;
2257
2268
  clearColorSecondary: string;
2269
+ loadingColorSecondary: string;
2258
2270
  colorSecondary: string;
2259
2271
  textColorSecondary: string;
2260
2272
  borderSecondary: string;
@@ -2846,8 +2858,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2846
2858
  caretColorSecondary: string;
2847
2859
  filterCounterTextColor: string;
2848
2860
  filterCounterTextColorDisabled: string;
2861
+ filterCounterGap: string;
2862
+ filterSuffixWrapperGap: string;
2849
2863
  arrowColorSecondary: string;
2850
2864
  clearColorSecondary: string;
2865
+ loadingColorSecondary: string;
2851
2866
  colorSecondary: string;
2852
2867
  textColorSecondary: string;
2853
2868
  borderSecondary: string;
@@ -3582,8 +3597,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3582
3597
  caretColorSecondary: string;
3583
3598
  filterCounterTextColor: string;
3584
3599
  filterCounterTextColorDisabled: string;
3600
+ filterCounterGap: string;
3601
+ filterSuffixWrapperGap: string;
3585
3602
  arrowColorSecondary: string;
3586
3603
  clearColorSecondary: string;
3604
+ loadingColorSecondary: string;
3587
3605
  colorSecondary: string;
3588
3606
  textColorSecondary: string;
3589
3607
  borderSecondary: string;
@@ -4249,8 +4267,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4249
4267
  caretColorSecondary: string;
4250
4268
  filterCounterTextColor: string;
4251
4269
  filterCounterTextColorDisabled: string;
4270
+ filterCounterGap: string;
4271
+ filterSuffixWrapperGap: string;
4252
4272
  arrowColorSecondary: string;
4253
4273
  clearColorSecondary: string;
4274
+ loadingColorSecondary: string;
4254
4275
  colorSecondary: string;
4255
4276
  textColorSecondary: string;
4256
4277
  borderSecondary: string;
@@ -4916,8 +4937,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4916
4937
  caretColorSecondary: string;
4917
4938
  filterCounterTextColor: string;
4918
4939
  filterCounterTextColorDisabled: string;
4940
+ filterCounterGap: string;
4941
+ filterSuffixWrapperGap: string;
4919
4942
  arrowColorSecondary: string;
4920
4943
  clearColorSecondary: string;
4944
+ loadingColorSecondary: string;
4921
4945
  colorSecondary: string;
4922
4946
  textColorSecondary: string;
4923
4947
  borderSecondary: string;
@@ -266,8 +266,11 @@ export declare const paginationProps: {
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;
@@ -933,8 +936,11 @@ export declare const paginationProps: {
933
936
  caretColorSecondary: string;
934
937
  filterCounterTextColor: string;
935
938
  filterCounterTextColorDisabled: string;
939
+ filterCounterGap: string;
940
+ filterSuffixWrapperGap: string;
936
941
  arrowColorSecondary: string;
937
942
  clearColorSecondary: string;
943
+ loadingColorSecondary: string;
938
944
  colorSecondary: string;
939
945
  textColorSecondary: string;
940
946
  borderSecondary: string;
@@ -1600,8 +1606,11 @@ export declare const paginationProps: {
1600
1606
  caretColorSecondary: string;
1601
1607
  filterCounterTextColor: string;
1602
1608
  filterCounterTextColorDisabled: string;
1609
+ filterCounterGap: string;
1610
+ filterSuffixWrapperGap: string;
1603
1611
  arrowColorSecondary: string;
1604
1612
  clearColorSecondary: string;
1613
+ loadingColorSecondary: string;
1605
1614
  colorSecondary: string;
1606
1615
  textColorSecondary: string;
1607
1616
  borderSecondary: string;
@@ -233,8 +233,11 @@ declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
233
233
  caretColorSecondary: string;
234
234
  filterCounterTextColor: string;
235
235
  filterCounterTextColorDisabled: string;
236
+ filterCounterGap: string;
237
+ filterSuffixWrapperGap: string;
236
238
  arrowColorSecondary: string;
237
239
  clearColorSecondary: string;
240
+ loadingColorSecondary: string;
238
241
  colorSecondary: string;
239
242
  textColorSecondary: string;
240
243
  borderSecondary: string;