@uzum-tech/ui 1.8.1 → 1.9.0

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 (303) hide show
  1. package/dist/index.js +847 -249
  2. package/dist/index.prod.js +3 -3
  3. package/es/_internal/scrollbar/src/Scrollbar.d.ts +119 -17
  4. package/es/_internal/scrollbar/src/Scrollbar.js +121 -68
  5. package/es/_internal/scrollbar/src/styles/index.cssr.js +32 -15
  6. package/es/_internal/scrollbar/styles/common.d.ts +7 -0
  7. package/es/_internal/scrollbar/styles/common.js +7 -0
  8. package/es/_internal/scrollbar/styles/light.d.ts +8 -0
  9. package/es/_internal/scrollbar/styles/light.js +3 -5
  10. package/es/_internal/select-menu/src/SelectMenu.d.ts +57 -1
  11. package/es/_internal/select-menu/styles/light.d.ts +8 -0
  12. package/es/_internal/selection/src/Selection.d.ts +3 -1
  13. package/es/_internal/selection/src/Selection.js +3 -1
  14. package/es/_utils/css/index.d.ts +1 -0
  15. package/es/_utils/css/index.js +1 -0
  16. package/es/_utils/css/rtl-inset.d.ts +1 -0
  17. package/es/_utils/css/rtl-inset.js +5 -0
  18. package/es/_utils/index.d.ts +1 -1
  19. package/es/_utils/index.js +1 -1
  20. package/es/auto-complete/src/AutoComplete.d.ts +88 -0
  21. package/es/auto-complete/styles/light.d.ts +8 -0
  22. package/es/back-top/src/BackTop.d.ts +1 -1
  23. package/es/button/src/Button.d.ts +72 -0
  24. package/es/button/src/Button.js +13 -7
  25. package/es/button/src/styles/index.cssr.js +1 -2
  26. package/es/button/styles/light.d.ts +8 -0
  27. package/es/button/styles/light.js +7 -7
  28. package/es/calendar/src/Calendar.d.ts +80 -0
  29. package/es/calendar/styles/light.d.ts +8 -0
  30. package/es/cascader/src/Cascader.d.ts +168 -0
  31. package/es/cascader/src/CascaderMenu.d.ts +24 -0
  32. package/es/cascader/src/CascaderOption.d.ts +24 -0
  33. package/es/cascader/src/CascaderSelectMenu.d.ts +24 -0
  34. package/es/cascader/src/CascaderSubmenu.d.ts +25 -1
  35. package/es/cascader/styles/light.d.ts +16 -0
  36. package/es/chat/src/Chat.d.ts +175 -7
  37. package/es/chat/src/Chat.js +11 -12
  38. package/es/chat/src/ChatListItems.d.ts +192 -0
  39. package/es/chat/src/ChatListItems.js +4 -1
  40. package/es/chat/src/ChatMessages.d.ts +192 -0
  41. package/es/chat/src/styles/index.cssr.js +1 -3
  42. package/es/chat/styles/dark.d.ts +16 -0
  43. package/es/chat/styles/light.d.ts +16 -0
  44. package/es/color-picker/src/ColorInputUnit.d.ts +8 -0
  45. package/es/color-picker/src/ColorPicker.d.ts +72 -0
  46. package/es/color-picker/styles/light.d.ts +8 -0
  47. package/es/components.d.ts +2 -0
  48. package/es/components.js +2 -0
  49. package/es/data-table/src/DataTable.d.ts +240 -0
  50. package/es/data-table/src/HeaderButton/FilterButton.d.ts +48 -0
  51. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +48 -0
  52. package/es/data-table/src/TableParts/Body.d.ts +49 -1
  53. package/es/data-table/src/TableParts/Header.d.ts +48 -0
  54. package/es/data-table/src/interface.d.ts +96 -0
  55. package/es/data-table/styles/light.d.ts +32 -0
  56. package/es/date-picker/src/DatePicker.d.ts +339 -3
  57. package/es/date-picker/src/panel/date.d.ts +49 -1
  58. package/es/date-picker/src/panel/daterange.d.ts +50 -2
  59. package/es/date-picker/src/panel/datetime.d.ts +49 -1
  60. package/es/date-picker/src/panel/datetimerange.d.ts +50 -2
  61. package/es/date-picker/src/panel/panelMonth.d.ts +98 -2
  62. package/es/date-picker/src/panel/panelMonthContent.d.ts +49 -1
  63. package/es/date-picker/src/panel/panelYear.d.ts +98 -2
  64. package/es/date-picker/src/panel/panelYearContent.d.ts +49 -1
  65. package/es/date-picker/src/panel/use-calendar.d.ts +48 -0
  66. package/es/date-picker/src/panel/use-dual-calendar.d.ts +48 -0
  67. package/es/date-picker/src/panel/use-panel-common.d.ts +48 -0
  68. package/es/date-picker/styles/light.d.ts +32 -0
  69. package/es/dialog/src/Dialog.d.ts +56 -0
  70. package/es/dialog/src/DialogProvider.d.ts +18 -2
  71. package/es/dialog/styles/light.d.ts +8 -0
  72. package/es/drawer/src/Drawer.d.ts +81 -1
  73. package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -1
  74. package/es/drawer/src/DrawerContent.d.ts +8 -0
  75. package/es/drawer/styles/light.d.ts +8 -0
  76. package/es/dropdown/src/Dropdown.d.ts +1 -1
  77. package/es/dynamic-input/src/DynamicInput.d.ts +80 -0
  78. package/es/dynamic-input/src/InputPreset.d.ts +8 -0
  79. package/es/dynamic-input/src/PairPreset.d.ts +8 -0
  80. package/es/dynamic-input/styles/light.d.ts +8 -0
  81. package/es/dynamic-tags/src/DynamicTags.d.ts +80 -0
  82. package/es/dynamic-tags/styles/light.d.ts +8 -0
  83. package/es/infinite-scroll/index.d.ts +2 -0
  84. package/es/infinite-scroll/index.js +1 -0
  85. package/es/infinite-scroll/src/InfiniteScroll.d.ts +45 -0
  86. package/es/infinite-scroll/src/InfiniteScroll.js +78 -0
  87. package/es/input-number/src/InputNumber.d.ts +80 -0
  88. package/es/input-number/styles/light.d.ts +8 -0
  89. package/es/layout/src/Layout.d.ts +112 -0
  90. package/es/layout/src/LayoutContent.d.ts +56 -0
  91. package/es/layout/src/LayoutFooter.d.ts +72 -0
  92. package/es/layout/src/LayoutHeader.d.ts +48 -0
  93. package/es/layout/src/LayoutSider.d.ts +56 -0
  94. package/es/layout/styles/light.d.ts +8 -0
  95. package/es/legacy-transfer/src/Transfer.d.ts +160 -0
  96. package/es/legacy-transfer/src/TransferFilter.d.ts +16 -0
  97. package/es/legacy-transfer/src/TransferList.d.ts +17 -1
  98. package/es/legacy-transfer/src/TransferListItem.d.ts +16 -0
  99. package/es/legacy-transfer/styles/light.d.ts +16 -0
  100. package/es/log/src/Log.d.ts +80 -0
  101. package/es/log/styles/light.d.ts +8 -0
  102. package/es/mention/src/Mention.d.ts +88 -0
  103. package/es/mention/styles/light.d.ts +8 -0
  104. package/es/menu/src/Menu.d.ts +1 -1
  105. package/es/modal/src/BodyWrapper.d.ts +25 -1
  106. package/es/modal/src/Modal.d.ts +145 -1
  107. package/es/modal/styles/light.d.ts +16 -0
  108. package/es/notification/src/Notification.d.ts +5 -0
  109. package/es/notification/src/Notification.js +16 -6
  110. package/es/notification/src/NotificationContainer.d.ts +20 -0
  111. package/es/notification/src/NotificationProvider.d.ts +180 -0
  112. package/es/notification/src/styles/index.cssr.js +12 -8
  113. package/es/notification/styles/light.d.ts +32 -0
  114. package/es/notification/styles/light.js +9 -8
  115. package/es/pagination/src/Pagination.d.ts +176 -0
  116. package/es/pagination/styles/light.d.ts +16 -0
  117. package/es/popconfirm/src/Popconfirm.d.ts +80 -0
  118. package/es/popconfirm/styles/light.d.ts +8 -0
  119. package/es/popselect/src/Popselect.d.ts +88 -0
  120. package/es/popselect/src/PopselectPanel.d.ts +16 -0
  121. package/es/popselect/styles/light.d.ts +8 -0
  122. package/es/scrollbar/src/Scrollbar.d.ts +72 -0
  123. package/es/select/src/Select.d.ts +88 -0
  124. package/es/select/styles/light.d.ts +8 -0
  125. package/es/time-picker/src/Panel.d.ts +16 -0
  126. package/es/time-picker/src/TimePicker.d.ts +160 -0
  127. package/es/time-picker/styles/light.d.ts +16 -0
  128. package/es/transfer/src/Transfer.d.ts +160 -0
  129. package/es/transfer/src/TransferFilter.d.ts +16 -0
  130. package/es/transfer/src/TransferList.d.ts +17 -1
  131. package/es/transfer/src/TransferListItem.d.ts +16 -0
  132. package/es/transfer/styles/light.d.ts +16 -0
  133. package/es/tree/src/Tree.d.ts +82 -2
  134. package/es/tree/src/TreeNodeCheckbox.d.ts +8 -0
  135. package/es/tree/styles/light.d.ts +8 -0
  136. package/es/tree-select/src/TreeSelect.d.ts +89 -1
  137. package/es/tree-select/styles/light.d.ts +8 -0
  138. package/es/upload/src/Upload.d.ts +90 -0
  139. package/es/upload/src/Upload.js +2 -1
  140. package/es/upload/src/UploadFile.d.ts +9 -0
  141. package/es/upload/src/UploadProgress.d.ts +9 -0
  142. package/es/upload/src/styles/index.cssr.js +1 -0
  143. package/es/upload/src/useUploadActionsRender.js +5 -1
  144. package/es/upload/styles/light.d.ts +10 -0
  145. package/es/upload/styles/light.js +6 -5
  146. package/es/version.d.ts +1 -1
  147. package/es/version.js +1 -1
  148. package/es/virtual-list/index.d.ts +2 -0
  149. package/es/virtual-list/index.js +1 -0
  150. package/es/virtual-list/src/VirtualList.d.ts +146 -0
  151. package/es/virtual-list/src/VirtualList.js +103 -0
  152. package/lib/_internal/scrollbar/src/Scrollbar.d.ts +119 -17
  153. package/lib/_internal/scrollbar/src/Scrollbar.js +118 -65
  154. package/lib/_internal/scrollbar/src/styles/index.cssr.js +32 -15
  155. package/lib/_internal/scrollbar/styles/common.d.ts +7 -0
  156. package/lib/_internal/scrollbar/styles/common.js +10 -0
  157. package/lib/_internal/scrollbar/styles/light.d.ts +8 -0
  158. package/lib/_internal/scrollbar/styles/light.js +3 -5
  159. package/lib/_internal/select-menu/src/SelectMenu.d.ts +57 -1
  160. package/lib/_internal/select-menu/styles/light.d.ts +8 -0
  161. package/lib/_internal/selection/src/Selection.d.ts +3 -1
  162. package/lib/_internal/selection/src/Selection.js +3 -1
  163. package/lib/_utils/css/index.d.ts +1 -0
  164. package/lib/_utils/css/index.js +3 -1
  165. package/lib/_utils/css/rtl-inset.d.ts +1 -0
  166. package/lib/_utils/css/rtl-inset.js +8 -0
  167. package/lib/_utils/index.d.ts +1 -1
  168. package/lib/_utils/index.js +2 -1
  169. package/lib/auto-complete/src/AutoComplete.d.ts +88 -0
  170. package/lib/auto-complete/styles/light.d.ts +8 -0
  171. package/lib/back-top/src/BackTop.d.ts +1 -1
  172. package/lib/button/src/Button.d.ts +72 -0
  173. package/lib/button/src/Button.js +13 -7
  174. package/lib/button/src/styles/index.cssr.js +1 -2
  175. package/lib/button/styles/light.d.ts +8 -0
  176. package/lib/button/styles/light.js +7 -7
  177. package/lib/calendar/src/Calendar.d.ts +80 -0
  178. package/lib/calendar/styles/light.d.ts +8 -0
  179. package/lib/cascader/src/Cascader.d.ts +168 -0
  180. package/lib/cascader/src/CascaderMenu.d.ts +24 -0
  181. package/lib/cascader/src/CascaderOption.d.ts +24 -0
  182. package/lib/cascader/src/CascaderSelectMenu.d.ts +24 -0
  183. package/lib/cascader/src/CascaderSubmenu.d.ts +25 -1
  184. package/lib/cascader/styles/light.d.ts +16 -0
  185. package/lib/chat/src/Chat.d.ts +175 -7
  186. package/lib/chat/src/Chat.js +11 -12
  187. package/lib/chat/src/ChatListItems.d.ts +192 -0
  188. package/lib/chat/src/ChatListItems.js +4 -1
  189. package/lib/chat/src/ChatMessages.d.ts +192 -0
  190. package/lib/chat/src/styles/index.cssr.js +1 -3
  191. package/lib/chat/styles/dark.d.ts +16 -0
  192. package/lib/chat/styles/light.d.ts +16 -0
  193. package/lib/color-picker/src/ColorInputUnit.d.ts +8 -0
  194. package/lib/color-picker/src/ColorPicker.d.ts +72 -0
  195. package/lib/color-picker/styles/light.d.ts +8 -0
  196. package/lib/components.d.ts +2 -0
  197. package/lib/components.js +2 -0
  198. package/lib/data-table/src/DataTable.d.ts +240 -0
  199. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +48 -0
  200. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +48 -0
  201. package/lib/data-table/src/TableParts/Body.d.ts +49 -1
  202. package/lib/data-table/src/TableParts/Header.d.ts +48 -0
  203. package/lib/data-table/src/interface.d.ts +96 -0
  204. package/lib/data-table/styles/light.d.ts +32 -0
  205. package/lib/date-picker/src/DatePicker.d.ts +339 -3
  206. package/lib/date-picker/src/panel/date.d.ts +49 -1
  207. package/lib/date-picker/src/panel/daterange.d.ts +50 -2
  208. package/lib/date-picker/src/panel/datetime.d.ts +49 -1
  209. package/lib/date-picker/src/panel/datetimerange.d.ts +50 -2
  210. package/lib/date-picker/src/panel/panelMonth.d.ts +98 -2
  211. package/lib/date-picker/src/panel/panelMonthContent.d.ts +49 -1
  212. package/lib/date-picker/src/panel/panelYear.d.ts +98 -2
  213. package/lib/date-picker/src/panel/panelYearContent.d.ts +49 -1
  214. package/lib/date-picker/src/panel/use-calendar.d.ts +48 -0
  215. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +48 -0
  216. package/lib/date-picker/src/panel/use-panel-common.d.ts +48 -0
  217. package/lib/date-picker/styles/light.d.ts +32 -0
  218. package/lib/dialog/src/Dialog.d.ts +56 -0
  219. package/lib/dialog/src/DialogProvider.d.ts +18 -2
  220. package/lib/dialog/styles/light.d.ts +8 -0
  221. package/lib/drawer/src/Drawer.d.ts +81 -1
  222. package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -1
  223. package/lib/drawer/src/DrawerContent.d.ts +8 -0
  224. package/lib/drawer/styles/light.d.ts +8 -0
  225. package/lib/dropdown/src/Dropdown.d.ts +1 -1
  226. package/lib/dynamic-input/src/DynamicInput.d.ts +80 -0
  227. package/lib/dynamic-input/src/InputPreset.d.ts +8 -0
  228. package/lib/dynamic-input/src/PairPreset.d.ts +8 -0
  229. package/lib/dynamic-input/styles/light.d.ts +8 -0
  230. package/lib/dynamic-tags/src/DynamicTags.d.ts +80 -0
  231. package/lib/dynamic-tags/styles/light.d.ts +8 -0
  232. package/lib/infinite-scroll/index.d.ts +2 -0
  233. package/lib/infinite-scroll/index.js +9 -0
  234. package/lib/infinite-scroll/src/InfiniteScroll.d.ts +45 -0
  235. package/lib/infinite-scroll/src/InfiniteScroll.js +81 -0
  236. package/lib/input-number/src/InputNumber.d.ts +80 -0
  237. package/lib/input-number/styles/light.d.ts +8 -0
  238. package/lib/layout/src/Layout.d.ts +112 -0
  239. package/lib/layout/src/LayoutContent.d.ts +56 -0
  240. package/lib/layout/src/LayoutFooter.d.ts +72 -0
  241. package/lib/layout/src/LayoutHeader.d.ts +48 -0
  242. package/lib/layout/src/LayoutSider.d.ts +56 -0
  243. package/lib/layout/styles/light.d.ts +8 -0
  244. package/lib/legacy-transfer/src/Transfer.d.ts +160 -0
  245. package/lib/legacy-transfer/src/TransferFilter.d.ts +16 -0
  246. package/lib/legacy-transfer/src/TransferList.d.ts +17 -1
  247. package/lib/legacy-transfer/src/TransferListItem.d.ts +16 -0
  248. package/lib/legacy-transfer/styles/light.d.ts +16 -0
  249. package/lib/log/src/Log.d.ts +80 -0
  250. package/lib/log/styles/light.d.ts +8 -0
  251. package/lib/mention/src/Mention.d.ts +88 -0
  252. package/lib/mention/styles/light.d.ts +8 -0
  253. package/lib/menu/src/Menu.d.ts +1 -1
  254. package/lib/modal/src/BodyWrapper.d.ts +25 -1
  255. package/lib/modal/src/Modal.d.ts +145 -1
  256. package/lib/modal/styles/light.d.ts +16 -0
  257. package/lib/notification/src/Notification.d.ts +5 -0
  258. package/lib/notification/src/Notification.js +14 -4
  259. package/lib/notification/src/NotificationContainer.d.ts +20 -0
  260. package/lib/notification/src/NotificationProvider.d.ts +180 -0
  261. package/lib/notification/src/styles/index.cssr.js +12 -8
  262. package/lib/notification/styles/light.d.ts +32 -0
  263. package/lib/notification/styles/light.js +9 -8
  264. package/lib/pagination/src/Pagination.d.ts +176 -0
  265. package/lib/pagination/styles/light.d.ts +16 -0
  266. package/lib/popconfirm/src/Popconfirm.d.ts +80 -0
  267. package/lib/popconfirm/styles/light.d.ts +8 -0
  268. package/lib/popselect/src/Popselect.d.ts +88 -0
  269. package/lib/popselect/src/PopselectPanel.d.ts +16 -0
  270. package/lib/popselect/styles/light.d.ts +8 -0
  271. package/lib/scrollbar/src/Scrollbar.d.ts +72 -0
  272. package/lib/select/src/Select.d.ts +88 -0
  273. package/lib/select/styles/light.d.ts +8 -0
  274. package/lib/time-picker/src/Panel.d.ts +16 -0
  275. package/lib/time-picker/src/TimePicker.d.ts +160 -0
  276. package/lib/time-picker/styles/light.d.ts +16 -0
  277. package/lib/transfer/src/Transfer.d.ts +160 -0
  278. package/lib/transfer/src/TransferFilter.d.ts +16 -0
  279. package/lib/transfer/src/TransferList.d.ts +17 -1
  280. package/lib/transfer/src/TransferListItem.d.ts +16 -0
  281. package/lib/transfer/styles/light.d.ts +16 -0
  282. package/lib/tree/src/Tree.d.ts +82 -2
  283. package/lib/tree/src/TreeNodeCheckbox.d.ts +8 -0
  284. package/lib/tree/styles/light.d.ts +8 -0
  285. package/lib/tree-select/src/TreeSelect.d.ts +89 -1
  286. package/lib/tree-select/styles/light.d.ts +8 -0
  287. package/lib/upload/src/Upload.d.ts +90 -0
  288. package/lib/upload/src/Upload.js +2 -1
  289. package/lib/upload/src/UploadFile.d.ts +9 -0
  290. package/lib/upload/src/UploadProgress.d.ts +9 -0
  291. package/lib/upload/src/styles/index.cssr.js +1 -0
  292. package/lib/upload/src/useUploadActionsRender.js +5 -1
  293. package/lib/upload/styles/light.d.ts +10 -0
  294. package/lib/upload/styles/light.js +6 -5
  295. package/lib/version.d.ts +1 -1
  296. package/lib/version.js +1 -1
  297. package/lib/virtual-list/index.d.ts +2 -0
  298. package/lib/virtual-list/index.js +9 -0
  299. package/lib/virtual-list/src/VirtualList.d.ts +146 -0
  300. package/lib/virtual-list/src/VirtualList.js +106 -0
  301. package/package.json +2 -2
  302. package/volar.d.ts +1 -0
  303. package/web-types.json +33 -4
@@ -4,19 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.XScrollbar = void 0;
7
- const vue_1 = require("vue");
8
7
  const evtd_1 = require("evtd");
9
- const vueuc_1 = require("vueuc");
10
- const vooks_1 = require("vooks");
11
8
  const seemly_1 = require("seemly");
9
+ const vooks_1 = require("vooks");
10
+ const vue_1 = require("vue");
11
+ const vueuc_1 = require("vueuc");
12
12
  const _mixins_1 = require("../../../_mixins");
13
13
  const _utils_1 = require("../../../_utils");
14
14
  const styles_1 = require("../styles");
15
15
  const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
16
- const scrollbarProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { size: {
17
- type: Number,
18
- default: 5
19
- }, duration: {
16
+ const scrollbarProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { duration: {
20
17
  type: Number,
21
18
  default: 0
22
19
  }, scrollable: {
@@ -27,7 +24,13 @@ const scrollbarProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props)
27
24
  default: 'hover'
28
25
  }, useUnifiedContainer: Boolean, triggerDisplayManually: Boolean,
29
26
  // If container is set, resize observer won't not attached
30
- container: Function, content: Function, containerClass: String, containerStyle: [String, Object], contentClass: String, contentStyle: [String, Object], horizontalRailStyle: [String, Object], verticalRailStyle: [String, Object], onScroll: Function, onWheel: Function, onResize: Function, internalOnUpdateScrollLeft: Function, internalHoistYRail: Boolean });
27
+ container: Function, content: Function, containerClass: String, containerStyle: [String, Object], contentClass: [String, Array], contentStyle: [String, Object], horizontalRailStyle: [String, Object], verticalRailStyle: [String, Object], onScroll: Function, onWheel: Function, onResize: Function, internalOnUpdateScrollLeft: Function, internalHoistYRail: Boolean, yPlacement: {
28
+ type: String,
29
+ default: 'right'
30
+ }, xPlacement: {
31
+ type: String,
32
+ default: 'bottom'
33
+ } });
31
34
  const Scrollbar = (0, vue_1.defineComponent)({
32
35
  name: 'Scrollbar',
33
36
  props: scrollbarProps,
@@ -61,6 +64,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
61
64
  let memoMouseX = 0;
62
65
  let memoMouseY = 0;
63
66
  const isIos = (0, vooks_1.useIsIos)();
67
+ const themeRef = (0, _mixins_1.useTheme)('Scrollbar', '-scrollbar', index_cssr_1.default, styles_1.scrollbarLight, props, mergedClsPrefixRef);
64
68
  const yBarSizeRef = (0, vue_1.computed)(() => {
65
69
  const { value: containerHeight } = containerHeightRef;
66
70
  const { value: contentHeight } = contentHeightRef;
@@ -71,7 +75,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
71
75
  return 0;
72
76
  }
73
77
  else {
74
- return Math.min(containerHeight, (yRailSize * containerHeight) / contentHeight + props.size * 1.5);
78
+ return Math.min(containerHeight, (yRailSize * containerHeight) / contentHeight +
79
+ (0, seemly_1.depx)(themeRef.value.self.width) * 1.5);
75
80
  }
76
81
  });
77
82
  const yBarSizePxRef = (0, vue_1.computed)(() => {
@@ -87,7 +92,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
87
92
  return 0;
88
93
  }
89
94
  else {
90
- return (xRailSize * containerWidth) / contentWidth + props.size * 1.5;
95
+ return ((xRailSize * containerWidth) / contentWidth +
96
+ (0, seemly_1.depx)(themeRef.value.self.height) * 1.5);
91
97
  }
92
98
  });
93
99
  const xBarSizePxRef = (0, vue_1.computed)(() => {
@@ -105,8 +111,9 @@ const Scrollbar = (0, vue_1.defineComponent)({
105
111
  }
106
112
  else {
107
113
  const heightDiff = contentHeight - containerHeight;
108
- if (!heightDiff)
114
+ if (!heightDiff) {
109
115
  return 0;
116
+ }
110
117
  return ((containerScrollTop / heightDiff) * (yRailSize - yBarSizeRef.value));
111
118
  }
112
119
  });
@@ -125,8 +132,9 @@ const Scrollbar = (0, vue_1.defineComponent)({
125
132
  }
126
133
  else {
127
134
  const widthDiff = contentWidth - containerWidth;
128
- if (!widthDiff)
135
+ if (!widthDiff) {
129
136
  return 0;
137
+ }
130
138
  return ((containerScrollLeft / widthDiff) * (xRailSize - xBarSizeRef.value));
131
139
  }
132
140
  });
@@ -157,45 +165,24 @@ const Scrollbar = (0, vue_1.defineComponent)({
157
165
  });
158
166
  const mergedContainerRef = (0, vue_1.computed)(() => {
159
167
  const { container } = props;
160
- if (container)
168
+ if (container) {
161
169
  return container();
170
+ }
162
171
  return containerRef.value;
163
172
  });
164
173
  const mergedContentRef = (0, vue_1.computed)(() => {
165
174
  const { content } = props;
166
- if (content)
175
+ if (content) {
167
176
  return content();
168
- return contentRef.value;
169
- });
170
- const activateState = (0, _utils_1.useReactivated)(() => {
171
- // Only restore for builtin container & content
172
- if (!props.container) {
173
- // remount
174
- scrollTo({
175
- top: containerScrollTopRef.value,
176
- left: containerScrollLeftRef.value
177
- });
178
177
  }
178
+ return contentRef.value;
179
179
  });
180
- // methods
181
- const handleContentResize = () => {
182
- if (activateState.isDeactivated)
183
- return;
184
- sync();
185
- };
186
- const handleContainerResize = (e) => {
187
- if (activateState.isDeactivated)
188
- return;
189
- const { onResize } = props;
190
- if (onResize)
191
- onResize(e);
192
- sync();
193
- };
194
180
  const scrollTo = (options, y) => {
195
- if (!props.scrollable)
181
+ if (!props.scrollable) {
196
182
  return;
183
+ }
197
184
  if (typeof options === 'number') {
198
- scrollToPosition(y !== null && y !== void 0 ? y : 0, options, 0, false, 'auto');
185
+ scrollToPosition(options, y !== null && y !== void 0 ? y : 0, 0, false, 'auto');
199
186
  return;
200
187
  }
201
188
  const { left, top, index, elSize, position, behavior, el, debounce = true } = options;
@@ -215,12 +202,41 @@ const Scrollbar = (0, vue_1.defineComponent)({
215
202
  scrollToPosition(0, 0, 0, false, behavior);
216
203
  }
217
204
  };
205
+ const activateState = (0, _utils_1.useReactivated)(() => {
206
+ // Only restore for builtin container & content
207
+ if (!props.container) {
208
+ // remount
209
+ scrollTo({
210
+ top: containerScrollTopRef.value,
211
+ left: containerScrollLeftRef.value
212
+ });
213
+ }
214
+ });
215
+ // methods
216
+ const handleContentResize = () => {
217
+ if (activateState.isDeactivated) {
218
+ return;
219
+ }
220
+ sync();
221
+ };
222
+ const handleContainerResize = (e) => {
223
+ if (activateState.isDeactivated) {
224
+ return;
225
+ }
226
+ const { onResize } = props;
227
+ if (onResize) {
228
+ onResize(e);
229
+ }
230
+ sync();
231
+ };
218
232
  const scrollBy = (options, y) => {
219
- if (!props.scrollable)
233
+ if (!props.scrollable) {
220
234
  return;
235
+ }
221
236
  const { value: container } = mergedContainerRef;
222
- if (!container)
237
+ if (!container) {
223
238
  return;
239
+ }
224
240
  if (typeof options === 'object') {
225
241
  container.scrollBy(options);
226
242
  }
@@ -230,8 +246,9 @@ const Scrollbar = (0, vue_1.defineComponent)({
230
246
  };
231
247
  function scrollToPosition(left, top, elSize, debounce, behavior) {
232
248
  const { value: container } = mergedContainerRef;
233
- if (!container)
249
+ if (!container) {
234
250
  return;
251
+ }
235
252
  if (debounce) {
236
253
  const { scrollTop, offsetHeight } = container;
237
254
  if (top > scrollTop) {
@@ -296,8 +313,9 @@ const Scrollbar = (0, vue_1.defineComponent)({
296
313
  }
297
314
  function handleScroll(e) {
298
315
  const { onScroll } = props;
299
- if (onScroll)
316
+ if (onScroll) {
300
317
  onScroll(e);
318
+ }
301
319
  syncScrollState();
302
320
  }
303
321
  function syncScrollState() {
@@ -356,8 +374,9 @@ const Scrollbar = (0, vue_1.defineComponent)({
356
374
  }
357
375
  }
358
376
  function sync() {
359
- if (!props.scrollable)
377
+ if (!props.scrollable) {
360
378
  return;
379
+ }
361
380
  if (props.useUnifiedContainer) {
362
381
  syncUnifiedContainer();
363
382
  }
@@ -382,8 +401,9 @@ const Scrollbar = (0, vue_1.defineComponent)({
382
401
  : e.clientX;
383
402
  }
384
403
  function handleXScrollMouseMove(e) {
385
- if (!xBarPressed)
404
+ if (!xBarPressed) {
386
405
  return;
406
+ }
387
407
  if (xBarVanishTimerId !== undefined) {
388
408
  window.clearTimeout(xBarVanishTimerId);
389
409
  }
@@ -393,8 +413,9 @@ const Scrollbar = (0, vue_1.defineComponent)({
393
413
  const { value: containerWidth } = containerWidthRef;
394
414
  const { value: contentWidth } = contentWidthRef;
395
415
  const { value: xBarSize } = xBarSizeRef;
396
- if (containerWidth === null || contentWidth === null)
416
+ if (containerWidth === null || contentWidth === null) {
397
417
  return;
418
+ }
398
419
  const dX = (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value)
399
420
  ? window.innerWidth - e.clientX - memoMouseX
400
421
  : e.clientX - memoMouseX;
@@ -407,8 +428,9 @@ const Scrollbar = (0, vue_1.defineComponent)({
407
428
  if (container) {
408
429
  container.scrollLeft = toScrollLeft * ((rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) ? -1 : 1);
409
430
  const { internalOnUpdateScrollLeft } = props;
410
- if (internalOnUpdateScrollLeft)
431
+ if (internalOnUpdateScrollLeft) {
411
432
  internalOnUpdateScrollLeft(toScrollLeft);
433
+ }
412
434
  }
413
435
  }
414
436
  function handleXScrollMouseUp(e) {
@@ -432,8 +454,9 @@ const Scrollbar = (0, vue_1.defineComponent)({
432
454
  memoMouseY = e.clientY;
433
455
  }
434
456
  function handleYScrollMouseMove(e) {
435
- if (!yBarPressed)
457
+ if (!yBarPressed) {
436
458
  return;
459
+ }
437
460
  if (xBarVanishTimerId !== undefined) {
438
461
  window.clearTimeout(xBarVanishTimerId);
439
462
  }
@@ -443,8 +466,9 @@ const Scrollbar = (0, vue_1.defineComponent)({
443
466
  const { value: containerHeight } = containerHeightRef;
444
467
  const { value: contentHeight } = contentHeightRef;
445
468
  const { value: yBarSize } = yBarSizeRef;
446
- if (containerHeight === null || contentHeight === null)
469
+ if (containerHeight === null || contentHeight === null) {
447
470
  return;
471
+ }
448
472
  const dY = e.clientY - memoMouseY;
449
473
  const dScrollTop = (dY * (contentHeight - containerHeight)) / (containerHeight - yBarSize);
450
474
  const toScrollTopUpperBound = contentHeight - containerHeight;
@@ -499,8 +523,9 @@ const Scrollbar = (0, vue_1.defineComponent)({
499
523
  // if you pass inner to scrollbar, you may use a ref inside component
500
524
  // however, when scrollbar is mounted, ref is not ready at component
501
525
  // you need to init by yourself
502
- if (props.container)
526
+ if (props.container) {
503
527
  return;
528
+ }
504
529
  sync();
505
530
  });
506
531
  (0, vue_1.onBeforeUnmount)(() => {
@@ -513,16 +538,40 @@ const Scrollbar = (0, vue_1.defineComponent)({
513
538
  (0, evtd_1.off)('mousemove', window, handleYScrollMouseMove, true);
514
539
  (0, evtd_1.off)('mouseup', window, handleYScrollMouseUp, true);
515
540
  });
516
- const themeRef = (0, _mixins_1.useTheme)('Scrollbar', '-scrollbar', index_cssr_1.default, styles_1.scrollbarLight, props, mergedClsPrefixRef);
517
541
  const cssVarsRef = (0, vue_1.computed)(() => {
518
- const { common: { cubicBezierEaseInOut, scrollbarBorderRadius, scrollbarHeight, scrollbarWidth }, self: { color, colorHover } } = themeRef.value;
542
+ const { common: { cubicBezierEaseInOut }, self: { color, colorHover, height, width, borderRadius, railInsetHorizontalTop, railInsetHorizontalBottom, railInsetVerticalRight, railInsetVerticalLeft, railColor } } = themeRef.value;
543
+ const { top: railTopHorizontalTop, right: railRightHorizontalTop, bottom: railBottomHorizontalTop, left: railLeftHorizontalTop } = (0, seemly_1.getPadding)(railInsetHorizontalTop);
544
+ const { top: railTopHorizontalBottom, right: railRightHorizontalBottom, bottom: railBottomHorizontalBottom, left: railLeftHorizontalBottom } = (0, seemly_1.getPadding)(railInsetHorizontalBottom);
545
+ const { top: railTopVerticalRight, right: railRightVerticalRight, bottom: railBottomVerticalRight, left: railLeftVerticalRight } = (0, seemly_1.getPadding)((rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value)
546
+ ? (0, _utils_1.rtlInset)(railInsetVerticalRight)
547
+ : railInsetVerticalRight);
548
+ const { top: railTopVerticalLeft, right: railRightVerticalLeft, bottom: railBottomVerticalLeft, left: railLeftVerticalLeft } = (0, seemly_1.getPadding)((rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value)
549
+ ? (0, _utils_1.rtlInset)(railInsetVerticalLeft)
550
+ : railInsetVerticalLeft);
519
551
  return {
520
552
  '--u-scrollbar-bezier': cubicBezierEaseInOut,
521
553
  '--u-scrollbar-color': color,
522
554
  '--u-scrollbar-color-hover': colorHover,
523
- '--u-scrollbar-border-radius': scrollbarBorderRadius,
524
- '--u-scrollbar-width': scrollbarWidth,
525
- '--u-scrollbar-height': scrollbarHeight
555
+ '--u-scrollbar-border-radius': borderRadius,
556
+ '--u-scrollbar-width': width,
557
+ '--u-scrollbar-height': height,
558
+ '--u-scrollbar-rail-top-horizontal-top': railTopHorizontalTop,
559
+ '--u-scrollbar-rail-right-horizontal-top': railRightHorizontalTop,
560
+ '--u-scrollbar-rail-bottom-horizontal-top': railBottomHorizontalTop,
561
+ '--u-scrollbar-rail-left-horizontal-top': railLeftHorizontalTop,
562
+ '--u-scrollbar-rail-top-horizontal-bottom': railTopHorizontalBottom,
563
+ '--u-scrollbar-rail-right-horizontal-bottom': railRightHorizontalBottom,
564
+ '--u-scrollbar-rail-bottom-horizontal-bottom': railBottomHorizontalBottom,
565
+ '--u-scrollbar-rail-left-horizontal-bottom': railLeftHorizontalBottom,
566
+ '--u-scrollbar-rail-top-vertical-right': railTopVerticalRight,
567
+ '--u-scrollbar-rail-right-vertical-right': railRightVerticalRight,
568
+ '--u-scrollbar-rail-bottom-vertical-right': railBottomVerticalRight,
569
+ '--u-scrollbar-rail-left-vertical-right': railLeftVerticalRight,
570
+ '--u-scrollbar-rail-top-vertical-left': railTopVerticalLeft,
571
+ '--u-scrollbar-rail-right-vertical-left': railRightVerticalLeft,
572
+ '--u-scrollbar-rail-bottom-vertical-left': railBottomVerticalLeft,
573
+ '--u-scrollbar-rail-left-vertical-left': railLeftVerticalLeft,
574
+ '--u-scrollbar-rail-color': railColor
526
575
  };
527
576
  });
528
577
  const themeClassHandle = inlineThemeDisabled
@@ -549,15 +598,18 @@ const Scrollbar = (0, vue_1.defineComponent)({
549
598
  },
550
599
  render() {
551
600
  var _a;
552
- const { $slots, mergedClsPrefix, triggerDisplayManually, rtlEnabled, internalHoistYRail } = this;
553
- if (!this.scrollable)
601
+ const { $slots, mergedClsPrefix, triggerDisplayManually, rtlEnabled, internalHoistYRail, yPlacement, xPlacement, xScrollable } = this;
602
+ if (!this.scrollable) {
554
603
  return (_a = $slots.default) === null || _a === void 0 ? void 0 : _a.call($slots);
604
+ }
555
605
  const triggerIsNone = this.trigger === 'none';
556
- const createYRail = (style) => {
606
+ const createYRail = (className, style) => {
557
607
  return ((0, vue_1.h)("div", { ref: "yRailRef", class: [
558
608
  `${mergedClsPrefix}-scrollbar-rail`,
559
- `${mergedClsPrefix}-scrollbar-rail--vertical`
560
- ], "data-scrollbar-rail": true, style: [style || '', this.verticalRailStyle], "aria-hiddens": true }, (0, vue_1.h)((triggerIsNone ? _utils_1.Wrapper : vue_1.Transition), triggerIsNone ? null : { name: 'fade-in-transition' }, {
609
+ `${mergedClsPrefix}-scrollbar-rail--vertical`,
610
+ `${mergedClsPrefix}-scrollbar-rail--vertical--${yPlacement}`,
611
+ className
612
+ ], "data-scrollbar-rail": true, style: [style || '', this.verticalRailStyle], "aria-hidden": true }, (0, vue_1.h)((triggerIsNone ? _utils_1.Wrapper : vue_1.Transition), triggerIsNone ? null : { name: 'fade-in-transition' }, {
561
613
  default: () => this.needYBar && this.isShowYBar && !this.isIos ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-scrollbar-rail__scrollbar`, style: {
562
614
  height: this.yBarSizePx,
563
615
  top: this.yBarTopPx
@@ -598,10 +650,11 @@ const Scrollbar = (0, vue_1.defineComponent)({
598
650
  this.contentClass
599
651
  ] }, $slots))
600
652
  }))),
601
- internalHoistYRail ? null : createYRail(undefined),
602
- this.xScrollable && ((0, vue_1.h)("div", { ref: "xRailRef", class: [
653
+ internalHoistYRail ? null : createYRail(undefined, undefined),
654
+ xScrollable && ((0, vue_1.h)("div", { ref: "xRailRef", class: [
603
655
  `${mergedClsPrefix}-scrollbar-rail`,
604
- `${mergedClsPrefix}-scrollbar-rail--horizontal`
656
+ `${mergedClsPrefix}-scrollbar-rail--horizontal`,
657
+ `${mergedClsPrefix}-scrollbar-rail--horizontal--${xPlacement}`
605
658
  ], style: this.horizontalRailStyle, "data-scrollbar-rail": true, "aria-hidden": true }, (0, vue_1.h)((triggerIsNone ? _utils_1.Wrapper : vue_1.Transition), triggerIsNone ? null : { name: 'fade-in-transition' }, {
606
659
  default: () => this.needXBar && this.isShowXBar && !this.isIos ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-scrollbar-rail__scrollbar`, style: {
607
660
  width: this.xBarSizePx,
@@ -617,7 +670,7 @@ const Scrollbar = (0, vue_1.defineComponent)({
617
670
  if (internalHoistYRail) {
618
671
  return ((0, vue_1.h)(vue_1.Fragment, null,
619
672
  scrollbarNode,
620
- createYRail(this.cssVars)));
673
+ createYRail(this.themeClass, this.cssVars)));
621
674
  }
622
675
  else {
623
676
  return scrollbarNode;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- const cssr_1 = require("../../../../_utils/cssr");
7
6
  const fade_in_cssr_1 = require("../../../../_styles/transitions/fade-in.cssr");
7
+ const cssr_1 = require("../../../../_utils/cssr");
8
8
  // vars:
9
9
  // --u-scrollbar-bezier
10
10
  // --u-scrollbar-color
@@ -12,6 +12,9 @@ const fade_in_cssr_1 = require("../../../../_styles/transitions/fade-in.cssr");
12
12
  // --u-scrollbar-width
13
13
  // --u-scrollbar-height
14
14
  // --u-scrollbar-border-radius
15
+ // --u-scrollbar-rail-inset-horizontal
16
+ // --u-scrollbar-rail-inset-vertical
17
+ // --u-scrollbar-rail-color
15
18
  exports.default = (0, cssr_1.cB)('scrollbar', `
16
19
  overflow: hidden;
17
20
  position: relative;
@@ -29,40 +32,54 @@ exports.default = (0, cssr_1.cB)('scrollbar', `
29
32
  width: 0;
30
33
  height: 0;
31
34
  display: none;
32
- `), (0, cssr_1.c)('>', [(0, cssr_1.cB)('scrollbar-content', `
35
+ `), (0, cssr_1.c)('>', [
36
+ // We can't set overflow hidden since it affects positioning.
37
+ (0, cssr_1.cB)('scrollbar-content', `
33
38
  box-sizing: border-box;
34
39
  min-width: 100%;
35
40
  `)])])]), (0, cssr_1.c)('>, +', [(0, cssr_1.cB)('scrollbar-rail', `
36
41
  position: absolute;
37
42
  pointer-events: none;
38
43
  user-select: none;
44
+ background: var(--u-scrollbar-rail-color);
39
45
  -webkit-user-select: none;
40
46
  `, [(0, cssr_1.cM)('horizontal', `
41
- left: 2px;
42
- right: 2px;
43
- bottom: 4px;
44
47
  height: var(--u-scrollbar-height);
45
48
  `, [(0, cssr_1.c)('>', [(0, cssr_1.cE)('scrollbar', `
46
49
  height: var(--u-scrollbar-height);
47
50
  border-radius: var(--u-scrollbar-border-radius);
48
51
  right: 0;
49
- `)])]), (0, cssr_1.cM)('vertical', `
50
- right: 4px;
51
- top: 2px;
52
- bottom: 2px;
52
+ `)])]), (0, cssr_1.cM)('horizontal--top', `
53
+ top: var(--u-scrollbar-rail-top-horizontal-top);
54
+ right: var(--u-scrollbar-rail-right-horizontal-top);
55
+ bottom: var(--u-scrollbar-rail-bottom-horizontal-top);
56
+ left: var(--u-scrollbar-rail-left-horizontal-top);
57
+ `), (0, cssr_1.cM)('horizontal--bottom', `
58
+ top: var(--u-scrollbar-rail-top-horizontal-bottom);
59
+ right: var(--u-scrollbar-rail-right-horizontal-bottom);
60
+ bottom: var(--u-scrollbar-rail-bottom-horizontal-bottom);
61
+ left: var(--u-scrollbar-rail-left-horizontal-bottom);
62
+ `), (0, cssr_1.cM)('vertical', `
53
63
  width: var(--u-scrollbar-width);
54
64
  `, [(0, cssr_1.c)('>', [(0, cssr_1.cE)('scrollbar', `
55
65
  width: var(--u-scrollbar-width);
56
66
  border-radius: var(--u-scrollbar-border-radius);
57
67
  bottom: 0;
58
- `)])]), (0, cssr_1.cM)('disabled', [(0, cssr_1.c)('>', [(0, cssr_1.cE)('scrollbar', {
59
- pointerEvents: 'none'
60
- })])]), (0, cssr_1.c)('>', [(0, cssr_1.cE)('scrollbar', `
68
+ `)])]), (0, cssr_1.cM)('vertical--left', `
69
+ top: var(--u-scrollbar-rail-top-vertical-left);
70
+ right: var(--u-scrollbar-rail-right-vertical-left);
71
+ bottom: var(--u-scrollbar-rail-bottom-vertical-left);
72
+ left: var(--u-scrollbar-rail-left-vertical-left);
73
+ `), (0, cssr_1.cM)('vertical--right', `
74
+ top: var(--u-scrollbar-rail-top-vertical-right);
75
+ right: var(--u-scrollbar-rail-right-vertical-right);
76
+ bottom: var(--u-scrollbar-rail-bottom-vertical-right);
77
+ left: var(--u-scrollbar-rail-left-vertical-right);
78
+ `), (0, cssr_1.cM)('disabled', [(0, cssr_1.c)('>', [(0, cssr_1.cE)('scrollbar', 'pointer-events: none;')])]), (0, cssr_1.c)('>', [(0, cssr_1.cE)('scrollbar', `
79
+ z-index: 1;
61
80
  position: absolute;
62
81
  cursor: pointer;
63
82
  pointer-events: all;
64
83
  background-color: var(--u-scrollbar-color);
65
84
  transition: background-color .2s var(--u-scrollbar-bezier);
66
- `, [(0, fade_in_cssr_1.fadeInTransition)(), (0, cssr_1.c)('&:hover', {
67
- backgroundColor: 'var(--u-scrollbar-color-hover)'
68
- })])])])])]);
85
+ `, [(0, fade_in_cssr_1.fadeInTransition)(), (0, cssr_1.c)('&:hover', 'background-color: var(--u-scrollbar-color-hover);')])])])])]);
@@ -0,0 +1,7 @@
1
+ export declare const commonVars: {
2
+ railInsetHorizontalBottom: string;
3
+ railInsetHorizontalTop: string;
4
+ railInsetVerticalRight: string;
5
+ railInsetVerticalLeft: string;
6
+ railColor: string;
7
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commonVars = void 0;
4
+ exports.commonVars = {
5
+ railInsetHorizontalBottom: 'auto 2px 4px 2px',
6
+ railInsetHorizontalTop: '4px 2px auto 2px',
7
+ railInsetVerticalRight: '2px 4px 2px auto',
8
+ railInsetVerticalLeft: '2px auto 2px 4px',
9
+ railColor: 'transparent'
10
+ };
@@ -1,8 +1,16 @@
1
1
  import type { ThemeCommonVars } from '../../../_styles/common';
2
2
  import type { Theme } from '../../../_mixins';
3
3
  export declare const self: (vars: ThemeCommonVars) => {
4
+ height: string;
5
+ width: string;
6
+ borderRadius: string;
4
7
  color: string;
5
8
  colorHover: string;
9
+ railInsetHorizontalBottom: string;
10
+ railInsetHorizontalTop: string;
11
+ railInsetVerticalRight: string;
12
+ railInsetVerticalLeft: string;
13
+ railColor: string;
6
14
  };
7
15
  export type ScrollbarThemeVars = ReturnType<typeof self>;
8
16
  declare const scrollbarLight: Theme<'Scrollbar', ScrollbarThemeVars>;
@@ -2,12 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.self = void 0;
4
4
  const common_1 = require("../../../_styles/common");
5
+ const common_2 = require("./common");
5
6
  const self = (vars) => {
6
- const { scrollbarColor, scrollbarColorHover } = vars;
7
- return {
8
- color: scrollbarColor,
9
- colorHover: scrollbarColorHover
10
- };
7
+ const { scrollbarColor, scrollbarColorHover, scrollbarHeight, scrollbarWidth, scrollbarBorderRadius } = vars;
8
+ return Object.assign(Object.assign({}, common_2.commonVars), { height: scrollbarHeight, width: scrollbarWidth, borderRadius: scrollbarBorderRadius, color: scrollbarColor, colorHover: scrollbarColorHover });
11
9
  };
12
10
  exports.self = self;
13
11
  const scrollbarLight = {
@@ -101,8 +101,16 @@ declare const _default: import("vue").DefineComponent<{
101
101
  loadingColor: string;
102
102
  }, {
103
103
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
104
+ height: string;
105
+ width: string;
106
+ borderRadius: string;
104
107
  color: string;
105
108
  colorHover: string;
109
+ railInsetHorizontalBottom: string;
110
+ railInsetHorizontalTop: string;
111
+ railInsetVerticalRight: string;
112
+ railInsetVerticalLeft: string;
113
+ railColor: string;
106
114
  }, any>;
107
115
  Empty: import("../../../_mixins").Theme<"Empty", {
108
116
  iconSizeSmall: string;
@@ -158,8 +166,16 @@ declare const _default: import("vue").DefineComponent<{
158
166
  loadingColor: string;
159
167
  }, {
160
168
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
169
+ height: string;
170
+ width: string;
171
+ borderRadius: string;
161
172
  color: string;
162
173
  colorHover: string;
174
+ railInsetHorizontalBottom: string;
175
+ railInsetHorizontalTop: string;
176
+ railInsetVerticalRight: string;
177
+ railInsetVerticalLeft: string;
178
+ railColor: string;
163
179
  }, any>;
164
180
  Empty: import("../../../_mixins").Theme<"Empty", {
165
181
  iconSizeSmall: string;
@@ -215,8 +231,16 @@ declare const _default: import("vue").DefineComponent<{
215
231
  loadingColor: string;
216
232
  }, {
217
233
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
234
+ height: string;
235
+ width: string;
236
+ borderRadius: string;
218
237
  color: string;
219
238
  colorHover: string;
239
+ railInsetHorizontalBottom: string;
240
+ railInsetHorizontalTop: string;
241
+ railInsetVerticalRight: string;
242
+ railInsetVerticalLeft: string;
243
+ railColor: string;
220
244
  }, any>;
221
245
  Empty: import("../../../_mixins").Theme<"Empty", {
222
246
  iconSizeSmall: string;
@@ -280,8 +304,16 @@ declare const _default: import("vue").DefineComponent<{
280
304
  };
281
305
  peers: {
282
306
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
307
+ height: string;
308
+ width: string;
309
+ borderRadius: string;
283
310
  color: string;
284
311
  colorHover: string;
312
+ railInsetHorizontalBottom: string;
313
+ railInsetHorizontalTop: string;
314
+ railInsetVerticalRight: string;
315
+ railInsetVerticalLeft: string;
316
+ railColor: string;
285
317
  }, any>;
286
318
  Empty: import("../../../_mixins").Theme<"Empty", {
287
319
  iconSizeSmall: string;
@@ -319,7 +351,7 @@ declare const _default: import("vue").DefineComponent<{
319
351
  virtualListRef: import("vue").Ref<{
320
352
  listElRef: HTMLElement;
321
353
  itemsElRef: HTMLElement | null;
322
- scrollTo: import("vueuc/lib/virtual-list/src/VirtualList").ScrollTo;
354
+ scrollTo: import("vueuc").VVirtualListScrollTo;
323
355
  } | null>;
324
356
  scrollbarRef: import("vue").Ref<{
325
357
  $el: HTMLElement;
@@ -475,8 +507,16 @@ declare const _default: import("vue").DefineComponent<{
475
507
  loadingColor: string;
476
508
  }, {
477
509
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
510
+ height: string;
511
+ width: string;
512
+ borderRadius: string;
478
513
  color: string;
479
514
  colorHover: string;
515
+ railInsetHorizontalBottom: string;
516
+ railInsetHorizontalTop: string;
517
+ railInsetVerticalRight: string;
518
+ railInsetVerticalLeft: string;
519
+ railColor: string;
480
520
  }, any>;
481
521
  Empty: import("../../../_mixins").Theme<"Empty", {
482
522
  iconSizeSmall: string;
@@ -532,8 +572,16 @@ declare const _default: import("vue").DefineComponent<{
532
572
  loadingColor: string;
533
573
  }, {
534
574
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
575
+ height: string;
576
+ width: string;
577
+ borderRadius: string;
535
578
  color: string;
536
579
  colorHover: string;
580
+ railInsetHorizontalBottom: string;
581
+ railInsetHorizontalTop: string;
582
+ railInsetVerticalRight: string;
583
+ railInsetVerticalLeft: string;
584
+ railColor: string;
537
585
  }, any>;
538
586
  Empty: import("../../../_mixins").Theme<"Empty", {
539
587
  iconSizeSmall: string;
@@ -589,8 +637,16 @@ declare const _default: import("vue").DefineComponent<{
589
637
  loadingColor: string;
590
638
  }, {
591
639
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
640
+ height: string;
641
+ width: string;
642
+ borderRadius: string;
592
643
  color: string;
593
644
  colorHover: string;
645
+ railInsetHorizontalBottom: string;
646
+ railInsetHorizontalTop: string;
647
+ railInsetVerticalRight: string;
648
+ railInsetVerticalLeft: string;
649
+ railColor: string;
594
650
  }, any>;
595
651
  Empty: import("../../../_mixins").Theme<"Empty", {
596
652
  iconSizeSmall: string;
@@ -67,8 +67,16 @@ declare const internalSelectMenuLight: import("../../../_mixins").Theme<"Interna
67
67
  loadingColor: string;
68
68
  }, {
69
69
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
70
+ height: string;
71
+ width: string;
72
+ borderRadius: string;
70
73
  color: string;
71
74
  colorHover: string;
75
+ railInsetHorizontalBottom: string;
76
+ railInsetHorizontalTop: string;
77
+ railInsetVerticalRight: string;
78
+ railInsetVerticalLeft: string;
79
+ railColor: string;
72
80
  }, any>;
73
81
  Empty: import("../../../_mixins").Theme<"Empty", {
74
82
  iconSizeSmall: string;