@uzum-tech/ui 2.4.2 → 2.4.4

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 (196) hide show
  1. package/dist/index.js +321 -75
  2. package/dist/index.mjs +321 -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/cascader/src/Cascader.d.ts +30 -0
  15. package/es/cascader/src/CascaderMenu.d.ts +6 -0
  16. package/es/cascader/src/CascaderOption.d.ts +6 -0
  17. package/es/cascader/src/CascaderSelectMenu.d.ts +6 -0
  18. package/es/cascader/src/CascaderSubmenu.d.ts +6 -0
  19. package/es/cascader/styles/light.d.ts +3 -0
  20. package/es/chat/src/Chat.d.ts +132 -0
  21. package/es/chat/src/ChatListItems.d.ts +45 -0
  22. package/es/chat/src/ChatMainArea.d.ts +45 -0
  23. package/es/chat/src/ChatMessages.d.ts +45 -0
  24. package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
  25. package/es/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
  26. package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
  27. package/es/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
  28. package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
  29. package/es/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
  30. package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
  31. package/es/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
  32. package/es/chat/src/ChatParts/Sidebar.d.ts +12 -0
  33. package/es/chat/src/interface.d.ts +9 -0
  34. package/es/chat/styles/dark.d.ts +3 -0
  35. package/es/chat/styles/light.d.ts +3 -0
  36. package/es/components.d.ts +474 -0
  37. package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +2 -2
  38. package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.mjs +1 -1
  39. package/es/data-table/src/DataTable.d.ts +24 -0
  40. package/es/data-table/src/DataTable.mjs +16 -13
  41. package/es/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
  42. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
  43. package/es/data-table/src/TableParts/Body.d.ts +12 -0
  44. package/es/data-table/src/TableParts/Header.d.ts +12 -0
  45. package/es/data-table/src/interface.d.ts +162 -151
  46. package/es/data-table/src/interface.mjs +7 -7
  47. package/es/data-table/src/use-column-settings.mjs +4 -1
  48. package/es/data-table/src/use-resizable.d.ts +2 -0
  49. package/es/data-table/src/use-resizable.mjs +9 -1
  50. package/es/data-table/styles/light.d.ts +3 -0
  51. package/es/date-picker/src/DatePicker.d.ts +30 -0
  52. package/es/date-picker/src/panel/date.d.ts +6 -0
  53. package/es/date-picker/src/panel/daterange.d.ts +6 -0
  54. package/es/date-picker/src/panel/datetime.d.ts +6 -0
  55. package/es/date-picker/src/panel/datetimerange.d.ts +6 -0
  56. package/es/date-picker/src/panel/panelMonth.d.ts +24 -0
  57. package/es/date-picker/src/panel/panelMonthContent.d.ts +6 -0
  58. package/es/date-picker/src/panel/panelYear.d.ts +24 -0
  59. package/es/date-picker/src/panel/panelYearContent.d.ts +6 -0
  60. package/es/date-picker/src/panel/use-calendar.d.ts +6 -0
  61. package/es/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  62. package/es/date-picker/src/panel/use-panel-common.d.ts +6 -0
  63. package/es/date-picker/styles/light.d.ts +3 -0
  64. package/es/date-picker-v2/src/DatePickerV2.d.ts +30 -0
  65. package/es/date-picker-v2/styles/dark.d.ts +3 -0
  66. package/es/date-picker-v2/styles/light.d.ts +3 -0
  67. package/es/editor/src/Editor.d.ts +18 -0
  68. package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
  69. package/es/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
  70. package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
  71. package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  72. package/es/editor/src/interface.d.ts +9 -0
  73. package/es/editor/styles/dark.d.ts +3 -0
  74. package/es/editor/styles/light.d.ts +3 -0
  75. package/es/locales/common/ruRU.mjs +1 -1
  76. package/es/pagination/src/Pagination.d.ts +24 -0
  77. package/es/pagination/src/interface.d.ts +9 -0
  78. package/es/pagination/styles/light.d.ts +3 -0
  79. package/es/select/src/Select.d.ts +24 -0
  80. package/es/select/src/Select.mjs +2 -1
  81. package/es/select/src/interface.d.ts +10 -0
  82. package/es/select/src/interface.mjs +1 -0
  83. package/es/select/src/styles/index.cssr.mjs +4 -1
  84. package/es/select/styles/light.d.ts +3 -0
  85. package/es/tree-select/src/TreeSelect.d.ts +30 -0
  86. package/es/tree-select/styles/light.d.ts +3 -0
  87. package/es/upload/src/Upload.d.ts +21 -0
  88. package/es/upload/src/Upload.mjs +7 -1
  89. package/es/upload/src/UploadFile.d.ts +6 -0
  90. package/es/upload/src/UploadFile.mjs +12 -8
  91. package/es/upload/src/UploadFileList.mjs +3 -2
  92. package/es/upload/src/UploadProgress.d.ts +6 -0
  93. package/es/upload/src/interface.d.ts +10 -1
  94. package/es/upload/src/styles/index.cssr.mjs +84 -1
  95. package/es/upload/src/useUploadActionsRender.mjs +10 -5
  96. package/es/upload/styles/light.d.ts +6 -0
  97. package/es/upload/styles/light.mjs +4 -0
  98. package/es/version.d.ts +1 -1
  99. package/es/version.mjs +1 -1
  100. package/lib/_internal/selection/src/Selection.d.ts +27 -0
  101. package/lib/_internal/selection/src/Selection.js +43 -35
  102. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
  103. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.js +13 -0
  104. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
  105. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.js +19 -0
  106. package/lib/_internal/selection/src/styles/index.cssr.js +45 -4
  107. package/lib/_internal/selection/styles/light.d.ts +6 -0
  108. package/lib/_internal/selection/styles/light.js +3 -0
  109. package/lib/cascader/src/Cascader.d.ts +30 -0
  110. package/lib/cascader/src/CascaderMenu.d.ts +6 -0
  111. package/lib/cascader/src/CascaderOption.d.ts +6 -0
  112. package/lib/cascader/src/CascaderSelectMenu.d.ts +6 -0
  113. package/lib/cascader/src/CascaderSubmenu.d.ts +6 -0
  114. package/lib/cascader/styles/light.d.ts +3 -0
  115. package/lib/chat/src/Chat.d.ts +132 -0
  116. package/lib/chat/src/ChatListItems.d.ts +45 -0
  117. package/lib/chat/src/ChatMainArea.d.ts +45 -0
  118. package/lib/chat/src/ChatMessages.d.ts +45 -0
  119. package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
  120. package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
  121. package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
  122. package/lib/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
  123. package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
  124. package/lib/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
  125. package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
  126. package/lib/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
  127. package/lib/chat/src/ChatParts/Sidebar.d.ts +12 -0
  128. package/lib/chat/src/interface.d.ts +9 -0
  129. package/lib/chat/styles/dark.d.ts +3 -0
  130. package/lib/chat/styles/light.d.ts +3 -0
  131. package/lib/components.d.ts +474 -0
  132. package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +2 -2
  133. package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.js +1 -1
  134. package/lib/data-table/src/DataTable.d.ts +24 -0
  135. package/lib/data-table/src/DataTable.js +14 -13
  136. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
  137. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
  138. package/lib/data-table/src/TableParts/Body.d.ts +12 -0
  139. package/lib/data-table/src/TableParts/Header.d.ts +12 -0
  140. package/lib/data-table/src/interface.d.ts +162 -151
  141. package/lib/data-table/src/interface.js +7 -7
  142. package/lib/data-table/src/use-column-settings.js +6 -1
  143. package/lib/data-table/src/use-resizable.d.ts +2 -0
  144. package/lib/data-table/src/use-resizable.js +9 -1
  145. package/lib/data-table/styles/light.d.ts +3 -0
  146. package/lib/date-picker/src/DatePicker.d.ts +30 -0
  147. package/lib/date-picker/src/panel/date.d.ts +6 -0
  148. package/lib/date-picker/src/panel/daterange.d.ts +6 -0
  149. package/lib/date-picker/src/panel/datetime.d.ts +6 -0
  150. package/lib/date-picker/src/panel/datetimerange.d.ts +6 -0
  151. package/lib/date-picker/src/panel/panelMonth.d.ts +24 -0
  152. package/lib/date-picker/src/panel/panelMonthContent.d.ts +6 -0
  153. package/lib/date-picker/src/panel/panelYear.d.ts +24 -0
  154. package/lib/date-picker/src/panel/panelYearContent.d.ts +6 -0
  155. package/lib/date-picker/src/panel/use-calendar.d.ts +6 -0
  156. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  157. package/lib/date-picker/src/panel/use-panel-common.d.ts +6 -0
  158. package/lib/date-picker/styles/light.d.ts +3 -0
  159. package/lib/date-picker-v2/src/DatePickerV2.d.ts +30 -0
  160. package/lib/date-picker-v2/styles/dark.d.ts +3 -0
  161. package/lib/date-picker-v2/styles/light.d.ts +3 -0
  162. package/lib/editor/src/Editor.d.ts +18 -0
  163. package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
  164. package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
  165. package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
  166. package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  167. package/lib/editor/src/interface.d.ts +9 -0
  168. package/lib/editor/styles/dark.d.ts +3 -0
  169. package/lib/editor/styles/light.d.ts +3 -0
  170. package/lib/locales/common/ruRU.js +1 -1
  171. package/lib/pagination/src/Pagination.d.ts +24 -0
  172. package/lib/pagination/src/interface.d.ts +9 -0
  173. package/lib/pagination/styles/light.d.ts +3 -0
  174. package/lib/select/src/Select.d.ts +24 -0
  175. package/lib/select/src/Select.js +5 -2
  176. package/lib/select/src/interface.d.ts +10 -0
  177. package/lib/select/src/interface.js +1 -1
  178. package/lib/select/src/styles/index.cssr.js +3 -0
  179. package/lib/select/styles/light.d.ts +3 -0
  180. package/lib/tree-select/src/TreeSelect.d.ts +30 -0
  181. package/lib/tree-select/styles/light.d.ts +3 -0
  182. package/lib/upload/src/Upload.d.ts +21 -0
  183. package/lib/upload/src/Upload.js +5 -2
  184. package/lib/upload/src/UploadFile.d.ts +6 -0
  185. package/lib/upload/src/UploadFile.js +19 -11
  186. package/lib/upload/src/UploadFileList.js +5 -1
  187. package/lib/upload/src/UploadProgress.d.ts +6 -0
  188. package/lib/upload/src/interface.d.ts +10 -1
  189. package/lib/upload/src/styles/index.cssr.js +84 -1
  190. package/lib/upload/src/useUploadActionsRender.js +17 -7
  191. package/lib/upload/styles/light.d.ts +6 -0
  192. package/lib/upload/styles/light.js +4 -1
  193. package/lib/version.d.ts +1 -1
  194. package/lib/version.js +1 -1
  195. package/package.json +1 -1
  196. package/web-types.json +23 -10
@@ -335,8 +335,11 @@ export declare const treeSelectProps: {
335
335
  caretColorSecondary: string;
336
336
  filterCounterTextColor: string;
337
337
  filterCounterTextColorDisabled: string;
338
+ filterCounterGap: string;
339
+ filterSuffixWrapperGap: string;
338
340
  arrowColorSecondary: string;
339
341
  clearColorSecondary: string;
342
+ loadingColorSecondary: string;
340
343
  colorSecondary: string;
341
344
  textColorSecondary: string;
342
345
  borderSecondary: string;
@@ -589,8 +592,11 @@ export declare const treeSelectProps: {
589
592
  caretColorSecondary: string;
590
593
  filterCounterTextColor: string;
591
594
  filterCounterTextColorDisabled: string;
595
+ filterCounterGap: string;
596
+ filterSuffixWrapperGap: string;
592
597
  arrowColorSecondary: string;
593
598
  clearColorSecondary: string;
599
+ loadingColorSecondary: string;
594
600
  colorSecondary: string;
595
601
  textColorSecondary: string;
596
602
  borderSecondary: string;
@@ -843,8 +849,11 @@ export declare const treeSelectProps: {
843
849
  caretColorSecondary: string;
844
850
  filterCounterTextColor: string;
845
851
  filterCounterTextColorDisabled: string;
852
+ filterCounterGap: string;
853
+ filterSuffixWrapperGap: string;
846
854
  arrowColorSecondary: string;
847
855
  clearColorSecondary: string;
856
+ loadingColorSecondary: string;
848
857
  colorSecondary: string;
849
858
  textColorSecondary: string;
850
859
  borderSecondary: string;
@@ -1219,8 +1228,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1219
1228
  caretColorSecondary: string;
1220
1229
  filterCounterTextColor: string;
1221
1230
  filterCounterTextColorDisabled: string;
1231
+ filterCounterGap: string;
1232
+ filterSuffixWrapperGap: string;
1222
1233
  arrowColorSecondary: string;
1223
1234
  clearColorSecondary: string;
1235
+ loadingColorSecondary: string;
1224
1236
  colorSecondary: string;
1225
1237
  textColorSecondary: string;
1226
1238
  borderSecondary: string;
@@ -1473,8 +1485,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1473
1485
  caretColorSecondary: string;
1474
1486
  filterCounterTextColor: string;
1475
1487
  filterCounterTextColorDisabled: string;
1488
+ filterCounterGap: string;
1489
+ filterSuffixWrapperGap: string;
1476
1490
  arrowColorSecondary: string;
1477
1491
  clearColorSecondary: string;
1492
+ loadingColorSecondary: string;
1478
1493
  colorSecondary: string;
1479
1494
  textColorSecondary: string;
1480
1495
  borderSecondary: string;
@@ -1727,8 +1742,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1727
1742
  caretColorSecondary: string;
1728
1743
  filterCounterTextColor: string;
1729
1744
  filterCounterTextColorDisabled: string;
1745
+ filterCounterGap: string;
1746
+ filterSuffixWrapperGap: string;
1730
1747
  arrowColorSecondary: string;
1731
1748
  clearColorSecondary: string;
1749
+ loadingColorSecondary: string;
1732
1750
  colorSecondary: string;
1733
1751
  textColorSecondary: string;
1734
1752
  borderSecondary: string;
@@ -2068,8 +2086,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2068
2086
  caretColorSecondary: string;
2069
2087
  filterCounterTextColor: string;
2070
2088
  filterCounterTextColorDisabled: string;
2089
+ filterCounterGap: string;
2090
+ filterSuffixWrapperGap: string;
2071
2091
  arrowColorSecondary: string;
2072
2092
  clearColorSecondary: string;
2093
+ loadingColorSecondary: string;
2073
2094
  colorSecondary: string;
2074
2095
  textColorSecondary: string;
2075
2096
  borderSecondary: string;
@@ -2573,8 +2594,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2573
2594
  caretColorSecondary: string;
2574
2595
  filterCounterTextColor: string;
2575
2596
  filterCounterTextColorDisabled: string;
2597
+ filterCounterGap: string;
2598
+ filterSuffixWrapperGap: string;
2576
2599
  arrowColorSecondary: string;
2577
2600
  clearColorSecondary: string;
2601
+ loadingColorSecondary: string;
2578
2602
  colorSecondary: string;
2579
2603
  textColorSecondary: string;
2580
2604
  borderSecondary: string;
@@ -2827,8 +2851,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2827
2851
  caretColorSecondary: string;
2828
2852
  filterCounterTextColor: string;
2829
2853
  filterCounterTextColorDisabled: string;
2854
+ filterCounterGap: string;
2855
+ filterSuffixWrapperGap: string;
2830
2856
  arrowColorSecondary: string;
2831
2857
  clearColorSecondary: string;
2858
+ loadingColorSecondary: string;
2832
2859
  colorSecondary: string;
2833
2860
  textColorSecondary: string;
2834
2861
  borderSecondary: string;
@@ -3081,8 +3108,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3081
3108
  caretColorSecondary: string;
3082
3109
  filterCounterTextColor: string;
3083
3110
  filterCounterTextColorDisabled: string;
3111
+ filterCounterGap: string;
3112
+ filterSuffixWrapperGap: string;
3084
3113
  arrowColorSecondary: string;
3085
3114
  clearColorSecondary: string;
3115
+ loadingColorSecondary: string;
3086
3116
  colorSecondary: string;
3087
3117
  textColorSecondary: string;
3088
3118
  borderSecondary: string;
@@ -222,8 +222,11 @@ declare const treeSelectLight: import("../../_mixins").Theme<"TreeSelect", {
222
222
  caretColorSecondary: string;
223
223
  filterCounterTextColor: string;
224
224
  filterCounterTextColorDisabled: string;
225
+ filterCounterGap: string;
226
+ filterSuffixWrapperGap: string;
225
227
  arrowColorSecondary: string;
226
228
  clearColorSecondary: string;
229
+ loadingColorSecondary: string;
227
230
  colorSecondary: string;
228
231
  textColorSecondary: string;
229
232
  borderSecondary: string;
@@ -135,6 +135,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
135
135
  widthSmall: string;
136
136
  widthMedium: string;
137
137
  widthLarge: string;
138
+ previewCardWidth: string;
139
+ previewCardHeight: string;
140
+ previewCardBorderRadius: string;
138
141
  containerSecondary: string;
139
142
  brandPrimary300: string;
140
143
  elementsQuaternary: string;
@@ -408,6 +411,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
408
411
  widthSmall: string;
409
412
  widthMedium: string;
410
413
  widthLarge: string;
414
+ previewCardWidth: string;
415
+ previewCardHeight: string;
416
+ previewCardBorderRadius: string;
411
417
  containerSecondary: string;
412
418
  brandPrimary300: string;
413
419
  elementsQuaternary: string;
@@ -681,6 +687,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
681
687
  widthSmall: string;
682
688
  widthMedium: string;
683
689
  widthLarge: string;
690
+ previewCardWidth: string;
691
+ previewCardHeight: string;
692
+ previewCardBorderRadius: string;
684
693
  containerSecondary: string;
685
694
  brandPrimary300: string;
686
695
  elementsQuaternary: string;
@@ -975,6 +984,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
975
984
  widthSmall: string;
976
985
  widthMedium: string;
977
986
  widthLarge: string;
987
+ previewCardWidth: string;
988
+ previewCardHeight: string;
989
+ previewCardBorderRadius: string;
978
990
  containerSecondary: string;
979
991
  brandPrimary300: string;
980
992
  elementsQuaternary: string;
@@ -1378,6 +1390,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1378
1390
  widthSmall: string;
1379
1391
  widthMedium: string;
1380
1392
  widthLarge: string;
1393
+ previewCardWidth: string;
1394
+ previewCardHeight: string;
1395
+ previewCardBorderRadius: string;
1381
1396
  containerSecondary: string;
1382
1397
  brandPrimary300: string;
1383
1398
  elementsQuaternary: string;
@@ -1651,6 +1666,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1651
1666
  widthSmall: string;
1652
1667
  widthMedium: string;
1653
1668
  widthLarge: string;
1669
+ previewCardWidth: string;
1670
+ previewCardHeight: string;
1671
+ previewCardBorderRadius: string;
1654
1672
  containerSecondary: string;
1655
1673
  brandPrimary300: string;
1656
1674
  elementsQuaternary: string;
@@ -1924,6 +1942,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1924
1942
  widthSmall: string;
1925
1943
  widthMedium: string;
1926
1944
  widthLarge: string;
1945
+ previewCardWidth: string;
1946
+ previewCardHeight: string;
1947
+ previewCardBorderRadius: string;
1927
1948
  containerSecondary: string;
1928
1949
  brandPrimary300: string;
1929
1950
  elementsQuaternary: string;
@@ -331,6 +331,9 @@ export default defineComponent({
331
331
  containerSecondary,
332
332
  brandPrimary300,
333
333
  elementsQuaternary,
334
+ previewCardWidth,
335
+ previewCardHeight,
336
+ previewCardBorderRadius,
334
337
  [createKey('width', size)]: width
335
338
  }
336
339
  } = themeRef.value;
@@ -362,7 +365,10 @@ export default defineComponent({
362
365
  '--u-upload-dragger-width': width,
363
366
  '--u-upload-info-bg-color': containerSecondary,
364
367
  '--u-upload-preview-color': brandPrimary300,
365
- '--u-upload-empty-border-color': elementsQuaternary
368
+ '--u-upload-empty-border-color': elementsQuaternary,
369
+ '--u-upload-preview-card-width': previewCardWidth,
370
+ '--u-upload-preview-card-height': previewCardHeight,
371
+ '--u-upload-preview-card-border-radius': previewCardBorderRadius
366
372
  };
367
373
  });
368
374
  const themeClassHandle = inlineThemeDisabled ? useThemeClass('upload', computed(() => {
@@ -44,6 +44,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
44
44
  widthSmall: string;
45
45
  widthMedium: string;
46
46
  widthLarge: string;
47
+ previewCardWidth: string;
48
+ previewCardHeight: string;
49
+ previewCardBorderRadius: string;
47
50
  containerSecondary: string;
48
51
  brandPrimary300: string;
49
52
  elementsQuaternary: string;
@@ -332,6 +335,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
332
335
  widthSmall: string;
333
336
  widthMedium: string;
334
337
  widthLarge: string;
338
+ previewCardWidth: string;
339
+ previewCardHeight: string;
340
+ previewCardBorderRadius: string;
335
341
  containerSecondary: string;
336
342
  brandPrimary300: string;
337
343
  elementsQuaternary: string;
@@ -26,7 +26,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
26
26
  });
27
27
  };
28
28
  import { useMemo } from 'vooks';
29
- import { computed, defineComponent, Fragment, h, inject, ref, watchEffect } from 'vue';
29
+ import { cloneVNode, computed, defineComponent, Fragment, h, inject, ref, watchEffect } from 'vue';
30
30
  import { warn } from "../../_utils/index.mjs";
31
31
  import { USpin } from "../../spin/index.mjs";
32
32
  import { uploadInjectionKey } from "./interface.mjs";
@@ -35,7 +35,8 @@ import { capitalizeFirstLetter, download } from "./utils.mjs";
35
35
  const buttonThemeOverrides = {
36
36
  paddingMedium: '0 3px',
37
37
  heightMedium: '24px',
38
- iconSizeMedium: '18px'
38
+ iconSizeMedium: '18px',
39
+ textColor: '#101010'
39
40
  };
40
41
  export default defineComponent({
41
42
  name: 'UploadFile',
@@ -118,7 +119,7 @@ export default defineComponent({
118
119
  listType
119
120
  } = props;
120
121
  if (!['finished'].includes(status)) return false;
121
- if (listType === 'preview-list') {
122
+ if (listType === 'preview-list' || listType === 'preview-card') {
122
123
  return UUpload.isFilePreviewable(props.file);
123
124
  }
124
125
  return !!mergedThumbnailUrlRef.value && listType === 'image-card';
@@ -215,7 +216,7 @@ export default defineComponent({
215
216
  } = UUpload;
216
217
  if (onPreview) {
217
218
  onPreview(props.file);
218
- } else if (props.listType === 'preview-list') {
219
+ } else if (props.listType === 'preview-list' || props.listType === 'preview-card') {
219
220
  UUpload.openFilePreview(props.file);
220
221
  } else if (props.listType === 'image-card') {
221
222
  const {
@@ -296,15 +297,18 @@ export default defineComponent({
296
297
  const imageCardTypes = ['image-card', 'image'];
297
298
  return h(USpin, {
298
299
  color: "tertiary",
299
- description: this.localeRef.uploading,
300
+ size: listType === 'preview-card' ? 24 : undefined,
301
+ description: listType === 'preview-card' ? undefined : this.localeRef.uploading,
300
302
  show: this.showProgress,
301
- class: [!this.vertical && !imageCardTypes.includes(listType) && `${clsPrefix}-upload-file-loader--default`]
303
+ class: [!this.vertical && !imageCardTypes.includes(listType) && listType !== 'preview-card' && `${clsPrefix}-upload-file-loader--default`]
302
304
  }, {
303
305
  default: () => h("div", {
304
- class: [`${clsPrefix}-upload-file`, `${clsPrefix}-upload-file--${this.progressStatus}-status`, file.url && file.status !== 'error' && imageCardTypes.includes(listType) && `${clsPrefix}-upload-file--with-url`, `${clsPrefix}-upload-file--${listType === 'image' || listType === 'image-card' ? 'image-card' : 'text'}-type`, listType === 'preview-list' && `${clsPrefix}-upload-file--preview-list-type`]
306
+ class: [`${clsPrefix}-upload-file`, `${clsPrefix}-upload-file--${this.progressStatus}-status`, file.url && file.status !== 'error' && imageCardTypes.includes(listType) && `${clsPrefix}-upload-file--with-url`, listType !== 'preview-card' && `${clsPrefix}-upload-file--${listType === 'image' || listType === 'image-card' ? 'image-card' : 'text'}-type`, listType === 'preview-list' && `${clsPrefix}-upload-file--preview-list-type`, listType === 'preview-card' && `${clsPrefix}-upload-file--preview-card-type`]
305
307
  }, h("div", {
306
308
  class: [`${clsPrefix}-upload-file-info`, imageCardTypes.includes(listType) && `${clsPrefix}-upload-file-info--vertical`]
307
- }, icon, h("div", {
309
+ }, listType === 'preview-card' ? cloneVNode(icon, {
310
+ onClick: this.handlePreviewClick
311
+ }) : icon, listType !== 'preview-card' && h("div", {
308
312
  class: `${clsPrefix}-upload-file-info__name`
309
313
  }, h(Fragment, null, h("span", {
310
314
  onClick: this.handlePreviewClick
@@ -32,6 +32,7 @@ export default defineComponent({
32
32
  } = UUpload;
33
33
  const isImageCardTypeRef = computed(() => listTypeRef.value === 'image-card' || listTypeRef.value === 'image');
34
34
  const isPreviewListTypeRef = computed(() => listTypeRef.value === 'preview-list');
35
+ const isPreviewCardTypeRef = computed(() => listTypeRef.value === 'preview-card');
35
36
  const renderFileList = () => mergedFileListRef.value.map(file => h(UUploadFile, {
36
37
  clsPrefix: mergedClsPrefixRef.value,
37
38
  key: file.id,
@@ -64,9 +65,9 @@ export default defineComponent({
64
65
  value: abstract
65
66
  } = abstractRef;
66
67
  return h("div", {
67
- class: [`${mergedClsPrefix}-upload-file-list`, isImageCardTypeRef.value && `${mergedClsPrefix}-upload-file-list--grid`, fileListClassRef.value, abstract ? themeClassRef === null || themeClassRef === void 0 ? void 0 : themeClassRef.value : undefined],
68
+ class: [`${mergedClsPrefix}-upload-file-list`, isImageCardTypeRef.value && `${mergedClsPrefix}-upload-file-list--grid`, isPreviewCardTypeRef.value && `${mergedClsPrefix}-upload-file-list--preview-card-grid`, fileListClassRef.value, abstract ? themeClassRef === null || themeClassRef === void 0 ? void 0 : themeClassRef.value : undefined],
68
69
  style: [abstract && cssVarsRef ? cssVarsRef.value : '', fileListStyleRef.value]
69
- }, renderUploadFileList(), isPreviewListTypeRef.value && renderPreview(), showTriggerRef.value && !maxReachedRef.value && isImageCardTypeRef.value && h(UUploadTrigger, null, slots));
70
+ }, renderUploadFileList(), (isPreviewListTypeRef.value || isPreviewCardTypeRef.value) && renderPreview(), showTriggerRef.value && !maxReachedRef.value && isImageCardTypeRef.value && h(UUploadTrigger, null, slots));
70
71
  };
71
72
  }
72
73
  });
@@ -39,6 +39,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
39
39
  widthSmall: string;
40
40
  widthMedium: string;
41
41
  widthLarge: string;
42
+ previewCardWidth: string;
43
+ previewCardHeight: string;
44
+ previewCardBorderRadius: string;
42
45
  containerSecondary: string;
43
46
  brandPrimary300: string;
44
47
  elementsQuaternary: string;
@@ -327,6 +330,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
327
330
  widthSmall: string;
328
331
  widthMedium: string;
329
332
  widthLarge: string;
333
+ previewCardWidth: string;
334
+ previewCardHeight: string;
335
+ previewCardBorderRadius: string;
330
336
  containerSecondary: string;
331
337
  brandPrimary300: string;
332
338
  elementsQuaternary: string;
@@ -225,7 +225,7 @@ export type FuncOrRecordOrUndef<T = string> = Record<string, T> | (({ file }: {
225
225
  file: SettledFileInfo;
226
226
  }) => Record<string, T>) | undefined;
227
227
  export type IsErrorState = (xhr: XMLHttpRequest) => boolean;
228
- export type ListType = 'text' | 'image' | 'image-card' | 'preview-list';
228
+ export type ListType = 'text' | 'image' | 'image-card' | 'preview-list' | 'preview-card';
229
229
  export type OnBeforeUpload = (data: OnBeforeUploadPayload) => Promise<boolean | void> | boolean | void;
230
230
  export type OnChange = (data: OnChangePayload) => void;
231
231
  export type OnDownload = (file: SettledFileInfo) => Promise<boolean> | boolean | any;
@@ -384,6 +384,9 @@ export declare const uploadProps: {
384
384
  widthSmall: string;
385
385
  widthMedium: string;
386
386
  widthLarge: string;
387
+ previewCardWidth: string;
388
+ previewCardHeight: string;
389
+ previewCardBorderRadius: string;
387
390
  containerSecondary: string;
388
391
  brandPrimary300: string;
389
392
  elementsQuaternary: string;
@@ -657,6 +660,9 @@ export declare const uploadProps: {
657
660
  widthSmall: string;
658
661
  widthMedium: string;
659
662
  widthLarge: string;
663
+ previewCardWidth: string;
664
+ previewCardHeight: string;
665
+ previewCardBorderRadius: string;
660
666
  containerSecondary: string;
661
667
  brandPrimary300: string;
662
668
  elementsQuaternary: string;
@@ -930,6 +936,9 @@ export declare const uploadProps: {
930
936
  widthSmall: string;
931
937
  widthMedium: string;
932
938
  widthLarge: string;
939
+ previewCardWidth: string;
940
+ previewCardHeight: string;
941
+ previewCardBorderRadius: string;
933
942
  containerSecondary: string;
934
943
  brandPrimary300: string;
935
944
  elementsQuaternary: string;
@@ -107,6 +107,10 @@ export default c([cB('upload', 'width: var(--u-upload-width)', [cM('dragger-insi
107
107
  grid-template-columns: repeat(auto-fill, 238px);
108
108
  grid-gap: 8px;
109
109
  margin-top: 0;
110
+ `), cM('preview-card-grid', `
111
+ display: grid;
112
+ grid-template-columns: repeat(auto-fill, var(--u-upload-preview-card-width));
113
+ grid-gap: 8px;
110
114
  `), cB('upload-file', `
111
115
  display: block;
112
116
  box-sizing: border-box;
@@ -125,6 +129,11 @@ export default c([cB('upload', 'width: var(--u-upload-width)', [cM('dragger-insi
125
129
  `), cE('action', `
126
130
  opacity: 1;
127
131
  z-index: 10;
132
+ `)])]), cM('preview-card-type', [cB('upload-file-info', [cE('preview', `
133
+ filter: blur(3px);
134
+ `), cE('action', `
135
+ opacity: 1;
136
+ z-index: 10;
128
137
  `)])])]), cM('text-type', `
129
138
  border: var(--u-item-border-image-card);
130
139
  margin-bottom: 12px;
@@ -209,6 +218,8 @@ export default c([cB('upload', 'width: var(--u-upload-width)', [cM('dragger-insi
209
218
  background-color: var(--u-item-color-hover-error);
210
219
  `), cB('upload-file-info', [cE('name', 'color: var(--u-item-text-color-error);'), cE('thumbnail', 'color: var(--u-item-text-color-error);')]), cM('image-card-type', `
211
220
  border: var(--u-item-border-image-card-error);
221
+ `), cM('preview-card-type', `
222
+ border: var(--u-item-border-image-card-error);
212
223
  `)]), cM('with-url', `
213
224
  cursor: pointer;
214
225
  `, [cB('upload-file-info', [cE('name', `
@@ -365,7 +376,79 @@ export default c([cB('upload', 'width: var(--u-upload-width)', [cM('dragger-insi
365
376
  `), c(':nth-child(3)', `
366
377
  font-size: 12px;
367
378
  color: var(--u-item-text-color-success);
368
- `)])])])]), cB('upload-file-input', `
379
+ `)])]), cM('preview-card-type', `
380
+ position: relative;
381
+ width: var(--u-upload-preview-card-width);
382
+ height: var(--u-upload-preview-card-height);
383
+ border: var(--u-item-border-image-card);
384
+ border-radius: var(--u-upload-preview-card-border-radius);
385
+ background-color: var(--u-upload-info-bg-color);
386
+ overflow: hidden;
387
+ transition: border-color .3s var(--u-bezier), background-color .3s var(--u-bezier);
388
+ `, [cB('upload-file-overlay', `
389
+ border-radius: inherit;
390
+ `), cB('upload-file-info', `
391
+ padding-top: 0;
392
+ padding-bottom: 0;
393
+ width: 100%;
394
+ height: 100%;
395
+ justify-content: center;
396
+ `, [cE('thumbnail', `
397
+ width: 100%;
398
+ height: 100%;
399
+ cursor: pointer;
400
+ `, [cM('icon', `
401
+ display: flex;
402
+ align-items: flex-start;
403
+ justify-content: center;
404
+ background-color: transparent;
405
+ border-radius: 0;
406
+ margin-right: 0;
407
+ width: 100%;
408
+ height: 100%;
409
+ `)]), cE('preview', `
410
+ flex-shrink: 0;
411
+ width: 56px;
412
+ height: 67px;
413
+ margin-top: 16px;
414
+ border-radius: 7px;
415
+ transition: filter .2s var(--u-bezier);
416
+ `, [cB('upload-file-info__preview--ext', `
417
+ font-size: 8px;
418
+ line-height: 10px;
419
+ font-weight: 700;
420
+ top: 6px;
421
+ left: 6px;
422
+ `), cB('upload-file-info__preview--content', `
423
+ top: 29px;
424
+ left: 6px;
425
+ width: 43px;
426
+ height: 3px;
427
+ border-radius: 2px;
428
+ `, [c('&::before', `
429
+ top: -6px;
430
+ width: 43px;
431
+ height: 3px;
432
+ border-radius: 2px;
433
+ `), c('&::after', `
434
+ top: 6px;
435
+ width: 24px;
436
+ height: 3px;
437
+ border-radius: 2px;
438
+ `)])]), cE('action', `
439
+ padding-top: 0;
440
+ padding-bottom: 0;
441
+ z-index: 2;
442
+ `, [cB('button', `
443
+ width: 24px;
444
+ height: 24px;
445
+ min-width: 24px;
446
+ padding: 0;
447
+ border-radius: 50%;
448
+ box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.08);
449
+ `, [cB('base-icon', `
450
+ font-size: 16px;
451
+ `)])])])])])]), cB('upload-file-input', `
369
452
  display: block;
370
453
  width: 0;
371
454
  height: 0;
@@ -28,8 +28,13 @@ export function useUploadActionsRender(options) {
28
28
  return i === -1 || i === name.length - 1 ? '' : name.slice(i + 1);
29
29
  };
30
30
  const isImageType = ['image', 'image-card'].includes(listType);
31
+ const isPreviewCardType = listType === 'preview-card';
31
32
  const fileExt = getExt(file.name);
32
33
  const capitalizedExt = capitalizeFirstLetter(fileExt);
34
+ const showRetry = showRetryButton && !disabled;
35
+ const showDownload = showDownloadButton && !isPreviewCardType;
36
+ const showRemoveOrCancel = (showRemoveButton || showCancelButton) && !disabled && !(isPreviewCardType && showRetry);
37
+ const showPreview = showPreviewButton && !(isPreviewCardType && (showRetry || showRemoveOrCancel));
33
38
  const fallbackIcon = h('div', {
34
39
  class: [`${clsPrefix}-upload-file-info__thumbnail`, `${clsPrefix}-upload-file-info__thumbnail--icon`]
35
40
  }, [h('span', {
@@ -43,8 +48,8 @@ export function useUploadActionsRender(options) {
43
48
  class: [`${clsPrefix}-upload-file-info__thumbnail`, `${clsPrefix}-upload-file-info__thumbnail--icon`]
44
49
  }, [renderIcon(file)]) : fallbackIcon;
45
50
  const actionsNode = h('div', {
46
- class: [`${clsPrefix}-upload-file-info__action`, `${clsPrefix}-upload-file--${isImageType ? 'image-card' : 'text'}-type`]
47
- }, [showPreviewButton && h(UButton, {
51
+ class: [`${clsPrefix}-upload-file-info__action`, `${clsPrefix}-upload-file--${isImageType ? 'image-card' : isPreviewCardType ? 'preview-card' : 'text'}-type`]
52
+ }, [showPreview && h(UButton, {
48
53
  key: 'preview',
49
54
  quaternary: true,
50
55
  type: buttonType,
@@ -58,7 +63,7 @@ export function useUploadActionsRender(options) {
58
63
  }, {
59
64
  default: () => h(EyeIcon)
60
65
  })
61
- }), (showRemoveButton || showCancelButton) && !disabled && h(UButton, {
66
+ }), showRemoveOrCancel && h(UButton, {
62
67
  key: 'cancelOrTrash',
63
68
  quaternary: true,
64
69
  type: buttonType,
@@ -80,7 +85,7 @@ export function useUploadActionsRender(options) {
80
85
  default: () => h(CancelIcon)
81
86
  })
82
87
  })
83
- }), showRetryButton && !disabled && h(UButton, {
88
+ }), showRetry && h(UButton, {
84
89
  key: 'retry',
85
90
  quaternary: true,
86
91
  type: buttonType,
@@ -94,7 +99,7 @@ export function useUploadActionsRender(options) {
94
99
  }, {
95
100
  default: () => h(RetryIcon)
96
101
  })
97
- }), showDownloadButton && h(UButton, {
102
+ }), showDownload && h(UButton, {
98
103
  key: 'download',
99
104
  quaternary: true,
100
105
  type: buttonType,
@@ -25,6 +25,9 @@ export declare function self(vars: ThemeCommonVars): {
25
25
  widthSmall: string;
26
26
  widthMedium: string;
27
27
  widthLarge: string;
28
+ previewCardWidth: string;
29
+ previewCardHeight: string;
30
+ previewCardBorderRadius: string;
28
31
  containerSecondary: string;
29
32
  brandPrimary300: string;
30
33
  elementsQuaternary: string;
@@ -56,6 +59,9 @@ declare const uploadLight: import("../../_mixins").Theme<"Upload", {
56
59
  widthSmall: string;
57
60
  widthMedium: string;
58
61
  widthLarge: string;
62
+ previewCardWidth: string;
63
+ previewCardHeight: string;
64
+ previewCardBorderRadius: string;
59
65
  containerSecondary: string;
60
66
  brandPrimary300: string;
61
67
  elementsQuaternary: string;
@@ -16,6 +16,7 @@ export function self(vars) {
16
16
  fontBodyMedium,
17
17
  lineHeightBodyMedium,
18
18
  borderRadiusLarge,
19
+ borderRadiusSmall,
19
20
  containerSecondary,
20
21
  brandPrimary300,
21
22
  brandPrimary500
@@ -48,6 +49,9 @@ export function self(vars) {
48
49
  widthSmall: '140px',
49
50
  widthMedium: 'auto',
50
51
  widthLarge: 'auto',
52
+ previewCardWidth: '80px',
53
+ previewCardHeight: '72px',
54
+ previewCardBorderRadius: borderRadiusSmall,
51
55
  containerSecondary,
52
56
  brandPrimary300,
53
57
  elementsQuaternary
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.4.2";
1
+ declare const _default: "2.4.4";
2
2
  export default _default;
package/es/version.mjs CHANGED
@@ -1 +1 @@
1
- export default '2.4.2';
1
+ export default '2.4.4';