bkui-vue 2.0.2-beta.4 → 2.0.2-beta.6
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 +21 -21
- package/dist/index.esm.js +1588 -1583
- package/dist/index.umd.js +16 -16
- package/lib/affix/index.js +30 -22
- package/lib/alert/index.js +30 -22
- package/lib/animate-number/index.js +14 -10
- package/lib/backtop/index.js +32 -22
- package/lib/badge/index.js +24 -18
- package/lib/breadcrumb/index.js +31 -23
- package/lib/button/index.js +36 -26
- package/lib/card/index.js +47 -33
- package/lib/cascader/index.js +651 -619
- package/lib/checkbox/index.js +44 -34
- package/lib/code-diff/index.js +83 -79
- package/lib/collapse/index.js +39 -33
- package/lib/collapse-transition/index.js +20 -14
- package/lib/color-picker/index.js +617 -594
- package/lib/components.d.ts +1 -2
- package/lib/components.js +1 -2
- package/lib/config-provider/index.js +34 -26
- package/lib/container/index.js +27 -21
- package/lib/date-picker/index.js +649 -620
- package/lib/dialog/index.js +101 -87
- package/lib/directives/index.js +445 -430
- package/lib/divider/index.js +21 -15
- package/lib/dropdown/index.js +43 -31
- package/lib/exception/index.js +55 -49
- package/lib/fixed-navbar/index.js +20 -14
- package/lib/form/index.js +639 -608
- package/lib/icon/angle-double-down-line.js +14 -12
- package/lib/icon/angle-double-left-line.js +14 -12
- package/lib/icon/angle-double-left.js +14 -12
- package/lib/icon/angle-double-right-line.js +14 -12
- package/lib/icon/angle-double-right.js +14 -12
- package/lib/icon/angle-double-up-line.js +14 -12
- package/lib/icon/angle-down-fill.js +14 -12
- package/lib/icon/angle-down-line.js +14 -12
- package/lib/icon/angle-down.js +14 -12
- package/lib/icon/angle-left.js +14 -12
- package/lib/icon/angle-right.js +14 -12
- package/lib/icon/angle-up-fill.js +14 -12
- package/lib/icon/angle-up.js +14 -12
- package/lib/icon/archive-fill.js +14 -12
- package/lib/icon/arrows-left.js +14 -12
- package/lib/icon/arrows-right.js +14 -12
- package/lib/icon/assistant.js +14 -12
- package/lib/icon/audio-fill.js +14 -12
- package/lib/icon/bk.js +14 -12
- package/lib/icon/circle.js +14 -12
- package/lib/icon/close-line.js +14 -12
- package/lib/icon/close.js +14 -12
- package/lib/icon/code.js +14 -12
- package/lib/icon/cog-shape.js +14 -12
- package/lib/icon/collapse-left.js +14 -12
- package/lib/icon/copy-shape.js +14 -12
- package/lib/icon/copy.js +14 -12
- package/lib/icon/data-shape.js +14 -12
- package/lib/icon/del.js +14 -12
- package/lib/icon/doc-fill.js +14 -12
- package/lib/icon/done.js +14 -12
- package/lib/icon/down-shape.js +14 -12
- package/lib/icon/down-small.js +14 -12
- package/lib/icon/edit-line.js +14 -12
- package/lib/icon/ellipsis.js +14 -12
- package/lib/icon/enlarge-line.js +14 -12
- package/lib/icon/error.js +14 -12
- package/lib/icon/excel-fill.js +14 -12
- package/lib/icon/exclamation-circle-shape.js +14 -12
- package/lib/icon/eye.js +14 -12
- package/lib/icon/filliscreen-line.js +14 -12
- package/lib/icon/fix-line.js +14 -12
- package/lib/icon/fix-shape.js +14 -12
- package/lib/icon/folder-open.js +14 -12
- package/lib/icon/folder-shape-open.js +14 -12
- package/lib/icon/folder-shape.js +14 -12
- package/lib/icon/folder.js +14 -12
- package/lib/icon/funnel.js +14 -12
- package/lib/icon/grag-fill.js +14 -12
- package/lib/icon/help-document-fill.js +14 -12
- package/lib/icon/help-fill.js +14 -12
- package/lib/icon/help.js +14 -12
- package/lib/icon/image-fill.js +14 -12
- package/lib/icon/img-error.js +14 -12
- package/lib/icon/img-placehoulder.js +14 -12
- package/lib/icon/info-line.js +14 -12
- package/lib/icon/info.js +14 -12
- package/lib/icon/left-shape.js +14 -12
- package/lib/icon/left-turn-line.js +14 -12
- package/lib/icon/loading.js +14 -12
- package/lib/icon/narrow-line.js +14 -12
- package/lib/icon/original.js +14 -12
- package/lib/icon/pdf-fill.js +14 -12
- package/lib/icon/play-shape.js +14 -12
- package/lib/icon/plus.js +14 -12
- package/lib/icon/ppt-fill.js +14 -12
- package/lib/icon/qq.js +14 -12
- package/lib/icon/right-shape.js +14 -12
- package/lib/icon/right-turn-line.js +14 -12
- package/lib/icon/search.js +14 -12
- package/lib/icon/share.js +14 -12
- package/lib/icon/spinner.js +14 -12
- package/lib/icon/success.js +14 -12
- package/lib/icon/switcher-loading.js +14 -12
- package/lib/icon/text-all.js +14 -12
- package/lib/icon/text-file.js +14 -12
- package/lib/icon/text-fill.js +14 -12
- package/lib/icon/transfer.js +14 -12
- package/lib/icon/tree-application-shape.js +14 -12
- package/lib/icon/unfull-screen.js +14 -12
- package/lib/icon/unvisible.js +14 -12
- package/lib/icon/up-shape.js +14 -12
- package/lib/icon/upload.js +14 -12
- package/lib/icon/video-fill.js +14 -12
- package/lib/icon/warn.js +14 -12
- package/lib/icon/weixin-pro.js +14 -12
- package/lib/icon/weixin.js +14 -12
- package/lib/image/index.js +342 -326
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -2
- package/lib/info-box/index.js +101 -87
- package/lib/input/index.js +335 -323
- package/lib/link/index.js +26 -18
- package/lib/loading/index.js +25 -19
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.js +40 -32
- package/lib/message/index.js +47 -41
- package/lib/modal/index.js +39 -29
- package/lib/navigation/index.js +27 -19
- package/lib/notify/index.js +37 -27
- package/lib/overflow-title/index.js +41 -29
- package/lib/pagination/index.js +62 -46
- package/lib/pop-confirm/index.d.ts +16 -2
- package/lib/pop-confirm/index.js +62 -38
- package/lib/pop-confirm/pop-confirm.d.ts +5 -1
- package/lib/popover/index.js +363 -347
- package/lib/popover2/index.js +14 -10
- package/lib/process/index.js +78 -74
- package/lib/progress/index.js +26 -20
- package/lib/radio/index.js +39 -31
- package/lib/rate/index.js +25 -19
- package/lib/resize-layout/index.js +30 -22
- package/lib/scrollbar/index.js +25 -25
- package/lib/search-select/index.js +436 -419
- package/lib/select/index.js +490 -453
- package/lib/shared/index.js +57 -49
- package/lib/sideslider/index.js +89 -79
- package/lib/slider/index.js +85 -75
- package/lib/steps/index.js +78 -72
- package/lib/swiper/index.js +24 -18
- package/lib/switcher/index.js +30 -22
- package/lib/tab/index.js +337 -323
- package/lib/table/index.js +565 -512
- package/lib/table-column/index.js +13 -9
- package/lib/tag/index.js +36 -26
- package/lib/tag-input/index.js +376 -355
- package/lib/time-picker/index.js +13 -9
- package/lib/timeline/index.js +21 -15
- package/lib/transfer/index.js +56 -40
- package/lib/tree/index.js +100 -76
- package/lib/upload/index.js +584 -572
- package/lib/virtual-render/index.js +55 -43
- package/package.json +1 -1
- package/lib/plugin-popover/index.d.ts +0 -27
- package/lib/plugin-popover/index.js +0 -65
- package/lib/plugins/index.d.ts +0 -1
- package/lib/plugins/index.js +0 -64
package/lib/tab/index.js
CHANGED
@@ -4,22 +4,14 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../sh
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
7
|
-
import * as
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
10
10
|
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
11
11
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
12
12
|
/******/ var __webpack_modules__ = ({
|
13
13
|
|
14
|
-
/***/
|
15
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
16
|
-
|
17
|
-
module.exports = __webpack_require__(2527);
|
18
|
-
|
19
|
-
|
20
|
-
/***/ }),
|
21
|
-
|
22
|
-
/***/ 7430:
|
14
|
+
/***/ 1043:
|
23
15
|
/***/ ((module) => {
|
24
16
|
|
25
17
|
/**
|
@@ -69,7 +61,265 @@ module.exports = ExecutionEnvironment;
|
|
69
61
|
|
70
62
|
/***/ }),
|
71
63
|
|
72
|
-
/***/
|
64
|
+
/***/ 2586:
|
65
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
66
|
+
|
67
|
+
/**
|
68
|
+
* Copyright 2013-2015, Facebook, Inc.
|
69
|
+
* All rights reserved.
|
70
|
+
*
|
71
|
+
* This source code is licensed under the BSD-style license found in the
|
72
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
73
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
74
|
+
*
|
75
|
+
* @providesModule isEventSupported
|
76
|
+
*/
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
var ExecutionEnvironment = __webpack_require__(1043);
|
81
|
+
|
82
|
+
var useHasFeature;
|
83
|
+
if (ExecutionEnvironment.canUseDOM) {
|
84
|
+
useHasFeature =
|
85
|
+
document.implementation &&
|
86
|
+
document.implementation.hasFeature &&
|
87
|
+
// always returns true in newer browsers as per the standard.
|
88
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
89
|
+
document.implementation.hasFeature('', '') !== true;
|
90
|
+
}
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Checks if an event is supported in the current execution environment.
|
94
|
+
*
|
95
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
96
|
+
* `reset`, `load`, `error`, and `select`.
|
97
|
+
*
|
98
|
+
* Borrows from Modernizr.
|
99
|
+
*
|
100
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
101
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
102
|
+
* @return {boolean} True if the event is supported.
|
103
|
+
* @internal
|
104
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
105
|
+
*/
|
106
|
+
function isEventSupported(eventNameSuffix, capture) {
|
107
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
108
|
+
capture && !('addEventListener' in document)) {
|
109
|
+
return false;
|
110
|
+
}
|
111
|
+
|
112
|
+
var eventName = 'on' + eventNameSuffix;
|
113
|
+
var isSupported = eventName in document;
|
114
|
+
|
115
|
+
if (!isSupported) {
|
116
|
+
var element = document.createElement('div');
|
117
|
+
element.setAttribute(eventName, 'return;');
|
118
|
+
isSupported = typeof element[eventName] === 'function';
|
119
|
+
}
|
120
|
+
|
121
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
122
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
123
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
124
|
+
}
|
125
|
+
|
126
|
+
return isSupported;
|
127
|
+
}
|
128
|
+
|
129
|
+
module.exports = isEventSupported;
|
130
|
+
|
131
|
+
|
132
|
+
/***/ }),
|
133
|
+
|
134
|
+
/***/ 5022:
|
135
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
136
|
+
|
137
|
+
/**
|
138
|
+
* Copyright (c) 2015, Facebook, Inc.
|
139
|
+
* All rights reserved.
|
140
|
+
*
|
141
|
+
* This source code is licensed under the BSD-style license found in the
|
142
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
143
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
144
|
+
*
|
145
|
+
* @providesModule normalizeWheel
|
146
|
+
* @typechecks
|
147
|
+
*/
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
152
|
+
|
153
|
+
var isEventSupported = __webpack_require__(2586);
|
154
|
+
|
155
|
+
|
156
|
+
// Reasonable defaults
|
157
|
+
var PIXEL_STEP = 10;
|
158
|
+
var LINE_HEIGHT = 40;
|
159
|
+
var PAGE_HEIGHT = 800;
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
163
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
164
|
+
* your questions.
|
165
|
+
*
|
166
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
167
|
+
* like your bestest friend. * hugs *
|
168
|
+
*
|
169
|
+
* As of today, there are 4 DOM event types you can listen to:
|
170
|
+
*
|
171
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
172
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
173
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
174
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
175
|
+
*
|
176
|
+
* So what to do? The is the best:
|
177
|
+
*
|
178
|
+
* normalizeWheel.getEventType();
|
179
|
+
*
|
180
|
+
* In your event callback, use this code to get sane interpretation of the
|
181
|
+
* deltas. This code will return an object with properties:
|
182
|
+
*
|
183
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
184
|
+
* spinY -- " - y plane
|
185
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
186
|
+
* pixelY -- " - y plane
|
187
|
+
*
|
188
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
189
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
190
|
+
* significantly on different platforms and browsers, forgetting that you can
|
191
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
192
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
193
|
+
* linear speed or acceleration.
|
194
|
+
*
|
195
|
+
* This code does its best to normalize the deltas for you:
|
196
|
+
*
|
197
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
198
|
+
* dragged). This is super useful for zoom support where you want to
|
199
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
200
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
201
|
+
* resolve a single slow step on a wheel to 1.
|
202
|
+
*
|
203
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
204
|
+
* get the crazy differences between browsers, but at least it'll be in
|
205
|
+
* pixels!
|
206
|
+
*
|
207
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
208
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
209
|
+
* This matches the newer 'wheel' event.
|
210
|
+
*
|
211
|
+
* Why are there spinX, spinY (or pixels)?
|
212
|
+
*
|
213
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
214
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
215
|
+
*
|
216
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
217
|
+
*
|
218
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
219
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
220
|
+
* you know.
|
221
|
+
*
|
222
|
+
* Implementation info:
|
223
|
+
*
|
224
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
225
|
+
* average mouse:
|
226
|
+
*
|
227
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
228
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
229
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
230
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
231
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
232
|
+
*
|
233
|
+
* On the trackpad:
|
234
|
+
*
|
235
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
236
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
237
|
+
*
|
238
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
239
|
+
* also missing delta values.
|
240
|
+
*
|
241
|
+
* The 'wheel' event is more standard:
|
242
|
+
*
|
243
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
244
|
+
*
|
245
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
246
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
247
|
+
* backward compatibility with older events. Those other values help us
|
248
|
+
* better normalize spin speed. Example of what the browsers provide:
|
249
|
+
*
|
250
|
+
* | event.wheelDelta | event.detail
|
251
|
+
* ------------------+------------------+--------------
|
252
|
+
* Safari v5/OS X | -120 | 0
|
253
|
+
* Safari v5/Win7 | -120 | 0
|
254
|
+
* Chrome v17/OS X | -120 | 0
|
255
|
+
* Chrome v17/Win7 | -120 | 0
|
256
|
+
* IE9/Win7 | -120 | undefined
|
257
|
+
* Firefox v4/OS X | undefined | 1
|
258
|
+
* Firefox v4/Win7 | undefined | 3
|
259
|
+
*
|
260
|
+
*/
|
261
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
262
|
+
var sX = 0, sY = 0, // spinX, spinY
|
263
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
264
|
+
|
265
|
+
// Legacy
|
266
|
+
if ('detail' in event) { sY = event.detail; }
|
267
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
268
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
269
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
270
|
+
|
271
|
+
// side scrolling on FF with DOMMouseScroll
|
272
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
273
|
+
sX = sY;
|
274
|
+
sY = 0;
|
275
|
+
}
|
276
|
+
|
277
|
+
pX = sX * PIXEL_STEP;
|
278
|
+
pY = sY * PIXEL_STEP;
|
279
|
+
|
280
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
281
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
282
|
+
|
283
|
+
if ((pX || pY) && event.deltaMode) {
|
284
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
285
|
+
pX *= LINE_HEIGHT;
|
286
|
+
pY *= LINE_HEIGHT;
|
287
|
+
} else { // delta in PAGE units
|
288
|
+
pX *= PAGE_HEIGHT;
|
289
|
+
pY *= PAGE_HEIGHT;
|
290
|
+
}
|
291
|
+
}
|
292
|
+
|
293
|
+
// Fall-back if spin cannot be determined
|
294
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
295
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
296
|
+
|
297
|
+
return { spinX : sX,
|
298
|
+
spinY : sY,
|
299
|
+
pixelX : pX,
|
300
|
+
pixelY : pY };
|
301
|
+
}
|
302
|
+
|
303
|
+
|
304
|
+
/**
|
305
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
306
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
307
|
+
* 'wheel' event, making spin speed determination impossible.
|
308
|
+
*/
|
309
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
310
|
+
return (UserAgent_DEPRECATED.firefox())
|
311
|
+
? 'DOMMouseScroll'
|
312
|
+
: (isEventSupported('wheel'))
|
313
|
+
? 'wheel'
|
314
|
+
: 'mousewheel';
|
315
|
+
};
|
316
|
+
|
317
|
+
module.exports = normalizeWheel;
|
318
|
+
|
319
|
+
|
320
|
+
/***/ }),
|
321
|
+
|
322
|
+
/***/ 7416:
|
73
323
|
/***/ ((module) => {
|
74
324
|
|
75
325
|
/**
|
@@ -358,260 +608,10 @@ module.exports = UserAgent_DEPRECATED;
|
|
358
608
|
|
359
609
|
/***/ }),
|
360
610
|
|
361
|
-
/***/
|
611
|
+
/***/ 8283:
|
362
612
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
363
613
|
|
364
|
-
|
365
|
-
* Copyright 2013-2015, Facebook, Inc.
|
366
|
-
* All rights reserved.
|
367
|
-
*
|
368
|
-
* This source code is licensed under the BSD-style license found in the
|
369
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
370
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
371
|
-
*
|
372
|
-
* @providesModule isEventSupported
|
373
|
-
*/
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
var ExecutionEnvironment = __webpack_require__(7430);
|
378
|
-
|
379
|
-
var useHasFeature;
|
380
|
-
if (ExecutionEnvironment.canUseDOM) {
|
381
|
-
useHasFeature =
|
382
|
-
document.implementation &&
|
383
|
-
document.implementation.hasFeature &&
|
384
|
-
// always returns true in newer browsers as per the standard.
|
385
|
-
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
386
|
-
document.implementation.hasFeature('', '') !== true;
|
387
|
-
}
|
388
|
-
|
389
|
-
/**
|
390
|
-
* Checks if an event is supported in the current execution environment.
|
391
|
-
*
|
392
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
393
|
-
* `reset`, `load`, `error`, and `select`.
|
394
|
-
*
|
395
|
-
* Borrows from Modernizr.
|
396
|
-
*
|
397
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
398
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
399
|
-
* @return {boolean} True if the event is supported.
|
400
|
-
* @internal
|
401
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
402
|
-
*/
|
403
|
-
function isEventSupported(eventNameSuffix, capture) {
|
404
|
-
if (!ExecutionEnvironment.canUseDOM ||
|
405
|
-
capture && !('addEventListener' in document)) {
|
406
|
-
return false;
|
407
|
-
}
|
408
|
-
|
409
|
-
var eventName = 'on' + eventNameSuffix;
|
410
|
-
var isSupported = eventName in document;
|
411
|
-
|
412
|
-
if (!isSupported) {
|
413
|
-
var element = document.createElement('div');
|
414
|
-
element.setAttribute(eventName, 'return;');
|
415
|
-
isSupported = typeof element[eventName] === 'function';
|
416
|
-
}
|
417
|
-
|
418
|
-
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
419
|
-
// This is the only way to test support for the `wheel` event in IE9+.
|
420
|
-
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
421
|
-
}
|
422
|
-
|
423
|
-
return isSupported;
|
424
|
-
}
|
425
|
-
|
426
|
-
module.exports = isEventSupported;
|
427
|
-
|
428
|
-
|
429
|
-
/***/ }),
|
430
|
-
|
431
|
-
/***/ 2527:
|
432
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
433
|
-
|
434
|
-
/**
|
435
|
-
* Copyright (c) 2015, Facebook, Inc.
|
436
|
-
* All rights reserved.
|
437
|
-
*
|
438
|
-
* This source code is licensed under the BSD-style license found in the
|
439
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
440
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
441
|
-
*
|
442
|
-
* @providesModule normalizeWheel
|
443
|
-
* @typechecks
|
444
|
-
*/
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
var UserAgent_DEPRECATED = __webpack_require__(6377);
|
449
|
-
|
450
|
-
var isEventSupported = __webpack_require__(3541);
|
451
|
-
|
452
|
-
|
453
|
-
// Reasonable defaults
|
454
|
-
var PIXEL_STEP = 10;
|
455
|
-
var LINE_HEIGHT = 40;
|
456
|
-
var PAGE_HEIGHT = 800;
|
457
|
-
|
458
|
-
/**
|
459
|
-
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
460
|
-
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
461
|
-
* your questions.
|
462
|
-
*
|
463
|
-
* If you need to react to the mouse wheel in a predictable way, this code is
|
464
|
-
* like your bestest friend. * hugs *
|
465
|
-
*
|
466
|
-
* As of today, there are 4 DOM event types you can listen to:
|
467
|
-
*
|
468
|
-
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
469
|
-
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
470
|
-
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
471
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
472
|
-
*
|
473
|
-
* So what to do? The is the best:
|
474
|
-
*
|
475
|
-
* normalizeWheel.getEventType();
|
476
|
-
*
|
477
|
-
* In your event callback, use this code to get sane interpretation of the
|
478
|
-
* deltas. This code will return an object with properties:
|
479
|
-
*
|
480
|
-
* spinX -- normalized spin speed (use for zoom) - x plane
|
481
|
-
* spinY -- " - y plane
|
482
|
-
* pixelX -- normalized distance (to pixels) - x plane
|
483
|
-
* pixelY -- " - y plane
|
484
|
-
*
|
485
|
-
* Wheel values are provided by the browser assuming you are using the wheel to
|
486
|
-
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
487
|
-
* significantly on different platforms and browsers, forgetting that you can
|
488
|
-
* scroll at different speeds. Some devices (like trackpads) emit more events
|
489
|
-
* at smaller increments with fine granularity, and some emit massive jumps with
|
490
|
-
* linear speed or acceleration.
|
491
|
-
*
|
492
|
-
* This code does its best to normalize the deltas for you:
|
493
|
-
*
|
494
|
-
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
495
|
-
* dragged). This is super useful for zoom support where you want to
|
496
|
-
* throw away the chunky scroll steps on the PC and make those equal to
|
497
|
-
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
498
|
-
* resolve a single slow step on a wheel to 1.
|
499
|
-
*
|
500
|
-
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
501
|
-
* get the crazy differences between browsers, but at least it'll be in
|
502
|
-
* pixels!
|
503
|
-
*
|
504
|
-
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
505
|
-
* should translate to positive value zooming IN, negative zooming OUT.
|
506
|
-
* This matches the newer 'wheel' event.
|
507
|
-
*
|
508
|
-
* Why are there spinX, spinY (or pixels)?
|
509
|
-
*
|
510
|
-
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
511
|
-
* with a mouse. It results in side-scrolling in the browser by default.
|
512
|
-
*
|
513
|
-
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
514
|
-
*
|
515
|
-
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
516
|
-
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
517
|
-
* you know.
|
518
|
-
*
|
519
|
-
* Implementation info:
|
520
|
-
*
|
521
|
-
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
522
|
-
* average mouse:
|
523
|
-
*
|
524
|
-
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
525
|
-
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
526
|
-
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
527
|
-
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
528
|
-
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
529
|
-
*
|
530
|
-
* On the trackpad:
|
531
|
-
*
|
532
|
-
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
533
|
-
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
534
|
-
*
|
535
|
-
* On other/older browsers.. it's more complicated as there can be multiple and
|
536
|
-
* also missing delta values.
|
537
|
-
*
|
538
|
-
* The 'wheel' event is more standard:
|
539
|
-
*
|
540
|
-
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
541
|
-
*
|
542
|
-
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
543
|
-
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
544
|
-
* backward compatibility with older events. Those other values help us
|
545
|
-
* better normalize spin speed. Example of what the browsers provide:
|
546
|
-
*
|
547
|
-
* | event.wheelDelta | event.detail
|
548
|
-
* ------------------+------------------+--------------
|
549
|
-
* Safari v5/OS X | -120 | 0
|
550
|
-
* Safari v5/Win7 | -120 | 0
|
551
|
-
* Chrome v17/OS X | -120 | 0
|
552
|
-
* Chrome v17/Win7 | -120 | 0
|
553
|
-
* IE9/Win7 | -120 | undefined
|
554
|
-
* Firefox v4/OS X | undefined | 1
|
555
|
-
* Firefox v4/Win7 | undefined | 3
|
556
|
-
*
|
557
|
-
*/
|
558
|
-
function normalizeWheel(/*object*/ event) /*object*/ {
|
559
|
-
var sX = 0, sY = 0, // spinX, spinY
|
560
|
-
pX = 0, pY = 0; // pixelX, pixelY
|
561
|
-
|
562
|
-
// Legacy
|
563
|
-
if ('detail' in event) { sY = event.detail; }
|
564
|
-
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
565
|
-
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
566
|
-
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
567
|
-
|
568
|
-
// side scrolling on FF with DOMMouseScroll
|
569
|
-
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
570
|
-
sX = sY;
|
571
|
-
sY = 0;
|
572
|
-
}
|
573
|
-
|
574
|
-
pX = sX * PIXEL_STEP;
|
575
|
-
pY = sY * PIXEL_STEP;
|
576
|
-
|
577
|
-
if ('deltaY' in event) { pY = event.deltaY; }
|
578
|
-
if ('deltaX' in event) { pX = event.deltaX; }
|
579
|
-
|
580
|
-
if ((pX || pY) && event.deltaMode) {
|
581
|
-
if (event.deltaMode == 1) { // delta in LINE units
|
582
|
-
pX *= LINE_HEIGHT;
|
583
|
-
pY *= LINE_HEIGHT;
|
584
|
-
} else { // delta in PAGE units
|
585
|
-
pX *= PAGE_HEIGHT;
|
586
|
-
pY *= PAGE_HEIGHT;
|
587
|
-
}
|
588
|
-
}
|
589
|
-
|
590
|
-
// Fall-back if spin cannot be determined
|
591
|
-
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
592
|
-
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
593
|
-
|
594
|
-
return { spinX : sX,
|
595
|
-
spinY : sY,
|
596
|
-
pixelX : pX,
|
597
|
-
pixelY : pY };
|
598
|
-
}
|
599
|
-
|
600
|
-
|
601
|
-
/**
|
602
|
-
* The best combination if you prefer spinX + spinY normalization. It favors
|
603
|
-
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
604
|
-
* 'wheel' event, making spin speed determination impossible.
|
605
|
-
*/
|
606
|
-
normalizeWheel.getEventType = function() /*string*/ {
|
607
|
-
return (UserAgent_DEPRECATED.firefox())
|
608
|
-
? 'DOMMouseScroll'
|
609
|
-
: (isEventSupported('wheel'))
|
610
|
-
? 'wheel'
|
611
|
-
: 'mousewheel';
|
612
|
-
};
|
613
|
-
|
614
|
-
module.exports = normalizeWheel;
|
614
|
+
module.exports = __webpack_require__(5022);
|
615
615
|
|
616
616
|
|
617
617
|
/***/ })
|
@@ -674,8 +674,6 @@ module.exports = normalizeWheel;
|
|
674
674
|
/******/
|
675
675
|
/************************************************************************/
|
676
676
|
var __webpack_exports__ = {};
|
677
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
678
|
-
(() => {
|
679
677
|
|
680
678
|
// EXPORTS
|
681
679
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -686,11 +684,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
686
684
|
"default": () => (/* binding */ src)
|
687
685
|
});
|
688
686
|
|
689
|
-
;//
|
690
|
-
var x = y => {
|
691
|
-
var
|
692
|
-
|
693
|
-
|
687
|
+
;// external "../shared"
|
688
|
+
var x = (y) => {
|
689
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
690
|
+
}
|
691
|
+
var y = (x) => (() => (x))
|
692
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["renderDirectiveType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["withInstallProps"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps) });
|
693
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
694
694
|
function _typeof(o) {
|
695
695
|
"@babel/helpers - typeof";
|
696
696
|
|
@@ -700,7 +700,7 @@ function _typeof(o) {
|
|
700
700
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
701
701
|
}, _typeof(o);
|
702
702
|
}
|
703
|
-
;//
|
703
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
704
704
|
|
705
705
|
function toPrimitive(t, r) {
|
706
706
|
if ("object" != _typeof(t) || !t) return t;
|
@@ -712,14 +712,14 @@ function toPrimitive(t, r) {
|
|
712
712
|
}
|
713
713
|
return ("string" === r ? String : Number)(t);
|
714
714
|
}
|
715
|
-
;//
|
715
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
716
716
|
|
717
717
|
|
718
718
|
function toPropertyKey(t) {
|
719
719
|
var i = toPrimitive(t, "string");
|
720
720
|
return "symbol" == _typeof(i) ? i : String(i);
|
721
721
|
}
|
722
|
-
;//
|
722
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
723
723
|
|
724
724
|
function _defineProperty(obj, key, value) {
|
725
725
|
key = toPropertyKey(key);
|
@@ -735,11 +735,13 @@ function _defineProperty(obj, key, value) {
|
|
735
735
|
}
|
736
736
|
return obj;
|
737
737
|
}
|
738
|
-
;//
|
739
|
-
var external_vue_types_x = y => {
|
740
|
-
var
|
741
|
-
|
742
|
-
|
738
|
+
;// external "vue-types"
|
739
|
+
var external_vue_types_x = (y) => {
|
740
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
741
|
+
}
|
742
|
+
var external_vue_types_y = (x) => (() => (x))
|
743
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
|
744
|
+
;// ../../packages/tab/src/props.ts
|
743
745
|
|
744
746
|
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; }
|
745
747
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -879,22 +881,22 @@ var tabNavProps = _objectSpread({
|
|
879
881
|
labelHeight: shared_namespaceObject.PropTypes.number.def(50),
|
880
882
|
validateActive: shared_namespaceObject.PropTypes.bool.def(true)
|
881
883
|
}, tabNavEventProps);
|
882
|
-
;//
|
884
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
883
885
|
function _arrayLikeToArray(arr, len) {
|
884
886
|
if (len == null || len > arr.length) len = arr.length;
|
885
887
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
886
888
|
return arr2;
|
887
889
|
}
|
888
|
-
;//
|
890
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
889
891
|
|
890
892
|
function _arrayWithoutHoles(arr) {
|
891
893
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
892
894
|
}
|
893
|
-
;//
|
895
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
894
896
|
function _iterableToArray(iter) {
|
895
897
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
896
898
|
}
|
897
|
-
;//
|
899
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
898
900
|
|
899
901
|
function _unsupportedIterableToArray(o, minLen) {
|
900
902
|
if (!o) return;
|
@@ -904,11 +906,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
904
906
|
if (n === "Map" || n === "Set") return Array.from(o);
|
905
907
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
906
908
|
}
|
907
|
-
;//
|
909
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
908
910
|
function _nonIterableSpread() {
|
909
911
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
910
912
|
}
|
911
|
-
;//
|
913
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
912
914
|
|
913
915
|
|
914
916
|
|
@@ -916,15 +918,19 @@ function _nonIterableSpread() {
|
|
916
918
|
function _toConsumableArray(arr) {
|
917
919
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
918
920
|
}
|
919
|
-
;//
|
920
|
-
var external_vue_x = y => {
|
921
|
-
var
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
921
|
+
;// external "vue"
|
922
|
+
var external_vue_x = (y) => {
|
923
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
924
|
+
}
|
925
|
+
var external_vue_y = (x) => (() => (x))
|
926
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Fragment), ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["getCurrentInstance"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["onUpdated"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onUpdated), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["vShow"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vShow), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
927
|
+
;// external "../config-provider"
|
928
|
+
var config_provider_x = (y) => {
|
929
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
930
|
+
}
|
931
|
+
var config_provider_y = (x) => (() => (x))
|
932
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
933
|
+
;// ../../packages/directives/src/clickoutside.ts
|
928
934
|
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; } } }; }
|
929
935
|
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); }
|
930
936
|
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; }
|
@@ -1050,11 +1056,13 @@ ClickOutside.install = function (app) {
|
|
1050
1056
|
app.directive('bkTooltips', ClickOutside);
|
1051
1057
|
};
|
1052
1058
|
/* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
|
1053
|
-
;//
|
1054
|
-
var
|
1055
|
-
var
|
1056
|
-
|
1057
|
-
|
1059
|
+
;// external "../popover"
|
1060
|
+
var popover_x = (y) => {
|
1061
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1062
|
+
}
|
1063
|
+
var popover_y = (x) => (() => (x))
|
1064
|
+
const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover) });
|
1065
|
+
;// ../../packages/directives/src/ellipsis.ts
|
1058
1066
|
|
1059
1067
|
/*
|
1060
1068
|
* Tencent is pleased to support the open source community by making
|
@@ -1131,7 +1139,7 @@ var createInstance = function createInstance(el, binding) {
|
|
1131
1139
|
onContentMouseenter: handleContentEnter,
|
1132
1140
|
onContentMouseleave: handleContentLeave
|
1133
1141
|
});
|
1134
|
-
instance = (0,
|
1142
|
+
instance = (0,popover_namespaceObject.$bkPopover)(targetOptions);
|
1135
1143
|
}, 300);
|
1136
1144
|
};
|
1137
1145
|
var handleMouseLeave = function handleMouseLeave() {
|
@@ -1165,9 +1173,9 @@ var ellipsis = {
|
|
1165
1173
|
};
|
1166
1174
|
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
1167
1175
|
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
1168
|
-
var normalize_wheel = __webpack_require__(
|
1176
|
+
var normalize_wheel = __webpack_require__(8283);
|
1169
1177
|
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
1170
|
-
;//
|
1178
|
+
;// ../../packages/directives/src/mousewheel.ts
|
1171
1179
|
/*
|
1172
1180
|
* Tencent is pleased to support the open source community by making
|
1173
1181
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1209,11 +1217,13 @@ var mousewheel = {
|
|
1209
1217
|
}
|
1210
1218
|
};
|
1211
1219
|
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
1212
|
-
;//
|
1213
|
-
var core_x = y => {
|
1214
|
-
var
|
1215
|
-
|
1216
|
-
|
1220
|
+
;// external "@popperjs/core"
|
1221
|
+
var core_x = (y) => {
|
1222
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1223
|
+
}
|
1224
|
+
var core_y = (x) => (() => (x))
|
1225
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
1226
|
+
;// ../../packages/directives/src/tooltips.ts
|
1217
1227
|
|
1218
1228
|
|
1219
1229
|
|
@@ -1505,15 +1515,19 @@ function hide(el) {
|
|
1505
1515
|
}
|
1506
1516
|
}
|
1507
1517
|
/* harmony default export */ const src_tooltips = (tooltips);
|
1508
|
-
;//
|
1509
|
-
var external_loading_x = y => {
|
1510
|
-
var
|
1518
|
+
;// external "../loading"
|
1519
|
+
var external_loading_x = (y) => {
|
1520
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1521
|
+
}
|
1522
|
+
var external_loading_y = (x) => (() => (x))
|
1511
1523
|
const external_loading_namespaceObject = external_loading_x({ });
|
1512
|
-
;//
|
1513
|
-
var external_overflow_title_x = y => {
|
1514
|
-
var
|
1524
|
+
;// external "../overflow-title"
|
1525
|
+
var external_overflow_title_x = (y) => {
|
1526
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1527
|
+
}
|
1528
|
+
var external_overflow_title_y = (x) => (() => (x))
|
1515
1529
|
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
1516
|
-
;//
|
1530
|
+
;// ../../packages/directives/src/index.ts
|
1517
1531
|
/*
|
1518
1532
|
* Tencent is pleased to support the open source community by making
|
1519
1533
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1546,11 +1560,13 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
1546
1560
|
|
1547
1561
|
|
1548
1562
|
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
1549
|
-
;//
|
1550
|
-
var icon_x = y => {
|
1551
|
-
var
|
1552
|
-
|
1553
|
-
|
1563
|
+
;// external "../icon"
|
1564
|
+
var icon_x = (y) => {
|
1565
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1566
|
+
}
|
1567
|
+
var icon_y = (x) => (() => (x))
|
1568
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close), ["Plus"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Plus) });
|
1569
|
+
;// ../../packages/tab/src/tab-nav.tsx
|
1554
1570
|
|
1555
1571
|
|
1556
1572
|
function tab_nav_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; }
|
@@ -1897,7 +1913,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
1897
1913
|
}, [renderActiveBar(), renderNavs()]), operations, setting]);
|
1898
1914
|
}
|
1899
1915
|
}));
|
1900
|
-
;//
|
1916
|
+
;// ../../packages/tab/src/tab.tsx
|
1901
1917
|
|
1902
1918
|
|
1903
1919
|
|
@@ -2112,7 +2128,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
2112
2128
|
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)])]);
|
2113
2129
|
}
|
2114
2130
|
}));
|
2115
|
-
;//
|
2131
|
+
;// ../../packages/tab/src/tab-panel.tsx
|
2116
2132
|
|
2117
2133
|
/*
|
2118
2134
|
* Tencent is pleased to support the open source community by making
|
@@ -2172,7 +2188,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
2172
2188
|
}, [getContent()]), [[external_vue_namespaceObject.vShow, active]]);
|
2173
2189
|
}
|
2174
2190
|
}));
|
2175
|
-
;//
|
2191
|
+
;// ../../packages/tab/src/index.ts
|
2176
2192
|
|
2177
2193
|
|
2178
2194
|
|
@@ -2182,8 +2198,6 @@ var BkTab = (0,shared_namespaceObject.withInstallProps)(tab, {
|
|
2182
2198
|
});
|
2183
2199
|
|
2184
2200
|
/* harmony default export */ const src = (BkTab);
|
2185
|
-
})();
|
2186
|
-
|
2187
2201
|
var __webpack_exports__BkTab = __webpack_exports__.BkTab;
|
2188
2202
|
var __webpack_exports__BkTabPanel = __webpack_exports__.BkTabPanel;
|
2189
2203
|
var __webpack_exports__PositionEnum = __webpack_exports__.PositionEnum;
|