bkui-vue 2.0.1-beta.112 → 2.0.1-beta.114

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 (159) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.esm.js +1 -1
  3. package/dist/index.umd.js +1 -1
  4. package/lib/affix/index.js +30 -22
  5. package/lib/alert/index.js +30 -22
  6. package/lib/animate-number/index.js +14 -10
  7. package/lib/backtop/index.js +32 -22
  8. package/lib/badge/index.js +24 -18
  9. package/lib/breadcrumb/index.js +31 -23
  10. package/lib/button/index.js +36 -26
  11. package/lib/card/index.js +47 -33
  12. package/lib/cascader/index.js +91 -63
  13. package/lib/checkbox/index.js +44 -34
  14. package/lib/code-diff/index.js +83 -79
  15. package/lib/collapse/index.js +39 -33
  16. package/lib/collapse-transition/index.js +20 -14
  17. package/lib/color-picker/index.js +55 -41
  18. package/lib/config-provider/index.js +34 -26
  19. package/lib/container/index.js +27 -21
  20. package/lib/date-picker/index.js +90 -70
  21. package/lib/dialog/index.js +101 -87
  22. package/lib/directives/index.js +314 -306
  23. package/lib/divider/index.js +21 -15
  24. package/lib/dropdown/index.js +43 -31
  25. package/lib/exception/index.js +55 -49
  26. package/lib/fixed-navbar/index.js +20 -14
  27. package/lib/form/index.js +82 -60
  28. package/lib/icon/angle-double-down-line.js +14 -12
  29. package/lib/icon/angle-double-left-line.js +14 -12
  30. package/lib/icon/angle-double-left.js +14 -12
  31. package/lib/icon/angle-double-right-line.js +14 -12
  32. package/lib/icon/angle-double-right.js +14 -12
  33. package/lib/icon/angle-double-up-line.js +14 -12
  34. package/lib/icon/angle-down-fill.js +14 -12
  35. package/lib/icon/angle-down-line.js +14 -12
  36. package/lib/icon/angle-down.js +14 -12
  37. package/lib/icon/angle-left.js +14 -12
  38. package/lib/icon/angle-right.js +14 -12
  39. package/lib/icon/angle-up-fill.js +14 -12
  40. package/lib/icon/angle-up.js +14 -12
  41. package/lib/icon/archive-fill.js +14 -12
  42. package/lib/icon/arrows-left.js +14 -12
  43. package/lib/icon/arrows-right.js +14 -12
  44. package/lib/icon/assistant.js +14 -12
  45. package/lib/icon/audio-fill.js +14 -12
  46. package/lib/icon/bk.js +14 -12
  47. package/lib/icon/circle.js +14 -12
  48. package/lib/icon/close-line.js +14 -12
  49. package/lib/icon/close.js +14 -12
  50. package/lib/icon/code.js +14 -12
  51. package/lib/icon/cog-shape.js +14 -12
  52. package/lib/icon/collapse-left.js +14 -12
  53. package/lib/icon/copy-shape.js +14 -12
  54. package/lib/icon/copy.js +14 -12
  55. package/lib/icon/data-shape.js +14 -12
  56. package/lib/icon/del.js +14 -12
  57. package/lib/icon/doc-fill.js +14 -12
  58. package/lib/icon/done.js +14 -12
  59. package/lib/icon/down-shape.js +14 -12
  60. package/lib/icon/down-small.js +14 -12
  61. package/lib/icon/edit-line.js +14 -12
  62. package/lib/icon/ellipsis.js +14 -12
  63. package/lib/icon/enlarge-line.js +14 -12
  64. package/lib/icon/error.js +14 -12
  65. package/lib/icon/excel-fill.js +14 -12
  66. package/lib/icon/exclamation-circle-shape.js +14 -12
  67. package/lib/icon/eye.js +14 -12
  68. package/lib/icon/filliscreen-line.js +14 -12
  69. package/lib/icon/fix-line.js +14 -12
  70. package/lib/icon/fix-shape.js +14 -12
  71. package/lib/icon/folder-open.js +14 -12
  72. package/lib/icon/folder-shape-open.js +14 -12
  73. package/lib/icon/folder-shape.js +14 -12
  74. package/lib/icon/folder.js +14 -12
  75. package/lib/icon/funnel.js +14 -12
  76. package/lib/icon/grag-fill.js +14 -12
  77. package/lib/icon/help-document-fill.js +14 -12
  78. package/lib/icon/help-fill.js +14 -12
  79. package/lib/icon/help.js +14 -12
  80. package/lib/icon/image-fill.js +14 -12
  81. package/lib/icon/img-error.js +14 -12
  82. package/lib/icon/img-placehoulder.js +14 -12
  83. package/lib/icon/info-line.js +14 -12
  84. package/lib/icon/info.js +14 -12
  85. package/lib/icon/left-shape.js +14 -12
  86. package/lib/icon/left-turn-line.js +14 -12
  87. package/lib/icon/loading.js +14 -12
  88. package/lib/icon/narrow-line.js +14 -12
  89. package/lib/icon/original.js +14 -12
  90. package/lib/icon/pdf-fill.js +14 -12
  91. package/lib/icon/play-shape.js +14 -12
  92. package/lib/icon/plus.js +14 -12
  93. package/lib/icon/ppt-fill.js +14 -12
  94. package/lib/icon/qq.js +14 -12
  95. package/lib/icon/right-shape.js +14 -12
  96. package/lib/icon/right-turn-line.js +14 -12
  97. package/lib/icon/search.js +14 -12
  98. package/lib/icon/share.js +14 -12
  99. package/lib/icon/spinner.js +14 -12
  100. package/lib/icon/success.js +14 -12
  101. package/lib/icon/switcher-loading.js +14 -12
  102. package/lib/icon/text-all.js +14 -12
  103. package/lib/icon/text-file.js +14 -12
  104. package/lib/icon/text-fill.js +14 -12
  105. package/lib/icon/transfer.js +14 -12
  106. package/lib/icon/tree-application-shape.js +14 -12
  107. package/lib/icon/unfull-screen.js +14 -12
  108. package/lib/icon/unvisible.js +14 -12
  109. package/lib/icon/up-shape.js +14 -12
  110. package/lib/icon/upload.js +14 -12
  111. package/lib/icon/video-fill.js +14 -12
  112. package/lib/icon/warn.js +14 -12
  113. package/lib/icon/weixin-pro.js +14 -12
  114. package/lib/icon/weixin.js +14 -12
  115. package/lib/image/index.js +50 -36
  116. package/lib/index.js +1 -1
  117. package/lib/info-box/index.js +101 -87
  118. package/lib/input/index.js +45 -35
  119. package/lib/link/index.js +26 -18
  120. package/lib/loading/index.js +25 -19
  121. package/lib/locale/index.js +3 -3
  122. package/lib/menu/index.js +40 -32
  123. package/lib/message/index.js +47 -41
  124. package/lib/modal/index.js +39 -29
  125. package/lib/navigation/index.js +27 -19
  126. package/lib/notify/index.js +37 -27
  127. package/lib/overflow-title/index.js +41 -29
  128. package/lib/pagination/index.js +62 -46
  129. package/lib/plugin-popover/index.js +7 -5
  130. package/lib/plugins/index.js +7 -5
  131. package/lib/pop-confirm/index.js +49 -33
  132. package/lib/popover/index.js +73 -59
  133. package/lib/popover2/index.js +14 -10
  134. package/lib/process/index.js +78 -74
  135. package/lib/progress/index.js +26 -20
  136. package/lib/radio/index.js +39 -31
  137. package/lib/rate/index.js +25 -19
  138. package/lib/resize-layout/index.js +30 -22
  139. package/lib/scrollbar/index.js +25 -25
  140. package/lib/search-select/index.js +128 -110
  141. package/lib/select/index.js +182 -144
  142. package/lib/shared/index.js +57 -49
  143. package/lib/sideslider/index.js +89 -79
  144. package/lib/slider/index.js +85 -75
  145. package/lib/steps/index.js +78 -72
  146. package/lib/swiper/index.js +24 -18
  147. package/lib/switcher/index.js +30 -22
  148. package/lib/tab/index.js +51 -39
  149. package/lib/table/index.js +257 -203
  150. package/lib/table-column/index.js +13 -9
  151. package/lib/tag/index.js +36 -26
  152. package/lib/tag-input/index.js +96 -70
  153. package/lib/time-picker/index.js +13 -9
  154. package/lib/timeline/index.js +21 -15
  155. package/lib/transfer/index.js +56 -40
  156. package/lib/tree/index.js +100 -76
  157. package/lib/upload/index.js +584 -572
  158. package/lib/virtual-render/index.js +55 -43
  159. package/package.json +1 -1
@@ -7,15 +7,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
7
7
  import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
8
8
  /******/ var __webpack_modules__ = ({
9
9
 
10
- /***/ 2439:
11
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
12
-
13
- module.exports = __webpack_require__(2527);
14
-
15
-
16
- /***/ }),
17
-
18
- /***/ 7430:
10
+ /***/ 1043:
19
11
  /***/ ((module) => {
20
12
 
21
13
  /**
@@ -65,7 +57,265 @@ module.exports = ExecutionEnvironment;
65
57
 
66
58
  /***/ }),
67
59
 
68
- /***/ 6377:
60
+ /***/ 2586:
61
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
62
+
63
+ /**
64
+ * Copyright 2013-2015, Facebook, Inc.
65
+ * All rights reserved.
66
+ *
67
+ * This source code is licensed under the BSD-style license found in the
68
+ * LICENSE file in the root directory of this source tree. An additional grant
69
+ * of patent rights can be found in the PATENTS file in the same directory.
70
+ *
71
+ * @providesModule isEventSupported
72
+ */
73
+
74
+
75
+
76
+ var ExecutionEnvironment = __webpack_require__(1043);
77
+
78
+ var useHasFeature;
79
+ if (ExecutionEnvironment.canUseDOM) {
80
+ useHasFeature =
81
+ document.implementation &&
82
+ document.implementation.hasFeature &&
83
+ // always returns true in newer browsers as per the standard.
84
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
85
+ document.implementation.hasFeature('', '') !== true;
86
+ }
87
+
88
+ /**
89
+ * Checks if an event is supported in the current execution environment.
90
+ *
91
+ * NOTE: This will not work correctly for non-generic events such as `change`,
92
+ * `reset`, `load`, `error`, and `select`.
93
+ *
94
+ * Borrows from Modernizr.
95
+ *
96
+ * @param {string} eventNameSuffix Event name, e.g. "click".
97
+ * @param {?boolean} capture Check if the capture phase is supported.
98
+ * @return {boolean} True if the event is supported.
99
+ * @internal
100
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
101
+ */
102
+ function isEventSupported(eventNameSuffix, capture) {
103
+ if (!ExecutionEnvironment.canUseDOM ||
104
+ capture && !('addEventListener' in document)) {
105
+ return false;
106
+ }
107
+
108
+ var eventName = 'on' + eventNameSuffix;
109
+ var isSupported = eventName in document;
110
+
111
+ if (!isSupported) {
112
+ var element = document.createElement('div');
113
+ element.setAttribute(eventName, 'return;');
114
+ isSupported = typeof element[eventName] === 'function';
115
+ }
116
+
117
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
118
+ // This is the only way to test support for the `wheel` event in IE9+.
119
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
120
+ }
121
+
122
+ return isSupported;
123
+ }
124
+
125
+ module.exports = isEventSupported;
126
+
127
+
128
+ /***/ }),
129
+
130
+ /***/ 5022:
131
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
132
+
133
+ /**
134
+ * Copyright (c) 2015, Facebook, Inc.
135
+ * All rights reserved.
136
+ *
137
+ * This source code is licensed under the BSD-style license found in the
138
+ * LICENSE file in the root directory of this source tree. An additional grant
139
+ * of patent rights can be found in the PATENTS file in the same directory.
140
+ *
141
+ * @providesModule normalizeWheel
142
+ * @typechecks
143
+ */
144
+
145
+
146
+
147
+ var UserAgent_DEPRECATED = __webpack_require__(7416);
148
+
149
+ var isEventSupported = __webpack_require__(2586);
150
+
151
+
152
+ // Reasonable defaults
153
+ var PIXEL_STEP = 10;
154
+ var LINE_HEIGHT = 40;
155
+ var PAGE_HEIGHT = 800;
156
+
157
+ /**
158
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
159
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
160
+ * your questions.
161
+ *
162
+ * If you need to react to the mouse wheel in a predictable way, this code is
163
+ * like your bestest friend. * hugs *
164
+ *
165
+ * As of today, there are 4 DOM event types you can listen to:
166
+ *
167
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
168
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
169
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
170
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
171
+ *
172
+ * So what to do? The is the best:
173
+ *
174
+ * normalizeWheel.getEventType();
175
+ *
176
+ * In your event callback, use this code to get sane interpretation of the
177
+ * deltas. This code will return an object with properties:
178
+ *
179
+ * spinX -- normalized spin speed (use for zoom) - x plane
180
+ * spinY -- " - y plane
181
+ * pixelX -- normalized distance (to pixels) - x plane
182
+ * pixelY -- " - y plane
183
+ *
184
+ * Wheel values are provided by the browser assuming you are using the wheel to
185
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
186
+ * significantly on different platforms and browsers, forgetting that you can
187
+ * scroll at different speeds. Some devices (like trackpads) emit more events
188
+ * at smaller increments with fine granularity, and some emit massive jumps with
189
+ * linear speed or acceleration.
190
+ *
191
+ * This code does its best to normalize the deltas for you:
192
+ *
193
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
194
+ * dragged). This is super useful for zoom support where you want to
195
+ * throw away the chunky scroll steps on the PC and make those equal to
196
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
197
+ * resolve a single slow step on a wheel to 1.
198
+ *
199
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
200
+ * get the crazy differences between browsers, but at least it'll be in
201
+ * pixels!
202
+ *
203
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
204
+ * should translate to positive value zooming IN, negative zooming OUT.
205
+ * This matches the newer 'wheel' event.
206
+ *
207
+ * Why are there spinX, spinY (or pixels)?
208
+ *
209
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
210
+ * with a mouse. It results in side-scrolling in the browser by default.
211
+ *
212
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
213
+ *
214
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
215
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
216
+ * you know.
217
+ *
218
+ * Implementation info:
219
+ *
220
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
221
+ * average mouse:
222
+ *
223
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
224
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
225
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
226
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
227
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
228
+ *
229
+ * On the trackpad:
230
+ *
231
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
232
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
233
+ *
234
+ * On other/older browsers.. it's more complicated as there can be multiple and
235
+ * also missing delta values.
236
+ *
237
+ * The 'wheel' event is more standard:
238
+ *
239
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
240
+ *
241
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
242
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
243
+ * backward compatibility with older events. Those other values help us
244
+ * better normalize spin speed. Example of what the browsers provide:
245
+ *
246
+ * | event.wheelDelta | event.detail
247
+ * ------------------+------------------+--------------
248
+ * Safari v5/OS X | -120 | 0
249
+ * Safari v5/Win7 | -120 | 0
250
+ * Chrome v17/OS X | -120 | 0
251
+ * Chrome v17/Win7 | -120 | 0
252
+ * IE9/Win7 | -120 | undefined
253
+ * Firefox v4/OS X | undefined | 1
254
+ * Firefox v4/Win7 | undefined | 3
255
+ *
256
+ */
257
+ function normalizeWheel(/*object*/ event) /*object*/ {
258
+ var sX = 0, sY = 0, // spinX, spinY
259
+ pX = 0, pY = 0; // pixelX, pixelY
260
+
261
+ // Legacy
262
+ if ('detail' in event) { sY = event.detail; }
263
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
264
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
265
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
266
+
267
+ // side scrolling on FF with DOMMouseScroll
268
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
269
+ sX = sY;
270
+ sY = 0;
271
+ }
272
+
273
+ pX = sX * PIXEL_STEP;
274
+ pY = sY * PIXEL_STEP;
275
+
276
+ if ('deltaY' in event) { pY = event.deltaY; }
277
+ if ('deltaX' in event) { pX = event.deltaX; }
278
+
279
+ if ((pX || pY) && event.deltaMode) {
280
+ if (event.deltaMode == 1) { // delta in LINE units
281
+ pX *= LINE_HEIGHT;
282
+ pY *= LINE_HEIGHT;
283
+ } else { // delta in PAGE units
284
+ pX *= PAGE_HEIGHT;
285
+ pY *= PAGE_HEIGHT;
286
+ }
287
+ }
288
+
289
+ // Fall-back if spin cannot be determined
290
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
291
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
292
+
293
+ return { spinX : sX,
294
+ spinY : sY,
295
+ pixelX : pX,
296
+ pixelY : pY };
297
+ }
298
+
299
+
300
+ /**
301
+ * The best combination if you prefer spinX + spinY normalization. It favors
302
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
303
+ * 'wheel' event, making spin speed determination impossible.
304
+ */
305
+ normalizeWheel.getEventType = function() /*string*/ {
306
+ return (UserAgent_DEPRECATED.firefox())
307
+ ? 'DOMMouseScroll'
308
+ : (isEventSupported('wheel'))
309
+ ? 'wheel'
310
+ : 'mousewheel';
311
+ };
312
+
313
+ module.exports = normalizeWheel;
314
+
315
+
316
+ /***/ }),
317
+
318
+ /***/ 7416:
69
319
  /***/ ((module) => {
70
320
 
71
321
  /**
@@ -354,260 +604,10 @@ module.exports = UserAgent_DEPRECATED;
354
604
 
355
605
  /***/ }),
356
606
 
357
- /***/ 3541:
607
+ /***/ 8283:
358
608
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
359
609
 
360
- /**
361
- * Copyright 2013-2015, Facebook, Inc.
362
- * All rights reserved.
363
- *
364
- * This source code is licensed under the BSD-style license found in the
365
- * LICENSE file in the root directory of this source tree. An additional grant
366
- * of patent rights can be found in the PATENTS file in the same directory.
367
- *
368
- * @providesModule isEventSupported
369
- */
370
-
371
-
372
-
373
- var ExecutionEnvironment = __webpack_require__(7430);
374
-
375
- var useHasFeature;
376
- if (ExecutionEnvironment.canUseDOM) {
377
- useHasFeature =
378
- document.implementation &&
379
- document.implementation.hasFeature &&
380
- // always returns true in newer browsers as per the standard.
381
- // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
382
- document.implementation.hasFeature('', '') !== true;
383
- }
384
-
385
- /**
386
- * Checks if an event is supported in the current execution environment.
387
- *
388
- * NOTE: This will not work correctly for non-generic events such as `change`,
389
- * `reset`, `load`, `error`, and `select`.
390
- *
391
- * Borrows from Modernizr.
392
- *
393
- * @param {string} eventNameSuffix Event name, e.g. "click".
394
- * @param {?boolean} capture Check if the capture phase is supported.
395
- * @return {boolean} True if the event is supported.
396
- * @internal
397
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
398
- */
399
- function isEventSupported(eventNameSuffix, capture) {
400
- if (!ExecutionEnvironment.canUseDOM ||
401
- capture && !('addEventListener' in document)) {
402
- return false;
403
- }
404
-
405
- var eventName = 'on' + eventNameSuffix;
406
- var isSupported = eventName in document;
407
-
408
- if (!isSupported) {
409
- var element = document.createElement('div');
410
- element.setAttribute(eventName, 'return;');
411
- isSupported = typeof element[eventName] === 'function';
412
- }
413
-
414
- if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
415
- // This is the only way to test support for the `wheel` event in IE9+.
416
- isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
417
- }
418
-
419
- return isSupported;
420
- }
421
-
422
- module.exports = isEventSupported;
423
-
424
-
425
- /***/ }),
426
-
427
- /***/ 2527:
428
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
429
-
430
- /**
431
- * Copyright (c) 2015, Facebook, Inc.
432
- * All rights reserved.
433
- *
434
- * This source code is licensed under the BSD-style license found in the
435
- * LICENSE file in the root directory of this source tree. An additional grant
436
- * of patent rights can be found in the PATENTS file in the same directory.
437
- *
438
- * @providesModule normalizeWheel
439
- * @typechecks
440
- */
441
-
442
-
443
-
444
- var UserAgent_DEPRECATED = __webpack_require__(6377);
445
-
446
- var isEventSupported = __webpack_require__(3541);
447
-
448
-
449
- // Reasonable defaults
450
- var PIXEL_STEP = 10;
451
- var LINE_HEIGHT = 40;
452
- var PAGE_HEIGHT = 800;
453
-
454
- /**
455
- * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
456
- * complicated, thus this doc is long and (hopefully) detailed enough to answer
457
- * your questions.
458
- *
459
- * If you need to react to the mouse wheel in a predictable way, this code is
460
- * like your bestest friend. * hugs *
461
- *
462
- * As of today, there are 4 DOM event types you can listen to:
463
- *
464
- * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
465
- * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
466
- * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
467
- * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
468
- *
469
- * So what to do? The is the best:
470
- *
471
- * normalizeWheel.getEventType();
472
- *
473
- * In your event callback, use this code to get sane interpretation of the
474
- * deltas. This code will return an object with properties:
475
- *
476
- * spinX -- normalized spin speed (use for zoom) - x plane
477
- * spinY -- " - y plane
478
- * pixelX -- normalized distance (to pixels) - x plane
479
- * pixelY -- " - y plane
480
- *
481
- * Wheel values are provided by the browser assuming you are using the wheel to
482
- * scroll a web page by a number of lines or pixels (or pages). Values can vary
483
- * significantly on different platforms and browsers, forgetting that you can
484
- * scroll at different speeds. Some devices (like trackpads) emit more events
485
- * at smaller increments with fine granularity, and some emit massive jumps with
486
- * linear speed or acceleration.
487
- *
488
- * This code does its best to normalize the deltas for you:
489
- *
490
- * - spin is trying to normalize how far the wheel was spun (or trackpad
491
- * dragged). This is super useful for zoom support where you want to
492
- * throw away the chunky scroll steps on the PC and make those equal to
493
- * the slow and smooth tiny steps on the Mac. Key data: This code tries to
494
- * resolve a single slow step on a wheel to 1.
495
- *
496
- * - pixel is normalizing the desired scroll delta in pixel units. You'll
497
- * get the crazy differences between browsers, but at least it'll be in
498
- * pixels!
499
- *
500
- * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
501
- * should translate to positive value zooming IN, negative zooming OUT.
502
- * This matches the newer 'wheel' event.
503
- *
504
- * Why are there spinX, spinY (or pixels)?
505
- *
506
- * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
507
- * with a mouse. It results in side-scrolling in the browser by default.
508
- *
509
- * - spinY is what you expect -- it's the classic axis of a mouse wheel.
510
- *
511
- * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
512
- * probably is by browsers in conjunction with fancy 3D controllers .. but
513
- * you know.
514
- *
515
- * Implementation info:
516
- *
517
- * Examples of 'wheel' event if you scroll slowly (down) by one step with an
518
- * average mouse:
519
- *
520
- * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
521
- * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
522
- * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
523
- * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
524
- * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
525
- *
526
- * On the trackpad:
527
- *
528
- * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
529
- * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
530
- *
531
- * On other/older browsers.. it's more complicated as there can be multiple and
532
- * also missing delta values.
533
- *
534
- * The 'wheel' event is more standard:
535
- *
536
- * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
537
- *
538
- * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
539
- * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
540
- * backward compatibility with older events. Those other values help us
541
- * better normalize spin speed. Example of what the browsers provide:
542
- *
543
- * | event.wheelDelta | event.detail
544
- * ------------------+------------------+--------------
545
- * Safari v5/OS X | -120 | 0
546
- * Safari v5/Win7 | -120 | 0
547
- * Chrome v17/OS X | -120 | 0
548
- * Chrome v17/Win7 | -120 | 0
549
- * IE9/Win7 | -120 | undefined
550
- * Firefox v4/OS X | undefined | 1
551
- * Firefox v4/Win7 | undefined | 3
552
- *
553
- */
554
- function normalizeWheel(/*object*/ event) /*object*/ {
555
- var sX = 0, sY = 0, // spinX, spinY
556
- pX = 0, pY = 0; // pixelX, pixelY
557
-
558
- // Legacy
559
- if ('detail' in event) { sY = event.detail; }
560
- if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
561
- if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
562
- if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
563
-
564
- // side scrolling on FF with DOMMouseScroll
565
- if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
566
- sX = sY;
567
- sY = 0;
568
- }
569
-
570
- pX = sX * PIXEL_STEP;
571
- pY = sY * PIXEL_STEP;
572
-
573
- if ('deltaY' in event) { pY = event.deltaY; }
574
- if ('deltaX' in event) { pX = event.deltaX; }
575
-
576
- if ((pX || pY) && event.deltaMode) {
577
- if (event.deltaMode == 1) { // delta in LINE units
578
- pX *= LINE_HEIGHT;
579
- pY *= LINE_HEIGHT;
580
- } else { // delta in PAGE units
581
- pX *= PAGE_HEIGHT;
582
- pY *= PAGE_HEIGHT;
583
- }
584
- }
585
-
586
- // Fall-back if spin cannot be determined
587
- if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
588
- if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
589
-
590
- return { spinX : sX,
591
- spinY : sY,
592
- pixelX : pX,
593
- pixelY : pY };
594
- }
595
-
596
-
597
- /**
598
- * The best combination if you prefer spinX + spinY normalization. It favors
599
- * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
600
- * 'wheel' event, making spin speed determination impossible.
601
- */
602
- normalizeWheel.getEventType = function() /*string*/ {
603
- return (UserAgent_DEPRECATED.firefox())
604
- ? 'DOMMouseScroll'
605
- : (isEventSupported('wheel'))
606
- ? 'wheel'
607
- : 'mousewheel';
608
- };
609
-
610
- module.exports = normalizeWheel;
610
+ module.exports = __webpack_require__(5022);
611
611
 
612
612
 
613
613
  /***/ })
@@ -670,8 +670,6 @@ module.exports = normalizeWheel;
670
670
  /******/
671
671
  /************************************************************************/
672
672
  var __webpack_exports__ = {};
673
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
674
- (() => {
675
673
 
676
674
  // EXPORTS
677
675
  __webpack_require__.d(__webpack_exports__, {
@@ -684,7 +682,7 @@ __webpack_require__.d(__webpack_exports__, {
684
682
  overflowTitle: () => (/* reexport */ external_overflow_title_namespaceObject.overflowTitle)
685
683
  });
686
684
 
687
- ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
685
+ ;// ../../packages/directives/src/clickoutside.ts
688
686
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
689
687
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
690
688
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
@@ -810,7 +808,7 @@ ClickOutside.install = function (app) {
810
808
  app.directive('bkTooltips', ClickOutside);
811
809
  };
812
810
  /* harmony default export */ const clickoutside = (ClickOutside);
813
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
811
+ ;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
814
812
  function _typeof(o) {
815
813
  "@babel/helpers - typeof";
816
814
 
@@ -820,11 +818,13 @@ function _typeof(o) {
820
818
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
821
819
  }, _typeof(o);
822
820
  }
823
- ;// CONCATENATED MODULE: external "../plugin-popover"
824
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
825
- var y = x => () => x
826
- const plugin_popover_namespaceObject = x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"] });
827
- ;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
821
+ ;// external "../plugin-popover"
822
+ var x = (y) => {
823
+ var x = {}; __webpack_require__.d(x, y); return x
824
+ }
825
+ var y = (x) => (() => (x))
826
+ const plugin_popover_namespaceObject = x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
827
+ ;// ../../packages/directives/src/ellipsis.ts
828
828
 
829
829
  /*
830
830
  * Tencent is pleased to support the open source community by making
@@ -936,9 +936,9 @@ var ellipsis = {
936
936
  };
937
937
  /* harmony default export */ const src_ellipsis = (ellipsis);
938
938
  // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
939
- var normalize_wheel = __webpack_require__(2439);
939
+ var normalize_wheel = __webpack_require__(8283);
940
940
  var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
941
- ;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
941
+ ;// ../../packages/directives/src/mousewheel.ts
942
942
  /*
943
943
  * Tencent is pleased to support the open source community by making
944
944
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -980,7 +980,7 @@ var mousewheel = {
980
980
  }
981
981
  };
982
982
  /* harmony default export */ const src_mousewheel = (mousewheel);
983
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
983
+ ;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
984
984
 
985
985
  function toPrimitive(t, r) {
986
986
  if ("object" != _typeof(t) || !t) return t;
@@ -992,14 +992,14 @@ function toPrimitive(t, r) {
992
992
  }
993
993
  return ("string" === r ? String : Number)(t);
994
994
  }
995
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
995
+ ;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
996
996
 
997
997
 
998
998
  function toPropertyKey(t) {
999
999
  var i = toPrimitive(t, "string");
1000
1000
  return "symbol" == _typeof(i) ? i : String(i);
1001
1001
  }
1002
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
1002
+ ;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
1003
1003
 
1004
1004
  function _defineProperty(obj, key, value) {
1005
1005
  key = toPropertyKey(key);
@@ -1015,22 +1015,22 @@ function _defineProperty(obj, key, value) {
1015
1015
  }
1016
1016
  return obj;
1017
1017
  }
1018
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1018
+ ;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1019
1019
  function arrayLikeToArray_arrayLikeToArray(arr, len) {
1020
1020
  if (len == null || len > arr.length) len = arr.length;
1021
1021
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1022
1022
  return arr2;
1023
1023
  }
1024
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1024
+ ;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1025
1025
 
1026
1026
  function _arrayWithoutHoles(arr) {
1027
1027
  if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
1028
1028
  }
1029
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1029
+ ;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1030
1030
  function _iterableToArray(iter) {
1031
1031
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1032
1032
  }
1033
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1033
+ ;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1034
1034
 
1035
1035
  function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
1036
1036
  if (!o) return;
@@ -1040,11 +1040,11 @@ function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
1040
1040
  if (n === "Map" || n === "Set") return Array.from(o);
1041
1041
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
1042
1042
  }
1043
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1043
+ ;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1044
1044
  function _nonIterableSpread() {
1045
1045
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1046
1046
  }
1047
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1047
+ ;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1048
1048
 
1049
1049
 
1050
1050
 
@@ -1052,19 +1052,25 @@ function _nonIterableSpread() {
1052
1052
  function _toConsumableArray(arr) {
1053
1053
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
1054
1054
  }
1055
- ;// CONCATENATED MODULE: external "vue"
1056
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1057
- var external_vue_y = x => () => x
1058
- const external_vue_namespaceObject = external_vue_x({ ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render });
1059
- ;// CONCATENATED MODULE: external "../shared"
1060
- var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1061
- var shared_y = x => () => x
1062
- const shared_namespaceObject = shared_x({ ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName });
1063
- ;// CONCATENATED MODULE: external "@popperjs/core"
1064
- var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1065
- var core_y = x => () => x
1066
- const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
1067
- ;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
1055
+ ;// external "vue"
1056
+ var external_vue_x = (y) => {
1057
+ var x = {}; __webpack_require__.d(x, y); return x
1058
+ }
1059
+ var external_vue_y = (x) => (() => (x))
1060
+ const external_vue_namespaceObject = external_vue_x({ ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render) });
1061
+ ;// external "../shared"
1062
+ var shared_x = (y) => {
1063
+ var x = {}; __webpack_require__.d(x, y); return x
1064
+ }
1065
+ var shared_y = (x) => (() => (x))
1066
+ const shared_namespaceObject = shared_x({ ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName) });
1067
+ ;// external "@popperjs/core"
1068
+ var core_x = (y) => {
1069
+ var x = {}; __webpack_require__.d(x, y); return x
1070
+ }
1071
+ var core_y = (x) => (() => (x))
1072
+ const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
1073
+ ;// ../../packages/directives/src/tooltips.ts
1068
1074
 
1069
1075
 
1070
1076
 
@@ -1356,15 +1362,19 @@ function hide(el) {
1356
1362
  }
1357
1363
  }
1358
1364
  /* harmony default export */ const src_tooltips = (tooltips);
1359
- ;// CONCATENATED MODULE: external "../loading"
1360
- var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1361
- var external_loading_y = x => () => x
1362
- const external_loading_namespaceObject = external_loading_x({ ["vBkloading"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__.vBkloading });
1363
- ;// CONCATENATED MODULE: external "../overflow-title"
1364
- var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1365
- var external_overflow_title_y = x => () => x
1366
- const external_overflow_title_namespaceObject = external_overflow_title_x({ ["overflowTitle"]: () => __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__.overflowTitle });
1367
- ;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
1365
+ ;// external "../loading"
1366
+ var external_loading_x = (y) => {
1367
+ var x = {}; __webpack_require__.d(x, y); return x
1368
+ }
1369
+ var external_loading_y = (x) => (() => (x))
1370
+ const external_loading_namespaceObject = external_loading_x({ ["vBkloading"]: () => (__WEBPACK_EXTERNAL_MODULE__loading_4d683b23__.vBkloading) });
1371
+ ;// external "../overflow-title"
1372
+ var external_overflow_title_x = (y) => {
1373
+ var x = {}; __webpack_require__.d(x, y); return x
1374
+ }
1375
+ var external_overflow_title_y = (x) => (() => (x))
1376
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ ["overflowTitle"]: () => (__WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__.overflowTitle) });
1377
+ ;// ../../packages/directives/src/index.ts
1368
1378
  /*
1369
1379
  * Tencent is pleased to support the open source community by making
1370
1380
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -1397,8 +1407,6 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ ["ov
1397
1407
 
1398
1408
 
1399
1409
  // export { createInstance as bkEllipsisInstance } from './ellipsis';
1400
- })();
1401
-
1402
1410
  var __webpack_exports__bkEllipsis = __webpack_exports__.bkEllipsis;
1403
1411
  var __webpack_exports__bkEllipsisInstance = __webpack_exports__.bkEllipsisInstance;
1404
1412
  var __webpack_exports__bkLoading = __webpack_exports__.bkLoading;