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.
@@ -2,15 +2,660 @@ import "../styles/reset.css";
2
2
  import "./popover.less";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
5
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
5
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
7
+ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
8
+ import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
6
9
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
7
10
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
8
11
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
9
12
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__ from "lodash/random";
10
- /******/ // The require scope
11
- /******/ var __webpack_require__ = {};
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 2439:
16
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
17
+
18
+ module.exports = __webpack_require__(2527);
19
+
20
+
21
+ /***/ }),
22
+
23
+ /***/ 7430:
24
+ /***/ ((module) => {
25
+
26
+ /**
27
+ * Copyright (c) 2015, Facebook, Inc.
28
+ * All rights reserved.
29
+ *
30
+ * This source code is licensed under the BSD-style license found in the
31
+ * LICENSE file in the root directory of this source tree. An additional grant
32
+ * of patent rights can be found in the PATENTS file in the same directory.
33
+ *
34
+ * @providesModule ExecutionEnvironment
35
+ */
36
+
37
+ /*jslint evil: true */
38
+
39
+
40
+
41
+ var canUseDOM = !!(
42
+ typeof window !== 'undefined' &&
43
+ window.document &&
44
+ window.document.createElement
45
+ );
46
+
47
+ /**
48
+ * Simple, lightweight module assisting with the detection and context of
49
+ * Worker. Helps avoid circular dependencies and allows code to reason about
50
+ * whether or not they are in a Worker, even if they never include the main
51
+ * `ReactWorker` dependency.
52
+ */
53
+ var ExecutionEnvironment = {
54
+
55
+ canUseDOM: canUseDOM,
56
+
57
+ canUseWorkers: typeof Worker !== 'undefined',
58
+
59
+ canUseEventListeners:
60
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
61
+
62
+ canUseViewport: canUseDOM && !!window.screen,
63
+
64
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
65
+
66
+ };
67
+
68
+ module.exports = ExecutionEnvironment;
69
+
70
+
71
+ /***/ }),
72
+
73
+ /***/ 6377:
74
+ /***/ ((module) => {
75
+
76
+ /**
77
+ * Copyright 2004-present Facebook. All Rights Reserved.
78
+ *
79
+ * @providesModule UserAgent_DEPRECATED
80
+ */
81
+
82
+ /**
83
+ * Provides entirely client-side User Agent and OS detection. You should prefer
84
+ * the non-deprecated UserAgent module when possible, which exposes our
85
+ * authoritative server-side PHP-based detection to the client.
86
+ *
87
+ * Usage is straightforward:
88
+ *
89
+ * if (UserAgent_DEPRECATED.ie()) {
90
+ * // IE
91
+ * }
92
+ *
93
+ * You can also do version checks:
94
+ *
95
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
96
+ * // IE7 or better
97
+ * }
98
+ *
99
+ * The browser functions will return NaN if the browser does not match, so
100
+ * you can also do version compares the other way:
101
+ *
102
+ * if (UserAgent_DEPRECATED.ie() < 7) {
103
+ * // IE6 or worse
104
+ * }
105
+ *
106
+ * Note that the version is a float and may include a minor version number,
107
+ * so you should always use range operators to perform comparisons, not
108
+ * strict equality.
109
+ *
110
+ * **Note:** You should **strongly** prefer capability detection to browser
111
+ * version detection where it's reasonable:
112
+ *
113
+ * http://www.quirksmode.org/js/support.html
114
+ *
115
+ * Further, we have a large number of mature wrapper functions and classes
116
+ * which abstract away many browser irregularities. Check the documentation,
117
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
118
+ * another copy of "event || window.event".
119
+ *
120
+ */
121
+
122
+ var _populated = false;
123
+
124
+ // Browsers
125
+ var _ie, _firefox, _opera, _webkit, _chrome;
126
+
127
+ // Actual IE browser for compatibility mode
128
+ var _ie_real_version;
129
+
130
+ // Platforms
131
+ var _osx, _windows, _linux, _android;
132
+
133
+ // Architectures
134
+ var _win64;
135
+
136
+ // Devices
137
+ var _iphone, _ipad, _native;
138
+
139
+ var _mobile;
140
+
141
+ function _populate() {
142
+ if (_populated) {
143
+ return;
144
+ }
145
+
146
+ _populated = true;
147
+
148
+ // To work around buggy JS libraries that can't handle multi-digit
149
+ // version numbers, Opera 10's user agent string claims it's Opera
150
+ // 9, then later includes a Version/X.Y field:
151
+ //
152
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
153
+ var uas = navigator.userAgent;
154
+ 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);
155
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
156
+
157
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
158
+ _ipad = /\b(iP[ao]d)/.exec(uas);
159
+ _android = /Android/i.exec(uas);
160
+ _native = /FBAN\/\w+;/i.exec(uas);
161
+ _mobile = /Mobile/i.exec(uas);
162
+
163
+ // Note that the IE team blog would have you believe you should be checking
164
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
165
+ // from either x64 or ia64; so ultimately, you should just check for Win64
166
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
167
+ // Windows will send 'WOW64' instead.
168
+ _win64 = !!(/Win64/.exec(uas));
169
+
170
+ if (agent) {
171
+ _ie = agent[1] ? parseFloat(agent[1]) : (
172
+ agent[5] ? parseFloat(agent[5]) : NaN);
173
+ // IE compatibility mode
174
+ if (_ie && document && document.documentMode) {
175
+ _ie = document.documentMode;
176
+ }
177
+ // grab the "true" ie version from the trident token if available
178
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
179
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
180
+
181
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
182
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
183
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
184
+ if (_webkit) {
185
+ // We do not add the regexp to the above test, because it will always
186
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
187
+ // the userAgent string.
188
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
189
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
190
+ } else {
191
+ _chrome = NaN;
192
+ }
193
+ } else {
194
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
195
+ }
196
+
197
+ if (os) {
198
+ if (os[1]) {
199
+ // Detect OS X version. If no version number matches, set _osx to true.
200
+ // Version examples: 10, 10_6_1, 10.7
201
+ // Parses version number as a float, taking only first two sets of
202
+ // digits. If only one set of digits is found, returns just the major
203
+ // version number.
204
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
205
+
206
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
207
+ } else {
208
+ _osx = false;
209
+ }
210
+ _windows = !!os[2];
211
+ _linux = !!os[3];
212
+ } else {
213
+ _osx = _windows = _linux = false;
214
+ }
215
+ }
216
+
217
+ var UserAgent_DEPRECATED = {
218
+
219
+ /**
220
+ * Check if the UA is Internet Explorer.
221
+ *
222
+ *
223
+ * @return float|NaN Version number (if match) or NaN.
224
+ */
225
+ ie: function() {
226
+ return _populate() || _ie;
227
+ },
228
+
229
+ /**
230
+ * Check if we're in Internet Explorer compatibility mode.
231
+ *
232
+ * @return bool true if in compatibility mode, false if
233
+ * not compatibility mode or not ie
234
+ */
235
+ ieCompatibilityMode: function() {
236
+ return _populate() || (_ie_real_version > _ie);
237
+ },
238
+
239
+
240
+ /**
241
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
242
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
243
+ * this when we don't need it -- tracked by #601957.
244
+ */
245
+ ie64: function() {
246
+ return UserAgent_DEPRECATED.ie() && _win64;
247
+ },
248
+
249
+ /**
250
+ * Check if the UA is Firefox.
251
+ *
252
+ *
253
+ * @return float|NaN Version number (if match) or NaN.
254
+ */
255
+ firefox: function() {
256
+ return _populate() || _firefox;
257
+ },
258
+
259
+
260
+ /**
261
+ * Check if the UA is Opera.
262
+ *
263
+ *
264
+ * @return float|NaN Version number (if match) or NaN.
265
+ */
266
+ opera: function() {
267
+ return _populate() || _opera;
268
+ },
269
+
270
+
271
+ /**
272
+ * Check if the UA is WebKit.
273
+ *
274
+ *
275
+ * @return float|NaN Version number (if match) or NaN.
276
+ */
277
+ webkit: function() {
278
+ return _populate() || _webkit;
279
+ },
280
+
281
+ /**
282
+ * For Push
283
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
284
+ */
285
+ safari: function() {
286
+ return UserAgent_DEPRECATED.webkit();
287
+ },
288
+
289
+ /**
290
+ * Check if the UA is a Chrome browser.
291
+ *
292
+ *
293
+ * @return float|NaN Version number (if match) or NaN.
294
+ */
295
+ chrome : function() {
296
+ return _populate() || _chrome;
297
+ },
298
+
299
+
300
+ /**
301
+ * Check if the user is running Windows.
302
+ *
303
+ * @return bool `true' if the user's OS is Windows.
304
+ */
305
+ windows: function() {
306
+ return _populate() || _windows;
307
+ },
308
+
309
+
310
+ /**
311
+ * Check if the user is running Mac OS X.
312
+ *
313
+ * @return float|bool Returns a float if a version number is detected,
314
+ * otherwise true/false.
315
+ */
316
+ osx: function() {
317
+ return _populate() || _osx;
318
+ },
319
+
320
+ /**
321
+ * Check if the user is running Linux.
322
+ *
323
+ * @return bool `true' if the user's OS is some flavor of Linux.
324
+ */
325
+ linux: function() {
326
+ return _populate() || _linux;
327
+ },
328
+
329
+ /**
330
+ * Check if the user is running on an iPhone or iPod platform.
331
+ *
332
+ * @return bool `true' if the user is running some flavor of the
333
+ * iPhone OS.
334
+ */
335
+ iphone: function() {
336
+ return _populate() || _iphone;
337
+ },
338
+
339
+ mobile: function() {
340
+ return _populate() || (_iphone || _ipad || _android || _mobile);
341
+ },
342
+
343
+ nativeApp: function() {
344
+ // webviews inside of the native apps
345
+ return _populate() || _native;
346
+ },
347
+
348
+ android: function() {
349
+ return _populate() || _android;
350
+ },
351
+
352
+ ipad: function() {
353
+ return _populate() || _ipad;
354
+ }
355
+ };
356
+
357
+ module.exports = UserAgent_DEPRECATED;
358
+
359
+
360
+ /***/ }),
361
+
362
+ /***/ 3541:
363
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
364
+
365
+ /**
366
+ * Copyright 2013-2015, Facebook, Inc.
367
+ * All rights reserved.
368
+ *
369
+ * This source code is licensed under the BSD-style license found in the
370
+ * LICENSE file in the root directory of this source tree. An additional grant
371
+ * of patent rights can be found in the PATENTS file in the same directory.
372
+ *
373
+ * @providesModule isEventSupported
374
+ */
375
+
376
+
377
+
378
+ var ExecutionEnvironment = __webpack_require__(7430);
379
+
380
+ var useHasFeature;
381
+ if (ExecutionEnvironment.canUseDOM) {
382
+ useHasFeature =
383
+ document.implementation &&
384
+ document.implementation.hasFeature &&
385
+ // always returns true in newer browsers as per the standard.
386
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
387
+ document.implementation.hasFeature('', '') !== true;
388
+ }
389
+
390
+ /**
391
+ * Checks if an event is supported in the current execution environment.
392
+ *
393
+ * NOTE: This will not work correctly for non-generic events such as `change`,
394
+ * `reset`, `load`, `error`, and `select`.
395
+ *
396
+ * Borrows from Modernizr.
397
+ *
398
+ * @param {string} eventNameSuffix Event name, e.g. "click".
399
+ * @param {?boolean} capture Check if the capture phase is supported.
400
+ * @return {boolean} True if the event is supported.
401
+ * @internal
402
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
403
+ */
404
+ function isEventSupported(eventNameSuffix, capture) {
405
+ if (!ExecutionEnvironment.canUseDOM ||
406
+ capture && !('addEventListener' in document)) {
407
+ return false;
408
+ }
409
+
410
+ var eventName = 'on' + eventNameSuffix;
411
+ var isSupported = eventName in document;
412
+
413
+ if (!isSupported) {
414
+ var element = document.createElement('div');
415
+ element.setAttribute(eventName, 'return;');
416
+ isSupported = typeof element[eventName] === 'function';
417
+ }
418
+
419
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
420
+ // This is the only way to test support for the `wheel` event in IE9+.
421
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
422
+ }
423
+
424
+ return isSupported;
425
+ }
426
+
427
+ module.exports = isEventSupported;
428
+
429
+
430
+ /***/ }),
431
+
432
+ /***/ 2527:
433
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
434
+
435
+ /**
436
+ * Copyright (c) 2015, Facebook, Inc.
437
+ * All rights reserved.
438
+ *
439
+ * This source code is licensed under the BSD-style license found in the
440
+ * LICENSE file in the root directory of this source tree. An additional grant
441
+ * of patent rights can be found in the PATENTS file in the same directory.
442
+ *
443
+ * @providesModule normalizeWheel
444
+ * @typechecks
445
+ */
446
+
447
+
448
+
449
+ var UserAgent_DEPRECATED = __webpack_require__(6377);
450
+
451
+ var isEventSupported = __webpack_require__(3541);
452
+
453
+
454
+ // Reasonable defaults
455
+ var PIXEL_STEP = 10;
456
+ var LINE_HEIGHT = 40;
457
+ var PAGE_HEIGHT = 800;
458
+
459
+ /**
460
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
461
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
462
+ * your questions.
463
+ *
464
+ * If you need to react to the mouse wheel in a predictable way, this code is
465
+ * like your bestest friend. * hugs *
466
+ *
467
+ * As of today, there are 4 DOM event types you can listen to:
468
+ *
469
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
470
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
471
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
472
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
473
+ *
474
+ * So what to do? The is the best:
475
+ *
476
+ * normalizeWheel.getEventType();
477
+ *
478
+ * In your event callback, use this code to get sane interpretation of the
479
+ * deltas. This code will return an object with properties:
480
+ *
481
+ * spinX -- normalized spin speed (use for zoom) - x plane
482
+ * spinY -- " - y plane
483
+ * pixelX -- normalized distance (to pixels) - x plane
484
+ * pixelY -- " - y plane
485
+ *
486
+ * Wheel values are provided by the browser assuming you are using the wheel to
487
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
488
+ * significantly on different platforms and browsers, forgetting that you can
489
+ * scroll at different speeds. Some devices (like trackpads) emit more events
490
+ * at smaller increments with fine granularity, and some emit massive jumps with
491
+ * linear speed or acceleration.
492
+ *
493
+ * This code does its best to normalize the deltas for you:
494
+ *
495
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
496
+ * dragged). This is super useful for zoom support where you want to
497
+ * throw away the chunky scroll steps on the PC and make those equal to
498
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
499
+ * resolve a single slow step on a wheel to 1.
500
+ *
501
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
502
+ * get the crazy differences between browsers, but at least it'll be in
503
+ * pixels!
504
+ *
505
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
506
+ * should translate to positive value zooming IN, negative zooming OUT.
507
+ * This matches the newer 'wheel' event.
508
+ *
509
+ * Why are there spinX, spinY (or pixels)?
510
+ *
511
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
512
+ * with a mouse. It results in side-scrolling in the browser by default.
513
+ *
514
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
515
+ *
516
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
517
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
518
+ * you know.
519
+ *
520
+ * Implementation info:
521
+ *
522
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
523
+ * average mouse:
524
+ *
525
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
526
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
527
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
528
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
529
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
530
+ *
531
+ * On the trackpad:
532
+ *
533
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
534
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
535
+ *
536
+ * On other/older browsers.. it's more complicated as there can be multiple and
537
+ * also missing delta values.
538
+ *
539
+ * The 'wheel' event is more standard:
540
+ *
541
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
542
+ *
543
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
544
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
545
+ * backward compatibility with older events. Those other values help us
546
+ * better normalize spin speed. Example of what the browsers provide:
547
+ *
548
+ * | event.wheelDelta | event.detail
549
+ * ------------------+------------------+--------------
550
+ * Safari v5/OS X | -120 | 0
551
+ * Safari v5/Win7 | -120 | 0
552
+ * Chrome v17/OS X | -120 | 0
553
+ * Chrome v17/Win7 | -120 | 0
554
+ * IE9/Win7 | -120 | undefined
555
+ * Firefox v4/OS X | undefined | 1
556
+ * Firefox v4/Win7 | undefined | 3
557
+ *
558
+ */
559
+ function normalizeWheel(/*object*/ event) /*object*/ {
560
+ var sX = 0, sY = 0, // spinX, spinY
561
+ pX = 0, pY = 0; // pixelX, pixelY
562
+
563
+ // Legacy
564
+ if ('detail' in event) { sY = event.detail; }
565
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
566
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
567
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
568
+
569
+ // side scrolling on FF with DOMMouseScroll
570
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
571
+ sX = sY;
572
+ sY = 0;
573
+ }
574
+
575
+ pX = sX * PIXEL_STEP;
576
+ pY = sY * PIXEL_STEP;
577
+
578
+ if ('deltaY' in event) { pY = event.deltaY; }
579
+ if ('deltaX' in event) { pX = event.deltaX; }
580
+
581
+ if ((pX || pY) && event.deltaMode) {
582
+ if (event.deltaMode == 1) { // delta in LINE units
583
+ pX *= LINE_HEIGHT;
584
+ pY *= LINE_HEIGHT;
585
+ } else { // delta in PAGE units
586
+ pX *= PAGE_HEIGHT;
587
+ pY *= PAGE_HEIGHT;
588
+ }
589
+ }
590
+
591
+ // Fall-back if spin cannot be determined
592
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
593
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
594
+
595
+ return { spinX : sX,
596
+ spinY : sY,
597
+ pixelX : pX,
598
+ pixelY : pY };
599
+ }
600
+
601
+
602
+ /**
603
+ * The best combination if you prefer spinX + spinY normalization. It favors
604
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
605
+ * 'wheel' event, making spin speed determination impossible.
606
+ */
607
+ normalizeWheel.getEventType = function() /*string*/ {
608
+ return (UserAgent_DEPRECATED.firefox())
609
+ ? 'DOMMouseScroll'
610
+ : (isEventSupported('wheel'))
611
+ ? 'wheel'
612
+ : 'mousewheel';
613
+ };
614
+
615
+ module.exports = normalizeWheel;
616
+
617
+
618
+ /***/ })
619
+
620
+ /******/ });
621
+ /************************************************************************/
622
+ /******/ // The module cache
623
+ /******/ var __webpack_module_cache__ = {};
624
+ /******/
625
+ /******/ // The require function
626
+ /******/ function __webpack_require__(moduleId) {
627
+ /******/ // Check if module is in cache
628
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
629
+ /******/ if (cachedModule !== undefined) {
630
+ /******/ return cachedModule.exports;
631
+ /******/ }
632
+ /******/ // Create a new module (and put it into the cache)
633
+ /******/ var module = __webpack_module_cache__[moduleId] = {
634
+ /******/ // no module.id needed
635
+ /******/ // no module.loaded needed
636
+ /******/ exports: {}
637
+ /******/ };
638
+ /******/
639
+ /******/ // Execute the module function
640
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
641
+ /******/
642
+ /******/ // Return the exports of the module
643
+ /******/ return module.exports;
644
+ /******/ }
12
645
  /******/
13
646
  /************************************************************************/
647
+ /******/ /* webpack/runtime/compat get default export */
648
+ /******/ (() => {
649
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
650
+ /******/ __webpack_require__.n = (module) => {
651
+ /******/ var getter = module && module.__esModule ?
652
+ /******/ () => (module['default']) :
653
+ /******/ () => (module);
654
+ /******/ __webpack_require__.d(getter, { a: getter });
655
+ /******/ return getter;
656
+ /******/ };
657
+ /******/ })();
658
+ /******/
14
659
  /******/ /* webpack/runtime/define property getters */
15
660
  /******/ (() => {
16
661
  /******/ // define getter functions for harmony exports
@@ -30,6 +675,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__ from "lodash/rand
30
675
  /******/
31
676
  /************************************************************************/
32
677
  var __webpack_exports__ = {};
678
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
679
+ (() => {
33
680
 
34
681
  // EXPORTS
35
682
  __webpack_require__.d(__webpack_exports__, {
@@ -41,21 +688,265 @@ __webpack_require__.d(__webpack_exports__, {
41
688
  ;// CONCATENATED MODULE: external "../shared"
42
689
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
43
690
  var y = x => () => x
44
- const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
691
+ const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
45
692
  ;// CONCATENATED MODULE: external "vue"
46
693
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
47
694
  var external_vue_y = x => () => x
48
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Text"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Text, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
49
- ;// CONCATENATED MODULE: external "../directives"
50
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
51
- var directives_y = x => () => x
52
- const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
53
- ;// CONCATENATED MODULE: external "../config-provider"
54
- var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
55
- var config_provider_y = x => () => x
56
- const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
57
- ;// CONCATENATED MODULE: ../../packages/popover/src/arrow.tsx
695
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Text"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Text, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
696
+ ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
697
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
698
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
699
+ 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; }
700
+ /*
701
+ * Tencent is pleased to support the open source community by making
702
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
703
+ *
704
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
705
+ *
706
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
707
+ *
708
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
709
+ *
710
+ * ---------------------------------------------------
711
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
712
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
713
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
714
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
715
+ *
716
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
717
+ * the Software.
718
+ *
719
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
720
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
721
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
722
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
723
+ * IN THE SOFTWARE.
724
+ */
725
+ var isElement = function isElement(e) {
726
+ if (typeof Element === 'undefined') return false;
727
+ return e instanceof Element;
728
+ };
729
+ var nodeList = new Map();
730
+ var startClick;
731
+ document.addEventListener('mousedown', function (e) {
732
+ return startClick = e;
733
+ });
734
+ document.addEventListener('mouseup', function (e) {
735
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
736
+ _step;
737
+ try {
738
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
739
+ var handlers = _step.value;
740
+ var _iterator2 = _createForOfIteratorHelper(handlers),
741
+ _step2;
742
+ try {
743
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
744
+ var documentHandler = _step2.value.documentHandler;
745
+ documentHandler(e, startClick);
746
+ }
747
+ } catch (err) {
748
+ _iterator2.e(err);
749
+ } finally {
750
+ _iterator2.f();
751
+ }
752
+ }
753
+ } catch (err) {
754
+ _iterator.e(err);
755
+ } finally {
756
+ _iterator.f();
757
+ }
758
+ });
759
+ function createDocumentHandler(el, binding) {
760
+ var excludes = [];
761
+ if (Array.isArray(binding.arg)) {
762
+ excludes = binding.arg;
763
+ } else if (isElement(binding.arg)) {
764
+ excludes.push(binding.arg);
765
+ }
766
+ return function (mouseup, mousedown) {
767
+ var popperRef = binding.instance.popperRef;
768
+ var mouseUpTarget = mouseup.target;
769
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
770
+ var isBound = !binding || !binding.instance;
771
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
772
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
773
+ var isSelf = el === mouseUpTarget;
774
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
775
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
776
+ }) || excludes.length && excludes.includes(mouseDownTarget);
777
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
778
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
779
+ return;
780
+ }
781
+ binding.value(mouseup, mousedown);
782
+ };
783
+ }
784
+ var ClickOutside = {
785
+ beforeMount: function beforeMount(el, binding) {
786
+ if (!nodeList.has(el)) {
787
+ nodeList.set(el, []);
788
+ }
789
+ nodeList.get(el).push({
790
+ documentHandler: createDocumentHandler(el, binding),
791
+ bindingFn: binding.value
792
+ });
793
+ },
794
+ updated: function updated(el, binding) {
795
+ if (!nodeList.has(el)) {
796
+ nodeList.set(el, []);
797
+ }
798
+ var handlers = nodeList.get(el);
799
+ var oldHandlerIndex = handlers.findIndex(function (item) {
800
+ return item.bindingFn === binding.oldValue;
801
+ });
802
+ var newHandler = {
803
+ documentHandler: createDocumentHandler(el, binding),
804
+ bindingFn: binding.value
805
+ };
806
+ if (oldHandlerIndex >= 0) {
807
+ // replace the old handler to the new handler
808
+ handlers.splice(oldHandlerIndex, 1, newHandler);
809
+ } else {
810
+ handlers.push(newHandler);
811
+ }
812
+ },
813
+ unmounted: function unmounted(el) {
814
+ // remove all listeners when a component unmounted
815
+ nodeList["delete"](el);
816
+ }
817
+ };
818
+ ClickOutside.install = function (app) {
819
+ app.directive('bkTooltips', ClickOutside);
820
+ };
821
+ /* harmony default export */ const clickoutside = (ClickOutside);
822
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
823
+ function _typeof(o) {
824
+ "@babel/helpers - typeof";
825
+
826
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
827
+ return typeof o;
828
+ } : function (o) {
829
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
830
+ }, _typeof(o);
831
+ }
832
+ ;// CONCATENATED MODULE: external "../plugin-popover"
833
+ var plugin_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
834
+ var plugin_popover_y = x => () => x
835
+ const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"] });
836
+ ;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
837
+
838
+ /*
839
+ * Tencent is pleased to support the open source community by making
840
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
841
+ *
842
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
843
+ *
844
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
845
+ *
846
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
847
+ *
848
+ * ---------------------------------------------------
849
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
850
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
851
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
852
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
853
+ *
854
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
855
+ * the Software.
856
+ *
857
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
858
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
859
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
860
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
861
+ * IN THE SOFTWARE.
862
+ */
58
863
 
864
+ var resolveOptions = function resolveOptions(el, binding) {
865
+ var options = {
866
+ content: '',
867
+ target: el
868
+ };
869
+ if (_typeof(binding) === 'object') {
870
+ Object.assign(options, binding);
871
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
872
+ Object.assign(options, binding.popoverOption);
873
+ }
874
+ } else {
875
+ options.content = binding;
876
+ }
877
+ return options;
878
+ };
879
+ var createInstance = function createInstance(el, binding) {
880
+ var instance = null;
881
+ var createTimer = null;
882
+ var hidePopTimer = null;
883
+ var options = resolveOptions(el, binding);
884
+ var disabled = options.disabled;
885
+ if (disabled || instance) {
886
+ return;
887
+ }
888
+ var handleContentEnter = function handleContentEnter() {
889
+ hidePopTimer && clearTimeout(hidePopTimer);
890
+ hidePopTimer = null;
891
+ };
892
+ var handleContentLeave = function handleContentLeave() {
893
+ var _instance, _instance2;
894
+ if (createTimer) {
895
+ clearTimeout(createTimer);
896
+ }
897
+ (_instance = instance) === null || _instance === void 0 || _instance.hide();
898
+ (_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
899
+ instance = null;
900
+ };
901
+ var handleMouseEnter = function handleMouseEnter() {
902
+ handleContentLeave();
903
+ createTimer && clearTimeout(createTimer);
904
+ createTimer = setTimeout(function () {
905
+ var targetOptions = resolveOptions(el, binding);
906
+ targetOptions.isShow = true;
907
+ targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
908
+ targetOptions.allowHtml = true;
909
+ Object.assign(targetOptions, {
910
+ onContentMouseenter: handleContentEnter,
911
+ onContentMouseleave: handleContentLeave
912
+ });
913
+ instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
914
+ }, 300);
915
+ };
916
+ var handleMouseLeave = function handleMouseLeave() {
917
+ hidePopTimer = setTimeout(function () {
918
+ var _instance3, _instance4;
919
+ if (createTimer) {
920
+ clearTimeout(createTimer);
921
+ }
922
+ (_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
923
+ (_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
924
+ instance = null;
925
+ }, 120);
926
+ };
927
+ el.addEventListener('mouseenter', handleMouseEnter);
928
+ el.addEventListener('mouseleave', handleMouseLeave);
929
+ var destroyInstance = function destroyInstance(element) {
930
+ var _ref, _ref2;
931
+ handleMouseLeave();
932
+ (_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
933
+ (_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
934
+ };
935
+ return {
936
+ destroyInstance: destroyInstance,
937
+ instance: instance
938
+ };
939
+ };
940
+ var ellipsis = {
941
+ mounted: function mounted(el, binding) {
942
+ createInstance(el, binding);
943
+ }
944
+ };
945
+ /* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
946
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
947
+ var normalize_wheel = __webpack_require__(2439);
948
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
949
+ ;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
59
950
  /*
60
951
  * Tencent is pleased to support the open source community by making
61
952
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -82,28 +973,21 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
82
973
  * IN THE SOFTWARE.
83
974
  */
84
975
 
85
-
86
- /* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
87
- name: 'PopArrow',
88
- render: function render() {
89
- var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
90
- resolveClassName = _usePrefix.resolveClassName;
91
- var arrowClassName = resolveClassName('pop2-arrow');
92
- return (0,external_vue_namespaceObject.createVNode)("div", {
93
- "class": arrowClassName
94
- }, null);
976
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
977
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
978
+ if (element !== null && element !== void 0 && element.addEventListener) {
979
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
980
+ var normalized = normalize_wheel_default()(e);
981
+ callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
982
+ });
95
983
  }
96
- }));
97
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
98
- function _typeof(o) {
99
- "@babel/helpers - typeof";
100
-
101
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
102
- return typeof o;
103
- } : function (o) {
104
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
105
- }, _typeof(o);
106
- }
984
+ };
985
+ var mousewheel = {
986
+ beforeMount: function beforeMount(el, binding) {
987
+ mousewheelHandler(el, binding.value);
988
+ }
989
+ };
990
+ /* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
107
991
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
108
992
 
109
993
  function toPrimitive(t, r) {
@@ -139,6 +1023,424 @@ function _defineProperty(obj, key, value) {
139
1023
  }
140
1024
  return obj;
141
1025
  }
1026
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1027
+ function arrayLikeToArray_arrayLikeToArray(arr, len) {
1028
+ if (len == null || len > arr.length) len = arr.length;
1029
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1030
+ return arr2;
1031
+ }
1032
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1033
+
1034
+ function _arrayWithoutHoles(arr) {
1035
+ if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
1036
+ }
1037
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1038
+ function _iterableToArray(iter) {
1039
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1040
+ }
1041
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1042
+
1043
+ function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
1044
+ if (!o) return;
1045
+ if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
1046
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1047
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1048
+ if (n === "Map" || n === "Set") return Array.from(o);
1049
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
1050
+ }
1051
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1052
+ function _nonIterableSpread() {
1053
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1054
+ }
1055
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1056
+
1057
+
1058
+
1059
+
1060
+ function _toConsumableArray(arr) {
1061
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
1062
+ }
1063
+ ;// CONCATENATED MODULE: external "@popperjs/core"
1064
+ var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1065
+ var core_y = x => () => x
1066
+ const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
1067
+ ;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
1068
+
1069
+
1070
+
1071
+ 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; }
1072
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1073
+ /*
1074
+ * Tencent is pleased to support the open source community by making
1075
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1076
+ *
1077
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1078
+ *
1079
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1080
+ *
1081
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1082
+ *
1083
+ * ---------------------------------------------------
1084
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1085
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1086
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1087
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1088
+ *
1089
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1090
+ * the Software.
1091
+ *
1092
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1093
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1094
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1095
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1096
+ * IN THE SOFTWARE.
1097
+ */
1098
+
1099
+
1100
+
1101
+ var tooltips_nodeList = new WeakMap();
1102
+ var tooltips = {
1103
+ beforeMount: function beforeMount(el, binding) {
1104
+ var opts = getOpts(binding);
1105
+ var trigger = opts.trigger,
1106
+ showOnInit = opts.showOnInit;
1107
+ var popper = renderContent(opts);
1108
+ var delayTimeout = null;
1109
+ if (showOnInit) {
1110
+ (0,external_vue_namespaceObject.nextTick)(function () {
1111
+ show(el);
1112
+ });
1113
+ }
1114
+ if (trigger === 'hover') {
1115
+ var hideTimeout = null;
1116
+ el.addEventListener('mouseenter', function () {
1117
+ delayTimeout = setTimeout(function () {
1118
+ show(el);
1119
+ clearTimeout(hideTimeout);
1120
+ clearTimeout(delayTimeout);
1121
+ }, opts.delay);
1122
+ });
1123
+ popper.addEventListener('mouseenter', function () {
1124
+ clearTimeout(hideTimeout);
1125
+ });
1126
+ el.addEventListener('mouseleave', function () {
1127
+ clearTimeout(delayTimeout);
1128
+ hideTimeout = setTimeout(function () {
1129
+ hide(el);
1130
+ }, 100);
1131
+ });
1132
+ el.addEventListener('click', function () {
1133
+ hide(el);
1134
+ });
1135
+ popper.addEventListener('mouseleave', function () {
1136
+ clearTimeout(delayTimeout);
1137
+ hideTimeout = setTimeout(function () {
1138
+ hide(el);
1139
+ }, 100);
1140
+ });
1141
+ } else if (trigger === 'click') {
1142
+ document.body.addEventListener('click', function (event) {
1143
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
1144
+ delayTimeout = setTimeout(function () {
1145
+ show(el);
1146
+ clearTimeout(delayTimeout);
1147
+ }, opts.delay);
1148
+ } else if (popper.hasAttribute('data-show')) {
1149
+ hide(el);
1150
+ }
1151
+ });
1152
+ }
1153
+ tooltips_nodeList.set(el, {
1154
+ opts: opts,
1155
+ popper: popper,
1156
+ popperInstance: null
1157
+ });
1158
+ },
1159
+ updated: function updated(el, binding) {
1160
+ if (tooltips_nodeList.get(el)) {
1161
+ tooltips_nodeList.get(el).opts = getOpts(binding);
1162
+ }
1163
+ },
1164
+ unmounted: function unmounted(el) {
1165
+ hide(el);
1166
+ tooltips_nodeList["delete"](el);
1167
+ }
1168
+ };
1169
+ /**
1170
+ * 初始化配置
1171
+ * @returns tooltips配置
1172
+ */
1173
+ function initOptions() {
1174
+ var defaultOpts = {
1175
+ arrow: true,
1176
+ disabled: false,
1177
+ trigger: 'hover',
1178
+ theme: 'dark',
1179
+ content: '',
1180
+ showOnInit: false,
1181
+ placement: 'top',
1182
+ distance: 8,
1183
+ extCls: '',
1184
+ sameWidth: false,
1185
+ delay: 0,
1186
+ onShow: function onShow() {},
1187
+ onHide: function onHide() {}
1188
+ };
1189
+ return defaultOpts;
1190
+ }
1191
+ /**
1192
+ * 获取配置
1193
+ * @returns tooltips配置
1194
+ */
1195
+ function getOpts(binding) {
1196
+ var opts = initOptions();
1197
+ if (_typeof(binding.value) === 'object') {
1198
+ Object.assign(opts, binding.value);
1199
+ } else {
1200
+ opts.content = binding.value;
1201
+ }
1202
+ return opts;
1203
+ }
1204
+ /**
1205
+ * 创建tooltips DOM
1206
+ * @param opts
1207
+ * @returns
1208
+ */
1209
+ function renderContext(value, content) {
1210
+ if (typeof value === 'string') {
1211
+ content.innerText = value;
1212
+ } else {
1213
+ // 如果 content 是 Vue 组件的实例,则挂载它
1214
+ var container = document.createElement('div');
1215
+ var vnode = (0,external_vue_namespaceObject.h)(value);
1216
+ (0,external_vue_namespaceObject.render)(vnode, container);
1217
+ content.innerHTML = container.innerHTML;
1218
+ }
1219
+ }
1220
+ function renderContent(opts) {
1221
+ var value = opts.content,
1222
+ hasArrow = opts.arrow,
1223
+ theme = opts.theme,
1224
+ extCls = opts.extCls;
1225
+ var isLight = theme === 'light';
1226
+ var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
1227
+ var content = document.createElement('div');
1228
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1229
+ content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
1230
+ content.innerText = value;
1231
+ content.style.zIndex = String(zIndex);
1232
+ renderContext(value, content);
1233
+ if (hasArrow) {
1234
+ var arrow = renderArrow();
1235
+ content.appendChild(arrow);
1236
+ }
1237
+ return content;
1238
+ }
1239
+ /**
1240
+ * 渲染箭头dom
1241
+ * @returns arrow DOM
1242
+ */
1243
+ function renderArrow() {
1244
+ var arrow = document.createElement('div');
1245
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1246
+ arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
1247
+ arrow.setAttribute('data-popper-arrow', '');
1248
+ return arrow;
1249
+ }
1250
+ /**
1251
+ * 创建popper实例
1252
+ * @param el
1253
+ * @param popper
1254
+ * @returns popper实例
1255
+ */
1256
+ function createPopperInstance(el, popper) {
1257
+ var _nodeList$get = tooltips_nodeList.get(el),
1258
+ opts = _nodeList$get.opts;
1259
+ var placement = opts.placement,
1260
+ distance = opts.distance,
1261
+ sameWidth = opts.sameWidth;
1262
+ var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
1263
+ placement: placement,
1264
+ modifiers: [{
1265
+ name: 'offset',
1266
+ options: {
1267
+ offset: [0, distance]
1268
+ }
1269
+ }, {
1270
+ name: 'arrow',
1271
+ options: {
1272
+ padding: 5
1273
+ }
1274
+ }].concat(_toConsumableArray(sameWidth ? [{
1275
+ name: 'sameWidth',
1276
+ enabled: true,
1277
+ phase: 'beforeWrite',
1278
+ requires: ['computeStyles'],
1279
+ fn: function fn(_ref) {
1280
+ var state = _ref.state;
1281
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
1282
+ },
1283
+ effect: function effect(_ref2) {
1284
+ var state = _ref2.state;
1285
+ state.elements.popper.style.overflowWrap = 'break-word';
1286
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
1287
+ }
1288
+ }] : []))
1289
+ });
1290
+ return popperInstance;
1291
+ }
1292
+ /**
1293
+ * 显示
1294
+ * @param el
1295
+ */
1296
+ function show(el) {
1297
+ var _nodeList$get2 = tooltips_nodeList.get(el),
1298
+ popper = _nodeList$get2.popper,
1299
+ opts = _nodeList$get2.opts;
1300
+ var disabled = opts.disabled,
1301
+ content = opts.content,
1302
+ hasArrow = opts.arrow,
1303
+ onShow = opts.onShow,
1304
+ boundary = opts.boundary,
1305
+ _opts$modifiers = opts.modifiers,
1306
+ modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
1307
+ if (disabled) return;
1308
+ renderContext(content, popper);
1309
+ if (hasArrow) {
1310
+ var arrow = renderArrow();
1311
+ popper.appendChild(arrow);
1312
+ }
1313
+ var container = document.body;
1314
+ if (boundary) {
1315
+ if (boundary === 'parent') {
1316
+ container = el.parentElement;
1317
+ } else if (boundary instanceof HTMLElement) {
1318
+ container = boundary;
1319
+ }
1320
+ }
1321
+ container.appendChild(popper);
1322
+ var popperInstance = createPopperInstance(el, popper);
1323
+ onShow();
1324
+ // Make the tooltip visible
1325
+ popper.setAttribute('data-show', '');
1326
+ // Enable the event listeners
1327
+ popperInstance.setOptions(function (options) {
1328
+ return _objectSpread(_objectSpread({}, options), {}, {
1329
+ modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
1330
+ name: 'eventListeners',
1331
+ enabled: true
1332
+ }])
1333
+ });
1334
+ });
1335
+ // Update its position
1336
+ popperInstance.forceUpdate();
1337
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
1338
+ }
1339
+ /**
1340
+ * 隐藏
1341
+ * @param el
1342
+ */
1343
+ function hide(el) {
1344
+ if (!tooltips_nodeList.get(el)) return;
1345
+ var _nodeList$get3 = tooltips_nodeList.get(el),
1346
+ popper = _nodeList$get3.popper,
1347
+ popperInstance = _nodeList$get3.popperInstance,
1348
+ opts = _nodeList$get3.opts;
1349
+ var onHide = opts.onHide;
1350
+ if (popper && document.body.contains(popper)) {
1351
+ var _popper$parentNode;
1352
+ popper.removeAttribute('data-show');
1353
+ popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
1354
+ popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
1355
+ onHide();
1356
+ }
1357
+ }
1358
+ /* harmony default export */ const src_tooltips = ((/* unused pure expression or super */ null && (tooltips)));
1359
+ ;// CONCATENATED MODULE: external "../loading"
1360
+ var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1361
+ var external_loading_y = x => () => x
1362
+ const external_loading_namespaceObject = external_loading_x({ });
1363
+ ;// CONCATENATED MODULE: external "../overflow-title"
1364
+ var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1365
+ var external_overflow_title_y = x => () => x
1366
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
1367
+ ;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
1368
+ /*
1369
+ * Tencent is pleased to support the open source community by making
1370
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1371
+ *
1372
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1373
+ *
1374
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1375
+ *
1376
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1377
+ *
1378
+ * ---------------------------------------------------
1379
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1380
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1381
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1382
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1383
+ *
1384
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1385
+ * the Software.
1386
+ *
1387
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1388
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1389
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1390
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1391
+ * IN THE SOFTWARE.
1392
+ */
1393
+
1394
+
1395
+
1396
+
1397
+
1398
+
1399
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
1400
+ ;// CONCATENATED MODULE: external "../config-provider"
1401
+ var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1402
+ var config_provider_y = x => () => x
1403
+ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
1404
+ ;// CONCATENATED MODULE: ../../packages/popover/src/arrow.tsx
1405
+
1406
+ /*
1407
+ * Tencent is pleased to support the open source community by making
1408
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1409
+ *
1410
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1411
+ *
1412
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1413
+ *
1414
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1415
+ *
1416
+ * ---------------------------------------------------
1417
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1418
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1419
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1420
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1421
+ *
1422
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1423
+ * the Software.
1424
+ *
1425
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1426
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1427
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1428
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1429
+ * IN THE SOFTWARE.
1430
+ */
1431
+
1432
+
1433
+ /* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
1434
+ name: 'PopArrow',
1435
+ render: function render() {
1436
+ var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
1437
+ resolveClassName = _usePrefix.resolveClassName;
1438
+ var arrowClassName = resolveClassName('pop2-arrow');
1439
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1440
+ "class": arrowClassName
1441
+ }, null);
1442
+ }
1443
+ }));
142
1444
  ;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
143
1445
 
144
1446
  /* eslint-disable @typescript-eslint/naming-convention */
@@ -521,22 +1823,6 @@ function _iterableToArrayLimit(r, l) {
521
1823
  return a;
522
1824
  }
523
1825
  }
524
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
525
- function _arrayLikeToArray(arr, len) {
526
- if (len == null || len > arr.length) len = arr.length;
527
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
528
- return arr2;
529
- }
530
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
531
-
532
- function _unsupportedIterableToArray(o, minLen) {
533
- if (!o) return;
534
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
535
- var n = Object.prototype.toString.call(o).slice(8, -1);
536
- if (n === "Object" && o.constructor) n = o.constructor.name;
537
- if (n === "Map" || n === "Set") return Array.from(o);
538
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
539
- }
540
1826
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
541
1827
  function _nonIterableRest() {
542
1828
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -547,7 +1833,7 @@ function _nonIterableRest() {
547
1833
 
548
1834
 
549
1835
  function _slicedToArray(arr, i) {
550
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1836
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
551
1837
  }
552
1838
  ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
553
1839
  /**
@@ -1211,7 +2497,7 @@ function isAnySideFullyClipped(overflow) {
1211
2497
  * when it is not in the same clipping context as the reference element.
1212
2498
  * @see https://floating-ui.com/docs/hide
1213
2499
  */
1214
- const hide = function (options) {
2500
+ const floating_ui_core_hide = function (options) {
1215
2501
  if (options === void 0) {
1216
2502
  options = {};
1217
2503
  }
@@ -1725,7 +3011,7 @@ function getDocumentElement(node) {
1725
3011
  function isNode(value) {
1726
3012
  return value instanceof Node || value instanceof getWindow(value).Node;
1727
3013
  }
1728
- function isElement(value) {
3014
+ function floating_ui_utils_dom_isElement(value) {
1729
3015
  return value instanceof Element || value instanceof getWindow(value).Element;
1730
3016
  }
1731
3017
  function isHTMLElement(value) {
@@ -1779,7 +3065,7 @@ function getComputedStyle(element) {
1779
3065
  return getWindow(element).getComputedStyle(element);
1780
3066
  }
1781
3067
  function getNodeScroll(element) {
1782
- if (isElement(element)) {
3068
+ if (floating_ui_utils_dom_isElement(element)) {
1783
3069
  return {
1784
3070
  scrollLeft: element.scrollLeft,
1785
3071
  scrollTop: element.scrollTop
@@ -1863,7 +3149,7 @@ function getCssDimensions(element) {
1863
3149
  }
1864
3150
 
1865
3151
  function unwrapElement(element) {
1866
- return !isElement(element) ? element.contextElement : element;
3152
+ return !floating_ui_utils_dom_isElement(element) ? element.contextElement : element;
1867
3153
  }
1868
3154
 
1869
3155
  function getScale(element) {
@@ -1927,7 +3213,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
1927
3213
  let scale = createCoords(1);
1928
3214
  if (includeScale) {
1929
3215
  if (offsetParent) {
1930
- if (isElement(offsetParent)) {
3216
+ if (floating_ui_utils_dom_isElement(offsetParent)) {
1931
3217
  scale = getScale(offsetParent);
1932
3218
  }
1933
3219
  } else {
@@ -1941,7 +3227,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
1941
3227
  let height = clientRect.height / scale.y;
1942
3228
  if (domElement) {
1943
3229
  const win = getWindow(domElement);
1944
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
3230
+ const offsetWin = offsetParent && floating_ui_utils_dom_isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1945
3231
  let currentIFrame = win.frameElement;
1946
3232
  while (currentIFrame && offsetParent && offsetWin !== win) {
1947
3233
  const iframeScale = getScale(currentIFrame);
@@ -2081,7 +3367,7 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
2081
3367
  rect = getViewportRect(element, strategy);
2082
3368
  } else if (clippingAncestor === 'document') {
2083
3369
  rect = getDocumentRect(getDocumentElement(element));
2084
- } else if (isElement(clippingAncestor)) {
3370
+ } else if (floating_ui_utils_dom_isElement(clippingAncestor)) {
2085
3371
  rect = getInnerBoundingClientRect(clippingAncestor, strategy);
2086
3372
  } else {
2087
3373
  const visualOffsets = getVisualOffsets(element);
@@ -2095,7 +3381,7 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
2095
3381
  }
2096
3382
  function hasFixedPositionAncestor(element, stopNode) {
2097
3383
  const parentNode = getParentNode(element);
2098
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
3384
+ if (parentNode === stopNode || !floating_ui_utils_dom_isElement(parentNode) || isLastTraversableNode(parentNode)) {
2099
3385
  return false;
2100
3386
  }
2101
3387
  return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
@@ -2109,13 +3395,13 @@ function getClippingElementAncestors(element, cache) {
2109
3395
  if (cachedResult) {
2110
3396
  return cachedResult;
2111
3397
  }
2112
- let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
3398
+ let result = getOverflowAncestors(element, [], false).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
2113
3399
  let currentContainingBlockComputedStyle = null;
2114
3400
  const elementIsFixed = getComputedStyle(element).position === 'fixed';
2115
3401
  let currentNode = elementIsFixed ? getParentNode(element) : element;
2116
3402
 
2117
3403
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
2118
- while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
3404
+ while (floating_ui_utils_dom_isElement(currentNode) && !isLastTraversableNode(currentNode)) {
2119
3405
  const computedStyle = getComputedStyle(currentNode);
2120
3406
  const currentNodeIsContaining = isContainingBlock(currentNode);
2121
3407
  if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
@@ -2262,7 +3548,7 @@ const platform = {
2262
3548
  getClientRects,
2263
3549
  getDimensions,
2264
3550
  getScale,
2265
- isElement: isElement,
3551
+ isElement: floating_ui_utils_dom_isElement,
2266
3552
  isRTL
2267
3553
  };
2268
3554
 
@@ -2453,7 +3739,7 @@ const floating_ui_dom_size = (/* unused pure expression or super */ null && (siz
2453
3739
  * when it is not in the same clipping context as the reference element.
2454
3740
  * @see https://floating-ui.com/docs/hide
2455
3741
  */
2456
- const floating_ui_dom_hide = hide;
3742
+ const floating_ui_dom_hide = floating_ui_core_hide;
2457
3743
 
2458
3744
  /**
2459
3745
  * Provides data to position an inner element of the floating element so that it
@@ -2668,8 +3954,8 @@ var random = function random() {
2668
3954
  ;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
2669
3955
 
2670
3956
 
2671
- 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; }
2672
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3957
+ function use_floating_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3958
+ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? use_floating_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : use_floating_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2673
3959
  /*
2674
3960
  * Tencent is pleased to support the open source community by making
2675
3961
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2887,7 +4173,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2887
4173
  // class custom-theme
2888
4174
  var customThemeCls = compTheme.value.customThemes.join(' ');
2889
4175
  var customTheme = compTheme.value.customThemes.reduce(function (out, cur) {
2890
- return _objectSpread(_defineProperty({}, "data-".concat(cur, "-theme"), true), out);
4176
+ return use_floating_objectSpread(_defineProperty({}, "data-".concat(cur, "-theme"), true), out);
2891
4177
  }, {});
2892
4178
  var contentClass = "".concat(customThemeCls);
2893
4179
  var cleanup = null;
@@ -3528,7 +4814,7 @@ function _isSlot(s) {
3528
4814
  Root: root
3529
4815
  },
3530
4816
  directives: {
3531
- clickoutside: directives_namespaceObject.clickoutside
4817
+ clickoutside: clickoutside
3532
4818
  },
3533
4819
  props: PopoverProps,
3534
4820
  emits: EMIT_EVENT_TYPES,
@@ -3939,6 +5225,8 @@ var BkPopover = (0,shared_namespaceObject.withInstall)(popover);
3939
5225
  /* harmony default export */ const src = (BkPopover);
3940
5226
 
3941
5227
 
5228
+ })();
5229
+
3942
5230
  var __webpack_exports__$bkPopover = __webpack_exports__.$bkPopover;
3943
5231
  var __webpack_exports__PopoverProps = __webpack_exports__.PopoverProps;
3944
5232
  var __webpack_exports__default = __webpack_exports__["default"];