bkui-vue 2.0.1-beta.60.fix.1 → 2.0.1-beta.61

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 (321) hide show
  1. package/README.md +15 -0
  2. package/dist/index.cjs.js +57 -57
  3. package/dist/index.esm.js +18903 -18462
  4. package/dist/index.umd.js +58 -58
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/affix.css +130 -0
  8. package/lib/affix/affix.variable.css +262 -1
  9. package/lib/alert/alert.css +133 -3
  10. package/lib/alert/alert.d.ts +0 -7
  11. package/lib/alert/alert.variable.css +262 -1
  12. package/lib/alert/index.d.ts +0 -15
  13. package/lib/alert/index.js +6 -6
  14. package/lib/backtop/backtop.css +133 -3
  15. package/lib/backtop/backtop.variable.css +395 -4
  16. package/lib/badge/badge.css +156 -26
  17. package/lib/badge/badge.variable.css +262 -1
  18. package/lib/breadcrumb/breadcrumb.css +135 -5
  19. package/lib/breadcrumb/breadcrumb.variable.css +397 -6
  20. package/lib/button/button.css +273 -143
  21. package/lib/button/button.variable.css +262 -1
  22. package/lib/card/card.css +134 -4
  23. package/lib/card/card.variable.css +396 -5
  24. package/lib/cascader/cascader.css +153 -23
  25. package/lib/cascader/cascader.variable.css +415 -24
  26. package/lib/cascader/index.js +0 -1
  27. package/lib/checkbox/checkbox-group.d.ts +0 -16
  28. package/lib/checkbox/checkbox.css +147 -9
  29. package/lib/checkbox/checkbox.d.ts +32 -0
  30. package/lib/checkbox/checkbox.less +12 -0
  31. package/lib/checkbox/checkbox.variable.css +270 -1
  32. package/lib/checkbox/index.d.ts +46 -11
  33. package/lib/checkbox/index.js +9 -4
  34. package/lib/code-diff/code-diff.css +130 -0
  35. package/lib/code-diff/code-diff.variable.css +262 -1
  36. package/lib/collapse/collapse.css +131 -1
  37. package/lib/collapse/collapse.variable.css +262 -1
  38. package/lib/collapse-transition/collapse-transition.css +130 -0
  39. package/lib/collapse-transition/collapse-transition.variable.css +262 -1
  40. package/lib/color-picker/color-picker.css +130 -0
  41. package/lib/color-picker/color-picker.variable.css +262 -1
  42. package/lib/config-provider/config-provider.css +130 -0
  43. package/lib/config-provider/config-provider.variable.css +262 -1
  44. package/lib/container/container.css +130 -0
  45. package/lib/container/container.variable.css +392 -1
  46. package/lib/date-picker/date-picker.css +147 -17
  47. package/lib/date-picker/date-picker.d.ts +0 -9
  48. package/lib/date-picker/date-picker.variable.css +262 -1
  49. package/lib/date-picker/index.d.ts +0 -19
  50. package/lib/date-picker/index.js +29 -17
  51. package/lib/date-picker/panel/time-range.d.ts +0 -9
  52. package/lib/date-picker/panel/time.d.ts +1 -10
  53. package/lib/date-picker/props.d.ts +0 -4
  54. package/lib/date-picker/time-picker.d.ts +0 -9
  55. package/lib/dialog/dialog.css +138 -8
  56. package/lib/dialog/dialog.d.ts +16 -5
  57. package/lib/dialog/dialog.variable.css +400 -9
  58. package/lib/dialog/index.d.ts +34 -11
  59. package/lib/dialog/props.d.ts +7 -2
  60. package/lib/directives/index.js +12 -6
  61. package/lib/divider/divider.css +133 -3
  62. package/lib/divider/divider.variable.css +262 -1
  63. package/lib/dropdown/dropdown-item.d.ts +1 -1
  64. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  65. package/lib/dropdown/dropdown.css +130 -0
  66. package/lib/dropdown/dropdown.variable.css +392 -1
  67. package/lib/dropdown/index.d.ts +2 -2
  68. package/lib/exception/exception.css +130 -0
  69. package/lib/exception/exception.variable.css +262 -1
  70. package/lib/fixed-navbar/fixed-navbar.css +134 -4
  71. package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
  72. package/lib/form/form-item.d.ts +6 -18
  73. package/lib/form/form.css +130 -0
  74. package/lib/form/form.variable.css +262 -1
  75. package/lib/form/index.d.ts +6 -13
  76. package/lib/form/index.js +8 -6
  77. package/lib/image/image-viewer.css +130 -0
  78. package/lib/image/image-viewer.variable.css +262 -1
  79. package/lib/image/image.css +130 -0
  80. package/lib/image/image.variable.css +392 -1
  81. package/lib/index.js +1 -1
  82. package/lib/info-box/index.js +3 -5
  83. package/lib/info-box/info-box.css +134 -4
  84. package/lib/info-box/info-box.variable.css +262 -1
  85. package/lib/input/index.js +36 -9
  86. package/lib/input/input.css +202 -72
  87. package/lib/input/input.variable.css +464 -73
  88. package/lib/link/link.css +146 -16
  89. package/lib/link/link.variable.css +262 -1
  90. package/lib/loading/loading.css +146 -16
  91. package/lib/loading/loading.variable.css +408 -17
  92. package/lib/menu/menu.css +148 -18
  93. package/lib/menu/menu.variable.css +410 -19
  94. package/lib/menu/submenu.css +130 -0
  95. package/lib/menu/submenu.variable.css +262 -1
  96. package/lib/message/message.css +153 -22
  97. package/lib/message/message.less +3 -2
  98. package/lib/message/message.variable.css +264 -2
  99. package/lib/modal/index.d.ts +41 -13
  100. package/lib/modal/index.js +33 -18
  101. package/lib/modal/modal.css +134 -4
  102. package/lib/modal/modal.d.ts +16 -5
  103. package/lib/modal/modal.variable.css +396 -5
  104. package/lib/modal/props.mixin.d.ts +7 -2
  105. package/lib/navigation/navigation.css +132 -2
  106. package/lib/navigation/navigation.variable.css +262 -1
  107. package/lib/notify/notify.css +137 -7
  108. package/lib/notify/notify.variable.css +262 -1
  109. package/lib/overflow-title/components/overflow-title.d.ts +0 -7
  110. package/lib/overflow-title/index.d.ts +0 -15
  111. package/lib/overflow-title/index.js +0 -1
  112. package/lib/overflow-title/props.d.ts +0 -3
  113. package/lib/pagination/index.d.ts +0 -19
  114. package/lib/pagination/index.js +47 -9
  115. package/lib/pagination/pagination.css +139 -9
  116. package/lib/pagination/pagination.d.ts +0 -13
  117. package/lib/pagination/pagination.less +14 -13
  118. package/lib/pagination/pagination.variable.css +270 -9
  119. package/lib/pop-confirm/index.d.ts +0 -32
  120. package/lib/pop-confirm/index.js +16 -18
  121. package/lib/pop-confirm/pop-confirm.css +133 -1
  122. package/lib/pop-confirm/pop-confirm.d.ts +0 -14
  123. package/lib/pop-confirm/pop-confirm.less +3 -1
  124. package/lib/pop-confirm/pop-confirm.variable.css +265 -2
  125. package/lib/pop-confirm/props.d.ts +1 -7
  126. package/lib/popover/popover.css +130 -0
  127. package/lib/popover/popover.variable.css +262 -1
  128. package/lib/process/process.css +143 -13
  129. package/lib/process/process.variable.css +262 -1
  130. package/lib/progress/progress.css +134 -4
  131. package/lib/progress/progress.variable.css +396 -5
  132. package/lib/radio/index.d.ts +21 -21
  133. package/lib/radio/radio-button.d.ts +7 -7
  134. package/lib/radio/radio-group.d.ts +7 -7
  135. package/lib/radio/radio.css +172 -42
  136. package/lib/radio/radio.d.ts +7 -7
  137. package/lib/radio/radio.variable.css +262 -1
  138. package/lib/rate/rate.css +130 -0
  139. package/lib/rate/rate.variable.css +262 -1
  140. package/lib/resize-layout/resize-layout.css +130 -0
  141. package/lib/resize-layout/resize-layout.variable.css +262 -1
  142. package/lib/scrollbar/css/scrollbar.css +239 -0
  143. package/lib/scrollbar/css/scrollbar.less +139 -0
  144. package/lib/scrollbar/css/scrollbar.variable.css +499 -0
  145. package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
  146. package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
  147. package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
  148. package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
  149. package/lib/scrollbar/handlers/touch.d.ts +4 -0
  150. package/lib/scrollbar/helper/class-names.d.ts +21 -0
  151. package/lib/scrollbar/helper/css.d.ts +3 -0
  152. package/lib/scrollbar/helper/dom.d.ts +4 -0
  153. package/lib/scrollbar/helper/event-manager.d.ts +20 -0
  154. package/lib/scrollbar/helper/util.d.ts +11 -0
  155. package/lib/scrollbar/index.d.ts +133 -13
  156. package/lib/scrollbar/index.js +1332 -18433
  157. package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
  158. package/lib/scrollbar/update-geometry.d.ts +8 -0
  159. package/lib/search-select/index.d.ts +40 -72
  160. package/lib/search-select/index.js +85 -67
  161. package/lib/search-select/input.d.ts +5 -4
  162. package/lib/search-select/search-select.css +163 -33
  163. package/lib/search-select/search-select.d.ts +15 -39
  164. package/lib/search-select/search-select.variable.css +425 -34
  165. package/lib/search-select/selected.d.ts +11 -9
  166. package/lib/search-select/utils.d.ts +3 -3
  167. package/lib/select/common.d.ts +2 -2
  168. package/lib/select/index.d.ts +32 -4
  169. package/lib/select/index.js +119 -59
  170. package/lib/select/option.d.ts +4 -5
  171. package/lib/select/select.css +175 -43
  172. package/lib/select/select.d.ts +12 -0
  173. package/lib/select/select.less +7 -4
  174. package/lib/select/select.variable.css +437 -44
  175. package/lib/select/type.d.ts +9 -10
  176. package/lib/shared/frame-throttle.d.ts +15 -0
  177. package/lib/shared/index.d.ts +1 -0
  178. package/lib/shared/index.js +72 -1
  179. package/lib/sideslider/index.d.ts +34 -11
  180. package/lib/sideslider/index.js +1 -0
  181. package/lib/sideslider/sideslider.css +138 -9
  182. package/lib/sideslider/sideslider.d.ts +16 -5
  183. package/lib/sideslider/sideslider.less +7 -8
  184. package/lib/sideslider/sideslider.variable.css +269 -9
  185. package/lib/slider/slider.css +135 -5
  186. package/lib/slider/slider.variable.css +262 -1
  187. package/lib/steps/index.d.ts +3 -18
  188. package/lib/steps/index.js +0 -1
  189. package/lib/steps/steps.css +168 -38
  190. package/lib/steps/steps.d.ts +1 -11
  191. package/lib/steps/steps.variable.css +262 -1
  192. package/lib/styles/index.d.ts +1 -0
  193. package/lib/styles/mixins/animate.css +130 -0
  194. package/lib/styles/mixins/animate.variable.css +262 -1
  195. package/lib/styles/mixins/mixins.css +130 -0
  196. package/lib/styles/mixins/mixins.variable.css +130 -0
  197. package/lib/styles/mixins/popper.css +130 -0
  198. package/lib/styles/mixins/popper.variable.css +262 -1
  199. package/lib/styles/mixins/scroll.css +130 -0
  200. package/lib/styles/mixins/scroll.variable.css +262 -1
  201. package/lib/styles/reset.css +130 -0
  202. package/lib/styles/reset.variable.css +262 -1
  203. package/lib/{scrollbar/scrollbar.variable.css → styles/themes/themes.css} +2 -76
  204. package/lib/styles/themes/themes.less +299 -129
  205. package/lib/styles/themes/themes.variable.css +130 -0
  206. package/lib/swiper/swiper.css +130 -0
  207. package/lib/swiper/swiper.variable.css +262 -1
  208. package/lib/switcher/switcher.css +147 -17
  209. package/lib/switcher/switcher.variable.css +409 -18
  210. package/lib/tab/index.d.ts +0 -92
  211. package/lib/tab/index.js +1 -14
  212. package/lib/tab/props.d.ts +0 -35
  213. package/lib/tab/tab-nav.d.ts +2 -45
  214. package/lib/tab/tab.css +147 -17
  215. package/lib/tab/tab.d.ts +0 -44
  216. package/lib/tab/tab.variable.css +262 -1
  217. package/lib/table/components/ghost-body.d.ts +2 -0
  218. package/lib/table/components/table-cell.d.ts +22 -0
  219. package/lib/table/components/table-column.d.ts +1 -44
  220. package/lib/table/const.d.ts +15 -2
  221. package/lib/table/events.d.ts +2 -98
  222. package/lib/table/hooks/use-cell.d.ts +20 -0
  223. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  224. package/lib/table/hooks/use-column-template.d.ts +5 -0
  225. package/lib/table/hooks/use-columns.d.ts +69 -0
  226. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  227. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  228. package/lib/table/hooks/use-head.d.ts +16 -0
  229. package/lib/table/hooks/use-layout.d.ts +25 -0
  230. package/lib/table/hooks/use-pagination.d.ts +16 -0
  231. package/lib/table/hooks/use-render.d.ts +21 -0
  232. package/lib/table/hooks/use-rows.d.ts +30 -0
  233. package/lib/table/hooks/use-settings.d.ts +134 -0
  234. package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
  235. package/lib/table/index.d.ts +89 -561
  236. package/lib/table/index.js +4019 -3540
  237. package/lib/table/plugins/head-filter.css +131 -0
  238. package/lib/table/plugins/head-filter.d.ts +2 -1
  239. package/lib/table/plugins/head-filter.less +1 -0
  240. package/lib/table/plugins/head-filter.variable.css +263 -1
  241. package/lib/table/plugins/head-sort.css +130 -0
  242. package/lib/table/plugins/head-sort.variable.css +262 -1
  243. package/lib/table/plugins/settings.css +131 -0
  244. package/lib/table/plugins/settings.less +1 -0
  245. package/lib/table/plugins/settings.variable.css +263 -1
  246. package/lib/table/props.d.ts +92 -30
  247. package/lib/table/table.css +597 -327
  248. package/lib/table/table.d.ts +47 -181
  249. package/lib/table/table.less +228 -101
  250. package/lib/table/table.variable.css +859 -328
  251. package/lib/table/utils.d.ts +45 -18
  252. package/lib/table-column/index.d.ts +3 -132
  253. package/lib/table-column/index.js +17367 -28
  254. package/lib/tag/index.js +0 -1
  255. package/lib/tag/tag.css +136 -6
  256. package/lib/tag/tag.less +1 -1
  257. package/lib/tag/tag.variable.css +263 -2
  258. package/lib/tag-input/index.js +4 -2
  259. package/lib/tag-input/tag-input.css +148 -18
  260. package/lib/tag-input/tag-input.variable.css +262 -1
  261. package/lib/time-picker/index.d.ts +0 -19
  262. package/lib/time-picker/time-picker.css +130 -0
  263. package/lib/time-picker/time-picker.variable.css +262 -1
  264. package/lib/timeline/timeline.css +149 -19
  265. package/lib/timeline/timeline.variable.css +262 -1
  266. package/lib/transfer/transfer.css +149 -19
  267. package/lib/transfer/transfer.variable.css +262 -1
  268. package/lib/tree/constant.d.ts +3 -1
  269. package/lib/tree/index.d.ts +21 -7
  270. package/lib/tree/index.js +61 -18
  271. package/lib/tree/props.d.ts +12 -5
  272. package/lib/tree/tree.css +242 -78
  273. package/lib/tree/tree.d.ts +9 -3
  274. package/lib/tree/tree.variable.css +504 -79
  275. package/lib/tree/use-node-action.d.ts +10 -9
  276. package/lib/tree/use-node-async.d.ts +2 -1
  277. package/lib/tree/use-node-attribute.d.ts +42 -34
  278. package/lib/tree/use-search.d.ts +1 -1
  279. package/lib/tree/use-tree-init.d.ts +8 -5
  280. package/lib/tree/util.d.ts +21 -21
  281. package/lib/upload/index.d.ts +27 -4
  282. package/lib/upload/index.js +30 -7
  283. package/lib/upload/props.d.ts +7 -2
  284. package/lib/upload/upload.css +157 -27
  285. package/lib/upload/upload.d.ts +13 -2
  286. package/lib/upload/upload.type.d.ts +6 -0
  287. package/lib/upload/upload.variable.css +419 -28
  288. package/lib/virtual-render/index.d.ts +12 -46
  289. package/lib/virtual-render/index.js +17468 -147
  290. package/lib/virtual-render/props.d.ts +2 -9
  291. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  292. package/lib/virtual-render/use-scrollbar.d.ts +4 -17
  293. package/lib/virtual-render/v-virtual-render.d.ts +7 -1
  294. package/lib/virtual-render/virtual-render.css +225 -69
  295. package/lib/virtual-render/virtual-render.d.ts +6 -22
  296. package/lib/virtual-render/virtual-render.less +2 -11
  297. package/lib/virtual-render/virtual-render.variable.css +487 -70
  298. package/lib/volar.components.d.ts +2 -0
  299. package/package.json +1 -1
  300. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  301. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  302. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
  303. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  304. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  305. package/lib/scrollbar/scrollbar.css +0 -75
  306. package/lib/scrollbar/scrollbar.less +0 -94
  307. package/lib/table/plugins/col-group.d.ts +0 -38
  308. package/lib/table/plugins/settings.d.ts +0 -16
  309. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  310. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  311. package/lib/table/plugins/use-column-template.d.ts +0 -7
  312. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  313. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  314. package/lib/table/plugins/use-pagination.d.ts +0 -23
  315. package/lib/table/use-attributes.d.ts +0 -62
  316. package/lib/table/use-column.d.ts +0 -155
  317. package/lib/table/use-common.d.ts +0 -1679
  318. package/lib/table/use-render.d.ts +0 -11
  319. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  320. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  321. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -1,241 +0,0 @@
1
- import * as helpers from './helpers';
2
- interface DebouncedFunc<T extends (...args: any[]) => any> {
3
- /**
4
- * Call the original function, but applying the debounce rules.
5
- *
6
- * If the debounced function can be run immediately, this calls it and returns its return
7
- * value.
8
- *
9
- * Otherwise, it returns the return value of the last invocation, or undefined if the debounced
10
- * function was not invoked yet.
11
- */
12
- (...args: Parameters<T>): ReturnType<T> | undefined;
13
- /**
14
- * Throw away any pending invocation of the debounced function.
15
- */
16
- cancel(): void;
17
- /**
18
- * If there is a pending invocation of the debounced function, invoke it immediately and return
19
- * its return value.
20
- *
21
- * Otherwise, return the value from the last invocation, or undefined if the debounced function
22
- * was never invoked.
23
- */
24
- flush(): ReturnType<T> | undefined;
25
- }
26
- export interface Options {
27
- forceVisible: Axis | boolean;
28
- clickOnTrack: boolean;
29
- scrollbarMinSize: number;
30
- scrollbarMaxSize: number;
31
- classNames: Partial<ClassNames>;
32
- ariaLabel: string;
33
- contentNode: HTMLElement | null;
34
- delegateYContent: HTMLElement | null;
35
- delegateXContent: HTMLElement | null;
36
- wrapperNode: HTMLElement | null;
37
- autoHide: boolean;
38
- useSystemScrollXBehavior?: boolean;
39
- useSystemScrollYBehavior?: boolean;
40
- scrollDelegate: {
41
- scrollHeight?: number;
42
- scrollWidth?: number;
43
- };
44
- onScrollCallback?: (args: {
45
- x: number;
46
- y: number;
47
- }) => void;
48
- }
49
- export type SimpleBarOptions = Partial<Options>;
50
- type ClassNames = {
51
- contentEl: string;
52
- offset: string;
53
- mask: string;
54
- wrapper: string;
55
- placeholder: string;
56
- scrollbar: string;
57
- track: string;
58
- visible: string;
59
- horizontal: string;
60
- vertical: string;
61
- hover: string;
62
- dragging: string;
63
- scrolling: string;
64
- scrollable: string;
65
- mouseEntered: string;
66
- };
67
- type Axis = 'x' | 'y';
68
- type AxisProps = {
69
- scrollOffsetAttr: 'scrollLeft' | 'scrollTop';
70
- sizeAttr: 'height' | 'width';
71
- scrollSizeAttr: 'scrollHeight' | 'scrollWidth';
72
- offsetSizeAttr: 'offsetHeight' | 'offsetWidth';
73
- offsetAttr: 'left' | 'top';
74
- overflowAttr: 'overflowX' | 'overflowY';
75
- dragOffset: number;
76
- isOverflowing: boolean;
77
- forceVisible: boolean;
78
- track: {
79
- size: any;
80
- el: HTMLElement | null;
81
- rect: DOMRect | null;
82
- isVisible: boolean;
83
- };
84
- scrollbar: {
85
- size: any;
86
- el: HTMLElement | null;
87
- rect: DOMRect | null;
88
- isVisible: boolean;
89
- };
90
- };
91
- type RtlHelpers = {
92
- isScrollOriginAtZero: boolean;
93
- isScrollingToNegative: boolean;
94
- } | null;
95
- type DefaultOptions = Options & typeof BkScrollbarCore.defaultOptions;
96
- type MouseWheelInstance = {
97
- addWheelEvent: (target: HTMLElement) => void;
98
- removeWheelEvent: (target: HTMLElement) => void;
99
- };
100
- export default class BkScrollbarCore {
101
- static rtlHelpers: RtlHelpers;
102
- static defaultOptions: Options;
103
- /**
104
- * Static functions
105
- */
106
- static helpers: typeof helpers;
107
- /**
108
- * Helper to fix browsers inconsistency on RTL:
109
- * - Firefox inverts the scrollbar initial position
110
- * - IE11 inverts both scrollbar position and scrolling offset
111
- */
112
- static getRtlHelpers(): {
113
- isScrollOriginAtZero: boolean;
114
- isScrollingToNegative: boolean;
115
- };
116
- static getOffset(el: Element): {
117
- top: number;
118
- left: number;
119
- };
120
- el: HTMLElement;
121
- options: DefaultOptions;
122
- classNames: ClassNames;
123
- axis: {
124
- x: AxisProps;
125
- y: AxisProps;
126
- };
127
- draggedAxis?: Axis;
128
- removePreventClickId: null | number;
129
- minScrollbarWidth: number;
130
- stopScrollDelay: number;
131
- isScrolling: boolean;
132
- isMouseEntering: boolean;
133
- isDragging: boolean;
134
- scrollXTicking: boolean;
135
- scrollYTicking: boolean;
136
- wrapperEl: HTMLElement | null;
137
- contentEl: HTMLElement | null;
138
- delegateXContent: HTMLElement | null;
139
- delegateYContent: HTMLElement | null;
140
- rtlHelpers: RtlHelpers;
141
- scrollbarWidth: number;
142
- resizeObserver: ResizeObserver | null;
143
- mutationObserver: MutationObserver | null;
144
- elStyles: CSSStyleDeclaration | null;
145
- isRtl: boolean | null;
146
- mouseX: number;
147
- mouseY: number;
148
- mouseWheelInstance: MouseWheelInstance;
149
- wheelOffsetY: number;
150
- wheelOffsetX: number;
151
- mouseWeelTimer: any;
152
- /**
153
- * 最外层滚动容器滚动实际位置缓存器
154
- */
155
- wrapperScrollValue: {
156
- scrollTop: number;
157
- scrollLeft: number;
158
- };
159
- /**
160
- * 模拟滚动条内部缩略滚动器滚动位置缓存器
161
- */
162
- wrapperScrollMap: {};
163
- onMouseMove: (() => void) | DebouncedFunc<any>;
164
- onWindowResize: (() => void) | DebouncedFunc<any>;
165
- onStopScrolling: (() => void) | DebouncedFunc<any>;
166
- onMouseEntered: (() => void) | DebouncedFunc<any>;
167
- onMouseWheel: (() => void) | DebouncedFunc<any>;
168
- constructor(element: HTMLElement, options?: Partial<Options>);
169
- getScrollbarWidth(): number;
170
- init(): void;
171
- initDOM(): void;
172
- initListeners(): void;
173
- getWrapperElScrollSize(attrName: string, target?: HTMLElement): any;
174
- recalculate(): void;
175
- /**
176
- * Calculate scrollbar size
177
- */
178
- getScrollbarSize(axis?: Axis): any;
179
- positionScrollbar(axis?: Axis): void;
180
- toggleTrackVisibility(axis?: Axis): void;
181
- showScrollbar(axis?: Axis): void;
182
- hideScrollbar(axis?: Axis): void;
183
- /**
184
- * On scroll event handling
185
- */
186
- onScroll: () => void;
187
- scrollX: () => void;
188
- scrollY: () => void;
189
- onMouseEnter: () => void;
190
- onMouseMoveForAxis(axis?: Axis): void;
191
- onMouseLeave: () => void;
192
- onMouseLeaveForAxis(axis?: Axis): void;
193
- onPointerEvent: (e: any) => void;
194
- /**
195
- * on scrollbar handle drag movement starts
196
- */
197
- onDragStart(e: any, axis?: Axis): void;
198
- /**
199
- * Drag scrollbar handle
200
- */
201
- drag: (e: any) => void;
202
- getPointerPosition: (dragPos: number, axis: Axis) => number;
203
- scrollToAxisPosition: (scrollPos: number, axisValue: Axis) => boolean;
204
- fixedScrollTo: (axisValue: Axis, resolvedValue: number) => void;
205
- /**
206
- * End scroll handle drag
207
- */
208
- onEndDrag: (e: any) => void;
209
- /**
210
- * Handler to ignore click events during drag
211
- */
212
- preventClick: (e: any) => void;
213
- onTrackClick(e: any, axis?: Axis): void;
214
- /**
215
- * Getter for content element
216
- */
217
- getContentElement(): HTMLElement;
218
- /**
219
- * Getter for original scrolling element
220
- */
221
- getScrollElement(): HTMLElement;
222
- removeListeners(): void;
223
- /**
224
- * Remove all listeners from DOM nodes
225
- */
226
- unMount(): void;
227
- /**
228
- * Check if mouse is within bounds
229
- */
230
- isWithinBounds(bbox: DOMRect): boolean;
231
- /**
232
- * Find element children matches query
233
- */
234
- findChild(el: any, query: any): any;
235
- private mOnMouseWheel;
236
- private mOnStopScrolling;
237
- private mOnMouseEntered;
238
- private mOnMouseMove;
239
- private mOnWindowResize;
240
- }
241
- export {};
@@ -1,5 +0,0 @@
1
- declare const _default: (fn: any) => {
2
- addWheelEvent: (target: HTMLElement) => void;
3
- removeWheelEvent: (target: HTMLElement) => void;
4
- };
5
- export default _default;
@@ -1 +0,0 @@
1
- export default function scrollbarWidth(): number;
@@ -1,75 +0,0 @@
1
- .bk-scrollbar-wrapper {
2
- position: relative;
3
- overflow: hidden;
4
- }
5
- .bk-scrollbar-wrapper .bk-scrollbar-content-el {
6
- display: inline-flex;
7
- flex-direction: column;
8
- width: 100%;
9
- }
10
- .bk-scrollbar-wrapper .bk-scrollbar-track {
11
- z-index: 1;
12
- position: absolute;
13
- right: 0;
14
- bottom: 0;
15
- pointer-events: none;
16
- overflow: hidden;
17
- }
18
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
19
- background-color: #F0F1F5;
20
- cursor: pointer;
21
- }
22
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
23
- background-color: #979BA5;
24
- }
25
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
26
- top: 0;
27
- width: 8px;
28
- transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
29
- }
30
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
31
- left: 0;
32
- height: 8px;
33
- transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
34
- }
35
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
36
- right: auto;
37
- left: 0;
38
- top: 0;
39
- bottom: 0;
40
- min-height: 0;
41
- min-width: 8px;
42
- width: auto;
43
- }
44
- .bk-scrollbar-wrapper .bk-scrollbar-dragging {
45
- pointer-events: none;
46
- -webkit-touch-callout: none;
47
- -webkit-user-select: none;
48
- -khtml-user-select: none;
49
- -moz-user-select: none;
50
- -ms-user-select: none;
51
- user-select: none;
52
- }
53
- .bk-scrollbar-wrapper .bk-scrollbar {
54
- position: absolute;
55
- left: 0;
56
- right: 0;
57
- min-height: 8px;
58
- }
59
- .bk-scrollbar-wrapper .bk-scrollbar::before {
60
- position: absolute;
61
- content: '';
62
- background: #DCDEE5;
63
- border-radius: 6px;
64
- left: 1px;
65
- right: 1px;
66
- top: 1px;
67
- bottom: 1px;
68
- opacity: 0;
69
- transition: opacity 0.2s 0.9s linear;
70
- }
71
- .bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
72
- opacity: 0.9;
73
- transition-delay: 0s;
74
- transition-duration: 0s;
75
- }
@@ -1,94 +0,0 @@
1
- @import '../styles/themes/themes.less';
2
-
3
- .@{bk-prefix}-scrollbar-wrapper {
4
- position: relative;
5
- overflow: hidden;
6
-
7
- .@{bk-prefix}-scrollbar-content-el {
8
- display: inline-flex;
9
- flex-direction: column;
10
- width: 100%;
11
- }
12
-
13
- .@{bk-prefix}-scrollbar-track {
14
- z-index: 1;
15
- position: absolute;
16
- right: 0;
17
- bottom: 0;
18
- pointer-events: none;
19
- overflow: hidden;
20
-
21
- &.@{bk-prefix}-scrollbar-hover {
22
- background-color: #F0F1F5;
23
- cursor: pointer;
24
-
25
- .@{bk-prefix}-scrollbar {
26
- &::before {
27
- background-color: #979BA5;
28
- }
29
- }
30
- }
31
-
32
- &.@{bk-prefix}-scrollbar-vertical {
33
- top: 0;
34
- width: 8px;
35
- transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
36
- }
37
-
38
- &.@{bk-prefix}-scrollbar-horizontal {
39
- left: 0;
40
- height: 8px;
41
- transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
42
-
43
- &.@{bk-prefix}-scrollbar {
44
- right: auto;
45
- left: 0;
46
- top: 0;
47
- bottom: 0;
48
- min-height: 0;
49
- min-width: 8px;
50
- width: auto;
51
- }
52
- }
53
- }
54
-
55
-
56
- .@{bk-prefix}-scrollbar-dragging {
57
- pointer-events: none;
58
- -webkit-touch-callout: none;
59
- -webkit-user-select: none;
60
- -khtml-user-select: none;
61
- -moz-user-select: none;
62
- -ms-user-select: none;
63
- user-select: none;
64
- }
65
-
66
-
67
- .@{bk-prefix}-scrollbar {
68
- position: absolute;
69
- left: 0;
70
- right: 0;
71
- min-height: 8px;
72
-
73
- &::before {
74
- position: absolute;
75
- content: '';
76
- background: #DCDEE5;
77
- border-radius: 6px;
78
- left: 1px;
79
- right: 1px;
80
- top: 1px;
81
- bottom: 1px;
82
- opacity: 0;
83
- transition: opacity 0.2s 0.9s linear;
84
- }
85
-
86
- &.@{bk-prefix}-scrollbar-visible {
87
- &::before {
88
- opacity: 0.9;
89
- transition-delay: 0s;
90
- transition-duration: 0s;
91
- }
92
- }
93
- }
94
- }
@@ -1,38 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- colgroups: import("vue-types").VueTypeValidableDef<unknown[]> & {
3
- default: () => unknown[];
4
- } & {
5
- default: () => unknown[];
6
- };
7
- columnPick: import("vue-types").VueTypeValidableDef<string> & {
8
- default: string;
9
- } & {
10
- default: string;
11
- };
12
- propActiveCols: import("vue-types").VueTypeValidableDef<unknown[]> & {
13
- default: () => unknown[];
14
- } & {
15
- default: () => unknown[];
16
- };
17
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
- colgroups: import("vue-types").VueTypeValidableDef<unknown[]> & {
19
- default: () => unknown[];
20
- } & {
21
- default: () => unknown[];
22
- };
23
- columnPick: import("vue-types").VueTypeValidableDef<string> & {
24
- default: string;
25
- } & {
26
- default: string;
27
- };
28
- propActiveCols: import("vue-types").VueTypeValidableDef<unknown[]> & {
29
- default: () => unknown[];
30
- } & {
31
- default: () => unknown[];
32
- };
33
- }>>, {
34
- columnPick: string;
35
- colgroups: unknown[];
36
- propActiveCols: unknown[];
37
- }, {}>;
38
- export default _default;
@@ -1,16 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- settings: import("vue-types").VueTypeDef<import("../props").ISettingPropType>;
3
- columns: import("vue-types").VueTypeDef<import("../props").Column[]> & {
4
- default: () => import("../props").Column[];
5
- };
6
- }, () => "" | JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
- settings: import("vue-types").VueTypeDef<import("../props").ISettingPropType>;
8
- columns: import("vue-types").VueTypeDef<import("../props").Column[]> & {
9
- default: () => import("../props").Column[];
10
- };
11
- }>> & {
12
- onChange?: (...args: any[]) => any;
13
- }, {
14
- columns: import("../props").Column[];
15
- }, {}>;
16
- export default _default;
@@ -1,16 +0,0 @@
1
- import { TablePropTypes } from '../props';
2
- /**
3
- * 处理Props中的ActiveColumn,解析为统一的数组格式
4
- * @param props
5
- * @returns
6
- */
7
- export declare const resolveActiveColumns: (props: TablePropTypes) => number[];
8
- /**
9
- * table列处理模块
10
- * @param props
11
- * @returns
12
- */
13
- declare const _default: (props: TablePropTypes) => {
14
- activeColumns: any[];
15
- };
16
- export default _default;
@@ -1,35 +0,0 @@
1
- import { type Ref } from 'vue';
2
- import { ITableResponse } from '../use-attributes';
3
- declare const _default: (tableResp: ITableResponse, immediate: boolean, head: Ref<HTMLElement>) => {
4
- registerResizeEvent: () => void;
5
- resetResizeEvents: () => void;
6
- dragOffsetX: Ref<number>;
7
- dragOffsetXStyle: {
8
- position: "absolute";
9
- top: number;
10
- bottom: number;
11
- left: number;
12
- width: string;
13
- backgroundColor: string;
14
- transform: string;
15
- };
16
- resizeColumnStyle: import("vue").ComputedRef<{
17
- transform: string;
18
- position: "absolute";
19
- top: number;
20
- bottom: number;
21
- left: number;
22
- width: string;
23
- backgroundColor: string;
24
- }>;
25
- resizeHeadColStyle: import("vue").ComputedRef<{
26
- width: string;
27
- transform: string;
28
- position: "absolute";
29
- top: number;
30
- bottom: number;
31
- left: number;
32
- backgroundColor: string;
33
- }>;
34
- };
35
- export default _default;
@@ -1,7 +0,0 @@
1
- import { ComponentInternalInstance } from 'vue';
2
- declare const _default: () => {
3
- resolveColumns: (instance: ComponentInternalInstance) => any[];
4
- setNodeInstanceId: (column: any, uniqueId: string) => void;
5
- columns: any[];
6
- };
7
- export default _default;
@@ -1,27 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { Column, TablePropTypes } from '../props';
3
- import { ITableResponse } from '../use-attributes';
4
- /**
5
- * 固定列Hooks
6
- */
7
- declare const _default: (props: TablePropTypes, tableResp: ITableResponse, head?: Ref<HTMLElement>) => {
8
- fixedWrapperClass: string;
9
- resolveFixedColumnStyle: (column: Column) => {
10
- [x: string]: string;
11
- };
12
- resolveFixedColumns: (tableOffsetRight: any) => void;
13
- fixedColumns: any[];
14
- resolveColumnStyle: (colPos: string) => {
15
- width: string;
16
- backgroundColor: string;
17
- bottom: string;
18
- };
19
- resolveColumnClass: (column: Column, scrollX?: any, offsetRight?: any) => {
20
- column_fixed: boolean;
21
- column_fixed_left: boolean;
22
- column_fixed_right: boolean;
23
- shadow: boolean;
24
- };
25
- updateFixClass: (tableOffsetRight: any) => void;
26
- };
27
- export default _default;
@@ -1,7 +0,0 @@
1
- import { SetupContext } from 'vue';
2
- import { Column } from '../props';
3
- import { ITableResponse } from '../use-attributes';
4
- declare const _default: (props: any, context: SetupContext<any>, column: Column, tableResp: ITableResponse) => {
5
- getTH: (classList: any, style: any, index: any) => JSX.Element;
6
- };
7
- export default _default;
@@ -1,23 +0,0 @@
1
- import { Column, SortScope, TablePropTypes } from '../props';
2
- /**
3
- * 处理 Prop中的分页配置
4
- * prop中的配置会覆盖本地的配置
5
- * @param propPagination 用户传入的配置
6
- * @param defVal 默认配置
7
- * @returns 返回值
8
- */
9
- export declare const resolvePaginationOption: (propPagination: any, defVal: any) => any;
10
- declare const _default: (props: TablePropTypes) => {
11
- pageData: any[];
12
- indexData: any[];
13
- localPagination: import("vue").Ref<any>;
14
- resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
15
- resolveIndexData: () => Promise<void>;
16
- resolvePageDataBySortList: (multiCol?: any) => void;
17
- handlePaginationChange: (filterFn?: any, sortFn?: any) => void;
18
- resetStartEndIndex: () => void;
19
- getCurrentPageData: () => any[];
20
- multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[], origin?: any) => void;
21
- sort: (sourceData: any[], sortFn: any, column: Column, type: string, sortScope: SortScope) => void;
22
- };
23
- export default _default;
@@ -1,62 +0,0 @@
1
- import { IEmptyObject } from './const';
2
- import { Column, Field, Settings, TablePropTypes } from './props';
3
- export type ITableFormatData = {
4
- data: any[];
5
- dataSchema: WeakMap<object, any>;
6
- columnSchema: WeakMap<object, any>;
7
- columns: Column[];
8
- settings: {
9
- size: string;
10
- height: number;
11
- fields: Field[];
12
- checked: string[];
13
- };
14
- layout: {
15
- bottom: number;
16
- hasScrollY: boolean;
17
- translateX: number;
18
- translateY: number;
19
- };
20
- };
21
- declare const tableSchemaResponse: (props: TablePropTypes) => {
22
- formatColumns: (columns: Column[]) => void;
23
- formatDataSchema: (data: any[]) => void;
24
- setRowSelection: (row: any, isSelected: boolean, index?: number) => void;
25
- setRowExpand: (row: any, isExpand: boolean) => void;
26
- setRowIndex: (row: any, index: number) => void;
27
- setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
28
- setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
29
- setColumnSortActive: (column: Column, active: boolean) => void;
30
- setRowSelectionAll: (val: boolean) => void;
31
- setRowIndeterminate: () => void;
32
- setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
33
- getColumnAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
34
- getColumnId: (col: Column) => any;
35
- getColumnOrderWidth: (col: Column, orders?: string[]) => number;
36
- getRowSelection: () => any[];
37
- resolveColumnWidth: (root: HTMLElement, autoWidth?: number, offsetWidth?: number) => void;
38
- isActiveColumn: (col: Column) => any;
39
- isHiddenColumn: (col: Column) => any;
40
- resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
41
- resolveByDefColumns: () => void;
42
- resetStartEndIndex: () => void;
43
- toggleAllSelection: (value?: boolean) => void;
44
- setAllRowExpand: (value?: boolean) => void;
45
- clearSelection: () => void;
46
- clearColumnSort: (reset?: boolean) => void;
47
- toggleRowSelection: (row: any) => void;
48
- getRowAttribute: (item: IEmptyObject | any, attrName: string) => any;
49
- filter: () => void;
50
- sortData: (column: Column) => void;
51
- isCheckedAll: () => boolean;
52
- hasCheckedRow: () => boolean;
53
- updateSettings: (settings?: Settings, rowHeight?: number) => void;
54
- changePageRowIndex: (sourceIndex: any, targetIndex: any) => void;
55
- pageData: any[];
56
- localPagination: import("vue").Ref<any>;
57
- formatData: ITableFormatData;
58
- setIndexData: () => Promise<void>;
59
- getFilterFnList: () => any[];
60
- };
61
- export type ITableResponse = ReturnType<typeof tableSchemaResponse>;
62
- export default tableSchemaResponse;