bkui-vue 2.0.1 → 2.0.2-beta.2

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/lib/tab/index.js CHANGED
@@ -4,12 +4,657 @@ 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 __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
7
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
8
+ import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
9
+ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
10
+ import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
8
11
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
9
- /******/ // The require scope
10
- /******/ var __webpack_require__ = {};
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 2439:
15
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
16
+
17
+ module.exports = __webpack_require__(2527);
18
+
19
+
20
+ /***/ }),
21
+
22
+ /***/ 7430:
23
+ /***/ ((module) => {
24
+
25
+ /**
26
+ * Copyright (c) 2015, Facebook, Inc.
27
+ * All rights reserved.
28
+ *
29
+ * This source code is licensed under the BSD-style license found in the
30
+ * LICENSE file in the root directory of this source tree. An additional grant
31
+ * of patent rights can be found in the PATENTS file in the same directory.
32
+ *
33
+ * @providesModule ExecutionEnvironment
34
+ */
35
+
36
+ /*jslint evil: true */
37
+
38
+
39
+
40
+ var canUseDOM = !!(
41
+ typeof window !== 'undefined' &&
42
+ window.document &&
43
+ window.document.createElement
44
+ );
45
+
46
+ /**
47
+ * Simple, lightweight module assisting with the detection and context of
48
+ * Worker. Helps avoid circular dependencies and allows code to reason about
49
+ * whether or not they are in a Worker, even if they never include the main
50
+ * `ReactWorker` dependency.
51
+ */
52
+ var ExecutionEnvironment = {
53
+
54
+ canUseDOM: canUseDOM,
55
+
56
+ canUseWorkers: typeof Worker !== 'undefined',
57
+
58
+ canUseEventListeners:
59
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
60
+
61
+ canUseViewport: canUseDOM && !!window.screen,
62
+
63
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
64
+
65
+ };
66
+
67
+ module.exports = ExecutionEnvironment;
68
+
69
+
70
+ /***/ }),
71
+
72
+ /***/ 6377:
73
+ /***/ ((module) => {
74
+
75
+ /**
76
+ * Copyright 2004-present Facebook. All Rights Reserved.
77
+ *
78
+ * @providesModule UserAgent_DEPRECATED
79
+ */
80
+
81
+ /**
82
+ * Provides entirely client-side User Agent and OS detection. You should prefer
83
+ * the non-deprecated UserAgent module when possible, which exposes our
84
+ * authoritative server-side PHP-based detection to the client.
85
+ *
86
+ * Usage is straightforward:
87
+ *
88
+ * if (UserAgent_DEPRECATED.ie()) {
89
+ * // IE
90
+ * }
91
+ *
92
+ * You can also do version checks:
93
+ *
94
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
95
+ * // IE7 or better
96
+ * }
97
+ *
98
+ * The browser functions will return NaN if the browser does not match, so
99
+ * you can also do version compares the other way:
100
+ *
101
+ * if (UserAgent_DEPRECATED.ie() < 7) {
102
+ * // IE6 or worse
103
+ * }
104
+ *
105
+ * Note that the version is a float and may include a minor version number,
106
+ * so you should always use range operators to perform comparisons, not
107
+ * strict equality.
108
+ *
109
+ * **Note:** You should **strongly** prefer capability detection to browser
110
+ * version detection where it's reasonable:
111
+ *
112
+ * http://www.quirksmode.org/js/support.html
113
+ *
114
+ * Further, we have a large number of mature wrapper functions and classes
115
+ * which abstract away many browser irregularities. Check the documentation,
116
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
117
+ * another copy of "event || window.event".
118
+ *
119
+ */
120
+
121
+ var _populated = false;
122
+
123
+ // Browsers
124
+ var _ie, _firefox, _opera, _webkit, _chrome;
125
+
126
+ // Actual IE browser for compatibility mode
127
+ var _ie_real_version;
128
+
129
+ // Platforms
130
+ var _osx, _windows, _linux, _android;
131
+
132
+ // Architectures
133
+ var _win64;
134
+
135
+ // Devices
136
+ var _iphone, _ipad, _native;
137
+
138
+ var _mobile;
139
+
140
+ function _populate() {
141
+ if (_populated) {
142
+ return;
143
+ }
144
+
145
+ _populated = true;
146
+
147
+ // To work around buggy JS libraries that can't handle multi-digit
148
+ // version numbers, Opera 10's user agent string claims it's Opera
149
+ // 9, then later includes a Version/X.Y field:
150
+ //
151
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
152
+ var uas = navigator.userAgent;
153
+ var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
154
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
155
+
156
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
157
+ _ipad = /\b(iP[ao]d)/.exec(uas);
158
+ _android = /Android/i.exec(uas);
159
+ _native = /FBAN\/\w+;/i.exec(uas);
160
+ _mobile = /Mobile/i.exec(uas);
161
+
162
+ // Note that the IE team blog would have you believe you should be checking
163
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
164
+ // from either x64 or ia64; so ultimately, you should just check for Win64
165
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
166
+ // Windows will send 'WOW64' instead.
167
+ _win64 = !!(/Win64/.exec(uas));
168
+
169
+ if (agent) {
170
+ _ie = agent[1] ? parseFloat(agent[1]) : (
171
+ agent[5] ? parseFloat(agent[5]) : NaN);
172
+ // IE compatibility mode
173
+ if (_ie && document && document.documentMode) {
174
+ _ie = document.documentMode;
175
+ }
176
+ // grab the "true" ie version from the trident token if available
177
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
178
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
179
+
180
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
181
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
182
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
183
+ if (_webkit) {
184
+ // We do not add the regexp to the above test, because it will always
185
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
186
+ // the userAgent string.
187
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
188
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
189
+ } else {
190
+ _chrome = NaN;
191
+ }
192
+ } else {
193
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
194
+ }
195
+
196
+ if (os) {
197
+ if (os[1]) {
198
+ // Detect OS X version. If no version number matches, set _osx to true.
199
+ // Version examples: 10, 10_6_1, 10.7
200
+ // Parses version number as a float, taking only first two sets of
201
+ // digits. If only one set of digits is found, returns just the major
202
+ // version number.
203
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
204
+
205
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
206
+ } else {
207
+ _osx = false;
208
+ }
209
+ _windows = !!os[2];
210
+ _linux = !!os[3];
211
+ } else {
212
+ _osx = _windows = _linux = false;
213
+ }
214
+ }
215
+
216
+ var UserAgent_DEPRECATED = {
217
+
218
+ /**
219
+ * Check if the UA is Internet Explorer.
220
+ *
221
+ *
222
+ * @return float|NaN Version number (if match) or NaN.
223
+ */
224
+ ie: function() {
225
+ return _populate() || _ie;
226
+ },
227
+
228
+ /**
229
+ * Check if we're in Internet Explorer compatibility mode.
230
+ *
231
+ * @return bool true if in compatibility mode, false if
232
+ * not compatibility mode or not ie
233
+ */
234
+ ieCompatibilityMode: function() {
235
+ return _populate() || (_ie_real_version > _ie);
236
+ },
237
+
238
+
239
+ /**
240
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
241
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
242
+ * this when we don't need it -- tracked by #601957.
243
+ */
244
+ ie64: function() {
245
+ return UserAgent_DEPRECATED.ie() && _win64;
246
+ },
247
+
248
+ /**
249
+ * Check if the UA is Firefox.
250
+ *
251
+ *
252
+ * @return float|NaN Version number (if match) or NaN.
253
+ */
254
+ firefox: function() {
255
+ return _populate() || _firefox;
256
+ },
257
+
258
+
259
+ /**
260
+ * Check if the UA is Opera.
261
+ *
262
+ *
263
+ * @return float|NaN Version number (if match) or NaN.
264
+ */
265
+ opera: function() {
266
+ return _populate() || _opera;
267
+ },
268
+
269
+
270
+ /**
271
+ * Check if the UA is WebKit.
272
+ *
273
+ *
274
+ * @return float|NaN Version number (if match) or NaN.
275
+ */
276
+ webkit: function() {
277
+ return _populate() || _webkit;
278
+ },
279
+
280
+ /**
281
+ * For Push
282
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
283
+ */
284
+ safari: function() {
285
+ return UserAgent_DEPRECATED.webkit();
286
+ },
287
+
288
+ /**
289
+ * Check if the UA is a Chrome browser.
290
+ *
291
+ *
292
+ * @return float|NaN Version number (if match) or NaN.
293
+ */
294
+ chrome : function() {
295
+ return _populate() || _chrome;
296
+ },
297
+
298
+
299
+ /**
300
+ * Check if the user is running Windows.
301
+ *
302
+ * @return bool `true' if the user's OS is Windows.
303
+ */
304
+ windows: function() {
305
+ return _populate() || _windows;
306
+ },
307
+
308
+
309
+ /**
310
+ * Check if the user is running Mac OS X.
311
+ *
312
+ * @return float|bool Returns a float if a version number is detected,
313
+ * otherwise true/false.
314
+ */
315
+ osx: function() {
316
+ return _populate() || _osx;
317
+ },
318
+
319
+ /**
320
+ * Check if the user is running Linux.
321
+ *
322
+ * @return bool `true' if the user's OS is some flavor of Linux.
323
+ */
324
+ linux: function() {
325
+ return _populate() || _linux;
326
+ },
327
+
328
+ /**
329
+ * Check if the user is running on an iPhone or iPod platform.
330
+ *
331
+ * @return bool `true' if the user is running some flavor of the
332
+ * iPhone OS.
333
+ */
334
+ iphone: function() {
335
+ return _populate() || _iphone;
336
+ },
337
+
338
+ mobile: function() {
339
+ return _populate() || (_iphone || _ipad || _android || _mobile);
340
+ },
341
+
342
+ nativeApp: function() {
343
+ // webviews inside of the native apps
344
+ return _populate() || _native;
345
+ },
346
+
347
+ android: function() {
348
+ return _populate() || _android;
349
+ },
350
+
351
+ ipad: function() {
352
+ return _populate() || _ipad;
353
+ }
354
+ };
355
+
356
+ module.exports = UserAgent_DEPRECATED;
357
+
358
+
359
+ /***/ }),
360
+
361
+ /***/ 3541:
362
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
363
+
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;
615
+
616
+
617
+ /***/ })
618
+
619
+ /******/ });
620
+ /************************************************************************/
621
+ /******/ // The module cache
622
+ /******/ var __webpack_module_cache__ = {};
623
+ /******/
624
+ /******/ // The require function
625
+ /******/ function __webpack_require__(moduleId) {
626
+ /******/ // Check if module is in cache
627
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
628
+ /******/ if (cachedModule !== undefined) {
629
+ /******/ return cachedModule.exports;
630
+ /******/ }
631
+ /******/ // Create a new module (and put it into the cache)
632
+ /******/ var module = __webpack_module_cache__[moduleId] = {
633
+ /******/ // no module.id needed
634
+ /******/ // no module.loaded needed
635
+ /******/ exports: {}
636
+ /******/ };
637
+ /******/
638
+ /******/ // Execute the module function
639
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
640
+ /******/
641
+ /******/ // Return the exports of the module
642
+ /******/ return module.exports;
643
+ /******/ }
11
644
  /******/
12
645
  /************************************************************************/
646
+ /******/ /* webpack/runtime/compat get default export */
647
+ /******/ (() => {
648
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
649
+ /******/ __webpack_require__.n = (module) => {
650
+ /******/ var getter = module && module.__esModule ?
651
+ /******/ () => (module['default']) :
652
+ /******/ () => (module);
653
+ /******/ __webpack_require__.d(getter, { a: getter });
654
+ /******/ return getter;
655
+ /******/ };
656
+ /******/ })();
657
+ /******/
13
658
  /******/ /* webpack/runtime/define property getters */
14
659
  /******/ (() => {
15
660
  /******/ // define getter functions for harmony exports
@@ -29,6 +674,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon
29
674
  /******/
30
675
  /************************************************************************/
31
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
+ (() => {
32
679
 
33
680
  // EXPORTS
34
681
  __webpack_require__.d(__webpack_exports__, {
@@ -42,7 +689,7 @@ __webpack_require__.d(__webpack_exports__, {
42
689
  ;// CONCATENATED MODULE: external "../shared"
43
690
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
44
691
  var y = x => () => x
45
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
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 });
46
693
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
47
694
  function _typeof(o) {
48
695
  "@babel/helpers - typeof";
@@ -272,15 +919,633 @@ function _toConsumableArray(arr) {
272
919
  ;// CONCATENATED MODULE: external "vue"
273
920
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
274
921
  var external_vue_y = x => () => x
275
- 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, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUpdated"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUpdated, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
922
+ 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 });
276
923
  ;// CONCATENATED MODULE: external "../config-provider"
277
924
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
278
925
  var config_provider_y = x => () => x
279
926
  const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
280
- ;// CONCATENATED MODULE: external "../directives"
281
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
282
- var directives_y = x => () => x
283
- const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
927
+ ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
928
+ 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
+ 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
+ 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; }
931
+ /*
932
+ * Tencent is pleased to support the open source community by making
933
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
934
+ *
935
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
936
+ *
937
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
938
+ *
939
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
940
+ *
941
+ * ---------------------------------------------------
942
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
943
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
944
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
945
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
946
+ *
947
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
948
+ * the Software.
949
+ *
950
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
951
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
952
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
953
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
954
+ * IN THE SOFTWARE.
955
+ */
956
+ var isElement = function isElement(e) {
957
+ if (typeof Element === 'undefined') return false;
958
+ return e instanceof Element;
959
+ };
960
+ var nodeList = new Map();
961
+ var startClick;
962
+ document.addEventListener('mousedown', function (e) {
963
+ return startClick = e;
964
+ });
965
+ document.addEventListener('mouseup', function (e) {
966
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
967
+ _step;
968
+ try {
969
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
970
+ var handlers = _step.value;
971
+ var _iterator2 = _createForOfIteratorHelper(handlers),
972
+ _step2;
973
+ try {
974
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
975
+ var documentHandler = _step2.value.documentHandler;
976
+ documentHandler(e, startClick);
977
+ }
978
+ } catch (err) {
979
+ _iterator2.e(err);
980
+ } finally {
981
+ _iterator2.f();
982
+ }
983
+ }
984
+ } catch (err) {
985
+ _iterator.e(err);
986
+ } finally {
987
+ _iterator.f();
988
+ }
989
+ });
990
+ function createDocumentHandler(el, binding) {
991
+ var excludes = [];
992
+ if (Array.isArray(binding.arg)) {
993
+ excludes = binding.arg;
994
+ } else if (isElement(binding.arg)) {
995
+ excludes.push(binding.arg);
996
+ }
997
+ return function (mouseup, mousedown) {
998
+ var popperRef = binding.instance.popperRef;
999
+ var mouseUpTarget = mouseup.target;
1000
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
1001
+ var isBound = !binding || !binding.instance;
1002
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
1003
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
1004
+ var isSelf = el === mouseUpTarget;
1005
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
1006
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
1007
+ }) || excludes.length && excludes.includes(mouseDownTarget);
1008
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
1009
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
1010
+ return;
1011
+ }
1012
+ binding.value(mouseup, mousedown);
1013
+ };
1014
+ }
1015
+ var ClickOutside = {
1016
+ beforeMount: function beforeMount(el, binding) {
1017
+ if (!nodeList.has(el)) {
1018
+ nodeList.set(el, []);
1019
+ }
1020
+ nodeList.get(el).push({
1021
+ documentHandler: createDocumentHandler(el, binding),
1022
+ bindingFn: binding.value
1023
+ });
1024
+ },
1025
+ updated: function updated(el, binding) {
1026
+ if (!nodeList.has(el)) {
1027
+ nodeList.set(el, []);
1028
+ }
1029
+ var handlers = nodeList.get(el);
1030
+ var oldHandlerIndex = handlers.findIndex(function (item) {
1031
+ return item.bindingFn === binding.oldValue;
1032
+ });
1033
+ var newHandler = {
1034
+ documentHandler: createDocumentHandler(el, binding),
1035
+ bindingFn: binding.value
1036
+ };
1037
+ if (oldHandlerIndex >= 0) {
1038
+ // replace the old handler to the new handler
1039
+ handlers.splice(oldHandlerIndex, 1, newHandler);
1040
+ } else {
1041
+ handlers.push(newHandler);
1042
+ }
1043
+ },
1044
+ unmounted: function unmounted(el) {
1045
+ // remove all listeners when a component unmounted
1046
+ nodeList["delete"](el);
1047
+ }
1048
+ };
1049
+ ClickOutside.install = function (app) {
1050
+ app.directive('bkTooltips', ClickOutside);
1051
+ };
1052
+ /* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
1053
+ ;// CONCATENATED MODULE: external "../plugin-popover"
1054
+ var plugin_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1055
+ var plugin_popover_y = x => () => x
1056
+ const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"] });
1057
+ ;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
1058
+
1059
+ /*
1060
+ * Tencent is pleased to support the open source community by making
1061
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1062
+ *
1063
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1064
+ *
1065
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1066
+ *
1067
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1068
+ *
1069
+ * ---------------------------------------------------
1070
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1071
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1072
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1073
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1074
+ *
1075
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1076
+ * the Software.
1077
+ *
1078
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1079
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1080
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1081
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1082
+ * IN THE SOFTWARE.
1083
+ */
1084
+
1085
+ var resolveOptions = function resolveOptions(el, binding) {
1086
+ var options = {
1087
+ content: '',
1088
+ target: el
1089
+ };
1090
+ if (_typeof(binding) === 'object') {
1091
+ Object.assign(options, binding);
1092
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
1093
+ Object.assign(options, binding.popoverOption);
1094
+ }
1095
+ } else {
1096
+ options.content = binding;
1097
+ }
1098
+ return options;
1099
+ };
1100
+ var createInstance = function createInstance(el, binding) {
1101
+ var instance = null;
1102
+ var createTimer = null;
1103
+ var hidePopTimer = null;
1104
+ var options = resolveOptions(el, binding);
1105
+ var disabled = options.disabled;
1106
+ if (disabled || instance) {
1107
+ return;
1108
+ }
1109
+ var handleContentEnter = function handleContentEnter() {
1110
+ hidePopTimer && clearTimeout(hidePopTimer);
1111
+ hidePopTimer = null;
1112
+ };
1113
+ var handleContentLeave = function handleContentLeave() {
1114
+ var _instance, _instance2;
1115
+ if (createTimer) {
1116
+ clearTimeout(createTimer);
1117
+ }
1118
+ (_instance = instance) === null || _instance === void 0 || _instance.hide();
1119
+ (_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
1120
+ instance = null;
1121
+ };
1122
+ var handleMouseEnter = function handleMouseEnter() {
1123
+ handleContentLeave();
1124
+ createTimer && clearTimeout(createTimer);
1125
+ createTimer = setTimeout(function () {
1126
+ var targetOptions = resolveOptions(el, binding);
1127
+ targetOptions.isShow = true;
1128
+ targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
1129
+ targetOptions.allowHtml = true;
1130
+ Object.assign(targetOptions, {
1131
+ onContentMouseenter: handleContentEnter,
1132
+ onContentMouseleave: handleContentLeave
1133
+ });
1134
+ instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
1135
+ }, 300);
1136
+ };
1137
+ var handleMouseLeave = function handleMouseLeave() {
1138
+ hidePopTimer = setTimeout(function () {
1139
+ var _instance3, _instance4;
1140
+ if (createTimer) {
1141
+ clearTimeout(createTimer);
1142
+ }
1143
+ (_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
1144
+ (_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
1145
+ instance = null;
1146
+ }, 120);
1147
+ };
1148
+ el.addEventListener('mouseenter', handleMouseEnter);
1149
+ el.addEventListener('mouseleave', handleMouseLeave);
1150
+ var destroyInstance = function destroyInstance(element) {
1151
+ var _ref, _ref2;
1152
+ handleMouseLeave();
1153
+ (_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
1154
+ (_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
1155
+ };
1156
+ return {
1157
+ destroyInstance: destroyInstance,
1158
+ instance: instance
1159
+ };
1160
+ };
1161
+ var ellipsis = {
1162
+ mounted: function mounted(el, binding) {
1163
+ createInstance(el, binding);
1164
+ }
1165
+ };
1166
+ /* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
1167
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
1168
+ var normalize_wheel = __webpack_require__(2439);
1169
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
1170
+ ;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
1171
+ /*
1172
+ * Tencent is pleased to support the open source community by making
1173
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1174
+ *
1175
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1176
+ *
1177
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1178
+ *
1179
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1180
+ *
1181
+ * ---------------------------------------------------
1182
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1183
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1184
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1185
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1186
+ *
1187
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1188
+ * the Software.
1189
+ *
1190
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1191
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1192
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1193
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1194
+ * IN THE SOFTWARE.
1195
+ */
1196
+
1197
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
1198
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
1199
+ if (element !== null && element !== void 0 && element.addEventListener) {
1200
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
1201
+ var normalized = normalize_wheel_default()(e);
1202
+ callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
1203
+ });
1204
+ }
1205
+ };
1206
+ var mousewheel = {
1207
+ beforeMount: function beforeMount(el, binding) {
1208
+ mousewheelHandler(el, binding.value);
1209
+ }
1210
+ };
1211
+ /* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
1212
+ ;// CONCATENATED MODULE: external "@popperjs/core"
1213
+ var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1214
+ var core_y = x => () => x
1215
+ const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
1216
+ ;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
1217
+
1218
+
1219
+
1220
+ function tooltips_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; }
1221
+ function tooltips_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? tooltips_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : tooltips_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1222
+ /*
1223
+ * Tencent is pleased to support the open source community by making
1224
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1225
+ *
1226
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1227
+ *
1228
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1229
+ *
1230
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1231
+ *
1232
+ * ---------------------------------------------------
1233
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1234
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1235
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1236
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1237
+ *
1238
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1239
+ * the Software.
1240
+ *
1241
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1242
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1243
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1244
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1245
+ * IN THE SOFTWARE.
1246
+ */
1247
+
1248
+
1249
+
1250
+ var tooltips_nodeList = new WeakMap();
1251
+ var tooltips = {
1252
+ beforeMount: function beforeMount(el, binding) {
1253
+ var opts = getOpts(binding);
1254
+ var trigger = opts.trigger,
1255
+ showOnInit = opts.showOnInit;
1256
+ var popper = renderContent(opts);
1257
+ var delayTimeout = null;
1258
+ if (showOnInit) {
1259
+ (0,external_vue_namespaceObject.nextTick)(function () {
1260
+ show(el);
1261
+ });
1262
+ }
1263
+ if (trigger === 'hover') {
1264
+ var hideTimeout = null;
1265
+ el.addEventListener('mouseenter', function () {
1266
+ delayTimeout = setTimeout(function () {
1267
+ show(el);
1268
+ clearTimeout(hideTimeout);
1269
+ clearTimeout(delayTimeout);
1270
+ }, opts.delay);
1271
+ });
1272
+ popper.addEventListener('mouseenter', function () {
1273
+ clearTimeout(hideTimeout);
1274
+ });
1275
+ el.addEventListener('mouseleave', function () {
1276
+ clearTimeout(delayTimeout);
1277
+ hideTimeout = setTimeout(function () {
1278
+ hide(el);
1279
+ }, 100);
1280
+ });
1281
+ el.addEventListener('click', function () {
1282
+ hide(el);
1283
+ });
1284
+ popper.addEventListener('mouseleave', function () {
1285
+ clearTimeout(delayTimeout);
1286
+ hideTimeout = setTimeout(function () {
1287
+ hide(el);
1288
+ }, 100);
1289
+ });
1290
+ } else if (trigger === 'click') {
1291
+ document.body.addEventListener('click', function (event) {
1292
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
1293
+ delayTimeout = setTimeout(function () {
1294
+ show(el);
1295
+ clearTimeout(delayTimeout);
1296
+ }, opts.delay);
1297
+ } else if (popper.hasAttribute('data-show')) {
1298
+ hide(el);
1299
+ }
1300
+ });
1301
+ }
1302
+ tooltips_nodeList.set(el, {
1303
+ opts: opts,
1304
+ popper: popper,
1305
+ popperInstance: null
1306
+ });
1307
+ },
1308
+ updated: function updated(el, binding) {
1309
+ if (tooltips_nodeList.get(el)) {
1310
+ tooltips_nodeList.get(el).opts = getOpts(binding);
1311
+ }
1312
+ },
1313
+ unmounted: function unmounted(el) {
1314
+ hide(el);
1315
+ tooltips_nodeList["delete"](el);
1316
+ }
1317
+ };
1318
+ /**
1319
+ * 初始化配置
1320
+ * @returns tooltips配置
1321
+ */
1322
+ function initOptions() {
1323
+ var defaultOpts = {
1324
+ arrow: true,
1325
+ disabled: false,
1326
+ trigger: 'hover',
1327
+ theme: 'dark',
1328
+ content: '',
1329
+ showOnInit: false,
1330
+ placement: 'top',
1331
+ distance: 8,
1332
+ extCls: '',
1333
+ sameWidth: false,
1334
+ delay: 0,
1335
+ onShow: function onShow() {},
1336
+ onHide: function onHide() {}
1337
+ };
1338
+ return defaultOpts;
1339
+ }
1340
+ /**
1341
+ * 获取配置
1342
+ * @returns tooltips配置
1343
+ */
1344
+ function getOpts(binding) {
1345
+ var opts = initOptions();
1346
+ if (_typeof(binding.value) === 'object') {
1347
+ Object.assign(opts, binding.value);
1348
+ } else {
1349
+ opts.content = binding.value;
1350
+ }
1351
+ return opts;
1352
+ }
1353
+ /**
1354
+ * 创建tooltips DOM
1355
+ * @param opts
1356
+ * @returns
1357
+ */
1358
+ function renderContext(value, content) {
1359
+ if (typeof value === 'string') {
1360
+ content.innerText = value;
1361
+ } else {
1362
+ // 如果 content 是 Vue 组件的实例,则挂载它
1363
+ var container = document.createElement('div');
1364
+ var vnode = (0,external_vue_namespaceObject.h)(value);
1365
+ (0,external_vue_namespaceObject.render)(vnode, container);
1366
+ content.innerHTML = container.innerHTML;
1367
+ }
1368
+ }
1369
+ function renderContent(opts) {
1370
+ var value = opts.content,
1371
+ hasArrow = opts.arrow,
1372
+ theme = opts.theme,
1373
+ extCls = opts.extCls;
1374
+ var isLight = theme === 'light';
1375
+ var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
1376
+ var content = document.createElement('div');
1377
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1378
+ content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
1379
+ content.innerText = value;
1380
+ content.style.zIndex = String(zIndex);
1381
+ renderContext(value, content);
1382
+ if (hasArrow) {
1383
+ var arrow = renderArrow();
1384
+ content.appendChild(arrow);
1385
+ }
1386
+ return content;
1387
+ }
1388
+ /**
1389
+ * 渲染箭头dom
1390
+ * @returns arrow DOM
1391
+ */
1392
+ function renderArrow() {
1393
+ var arrow = document.createElement('div');
1394
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1395
+ arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
1396
+ arrow.setAttribute('data-popper-arrow', '');
1397
+ return arrow;
1398
+ }
1399
+ /**
1400
+ * 创建popper实例
1401
+ * @param el
1402
+ * @param popper
1403
+ * @returns popper实例
1404
+ */
1405
+ function createPopperInstance(el, popper) {
1406
+ var _nodeList$get = tooltips_nodeList.get(el),
1407
+ opts = _nodeList$get.opts;
1408
+ var placement = opts.placement,
1409
+ distance = opts.distance,
1410
+ sameWidth = opts.sameWidth;
1411
+ var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
1412
+ placement: placement,
1413
+ modifiers: [{
1414
+ name: 'offset',
1415
+ options: {
1416
+ offset: [0, distance]
1417
+ }
1418
+ }, {
1419
+ name: 'arrow',
1420
+ options: {
1421
+ padding: 5
1422
+ }
1423
+ }].concat(_toConsumableArray(sameWidth ? [{
1424
+ name: 'sameWidth',
1425
+ enabled: true,
1426
+ phase: 'beforeWrite',
1427
+ requires: ['computeStyles'],
1428
+ fn: function fn(_ref) {
1429
+ var state = _ref.state;
1430
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
1431
+ },
1432
+ effect: function effect(_ref2) {
1433
+ var state = _ref2.state;
1434
+ state.elements.popper.style.overflowWrap = 'break-word';
1435
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
1436
+ }
1437
+ }] : []))
1438
+ });
1439
+ return popperInstance;
1440
+ }
1441
+ /**
1442
+ * 显示
1443
+ * @param el
1444
+ */
1445
+ function show(el) {
1446
+ var _nodeList$get2 = tooltips_nodeList.get(el),
1447
+ popper = _nodeList$get2.popper,
1448
+ opts = _nodeList$get2.opts;
1449
+ var disabled = opts.disabled,
1450
+ content = opts.content,
1451
+ hasArrow = opts.arrow,
1452
+ onShow = opts.onShow,
1453
+ boundary = opts.boundary,
1454
+ _opts$modifiers = opts.modifiers,
1455
+ modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
1456
+ if (disabled) return;
1457
+ renderContext(content, popper);
1458
+ if (hasArrow) {
1459
+ var arrow = renderArrow();
1460
+ popper.appendChild(arrow);
1461
+ }
1462
+ var container = document.body;
1463
+ if (boundary) {
1464
+ if (boundary === 'parent') {
1465
+ container = el.parentElement;
1466
+ } else if (boundary instanceof HTMLElement) {
1467
+ container = boundary;
1468
+ }
1469
+ }
1470
+ container.appendChild(popper);
1471
+ var popperInstance = createPopperInstance(el, popper);
1472
+ onShow();
1473
+ // Make the tooltip visible
1474
+ popper.setAttribute('data-show', '');
1475
+ // Enable the event listeners
1476
+ popperInstance.setOptions(function (options) {
1477
+ return tooltips_objectSpread(tooltips_objectSpread({}, options), {}, {
1478
+ modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
1479
+ name: 'eventListeners',
1480
+ enabled: true
1481
+ }])
1482
+ });
1483
+ });
1484
+ // Update its position
1485
+ popperInstance.forceUpdate();
1486
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
1487
+ }
1488
+ /**
1489
+ * 隐藏
1490
+ * @param el
1491
+ */
1492
+ function hide(el) {
1493
+ if (!tooltips_nodeList.get(el)) return;
1494
+ var _nodeList$get3 = tooltips_nodeList.get(el),
1495
+ popper = _nodeList$get3.popper,
1496
+ popperInstance = _nodeList$get3.popperInstance,
1497
+ opts = _nodeList$get3.opts;
1498
+ var onHide = opts.onHide;
1499
+ if (popper && document.body.contains(popper)) {
1500
+ var _popper$parentNode;
1501
+ popper.removeAttribute('data-show');
1502
+ popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
1503
+ popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
1504
+ onHide();
1505
+ }
1506
+ }
1507
+ /* harmony default export */ const src_tooltips = (tooltips);
1508
+ ;// CONCATENATED MODULE: external "../loading"
1509
+ var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1510
+ var external_loading_y = x => () => x
1511
+ const external_loading_namespaceObject = external_loading_x({ });
1512
+ ;// CONCATENATED MODULE: external "../overflow-title"
1513
+ var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1514
+ var external_overflow_title_y = x => () => x
1515
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
1516
+ ;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
1517
+ /*
1518
+ * Tencent is pleased to support the open source community by making
1519
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1520
+ *
1521
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1522
+ *
1523
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1524
+ *
1525
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1526
+ *
1527
+ * ---------------------------------------------------
1528
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1529
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1530
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1531
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1532
+ *
1533
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1534
+ * the Software.
1535
+ *
1536
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1537
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1538
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1539
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1540
+ * IN THE SOFTWARE.
1541
+ */
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
284
1549
  ;// CONCATENATED MODULE: external "../icon"
285
1550
  var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
286
1551
  var icon_y = x => () => x
@@ -323,7 +1588,7 @@ function tab_nav_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
323
1588
  /* harmony default export */ const tab_nav = ((0,external_vue_namespaceObject.defineComponent)({
324
1589
  name: 'TabNav',
325
1590
  directives: {
326
- bkTooltips: directives_namespaceObject.bkTooltips
1591
+ bkTooltips: src_tooltips
327
1592
  },
328
1593
  props: tabNavProps,
329
1594
  setup: function setup(props) {
@@ -917,6 +2182,8 @@ var BkTab = (0,shared_namespaceObject.withInstallProps)(tab, {
917
2182
  });
918
2183
 
919
2184
  /* harmony default export */ const src = (BkTab);
2185
+ })();
2186
+
920
2187
  var __webpack_exports__BkTab = __webpack_exports__.BkTab;
921
2188
  var __webpack_exports__BkTabPanel = __webpack_exports__.BkTabPanel;
922
2189
  var __webpack_exports__PositionEnum = __webpack_exports__.PositionEnum;