bkui-vue 2.0.2-beta.1 → 2.0.2-beta.3
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 +22 -30
- package/lib/alert/index.js +22 -30
- package/lib/animate-number/index.js +10 -14
- package/lib/backtop/index.js +22 -32
- package/lib/badge/index.js +18 -24
- package/lib/breadcrumb/index.js +23 -31
- package/lib/button/index.js +26 -36
- package/lib/card/index.js +33 -47
- package/lib/cascader/index.js +619 -649
- package/lib/checkbox/index.js +34 -44
- package/lib/code-diff/index.js +79 -83
- package/lib/collapse/index.js +33 -39
- package/lib/collapse-transition/index.js +14 -20
- package/lib/color-picker/index.js +596 -612
- package/lib/config-provider/index.js +26 -34
- package/lib/container/index.js +21 -27
- package/lib/date-picker/index.js +622 -644
- package/lib/dialog/index.js +87 -101
- package/lib/directives/index.js +429 -437
- package/lib/divider/index.js +15 -21
- package/lib/dropdown/index.js +31 -43
- package/lib/exception/index.js +49 -55
- package/lib/fixed-navbar/index.js +14 -20
- package/lib/form/index.js +610 -634
- package/lib/icon/angle-double-down-line.js +12 -14
- package/lib/icon/angle-double-left-line.js +12 -14
- package/lib/icon/angle-double-left.js +12 -14
- package/lib/icon/angle-double-right-line.js +12 -14
- package/lib/icon/angle-double-right.js +12 -14
- package/lib/icon/angle-double-up-line.js +12 -14
- package/lib/icon/angle-down-fill.js +12 -14
- package/lib/icon/angle-down-line.js +12 -14
- package/lib/icon/angle-down.js +12 -14
- package/lib/icon/angle-left.js +12 -14
- package/lib/icon/angle-right.js +12 -14
- package/lib/icon/angle-up-fill.js +12 -14
- package/lib/icon/angle-up.js +12 -14
- package/lib/icon/archive-fill.js +12 -14
- package/lib/icon/arrows-left.js +12 -14
- package/lib/icon/arrows-right.js +12 -14
- package/lib/icon/assistant.js +12 -14
- package/lib/icon/audio-fill.js +12 -14
- package/lib/icon/bk.js +12 -14
- package/lib/icon/circle.js +12 -14
- package/lib/icon/close-line.js +12 -14
- package/lib/icon/close.js +12 -14
- package/lib/icon/code.js +12 -14
- package/lib/icon/cog-shape.js +12 -14
- package/lib/icon/collapse-left.js +12 -14
- package/lib/icon/copy-shape.js +12 -14
- package/lib/icon/copy.js +12 -14
- package/lib/icon/data-shape.js +12 -14
- package/lib/icon/del.js +12 -14
- package/lib/icon/doc-fill.js +12 -14
- package/lib/icon/done.js +12 -14
- package/lib/icon/down-shape.js +12 -14
- package/lib/icon/down-small.js +12 -14
- package/lib/icon/edit-line.js +12 -14
- package/lib/icon/ellipsis.js +12 -14
- package/lib/icon/enlarge-line.js +12 -14
- package/lib/icon/error.js +12 -14
- package/lib/icon/excel-fill.js +12 -14
- package/lib/icon/exclamation-circle-shape.js +12 -14
- package/lib/icon/eye.js +12 -14
- package/lib/icon/filliscreen-line.js +12 -14
- package/lib/icon/fix-line.js +12 -14
- package/lib/icon/fix-shape.js +12 -14
- package/lib/icon/folder-open.js +12 -14
- package/lib/icon/folder-shape-open.js +12 -14
- package/lib/icon/folder-shape.js +12 -14
- package/lib/icon/folder.js +12 -14
- package/lib/icon/funnel.js +12 -14
- package/lib/icon/grag-fill.js +12 -14
- package/lib/icon/help-document-fill.js +12 -14
- package/lib/icon/help-fill.js +12 -14
- package/lib/icon/help.js +12 -14
- package/lib/icon/image-fill.js +12 -14
- package/lib/icon/img-error.js +12 -14
- package/lib/icon/img-placehoulder.js +12 -14
- package/lib/icon/info-line.js +12 -14
- package/lib/icon/info.js +12 -14
- package/lib/icon/left-shape.js +12 -14
- package/lib/icon/left-turn-line.js +12 -14
- package/lib/icon/loading.js +12 -14
- package/lib/icon/narrow-line.js +12 -14
- package/lib/icon/original.js +12 -14
- package/lib/icon/pdf-fill.js +12 -14
- package/lib/icon/play-shape.js +12 -14
- package/lib/icon/plus.js +12 -14
- package/lib/icon/ppt-fill.js +12 -14
- package/lib/icon/qq.js +12 -14
- package/lib/icon/right-shape.js +12 -14
- package/lib/icon/right-turn-line.js +12 -14
- package/lib/icon/search.js +12 -14
- package/lib/icon/share.js +12 -14
- package/lib/icon/spinner.js +12 -14
- package/lib/icon/success.js +12 -14
- package/lib/icon/switcher-loading.js +12 -14
- package/lib/icon/text-all.js +12 -14
- package/lib/icon/text-file.js +12 -14
- package/lib/icon/text-fill.js +12 -14
- package/lib/icon/transfer.js +12 -14
- package/lib/icon/tree-application-shape.js +12 -14
- package/lib/icon/unfull-screen.js +12 -14
- package/lib/icon/unvisible.js +12 -14
- package/lib/icon/up-shape.js +12 -14
- package/lib/icon/upload.js +12 -14
- package/lib/icon/video-fill.js +12 -14
- package/lib/icon/warn.js +12 -14
- package/lib/icon/weixin-pro.js +12 -14
- package/lib/icon/weixin.js +12 -14
- package/lib/image/index.js +324 -340
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +87 -101
- package/lib/input/index.js +321 -333
- package/lib/link/index.js +18 -26
- package/lib/loading/index.js +19 -25
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.js +32 -40
- package/lib/message/index.js +41 -47
- package/lib/modal/index.js +29 -39
- package/lib/navigation/index.js +19 -27
- package/lib/notify/index.js +27 -37
- package/lib/overflow-title/index.js +29 -41
- package/lib/pagination/index.js +46 -62
- package/lib/plugin-popover/index.js +5 -7
- package/lib/plugins/index.js +5 -7
- package/lib/pop-confirm/index.js +33 -49
- package/lib/popover/index.js +345 -361
- package/lib/popover2/index.js +10 -14
- package/lib/process/index.js +74 -78
- package/lib/progress/index.js +20 -26
- package/lib/radio/index.js +31 -39
- package/lib/rate/index.js +19 -25
- package/lib/resize-layout/index.js +22 -30
- package/lib/scrollbar/index.js +25 -25
- package/lib/search-select/index.js +513 -537
- package/lib/select/index.js +547 -591
- package/lib/shared/index.js +49 -57
- package/lib/sideslider/index.js +79 -89
- package/lib/slider/index.js +75 -85
- package/lib/steps/index.js +72 -78
- package/lib/swiper/index.js +18 -24
- package/lib/switcher/index.js +22 -30
- package/lib/tab/index.js +321 -335
- package/lib/table/index.js +606 -666
- package/lib/table-column/index.js +9 -13
- package/lib/tag/index.js +26 -36
- package/lib/tag-input/index.js +352 -380
- package/lib/time-picker/index.js +9 -13
- package/lib/timeline/index.js +15 -21
- package/lib/transfer/index.js +40 -56
- package/lib/tree/index.js +76 -100
- package/lib/upload/index.js +562 -574
- package/lib/virtual-render/index.js +43 -55
- package/package.json +1 -1
package/lib/tag-input/index.js
CHANGED
@@ -18,7 +18,15 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
|
18
18
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_has_e9e453be__ from "lodash/has";
|
19
19
|
/******/ var __webpack_modules__ = ({
|
20
20
|
|
21
|
-
/***/
|
21
|
+
/***/ 2439:
|
22
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
23
|
+
|
24
|
+
module.exports = __webpack_require__(2527);
|
25
|
+
|
26
|
+
|
27
|
+
/***/ }),
|
28
|
+
|
29
|
+
/***/ 7430:
|
22
30
|
/***/ ((module) => {
|
23
31
|
|
24
32
|
/**
|
@@ -68,265 +76,7 @@ module.exports = ExecutionEnvironment;
|
|
68
76
|
|
69
77
|
/***/ }),
|
70
78
|
|
71
|
-
/***/
|
72
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
73
|
-
|
74
|
-
/**
|
75
|
-
* Copyright 2013-2015, Facebook, Inc.
|
76
|
-
* All rights reserved.
|
77
|
-
*
|
78
|
-
* This source code is licensed under the BSD-style license found in the
|
79
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
80
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
81
|
-
*
|
82
|
-
* @providesModule isEventSupported
|
83
|
-
*/
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
var ExecutionEnvironment = __webpack_require__(1043);
|
88
|
-
|
89
|
-
var useHasFeature;
|
90
|
-
if (ExecutionEnvironment.canUseDOM) {
|
91
|
-
useHasFeature =
|
92
|
-
document.implementation &&
|
93
|
-
document.implementation.hasFeature &&
|
94
|
-
// always returns true in newer browsers as per the standard.
|
95
|
-
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
96
|
-
document.implementation.hasFeature('', '') !== true;
|
97
|
-
}
|
98
|
-
|
99
|
-
/**
|
100
|
-
* Checks if an event is supported in the current execution environment.
|
101
|
-
*
|
102
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
103
|
-
* `reset`, `load`, `error`, and `select`.
|
104
|
-
*
|
105
|
-
* Borrows from Modernizr.
|
106
|
-
*
|
107
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
108
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
109
|
-
* @return {boolean} True if the event is supported.
|
110
|
-
* @internal
|
111
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
112
|
-
*/
|
113
|
-
function isEventSupported(eventNameSuffix, capture) {
|
114
|
-
if (!ExecutionEnvironment.canUseDOM ||
|
115
|
-
capture && !('addEventListener' in document)) {
|
116
|
-
return false;
|
117
|
-
}
|
118
|
-
|
119
|
-
var eventName = 'on' + eventNameSuffix;
|
120
|
-
var isSupported = eventName in document;
|
121
|
-
|
122
|
-
if (!isSupported) {
|
123
|
-
var element = document.createElement('div');
|
124
|
-
element.setAttribute(eventName, 'return;');
|
125
|
-
isSupported = typeof element[eventName] === 'function';
|
126
|
-
}
|
127
|
-
|
128
|
-
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
129
|
-
// This is the only way to test support for the `wheel` event in IE9+.
|
130
|
-
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
131
|
-
}
|
132
|
-
|
133
|
-
return isSupported;
|
134
|
-
}
|
135
|
-
|
136
|
-
module.exports = isEventSupported;
|
137
|
-
|
138
|
-
|
139
|
-
/***/ }),
|
140
|
-
|
141
|
-
/***/ 5022:
|
142
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
143
|
-
|
144
|
-
/**
|
145
|
-
* Copyright (c) 2015, Facebook, Inc.
|
146
|
-
* All rights reserved.
|
147
|
-
*
|
148
|
-
* This source code is licensed under the BSD-style license found in the
|
149
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
150
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
151
|
-
*
|
152
|
-
* @providesModule normalizeWheel
|
153
|
-
* @typechecks
|
154
|
-
*/
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
159
|
-
|
160
|
-
var isEventSupported = __webpack_require__(2586);
|
161
|
-
|
162
|
-
|
163
|
-
// Reasonable defaults
|
164
|
-
var PIXEL_STEP = 10;
|
165
|
-
var LINE_HEIGHT = 40;
|
166
|
-
var PAGE_HEIGHT = 800;
|
167
|
-
|
168
|
-
/**
|
169
|
-
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
170
|
-
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
171
|
-
* your questions.
|
172
|
-
*
|
173
|
-
* If you need to react to the mouse wheel in a predictable way, this code is
|
174
|
-
* like your bestest friend. * hugs *
|
175
|
-
*
|
176
|
-
* As of today, there are 4 DOM event types you can listen to:
|
177
|
-
*
|
178
|
-
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
179
|
-
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
180
|
-
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
181
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
182
|
-
*
|
183
|
-
* So what to do? The is the best:
|
184
|
-
*
|
185
|
-
* normalizeWheel.getEventType();
|
186
|
-
*
|
187
|
-
* In your event callback, use this code to get sane interpretation of the
|
188
|
-
* deltas. This code will return an object with properties:
|
189
|
-
*
|
190
|
-
* spinX -- normalized spin speed (use for zoom) - x plane
|
191
|
-
* spinY -- " - y plane
|
192
|
-
* pixelX -- normalized distance (to pixels) - x plane
|
193
|
-
* pixelY -- " - y plane
|
194
|
-
*
|
195
|
-
* Wheel values are provided by the browser assuming you are using the wheel to
|
196
|
-
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
197
|
-
* significantly on different platforms and browsers, forgetting that you can
|
198
|
-
* scroll at different speeds. Some devices (like trackpads) emit more events
|
199
|
-
* at smaller increments with fine granularity, and some emit massive jumps with
|
200
|
-
* linear speed or acceleration.
|
201
|
-
*
|
202
|
-
* This code does its best to normalize the deltas for you:
|
203
|
-
*
|
204
|
-
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
205
|
-
* dragged). This is super useful for zoom support where you want to
|
206
|
-
* throw away the chunky scroll steps on the PC and make those equal to
|
207
|
-
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
208
|
-
* resolve a single slow step on a wheel to 1.
|
209
|
-
*
|
210
|
-
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
211
|
-
* get the crazy differences between browsers, but at least it'll be in
|
212
|
-
* pixels!
|
213
|
-
*
|
214
|
-
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
215
|
-
* should translate to positive value zooming IN, negative zooming OUT.
|
216
|
-
* This matches the newer 'wheel' event.
|
217
|
-
*
|
218
|
-
* Why are there spinX, spinY (or pixels)?
|
219
|
-
*
|
220
|
-
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
221
|
-
* with a mouse. It results in side-scrolling in the browser by default.
|
222
|
-
*
|
223
|
-
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
224
|
-
*
|
225
|
-
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
226
|
-
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
227
|
-
* you know.
|
228
|
-
*
|
229
|
-
* Implementation info:
|
230
|
-
*
|
231
|
-
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
232
|
-
* average mouse:
|
233
|
-
*
|
234
|
-
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
235
|
-
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
236
|
-
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
237
|
-
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
238
|
-
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
239
|
-
*
|
240
|
-
* On the trackpad:
|
241
|
-
*
|
242
|
-
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
243
|
-
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
244
|
-
*
|
245
|
-
* On other/older browsers.. it's more complicated as there can be multiple and
|
246
|
-
* also missing delta values.
|
247
|
-
*
|
248
|
-
* The 'wheel' event is more standard:
|
249
|
-
*
|
250
|
-
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
251
|
-
*
|
252
|
-
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
253
|
-
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
254
|
-
* backward compatibility with older events. Those other values help us
|
255
|
-
* better normalize spin speed. Example of what the browsers provide:
|
256
|
-
*
|
257
|
-
* | event.wheelDelta | event.detail
|
258
|
-
* ------------------+------------------+--------------
|
259
|
-
* Safari v5/OS X | -120 | 0
|
260
|
-
* Safari v5/Win7 | -120 | 0
|
261
|
-
* Chrome v17/OS X | -120 | 0
|
262
|
-
* Chrome v17/Win7 | -120 | 0
|
263
|
-
* IE9/Win7 | -120 | undefined
|
264
|
-
* Firefox v4/OS X | undefined | 1
|
265
|
-
* Firefox v4/Win7 | undefined | 3
|
266
|
-
*
|
267
|
-
*/
|
268
|
-
function normalizeWheel(/*object*/ event) /*object*/ {
|
269
|
-
var sX = 0, sY = 0, // spinX, spinY
|
270
|
-
pX = 0, pY = 0; // pixelX, pixelY
|
271
|
-
|
272
|
-
// Legacy
|
273
|
-
if ('detail' in event) { sY = event.detail; }
|
274
|
-
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
275
|
-
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
276
|
-
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
277
|
-
|
278
|
-
// side scrolling on FF with DOMMouseScroll
|
279
|
-
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
280
|
-
sX = sY;
|
281
|
-
sY = 0;
|
282
|
-
}
|
283
|
-
|
284
|
-
pX = sX * PIXEL_STEP;
|
285
|
-
pY = sY * PIXEL_STEP;
|
286
|
-
|
287
|
-
if ('deltaY' in event) { pY = event.deltaY; }
|
288
|
-
if ('deltaX' in event) { pX = event.deltaX; }
|
289
|
-
|
290
|
-
if ((pX || pY) && event.deltaMode) {
|
291
|
-
if (event.deltaMode == 1) { // delta in LINE units
|
292
|
-
pX *= LINE_HEIGHT;
|
293
|
-
pY *= LINE_HEIGHT;
|
294
|
-
} else { // delta in PAGE units
|
295
|
-
pX *= PAGE_HEIGHT;
|
296
|
-
pY *= PAGE_HEIGHT;
|
297
|
-
}
|
298
|
-
}
|
299
|
-
|
300
|
-
// Fall-back if spin cannot be determined
|
301
|
-
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
302
|
-
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
303
|
-
|
304
|
-
return { spinX : sX,
|
305
|
-
spinY : sY,
|
306
|
-
pixelX : pX,
|
307
|
-
pixelY : pY };
|
308
|
-
}
|
309
|
-
|
310
|
-
|
311
|
-
/**
|
312
|
-
* The best combination if you prefer spinX + spinY normalization. It favors
|
313
|
-
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
314
|
-
* 'wheel' event, making spin speed determination impossible.
|
315
|
-
*/
|
316
|
-
normalizeWheel.getEventType = function() /*string*/ {
|
317
|
-
return (UserAgent_DEPRECATED.firefox())
|
318
|
-
? 'DOMMouseScroll'
|
319
|
-
: (isEventSupported('wheel'))
|
320
|
-
? 'wheel'
|
321
|
-
: 'mousewheel';
|
322
|
-
};
|
323
|
-
|
324
|
-
module.exports = normalizeWheel;
|
325
|
-
|
326
|
-
|
327
|
-
/***/ }),
|
328
|
-
|
329
|
-
/***/ 7416:
|
79
|
+
/***/ 6377:
|
330
80
|
/***/ ((module) => {
|
331
81
|
|
332
82
|
/**
|
@@ -615,10 +365,260 @@ module.exports = UserAgent_DEPRECATED;
|
|
615
365
|
|
616
366
|
/***/ }),
|
617
367
|
|
618
|
-
/***/
|
368
|
+
/***/ 3541:
|
619
369
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
620
370
|
|
621
|
-
|
371
|
+
/**
|
372
|
+
* Copyright 2013-2015, Facebook, Inc.
|
373
|
+
* All rights reserved.
|
374
|
+
*
|
375
|
+
* This source code is licensed under the BSD-style license found in the
|
376
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
377
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
378
|
+
*
|
379
|
+
* @providesModule isEventSupported
|
380
|
+
*/
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
var ExecutionEnvironment = __webpack_require__(7430);
|
385
|
+
|
386
|
+
var useHasFeature;
|
387
|
+
if (ExecutionEnvironment.canUseDOM) {
|
388
|
+
useHasFeature =
|
389
|
+
document.implementation &&
|
390
|
+
document.implementation.hasFeature &&
|
391
|
+
// always returns true in newer browsers as per the standard.
|
392
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
393
|
+
document.implementation.hasFeature('', '') !== true;
|
394
|
+
}
|
395
|
+
|
396
|
+
/**
|
397
|
+
* Checks if an event is supported in the current execution environment.
|
398
|
+
*
|
399
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
400
|
+
* `reset`, `load`, `error`, and `select`.
|
401
|
+
*
|
402
|
+
* Borrows from Modernizr.
|
403
|
+
*
|
404
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
405
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
406
|
+
* @return {boolean} True if the event is supported.
|
407
|
+
* @internal
|
408
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
409
|
+
*/
|
410
|
+
function isEventSupported(eventNameSuffix, capture) {
|
411
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
412
|
+
capture && !('addEventListener' in document)) {
|
413
|
+
return false;
|
414
|
+
}
|
415
|
+
|
416
|
+
var eventName = 'on' + eventNameSuffix;
|
417
|
+
var isSupported = eventName in document;
|
418
|
+
|
419
|
+
if (!isSupported) {
|
420
|
+
var element = document.createElement('div');
|
421
|
+
element.setAttribute(eventName, 'return;');
|
422
|
+
isSupported = typeof element[eventName] === 'function';
|
423
|
+
}
|
424
|
+
|
425
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
426
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
427
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
428
|
+
}
|
429
|
+
|
430
|
+
return isSupported;
|
431
|
+
}
|
432
|
+
|
433
|
+
module.exports = isEventSupported;
|
434
|
+
|
435
|
+
|
436
|
+
/***/ }),
|
437
|
+
|
438
|
+
/***/ 2527:
|
439
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
440
|
+
|
441
|
+
/**
|
442
|
+
* Copyright (c) 2015, Facebook, Inc.
|
443
|
+
* All rights reserved.
|
444
|
+
*
|
445
|
+
* This source code is licensed under the BSD-style license found in the
|
446
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
447
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
448
|
+
*
|
449
|
+
* @providesModule normalizeWheel
|
450
|
+
* @typechecks
|
451
|
+
*/
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
var UserAgent_DEPRECATED = __webpack_require__(6377);
|
456
|
+
|
457
|
+
var isEventSupported = __webpack_require__(3541);
|
458
|
+
|
459
|
+
|
460
|
+
// Reasonable defaults
|
461
|
+
var PIXEL_STEP = 10;
|
462
|
+
var LINE_HEIGHT = 40;
|
463
|
+
var PAGE_HEIGHT = 800;
|
464
|
+
|
465
|
+
/**
|
466
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
467
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
468
|
+
* your questions.
|
469
|
+
*
|
470
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
471
|
+
* like your bestest friend. * hugs *
|
472
|
+
*
|
473
|
+
* As of today, there are 4 DOM event types you can listen to:
|
474
|
+
*
|
475
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
476
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
477
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
478
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
479
|
+
*
|
480
|
+
* So what to do? The is the best:
|
481
|
+
*
|
482
|
+
* normalizeWheel.getEventType();
|
483
|
+
*
|
484
|
+
* In your event callback, use this code to get sane interpretation of the
|
485
|
+
* deltas. This code will return an object with properties:
|
486
|
+
*
|
487
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
488
|
+
* spinY -- " - y plane
|
489
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
490
|
+
* pixelY -- " - y plane
|
491
|
+
*
|
492
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
493
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
494
|
+
* significantly on different platforms and browsers, forgetting that you can
|
495
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
496
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
497
|
+
* linear speed or acceleration.
|
498
|
+
*
|
499
|
+
* This code does its best to normalize the deltas for you:
|
500
|
+
*
|
501
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
502
|
+
* dragged). This is super useful for zoom support where you want to
|
503
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
504
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
505
|
+
* resolve a single slow step on a wheel to 1.
|
506
|
+
*
|
507
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
508
|
+
* get the crazy differences between browsers, but at least it'll be in
|
509
|
+
* pixels!
|
510
|
+
*
|
511
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
512
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
513
|
+
* This matches the newer 'wheel' event.
|
514
|
+
*
|
515
|
+
* Why are there spinX, spinY (or pixels)?
|
516
|
+
*
|
517
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
518
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
519
|
+
*
|
520
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
521
|
+
*
|
522
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
523
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
524
|
+
* you know.
|
525
|
+
*
|
526
|
+
* Implementation info:
|
527
|
+
*
|
528
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
529
|
+
* average mouse:
|
530
|
+
*
|
531
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
532
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
533
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
534
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
535
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
536
|
+
*
|
537
|
+
* On the trackpad:
|
538
|
+
*
|
539
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
540
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
541
|
+
*
|
542
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
543
|
+
* also missing delta values.
|
544
|
+
*
|
545
|
+
* The 'wheel' event is more standard:
|
546
|
+
*
|
547
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
548
|
+
*
|
549
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
550
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
551
|
+
* backward compatibility with older events. Those other values help us
|
552
|
+
* better normalize spin speed. Example of what the browsers provide:
|
553
|
+
*
|
554
|
+
* | event.wheelDelta | event.detail
|
555
|
+
* ------------------+------------------+--------------
|
556
|
+
* Safari v5/OS X | -120 | 0
|
557
|
+
* Safari v5/Win7 | -120 | 0
|
558
|
+
* Chrome v17/OS X | -120 | 0
|
559
|
+
* Chrome v17/Win7 | -120 | 0
|
560
|
+
* IE9/Win7 | -120 | undefined
|
561
|
+
* Firefox v4/OS X | undefined | 1
|
562
|
+
* Firefox v4/Win7 | undefined | 3
|
563
|
+
*
|
564
|
+
*/
|
565
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
566
|
+
var sX = 0, sY = 0, // spinX, spinY
|
567
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
568
|
+
|
569
|
+
// Legacy
|
570
|
+
if ('detail' in event) { sY = event.detail; }
|
571
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
572
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
573
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
574
|
+
|
575
|
+
// side scrolling on FF with DOMMouseScroll
|
576
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
577
|
+
sX = sY;
|
578
|
+
sY = 0;
|
579
|
+
}
|
580
|
+
|
581
|
+
pX = sX * PIXEL_STEP;
|
582
|
+
pY = sY * PIXEL_STEP;
|
583
|
+
|
584
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
585
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
586
|
+
|
587
|
+
if ((pX || pY) && event.deltaMode) {
|
588
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
589
|
+
pX *= LINE_HEIGHT;
|
590
|
+
pY *= LINE_HEIGHT;
|
591
|
+
} else { // delta in PAGE units
|
592
|
+
pX *= PAGE_HEIGHT;
|
593
|
+
pY *= PAGE_HEIGHT;
|
594
|
+
}
|
595
|
+
}
|
596
|
+
|
597
|
+
// Fall-back if spin cannot be determined
|
598
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
599
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
600
|
+
|
601
|
+
return { spinX : sX,
|
602
|
+
spinY : sY,
|
603
|
+
pixelX : pX,
|
604
|
+
pixelY : pY };
|
605
|
+
}
|
606
|
+
|
607
|
+
|
608
|
+
/**
|
609
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
610
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
611
|
+
* 'wheel' event, making spin speed determination impossible.
|
612
|
+
*/
|
613
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
614
|
+
return (UserAgent_DEPRECATED.firefox())
|
615
|
+
? 'DOMMouseScroll'
|
616
|
+
: (isEventSupported('wheel'))
|
617
|
+
? 'wheel'
|
618
|
+
: 'mousewheel';
|
619
|
+
};
|
620
|
+
|
621
|
+
module.exports = normalizeWheel;
|
622
622
|
|
623
623
|
|
624
624
|
/***/ })
|
@@ -681,6 +681,8 @@ module.exports = __webpack_require__(5022);
|
|
681
681
|
/******/
|
682
682
|
/************************************************************************/
|
683
683
|
var __webpack_exports__ = {};
|
684
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
685
|
+
(() => {
|
684
686
|
|
685
687
|
// EXPORTS
|
686
688
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -689,13 +691,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
689
691
|
useTagsOverflow: () => (/* reexport */ useTagsOverflow)
|
690
692
|
});
|
691
693
|
|
692
|
-
;// external "../shared"
|
693
|
-
var x = (y)
|
694
|
-
|
695
|
-
}
|
696
|
-
|
697
|
-
const shared_namespaceObject = x({ ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["checkOverflow"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.checkOverflow), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["useFormItem"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem), ["withInstall"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall) });
|
698
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
694
|
+
;// CONCATENATED MODULE: external "../shared"
|
695
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
696
|
+
var y = x => () => x
|
697
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["checkOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.checkOverflow, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
698
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
699
699
|
function _typeof(o) {
|
700
700
|
"@babel/helpers - typeof";
|
701
701
|
|
@@ -705,7 +705,7 @@ function _typeof(o) {
|
|
705
705
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
706
706
|
}, _typeof(o);
|
707
707
|
}
|
708
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
708
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
709
709
|
|
710
710
|
function toPrimitive(t, r) {
|
711
711
|
if ("object" != _typeof(t) || !t) return t;
|
@@ -717,14 +717,14 @@ function toPrimitive(t, r) {
|
|
717
717
|
}
|
718
718
|
return ("string" === r ? String : Number)(t);
|
719
719
|
}
|
720
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
720
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
721
721
|
|
722
722
|
|
723
723
|
function toPropertyKey(t) {
|
724
724
|
var i = toPrimitive(t, "string");
|
725
725
|
return "symbol" == _typeof(i) ? i : String(i);
|
726
726
|
}
|
727
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
727
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
728
728
|
|
729
729
|
function _defineProperty(obj, key, value) {
|
730
730
|
key = toPropertyKey(key);
|
@@ -740,22 +740,22 @@ function _defineProperty(obj, key, value) {
|
|
740
740
|
}
|
741
741
|
return obj;
|
742
742
|
}
|
743
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
743
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
744
744
|
function _arrayLikeToArray(arr, len) {
|
745
745
|
if (len == null || len > arr.length) len = arr.length;
|
746
746
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
747
747
|
return arr2;
|
748
748
|
}
|
749
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
749
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
750
750
|
|
751
751
|
function _arrayWithoutHoles(arr) {
|
752
752
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
753
753
|
}
|
754
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
754
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
755
755
|
function _iterableToArray(iter) {
|
756
756
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
757
757
|
}
|
758
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
758
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
759
759
|
|
760
760
|
function _unsupportedIterableToArray(o, minLen) {
|
761
761
|
if (!o) return;
|
@@ -765,11 +765,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
765
765
|
if (n === "Map" || n === "Set") return Array.from(o);
|
766
766
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
767
767
|
}
|
768
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
768
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
769
769
|
function _nonIterableSpread() {
|
770
770
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
771
771
|
}
|
772
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
772
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
773
773
|
|
774
774
|
|
775
775
|
|
@@ -777,13 +777,11 @@ function _nonIterableSpread() {
|
|
777
777
|
function _toConsumableArray(arr) {
|
778
778
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
779
779
|
}
|
780
|
-
;// external "vue"
|
781
|
-
var external_vue_x = (y)
|
782
|
-
|
783
|
-
}
|
784
|
-
|
785
|
-
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createTextVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["markRaw"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.markRaw), ["mergeProps"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.mergeProps), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["toRefs"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRefs), ["vModelText"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vModelText), ["vShow"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vShow), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
786
|
-
;// ../../packages/tag-input/src/common.ts
|
780
|
+
;// CONCATENATED MODULE: external "vue"
|
781
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
782
|
+
var external_vue_y = x => () => x
|
783
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["markRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.markRaw, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
784
|
+
;// CONCATENATED MODULE: ../../packages/tag-input/src/common.ts
|
787
785
|
|
788
786
|
|
789
787
|
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; }
|
@@ -964,11 +962,11 @@ var useTagsOverflow = function useTagsOverflow(tagInputRef, collapseTags, select
|
|
964
962
|
overflowTagIndex: overflowTagIndex
|
965
963
|
};
|
966
964
|
};
|
967
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
965
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
968
966
|
function _arrayWithHoles(arr) {
|
969
967
|
if (Array.isArray(arr)) return arr;
|
970
968
|
}
|
971
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
969
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
972
970
|
function _iterableToArrayLimit(r, l) {
|
973
971
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
974
972
|
if (null != t) {
|
@@ -996,11 +994,11 @@ function _iterableToArrayLimit(r, l) {
|
|
996
994
|
return a;
|
997
995
|
}
|
998
996
|
}
|
999
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
997
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
1000
998
|
function _nonIterableRest() {
|
1001
999
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1002
1000
|
}
|
1003
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
1001
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
1004
1002
|
|
1005
1003
|
|
1006
1004
|
|
@@ -1008,13 +1006,11 @@ function _nonIterableRest() {
|
|
1008
1006
|
function _slicedToArray(arr, i) {
|
1009
1007
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
1010
1008
|
}
|
1011
|
-
;// external "../config-provider"
|
1012
|
-
var config_provider_x = (y)
|
1013
|
-
|
1014
|
-
}
|
1015
|
-
|
1016
|
-
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale), ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
1017
|
-
;// ../../packages/directives/src/clickoutside.ts
|
1009
|
+
;// CONCATENATED MODULE: external "../config-provider"
|
1010
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1011
|
+
var config_provider_y = x => () => x
|
1012
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
1013
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
1018
1014
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = clickoutside_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; } } }; }
|
1019
1015
|
function clickoutside_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return clickoutside_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 clickoutside_arrayLikeToArray(o, minLen); }
|
1020
1016
|
function clickoutside_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; }
|
@@ -1140,13 +1136,11 @@ ClickOutside.install = function (app) {
|
|
1140
1136
|
app.directive('bkTooltips', ClickOutside);
|
1141
1137
|
};
|
1142
1138
|
/* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
|
1143
|
-
;// external "../plugin-popover"
|
1144
|
-
var plugin_popover_x = (y)
|
1145
|
-
|
1146
|
-
}
|
1147
|
-
|
1148
|
-
const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
|
1149
|
-
;// ../../packages/directives/src/ellipsis.ts
|
1139
|
+
;// CONCATENATED MODULE: external "../plugin-popover"
|
1140
|
+
var plugin_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1141
|
+
var plugin_popover_y = x => () => x
|
1142
|
+
const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"] });
|
1143
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
|
1150
1144
|
|
1151
1145
|
/*
|
1152
1146
|
* Tencent is pleased to support the open source community by making
|
@@ -1257,9 +1251,9 @@ var ellipsis = {
|
|
1257
1251
|
};
|
1258
1252
|
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
1259
1253
|
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
1260
|
-
var normalize_wheel = __webpack_require__(
|
1254
|
+
var normalize_wheel = __webpack_require__(2439);
|
1261
1255
|
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
1262
|
-
;// ../../packages/directives/src/mousewheel.ts
|
1256
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
|
1263
1257
|
/*
|
1264
1258
|
* Tencent is pleased to support the open source community by making
|
1265
1259
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1301,13 +1295,11 @@ var mousewheel = {
|
|
1301
1295
|
}
|
1302
1296
|
};
|
1303
1297
|
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
1304
|
-
;// external "@popperjs/core"
|
1305
|
-
var core_x = (y)
|
1306
|
-
|
1307
|
-
}
|
1308
|
-
|
1309
|
-
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
1310
|
-
;// ../../packages/directives/src/tooltips.ts
|
1298
|
+
;// CONCATENATED MODULE: external "@popperjs/core"
|
1299
|
+
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1300
|
+
var core_y = x => () => x
|
1301
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
|
1302
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
|
1311
1303
|
|
1312
1304
|
|
1313
1305
|
|
@@ -1599,19 +1591,15 @@ function hide(el) {
|
|
1599
1591
|
}
|
1600
1592
|
}
|
1601
1593
|
/* harmony default export */ const src_tooltips = (tooltips);
|
1602
|
-
;// external "../loading"
|
1603
|
-
var external_loading_x = (y)
|
1604
|
-
|
1605
|
-
}
|
1606
|
-
var external_loading_y = (x) => (() => (x))
|
1594
|
+
;// CONCATENATED MODULE: external "../loading"
|
1595
|
+
var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1596
|
+
var external_loading_y = x => () => x
|
1607
1597
|
const external_loading_namespaceObject = external_loading_x({ });
|
1608
|
-
;// external "../overflow-title"
|
1609
|
-
var external_overflow_title_x = (y)
|
1610
|
-
|
1611
|
-
}
|
1612
|
-
var external_overflow_title_y = (x) => (() => (x))
|
1598
|
+
;// CONCATENATED MODULE: external "../overflow-title"
|
1599
|
+
var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1600
|
+
var external_overflow_title_y = x => () => x
|
1613
1601
|
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
1614
|
-
;// ../../packages/directives/src/index.ts
|
1602
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
|
1615
1603
|
/*
|
1616
1604
|
* Tencent is pleased to support the open source community by making
|
1617
1605
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1644,49 +1632,35 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
1644
1632
|
|
1645
1633
|
|
1646
1634
|
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
1647
|
-
;// external "../icon"
|
1648
|
-
var icon_x = (y)
|
1649
|
-
|
1650
|
-
}
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
}
|
1657
|
-
var
|
1658
|
-
const loading_namespaceObject = loading_x({ ["BkLoadingSize"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingSize), ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__["default"]) });
|
1659
|
-
;// external "../loading/loading.less"
|
1660
|
-
var loading_less_x = (y) => {
|
1661
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
1662
|
-
}
|
1663
|
-
var loading_less_y = (x) => (() => (x))
|
1635
|
+
;// CONCATENATED MODULE: external "../icon"
|
1636
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1637
|
+
var icon_y = x => () => x
|
1638
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error });
|
1639
|
+
;// CONCATENATED MODULE: external "../loading"
|
1640
|
+
var loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1641
|
+
var loading_y = x => () => x
|
1642
|
+
const loading_namespaceObject = loading_x({ ["BkLoadingSize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingSize, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__["default"] });
|
1643
|
+
;// CONCATENATED MODULE: external "../loading/loading.less"
|
1644
|
+
var loading_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1645
|
+
var loading_less_y = x => () => x
|
1664
1646
|
const loading_less_namespaceObject = loading_less_x({ });
|
1665
|
-
;// external "../popover"
|
1666
|
-
var popover_x = (y)
|
1667
|
-
|
1668
|
-
}
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
var popover_less_x = (y) => {
|
1673
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
1674
|
-
}
|
1675
|
-
var popover_less_y = (x) => (() => (x))
|
1647
|
+
;// CONCATENATED MODULE: external "../popover"
|
1648
|
+
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1649
|
+
var popover_y = x => () => x
|
1650
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
1651
|
+
;// CONCATENATED MODULE: external "../popover/popover.less"
|
1652
|
+
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1653
|
+
var popover_less_y = x => () => x
|
1676
1654
|
const popover_less_namespaceObject = popover_less_x({ });
|
1677
|
-
;// external "lodash/debounce"
|
1678
|
-
var debounce_x = (y)
|
1679
|
-
|
1680
|
-
}
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
}
|
1687
|
-
var trim_y = (x) => (() => (x))
|
1688
|
-
const trim_namespaceObject = trim_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_trim_5cdad98c__["default"]) });
|
1689
|
-
;// ../../packages/tag-input/src/list-tag-render.tsx
|
1655
|
+
;// CONCATENATED MODULE: external "lodash/debounce"
|
1656
|
+
var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1657
|
+
var debounce_y = x => () => x
|
1658
|
+
const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"] });
|
1659
|
+
;// CONCATENATED MODULE: external "lodash/trim"
|
1660
|
+
var trim_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1661
|
+
var trim_y = x => () => x
|
1662
|
+
const trim_namespaceObject = trim_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_trim_5cdad98c__["default"] });
|
1663
|
+
;// CONCATENATED MODULE: ../../packages/tag-input/src/list-tag-render.tsx
|
1690
1664
|
|
1691
1665
|
/*
|
1692
1666
|
* Tencent is pleased to support the open source community by making
|
@@ -1751,13 +1725,11 @@ const trim_namespaceObject = trim_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MOD
|
|
1751
1725
|
}, [displayText])]);
|
1752
1726
|
}
|
1753
1727
|
}));
|
1754
|
-
;// external "vue-types"
|
1755
|
-
var external_vue_types_x = (y)
|
1756
|
-
|
1757
|
-
}
|
1758
|
-
|
1759
|
-
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
|
1760
|
-
;// ../../packages/tag-input/src/tag-props.ts
|
1728
|
+
;// CONCATENATED MODULE: external "vue-types"
|
1729
|
+
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1730
|
+
var external_vue_types_y = x => () => x
|
1731
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
1732
|
+
;// CONCATENATED MODULE: ../../packages/tag-input/src/tag-props.ts
|
1761
1733
|
/*
|
1762
1734
|
* Tencent is pleased to support the open source community by making
|
1763
1735
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1854,13 +1826,11 @@ var tagProps = function tagProps() {
|
|
1854
1826
|
};
|
1855
1827
|
};
|
1856
1828
|
/* harmony default export */ const tag_props = (tagProps);
|
1857
|
-
;// external "lodash/has"
|
1858
|
-
var has_x = (y)
|
1859
|
-
|
1860
|
-
}
|
1861
|
-
|
1862
|
-
const has_namespaceObject = has_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_has_e9e453be__["default"]) });
|
1863
|
-
;// ../../packages/tag-input/src/tag-render.tsx
|
1829
|
+
;// CONCATENATED MODULE: external "lodash/has"
|
1830
|
+
var has_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1831
|
+
var has_y = x => () => x
|
1832
|
+
const has_namespaceObject = has_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_has_e9e453be__["default"] });
|
1833
|
+
;// CONCATENATED MODULE: ../../packages/tag-input/src/tag-render.tsx
|
1864
1834
|
|
1865
1835
|
|
1866
1836
|
function tag_render_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; }
|
@@ -1949,7 +1919,7 @@ function tag_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1949
1919
|
}, [this.node[this.displayKey]])]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), this.overflowTips]]);
|
1950
1920
|
}
|
1951
1921
|
}));
|
1952
|
-
;// ../../packages/tag-input/src/tag-input.tsx
|
1922
|
+
;// CONCATENATED MODULE: ../../packages/tag-input/src/tag-input.tsx
|
1953
1923
|
|
1954
1924
|
|
1955
1925
|
|
@@ -2969,7 +2939,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
2969
2939
|
})]);
|
2970
2940
|
}
|
2971
2941
|
}));
|
2972
|
-
;// ../../packages/tag-input/src/index.ts
|
2942
|
+
;// CONCATENATED MODULE: ../../packages/tag-input/src/index.ts
|
2973
2943
|
/*
|
2974
2944
|
* Tencent is pleased to support the open source community by making
|
2975
2945
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3001,6 +2971,8 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
3001
2971
|
var TagInput = (0,shared_namespaceObject.withInstall)(tag_input);
|
3002
2972
|
/* harmony default export */ const src = (TagInput);
|
3003
2973
|
|
2974
|
+
})();
|
2975
|
+
|
3004
2976
|
var __webpack_exports__TagInput = __webpack_exports__.TagInput;
|
3005
2977
|
var __webpack_exports__default = __webpack_exports__["default"];
|
3006
2978
|
var __webpack_exports__useTagsOverflow = __webpack_exports__.useTagsOverflow;
|