bkui-vue 2.0.1 → 2.0.2-beta.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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/lib/affix/index.js +30 -22
- package/lib/alert/index.js +30 -22
- package/lib/animate-number/index.js +14 -10
- package/lib/backtop/index.js +32 -22
- package/lib/badge/index.js +24 -18
- package/lib/breadcrumb/index.js +31 -23
- package/lib/button/index.js +36 -26
- package/lib/card/index.js +47 -33
- package/lib/cascader/index.js +1680 -198
- package/lib/checkbox/index.js +44 -34
- package/lib/code-diff/index.js +83 -79
- package/lib/collapse/index.js +39 -33
- package/lib/collapse-transition/index.js +20 -14
- package/lib/color-picker/index.js +1645 -193
- package/lib/config-provider/index.js +34 -26
- package/lib/container/index.js +27 -21
- package/lib/date-picker/index.js +1943 -516
- package/lib/dialog/index.js +101 -87
- package/lib/directives/index.js +494 -376
- package/lib/divider/index.js +21 -15
- package/lib/dropdown/index.js +43 -31
- package/lib/exception/index.js +55 -49
- package/lib/fixed-navbar/index.js +20 -14
- package/lib/form/index.js +1623 -198
- package/lib/icon/angle-double-down-line.js +14 -12
- package/lib/icon/angle-double-left-line.js +14 -12
- package/lib/icon/angle-double-left.js +14 -12
- package/lib/icon/angle-double-right-line.js +14 -12
- package/lib/icon/angle-double-right.js +14 -12
- package/lib/icon/angle-double-up-line.js +14 -12
- package/lib/icon/angle-down-fill.js +14 -12
- package/lib/icon/angle-down-line.js +14 -12
- package/lib/icon/angle-down.js +14 -12
- package/lib/icon/angle-left.js +14 -12
- package/lib/icon/angle-right.js +14 -12
- package/lib/icon/angle-up-fill.js +14 -12
- package/lib/icon/angle-up.js +14 -12
- package/lib/icon/archive-fill.js +14 -12
- package/lib/icon/arrows-left.js +14 -12
- package/lib/icon/arrows-right.js +14 -12
- package/lib/icon/assistant.js +14 -12
- package/lib/icon/audio-fill.js +14 -12
- package/lib/icon/bk.js +14 -12
- package/lib/icon/circle.js +14 -12
- package/lib/icon/close-line.js +14 -12
- package/lib/icon/close.js +14 -12
- package/lib/icon/code.js +14 -12
- package/lib/icon/cog-shape.js +14 -12
- package/lib/icon/collapse-left.js +14 -12
- package/lib/icon/copy-shape.js +14 -12
- package/lib/icon/copy.js +14 -12
- package/lib/icon/data-shape.js +14 -12
- package/lib/icon/del.js +14 -12
- package/lib/icon/doc-fill.js +14 -12
- package/lib/icon/done.js +14 -12
- package/lib/icon/down-shape.js +14 -12
- package/lib/icon/down-small.js +14 -12
- package/lib/icon/edit-line.js +14 -12
- package/lib/icon/ellipsis.js +14 -12
- package/lib/icon/enlarge-line.js +14 -12
- package/lib/icon/error.js +14 -12
- package/lib/icon/excel-fill.js +14 -12
- package/lib/icon/exclamation-circle-shape.js +14 -12
- package/lib/icon/eye.js +14 -12
- package/lib/icon/filliscreen-line.js +14 -12
- package/lib/icon/fix-line.js +14 -12
- package/lib/icon/fix-shape.js +14 -12
- package/lib/icon/folder-open.js +14 -12
- package/lib/icon/folder-shape-open.js +14 -12
- package/lib/icon/folder-shape.js +14 -12
- package/lib/icon/folder.js +14 -12
- package/lib/icon/funnel.js +14 -12
- package/lib/icon/grag-fill.js +14 -12
- package/lib/icon/help-document-fill.js +14 -12
- package/lib/icon/help-fill.js +14 -12
- package/lib/icon/help.js +14 -12
- package/lib/icon/image-fill.js +14 -12
- package/lib/icon/img-error.js +14 -12
- package/lib/icon/img-placehoulder.js +14 -12
- package/lib/icon/info-line.js +14 -12
- package/lib/icon/info.js +14 -12
- package/lib/icon/left-shape.js +14 -12
- package/lib/icon/left-turn-line.js +14 -12
- package/lib/icon/loading.js +14 -12
- package/lib/icon/narrow-line.js +14 -12
- package/lib/icon/original.js +14 -12
- package/lib/icon/pdf-fill.js +14 -12
- package/lib/icon/play-shape.js +14 -12
- package/lib/icon/plus.js +14 -12
- package/lib/icon/ppt-fill.js +14 -12
- package/lib/icon/qq.js +14 -12
- package/lib/icon/right-shape.js +14 -12
- package/lib/icon/right-turn-line.js +14 -12
- package/lib/icon/search.js +14 -12
- package/lib/icon/share.js +14 -12
- package/lib/icon/spinner.js +14 -12
- package/lib/icon/success.js +14 -12
- package/lib/icon/switcher-loading.js +14 -12
- package/lib/icon/text-all.js +14 -12
- package/lib/icon/text-file.js +14 -12
- package/lib/icon/text-fill.js +14 -12
- package/lib/icon/transfer.js +14 -12
- package/lib/icon/tree-application-shape.js +14 -12
- package/lib/icon/unfull-screen.js +14 -12
- package/lib/icon/unvisible.js +14 -12
- package/lib/icon/up-shape.js +14 -12
- package/lib/icon/upload.js +14 -12
- package/lib/icon/video-fill.js +14 -12
- package/lib/icon/warn.js +14 -12
- package/lib/icon/weixin-pro.js +14 -12
- package/lib/icon/weixin.js +14 -12
- package/lib/image/index.js +1502 -182
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +101 -87
- package/lib/input/index.js +1342 -42
- package/lib/link/index.js +26 -18
- package/lib/loading/index.js +25 -19
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.js +40 -32
- package/lib/message/index.js +47 -41
- package/lib/modal/index.js +39 -29
- package/lib/navigation/index.js +27 -19
- package/lib/notify/index.js +37 -27
- package/lib/overflow-title/index.js +41 -29
- package/lib/pagination/index.js +62 -46
- package/lib/plugin-popover/index.js +7 -5
- package/lib/plugins/index.js +7 -5
- package/lib/pop-confirm/index.js +49 -33
- package/lib/popover/index.js +1417 -113
- package/lib/popover2/index.js +14 -10
- package/lib/process/index.js +78 -74
- package/lib/progress/index.js +26 -20
- package/lib/radio/index.js +39 -31
- package/lib/rate/index.js +25 -19
- package/lib/resize-layout/index.js +30 -22
- package/lib/scrollbar/index.js +25 -25
- package/lib/search-select/index.js +1486 -236
- package/lib/select/index.js +1404 -134
- package/lib/shared/index.js +57 -49
- package/lib/sideslider/index.js +89 -79
- package/lib/slider/index.js +85 -75
- package/lib/steps/index.js +78 -72
- package/lib/swiper/index.js +24 -18
- package/lib/switcher/index.js +30 -22
- package/lib/tab/index.js +1324 -43
- package/lib/table/index.js +1582 -296
- package/lib/table-column/index.js +13 -9
- package/lib/tag/index.js +36 -26
- package/lib/tag-input/index.js +1370 -75
- package/lib/time-picker/index.js +13 -9
- package/lib/timeline/index.js +21 -15
- package/lib/transfer/index.js +56 -40
- package/lib/tree/index.js +100 -76
- package/lib/upload/index.js +584 -572
- package/lib/virtual-render/index.js +55 -43
- package/package.json +1 -1
package/lib/directives/index.js
CHANGED
@@ -1,21 +1,30 @@
|
|
1
1
|
import "../styles/reset.css";
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
6
6
|
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
|
-
/***/
|
11
|
-
/***/ ((
|
10
|
+
/***/ 205:
|
11
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
12
12
|
|
13
|
-
|
13
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
14
|
+
/* harmony export */ "default": () => (/* binding */ toPropertyKey)
|
15
|
+
/* harmony export */ });
|
16
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7545);
|
17
|
+
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
14
18
|
|
15
19
|
|
20
|
+
function toPropertyKey(t) {
|
21
|
+
var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
|
22
|
+
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
|
23
|
+
}
|
24
|
+
|
16
25
|
/***/ }),
|
17
26
|
|
18
|
-
/***/
|
27
|
+
/***/ 1043:
|
19
28
|
/***/ ((module) => {
|
20
29
|
|
21
30
|
/**
|
@@ -65,7 +74,384 @@ module.exports = ExecutionEnvironment;
|
|
65
74
|
|
66
75
|
/***/ }),
|
67
76
|
|
68
|
-
/***/
|
77
|
+
/***/ 2586:
|
78
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Copyright 2013-2015, Facebook, Inc.
|
82
|
+
* All rights reserved.
|
83
|
+
*
|
84
|
+
* This source code is licensed under the BSD-style license found in the
|
85
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
86
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
87
|
+
*
|
88
|
+
* @providesModule isEventSupported
|
89
|
+
*/
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
var ExecutionEnvironment = __webpack_require__(1043);
|
94
|
+
|
95
|
+
var useHasFeature;
|
96
|
+
if (ExecutionEnvironment.canUseDOM) {
|
97
|
+
useHasFeature =
|
98
|
+
document.implementation &&
|
99
|
+
document.implementation.hasFeature &&
|
100
|
+
// always returns true in newer browsers as per the standard.
|
101
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
102
|
+
document.implementation.hasFeature('', '') !== true;
|
103
|
+
}
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Checks if an event is supported in the current execution environment.
|
107
|
+
*
|
108
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
109
|
+
* `reset`, `load`, `error`, and `select`.
|
110
|
+
*
|
111
|
+
* Borrows from Modernizr.
|
112
|
+
*
|
113
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
114
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
115
|
+
* @return {boolean} True if the event is supported.
|
116
|
+
* @internal
|
117
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
118
|
+
*/
|
119
|
+
function isEventSupported(eventNameSuffix, capture) {
|
120
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
121
|
+
capture && !('addEventListener' in document)) {
|
122
|
+
return false;
|
123
|
+
}
|
124
|
+
|
125
|
+
var eventName = 'on' + eventNameSuffix;
|
126
|
+
var isSupported = eventName in document;
|
127
|
+
|
128
|
+
if (!isSupported) {
|
129
|
+
var element = document.createElement('div');
|
130
|
+
element.setAttribute(eventName, 'return;');
|
131
|
+
isSupported = typeof element[eventName] === 'function';
|
132
|
+
}
|
133
|
+
|
134
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
135
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
136
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
137
|
+
}
|
138
|
+
|
139
|
+
return isSupported;
|
140
|
+
}
|
141
|
+
|
142
|
+
module.exports = isEventSupported;
|
143
|
+
|
144
|
+
|
145
|
+
/***/ }),
|
146
|
+
|
147
|
+
/***/ 2880:
|
148
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
149
|
+
|
150
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
151
|
+
/* harmony export */ "default": () => (/* binding */ _nonIterableSpread)
|
152
|
+
/* harmony export */ });
|
153
|
+
function _nonIterableSpread() {
|
154
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
155
|
+
}
|
156
|
+
|
157
|
+
/***/ }),
|
158
|
+
|
159
|
+
/***/ 3492:
|
160
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
161
|
+
|
162
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
163
|
+
/* harmony export */ "default": () => (/* binding */ _arrayWithoutHoles)
|
164
|
+
/* harmony export */ });
|
165
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6284);
|
166
|
+
|
167
|
+
function _arrayWithoutHoles(arr) {
|
168
|
+
if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
|
169
|
+
}
|
170
|
+
|
171
|
+
/***/ }),
|
172
|
+
|
173
|
+
/***/ 4430:
|
174
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
175
|
+
|
176
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
177
|
+
/* harmony export */ "default": () => (/* binding */ _iterableToArray)
|
178
|
+
/* harmony export */ });
|
179
|
+
function _iterableToArray(iter) {
|
180
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
181
|
+
}
|
182
|
+
|
183
|
+
/***/ }),
|
184
|
+
|
185
|
+
/***/ 4586:
|
186
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
187
|
+
|
188
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
189
|
+
/* harmony export */ "default": () => (/* binding */ _defineProperty)
|
190
|
+
/* harmony export */ });
|
191
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(205);
|
192
|
+
|
193
|
+
function _defineProperty(obj, key, value) {
|
194
|
+
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
|
195
|
+
if (key in obj) {
|
196
|
+
Object.defineProperty(obj, key, {
|
197
|
+
value: value,
|
198
|
+
enumerable: true,
|
199
|
+
configurable: true,
|
200
|
+
writable: true
|
201
|
+
});
|
202
|
+
} else {
|
203
|
+
obj[key] = value;
|
204
|
+
}
|
205
|
+
return obj;
|
206
|
+
}
|
207
|
+
|
208
|
+
/***/ }),
|
209
|
+
|
210
|
+
/***/ 5022:
|
211
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
212
|
+
|
213
|
+
/**
|
214
|
+
* Copyright (c) 2015, Facebook, Inc.
|
215
|
+
* All rights reserved.
|
216
|
+
*
|
217
|
+
* This source code is licensed under the BSD-style license found in the
|
218
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
219
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
220
|
+
*
|
221
|
+
* @providesModule normalizeWheel
|
222
|
+
* @typechecks
|
223
|
+
*/
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
228
|
+
|
229
|
+
var isEventSupported = __webpack_require__(2586);
|
230
|
+
|
231
|
+
|
232
|
+
// Reasonable defaults
|
233
|
+
var PIXEL_STEP = 10;
|
234
|
+
var LINE_HEIGHT = 40;
|
235
|
+
var PAGE_HEIGHT = 800;
|
236
|
+
|
237
|
+
/**
|
238
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
239
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
240
|
+
* your questions.
|
241
|
+
*
|
242
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
243
|
+
* like your bestest friend. * hugs *
|
244
|
+
*
|
245
|
+
* As of today, there are 4 DOM event types you can listen to:
|
246
|
+
*
|
247
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
248
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
249
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
250
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
251
|
+
*
|
252
|
+
* So what to do? The is the best:
|
253
|
+
*
|
254
|
+
* normalizeWheel.getEventType();
|
255
|
+
*
|
256
|
+
* In your event callback, use this code to get sane interpretation of the
|
257
|
+
* deltas. This code will return an object with properties:
|
258
|
+
*
|
259
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
260
|
+
* spinY -- " - y plane
|
261
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
262
|
+
* pixelY -- " - y plane
|
263
|
+
*
|
264
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
265
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
266
|
+
* significantly on different platforms and browsers, forgetting that you can
|
267
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
268
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
269
|
+
* linear speed or acceleration.
|
270
|
+
*
|
271
|
+
* This code does its best to normalize the deltas for you:
|
272
|
+
*
|
273
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
274
|
+
* dragged). This is super useful for zoom support where you want to
|
275
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
276
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
277
|
+
* resolve a single slow step on a wheel to 1.
|
278
|
+
*
|
279
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
280
|
+
* get the crazy differences between browsers, but at least it'll be in
|
281
|
+
* pixels!
|
282
|
+
*
|
283
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
284
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
285
|
+
* This matches the newer 'wheel' event.
|
286
|
+
*
|
287
|
+
* Why are there spinX, spinY (or pixels)?
|
288
|
+
*
|
289
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
290
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
291
|
+
*
|
292
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
293
|
+
*
|
294
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
295
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
296
|
+
* you know.
|
297
|
+
*
|
298
|
+
* Implementation info:
|
299
|
+
*
|
300
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
301
|
+
* average mouse:
|
302
|
+
*
|
303
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
304
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
305
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
306
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
307
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
308
|
+
*
|
309
|
+
* On the trackpad:
|
310
|
+
*
|
311
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
312
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
313
|
+
*
|
314
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
315
|
+
* also missing delta values.
|
316
|
+
*
|
317
|
+
* The 'wheel' event is more standard:
|
318
|
+
*
|
319
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
320
|
+
*
|
321
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
322
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
323
|
+
* backward compatibility with older events. Those other values help us
|
324
|
+
* better normalize spin speed. Example of what the browsers provide:
|
325
|
+
*
|
326
|
+
* | event.wheelDelta | event.detail
|
327
|
+
* ------------------+------------------+--------------
|
328
|
+
* Safari v5/OS X | -120 | 0
|
329
|
+
* Safari v5/Win7 | -120 | 0
|
330
|
+
* Chrome v17/OS X | -120 | 0
|
331
|
+
* Chrome v17/Win7 | -120 | 0
|
332
|
+
* IE9/Win7 | -120 | undefined
|
333
|
+
* Firefox v4/OS X | undefined | 1
|
334
|
+
* Firefox v4/Win7 | undefined | 3
|
335
|
+
*
|
336
|
+
*/
|
337
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
338
|
+
var sX = 0, sY = 0, // spinX, spinY
|
339
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
340
|
+
|
341
|
+
// Legacy
|
342
|
+
if ('detail' in event) { sY = event.detail; }
|
343
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
344
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
345
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
346
|
+
|
347
|
+
// side scrolling on FF with DOMMouseScroll
|
348
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
349
|
+
sX = sY;
|
350
|
+
sY = 0;
|
351
|
+
}
|
352
|
+
|
353
|
+
pX = sX * PIXEL_STEP;
|
354
|
+
pY = sY * PIXEL_STEP;
|
355
|
+
|
356
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
357
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
358
|
+
|
359
|
+
if ((pX || pY) && event.deltaMode) {
|
360
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
361
|
+
pX *= LINE_HEIGHT;
|
362
|
+
pY *= LINE_HEIGHT;
|
363
|
+
} else { // delta in PAGE units
|
364
|
+
pX *= PAGE_HEIGHT;
|
365
|
+
pY *= PAGE_HEIGHT;
|
366
|
+
}
|
367
|
+
}
|
368
|
+
|
369
|
+
// Fall-back if spin cannot be determined
|
370
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
371
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
372
|
+
|
373
|
+
return { spinX : sX,
|
374
|
+
spinY : sY,
|
375
|
+
pixelX : pX,
|
376
|
+
pixelY : pY };
|
377
|
+
}
|
378
|
+
|
379
|
+
|
380
|
+
/**
|
381
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
382
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
383
|
+
* 'wheel' event, making spin speed determination impossible.
|
384
|
+
*/
|
385
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
386
|
+
return (UserAgent_DEPRECATED.firefox())
|
387
|
+
? 'DOMMouseScroll'
|
388
|
+
: (isEventSupported('wheel'))
|
389
|
+
? 'wheel'
|
390
|
+
: 'mousewheel';
|
391
|
+
};
|
392
|
+
|
393
|
+
module.exports = normalizeWheel;
|
394
|
+
|
395
|
+
|
396
|
+
/***/ }),
|
397
|
+
|
398
|
+
/***/ 5153:
|
399
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
400
|
+
|
401
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
402
|
+
/* harmony export */ "default": () => (/* binding */ _toConsumableArray)
|
403
|
+
/* harmony export */ });
|
404
|
+
/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3492);
|
405
|
+
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4430);
|
406
|
+
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7985);
|
407
|
+
/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2880);
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
function _toConsumableArray(arr) {
|
413
|
+
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
414
|
+
}
|
415
|
+
|
416
|
+
/***/ }),
|
417
|
+
|
418
|
+
/***/ 5166:
|
419
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
420
|
+
|
421
|
+
var x = (y) => {
|
422
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
423
|
+
}
|
424
|
+
var y = (x) => (() => (x))
|
425
|
+
module.exports = x({ ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName) });
|
426
|
+
|
427
|
+
/***/ }),
|
428
|
+
|
429
|
+
/***/ 5286:
|
430
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
431
|
+
|
432
|
+
var x = (y) => {
|
433
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
434
|
+
}
|
435
|
+
var y = (x) => (() => (x))
|
436
|
+
module.exports = x({ ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render) });
|
437
|
+
|
438
|
+
/***/ }),
|
439
|
+
|
440
|
+
/***/ 6284:
|
441
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
442
|
+
|
443
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
444
|
+
/* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
|
445
|
+
/* harmony export */ });
|
446
|
+
function _arrayLikeToArray(arr, len) {
|
447
|
+
if (len == null || len > arr.length) len = arr.length;
|
448
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
449
|
+
return arr2;
|
450
|
+
}
|
451
|
+
|
452
|
+
/***/ }),
|
453
|
+
|
454
|
+
/***/ 7416:
|
69
455
|
/***/ ((module) => {
|
70
456
|
|
71
457
|
/**
|
@@ -347,269 +733,77 @@ var UserAgent_DEPRECATED = {
|
|
347
733
|
ipad: function() {
|
348
734
|
return _populate() || _ipad;
|
349
735
|
}
|
350
|
-
};
|
351
|
-
|
352
|
-
module.exports = UserAgent_DEPRECATED;
|
353
|
-
|
354
|
-
|
355
|
-
/***/ }),
|
356
|
-
|
357
|
-
/***/ 3541:
|
358
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
359
|
-
|
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
|
-
}
|
736
|
+
};
|
421
737
|
|
422
|
-
module.exports =
|
738
|
+
module.exports = UserAgent_DEPRECATED;
|
423
739
|
|
424
740
|
|
425
741
|
/***/ }),
|
426
742
|
|
427
|
-
/***/
|
428
|
-
/***/ ((
|
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
|
-
*/
|
743
|
+
/***/ 7545:
|
744
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
441
745
|
|
746
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
747
|
+
/* harmony export */ "default": () => (/* binding */ _typeof)
|
748
|
+
/* harmony export */ });
|
749
|
+
function _typeof(o) {
|
750
|
+
"@babel/helpers - typeof";
|
442
751
|
|
752
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
753
|
+
return typeof o;
|
754
|
+
} : function (o) {
|
755
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
756
|
+
}, _typeof(o);
|
757
|
+
}
|
443
758
|
|
444
|
-
|
759
|
+
/***/ }),
|
445
760
|
|
446
|
-
|
761
|
+
/***/ 7985:
|
762
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
447
763
|
|
764
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
765
|
+
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
766
|
+
/* harmony export */ });
|
767
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6284);
|
448
768
|
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
var
|
769
|
+
function _unsupportedIterableToArray(o, minLen) {
|
770
|
+
if (!o) return;
|
771
|
+
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
772
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
773
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
774
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
775
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
776
|
+
}
|
453
777
|
|
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
|
778
|
+
/***/ }),
|
557
779
|
|
558
|
-
|
559
|
-
|
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; }
|
780
|
+
/***/ 8283:
|
781
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
563
782
|
|
564
|
-
|
565
|
-
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
566
|
-
sX = sY;
|
567
|
-
sY = 0;
|
568
|
-
}
|
783
|
+
module.exports = __webpack_require__(5022);
|
569
784
|
|
570
|
-
pX = sX * PIXEL_STEP;
|
571
|
-
pY = sY * PIXEL_STEP;
|
572
785
|
|
573
|
-
|
574
|
-
if ('deltaX' in event) { pX = event.deltaX; }
|
786
|
+
/***/ }),
|
575
787
|
|
576
|
-
|
577
|
-
|
578
|
-
pX *= LINE_HEIGHT;
|
579
|
-
pY *= LINE_HEIGHT;
|
580
|
-
} else { // delta in PAGE units
|
581
|
-
pX *= PAGE_HEIGHT;
|
582
|
-
pY *= PAGE_HEIGHT;
|
583
|
-
}
|
584
|
-
}
|
788
|
+
/***/ 9824:
|
789
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
585
790
|
|
586
|
-
|
587
|
-
|
588
|
-
|
791
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
792
|
+
/* harmony export */ "default": () => (/* binding */ toPrimitive)
|
793
|
+
/* harmony export */ });
|
794
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7545);
|
589
795
|
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
796
|
+
function toPrimitive(t, r) {
|
797
|
+
if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
|
798
|
+
var e = t[Symbol.toPrimitive];
|
799
|
+
if (void 0 !== e) {
|
800
|
+
var i = e.call(t, r || "default");
|
801
|
+
if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
|
802
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
803
|
+
}
|
804
|
+
return ("string" === r ? String : Number)(t);
|
594
805
|
}
|
595
806
|
|
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;
|
611
|
-
|
612
|
-
|
613
807
|
/***/ })
|
614
808
|
|
615
809
|
/******/ });
|
@@ -670,8 +864,6 @@ module.exports = normalizeWheel;
|
|
670
864
|
/******/
|
671
865
|
/************************************************************************/
|
672
866
|
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
867
|
|
676
868
|
// EXPORTS
|
677
869
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -684,7 +876,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
684
876
|
overflowTitle: () => (/* reexport */ external_overflow_title_namespaceObject.overflowTitle)
|
685
877
|
});
|
686
878
|
|
687
|
-
;//
|
879
|
+
;// ../../packages/directives/src/clickoutside.ts
|
688
880
|
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
881
|
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
882
|
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,21 +1002,15 @@ ClickOutside.install = function (app) {
|
|
810
1002
|
app.directive('bkTooltips', ClickOutside);
|
811
1003
|
};
|
812
1004
|
/* harmony default export */ const clickoutside = (ClickOutside);
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
}
|
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
|
1005
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
1006
|
+
var esm_typeof = __webpack_require__(7545);
|
1007
|
+
;// external "../plugin-popover"
|
1008
|
+
var x = (y) => {
|
1009
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1010
|
+
}
|
1011
|
+
var y = (x) => (() => (x))
|
1012
|
+
const plugin_popover_namespaceObject = x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
|
1013
|
+
;// ../../packages/directives/src/ellipsis.ts
|
828
1014
|
|
829
1015
|
/*
|
830
1016
|
* Tencent is pleased to support the open source community by making
|
@@ -857,7 +1043,7 @@ var resolveOptions = function resolveOptions(el, binding) {
|
|
857
1043
|
content: '',
|
858
1044
|
target: el
|
859
1045
|
};
|
860
|
-
if (
|
1046
|
+
if ((0,esm_typeof["default"])(binding) === 'object') {
|
861
1047
|
Object.assign(options, binding);
|
862
1048
|
if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
|
863
1049
|
Object.assign(options, binding.popoverOption);
|
@@ -935,9 +1121,9 @@ var ellipsis = {
|
|
935
1121
|
};
|
936
1122
|
/* harmony default export */ const src_ellipsis = (ellipsis);
|
937
1123
|
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
938
|
-
var normalize_wheel = __webpack_require__(
|
1124
|
+
var normalize_wheel = __webpack_require__(8283);
|
939
1125
|
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
940
|
-
;//
|
1126
|
+
;// ../../packages/directives/src/mousewheel.ts
|
941
1127
|
/*
|
942
1128
|
* Tencent is pleased to support the open source community by making
|
943
1129
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -979,96 +1165,26 @@ var mousewheel = {
|
|
979
1165
|
}
|
980
1166
|
};
|
981
1167
|
/* harmony default export */ const src_mousewheel = (mousewheel);
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
}
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
function toPropertyKey(t) {
|
998
|
-
var i = toPrimitive(t, "string");
|
999
|
-
return "symbol" == _typeof(i) ? i : String(i);
|
1000
|
-
}
|
1001
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1002
|
-
|
1003
|
-
function _defineProperty(obj, key, value) {
|
1004
|
-
key = toPropertyKey(key);
|
1005
|
-
if (key in obj) {
|
1006
|
-
Object.defineProperty(obj, key, {
|
1007
|
-
value: value,
|
1008
|
-
enumerable: true,
|
1009
|
-
configurable: true,
|
1010
|
-
writable: true
|
1011
|
-
});
|
1012
|
-
} else {
|
1013
|
-
obj[key] = value;
|
1014
|
-
}
|
1015
|
-
return obj;
|
1016
|
-
}
|
1017
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1018
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
1019
|
-
if (len == null || len > arr.length) len = arr.length;
|
1020
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1021
|
-
return arr2;
|
1022
|
-
}
|
1023
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1024
|
-
|
1025
|
-
function _arrayWithoutHoles(arr) {
|
1026
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
1027
|
-
}
|
1028
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1029
|
-
function _iterableToArray(iter) {
|
1030
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1031
|
-
}
|
1032
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1033
|
-
|
1034
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
1035
|
-
if (!o) return;
|
1036
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1037
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1038
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1039
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
1040
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1041
|
-
}
|
1042
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1043
|
-
function _nonIterableSpread() {
|
1044
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1045
|
-
}
|
1046
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
function _toConsumableArray(arr) {
|
1052
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1053
|
-
}
|
1054
|
-
;// CONCATENATED MODULE: external "vue"
|
1055
|
-
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1056
|
-
var external_vue_y = x => () => x
|
1057
|
-
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 });
|
1058
|
-
;// CONCATENATED MODULE: external "../shared"
|
1059
|
-
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1060
|
-
var shared_y = x => () => x
|
1061
|
-
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 });
|
1062
|
-
;// CONCATENATED MODULE: external "@popperjs/core"
|
1063
|
-
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1064
|
-
var core_y = x => () => x
|
1065
|
-
const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
|
1066
|
-
;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
|
1168
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1169
|
+
var defineProperty = __webpack_require__(4586);
|
1170
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1171
|
+
var toConsumableArray = __webpack_require__(5153);
|
1172
|
+
// EXTERNAL MODULE: external "vue"
|
1173
|
+
var external_vue_ = __webpack_require__(5286);
|
1174
|
+
// EXTERNAL MODULE: external "../shared"
|
1175
|
+
var shared_ = __webpack_require__(5166);
|
1176
|
+
;// external "@popperjs/core"
|
1177
|
+
var core_x = (y) => {
|
1178
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1179
|
+
}
|
1180
|
+
var core_y = (x) => (() => (x))
|
1181
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
1182
|
+
;// ../../packages/directives/src/tooltips.ts
|
1067
1183
|
|
1068
1184
|
|
1069
1185
|
|
1070
1186
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
1071
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
1187
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,defineProperty["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1072
1188
|
/*
|
1073
1189
|
* Tencent is pleased to support the open source community by making
|
1074
1190
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1106,7 +1222,7 @@ var tooltips = {
|
|
1106
1222
|
var popper = renderContent(opts);
|
1107
1223
|
var delayTimeout = null;
|
1108
1224
|
if (showOnInit) {
|
1109
|
-
(0,
|
1225
|
+
(0,external_vue_.nextTick)(function () {
|
1110
1226
|
show(el);
|
1111
1227
|
});
|
1112
1228
|
}
|
@@ -1193,7 +1309,7 @@ function initOptions() {
|
|
1193
1309
|
*/
|
1194
1310
|
function getOpts(binding) {
|
1195
1311
|
var opts = initOptions();
|
1196
|
-
if (
|
1312
|
+
if ((0,esm_typeof["default"])(binding.value) === 'object') {
|
1197
1313
|
Object.assign(opts, binding.value);
|
1198
1314
|
} else {
|
1199
1315
|
opts.content = binding.value;
|
@@ -1211,8 +1327,8 @@ function renderContext(value, content) {
|
|
1211
1327
|
} else {
|
1212
1328
|
// 如果 content 是 Vue 组件的实例,则挂载它
|
1213
1329
|
var container = document.createElement('div');
|
1214
|
-
var vnode = (0,
|
1215
|
-
(0,
|
1330
|
+
var vnode = (0,external_vue_.h)(value);
|
1331
|
+
(0,external_vue_.render)(vnode, container);
|
1216
1332
|
content.innerHTML = container.innerHTML;
|
1217
1333
|
}
|
1218
1334
|
}
|
@@ -1222,10 +1338,10 @@ function renderContent(opts) {
|
|
1222
1338
|
theme = opts.theme,
|
1223
1339
|
extCls = opts.extCls;
|
1224
1340
|
var isLight = theme === 'light';
|
1225
|
-
var zIndex =
|
1341
|
+
var zIndex = shared_.bkZIndexManager.getPopperIndex();
|
1226
1342
|
var content = document.createElement('div');
|
1227
1343
|
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
1228
|
-
content.className = "".concat((0,
|
1344
|
+
content.className = "".concat((0,shared_.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
|
1229
1345
|
content.innerText = value;
|
1230
1346
|
content.style.zIndex = String(zIndex);
|
1231
1347
|
renderContext(value, content);
|
@@ -1242,7 +1358,7 @@ function renderContent(opts) {
|
|
1242
1358
|
function renderArrow() {
|
1243
1359
|
var arrow = document.createElement('div');
|
1244
1360
|
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
1245
|
-
arrow.className = (0,
|
1361
|
+
arrow.className = (0,shared_.resolveClassName)('popper-arrow', prefix);
|
1246
1362
|
arrow.setAttribute('data-popper-arrow', '');
|
1247
1363
|
return arrow;
|
1248
1364
|
}
|
@@ -1270,7 +1386,7 @@ function createPopperInstance(el, popper) {
|
|
1270
1386
|
options: {
|
1271
1387
|
padding: 5
|
1272
1388
|
}
|
1273
|
-
}].concat(
|
1389
|
+
}].concat((0,toConsumableArray["default"])(sameWidth ? [{
|
1274
1390
|
name: 'sameWidth',
|
1275
1391
|
enabled: true,
|
1276
1392
|
phase: 'beforeWrite',
|
@@ -1325,7 +1441,7 @@ function show(el) {
|
|
1325
1441
|
// Enable the event listeners
|
1326
1442
|
popperInstance.setOptions(function (options) {
|
1327
1443
|
return _objectSpread(_objectSpread({}, options), {}, {
|
1328
|
-
modifiers: [].concat(
|
1444
|
+
modifiers: [].concat((0,toConsumableArray["default"])(options.modifiers), (0,toConsumableArray["default"])(modifiers), [{
|
1329
1445
|
name: 'eventListeners',
|
1330
1446
|
enabled: true
|
1331
1447
|
}])
|
@@ -1355,15 +1471,19 @@ function hide(el) {
|
|
1355
1471
|
}
|
1356
1472
|
}
|
1357
1473
|
/* harmony default export */ const src_tooltips = (tooltips);
|
1358
|
-
;//
|
1359
|
-
var external_loading_x = y => {
|
1360
|
-
var
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1474
|
+
;// external "../loading"
|
1475
|
+
var external_loading_x = (y) => {
|
1476
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1477
|
+
}
|
1478
|
+
var external_loading_y = (x) => (() => (x))
|
1479
|
+
const external_loading_namespaceObject = external_loading_x({ ["vBkloading"]: () => (__WEBPACK_EXTERNAL_MODULE__loading_4d683b23__.vBkloading) });
|
1480
|
+
;// external "../overflow-title"
|
1481
|
+
var external_overflow_title_x = (y) => {
|
1482
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1483
|
+
}
|
1484
|
+
var external_overflow_title_y = (x) => (() => (x))
|
1485
|
+
const external_overflow_title_namespaceObject = external_overflow_title_x({ ["overflowTitle"]: () => (__WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__.overflowTitle) });
|
1486
|
+
;// ../../packages/directives/src/index.ts
|
1367
1487
|
/*
|
1368
1488
|
* Tencent is pleased to support the open source community by making
|
1369
1489
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1396,8 +1516,6 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ ["ov
|
|
1396
1516
|
|
1397
1517
|
|
1398
1518
|
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
1399
|
-
})();
|
1400
|
-
|
1401
1519
|
var __webpack_exports__bkEllipsis = __webpack_exports__.bkEllipsis;
|
1402
1520
|
var __webpack_exports__bkEllipsisInstance = __webpack_exports__.bkEllipsisInstance;
|
1403
1521
|
var __webpack_exports__bkLoading = __webpack_exports__.bkLoading;
|