bkui-vue 2.0.2-beta.8 → 2.0.2-beta.9
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 +16 -16
- package/dist/index.esm.js +4328 -4317
- package/dist/index.umd.js +24 -24
- package/dist/style.css +1 -1
- package/dist/style.variable.css +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 +644 -672
- 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 +624 -640
- package/lib/config-provider/index.js +26 -34
- package/lib/container/index.js +21 -27
- package/lib/date-picker/index.js +650 -672
- package/lib/dialog/index.js +87 -101
- package/lib/directives/index.js +512 -520
- 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 +638 -662
- 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 +327 -342
- package/lib/input/input.d.ts +4 -4
- 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/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 +509 -531
- package/lib/select/index.js +543 -585
- package/lib/shared/index.js +49 -57
- package/lib/sideslider/index.js +81 -91
- 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 +602 -660
- package/lib/table-column/index.js +9 -13
- package/lib/tag/index.js +26 -36
- package/lib/tag-input/index.js +348 -374
- 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.d.ts +4 -0
- package/lib/tree/index.js +123 -123
- package/lib/tree/props.d.ts +1 -0
- package/lib/tree/tree.css +18 -0
- package/lib/tree/tree.d.ts +2 -0
- package/lib/tree/tree.less +24 -0
- package/lib/tree/tree.variable.css +18 -0
- package/lib/tree/use-node-action.d.ts +1 -1
- package/lib/upload/index.js +562 -574
- package/lib/virtual-render/index.js +43 -55
- package/package.json +1 -1
package/lib/input/index.js
CHANGED
@@ -10,7 +10,15 @@ import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overfl
|
|
10
10
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
11
11
|
/******/ var __webpack_modules__ = ({
|
12
12
|
|
13
|
-
/***/
|
13
|
+
/***/ 2439:
|
14
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
15
|
+
|
16
|
+
module.exports = __webpack_require__(2527);
|
17
|
+
|
18
|
+
|
19
|
+
/***/ }),
|
20
|
+
|
21
|
+
/***/ 7430:
|
14
22
|
/***/ ((module) => {
|
15
23
|
|
16
24
|
/**
|
@@ -60,265 +68,7 @@ module.exports = ExecutionEnvironment;
|
|
60
68
|
|
61
69
|
/***/ }),
|
62
70
|
|
63
|
-
/***/
|
64
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
65
|
-
|
66
|
-
/**
|
67
|
-
* Copyright 2013-2015, Facebook, Inc.
|
68
|
-
* All rights reserved.
|
69
|
-
*
|
70
|
-
* This source code is licensed under the BSD-style license found in the
|
71
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
72
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
73
|
-
*
|
74
|
-
* @providesModule isEventSupported
|
75
|
-
*/
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
var ExecutionEnvironment = __webpack_require__(1043);
|
80
|
-
|
81
|
-
var useHasFeature;
|
82
|
-
if (ExecutionEnvironment.canUseDOM) {
|
83
|
-
useHasFeature =
|
84
|
-
document.implementation &&
|
85
|
-
document.implementation.hasFeature &&
|
86
|
-
// always returns true in newer browsers as per the standard.
|
87
|
-
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
88
|
-
document.implementation.hasFeature('', '') !== true;
|
89
|
-
}
|
90
|
-
|
91
|
-
/**
|
92
|
-
* Checks if an event is supported in the current execution environment.
|
93
|
-
*
|
94
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
95
|
-
* `reset`, `load`, `error`, and `select`.
|
96
|
-
*
|
97
|
-
* Borrows from Modernizr.
|
98
|
-
*
|
99
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
100
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
101
|
-
* @return {boolean} True if the event is supported.
|
102
|
-
* @internal
|
103
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
104
|
-
*/
|
105
|
-
function isEventSupported(eventNameSuffix, capture) {
|
106
|
-
if (!ExecutionEnvironment.canUseDOM ||
|
107
|
-
capture && !('addEventListener' in document)) {
|
108
|
-
return false;
|
109
|
-
}
|
110
|
-
|
111
|
-
var eventName = 'on' + eventNameSuffix;
|
112
|
-
var isSupported = eventName in document;
|
113
|
-
|
114
|
-
if (!isSupported) {
|
115
|
-
var element = document.createElement('div');
|
116
|
-
element.setAttribute(eventName, 'return;');
|
117
|
-
isSupported = typeof element[eventName] === 'function';
|
118
|
-
}
|
119
|
-
|
120
|
-
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
121
|
-
// This is the only way to test support for the `wheel` event in IE9+.
|
122
|
-
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
123
|
-
}
|
124
|
-
|
125
|
-
return isSupported;
|
126
|
-
}
|
127
|
-
|
128
|
-
module.exports = isEventSupported;
|
129
|
-
|
130
|
-
|
131
|
-
/***/ }),
|
132
|
-
|
133
|
-
/***/ 5022:
|
134
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
135
|
-
|
136
|
-
/**
|
137
|
-
* Copyright (c) 2015, Facebook, Inc.
|
138
|
-
* All rights reserved.
|
139
|
-
*
|
140
|
-
* This source code is licensed under the BSD-style license found in the
|
141
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
142
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
143
|
-
*
|
144
|
-
* @providesModule normalizeWheel
|
145
|
-
* @typechecks
|
146
|
-
*/
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
151
|
-
|
152
|
-
var isEventSupported = __webpack_require__(2586);
|
153
|
-
|
154
|
-
|
155
|
-
// Reasonable defaults
|
156
|
-
var PIXEL_STEP = 10;
|
157
|
-
var LINE_HEIGHT = 40;
|
158
|
-
var PAGE_HEIGHT = 800;
|
159
|
-
|
160
|
-
/**
|
161
|
-
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
162
|
-
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
163
|
-
* your questions.
|
164
|
-
*
|
165
|
-
* If you need to react to the mouse wheel in a predictable way, this code is
|
166
|
-
* like your bestest friend. * hugs *
|
167
|
-
*
|
168
|
-
* As of today, there are 4 DOM event types you can listen to:
|
169
|
-
*
|
170
|
-
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
171
|
-
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
172
|
-
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
173
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
174
|
-
*
|
175
|
-
* So what to do? The is the best:
|
176
|
-
*
|
177
|
-
* normalizeWheel.getEventType();
|
178
|
-
*
|
179
|
-
* In your event callback, use this code to get sane interpretation of the
|
180
|
-
* deltas. This code will return an object with properties:
|
181
|
-
*
|
182
|
-
* spinX -- normalized spin speed (use for zoom) - x plane
|
183
|
-
* spinY -- " - y plane
|
184
|
-
* pixelX -- normalized distance (to pixels) - x plane
|
185
|
-
* pixelY -- " - y plane
|
186
|
-
*
|
187
|
-
* Wheel values are provided by the browser assuming you are using the wheel to
|
188
|
-
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
189
|
-
* significantly on different platforms and browsers, forgetting that you can
|
190
|
-
* scroll at different speeds. Some devices (like trackpads) emit more events
|
191
|
-
* at smaller increments with fine granularity, and some emit massive jumps with
|
192
|
-
* linear speed or acceleration.
|
193
|
-
*
|
194
|
-
* This code does its best to normalize the deltas for you:
|
195
|
-
*
|
196
|
-
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
197
|
-
* dragged). This is super useful for zoom support where you want to
|
198
|
-
* throw away the chunky scroll steps on the PC and make those equal to
|
199
|
-
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
200
|
-
* resolve a single slow step on a wheel to 1.
|
201
|
-
*
|
202
|
-
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
203
|
-
* get the crazy differences between browsers, but at least it'll be in
|
204
|
-
* pixels!
|
205
|
-
*
|
206
|
-
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
207
|
-
* should translate to positive value zooming IN, negative zooming OUT.
|
208
|
-
* This matches the newer 'wheel' event.
|
209
|
-
*
|
210
|
-
* Why are there spinX, spinY (or pixels)?
|
211
|
-
*
|
212
|
-
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
213
|
-
* with a mouse. It results in side-scrolling in the browser by default.
|
214
|
-
*
|
215
|
-
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
216
|
-
*
|
217
|
-
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
218
|
-
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
219
|
-
* you know.
|
220
|
-
*
|
221
|
-
* Implementation info:
|
222
|
-
*
|
223
|
-
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
224
|
-
* average mouse:
|
225
|
-
*
|
226
|
-
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
227
|
-
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
228
|
-
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
229
|
-
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
230
|
-
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
231
|
-
*
|
232
|
-
* On the trackpad:
|
233
|
-
*
|
234
|
-
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
235
|
-
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
236
|
-
*
|
237
|
-
* On other/older browsers.. it's more complicated as there can be multiple and
|
238
|
-
* also missing delta values.
|
239
|
-
*
|
240
|
-
* The 'wheel' event is more standard:
|
241
|
-
*
|
242
|
-
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
243
|
-
*
|
244
|
-
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
245
|
-
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
246
|
-
* backward compatibility with older events. Those other values help us
|
247
|
-
* better normalize spin speed. Example of what the browsers provide:
|
248
|
-
*
|
249
|
-
* | event.wheelDelta | event.detail
|
250
|
-
* ------------------+------------------+--------------
|
251
|
-
* Safari v5/OS X | -120 | 0
|
252
|
-
* Safari v5/Win7 | -120 | 0
|
253
|
-
* Chrome v17/OS X | -120 | 0
|
254
|
-
* Chrome v17/Win7 | -120 | 0
|
255
|
-
* IE9/Win7 | -120 | undefined
|
256
|
-
* Firefox v4/OS X | undefined | 1
|
257
|
-
* Firefox v4/Win7 | undefined | 3
|
258
|
-
*
|
259
|
-
*/
|
260
|
-
function normalizeWheel(/*object*/ event) /*object*/ {
|
261
|
-
var sX = 0, sY = 0, // spinX, spinY
|
262
|
-
pX = 0, pY = 0; // pixelX, pixelY
|
263
|
-
|
264
|
-
// Legacy
|
265
|
-
if ('detail' in event) { sY = event.detail; }
|
266
|
-
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
267
|
-
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
268
|
-
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
269
|
-
|
270
|
-
// side scrolling on FF with DOMMouseScroll
|
271
|
-
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
272
|
-
sX = sY;
|
273
|
-
sY = 0;
|
274
|
-
}
|
275
|
-
|
276
|
-
pX = sX * PIXEL_STEP;
|
277
|
-
pY = sY * PIXEL_STEP;
|
278
|
-
|
279
|
-
if ('deltaY' in event) { pY = event.deltaY; }
|
280
|
-
if ('deltaX' in event) { pX = event.deltaX; }
|
281
|
-
|
282
|
-
if ((pX || pY) && event.deltaMode) {
|
283
|
-
if (event.deltaMode == 1) { // delta in LINE units
|
284
|
-
pX *= LINE_HEIGHT;
|
285
|
-
pY *= LINE_HEIGHT;
|
286
|
-
} else { // delta in PAGE units
|
287
|
-
pX *= PAGE_HEIGHT;
|
288
|
-
pY *= PAGE_HEIGHT;
|
289
|
-
}
|
290
|
-
}
|
291
|
-
|
292
|
-
// Fall-back if spin cannot be determined
|
293
|
-
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
294
|
-
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
295
|
-
|
296
|
-
return { spinX : sX,
|
297
|
-
spinY : sY,
|
298
|
-
pixelX : pX,
|
299
|
-
pixelY : pY };
|
300
|
-
}
|
301
|
-
|
302
|
-
|
303
|
-
/**
|
304
|
-
* The best combination if you prefer spinX + spinY normalization. It favors
|
305
|
-
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
306
|
-
* 'wheel' event, making spin speed determination impossible.
|
307
|
-
*/
|
308
|
-
normalizeWheel.getEventType = function() /*string*/ {
|
309
|
-
return (UserAgent_DEPRECATED.firefox())
|
310
|
-
? 'DOMMouseScroll'
|
311
|
-
: (isEventSupported('wheel'))
|
312
|
-
? 'wheel'
|
313
|
-
: 'mousewheel';
|
314
|
-
};
|
315
|
-
|
316
|
-
module.exports = normalizeWheel;
|
317
|
-
|
318
|
-
|
319
|
-
/***/ }),
|
320
|
-
|
321
|
-
/***/ 7416:
|
71
|
+
/***/ 6377:
|
322
72
|
/***/ ((module) => {
|
323
73
|
|
324
74
|
/**
|
@@ -607,10 +357,260 @@ module.exports = UserAgent_DEPRECATED;
|
|
607
357
|
|
608
358
|
/***/ }),
|
609
359
|
|
610
|
-
/***/
|
360
|
+
/***/ 3541:
|
361
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
362
|
+
|
363
|
+
/**
|
364
|
+
* Copyright 2013-2015, Facebook, Inc.
|
365
|
+
* All rights reserved.
|
366
|
+
*
|
367
|
+
* This source code is licensed under the BSD-style license found in the
|
368
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
369
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
370
|
+
*
|
371
|
+
* @providesModule isEventSupported
|
372
|
+
*/
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
var ExecutionEnvironment = __webpack_require__(7430);
|
377
|
+
|
378
|
+
var useHasFeature;
|
379
|
+
if (ExecutionEnvironment.canUseDOM) {
|
380
|
+
useHasFeature =
|
381
|
+
document.implementation &&
|
382
|
+
document.implementation.hasFeature &&
|
383
|
+
// always returns true in newer browsers as per the standard.
|
384
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
385
|
+
document.implementation.hasFeature('', '') !== true;
|
386
|
+
}
|
387
|
+
|
388
|
+
/**
|
389
|
+
* Checks if an event is supported in the current execution environment.
|
390
|
+
*
|
391
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
392
|
+
* `reset`, `load`, `error`, and `select`.
|
393
|
+
*
|
394
|
+
* Borrows from Modernizr.
|
395
|
+
*
|
396
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
397
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
398
|
+
* @return {boolean} True if the event is supported.
|
399
|
+
* @internal
|
400
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
401
|
+
*/
|
402
|
+
function isEventSupported(eventNameSuffix, capture) {
|
403
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
404
|
+
capture && !('addEventListener' in document)) {
|
405
|
+
return false;
|
406
|
+
}
|
407
|
+
|
408
|
+
var eventName = 'on' + eventNameSuffix;
|
409
|
+
var isSupported = eventName in document;
|
410
|
+
|
411
|
+
if (!isSupported) {
|
412
|
+
var element = document.createElement('div');
|
413
|
+
element.setAttribute(eventName, 'return;');
|
414
|
+
isSupported = typeof element[eventName] === 'function';
|
415
|
+
}
|
416
|
+
|
417
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
418
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
419
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
420
|
+
}
|
421
|
+
|
422
|
+
return isSupported;
|
423
|
+
}
|
424
|
+
|
425
|
+
module.exports = isEventSupported;
|
426
|
+
|
427
|
+
|
428
|
+
/***/ }),
|
429
|
+
|
430
|
+
/***/ 2527:
|
611
431
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
612
432
|
|
613
|
-
|
433
|
+
/**
|
434
|
+
* Copyright (c) 2015, Facebook, Inc.
|
435
|
+
* All rights reserved.
|
436
|
+
*
|
437
|
+
* This source code is licensed under the BSD-style license found in the
|
438
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
439
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
440
|
+
*
|
441
|
+
* @providesModule normalizeWheel
|
442
|
+
* @typechecks
|
443
|
+
*/
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
var UserAgent_DEPRECATED = __webpack_require__(6377);
|
448
|
+
|
449
|
+
var isEventSupported = __webpack_require__(3541);
|
450
|
+
|
451
|
+
|
452
|
+
// Reasonable defaults
|
453
|
+
var PIXEL_STEP = 10;
|
454
|
+
var LINE_HEIGHT = 40;
|
455
|
+
var PAGE_HEIGHT = 800;
|
456
|
+
|
457
|
+
/**
|
458
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
459
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
460
|
+
* your questions.
|
461
|
+
*
|
462
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
463
|
+
* like your bestest friend. * hugs *
|
464
|
+
*
|
465
|
+
* As of today, there are 4 DOM event types you can listen to:
|
466
|
+
*
|
467
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
468
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
469
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
470
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
471
|
+
*
|
472
|
+
* So what to do? The is the best:
|
473
|
+
*
|
474
|
+
* normalizeWheel.getEventType();
|
475
|
+
*
|
476
|
+
* In your event callback, use this code to get sane interpretation of the
|
477
|
+
* deltas. This code will return an object with properties:
|
478
|
+
*
|
479
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
480
|
+
* spinY -- " - y plane
|
481
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
482
|
+
* pixelY -- " - y plane
|
483
|
+
*
|
484
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
485
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
486
|
+
* significantly on different platforms and browsers, forgetting that you can
|
487
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
488
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
489
|
+
* linear speed or acceleration.
|
490
|
+
*
|
491
|
+
* This code does its best to normalize the deltas for you:
|
492
|
+
*
|
493
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
494
|
+
* dragged). This is super useful for zoom support where you want to
|
495
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
496
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
497
|
+
* resolve a single slow step on a wheel to 1.
|
498
|
+
*
|
499
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
500
|
+
* get the crazy differences between browsers, but at least it'll be in
|
501
|
+
* pixels!
|
502
|
+
*
|
503
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
504
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
505
|
+
* This matches the newer 'wheel' event.
|
506
|
+
*
|
507
|
+
* Why are there spinX, spinY (or pixels)?
|
508
|
+
*
|
509
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
510
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
511
|
+
*
|
512
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
513
|
+
*
|
514
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
515
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
516
|
+
* you know.
|
517
|
+
*
|
518
|
+
* Implementation info:
|
519
|
+
*
|
520
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
521
|
+
* average mouse:
|
522
|
+
*
|
523
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
524
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
525
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
526
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
527
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
528
|
+
*
|
529
|
+
* On the trackpad:
|
530
|
+
*
|
531
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
532
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
533
|
+
*
|
534
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
535
|
+
* also missing delta values.
|
536
|
+
*
|
537
|
+
* The 'wheel' event is more standard:
|
538
|
+
*
|
539
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
540
|
+
*
|
541
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
542
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
543
|
+
* backward compatibility with older events. Those other values help us
|
544
|
+
* better normalize spin speed. Example of what the browsers provide:
|
545
|
+
*
|
546
|
+
* | event.wheelDelta | event.detail
|
547
|
+
* ------------------+------------------+--------------
|
548
|
+
* Safari v5/OS X | -120 | 0
|
549
|
+
* Safari v5/Win7 | -120 | 0
|
550
|
+
* Chrome v17/OS X | -120 | 0
|
551
|
+
* Chrome v17/Win7 | -120 | 0
|
552
|
+
* IE9/Win7 | -120 | undefined
|
553
|
+
* Firefox v4/OS X | undefined | 1
|
554
|
+
* Firefox v4/Win7 | undefined | 3
|
555
|
+
*
|
556
|
+
*/
|
557
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
558
|
+
var sX = 0, sY = 0, // spinX, spinY
|
559
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
560
|
+
|
561
|
+
// Legacy
|
562
|
+
if ('detail' in event) { sY = event.detail; }
|
563
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
564
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
565
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
566
|
+
|
567
|
+
// side scrolling on FF with DOMMouseScroll
|
568
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
569
|
+
sX = sY;
|
570
|
+
sY = 0;
|
571
|
+
}
|
572
|
+
|
573
|
+
pX = sX * PIXEL_STEP;
|
574
|
+
pY = sY * PIXEL_STEP;
|
575
|
+
|
576
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
577
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
578
|
+
|
579
|
+
if ((pX || pY) && event.deltaMode) {
|
580
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
581
|
+
pX *= LINE_HEIGHT;
|
582
|
+
pY *= LINE_HEIGHT;
|
583
|
+
} else { // delta in PAGE units
|
584
|
+
pX *= PAGE_HEIGHT;
|
585
|
+
pY *= PAGE_HEIGHT;
|
586
|
+
}
|
587
|
+
}
|
588
|
+
|
589
|
+
// Fall-back if spin cannot be determined
|
590
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
591
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
592
|
+
|
593
|
+
return { spinX : sX,
|
594
|
+
spinY : sY,
|
595
|
+
pixelX : pX,
|
596
|
+
pixelY : pY };
|
597
|
+
}
|
598
|
+
|
599
|
+
|
600
|
+
/**
|
601
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
602
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
603
|
+
* 'wheel' event, making spin speed determination impossible.
|
604
|
+
*/
|
605
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
606
|
+
return (UserAgent_DEPRECATED.firefox())
|
607
|
+
? 'DOMMouseScroll'
|
608
|
+
: (isEventSupported('wheel'))
|
609
|
+
? 'wheel'
|
610
|
+
: 'mousewheel';
|
611
|
+
};
|
612
|
+
|
613
|
+
module.exports = normalizeWheel;
|
614
614
|
|
615
615
|
|
616
616
|
/***/ })
|
@@ -673,23 +673,23 @@ module.exports = __webpack_require__(5022);
|
|
673
673
|
/******/
|
674
674
|
/************************************************************************/
|
675
675
|
var __webpack_exports__ = {};
|
676
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
677
|
+
(() => {
|
676
678
|
|
677
679
|
// EXPORTS
|
678
680
|
__webpack_require__.d(__webpack_exports__, {
|
679
681
|
"default": () => (/* binding */ src)
|
680
682
|
});
|
681
683
|
|
682
|
-
;// external "../shared"
|
683
|
-
var x = (y)
|
684
|
-
|
685
|
-
}
|
686
|
-
|
687
|
-
const shared_namespaceObject = x({ ["InputBehaviorType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.InputBehaviorType), ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["classes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes), ["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) });
|
688
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
684
|
+
;// CONCATENATED MODULE: external "../shared"
|
685
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
686
|
+
var y = x => () => x
|
687
|
+
const shared_namespaceObject = x({ ["InputBehaviorType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.InputBehaviorType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["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 });
|
688
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
689
689
|
function _arrayWithHoles(arr) {
|
690
690
|
if (Array.isArray(arr)) return arr;
|
691
691
|
}
|
692
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
692
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
693
693
|
function _iterableToArrayLimit(r, l) {
|
694
694
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
695
695
|
if (null != t) {
|
@@ -717,13 +717,13 @@ function _iterableToArrayLimit(r, l) {
|
|
717
717
|
return a;
|
718
718
|
}
|
719
719
|
}
|
720
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
720
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
721
721
|
function _arrayLikeToArray(arr, len) {
|
722
722
|
if (len == null || len > arr.length) len = arr.length;
|
723
723
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
724
724
|
return arr2;
|
725
725
|
}
|
726
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
726
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
727
727
|
|
728
728
|
function _unsupportedIterableToArray(o, minLen) {
|
729
729
|
if (!o) return;
|
@@ -733,11 +733,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
733
733
|
if (n === "Map" || n === "Set") return Array.from(o);
|
734
734
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
735
735
|
}
|
736
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
736
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
737
737
|
function _nonIterableRest() {
|
738
738
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
739
739
|
}
|
740
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
740
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
741
741
|
|
742
742
|
|
743
743
|
|
@@ -745,7 +745,7 @@ function _nonIterableRest() {
|
|
745
745
|
function _slicedToArray(arr, i) {
|
746
746
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
747
747
|
}
|
748
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
748
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
749
749
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
750
750
|
if (source == null) return {};
|
751
751
|
var target = {};
|
@@ -758,7 +758,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
758
758
|
}
|
759
759
|
return target;
|
760
760
|
}
|
761
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
761
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
762
762
|
|
763
763
|
function _objectWithoutProperties(source, excluded) {
|
764
764
|
if (source == null) return {};
|
@@ -775,7 +775,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
775
775
|
}
|
776
776
|
return target;
|
777
777
|
}
|
778
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
778
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
779
779
|
function _typeof(o) {
|
780
780
|
"@babel/helpers - typeof";
|
781
781
|
|
@@ -785,7 +785,7 @@ function _typeof(o) {
|
|
785
785
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
786
786
|
}, _typeof(o);
|
787
787
|
}
|
788
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
788
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
789
789
|
|
790
790
|
function toPrimitive(t, r) {
|
791
791
|
if ("object" != _typeof(t) || !t) return t;
|
@@ -797,14 +797,14 @@ function toPrimitive(t, r) {
|
|
797
797
|
}
|
798
798
|
return ("string" === r ? String : Number)(t);
|
799
799
|
}
|
800
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
800
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
801
801
|
|
802
802
|
|
803
803
|
function toPropertyKey(t) {
|
804
804
|
var i = toPrimitive(t, "string");
|
805
805
|
return "symbol" == _typeof(i) ? i : String(i);
|
806
806
|
}
|
807
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
807
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
808
808
|
|
809
809
|
function _defineProperty(obj, key, value) {
|
810
810
|
key = toPropertyKey(key);
|
@@ -820,19 +820,15 @@ function _defineProperty(obj, key, value) {
|
|
820
820
|
}
|
821
821
|
return obj;
|
822
822
|
}
|
823
|
-
;// external "vue"
|
824
|
-
var external_vue_x = (y)
|
825
|
-
|
826
|
-
}
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
}
|
833
|
-
var config_provider_y = (x) => (() => (x))
|
834
|
-
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) });
|
835
|
-
;// ../../packages/directives/src/clickoutside.ts
|
823
|
+
;// CONCATENATED MODULE: external "vue"
|
824
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
825
|
+
var external_vue_y = x => () => x
|
826
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["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, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
827
|
+
;// CONCATENATED MODULE: external "../config-provider"
|
828
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
829
|
+
var config_provider_y = x => () => x
|
830
|
+
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 });
|
831
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
836
832
|
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; } } }; }
|
837
833
|
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); }
|
838
834
|
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; }
|
@@ -958,13 +954,11 @@ ClickOutside.install = function (app) {
|
|
958
954
|
app.directive('bkTooltips', ClickOutside);
|
959
955
|
};
|
960
956
|
/* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
|
961
|
-
;// external "../popover"
|
962
|
-
var popover_x = (y)
|
963
|
-
|
964
|
-
}
|
965
|
-
|
966
|
-
const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover) });
|
967
|
-
;// ../../packages/directives/src/ellipsis.ts
|
957
|
+
;// CONCATENATED MODULE: external "../popover"
|
958
|
+
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
959
|
+
var popover_y = x => () => x
|
960
|
+
const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover });
|
961
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
|
968
962
|
|
969
963
|
/*
|
970
964
|
* Tencent is pleased to support the open source community by making
|
@@ -1075,9 +1069,9 @@ var ellipsis = {
|
|
1075
1069
|
};
|
1076
1070
|
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
1077
1071
|
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
1078
|
-
var normalize_wheel = __webpack_require__(
|
1072
|
+
var normalize_wheel = __webpack_require__(2439);
|
1079
1073
|
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
1080
|
-
;// ../../packages/directives/src/mousewheel.ts
|
1074
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
|
1081
1075
|
/*
|
1082
1076
|
* Tencent is pleased to support the open source community by making
|
1083
1077
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1119,20 +1113,20 @@ var mousewheel = {
|
|
1119
1113
|
}
|
1120
1114
|
};
|
1121
1115
|
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
1122
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1116
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1123
1117
|
|
1124
1118
|
function _arrayWithoutHoles(arr) {
|
1125
1119
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
1126
1120
|
}
|
1127
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1121
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1128
1122
|
function _iterableToArray(iter) {
|
1129
1123
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1130
1124
|
}
|
1131
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1125
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1132
1126
|
function _nonIterableSpread() {
|
1133
1127
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1134
1128
|
}
|
1135
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1129
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1136
1130
|
|
1137
1131
|
|
1138
1132
|
|
@@ -1140,13 +1134,11 @@ function _nonIterableSpread() {
|
|
1140
1134
|
function _toConsumableArray(arr) {
|
1141
1135
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1142
1136
|
}
|
1143
|
-
;// external "@popperjs/core"
|
1144
|
-
var core_x = (y)
|
1145
|
-
|
1146
|
-
}
|
1147
|
-
|
1148
|
-
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
1149
|
-
;// ../../packages/directives/src/tooltips.ts
|
1137
|
+
;// CONCATENATED MODULE: external "@popperjs/core"
|
1138
|
+
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1139
|
+
var core_y = x => () => x
|
1140
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
|
1141
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
|
1150
1142
|
|
1151
1143
|
|
1152
1144
|
|
@@ -1438,19 +1430,15 @@ function hide(el) {
|
|
1438
1430
|
}
|
1439
1431
|
}
|
1440
1432
|
/* harmony default export */ const src_tooltips = (tooltips);
|
1441
|
-
;// external "../loading"
|
1442
|
-
var external_loading_x = (y)
|
1443
|
-
|
1444
|
-
}
|
1445
|
-
var external_loading_y = (x) => (() => (x))
|
1433
|
+
;// CONCATENATED MODULE: external "../loading"
|
1434
|
+
var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1435
|
+
var external_loading_y = x => () => x
|
1446
1436
|
const external_loading_namespaceObject = external_loading_x({ });
|
1447
|
-
;// external "../overflow-title"
|
1448
|
-
var external_overflow_title_x = (y)
|
1449
|
-
|
1450
|
-
}
|
1451
|
-
var external_overflow_title_y = (x) => (() => (x))
|
1437
|
+
;// CONCATENATED MODULE: external "../overflow-title"
|
1438
|
+
var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1439
|
+
var external_overflow_title_y = x => () => x
|
1452
1440
|
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
1453
|
-
;// ../../packages/directives/src/index.ts
|
1441
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
|
1454
1442
|
/*
|
1455
1443
|
* Tencent is pleased to support the open source community by making
|
1456
1444
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1483,13 +1471,11 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
1483
1471
|
|
1484
1472
|
|
1485
1473
|
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
1486
|
-
;// external "../icon"
|
1487
|
-
var icon_x = (y)
|
1488
|
-
|
1489
|
-
}
|
1490
|
-
|
1491
|
-
const icon_namespaceObject = icon_x({ ["Close"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close), ["DownSmall"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.DownSmall), ["Eye"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Eye), ["Search"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search), ["Unvisible"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Unvisible) });
|
1492
|
-
;// ../../packages/input/src/util.ts
|
1474
|
+
;// CONCATENATED MODULE: external "../icon"
|
1475
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1476
|
+
var icon_y = x => () => x
|
1477
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["DownSmall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.DownSmall, ["Eye"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Eye, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search, ["Unvisible"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Unvisible });
|
1478
|
+
;// CONCATENATED MODULE: ../../packages/input/src/util.ts
|
1493
1479
|
/*
|
1494
1480
|
* Tencent is pleased to support the open source community by making
|
1495
1481
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1578,7 +1564,7 @@ function calcTextareaHeight(targetElement) {
|
|
1578
1564
|
hiddenTextarea = undefined;
|
1579
1565
|
return result;
|
1580
1566
|
}
|
1581
|
-
;// ../../packages/input/src/input.tsx
|
1567
|
+
;// CONCATENATED MODULE: ../../packages/input/src/input.tsx
|
1582
1568
|
|
1583
1569
|
|
1584
1570
|
|
@@ -1686,7 +1672,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1686
1672
|
}), EVENTS.CHANGE, EventFunction), EVENTS.CLEAR, function () {
|
1687
1673
|
return true;
|
1688
1674
|
}), EVENTS.INPUT, EventFunction), EVENTS.KEYPRESS, EventFunction), EVENTS.KEYDOWN, EventFunction), EVENTS.KEYUP, EventFunction), EVENTS.ENTER, EventFunction), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_inputEmitEventsType, EVENTS.PASTE, PastEventFunction), EVENTS.COMPOSITIONSTART, CompositionEventFunction), EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), EVENTS.COMPOSITIONEND, CompositionEventFunction));
|
1689
|
-
|
1675
|
+
/* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
|
1690
1676
|
name: 'Input',
|
1691
1677
|
directives: {
|
1692
1678
|
bkTooltips: src_tooltips
|
@@ -1835,11 +1821,10 @@ var Input = (0,external_vue_namespaceObject.defineComponent)({
|
|
1835
1821
|
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || (_inputRef$value$focus = _inputRef$value.focus) === null || _inputRef$value$focus === void 0 || _inputRef$value$focus.call(_inputRef$value);
|
1836
1822
|
}
|
1837
1823
|
});
|
1838
|
-
function focus() {
|
1839
|
-
inputRef.value.focus();
|
1840
|
-
}
|
1841
1824
|
ctx.expose({
|
1842
|
-
focus: focus
|
1825
|
+
focus: function focus() {
|
1826
|
+
inputRef.value.focus();
|
1827
|
+
},
|
1843
1828
|
blur: function blur() {
|
1844
1829
|
inputRef.value.blur();
|
1845
1830
|
isFocused.value = false;
|
@@ -2051,11 +2036,9 @@ var Input = (0,external_vue_namespaceObject.defineComponent)({
|
|
2051
2036
|
"class": getCls('suffix-area--text')
|
2052
2037
|
}, [props.suffix])])]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), tooltips.value]]);
|
2053
2038
|
};
|
2054
|
-
}
|
2055
|
-
|
2056
|
-
|
2057
|
-
/* harmony default export */ const input = (Input);
|
2058
|
-
;// ../../packages/input/src/index.ts
|
2039
|
+
}
|
2040
|
+
}));
|
2041
|
+
;// CONCATENATED MODULE: ../../packages/input/src/index.ts
|
2059
2042
|
/*
|
2060
2043
|
* Tencent is pleased to support the open source community by making
|
2061
2044
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2085,5 +2068,7 @@ var Input = (0,external_vue_namespaceObject.defineComponent)({
|
|
2085
2068
|
|
2086
2069
|
var BkInput = (0,shared_namespaceObject.withInstall)(input);
|
2087
2070
|
/* harmony default export */ const src = (BkInput);
|
2071
|
+
})();
|
2072
|
+
|
2088
2073
|
var __webpack_exports__default = __webpack_exports__["default"];
|
2089
2074
|
export { __webpack_exports__default as default };
|