bkui-vue 2.0.2-beta.5 → 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 +17 -17
- package/dist/index.esm.js +1570 -1574
- 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.js +49 -33
- 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/popover/index.js
CHANGED
@@ -2,7 +2,7 @@ import "../styles/reset.css";
|
|
2
2
|
import "./popover.less";
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
@@ -12,15 +12,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/i
|
|
12
12
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__ from "lodash/random";
|
13
13
|
/******/ var __webpack_modules__ = ({
|
14
14
|
|
15
|
-
/***/
|
16
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
17
|
-
|
18
|
-
module.exports = __webpack_require__(2527);
|
19
|
-
|
20
|
-
|
21
|
-
/***/ }),
|
22
|
-
|
23
|
-
/***/ 7430:
|
15
|
+
/***/ 1043:
|
24
16
|
/***/ ((module) => {
|
25
17
|
|
26
18
|
/**
|
@@ -70,7 +62,265 @@ module.exports = ExecutionEnvironment;
|
|
70
62
|
|
71
63
|
/***/ }),
|
72
64
|
|
73
|
-
/***/
|
65
|
+
/***/ 2586:
|
66
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
67
|
+
|
68
|
+
/**
|
69
|
+
* Copyright 2013-2015, Facebook, Inc.
|
70
|
+
* All rights reserved.
|
71
|
+
*
|
72
|
+
* This source code is licensed under the BSD-style license found in the
|
73
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
74
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
75
|
+
*
|
76
|
+
* @providesModule isEventSupported
|
77
|
+
*/
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
var ExecutionEnvironment = __webpack_require__(1043);
|
82
|
+
|
83
|
+
var useHasFeature;
|
84
|
+
if (ExecutionEnvironment.canUseDOM) {
|
85
|
+
useHasFeature =
|
86
|
+
document.implementation &&
|
87
|
+
document.implementation.hasFeature &&
|
88
|
+
// always returns true in newer browsers as per the standard.
|
89
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
90
|
+
document.implementation.hasFeature('', '') !== true;
|
91
|
+
}
|
92
|
+
|
93
|
+
/**
|
94
|
+
* Checks if an event is supported in the current execution environment.
|
95
|
+
*
|
96
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
97
|
+
* `reset`, `load`, `error`, and `select`.
|
98
|
+
*
|
99
|
+
* Borrows from Modernizr.
|
100
|
+
*
|
101
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
102
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
103
|
+
* @return {boolean} True if the event is supported.
|
104
|
+
* @internal
|
105
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
106
|
+
*/
|
107
|
+
function isEventSupported(eventNameSuffix, capture) {
|
108
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
109
|
+
capture && !('addEventListener' in document)) {
|
110
|
+
return false;
|
111
|
+
}
|
112
|
+
|
113
|
+
var eventName = 'on' + eventNameSuffix;
|
114
|
+
var isSupported = eventName in document;
|
115
|
+
|
116
|
+
if (!isSupported) {
|
117
|
+
var element = document.createElement('div');
|
118
|
+
element.setAttribute(eventName, 'return;');
|
119
|
+
isSupported = typeof element[eventName] === 'function';
|
120
|
+
}
|
121
|
+
|
122
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
123
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
124
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
125
|
+
}
|
126
|
+
|
127
|
+
return isSupported;
|
128
|
+
}
|
129
|
+
|
130
|
+
module.exports = isEventSupported;
|
131
|
+
|
132
|
+
|
133
|
+
/***/ }),
|
134
|
+
|
135
|
+
/***/ 5022:
|
136
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Copyright (c) 2015, Facebook, Inc.
|
140
|
+
* All rights reserved.
|
141
|
+
*
|
142
|
+
* This source code is licensed under the BSD-style license found in the
|
143
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
144
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
145
|
+
*
|
146
|
+
* @providesModule normalizeWheel
|
147
|
+
* @typechecks
|
148
|
+
*/
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
153
|
+
|
154
|
+
var isEventSupported = __webpack_require__(2586);
|
155
|
+
|
156
|
+
|
157
|
+
// Reasonable defaults
|
158
|
+
var PIXEL_STEP = 10;
|
159
|
+
var LINE_HEIGHT = 40;
|
160
|
+
var PAGE_HEIGHT = 800;
|
161
|
+
|
162
|
+
/**
|
163
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
164
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
165
|
+
* your questions.
|
166
|
+
*
|
167
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
168
|
+
* like your bestest friend. * hugs *
|
169
|
+
*
|
170
|
+
* As of today, there are 4 DOM event types you can listen to:
|
171
|
+
*
|
172
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
173
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
174
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
175
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
176
|
+
*
|
177
|
+
* So what to do? The is the best:
|
178
|
+
*
|
179
|
+
* normalizeWheel.getEventType();
|
180
|
+
*
|
181
|
+
* In your event callback, use this code to get sane interpretation of the
|
182
|
+
* deltas. This code will return an object with properties:
|
183
|
+
*
|
184
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
185
|
+
* spinY -- " - y plane
|
186
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
187
|
+
* pixelY -- " - y plane
|
188
|
+
*
|
189
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
190
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
191
|
+
* significantly on different platforms and browsers, forgetting that you can
|
192
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
193
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
194
|
+
* linear speed or acceleration.
|
195
|
+
*
|
196
|
+
* This code does its best to normalize the deltas for you:
|
197
|
+
*
|
198
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
199
|
+
* dragged). This is super useful for zoom support where you want to
|
200
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
201
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
202
|
+
* resolve a single slow step on a wheel to 1.
|
203
|
+
*
|
204
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
205
|
+
* get the crazy differences between browsers, but at least it'll be in
|
206
|
+
* pixels!
|
207
|
+
*
|
208
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
209
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
210
|
+
* This matches the newer 'wheel' event.
|
211
|
+
*
|
212
|
+
* Why are there spinX, spinY (or pixels)?
|
213
|
+
*
|
214
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
215
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
216
|
+
*
|
217
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
218
|
+
*
|
219
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
220
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
221
|
+
* you know.
|
222
|
+
*
|
223
|
+
* Implementation info:
|
224
|
+
*
|
225
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
226
|
+
* average mouse:
|
227
|
+
*
|
228
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
229
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
230
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
231
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
232
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
233
|
+
*
|
234
|
+
* On the trackpad:
|
235
|
+
*
|
236
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
237
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
238
|
+
*
|
239
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
240
|
+
* also missing delta values.
|
241
|
+
*
|
242
|
+
* The 'wheel' event is more standard:
|
243
|
+
*
|
244
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
245
|
+
*
|
246
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
247
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
248
|
+
* backward compatibility with older events. Those other values help us
|
249
|
+
* better normalize spin speed. Example of what the browsers provide:
|
250
|
+
*
|
251
|
+
* | event.wheelDelta | event.detail
|
252
|
+
* ------------------+------------------+--------------
|
253
|
+
* Safari v5/OS X | -120 | 0
|
254
|
+
* Safari v5/Win7 | -120 | 0
|
255
|
+
* Chrome v17/OS X | -120 | 0
|
256
|
+
* Chrome v17/Win7 | -120 | 0
|
257
|
+
* IE9/Win7 | -120 | undefined
|
258
|
+
* Firefox v4/OS X | undefined | 1
|
259
|
+
* Firefox v4/Win7 | undefined | 3
|
260
|
+
*
|
261
|
+
*/
|
262
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
263
|
+
var sX = 0, sY = 0, // spinX, spinY
|
264
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
265
|
+
|
266
|
+
// Legacy
|
267
|
+
if ('detail' in event) { sY = event.detail; }
|
268
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
269
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
270
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
271
|
+
|
272
|
+
// side scrolling on FF with DOMMouseScroll
|
273
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
274
|
+
sX = sY;
|
275
|
+
sY = 0;
|
276
|
+
}
|
277
|
+
|
278
|
+
pX = sX * PIXEL_STEP;
|
279
|
+
pY = sY * PIXEL_STEP;
|
280
|
+
|
281
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
282
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
283
|
+
|
284
|
+
if ((pX || pY) && event.deltaMode) {
|
285
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
286
|
+
pX *= LINE_HEIGHT;
|
287
|
+
pY *= LINE_HEIGHT;
|
288
|
+
} else { // delta in PAGE units
|
289
|
+
pX *= PAGE_HEIGHT;
|
290
|
+
pY *= PAGE_HEIGHT;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
|
294
|
+
// Fall-back if spin cannot be determined
|
295
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
296
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
297
|
+
|
298
|
+
return { spinX : sX,
|
299
|
+
spinY : sY,
|
300
|
+
pixelX : pX,
|
301
|
+
pixelY : pY };
|
302
|
+
}
|
303
|
+
|
304
|
+
|
305
|
+
/**
|
306
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
307
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
308
|
+
* 'wheel' event, making spin speed determination impossible.
|
309
|
+
*/
|
310
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
311
|
+
return (UserAgent_DEPRECATED.firefox())
|
312
|
+
? 'DOMMouseScroll'
|
313
|
+
: (isEventSupported('wheel'))
|
314
|
+
? 'wheel'
|
315
|
+
: 'mousewheel';
|
316
|
+
};
|
317
|
+
|
318
|
+
module.exports = normalizeWheel;
|
319
|
+
|
320
|
+
|
321
|
+
/***/ }),
|
322
|
+
|
323
|
+
/***/ 7416:
|
74
324
|
/***/ ((module) => {
|
75
325
|
|
76
326
|
/**
|
@@ -359,260 +609,10 @@ module.exports = UserAgent_DEPRECATED;
|
|
359
609
|
|
360
610
|
/***/ }),
|
361
611
|
|
362
|
-
/***/
|
612
|
+
/***/ 8283:
|
363
613
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
364
614
|
|
365
|
-
|
366
|
-
* Copyright 2013-2015, Facebook, Inc.
|
367
|
-
* All rights reserved.
|
368
|
-
*
|
369
|
-
* This source code is licensed under the BSD-style license found in the
|
370
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
371
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
372
|
-
*
|
373
|
-
* @providesModule isEventSupported
|
374
|
-
*/
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
var ExecutionEnvironment = __webpack_require__(7430);
|
379
|
-
|
380
|
-
var useHasFeature;
|
381
|
-
if (ExecutionEnvironment.canUseDOM) {
|
382
|
-
useHasFeature =
|
383
|
-
document.implementation &&
|
384
|
-
document.implementation.hasFeature &&
|
385
|
-
// always returns true in newer browsers as per the standard.
|
386
|
-
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
387
|
-
document.implementation.hasFeature('', '') !== true;
|
388
|
-
}
|
389
|
-
|
390
|
-
/**
|
391
|
-
* Checks if an event is supported in the current execution environment.
|
392
|
-
*
|
393
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
394
|
-
* `reset`, `load`, `error`, and `select`.
|
395
|
-
*
|
396
|
-
* Borrows from Modernizr.
|
397
|
-
*
|
398
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
399
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
400
|
-
* @return {boolean} True if the event is supported.
|
401
|
-
* @internal
|
402
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
403
|
-
*/
|
404
|
-
function isEventSupported(eventNameSuffix, capture) {
|
405
|
-
if (!ExecutionEnvironment.canUseDOM ||
|
406
|
-
capture && !('addEventListener' in document)) {
|
407
|
-
return false;
|
408
|
-
}
|
409
|
-
|
410
|
-
var eventName = 'on' + eventNameSuffix;
|
411
|
-
var isSupported = eventName in document;
|
412
|
-
|
413
|
-
if (!isSupported) {
|
414
|
-
var element = document.createElement('div');
|
415
|
-
element.setAttribute(eventName, 'return;');
|
416
|
-
isSupported = typeof element[eventName] === 'function';
|
417
|
-
}
|
418
|
-
|
419
|
-
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
420
|
-
// This is the only way to test support for the `wheel` event in IE9+.
|
421
|
-
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
422
|
-
}
|
423
|
-
|
424
|
-
return isSupported;
|
425
|
-
}
|
426
|
-
|
427
|
-
module.exports = isEventSupported;
|
428
|
-
|
429
|
-
|
430
|
-
/***/ }),
|
431
|
-
|
432
|
-
/***/ 2527:
|
433
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
434
|
-
|
435
|
-
/**
|
436
|
-
* Copyright (c) 2015, Facebook, Inc.
|
437
|
-
* All rights reserved.
|
438
|
-
*
|
439
|
-
* This source code is licensed under the BSD-style license found in the
|
440
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
441
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
442
|
-
*
|
443
|
-
* @providesModule normalizeWheel
|
444
|
-
* @typechecks
|
445
|
-
*/
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
var UserAgent_DEPRECATED = __webpack_require__(6377);
|
450
|
-
|
451
|
-
var isEventSupported = __webpack_require__(3541);
|
452
|
-
|
453
|
-
|
454
|
-
// Reasonable defaults
|
455
|
-
var PIXEL_STEP = 10;
|
456
|
-
var LINE_HEIGHT = 40;
|
457
|
-
var PAGE_HEIGHT = 800;
|
458
|
-
|
459
|
-
/**
|
460
|
-
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
461
|
-
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
462
|
-
* your questions.
|
463
|
-
*
|
464
|
-
* If you need to react to the mouse wheel in a predictable way, this code is
|
465
|
-
* like your bestest friend. * hugs *
|
466
|
-
*
|
467
|
-
* As of today, there are 4 DOM event types you can listen to:
|
468
|
-
*
|
469
|
-
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
470
|
-
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
471
|
-
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
472
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
473
|
-
*
|
474
|
-
* So what to do? The is the best:
|
475
|
-
*
|
476
|
-
* normalizeWheel.getEventType();
|
477
|
-
*
|
478
|
-
* In your event callback, use this code to get sane interpretation of the
|
479
|
-
* deltas. This code will return an object with properties:
|
480
|
-
*
|
481
|
-
* spinX -- normalized spin speed (use for zoom) - x plane
|
482
|
-
* spinY -- " - y plane
|
483
|
-
* pixelX -- normalized distance (to pixels) - x plane
|
484
|
-
* pixelY -- " - y plane
|
485
|
-
*
|
486
|
-
* Wheel values are provided by the browser assuming you are using the wheel to
|
487
|
-
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
488
|
-
* significantly on different platforms and browsers, forgetting that you can
|
489
|
-
* scroll at different speeds. Some devices (like trackpads) emit more events
|
490
|
-
* at smaller increments with fine granularity, and some emit massive jumps with
|
491
|
-
* linear speed or acceleration.
|
492
|
-
*
|
493
|
-
* This code does its best to normalize the deltas for you:
|
494
|
-
*
|
495
|
-
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
496
|
-
* dragged). This is super useful for zoom support where you want to
|
497
|
-
* throw away the chunky scroll steps on the PC and make those equal to
|
498
|
-
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
499
|
-
* resolve a single slow step on a wheel to 1.
|
500
|
-
*
|
501
|
-
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
502
|
-
* get the crazy differences between browsers, but at least it'll be in
|
503
|
-
* pixels!
|
504
|
-
*
|
505
|
-
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
506
|
-
* should translate to positive value zooming IN, negative zooming OUT.
|
507
|
-
* This matches the newer 'wheel' event.
|
508
|
-
*
|
509
|
-
* Why are there spinX, spinY (or pixels)?
|
510
|
-
*
|
511
|
-
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
512
|
-
* with a mouse. It results in side-scrolling in the browser by default.
|
513
|
-
*
|
514
|
-
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
515
|
-
*
|
516
|
-
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
517
|
-
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
518
|
-
* you know.
|
519
|
-
*
|
520
|
-
* Implementation info:
|
521
|
-
*
|
522
|
-
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
523
|
-
* average mouse:
|
524
|
-
*
|
525
|
-
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
526
|
-
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
527
|
-
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
528
|
-
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
529
|
-
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
530
|
-
*
|
531
|
-
* On the trackpad:
|
532
|
-
*
|
533
|
-
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
534
|
-
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
535
|
-
*
|
536
|
-
* On other/older browsers.. it's more complicated as there can be multiple and
|
537
|
-
* also missing delta values.
|
538
|
-
*
|
539
|
-
* The 'wheel' event is more standard:
|
540
|
-
*
|
541
|
-
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
542
|
-
*
|
543
|
-
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
544
|
-
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
545
|
-
* backward compatibility with older events. Those other values help us
|
546
|
-
* better normalize spin speed. Example of what the browsers provide:
|
547
|
-
*
|
548
|
-
* | event.wheelDelta | event.detail
|
549
|
-
* ------------------+------------------+--------------
|
550
|
-
* Safari v5/OS X | -120 | 0
|
551
|
-
* Safari v5/Win7 | -120 | 0
|
552
|
-
* Chrome v17/OS X | -120 | 0
|
553
|
-
* Chrome v17/Win7 | -120 | 0
|
554
|
-
* IE9/Win7 | -120 | undefined
|
555
|
-
* Firefox v4/OS X | undefined | 1
|
556
|
-
* Firefox v4/Win7 | undefined | 3
|
557
|
-
*
|
558
|
-
*/
|
559
|
-
function normalizeWheel(/*object*/ event) /*object*/ {
|
560
|
-
var sX = 0, sY = 0, // spinX, spinY
|
561
|
-
pX = 0, pY = 0; // pixelX, pixelY
|
562
|
-
|
563
|
-
// Legacy
|
564
|
-
if ('detail' in event) { sY = event.detail; }
|
565
|
-
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
566
|
-
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
567
|
-
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
568
|
-
|
569
|
-
// side scrolling on FF with DOMMouseScroll
|
570
|
-
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
571
|
-
sX = sY;
|
572
|
-
sY = 0;
|
573
|
-
}
|
574
|
-
|
575
|
-
pX = sX * PIXEL_STEP;
|
576
|
-
pY = sY * PIXEL_STEP;
|
577
|
-
|
578
|
-
if ('deltaY' in event) { pY = event.deltaY; }
|
579
|
-
if ('deltaX' in event) { pX = event.deltaX; }
|
580
|
-
|
581
|
-
if ((pX || pY) && event.deltaMode) {
|
582
|
-
if (event.deltaMode == 1) { // delta in LINE units
|
583
|
-
pX *= LINE_HEIGHT;
|
584
|
-
pY *= LINE_HEIGHT;
|
585
|
-
} else { // delta in PAGE units
|
586
|
-
pX *= PAGE_HEIGHT;
|
587
|
-
pY *= PAGE_HEIGHT;
|
588
|
-
}
|
589
|
-
}
|
590
|
-
|
591
|
-
// Fall-back if spin cannot be determined
|
592
|
-
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
593
|
-
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
594
|
-
|
595
|
-
return { spinX : sX,
|
596
|
-
spinY : sY,
|
597
|
-
pixelX : pX,
|
598
|
-
pixelY : pY };
|
599
|
-
}
|
600
|
-
|
601
|
-
|
602
|
-
/**
|
603
|
-
* The best combination if you prefer spinX + spinY normalization. It favors
|
604
|
-
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
605
|
-
* 'wheel' event, making spin speed determination impossible.
|
606
|
-
*/
|
607
|
-
normalizeWheel.getEventType = function() /*string*/ {
|
608
|
-
return (UserAgent_DEPRECATED.firefox())
|
609
|
-
? 'DOMMouseScroll'
|
610
|
-
: (isEventSupported('wheel'))
|
611
|
-
? 'wheel'
|
612
|
-
: 'mousewheel';
|
613
|
-
};
|
614
|
-
|
615
|
-
module.exports = normalizeWheel;
|
615
|
+
module.exports = __webpack_require__(5022);
|
616
616
|
|
617
617
|
|
618
618
|
/***/ })
|
@@ -675,8 +675,6 @@ module.exports = normalizeWheel;
|
|
675
675
|
/******/
|
676
676
|
/************************************************************************/
|
677
677
|
var __webpack_exports__ = {};
|
678
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
679
|
-
(() => {
|
680
678
|
|
681
679
|
// EXPORTS
|
682
680
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -685,15 +683,19 @@ __webpack_require__.d(__webpack_exports__, {
|
|
685
683
|
"default": () => (/* binding */ src)
|
686
684
|
});
|
687
685
|
|
688
|
-
;//
|
689
|
-
var x = y => {
|
690
|
-
var
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
686
|
+
;// external "../shared"
|
687
|
+
var x = (y) => {
|
688
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
689
|
+
}
|
690
|
+
var y = (x) => (() => (x))
|
691
|
+
const shared_namespaceObject = x({ ["PlacementEnum"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum), ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["RenderType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["placementType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType), ["renderDirectiveType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType), ["renderType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["triggerType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType), ["withInstall"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall) });
|
692
|
+
;// external "vue"
|
693
|
+
var external_vue_x = (y) => {
|
694
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
695
|
+
}
|
696
|
+
var external_vue_y = (x) => (() => (x))
|
697
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Fragment), ["Teleport"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Teleport), ["Text"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Text), ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createApp"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createApp), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["isVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.isVNode), ["mergeProps"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.mergeProps), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onBeforeUnmount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["toRefs"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRefs), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
698
|
+
;// ../../packages/directives/src/clickoutside.ts
|
697
699
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
698
700
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
699
701
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
@@ -819,7 +821,7 @@ ClickOutside.install = function (app) {
|
|
819
821
|
app.directive('bkTooltips', ClickOutside);
|
820
822
|
};
|
821
823
|
/* harmony default export */ const clickoutside = (ClickOutside);
|
822
|
-
;//
|
824
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
823
825
|
function _typeof(o) {
|
824
826
|
"@babel/helpers - typeof";
|
825
827
|
|
@@ -829,11 +831,13 @@ function _typeof(o) {
|
|
829
831
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
830
832
|
}, _typeof(o);
|
831
833
|
}
|
832
|
-
;//
|
833
|
-
var
|
834
|
-
var
|
835
|
-
|
836
|
-
|
834
|
+
;// external "../popover"
|
835
|
+
var popover_x = (y) => {
|
836
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
837
|
+
}
|
838
|
+
var popover_y = (x) => (() => (x))
|
839
|
+
const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover) });
|
840
|
+
;// ../../packages/directives/src/ellipsis.ts
|
837
841
|
|
838
842
|
/*
|
839
843
|
* Tencent is pleased to support the open source community by making
|
@@ -910,7 +914,7 @@ var createInstance = function createInstance(el, binding) {
|
|
910
914
|
onContentMouseenter: handleContentEnter,
|
911
915
|
onContentMouseleave: handleContentLeave
|
912
916
|
});
|
913
|
-
instance = (0,
|
917
|
+
instance = (0,popover_namespaceObject.$bkPopover)(targetOptions);
|
914
918
|
}, 300);
|
915
919
|
};
|
916
920
|
var handleMouseLeave = function handleMouseLeave() {
|
@@ -944,9 +948,9 @@ var ellipsis = {
|
|
944
948
|
};
|
945
949
|
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
946
950
|
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
947
|
-
var normalize_wheel = __webpack_require__(
|
951
|
+
var normalize_wheel = __webpack_require__(8283);
|
948
952
|
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
949
|
-
;//
|
953
|
+
;// ../../packages/directives/src/mousewheel.ts
|
950
954
|
/*
|
951
955
|
* Tencent is pleased to support the open source community by making
|
952
956
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -988,7 +992,7 @@ var mousewheel = {
|
|
988
992
|
}
|
989
993
|
};
|
990
994
|
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
991
|
-
;//
|
995
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
992
996
|
|
993
997
|
function toPrimitive(t, r) {
|
994
998
|
if ("object" != _typeof(t) || !t) return t;
|
@@ -1000,14 +1004,14 @@ function toPrimitive(t, r) {
|
|
1000
1004
|
}
|
1001
1005
|
return ("string" === r ? String : Number)(t);
|
1002
1006
|
}
|
1003
|
-
;//
|
1007
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1004
1008
|
|
1005
1009
|
|
1006
1010
|
function toPropertyKey(t) {
|
1007
1011
|
var i = toPrimitive(t, "string");
|
1008
1012
|
return "symbol" == _typeof(i) ? i : String(i);
|
1009
1013
|
}
|
1010
|
-
;//
|
1014
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1011
1015
|
|
1012
1016
|
function _defineProperty(obj, key, value) {
|
1013
1017
|
key = toPropertyKey(key);
|
@@ -1023,22 +1027,22 @@ function _defineProperty(obj, key, value) {
|
|
1023
1027
|
}
|
1024
1028
|
return obj;
|
1025
1029
|
}
|
1026
|
-
;//
|
1030
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1027
1031
|
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
1028
1032
|
if (len == null || len > arr.length) len = arr.length;
|
1029
1033
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1030
1034
|
return arr2;
|
1031
1035
|
}
|
1032
|
-
;//
|
1036
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1033
1037
|
|
1034
1038
|
function _arrayWithoutHoles(arr) {
|
1035
1039
|
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
1036
1040
|
}
|
1037
|
-
;//
|
1041
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1038
1042
|
function _iterableToArray(iter) {
|
1039
1043
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1040
1044
|
}
|
1041
|
-
;//
|
1045
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1042
1046
|
|
1043
1047
|
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
1044
1048
|
if (!o) return;
|
@@ -1048,11 +1052,11 @@ function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
1048
1052
|
if (n === "Map" || n === "Set") return Array.from(o);
|
1049
1053
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1050
1054
|
}
|
1051
|
-
;//
|
1055
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1052
1056
|
function _nonIterableSpread() {
|
1053
1057
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1054
1058
|
}
|
1055
|
-
;//
|
1059
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1056
1060
|
|
1057
1061
|
|
1058
1062
|
|
@@ -1060,11 +1064,13 @@ function _nonIterableSpread() {
|
|
1060
1064
|
function _toConsumableArray(arr) {
|
1061
1065
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1062
1066
|
}
|
1063
|
-
;//
|
1064
|
-
var core_x = y => {
|
1065
|
-
var
|
1066
|
-
|
1067
|
-
|
1067
|
+
;// external "@popperjs/core"
|
1068
|
+
var core_x = (y) => {
|
1069
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1070
|
+
}
|
1071
|
+
var core_y = (x) => (() => (x))
|
1072
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
1073
|
+
;// ../../packages/directives/src/tooltips.ts
|
1068
1074
|
|
1069
1075
|
|
1070
1076
|
|
@@ -1356,15 +1362,19 @@ function hide(el) {
|
|
1356
1362
|
}
|
1357
1363
|
}
|
1358
1364
|
/* harmony default export */ const src_tooltips = ((/* unused pure expression or super */ null && (tooltips)));
|
1359
|
-
;//
|
1360
|
-
var external_loading_x = y => {
|
1361
|
-
var
|
1365
|
+
;// external "../loading"
|
1366
|
+
var external_loading_x = (y) => {
|
1367
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1368
|
+
}
|
1369
|
+
var external_loading_y = (x) => (() => (x))
|
1362
1370
|
const external_loading_namespaceObject = external_loading_x({ });
|
1363
|
-
;//
|
1364
|
-
var external_overflow_title_x = y => {
|
1365
|
-
var
|
1371
|
+
;// external "../overflow-title"
|
1372
|
+
var external_overflow_title_x = (y) => {
|
1373
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1374
|
+
}
|
1375
|
+
var external_overflow_title_y = (x) => (() => (x))
|
1366
1376
|
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
1367
|
-
;//
|
1377
|
+
;// ../../packages/directives/src/index.ts
|
1368
1378
|
/*
|
1369
1379
|
* Tencent is pleased to support the open source community by making
|
1370
1380
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1397,11 +1407,13 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
1397
1407
|
|
1398
1408
|
|
1399
1409
|
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
1400
|
-
;//
|
1401
|
-
var config_provider_x = y => {
|
1402
|
-
var
|
1403
|
-
|
1404
|
-
|
1410
|
+
;// external "../config-provider"
|
1411
|
+
var config_provider_x = (y) => {
|
1412
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1413
|
+
}
|
1414
|
+
var config_provider_y = (x) => (() => (x))
|
1415
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
1416
|
+
;// ../../packages/popover/src/arrow.tsx
|
1405
1417
|
|
1406
1418
|
/*
|
1407
1419
|
* Tencent is pleased to support the open source community by making
|
@@ -1441,7 +1453,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
1441
1453
|
}, null);
|
1442
1454
|
}
|
1443
1455
|
}));
|
1444
|
-
;//
|
1456
|
+
;// ../../packages/popover/src/const.tsx
|
1445
1457
|
|
1446
1458
|
/* eslint-disable @typescript-eslint/naming-convention */
|
1447
1459
|
/*
|
@@ -1487,7 +1499,7 @@ var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
|
|
1487
1499
|
return true;
|
1488
1500
|
};
|
1489
1501
|
var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN);
|
1490
|
-
;//
|
1502
|
+
;// ../../packages/popover/src/content.tsx
|
1491
1503
|
|
1492
1504
|
/*
|
1493
1505
|
* Tencent is pleased to support the open source community by making
|
@@ -1611,11 +1623,13 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
1611
1623
|
}, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
|
1612
1624
|
}
|
1613
1625
|
}));
|
1614
|
-
;//
|
1615
|
-
var external_vue_types_x = y => {
|
1616
|
-
var
|
1617
|
-
|
1618
|
-
|
1626
|
+
;// external "vue-types"
|
1627
|
+
var external_vue_types_x = (y) => {
|
1628
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1629
|
+
}
|
1630
|
+
var external_vue_types_y = (x) => (() => (x))
|
1631
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
|
1632
|
+
;// ../../packages/popover/src/props.ts
|
1619
1633
|
|
1620
1634
|
|
1621
1635
|
var EventProps = {
|
@@ -1718,7 +1732,7 @@ var PopoverProps = {
|
|
1718
1732
|
*/
|
1719
1733
|
forceClickoutside: shared_namespaceObject.PropTypes.bool.def(false)
|
1720
1734
|
};
|
1721
|
-
;//
|
1735
|
+
;// ../../packages/popover/src/reference.tsx
|
1722
1736
|
/*
|
1723
1737
|
* Tencent is pleased to support the open source community by making
|
1724
1738
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1752,7 +1766,7 @@ var PopoverProps = {
|
|
1752
1766
|
return (_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '';
|
1753
1767
|
}
|
1754
1768
|
}));
|
1755
|
-
;//
|
1769
|
+
;// ../../packages/popover/src/root.tsx
|
1756
1770
|
|
1757
1771
|
/*
|
1758
1772
|
* Tencent is pleased to support the open source community by making
|
@@ -1791,11 +1805,11 @@ var PopoverProps = {
|
|
1791
1805
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]);
|
1792
1806
|
}
|
1793
1807
|
}));
|
1794
|
-
;//
|
1808
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
1795
1809
|
function _arrayWithHoles(arr) {
|
1796
1810
|
if (Array.isArray(arr)) return arr;
|
1797
1811
|
}
|
1798
|
-
;//
|
1812
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
1799
1813
|
function _iterableToArrayLimit(r, l) {
|
1800
1814
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
1801
1815
|
if (null != t) {
|
@@ -1823,11 +1837,11 @@ function _iterableToArrayLimit(r, l) {
|
|
1823
1837
|
return a;
|
1824
1838
|
}
|
1825
1839
|
}
|
1826
|
-
;//
|
1840
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
1827
1841
|
function _nonIterableRest() {
|
1828
1842
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1829
1843
|
}
|
1830
|
-
;//
|
1844
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
1831
1845
|
|
1832
1846
|
|
1833
1847
|
|
@@ -1835,7 +1849,7 @@ function _nonIterableRest() {
|
|
1835
1849
|
function _slicedToArray(arr, i) {
|
1836
1850
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
1837
1851
|
}
|
1838
|
-
;//
|
1852
|
+
;// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
1839
1853
|
/**
|
1840
1854
|
* Custom positioning reference element.
|
1841
1855
|
* @see https://floating-ui.com/docs/virtual-elements
|
@@ -1966,7 +1980,7 @@ function rectToClientRect(rect) {
|
|
1966
1980
|
|
1967
1981
|
|
1968
1982
|
|
1969
|
-
;//
|
1983
|
+
;// ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
1970
1984
|
|
1971
1985
|
|
1972
1986
|
|
@@ -2990,7 +3004,7 @@ const size = function (options) {
|
|
2990
3004
|
|
2991
3005
|
|
2992
3006
|
|
2993
|
-
;//
|
3007
|
+
;// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
2994
3008
|
function getNodeName(node) {
|
2995
3009
|
if (isNode(node)) {
|
2996
3010
|
return (node.nodeName || '').toLowerCase();
|
@@ -3120,7 +3134,7 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
3120
3134
|
|
3121
3135
|
|
3122
3136
|
|
3123
|
-
;//
|
3137
|
+
;// ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
3124
3138
|
|
3125
3139
|
|
3126
3140
|
|
@@ -3785,20 +3799,24 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
|
|
3785
3799
|
|
3786
3800
|
|
3787
3801
|
|
3788
|
-
;//
|
3789
|
-
var isElement_x = y => {
|
3790
|
-
var
|
3791
|
-
|
3792
|
-
|
3793
|
-
|
3794
|
-
|
3795
|
-
|
3796
|
-
|
3802
|
+
;// external "lodash/isElement"
|
3803
|
+
var isElement_x = (y) => {
|
3804
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3805
|
+
}
|
3806
|
+
var isElement_y = (x) => (() => (x))
|
3807
|
+
const isElement_namespaceObject = isElement_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"]) });
|
3808
|
+
;// external "lodash/random"
|
3809
|
+
var random_x = (y) => {
|
3810
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3811
|
+
}
|
3812
|
+
var random_y = (x) => (() => (x))
|
3813
|
+
const random_namespaceObject = random_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__["default"]) });
|
3814
|
+
;// ../../node_modules/uuid/dist/esm-browser/native.js
|
3797
3815
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
3798
3816
|
/* harmony default export */ const esm_browser_native = ({
|
3799
3817
|
randomUUID
|
3800
3818
|
});
|
3801
|
-
;//
|
3819
|
+
;// ../../node_modules/uuid/dist/esm-browser/rng.js
|
3802
3820
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
3803
3821
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
3804
3822
|
// generators (like Math.random()).
|
@@ -3817,7 +3835,7 @@ function rng() {
|
|
3817
3835
|
|
3818
3836
|
return getRandomValues(rnds8);
|
3819
3837
|
}
|
3820
|
-
;//
|
3838
|
+
;// ../../node_modules/uuid/dist/esm-browser/stringify.js
|
3821
3839
|
|
3822
3840
|
/**
|
3823
3841
|
* Convert array of 16 byte values to UUID string format of the form:
|
@@ -3851,7 +3869,7 @@ function stringify(arr, offset = 0) {
|
|
3851
3869
|
}
|
3852
3870
|
|
3853
3871
|
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
3854
|
-
;//
|
3872
|
+
;// ../../node_modules/uuid/dist/esm-browser/v4.js
|
3855
3873
|
|
3856
3874
|
|
3857
3875
|
|
@@ -3881,7 +3899,7 @@ function v4(options, buf, offset) {
|
|
3881
3899
|
}
|
3882
3900
|
|
3883
3901
|
/* harmony default export */ const esm_browser_v4 = (v4);
|
3884
|
-
;//
|
3902
|
+
;// ../../packages/popover/src/utils.ts
|
3885
3903
|
/*
|
3886
3904
|
* Tencent is pleased to support the open source community by making
|
3887
3905
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3951,7 +3969,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3951
3969
|
var random = function random() {
|
3952
3970
|
return "".concat((0,random_namespaceObject["default"])(0, 999999), "_").concat(Date.now(), "_").concat((0,random_namespaceObject["default"])(0, 999999));
|
3953
3971
|
};
|
3954
|
-
;//
|
3972
|
+
;// ../../packages/popover/src/use-floating.tsx
|
3955
3973
|
|
3956
3974
|
|
3957
3975
|
function use_floating_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; }
|
@@ -4415,7 +4433,7 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
4415
4433
|
cleanup: cleanup
|
4416
4434
|
};
|
4417
4435
|
});
|
4418
|
-
;//
|
4436
|
+
;// ../../packages/popover/src/use-popper-id.ts
|
4419
4437
|
/*
|
4420
4438
|
* Tencent is pleased to support the open source community by making
|
4421
4439
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -4505,7 +4523,7 @@ var parentNodeReferId = null;
|
|
4505
4523
|
getPrefixId: getPrefixId
|
4506
4524
|
};
|
4507
4525
|
});
|
4508
|
-
;//
|
4526
|
+
;// ../../packages/popover/src/use-popover-init.ts
|
4509
4527
|
|
4510
4528
|
/*
|
4511
4529
|
* Tencent is pleased to support the open source community by making
|
@@ -4765,7 +4783,7 @@ var parentNodeReferId = null;
|
|
4765
4783
|
uniqKey: uniqKey
|
4766
4784
|
};
|
4767
4785
|
});
|
4768
|
-
;//
|
4786
|
+
;// ../../packages/popover/src/popover.tsx
|
4769
4787
|
|
4770
4788
|
/*
|
4771
4789
|
* Tencent is pleased to support the open source community by making
|
@@ -5007,7 +5025,7 @@ function _isSlot(s) {
|
|
5007
5025
|
});
|
5008
5026
|
}
|
5009
5027
|
}));
|
5010
|
-
;//
|
5028
|
+
;// ../../packages/popover/src/plugin-popover.tsx
|
5011
5029
|
|
5012
5030
|
|
5013
5031
|
function plugin_popover_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; }
|
@@ -5193,7 +5211,7 @@ function createPopoverComponent(options) {
|
|
5193
5211
|
}
|
5194
5212
|
};
|
5195
5213
|
}
|
5196
|
-
;//
|
5214
|
+
;// ../../packages/popover/src/index.ts
|
5197
5215
|
/**
|
5198
5216
|
* Tencent is pleased to support the open source community by making
|
5199
5217
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -5225,8 +5243,6 @@ var BkPopover = (0,shared_namespaceObject.withInstall)(popover);
|
|
5225
5243
|
/* harmony default export */ const src = (BkPopover);
|
5226
5244
|
|
5227
5245
|
|
5228
|
-
})();
|
5229
|
-
|
5230
5246
|
var __webpack_exports__$bkPopover = __webpack_exports__.$bkPopover;
|
5231
5247
|
var __webpack_exports__PopoverProps = __webpack_exports__.PopoverProps;
|
5232
5248
|
var __webpack_exports__default = __webpack_exports__["default"];
|