bkui-vue 1.0.3-beta.60.scrollbar.5 → 1.0.3-beta.61.dialog.1

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 (84) hide show
  1. package/dist/index.cjs.js +61 -63
  2. package/dist/index.esm.js +19978 -19906
  3. package/dist/index.umd.js +61 -63
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/components.d.ts +2 -0
  7. package/lib/components.js +3 -1
  8. package/lib/date-picker/index.js +1 -1
  9. package/lib/dialog/dialog.css +140 -80
  10. package/lib/dialog/dialog.d.ts +41 -121
  11. package/lib/dialog/dialog.less +10 -65
  12. package/lib/dialog/dialog.variable.css +140 -80
  13. package/lib/dialog/index.d.ts +105 -272
  14. package/lib/dialog/index.js +91 -100
  15. package/lib/dialog/props.d.ts +8 -48
  16. package/lib/info-box/index.d.ts +2 -2
  17. package/lib/info-box/index.js +312 -172
  18. package/lib/info-box/info-box.css +63 -7
  19. package/lib/info-box/info-box.d.ts +17 -16
  20. package/lib/info-box/info-box.less +76 -14
  21. package/lib/info-box/info-box.variable.css +63 -7
  22. package/lib/info-box/render-component.d.ts +4 -0
  23. package/lib/modal/hooks.d.ts +1 -1
  24. package/lib/modal/index.d.ts +48 -325
  25. package/lib/modal/index.js +195 -675
  26. package/lib/modal/mask.d.ts +6 -0
  27. package/lib/modal/modal.css +132 -34
  28. package/lib/modal/modal.d.ts +17 -126
  29. package/lib/modal/modal.less +88 -39
  30. package/lib/modal/modal.variable.css +132 -34
  31. package/lib/modal/props.mixin.d.ts +2 -53
  32. package/lib/scrollbar/index.d.ts +14 -0
  33. package/lib/scrollbar/index.js +18737 -0
  34. package/lib/{virtual-render → scrollbar}/scrollbar-core/index.d.ts +31 -8
  35. package/lib/{virtual-render/bk-scrollbar.css → scrollbar/scrollbar.css} +13 -13
  36. package/lib/{virtual-render/bk-scrollbar.less → scrollbar/scrollbar.less} +13 -13
  37. package/lib/{virtual-render/bk-scrollbar.variable.css → scrollbar/scrollbar.variable.css} +13 -13
  38. package/lib/search-select/index.d.ts +327 -12
  39. package/lib/search-select/index.js +620 -340
  40. package/lib/search-select/input.d.ts +6 -1
  41. package/lib/search-select/search-select.css +20 -6
  42. package/lib/search-select/search-select.d.ts +109 -4
  43. package/lib/search-select/search-select.less +16 -12
  44. package/lib/search-select/search-select.variable.css +20 -6
  45. package/lib/search-select/selected.d.ts +107 -5
  46. package/lib/search-select/utils.d.ts +13 -1
  47. package/lib/select/index.d.ts +23 -0
  48. package/lib/select/index.js +4 -1
  49. package/lib/select/select.d.ts +11 -0
  50. package/lib/shared/index.d.ts +0 -1
  51. package/lib/shared/index.js +1 -48
  52. package/lib/sideslider/index.d.ts +31 -222
  53. package/lib/sideslider/index.js +49 -36
  54. package/lib/sideslider/sideslider.css +4 -47
  55. package/lib/sideslider/sideslider.d.ts +14 -105
  56. package/lib/sideslider/sideslider.less +14 -65
  57. package/lib/sideslider/sideslider.variable.css +4 -47
  58. package/lib/table/index.js +37 -28
  59. package/lib/table/plugins/use-pagination.d.ts +3 -1
  60. package/lib/table/table.css +14 -13
  61. package/lib/table/table.less +2 -2
  62. package/lib/table/table.variable.css +14 -13
  63. package/lib/table/use-attributes.d.ts +1 -0
  64. package/lib/timeline/index.js +1 -0
  65. package/lib/tree/tree.css +13 -13
  66. package/lib/tree/tree.variable.css +13 -13
  67. package/lib/upload/index.d.ts +12 -0
  68. package/lib/upload/index.js +21 -30
  69. package/lib/upload/props.d.ts +3 -0
  70. package/lib/upload/upload-trigger.d.ts +6 -0
  71. package/lib/upload/upload.d.ts +6 -0
  72. package/lib/virtual-render/index.js +262 -2175
  73. package/lib/virtual-render/use-scrollbar.d.ts +2 -2
  74. package/lib/virtual-render/virtual-render.css +13 -13
  75. package/lib/virtual-render/virtual-render.less +2 -2
  76. package/lib/virtual-render/virtual-render.variable.css +13 -13
  77. package/package.json +2 -2
  78. package/lib/icon/image-fill.js +0 -191
  79. package/lib/shared/mask.d.ts +0 -11
  80. package/lib/virtual-render/bk-scrollbar.d.ts +0 -10
  81. /package/lib/{virtual-render → scrollbar}/scrollbar-core/can-use-dom.d.ts +0 -0
  82. /package/lib/{virtual-render → scrollbar}/scrollbar-core/helpers.d.ts +0 -0
  83. /package/lib/{virtual-render → scrollbar}/scrollbar-core/mouse-wheel.d.ts +0 -0
  84. /package/lib/{virtual-render → scrollbar}/scrollbar-core/scrollbar-width.d.ts +0 -0
@@ -1,5 +1,28 @@
1
- import type { DebouncedFunc } from 'lodash-es';
2
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
+ }
3
26
  interface Options {
4
27
  forceVisible: boolean | Axis;
5
28
  clickOnTrack: boolean;
@@ -66,12 +89,12 @@ type RtlHelpers = {
66
89
  isScrollOriginAtZero: boolean;
67
90
  isScrollingToNegative: boolean;
68
91
  } | null;
69
- type DefaultOptions = Options & typeof SimpleBarCore.defaultOptions;
92
+ type DefaultOptions = Options & typeof BkScrollbarCore.defaultOptions;
70
93
  type MouseWheelInstance = {
71
94
  addWheelEvent: (target: HTMLElement) => void;
72
95
  removeWheelEvent: (target: HTMLElement) => void;
73
96
  };
74
- export default class SimpleBarCore {
97
+ export default class BkScrollbarCore {
75
98
  static rtlHelpers: RtlHelpers;
76
99
  static defaultOptions: Options;
77
100
  /**
@@ -158,15 +181,10 @@ export default class SimpleBarCore {
158
181
  onScroll: () => void;
159
182
  scrollX: () => void;
160
183
  scrollY: () => void;
161
- _onMouseWheel: (args: any) => void;
162
- _onStopScrolling: () => void;
163
184
  onMouseEnter: () => void;
164
- _onMouseEntered: () => void;
165
- _onMouseMove: (e: any) => void;
166
185
  onMouseMoveForAxis(axis?: Axis): void;
167
186
  onMouseLeave: () => void;
168
187
  onMouseLeaveForAxis(axis?: Axis): void;
169
- _onWindowResize: () => void;
170
188
  onPointerEvent: (e: any) => void;
171
189
  /**
172
190
  * on scrollbar handle drag movement starts
@@ -209,5 +227,10 @@ export default class SimpleBarCore {
209
227
  * Find element children matches query
210
228
  */
211
229
  findChild(el: any, query: any): any;
230
+ private mOnMouseWheel;
231
+ private mOnStopScrolling;
232
+ private mOnMouseEntered;
233
+ private mOnMouseMove;
234
+ private mOnWindowResize;
212
235
  }
213
236
  export {};
@@ -2,7 +2,7 @@
2
2
  position: relative;
3
3
  overflow: hidden;
4
4
  }
5
- .bk-scrollbar-wrapper .bk-scroll-content-el {
5
+ .bk-scrollbar-wrapper .bk-scrollbar-content-el {
6
6
  display: inline-flex;
7
7
  flex-direction: column;
8
8
  }
@@ -23,12 +23,12 @@
23
23
  }
24
24
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
25
25
  top: 0;
26
- width: 11px;
26
+ width: 8px;
27
27
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
28
28
  }
29
29
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
30
30
  left: 0;
31
- height: 11px;
31
+ height: 8px;
32
32
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
33
33
  }
34
34
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
@@ -37,7 +37,7 @@
37
37
  top: 0;
38
38
  bottom: 0;
39
39
  min-height: 0;
40
- min-width: 10px;
40
+ min-width: 8px;
41
41
  width: auto;
42
42
  }
43
43
  .bk-scrollbar-wrapper .bk-scrollbar-dragging {
@@ -53,22 +53,22 @@
53
53
  position: absolute;
54
54
  left: 0;
55
55
  right: 0;
56
- min-height: 10px;
56
+ min-height: 8px;
57
57
  }
58
58
  .bk-scrollbar-wrapper .bk-scrollbar::before {
59
59
  position: absolute;
60
60
  content: '';
61
- background: #DcDEE5;
62
- border-radius: 7px;
63
- left: 2px;
64
- right: 2px;
65
- top: 2px;
66
- bottom: 2px;
61
+ background: #DCDEE5;
62
+ border-radius: 6px;
63
+ left: 1px;
64
+ right: 1px;
65
+ top: 1px;
66
+ bottom: 1px;
67
67
  opacity: 0;
68
- transition: opacity 0.2s 0.5s linear;
68
+ transition: opacity 0.2s 0.9s linear;
69
69
  }
70
70
  .bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
71
- opacity: 0.5;
71
+ opacity: 0.9;
72
72
  transition-delay: 0s;
73
73
  transition-duration: 0s;
74
74
  }
@@ -4,7 +4,7 @@
4
4
  position: relative;
5
5
  overflow: hidden;
6
6
 
7
- .@{bk-prefix}-scroll-content-el {
7
+ .@{bk-prefix}-scrollbar-content-el {
8
8
  display: inline-flex;
9
9
  flex-direction: column;
10
10
  }
@@ -30,13 +30,13 @@
30
30
 
31
31
  &.@{bk-prefix}-scrollbar-vertical {
32
32
  top: 0;
33
- width: 11px;
33
+ width: 8px;
34
34
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
35
35
  }
36
36
 
37
37
  &.@{bk-prefix}-scrollbar-horizontal {
38
38
  left: 0;
39
- height: 11px;
39
+ height: 8px;
40
40
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
41
41
 
42
42
  &.@{bk-prefix}-scrollbar {
@@ -45,7 +45,7 @@
45
45
  top: 0;
46
46
  bottom: 0;
47
47
  min-height: 0;
48
- min-width: 10px;
48
+ min-width: 8px;
49
49
  width: auto;
50
50
  }
51
51
  }
@@ -67,24 +67,24 @@
67
67
  position: absolute;
68
68
  left: 0;
69
69
  right: 0;
70
- min-height: 10px;
70
+ min-height: 8px;
71
71
 
72
72
  &::before {
73
73
  position: absolute;
74
74
  content: '';
75
- background: #DcDEE5;
76
- border-radius: 7px;
77
- left: 2px;
78
- right: 2px;
79
- top: 2px;
80
- bottom: 2px;
75
+ background: #DCDEE5;
76
+ border-radius: 6px;
77
+ left: 1px;
78
+ right: 1px;
79
+ top: 1px;
80
+ bottom: 1px;
81
81
  opacity: 0;
82
- transition: opacity 0.2s 0.5s linear;
82
+ transition: opacity 0.2s 0.9s linear;
83
83
  }
84
84
 
85
85
  &.@{bk-prefix}-scrollbar-visible {
86
86
  &::before {
87
- opacity: 0.5;
87
+ opacity: 0.9;
88
88
  transition-delay: 0s;
89
89
  transition-duration: 0s;
90
90
  }
@@ -131,7 +131,7 @@
131
131
  position: relative;
132
132
  overflow: hidden;
133
133
  }
134
- .bk-scrollbar-wrapper .bk-scroll-content-el {
134
+ .bk-scrollbar-wrapper .bk-scrollbar-content-el {
135
135
  display: inline-flex;
136
136
  flex-direction: column;
137
137
  }
@@ -152,12 +152,12 @@
152
152
  }
153
153
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
154
154
  top: 0;
155
- width: 11px;
155
+ width: 8px;
156
156
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
157
157
  }
158
158
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
159
159
  left: 0;
160
- height: 11px;
160
+ height: 8px;
161
161
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
162
162
  }
163
163
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
@@ -166,7 +166,7 @@
166
166
  top: 0;
167
167
  bottom: 0;
168
168
  min-height: 0;
169
- min-width: 10px;
169
+ min-width: 8px;
170
170
  width: auto;
171
171
  }
172
172
  .bk-scrollbar-wrapper .bk-scrollbar-dragging {
@@ -182,22 +182,22 @@
182
182
  position: absolute;
183
183
  left: 0;
184
184
  right: 0;
185
- min-height: 10px;
185
+ min-height: 8px;
186
186
  }
187
187
  .bk-scrollbar-wrapper .bk-scrollbar::before {
188
188
  position: absolute;
189
189
  content: '';
190
- background: #DcDEE5;
191
- border-radius: 7px;
192
- left: 2px;
193
- right: 2px;
194
- top: 2px;
195
- bottom: 2px;
190
+ background: #DCDEE5;
191
+ border-radius: 6px;
192
+ left: 1px;
193
+ right: 1px;
194
+ top: 1px;
195
+ bottom: 1px;
196
196
  opacity: 0;
197
- transition: opacity 0.2s 0.5s linear;
197
+ transition: opacity 0.2s 0.9s linear;
198
198
  }
199
199
  .bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
200
- opacity: 0.5;
200
+ opacity: 0.9;
201
201
  transition-delay: 0s;
202
202
  transition-duration: 0s;
203
203
  }