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.
@@ -4,7 +4,10 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../sh
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
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_lodash_debounce_3540babe__ from "lodash/debounce";
9
12
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
10
13
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
@@ -31,6 +34,611 @@ import "../input/input.less";
31
34
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__ from "../icon/";
32
35
  /******/ var __webpack_modules__ = ({
33
36
 
37
+ /***/ 2439:
38
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
39
+
40
+ module.exports = __webpack_require__(2527);
41
+
42
+
43
+ /***/ }),
44
+
45
+ /***/ 7430:
46
+ /***/ ((module) => {
47
+
48
+ /**
49
+ * Copyright (c) 2015, Facebook, Inc.
50
+ * All rights reserved.
51
+ *
52
+ * This source code is licensed under the BSD-style license found in the
53
+ * LICENSE file in the root directory of this source tree. An additional grant
54
+ * of patent rights can be found in the PATENTS file in the same directory.
55
+ *
56
+ * @providesModule ExecutionEnvironment
57
+ */
58
+
59
+ /*jslint evil: true */
60
+
61
+
62
+
63
+ var canUseDOM = !!(
64
+ typeof window !== 'undefined' &&
65
+ window.document &&
66
+ window.document.createElement
67
+ );
68
+
69
+ /**
70
+ * Simple, lightweight module assisting with the detection and context of
71
+ * Worker. Helps avoid circular dependencies and allows code to reason about
72
+ * whether or not they are in a Worker, even if they never include the main
73
+ * `ReactWorker` dependency.
74
+ */
75
+ var ExecutionEnvironment = {
76
+
77
+ canUseDOM: canUseDOM,
78
+
79
+ canUseWorkers: typeof Worker !== 'undefined',
80
+
81
+ canUseEventListeners:
82
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
83
+
84
+ canUseViewport: canUseDOM && !!window.screen,
85
+
86
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
87
+
88
+ };
89
+
90
+ module.exports = ExecutionEnvironment;
91
+
92
+
93
+ /***/ }),
94
+
95
+ /***/ 6377:
96
+ /***/ ((module) => {
97
+
98
+ /**
99
+ * Copyright 2004-present Facebook. All Rights Reserved.
100
+ *
101
+ * @providesModule UserAgent_DEPRECATED
102
+ */
103
+
104
+ /**
105
+ * Provides entirely client-side User Agent and OS detection. You should prefer
106
+ * the non-deprecated UserAgent module when possible, which exposes our
107
+ * authoritative server-side PHP-based detection to the client.
108
+ *
109
+ * Usage is straightforward:
110
+ *
111
+ * if (UserAgent_DEPRECATED.ie()) {
112
+ * // IE
113
+ * }
114
+ *
115
+ * You can also do version checks:
116
+ *
117
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
118
+ * // IE7 or better
119
+ * }
120
+ *
121
+ * The browser functions will return NaN if the browser does not match, so
122
+ * you can also do version compares the other way:
123
+ *
124
+ * if (UserAgent_DEPRECATED.ie() < 7) {
125
+ * // IE6 or worse
126
+ * }
127
+ *
128
+ * Note that the version is a float and may include a minor version number,
129
+ * so you should always use range operators to perform comparisons, not
130
+ * strict equality.
131
+ *
132
+ * **Note:** You should **strongly** prefer capability detection to browser
133
+ * version detection where it's reasonable:
134
+ *
135
+ * http://www.quirksmode.org/js/support.html
136
+ *
137
+ * Further, we have a large number of mature wrapper functions and classes
138
+ * which abstract away many browser irregularities. Check the documentation,
139
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
140
+ * another copy of "event || window.event".
141
+ *
142
+ */
143
+
144
+ var _populated = false;
145
+
146
+ // Browsers
147
+ var _ie, _firefox, _opera, _webkit, _chrome;
148
+
149
+ // Actual IE browser for compatibility mode
150
+ var _ie_real_version;
151
+
152
+ // Platforms
153
+ var _osx, _windows, _linux, _android;
154
+
155
+ // Architectures
156
+ var _win64;
157
+
158
+ // Devices
159
+ var _iphone, _ipad, _native;
160
+
161
+ var _mobile;
162
+
163
+ function _populate() {
164
+ if (_populated) {
165
+ return;
166
+ }
167
+
168
+ _populated = true;
169
+
170
+ // To work around buggy JS libraries that can't handle multi-digit
171
+ // version numbers, Opera 10's user agent string claims it's Opera
172
+ // 9, then later includes a Version/X.Y field:
173
+ //
174
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
175
+ var uas = navigator.userAgent;
176
+ 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);
177
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
178
+
179
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
180
+ _ipad = /\b(iP[ao]d)/.exec(uas);
181
+ _android = /Android/i.exec(uas);
182
+ _native = /FBAN\/\w+;/i.exec(uas);
183
+ _mobile = /Mobile/i.exec(uas);
184
+
185
+ // Note that the IE team blog would have you believe you should be checking
186
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
187
+ // from either x64 or ia64; so ultimately, you should just check for Win64
188
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
189
+ // Windows will send 'WOW64' instead.
190
+ _win64 = !!(/Win64/.exec(uas));
191
+
192
+ if (agent) {
193
+ _ie = agent[1] ? parseFloat(agent[1]) : (
194
+ agent[5] ? parseFloat(agent[5]) : NaN);
195
+ // IE compatibility mode
196
+ if (_ie && document && document.documentMode) {
197
+ _ie = document.documentMode;
198
+ }
199
+ // grab the "true" ie version from the trident token if available
200
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
201
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
202
+
203
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
204
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
205
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
206
+ if (_webkit) {
207
+ // We do not add the regexp to the above test, because it will always
208
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
209
+ // the userAgent string.
210
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
211
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
212
+ } else {
213
+ _chrome = NaN;
214
+ }
215
+ } else {
216
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
217
+ }
218
+
219
+ if (os) {
220
+ if (os[1]) {
221
+ // Detect OS X version. If no version number matches, set _osx to true.
222
+ // Version examples: 10, 10_6_1, 10.7
223
+ // Parses version number as a float, taking only first two sets of
224
+ // digits. If only one set of digits is found, returns just the major
225
+ // version number.
226
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
227
+
228
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
229
+ } else {
230
+ _osx = false;
231
+ }
232
+ _windows = !!os[2];
233
+ _linux = !!os[3];
234
+ } else {
235
+ _osx = _windows = _linux = false;
236
+ }
237
+ }
238
+
239
+ var UserAgent_DEPRECATED = {
240
+
241
+ /**
242
+ * Check if the UA is Internet Explorer.
243
+ *
244
+ *
245
+ * @return float|NaN Version number (if match) or NaN.
246
+ */
247
+ ie: function() {
248
+ return _populate() || _ie;
249
+ },
250
+
251
+ /**
252
+ * Check if we're in Internet Explorer compatibility mode.
253
+ *
254
+ * @return bool true if in compatibility mode, false if
255
+ * not compatibility mode or not ie
256
+ */
257
+ ieCompatibilityMode: function() {
258
+ return _populate() || (_ie_real_version > _ie);
259
+ },
260
+
261
+
262
+ /**
263
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
264
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
265
+ * this when we don't need it -- tracked by #601957.
266
+ */
267
+ ie64: function() {
268
+ return UserAgent_DEPRECATED.ie() && _win64;
269
+ },
270
+
271
+ /**
272
+ * Check if the UA is Firefox.
273
+ *
274
+ *
275
+ * @return float|NaN Version number (if match) or NaN.
276
+ */
277
+ firefox: function() {
278
+ return _populate() || _firefox;
279
+ },
280
+
281
+
282
+ /**
283
+ * Check if the UA is Opera.
284
+ *
285
+ *
286
+ * @return float|NaN Version number (if match) or NaN.
287
+ */
288
+ opera: function() {
289
+ return _populate() || _opera;
290
+ },
291
+
292
+
293
+ /**
294
+ * Check if the UA is WebKit.
295
+ *
296
+ *
297
+ * @return float|NaN Version number (if match) or NaN.
298
+ */
299
+ webkit: function() {
300
+ return _populate() || _webkit;
301
+ },
302
+
303
+ /**
304
+ * For Push
305
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
306
+ */
307
+ safari: function() {
308
+ return UserAgent_DEPRECATED.webkit();
309
+ },
310
+
311
+ /**
312
+ * Check if the UA is a Chrome browser.
313
+ *
314
+ *
315
+ * @return float|NaN Version number (if match) or NaN.
316
+ */
317
+ chrome : function() {
318
+ return _populate() || _chrome;
319
+ },
320
+
321
+
322
+ /**
323
+ * Check if the user is running Windows.
324
+ *
325
+ * @return bool `true' if the user's OS is Windows.
326
+ */
327
+ windows: function() {
328
+ return _populate() || _windows;
329
+ },
330
+
331
+
332
+ /**
333
+ * Check if the user is running Mac OS X.
334
+ *
335
+ * @return float|bool Returns a float if a version number is detected,
336
+ * otherwise true/false.
337
+ */
338
+ osx: function() {
339
+ return _populate() || _osx;
340
+ },
341
+
342
+ /**
343
+ * Check if the user is running Linux.
344
+ *
345
+ * @return bool `true' if the user's OS is some flavor of Linux.
346
+ */
347
+ linux: function() {
348
+ return _populate() || _linux;
349
+ },
350
+
351
+ /**
352
+ * Check if the user is running on an iPhone or iPod platform.
353
+ *
354
+ * @return bool `true' if the user is running some flavor of the
355
+ * iPhone OS.
356
+ */
357
+ iphone: function() {
358
+ return _populate() || _iphone;
359
+ },
360
+
361
+ mobile: function() {
362
+ return _populate() || (_iphone || _ipad || _android || _mobile);
363
+ },
364
+
365
+ nativeApp: function() {
366
+ // webviews inside of the native apps
367
+ return _populate() || _native;
368
+ },
369
+
370
+ android: function() {
371
+ return _populate() || _android;
372
+ },
373
+
374
+ ipad: function() {
375
+ return _populate() || _ipad;
376
+ }
377
+ };
378
+
379
+ module.exports = UserAgent_DEPRECATED;
380
+
381
+
382
+ /***/ }),
383
+
384
+ /***/ 3541:
385
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
386
+
387
+ /**
388
+ * Copyright 2013-2015, Facebook, Inc.
389
+ * All rights reserved.
390
+ *
391
+ * This source code is licensed under the BSD-style license found in the
392
+ * LICENSE file in the root directory of this source tree. An additional grant
393
+ * of patent rights can be found in the PATENTS file in the same directory.
394
+ *
395
+ * @providesModule isEventSupported
396
+ */
397
+
398
+
399
+
400
+ var ExecutionEnvironment = __webpack_require__(7430);
401
+
402
+ var useHasFeature;
403
+ if (ExecutionEnvironment.canUseDOM) {
404
+ useHasFeature =
405
+ document.implementation &&
406
+ document.implementation.hasFeature &&
407
+ // always returns true in newer browsers as per the standard.
408
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
409
+ document.implementation.hasFeature('', '') !== true;
410
+ }
411
+
412
+ /**
413
+ * Checks if an event is supported in the current execution environment.
414
+ *
415
+ * NOTE: This will not work correctly for non-generic events such as `change`,
416
+ * `reset`, `load`, `error`, and `select`.
417
+ *
418
+ * Borrows from Modernizr.
419
+ *
420
+ * @param {string} eventNameSuffix Event name, e.g. "click".
421
+ * @param {?boolean} capture Check if the capture phase is supported.
422
+ * @return {boolean} True if the event is supported.
423
+ * @internal
424
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
425
+ */
426
+ function isEventSupported(eventNameSuffix, capture) {
427
+ if (!ExecutionEnvironment.canUseDOM ||
428
+ capture && !('addEventListener' in document)) {
429
+ return false;
430
+ }
431
+
432
+ var eventName = 'on' + eventNameSuffix;
433
+ var isSupported = eventName in document;
434
+
435
+ if (!isSupported) {
436
+ var element = document.createElement('div');
437
+ element.setAttribute(eventName, 'return;');
438
+ isSupported = typeof element[eventName] === 'function';
439
+ }
440
+
441
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
442
+ // This is the only way to test support for the `wheel` event in IE9+.
443
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
444
+ }
445
+
446
+ return isSupported;
447
+ }
448
+
449
+ module.exports = isEventSupported;
450
+
451
+
452
+ /***/ }),
453
+
454
+ /***/ 2527:
455
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
456
+
457
+ /**
458
+ * Copyright (c) 2015, Facebook, Inc.
459
+ * All rights reserved.
460
+ *
461
+ * This source code is licensed under the BSD-style license found in the
462
+ * LICENSE file in the root directory of this source tree. An additional grant
463
+ * of patent rights can be found in the PATENTS file in the same directory.
464
+ *
465
+ * @providesModule normalizeWheel
466
+ * @typechecks
467
+ */
468
+
469
+
470
+
471
+ var UserAgent_DEPRECATED = __webpack_require__(6377);
472
+
473
+ var isEventSupported = __webpack_require__(3541);
474
+
475
+
476
+ // Reasonable defaults
477
+ var PIXEL_STEP = 10;
478
+ var LINE_HEIGHT = 40;
479
+ var PAGE_HEIGHT = 800;
480
+
481
+ /**
482
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
483
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
484
+ * your questions.
485
+ *
486
+ * If you need to react to the mouse wheel in a predictable way, this code is
487
+ * like your bestest friend. * hugs *
488
+ *
489
+ * As of today, there are 4 DOM event types you can listen to:
490
+ *
491
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
492
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
493
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
494
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
495
+ *
496
+ * So what to do? The is the best:
497
+ *
498
+ * normalizeWheel.getEventType();
499
+ *
500
+ * In your event callback, use this code to get sane interpretation of the
501
+ * deltas. This code will return an object with properties:
502
+ *
503
+ * spinX -- normalized spin speed (use for zoom) - x plane
504
+ * spinY -- " - y plane
505
+ * pixelX -- normalized distance (to pixels) - x plane
506
+ * pixelY -- " - y plane
507
+ *
508
+ * Wheel values are provided by the browser assuming you are using the wheel to
509
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
510
+ * significantly on different platforms and browsers, forgetting that you can
511
+ * scroll at different speeds. Some devices (like trackpads) emit more events
512
+ * at smaller increments with fine granularity, and some emit massive jumps with
513
+ * linear speed or acceleration.
514
+ *
515
+ * This code does its best to normalize the deltas for you:
516
+ *
517
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
518
+ * dragged). This is super useful for zoom support where you want to
519
+ * throw away the chunky scroll steps on the PC and make those equal to
520
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
521
+ * resolve a single slow step on a wheel to 1.
522
+ *
523
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
524
+ * get the crazy differences between browsers, but at least it'll be in
525
+ * pixels!
526
+ *
527
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
528
+ * should translate to positive value zooming IN, negative zooming OUT.
529
+ * This matches the newer 'wheel' event.
530
+ *
531
+ * Why are there spinX, spinY (or pixels)?
532
+ *
533
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
534
+ * with a mouse. It results in side-scrolling in the browser by default.
535
+ *
536
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
537
+ *
538
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
539
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
540
+ * you know.
541
+ *
542
+ * Implementation info:
543
+ *
544
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
545
+ * average mouse:
546
+ *
547
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
548
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
549
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
550
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
551
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
552
+ *
553
+ * On the trackpad:
554
+ *
555
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
556
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
557
+ *
558
+ * On other/older browsers.. it's more complicated as there can be multiple and
559
+ * also missing delta values.
560
+ *
561
+ * The 'wheel' event is more standard:
562
+ *
563
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
564
+ *
565
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
566
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
567
+ * backward compatibility with older events. Those other values help us
568
+ * better normalize spin speed. Example of what the browsers provide:
569
+ *
570
+ * | event.wheelDelta | event.detail
571
+ * ------------------+------------------+--------------
572
+ * Safari v5/OS X | -120 | 0
573
+ * Safari v5/Win7 | -120 | 0
574
+ * Chrome v17/OS X | -120 | 0
575
+ * Chrome v17/Win7 | -120 | 0
576
+ * IE9/Win7 | -120 | undefined
577
+ * Firefox v4/OS X | undefined | 1
578
+ * Firefox v4/Win7 | undefined | 3
579
+ *
580
+ */
581
+ function normalizeWheel(/*object*/ event) /*object*/ {
582
+ var sX = 0, sY = 0, // spinX, spinY
583
+ pX = 0, pY = 0; // pixelX, pixelY
584
+
585
+ // Legacy
586
+ if ('detail' in event) { sY = event.detail; }
587
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
588
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
589
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
590
+
591
+ // side scrolling on FF with DOMMouseScroll
592
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
593
+ sX = sY;
594
+ sY = 0;
595
+ }
596
+
597
+ pX = sX * PIXEL_STEP;
598
+ pY = sY * PIXEL_STEP;
599
+
600
+ if ('deltaY' in event) { pY = event.deltaY; }
601
+ if ('deltaX' in event) { pX = event.deltaX; }
602
+
603
+ if ((pX || pY) && event.deltaMode) {
604
+ if (event.deltaMode == 1) { // delta in LINE units
605
+ pX *= LINE_HEIGHT;
606
+ pY *= LINE_HEIGHT;
607
+ } else { // delta in PAGE units
608
+ pX *= PAGE_HEIGHT;
609
+ pY *= PAGE_HEIGHT;
610
+ }
611
+ }
612
+
613
+ // Fall-back if spin cannot be determined
614
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
615
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
616
+
617
+ return { spinX : sX,
618
+ spinY : sY,
619
+ pixelX : pX,
620
+ pixelY : pY };
621
+ }
622
+
623
+
624
+ /**
625
+ * The best combination if you prefer spinX + spinY normalization. It favors
626
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
627
+ * 'wheel' event, making spin speed determination impossible.
628
+ */
629
+ normalizeWheel.getEventType = function() /*string*/ {
630
+ return (UserAgent_DEPRECATED.firefox())
631
+ ? 'DOMMouseScroll'
632
+ : (isEventSupported('wheel'))
633
+ ? 'wheel'
634
+ : 'mousewheel';
635
+ };
636
+
637
+ module.exports = normalizeWheel;
638
+
639
+
640
+ /***/ }),
641
+
34
642
  /***/ 7609:
35
643
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
36
644
 
@@ -462,7 +1070,7 @@ __webpack_require__.d(__webpack_exports__, {
462
1070
  ;// CONCATENATED MODULE: external "../shared"
463
1071
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
464
1072
  var y = x => () => x
465
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["throttle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.throttle, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
1073
+ const shared_namespaceObject = x({ ["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, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["throttle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.throttle, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
466
1074
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
467
1075
  function _objectDestructuringEmpty(obj) {
468
1076
  if (obj == null) throw new TypeError("Cannot destructure " + obj);
@@ -470,7 +1078,7 @@ function _objectDestructuringEmpty(obj) {
470
1078
  ;// CONCATENATED MODULE: external "vue"
471
1079
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
472
1080
  var external_vue_y = x => () => x
473
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isRef, ["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, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
1081
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isRef, ["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, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
474
1082
  ;// CONCATENATED MODULE: external "lodash/isEqual"
475
1083
  var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
476
1084
  var isEqual_y = x => () => x
@@ -1085,8 +1693,353 @@ var tableProps = {
1085
1693
  }
1086
1694
  })
1087
1695
  };
1088
- ;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
1089
-
1696
+ ;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
1697
+
1698
+ /*
1699
+ * Tencent is pleased to support the open source community by making
1700
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1701
+ *
1702
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1703
+ *
1704
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1705
+ *
1706
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1707
+ *
1708
+ * ---------------------------------------------------
1709
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1710
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1711
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1712
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1713
+ *
1714
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1715
+ * the Software.
1716
+ *
1717
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1718
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1719
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1720
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1721
+ * IN THE SOFTWARE.
1722
+ */
1723
+
1724
+
1725
+
1726
+
1727
+
1728
+ var TableColumnProp = {
1729
+ label: LabelFunctionStringType,
1730
+ field: LabelFunctionStringType,
1731
+ render: RenderFunctionStringType,
1732
+ width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
1733
+ minWidth: StringNumberType(COL_MIN_WIDTH),
1734
+ columnKey: shared_namespaceObject.PropTypes.string.def(''),
1735
+ showOverflowTooltip: IOverflowTooltipPropType,
1736
+ type: columnType,
1737
+ resizable: shared_namespaceObject.PropTypes.bool.def(true),
1738
+ fixed: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, fixedType]).def(false),
1739
+ sort: ISortType,
1740
+ filter: IFilterType,
1741
+ colspan: SpanFunctionStringType.def(1),
1742
+ rowspan: SpanFunctionStringType.def(1),
1743
+ align: TableAlign,
1744
+ className: RowClassFunctionStringType,
1745
+ prop: LabelFunctionStringType,
1746
+ index: shared_namespaceObject.PropTypes.number.def(undefined)
1747
+ };
1748
+ /* harmony default export */ const table_column = ((0,external_vue_namespaceObject.defineComponent)({
1749
+ name: 'TableColumn',
1750
+ props: TableColumnProp,
1751
+ setup: function setup(props, _ref) {
1752
+ _objectDestructuringEmpty(_ref);
1753
+ var initTableColumns = (0,external_vue_namespaceObject.inject)(PROVIDE_KEY_INIT_COL, function () {});
1754
+ var lastPropsVal = {};
1755
+ var isPropsEqual = function isPropsEqual(sorce, target) {
1756
+ var rawProps = (0,external_vue_namespaceObject.toRaw)(target);
1757
+ var keys = Object.keys(rawProps);
1758
+ return keys.every(function (key) {
1759
+ if (typeof rawProps[key] === 'function') {
1760
+ return sorce[key] !== undefined;
1761
+ }
1762
+ if (key === 'children') {
1763
+ return true;
1764
+ }
1765
+ return (0,isEqual_namespaceObject["default"])(sorce[key], target[key]);
1766
+ });
1767
+ };
1768
+ (0,external_vue_namespaceObject.watch)(function () {
1769
+ return [props];
1770
+ }, function () {
1771
+ if (!isPropsEqual(lastPropsVal, props)) {
1772
+ initTableColumns();
1773
+ Object.assign(lastPropsVal, (0,external_vue_namespaceObject.toRaw)(props));
1774
+ }
1775
+ }, {
1776
+ immediate: true,
1777
+ deep: true
1778
+ });
1779
+ (0,external_vue_namespaceObject.onUnmounted)(function () {
1780
+ initTableColumns();
1781
+ });
1782
+ },
1783
+ render: function render() {
1784
+ try {
1785
+ var _this$$slots$default, _this$$slots;
1786
+ var renderDefault = (_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots, {
1787
+ row: {},
1788
+ column: {},
1789
+ $index: -1
1790
+ });
1791
+ var children = [renderDefault];
1792
+ var vnode = (0,external_vue_namespaceObject.h)('div', children);
1793
+ return vnode;
1794
+ } catch (_unused) {
1795
+ return (0,external_vue_namespaceObject.h)('div', []);
1796
+ }
1797
+ }
1798
+ }));
1799
+ ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
1800
+ 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; } } }; }
1801
+ 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); }
1802
+ 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; }
1803
+ /*
1804
+ * Tencent is pleased to support the open source community by making
1805
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1806
+ *
1807
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1808
+ *
1809
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1810
+ *
1811
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1812
+ *
1813
+ * ---------------------------------------------------
1814
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1815
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1816
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1817
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1818
+ *
1819
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1820
+ * the Software.
1821
+ *
1822
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1823
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1824
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1825
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1826
+ * IN THE SOFTWARE.
1827
+ */
1828
+ var isElement = function isElement(e) {
1829
+ if (typeof Element === 'undefined') return false;
1830
+ return e instanceof Element;
1831
+ };
1832
+ var nodeList = new Map();
1833
+ var startClick;
1834
+ document.addEventListener('mousedown', function (e) {
1835
+ return startClick = e;
1836
+ });
1837
+ document.addEventListener('mouseup', function (e) {
1838
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
1839
+ _step;
1840
+ try {
1841
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
1842
+ var handlers = _step.value;
1843
+ var _iterator2 = _createForOfIteratorHelper(handlers),
1844
+ _step2;
1845
+ try {
1846
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1847
+ var documentHandler = _step2.value.documentHandler;
1848
+ documentHandler(e, startClick);
1849
+ }
1850
+ } catch (err) {
1851
+ _iterator2.e(err);
1852
+ } finally {
1853
+ _iterator2.f();
1854
+ }
1855
+ }
1856
+ } catch (err) {
1857
+ _iterator.e(err);
1858
+ } finally {
1859
+ _iterator.f();
1860
+ }
1861
+ });
1862
+ function createDocumentHandler(el, binding) {
1863
+ var excludes = [];
1864
+ if (Array.isArray(binding.arg)) {
1865
+ excludes = binding.arg;
1866
+ } else if (isElement(binding.arg)) {
1867
+ excludes.push(binding.arg);
1868
+ }
1869
+ return function (mouseup, mousedown) {
1870
+ var popperRef = binding.instance.popperRef;
1871
+ var mouseUpTarget = mouseup.target;
1872
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
1873
+ var isBound = !binding || !binding.instance;
1874
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
1875
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
1876
+ var isSelf = el === mouseUpTarget;
1877
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
1878
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
1879
+ }) || excludes.length && excludes.includes(mouseDownTarget);
1880
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
1881
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
1882
+ return;
1883
+ }
1884
+ binding.value(mouseup, mousedown);
1885
+ };
1886
+ }
1887
+ var ClickOutside = {
1888
+ beforeMount: function beforeMount(el, binding) {
1889
+ if (!nodeList.has(el)) {
1890
+ nodeList.set(el, []);
1891
+ }
1892
+ nodeList.get(el).push({
1893
+ documentHandler: createDocumentHandler(el, binding),
1894
+ bindingFn: binding.value
1895
+ });
1896
+ },
1897
+ updated: function updated(el, binding) {
1898
+ if (!nodeList.has(el)) {
1899
+ nodeList.set(el, []);
1900
+ }
1901
+ var handlers = nodeList.get(el);
1902
+ var oldHandlerIndex = handlers.findIndex(function (item) {
1903
+ return item.bindingFn === binding.oldValue;
1904
+ });
1905
+ var newHandler = {
1906
+ documentHandler: createDocumentHandler(el, binding),
1907
+ bindingFn: binding.value
1908
+ };
1909
+ if (oldHandlerIndex >= 0) {
1910
+ // replace the old handler to the new handler
1911
+ handlers.splice(oldHandlerIndex, 1, newHandler);
1912
+ } else {
1913
+ handlers.push(newHandler);
1914
+ }
1915
+ },
1916
+ unmounted: function unmounted(el) {
1917
+ // remove all listeners when a component unmounted
1918
+ nodeList["delete"](el);
1919
+ }
1920
+ };
1921
+ ClickOutside.install = function (app) {
1922
+ app.directive('bkTooltips', ClickOutside);
1923
+ };
1924
+ /* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
1925
+ ;// CONCATENATED MODULE: external "../plugin-popover"
1926
+ var plugin_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1927
+ var plugin_popover_y = x => () => x
1928
+ const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"] });
1929
+ ;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
1930
+
1931
+ /*
1932
+ * Tencent is pleased to support the open source community by making
1933
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1934
+ *
1935
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1936
+ *
1937
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1938
+ *
1939
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1940
+ *
1941
+ * ---------------------------------------------------
1942
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1943
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1944
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1945
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1946
+ *
1947
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1948
+ * the Software.
1949
+ *
1950
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1951
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1952
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1953
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1954
+ * IN THE SOFTWARE.
1955
+ */
1956
+
1957
+ var resolveOptions = function resolveOptions(el, binding) {
1958
+ var options = {
1959
+ content: '',
1960
+ target: el
1961
+ };
1962
+ if (typeof_typeof(binding) === 'object') {
1963
+ Object.assign(options, binding);
1964
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
1965
+ Object.assign(options, binding.popoverOption);
1966
+ }
1967
+ } else {
1968
+ options.content = binding;
1969
+ }
1970
+ return options;
1971
+ };
1972
+ var createInstance = function createInstance(el, binding) {
1973
+ var instance = null;
1974
+ var createTimer = null;
1975
+ var hidePopTimer = null;
1976
+ var options = resolveOptions(el, binding);
1977
+ var disabled = options.disabled;
1978
+ if (disabled || instance) {
1979
+ return;
1980
+ }
1981
+ var handleContentEnter = function handleContentEnter() {
1982
+ hidePopTimer && clearTimeout(hidePopTimer);
1983
+ hidePopTimer = null;
1984
+ };
1985
+ var handleContentLeave = function handleContentLeave() {
1986
+ var _instance, _instance2;
1987
+ if (createTimer) {
1988
+ clearTimeout(createTimer);
1989
+ }
1990
+ (_instance = instance) === null || _instance === void 0 || _instance.hide();
1991
+ (_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
1992
+ instance = null;
1993
+ };
1994
+ var handleMouseEnter = function handleMouseEnter() {
1995
+ handleContentLeave();
1996
+ createTimer && clearTimeout(createTimer);
1997
+ createTimer = setTimeout(function () {
1998
+ var targetOptions = resolveOptions(el, binding);
1999
+ targetOptions.isShow = true;
2000
+ targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
2001
+ targetOptions.allowHtml = true;
2002
+ Object.assign(targetOptions, {
2003
+ onContentMouseenter: handleContentEnter,
2004
+ onContentMouseleave: handleContentLeave
2005
+ });
2006
+ instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
2007
+ }, 300);
2008
+ };
2009
+ var handleMouseLeave = function handleMouseLeave() {
2010
+ hidePopTimer = setTimeout(function () {
2011
+ var _instance3, _instance4;
2012
+ if (createTimer) {
2013
+ clearTimeout(createTimer);
2014
+ }
2015
+ (_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
2016
+ (_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
2017
+ instance = null;
2018
+ }, 120);
2019
+ };
2020
+ el.addEventListener('mouseenter', handleMouseEnter);
2021
+ el.addEventListener('mouseleave', handleMouseLeave);
2022
+ var destroyInstance = function destroyInstance(element) {
2023
+ var _ref, _ref2;
2024
+ handleMouseLeave();
2025
+ (_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
2026
+ (_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
2027
+ };
2028
+ return {
2029
+ destroyInstance: destroyInstance,
2030
+ instance: instance
2031
+ };
2032
+ };
2033
+ var ellipsis = {
2034
+ mounted: function mounted(el, binding) {
2035
+ createInstance(el, binding);
2036
+ }
2037
+ };
2038
+ /* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
2039
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
2040
+ var normalize_wheel = __webpack_require__(2439);
2041
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
2042
+ ;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
1090
2043
  /*
1091
2044
  * Tencent is pleased to support the open source community by making
1092
2045
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -1113,85 +2066,395 @@ var tableProps = {
1113
2066
  * IN THE SOFTWARE.
1114
2067
  */
1115
2068
 
2069
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
2070
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
2071
+ if (element !== null && element !== void 0 && element.addEventListener) {
2072
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
2073
+ var normalized = normalize_wheel_default()(e);
2074
+ callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
2075
+ });
2076
+ }
2077
+ };
2078
+ var mousewheel = {
2079
+ beforeMount: function beforeMount(el, binding) {
2080
+ mousewheelHandler(el, binding.value);
2081
+ }
2082
+ };
2083
+ /* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
2084
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
2085
+ function arrayLikeToArray_arrayLikeToArray(arr, len) {
2086
+ if (len == null || len > arr.length) len = arr.length;
2087
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
2088
+ return arr2;
2089
+ }
2090
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1116
2091
 
2092
+ function _arrayWithoutHoles(arr) {
2093
+ if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
2094
+ }
2095
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
2096
+ function _iterableToArray(iter) {
2097
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
2098
+ }
2099
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1117
2100
 
2101
+ function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
2102
+ if (!o) return;
2103
+ if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
2104
+ var n = Object.prototype.toString.call(o).slice(8, -1);
2105
+ if (n === "Object" && o.constructor) n = o.constructor.name;
2106
+ if (n === "Map" || n === "Set") return Array.from(o);
2107
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
2108
+ }
2109
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
2110
+ function _nonIterableSpread() {
2111
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2112
+ }
2113
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1118
2114
 
1119
2115
 
1120
- var TableColumnProp = {
1121
- label: LabelFunctionStringType,
1122
- field: LabelFunctionStringType,
1123
- render: RenderFunctionStringType,
1124
- width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
1125
- minWidth: StringNumberType(COL_MIN_WIDTH),
1126
- columnKey: shared_namespaceObject.PropTypes.string.def(''),
1127
- showOverflowTooltip: IOverflowTooltipPropType,
1128
- type: columnType,
1129
- resizable: shared_namespaceObject.PropTypes.bool.def(true),
1130
- fixed: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, fixedType]).def(false),
1131
- sort: ISortType,
1132
- filter: IFilterType,
1133
- colspan: SpanFunctionStringType.def(1),
1134
- rowspan: SpanFunctionStringType.def(1),
1135
- align: TableAlign,
1136
- className: RowClassFunctionStringType,
1137
- prop: LabelFunctionStringType,
1138
- index: shared_namespaceObject.PropTypes.number.def(undefined)
1139
- };
1140
- /* harmony default export */ const table_column = ((0,external_vue_namespaceObject.defineComponent)({
1141
- name: 'TableColumn',
1142
- props: TableColumnProp,
1143
- setup: function setup(props, _ref) {
1144
- _objectDestructuringEmpty(_ref);
1145
- var initTableColumns = (0,external_vue_namespaceObject.inject)(PROVIDE_KEY_INIT_COL, function () {});
1146
- var lastPropsVal = {};
1147
- var isPropsEqual = function isPropsEqual(sorce, target) {
1148
- var rawProps = (0,external_vue_namespaceObject.toRaw)(target);
1149
- var keys = Object.keys(rawProps);
1150
- return keys.every(function (key) {
1151
- if (typeof rawProps[key] === 'function') {
1152
- return sorce[key] !== undefined;
1153
- }
1154
- if (key === 'children') {
1155
- return true;
2116
+
2117
+
2118
+ function _toConsumableArray(arr) {
2119
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
2120
+ }
2121
+ ;// CONCATENATED MODULE: external "@popperjs/core"
2122
+ var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2123
+ var core_y = x => () => x
2124
+ const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
2125
+ ;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
2126
+
2127
+
2128
+
2129
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2130
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2131
+ /*
2132
+ * Tencent is pleased to support the open source community by making
2133
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2134
+ *
2135
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2136
+ *
2137
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2138
+ *
2139
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2140
+ *
2141
+ * ---------------------------------------------------
2142
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2143
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2144
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2145
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2146
+ *
2147
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2148
+ * the Software.
2149
+ *
2150
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2151
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2152
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2153
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2154
+ * IN THE SOFTWARE.
2155
+ */
2156
+
2157
+
2158
+
2159
+ var tooltips_nodeList = new WeakMap();
2160
+ var tooltips = {
2161
+ beforeMount: function beforeMount(el, binding) {
2162
+ var opts = getOpts(binding);
2163
+ var trigger = opts.trigger,
2164
+ showOnInit = opts.showOnInit;
2165
+ var popper = renderContent(opts);
2166
+ var delayTimeout = null;
2167
+ if (showOnInit) {
2168
+ (0,external_vue_namespaceObject.nextTick)(function () {
2169
+ show(el);
2170
+ });
2171
+ }
2172
+ if (trigger === 'hover') {
2173
+ var hideTimeout = null;
2174
+ el.addEventListener('mouseenter', function () {
2175
+ delayTimeout = setTimeout(function () {
2176
+ show(el);
2177
+ clearTimeout(hideTimeout);
2178
+ clearTimeout(delayTimeout);
2179
+ }, opts.delay);
2180
+ });
2181
+ popper.addEventListener('mouseenter', function () {
2182
+ clearTimeout(hideTimeout);
2183
+ });
2184
+ el.addEventListener('mouseleave', function () {
2185
+ clearTimeout(delayTimeout);
2186
+ hideTimeout = setTimeout(function () {
2187
+ hide(el);
2188
+ }, 100);
2189
+ });
2190
+ el.addEventListener('click', function () {
2191
+ hide(el);
2192
+ });
2193
+ popper.addEventListener('mouseleave', function () {
2194
+ clearTimeout(delayTimeout);
2195
+ hideTimeout = setTimeout(function () {
2196
+ hide(el);
2197
+ }, 100);
2198
+ });
2199
+ } else if (trigger === 'click') {
2200
+ document.body.addEventListener('click', function (event) {
2201
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
2202
+ delayTimeout = setTimeout(function () {
2203
+ show(el);
2204
+ clearTimeout(delayTimeout);
2205
+ }, opts.delay);
2206
+ } else if (popper.hasAttribute('data-show')) {
2207
+ hide(el);
1156
2208
  }
1157
- return (0,isEqual_namespaceObject["default"])(sorce[key], target[key]);
1158
2209
  });
1159
- };
1160
- (0,external_vue_namespaceObject.watch)(function () {
1161
- return [props];
1162
- }, function () {
1163
- if (!isPropsEqual(lastPropsVal, props)) {
1164
- initTableColumns();
1165
- Object.assign(lastPropsVal, (0,external_vue_namespaceObject.toRaw)(props));
1166
- }
1167
- }, {
1168
- immediate: true,
1169
- deep: true
1170
- });
1171
- (0,external_vue_namespaceObject.onUnmounted)(function () {
1172
- initTableColumns();
2210
+ }
2211
+ tooltips_nodeList.set(el, {
2212
+ opts: opts,
2213
+ popper: popper,
2214
+ popperInstance: null
1173
2215
  });
1174
2216
  },
1175
- render: function render() {
1176
- try {
1177
- var _this$$slots$default, _this$$slots;
1178
- var renderDefault = (_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots, {
1179
- row: {},
1180
- column: {},
1181
- $index: -1
1182
- });
1183
- var children = [renderDefault];
1184
- var vnode = (0,external_vue_namespaceObject.h)('div', children);
1185
- return vnode;
1186
- } catch (_unused) {
1187
- return (0,external_vue_namespaceObject.h)('div', []);
2217
+ updated: function updated(el, binding) {
2218
+ if (tooltips_nodeList.get(el)) {
2219
+ tooltips_nodeList.get(el).opts = getOpts(binding);
1188
2220
  }
2221
+ },
2222
+ unmounted: function unmounted(el) {
2223
+ hide(el);
2224
+ tooltips_nodeList["delete"](el);
1189
2225
  }
1190
- }));
1191
- ;// CONCATENATED MODULE: external "../directives"
1192
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1193
- var directives_y = x => () => x
1194
- const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkEllipsisInstance, ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
2226
+ };
2227
+ /**
2228
+ * 初始化配置
2229
+ * @returns tooltips配置
2230
+ */
2231
+ function initOptions() {
2232
+ var defaultOpts = {
2233
+ arrow: true,
2234
+ disabled: false,
2235
+ trigger: 'hover',
2236
+ theme: 'dark',
2237
+ content: '',
2238
+ showOnInit: false,
2239
+ placement: 'top',
2240
+ distance: 8,
2241
+ extCls: '',
2242
+ sameWidth: false,
2243
+ delay: 0,
2244
+ onShow: function onShow() {},
2245
+ onHide: function onHide() {}
2246
+ };
2247
+ return defaultOpts;
2248
+ }
2249
+ /**
2250
+ * 获取配置
2251
+ * @returns tooltips配置
2252
+ */
2253
+ function getOpts(binding) {
2254
+ var opts = initOptions();
2255
+ if (typeof_typeof(binding.value) === 'object') {
2256
+ Object.assign(opts, binding.value);
2257
+ } else {
2258
+ opts.content = binding.value;
2259
+ }
2260
+ return opts;
2261
+ }
2262
+ /**
2263
+ * 创建tooltips DOM
2264
+ * @param opts
2265
+ * @returns
2266
+ */
2267
+ function renderContext(value, content) {
2268
+ if (typeof value === 'string') {
2269
+ content.innerText = value;
2270
+ } else {
2271
+ // 如果 content 是 Vue 组件的实例,则挂载它
2272
+ var container = document.createElement('div');
2273
+ var vnode = (0,external_vue_namespaceObject.h)(value);
2274
+ (0,external_vue_namespaceObject.render)(vnode, container);
2275
+ content.innerHTML = container.innerHTML;
2276
+ }
2277
+ }
2278
+ function renderContent(opts) {
2279
+ var value = opts.content,
2280
+ hasArrow = opts.arrow,
2281
+ theme = opts.theme,
2282
+ extCls = opts.extCls;
2283
+ var isLight = theme === 'light';
2284
+ var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
2285
+ var content = document.createElement('div');
2286
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
2287
+ content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
2288
+ content.innerText = value;
2289
+ content.style.zIndex = String(zIndex);
2290
+ renderContext(value, content);
2291
+ if (hasArrow) {
2292
+ var arrow = renderArrow();
2293
+ content.appendChild(arrow);
2294
+ }
2295
+ return content;
2296
+ }
2297
+ /**
2298
+ * 渲染箭头dom
2299
+ * @returns arrow DOM
2300
+ */
2301
+ function renderArrow() {
2302
+ var arrow = document.createElement('div');
2303
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
2304
+ arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
2305
+ arrow.setAttribute('data-popper-arrow', '');
2306
+ return arrow;
2307
+ }
2308
+ /**
2309
+ * 创建popper实例
2310
+ * @param el
2311
+ * @param popper
2312
+ * @returns popper实例
2313
+ */
2314
+ function createPopperInstance(el, popper) {
2315
+ var _nodeList$get = tooltips_nodeList.get(el),
2316
+ opts = _nodeList$get.opts;
2317
+ var placement = opts.placement,
2318
+ distance = opts.distance,
2319
+ sameWidth = opts.sameWidth;
2320
+ var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
2321
+ placement: placement,
2322
+ modifiers: [{
2323
+ name: 'offset',
2324
+ options: {
2325
+ offset: [0, distance]
2326
+ }
2327
+ }, {
2328
+ name: 'arrow',
2329
+ options: {
2330
+ padding: 5
2331
+ }
2332
+ }].concat(_toConsumableArray(sameWidth ? [{
2333
+ name: 'sameWidth',
2334
+ enabled: true,
2335
+ phase: 'beforeWrite',
2336
+ requires: ['computeStyles'],
2337
+ fn: function fn(_ref) {
2338
+ var state = _ref.state;
2339
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
2340
+ },
2341
+ effect: function effect(_ref2) {
2342
+ var state = _ref2.state;
2343
+ state.elements.popper.style.overflowWrap = 'break-word';
2344
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
2345
+ }
2346
+ }] : []))
2347
+ });
2348
+ return popperInstance;
2349
+ }
2350
+ /**
2351
+ * 显示
2352
+ * @param el
2353
+ */
2354
+ function show(el) {
2355
+ var _nodeList$get2 = tooltips_nodeList.get(el),
2356
+ popper = _nodeList$get2.popper,
2357
+ opts = _nodeList$get2.opts;
2358
+ var disabled = opts.disabled,
2359
+ content = opts.content,
2360
+ hasArrow = opts.arrow,
2361
+ onShow = opts.onShow,
2362
+ boundary = opts.boundary,
2363
+ _opts$modifiers = opts.modifiers,
2364
+ modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
2365
+ if (disabled) return;
2366
+ renderContext(content, popper);
2367
+ if (hasArrow) {
2368
+ var arrow = renderArrow();
2369
+ popper.appendChild(arrow);
2370
+ }
2371
+ var container = document.body;
2372
+ if (boundary) {
2373
+ if (boundary === 'parent') {
2374
+ container = el.parentElement;
2375
+ } else if (boundary instanceof HTMLElement) {
2376
+ container = boundary;
2377
+ }
2378
+ }
2379
+ container.appendChild(popper);
2380
+ var popperInstance = createPopperInstance(el, popper);
2381
+ onShow();
2382
+ // Make the tooltip visible
2383
+ popper.setAttribute('data-show', '');
2384
+ // Enable the event listeners
2385
+ popperInstance.setOptions(function (options) {
2386
+ return _objectSpread(_objectSpread({}, options), {}, {
2387
+ modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
2388
+ name: 'eventListeners',
2389
+ enabled: true
2390
+ }])
2391
+ });
2392
+ });
2393
+ // Update its position
2394
+ popperInstance.forceUpdate();
2395
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
2396
+ }
2397
+ /**
2398
+ * 隐藏
2399
+ * @param el
2400
+ */
2401
+ function hide(el) {
2402
+ if (!tooltips_nodeList.get(el)) return;
2403
+ var _nodeList$get3 = tooltips_nodeList.get(el),
2404
+ popper = _nodeList$get3.popper,
2405
+ popperInstance = _nodeList$get3.popperInstance,
2406
+ opts = _nodeList$get3.opts;
2407
+ var onHide = opts.onHide;
2408
+ if (popper && document.body.contains(popper)) {
2409
+ var _popper$parentNode;
2410
+ popper.removeAttribute('data-show');
2411
+ popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
2412
+ popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
2413
+ onHide();
2414
+ }
2415
+ }
2416
+ /* harmony default export */ const src_tooltips = (tooltips);
2417
+ ;// CONCATENATED MODULE: external "../loading"
2418
+ var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2419
+ var external_loading_y = x => () => x
2420
+ const external_loading_namespaceObject = external_loading_x({ });
2421
+ ;// CONCATENATED MODULE: external "../overflow-title"
2422
+ var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2423
+ var external_overflow_title_y = x => () => x
2424
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
2425
+ ;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
2426
+ /*
2427
+ * Tencent is pleased to support the open source community by making
2428
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2429
+ *
2430
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2431
+ *
2432
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2433
+ *
2434
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2435
+ *
2436
+ * ---------------------------------------------------
2437
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2438
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2439
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2440
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2441
+ *
2442
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2443
+ * the Software.
2444
+ *
2445
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2446
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2447
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2448
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2449
+ * IN THE SOFTWARE.
2450
+ */
2451
+
2452
+
2453
+
2454
+
2455
+
2456
+
2457
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
1195
2458
  ;// CONCATENATED MODULE: external "lodash/debounce"
1196
2459
  var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1197
2460
  var debounce_y = x => () => x
@@ -1757,43 +3020,6 @@ function v4(options, buf, offset) {
1757
3020
  resolveColumns: resolveColumns
1758
3021
  };
1759
3022
  });
1760
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1761
- function _arrayLikeToArray(arr, len) {
1762
- if (len == null || len > arr.length) len = arr.length;
1763
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1764
- return arr2;
1765
- }
1766
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1767
-
1768
- function _arrayWithoutHoles(arr) {
1769
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1770
- }
1771
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1772
- function _iterableToArray(iter) {
1773
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1774
- }
1775
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1776
-
1777
- function _unsupportedIterableToArray(o, minLen) {
1778
- if (!o) return;
1779
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1780
- var n = Object.prototype.toString.call(o).slice(8, -1);
1781
- if (n === "Object" && o.constructor) n = o.constructor.name;
1782
- if (n === "Map" || n === "Set") return Array.from(o);
1783
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1784
- }
1785
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1786
- function _nonIterableSpread() {
1787
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1788
- }
1789
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1790
-
1791
-
1792
-
1793
-
1794
- function _toConsumableArray(arr) {
1795
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1796
- }
1797
3023
  ;// CONCATENATED MODULE: external "../config-provider"
1798
3024
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1799
3025
  var config_provider_y = x => () => x
@@ -2737,8 +3963,8 @@ var index = (function () {
2737
3963
 
2738
3964
 
2739
3965
  var _this = undefined;
2740
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2741
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3966
+ function utils_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; }
3967
+ function utils_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? utils_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : utils_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2742
3968
  /*
2743
3969
  * Tencent is pleased to support the open source community by making
2744
3970
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -3052,7 +4278,7 @@ var hasRootScrollY = function hasRootScrollY(root, querySelector) {
3052
4278
  var getColumnClass = function getColumnClass(column) {
3053
4279
  var colIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
3054
4280
  var uuid = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
3055
- return _objectSpread(_objectSpread({}, uuid ? _defineProperty({}, "".concat(uuid, "-column-").concat(colIndex), true) : {}), {}, {
4281
+ return utils_objectSpread(utils_objectSpread({}, uuid ? _defineProperty({}, "".concat(uuid, "-column-").concat(colIndex), true) : {}), {}, {
3056
4282
  column_fixed: !!column.fixed,
3057
4283
  column_fixed_left: !!column.fixed,
3058
4284
  column_fixed_right: column.fixed === 'right'
@@ -3180,7 +4406,7 @@ var resolveSort = function resolveSort(sort, column) {
3180
4406
  if (typeof_typeof(sort) === 'object' && sort !== null) {
3181
4407
  var _sort$value;
3182
4408
  if (typeof sort.sortFn === 'function') {
3183
- return _objectSpread({
4409
+ return utils_objectSpread({
3184
4410
  value: 'custom'
3185
4411
  }, sort);
3186
4412
  }
@@ -3229,7 +4455,7 @@ var resolveColumnSortProp = function resolveColumnSortProp(col, props) {
3229
4455
  };
3230
4456
  var resolveColumnFilterProp = function resolveColumnFilterProp(col) {
3231
4457
  if (typeof_typeof(col.filter) === 'object') {
3232
- return _objectSpread(_objectSpread({}, col.filter), {}, {
4458
+ return utils_objectSpread(utils_objectSpread({}, col.filter), {}, {
3233
4459
  enabled: true
3234
4460
  });
3235
4461
  }
@@ -5132,7 +6358,7 @@ const exception_less_namespaceObject = exception_less_x({ });
5132
6358
  if (isTipsEnabled.value) {
5133
6359
  var bindings = (0,external_vue_namespaceObject.ref)(resolveTooltipOption());
5134
6360
  if (bkEllipsisIns === null) {
5135
- bkEllipsisIns = (0,directives_namespaceObject.bkEllipsisInstance)(target, {
6361
+ bkEllipsisIns = createInstance(target, {
5136
6362
  disabled: bindings.value.disabled,
5137
6363
  content: bindings.value.content,
5138
6364
  mode: bindings.value.mode,
@@ -5727,7 +6953,7 @@ var ROW_HEIGHT = 32;
5727
6953
  /* harmony default export */ const head_filter = ((0,external_vue_namespaceObject.defineComponent)({
5728
6954
  name: 'HeadFilter',
5729
6955
  directives: {
5730
- bkTooltips: directives_namespaceObject.bkTooltips
6956
+ bkTooltips: src_tooltips
5731
6957
  },
5732
6958
  props: {
5733
6959
  column: IColumnType,
@@ -6063,7 +7289,7 @@ function _nonIterableRest() {
6063
7289
 
6064
7290
 
6065
7291
  function _slicedToArray(arr, i) {
6066
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
7292
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
6067
7293
  }
6068
7294
  ;// CONCATENATED MODULE: external "../icon/"
6069
7295
  var _x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
@@ -7822,7 +9048,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
7822
9048
  /* harmony default export */ const table = ((0,external_vue_namespaceObject.defineComponent)({
7823
9049
  name: 'Table',
7824
9050
  directives: {
7825
- bkTooltips: directives_namespaceObject.bkTooltips
9051
+ bkTooltips: src_tooltips
7826
9052
  },
7827
9053
  props: tableProps,
7828
9054
  emits: EMIT_EVENT_TYPES,