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.
@@ -3,7 +3,10 @@ import "./tag-input.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
5
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
6
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
7
+ import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
8
+ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
9
+ import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
7
10
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
8
11
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__ from "../loading";
9
12
  import "../loading/loading.less";
@@ -13,10 +16,652 @@ import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/de
13
16
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_trim_5cdad98c__ from "lodash/trim";
14
17
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
15
18
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_has_e9e453be__ from "lodash/has";
16
- /******/ // The require scope
17
- /******/ var __webpack_require__ = {};
19
+ /******/ var __webpack_modules__ = ({
20
+
21
+ /***/ 2439:
22
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
23
+
24
+ module.exports = __webpack_require__(2527);
25
+
26
+
27
+ /***/ }),
28
+
29
+ /***/ 7430:
30
+ /***/ ((module) => {
31
+
32
+ /**
33
+ * Copyright (c) 2015, Facebook, Inc.
34
+ * All rights reserved.
35
+ *
36
+ * This source code is licensed under the BSD-style license found in the
37
+ * LICENSE file in the root directory of this source tree. An additional grant
38
+ * of patent rights can be found in the PATENTS file in the same directory.
39
+ *
40
+ * @providesModule ExecutionEnvironment
41
+ */
42
+
43
+ /*jslint evil: true */
44
+
45
+
46
+
47
+ var canUseDOM = !!(
48
+ typeof window !== 'undefined' &&
49
+ window.document &&
50
+ window.document.createElement
51
+ );
52
+
53
+ /**
54
+ * Simple, lightweight module assisting with the detection and context of
55
+ * Worker. Helps avoid circular dependencies and allows code to reason about
56
+ * whether or not they are in a Worker, even if they never include the main
57
+ * `ReactWorker` dependency.
58
+ */
59
+ var ExecutionEnvironment = {
60
+
61
+ canUseDOM: canUseDOM,
62
+
63
+ canUseWorkers: typeof Worker !== 'undefined',
64
+
65
+ canUseEventListeners:
66
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
67
+
68
+ canUseViewport: canUseDOM && !!window.screen,
69
+
70
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
71
+
72
+ };
73
+
74
+ module.exports = ExecutionEnvironment;
75
+
76
+
77
+ /***/ }),
78
+
79
+ /***/ 6377:
80
+ /***/ ((module) => {
81
+
82
+ /**
83
+ * Copyright 2004-present Facebook. All Rights Reserved.
84
+ *
85
+ * @providesModule UserAgent_DEPRECATED
86
+ */
87
+
88
+ /**
89
+ * Provides entirely client-side User Agent and OS detection. You should prefer
90
+ * the non-deprecated UserAgent module when possible, which exposes our
91
+ * authoritative server-side PHP-based detection to the client.
92
+ *
93
+ * Usage is straightforward:
94
+ *
95
+ * if (UserAgent_DEPRECATED.ie()) {
96
+ * // IE
97
+ * }
98
+ *
99
+ * You can also do version checks:
100
+ *
101
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
102
+ * // IE7 or better
103
+ * }
104
+ *
105
+ * The browser functions will return NaN if the browser does not match, so
106
+ * you can also do version compares the other way:
107
+ *
108
+ * if (UserAgent_DEPRECATED.ie() < 7) {
109
+ * // IE6 or worse
110
+ * }
111
+ *
112
+ * Note that the version is a float and may include a minor version number,
113
+ * so you should always use range operators to perform comparisons, not
114
+ * strict equality.
115
+ *
116
+ * **Note:** You should **strongly** prefer capability detection to browser
117
+ * version detection where it's reasonable:
118
+ *
119
+ * http://www.quirksmode.org/js/support.html
120
+ *
121
+ * Further, we have a large number of mature wrapper functions and classes
122
+ * which abstract away many browser irregularities. Check the documentation,
123
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
124
+ * another copy of "event || window.event".
125
+ *
126
+ */
127
+
128
+ var _populated = false;
129
+
130
+ // Browsers
131
+ var _ie, _firefox, _opera, _webkit, _chrome;
132
+
133
+ // Actual IE browser for compatibility mode
134
+ var _ie_real_version;
135
+
136
+ // Platforms
137
+ var _osx, _windows, _linux, _android;
138
+
139
+ // Architectures
140
+ var _win64;
141
+
142
+ // Devices
143
+ var _iphone, _ipad, _native;
144
+
145
+ var _mobile;
146
+
147
+ function _populate() {
148
+ if (_populated) {
149
+ return;
150
+ }
151
+
152
+ _populated = true;
153
+
154
+ // To work around buggy JS libraries that can't handle multi-digit
155
+ // version numbers, Opera 10's user agent string claims it's Opera
156
+ // 9, then later includes a Version/X.Y field:
157
+ //
158
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
159
+ var uas = navigator.userAgent;
160
+ 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);
161
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
162
+
163
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
164
+ _ipad = /\b(iP[ao]d)/.exec(uas);
165
+ _android = /Android/i.exec(uas);
166
+ _native = /FBAN\/\w+;/i.exec(uas);
167
+ _mobile = /Mobile/i.exec(uas);
168
+
169
+ // Note that the IE team blog would have you believe you should be checking
170
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
171
+ // from either x64 or ia64; so ultimately, you should just check for Win64
172
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
173
+ // Windows will send 'WOW64' instead.
174
+ _win64 = !!(/Win64/.exec(uas));
175
+
176
+ if (agent) {
177
+ _ie = agent[1] ? parseFloat(agent[1]) : (
178
+ agent[5] ? parseFloat(agent[5]) : NaN);
179
+ // IE compatibility mode
180
+ if (_ie && document && document.documentMode) {
181
+ _ie = document.documentMode;
182
+ }
183
+ // grab the "true" ie version from the trident token if available
184
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
185
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
186
+
187
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
188
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
189
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
190
+ if (_webkit) {
191
+ // We do not add the regexp to the above test, because it will always
192
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
193
+ // the userAgent string.
194
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
195
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
196
+ } else {
197
+ _chrome = NaN;
198
+ }
199
+ } else {
200
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
201
+ }
202
+
203
+ if (os) {
204
+ if (os[1]) {
205
+ // Detect OS X version. If no version number matches, set _osx to true.
206
+ // Version examples: 10, 10_6_1, 10.7
207
+ // Parses version number as a float, taking only first two sets of
208
+ // digits. If only one set of digits is found, returns just the major
209
+ // version number.
210
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
211
+
212
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
213
+ } else {
214
+ _osx = false;
215
+ }
216
+ _windows = !!os[2];
217
+ _linux = !!os[3];
218
+ } else {
219
+ _osx = _windows = _linux = false;
220
+ }
221
+ }
222
+
223
+ var UserAgent_DEPRECATED = {
224
+
225
+ /**
226
+ * Check if the UA is Internet Explorer.
227
+ *
228
+ *
229
+ * @return float|NaN Version number (if match) or NaN.
230
+ */
231
+ ie: function() {
232
+ return _populate() || _ie;
233
+ },
234
+
235
+ /**
236
+ * Check if we're in Internet Explorer compatibility mode.
237
+ *
238
+ * @return bool true if in compatibility mode, false if
239
+ * not compatibility mode or not ie
240
+ */
241
+ ieCompatibilityMode: function() {
242
+ return _populate() || (_ie_real_version > _ie);
243
+ },
244
+
245
+
246
+ /**
247
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
248
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
249
+ * this when we don't need it -- tracked by #601957.
250
+ */
251
+ ie64: function() {
252
+ return UserAgent_DEPRECATED.ie() && _win64;
253
+ },
254
+
255
+ /**
256
+ * Check if the UA is Firefox.
257
+ *
258
+ *
259
+ * @return float|NaN Version number (if match) or NaN.
260
+ */
261
+ firefox: function() {
262
+ return _populate() || _firefox;
263
+ },
264
+
265
+
266
+ /**
267
+ * Check if the UA is Opera.
268
+ *
269
+ *
270
+ * @return float|NaN Version number (if match) or NaN.
271
+ */
272
+ opera: function() {
273
+ return _populate() || _opera;
274
+ },
275
+
276
+
277
+ /**
278
+ * Check if the UA is WebKit.
279
+ *
280
+ *
281
+ * @return float|NaN Version number (if match) or NaN.
282
+ */
283
+ webkit: function() {
284
+ return _populate() || _webkit;
285
+ },
286
+
287
+ /**
288
+ * For Push
289
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
290
+ */
291
+ safari: function() {
292
+ return UserAgent_DEPRECATED.webkit();
293
+ },
294
+
295
+ /**
296
+ * Check if the UA is a Chrome browser.
297
+ *
298
+ *
299
+ * @return float|NaN Version number (if match) or NaN.
300
+ */
301
+ chrome : function() {
302
+ return _populate() || _chrome;
303
+ },
304
+
305
+
306
+ /**
307
+ * Check if the user is running Windows.
308
+ *
309
+ * @return bool `true' if the user's OS is Windows.
310
+ */
311
+ windows: function() {
312
+ return _populate() || _windows;
313
+ },
314
+
315
+
316
+ /**
317
+ * Check if the user is running Mac OS X.
318
+ *
319
+ * @return float|bool Returns a float if a version number is detected,
320
+ * otherwise true/false.
321
+ */
322
+ osx: function() {
323
+ return _populate() || _osx;
324
+ },
325
+
326
+ /**
327
+ * Check if the user is running Linux.
328
+ *
329
+ * @return bool `true' if the user's OS is some flavor of Linux.
330
+ */
331
+ linux: function() {
332
+ return _populate() || _linux;
333
+ },
334
+
335
+ /**
336
+ * Check if the user is running on an iPhone or iPod platform.
337
+ *
338
+ * @return bool `true' if the user is running some flavor of the
339
+ * iPhone OS.
340
+ */
341
+ iphone: function() {
342
+ return _populate() || _iphone;
343
+ },
344
+
345
+ mobile: function() {
346
+ return _populate() || (_iphone || _ipad || _android || _mobile);
347
+ },
348
+
349
+ nativeApp: function() {
350
+ // webviews inside of the native apps
351
+ return _populate() || _native;
352
+ },
353
+
354
+ android: function() {
355
+ return _populate() || _android;
356
+ },
357
+
358
+ ipad: function() {
359
+ return _populate() || _ipad;
360
+ }
361
+ };
362
+
363
+ module.exports = UserAgent_DEPRECATED;
364
+
365
+
366
+ /***/ }),
367
+
368
+ /***/ 3541:
369
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
370
+
371
+ /**
372
+ * Copyright 2013-2015, Facebook, Inc.
373
+ * All rights reserved.
374
+ *
375
+ * This source code is licensed under the BSD-style license found in the
376
+ * LICENSE file in the root directory of this source tree. An additional grant
377
+ * of patent rights can be found in the PATENTS file in the same directory.
378
+ *
379
+ * @providesModule isEventSupported
380
+ */
381
+
382
+
383
+
384
+ var ExecutionEnvironment = __webpack_require__(7430);
385
+
386
+ var useHasFeature;
387
+ if (ExecutionEnvironment.canUseDOM) {
388
+ useHasFeature =
389
+ document.implementation &&
390
+ document.implementation.hasFeature &&
391
+ // always returns true in newer browsers as per the standard.
392
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
393
+ document.implementation.hasFeature('', '') !== true;
394
+ }
395
+
396
+ /**
397
+ * Checks if an event is supported in the current execution environment.
398
+ *
399
+ * NOTE: This will not work correctly for non-generic events such as `change`,
400
+ * `reset`, `load`, `error`, and `select`.
401
+ *
402
+ * Borrows from Modernizr.
403
+ *
404
+ * @param {string} eventNameSuffix Event name, e.g. "click".
405
+ * @param {?boolean} capture Check if the capture phase is supported.
406
+ * @return {boolean} True if the event is supported.
407
+ * @internal
408
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
409
+ */
410
+ function isEventSupported(eventNameSuffix, capture) {
411
+ if (!ExecutionEnvironment.canUseDOM ||
412
+ capture && !('addEventListener' in document)) {
413
+ return false;
414
+ }
415
+
416
+ var eventName = 'on' + eventNameSuffix;
417
+ var isSupported = eventName in document;
418
+
419
+ if (!isSupported) {
420
+ var element = document.createElement('div');
421
+ element.setAttribute(eventName, 'return;');
422
+ isSupported = typeof element[eventName] === 'function';
423
+ }
424
+
425
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
426
+ // This is the only way to test support for the `wheel` event in IE9+.
427
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
428
+ }
429
+
430
+ return isSupported;
431
+ }
432
+
433
+ module.exports = isEventSupported;
434
+
435
+
436
+ /***/ }),
437
+
438
+ /***/ 2527:
439
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
440
+
441
+ /**
442
+ * Copyright (c) 2015, Facebook, Inc.
443
+ * All rights reserved.
444
+ *
445
+ * This source code is licensed under the BSD-style license found in the
446
+ * LICENSE file in the root directory of this source tree. An additional grant
447
+ * of patent rights can be found in the PATENTS file in the same directory.
448
+ *
449
+ * @providesModule normalizeWheel
450
+ * @typechecks
451
+ */
452
+
453
+
454
+
455
+ var UserAgent_DEPRECATED = __webpack_require__(6377);
456
+
457
+ var isEventSupported = __webpack_require__(3541);
458
+
459
+
460
+ // Reasonable defaults
461
+ var PIXEL_STEP = 10;
462
+ var LINE_HEIGHT = 40;
463
+ var PAGE_HEIGHT = 800;
464
+
465
+ /**
466
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
467
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
468
+ * your questions.
469
+ *
470
+ * If you need to react to the mouse wheel in a predictable way, this code is
471
+ * like your bestest friend. * hugs *
472
+ *
473
+ * As of today, there are 4 DOM event types you can listen to:
474
+ *
475
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
476
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
477
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
478
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
479
+ *
480
+ * So what to do? The is the best:
481
+ *
482
+ * normalizeWheel.getEventType();
483
+ *
484
+ * In your event callback, use this code to get sane interpretation of the
485
+ * deltas. This code will return an object with properties:
486
+ *
487
+ * spinX -- normalized spin speed (use for zoom) - x plane
488
+ * spinY -- " - y plane
489
+ * pixelX -- normalized distance (to pixels) - x plane
490
+ * pixelY -- " - y plane
491
+ *
492
+ * Wheel values are provided by the browser assuming you are using the wheel to
493
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
494
+ * significantly on different platforms and browsers, forgetting that you can
495
+ * scroll at different speeds. Some devices (like trackpads) emit more events
496
+ * at smaller increments with fine granularity, and some emit massive jumps with
497
+ * linear speed or acceleration.
498
+ *
499
+ * This code does its best to normalize the deltas for you:
500
+ *
501
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
502
+ * dragged). This is super useful for zoom support where you want to
503
+ * throw away the chunky scroll steps on the PC and make those equal to
504
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
505
+ * resolve a single slow step on a wheel to 1.
506
+ *
507
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
508
+ * get the crazy differences between browsers, but at least it'll be in
509
+ * pixels!
510
+ *
511
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
512
+ * should translate to positive value zooming IN, negative zooming OUT.
513
+ * This matches the newer 'wheel' event.
514
+ *
515
+ * Why are there spinX, spinY (or pixels)?
516
+ *
517
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
518
+ * with a mouse. It results in side-scrolling in the browser by default.
519
+ *
520
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
521
+ *
522
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
523
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
524
+ * you know.
525
+ *
526
+ * Implementation info:
527
+ *
528
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
529
+ * average mouse:
530
+ *
531
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
532
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
533
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
534
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
535
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
536
+ *
537
+ * On the trackpad:
538
+ *
539
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
540
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
541
+ *
542
+ * On other/older browsers.. it's more complicated as there can be multiple and
543
+ * also missing delta values.
544
+ *
545
+ * The 'wheel' event is more standard:
546
+ *
547
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
548
+ *
549
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
550
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
551
+ * backward compatibility with older events. Those other values help us
552
+ * better normalize spin speed. Example of what the browsers provide:
553
+ *
554
+ * | event.wheelDelta | event.detail
555
+ * ------------------+------------------+--------------
556
+ * Safari v5/OS X | -120 | 0
557
+ * Safari v5/Win7 | -120 | 0
558
+ * Chrome v17/OS X | -120 | 0
559
+ * Chrome v17/Win7 | -120 | 0
560
+ * IE9/Win7 | -120 | undefined
561
+ * Firefox v4/OS X | undefined | 1
562
+ * Firefox v4/Win7 | undefined | 3
563
+ *
564
+ */
565
+ function normalizeWheel(/*object*/ event) /*object*/ {
566
+ var sX = 0, sY = 0, // spinX, spinY
567
+ pX = 0, pY = 0; // pixelX, pixelY
568
+
569
+ // Legacy
570
+ if ('detail' in event) { sY = event.detail; }
571
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
572
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
573
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
574
+
575
+ // side scrolling on FF with DOMMouseScroll
576
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
577
+ sX = sY;
578
+ sY = 0;
579
+ }
580
+
581
+ pX = sX * PIXEL_STEP;
582
+ pY = sY * PIXEL_STEP;
583
+
584
+ if ('deltaY' in event) { pY = event.deltaY; }
585
+ if ('deltaX' in event) { pX = event.deltaX; }
586
+
587
+ if ((pX || pY) && event.deltaMode) {
588
+ if (event.deltaMode == 1) { // delta in LINE units
589
+ pX *= LINE_HEIGHT;
590
+ pY *= LINE_HEIGHT;
591
+ } else { // delta in PAGE units
592
+ pX *= PAGE_HEIGHT;
593
+ pY *= PAGE_HEIGHT;
594
+ }
595
+ }
596
+
597
+ // Fall-back if spin cannot be determined
598
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
599
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
600
+
601
+ return { spinX : sX,
602
+ spinY : sY,
603
+ pixelX : pX,
604
+ pixelY : pY };
605
+ }
606
+
607
+
608
+ /**
609
+ * The best combination if you prefer spinX + spinY normalization. It favors
610
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
611
+ * 'wheel' event, making spin speed determination impossible.
612
+ */
613
+ normalizeWheel.getEventType = function() /*string*/ {
614
+ return (UserAgent_DEPRECATED.firefox())
615
+ ? 'DOMMouseScroll'
616
+ : (isEventSupported('wheel'))
617
+ ? 'wheel'
618
+ : 'mousewheel';
619
+ };
620
+
621
+ module.exports = normalizeWheel;
622
+
623
+
624
+ /***/ })
625
+
626
+ /******/ });
627
+ /************************************************************************/
628
+ /******/ // The module cache
629
+ /******/ var __webpack_module_cache__ = {};
630
+ /******/
631
+ /******/ // The require function
632
+ /******/ function __webpack_require__(moduleId) {
633
+ /******/ // Check if module is in cache
634
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
635
+ /******/ if (cachedModule !== undefined) {
636
+ /******/ return cachedModule.exports;
637
+ /******/ }
638
+ /******/ // Create a new module (and put it into the cache)
639
+ /******/ var module = __webpack_module_cache__[moduleId] = {
640
+ /******/ // no module.id needed
641
+ /******/ // no module.loaded needed
642
+ /******/ exports: {}
643
+ /******/ };
644
+ /******/
645
+ /******/ // Execute the module function
646
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
647
+ /******/
648
+ /******/ // Return the exports of the module
649
+ /******/ return module.exports;
650
+ /******/ }
18
651
  /******/
19
652
  /************************************************************************/
653
+ /******/ /* webpack/runtime/compat get default export */
654
+ /******/ (() => {
655
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
656
+ /******/ __webpack_require__.n = (module) => {
657
+ /******/ var getter = module && module.__esModule ?
658
+ /******/ () => (module['default']) :
659
+ /******/ () => (module);
660
+ /******/ __webpack_require__.d(getter, { a: getter });
661
+ /******/ return getter;
662
+ /******/ };
663
+ /******/ })();
664
+ /******/
20
665
  /******/ /* webpack/runtime/define property getters */
21
666
  /******/ (() => {
22
667
  /******/ // define getter functions for harmony exports
@@ -36,6 +681,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_lodash_has_e9e453be__ from "lodash/has";
36
681
  /******/
37
682
  /************************************************************************/
38
683
  var __webpack_exports__ = {};
684
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
685
+ (() => {
39
686
 
40
687
  // EXPORTS
41
688
  __webpack_require__.d(__webpack_exports__, {
@@ -47,7 +694,7 @@ __webpack_require__.d(__webpack_exports__, {
47
694
  ;// CONCATENATED MODULE: external "../shared"
48
695
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
49
696
  var y = x => () => x
50
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["checkOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.checkOverflow, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
697
+ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["checkOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.checkOverflow, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
51
698
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
52
699
  function _typeof(o) {
53
700
  "@babel/helpers - typeof";
@@ -133,7 +780,7 @@ function _toConsumableArray(arr) {
133
780
  ;// CONCATENATED MODULE: external "vue"
134
781
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
135
782
  var external_vue_y = x => () => x
136
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["markRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.markRaw, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["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, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
783
+ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["markRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.markRaw, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["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, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
137
784
  ;// CONCATENATED MODULE: ../../packages/tag-input/src/common.ts
138
785
 
139
786
 
@@ -363,10 +1010,628 @@ function _slicedToArray(arr, i) {
363
1010
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
364
1011
  var config_provider_y = x => () => x
365
1012
  const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
366
- ;// CONCATENATED MODULE: external "../directives"
367
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
368
- var directives_y = x => () => x
369
- const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
1013
+ ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
1014
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = clickoutside_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
1015
+ function clickoutside_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return clickoutside_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return clickoutside_arrayLikeToArray(o, minLen); }
1016
+ function clickoutside_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
1017
+ /*
1018
+ * Tencent is pleased to support the open source community by making
1019
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1020
+ *
1021
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1022
+ *
1023
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1024
+ *
1025
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1026
+ *
1027
+ * ---------------------------------------------------
1028
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1029
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1030
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1031
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1032
+ *
1033
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1034
+ * the Software.
1035
+ *
1036
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1037
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1038
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1039
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1040
+ * IN THE SOFTWARE.
1041
+ */
1042
+ var isElement = function isElement(e) {
1043
+ if (typeof Element === 'undefined') return false;
1044
+ return e instanceof Element;
1045
+ };
1046
+ var nodeList = new Map();
1047
+ var startClick;
1048
+ document.addEventListener('mousedown', function (e) {
1049
+ return startClick = e;
1050
+ });
1051
+ document.addEventListener('mouseup', function (e) {
1052
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
1053
+ _step;
1054
+ try {
1055
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
1056
+ var handlers = _step.value;
1057
+ var _iterator2 = _createForOfIteratorHelper(handlers),
1058
+ _step2;
1059
+ try {
1060
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1061
+ var documentHandler = _step2.value.documentHandler;
1062
+ documentHandler(e, startClick);
1063
+ }
1064
+ } catch (err) {
1065
+ _iterator2.e(err);
1066
+ } finally {
1067
+ _iterator2.f();
1068
+ }
1069
+ }
1070
+ } catch (err) {
1071
+ _iterator.e(err);
1072
+ } finally {
1073
+ _iterator.f();
1074
+ }
1075
+ });
1076
+ function createDocumentHandler(el, binding) {
1077
+ var excludes = [];
1078
+ if (Array.isArray(binding.arg)) {
1079
+ excludes = binding.arg;
1080
+ } else if (isElement(binding.arg)) {
1081
+ excludes.push(binding.arg);
1082
+ }
1083
+ return function (mouseup, mousedown) {
1084
+ var popperRef = binding.instance.popperRef;
1085
+ var mouseUpTarget = mouseup.target;
1086
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
1087
+ var isBound = !binding || !binding.instance;
1088
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
1089
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
1090
+ var isSelf = el === mouseUpTarget;
1091
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
1092
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
1093
+ }) || excludes.length && excludes.includes(mouseDownTarget);
1094
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
1095
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
1096
+ return;
1097
+ }
1098
+ binding.value(mouseup, mousedown);
1099
+ };
1100
+ }
1101
+ var ClickOutside = {
1102
+ beforeMount: function beforeMount(el, binding) {
1103
+ if (!nodeList.has(el)) {
1104
+ nodeList.set(el, []);
1105
+ }
1106
+ nodeList.get(el).push({
1107
+ documentHandler: createDocumentHandler(el, binding),
1108
+ bindingFn: binding.value
1109
+ });
1110
+ },
1111
+ updated: function updated(el, binding) {
1112
+ if (!nodeList.has(el)) {
1113
+ nodeList.set(el, []);
1114
+ }
1115
+ var handlers = nodeList.get(el);
1116
+ var oldHandlerIndex = handlers.findIndex(function (item) {
1117
+ return item.bindingFn === binding.oldValue;
1118
+ });
1119
+ var newHandler = {
1120
+ documentHandler: createDocumentHandler(el, binding),
1121
+ bindingFn: binding.value
1122
+ };
1123
+ if (oldHandlerIndex >= 0) {
1124
+ // replace the old handler to the new handler
1125
+ handlers.splice(oldHandlerIndex, 1, newHandler);
1126
+ } else {
1127
+ handlers.push(newHandler);
1128
+ }
1129
+ },
1130
+ unmounted: function unmounted(el) {
1131
+ // remove all listeners when a component unmounted
1132
+ nodeList["delete"](el);
1133
+ }
1134
+ };
1135
+ ClickOutside.install = function (app) {
1136
+ app.directive('bkTooltips', ClickOutside);
1137
+ };
1138
+ /* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
1139
+ ;// CONCATENATED MODULE: external "../plugin-popover"
1140
+ var plugin_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1141
+ var plugin_popover_y = x => () => x
1142
+ const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"] });
1143
+ ;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
1144
+
1145
+ /*
1146
+ * Tencent is pleased to support the open source community by making
1147
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1148
+ *
1149
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1150
+ *
1151
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1152
+ *
1153
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1154
+ *
1155
+ * ---------------------------------------------------
1156
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1157
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1158
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1159
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1160
+ *
1161
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1162
+ * the Software.
1163
+ *
1164
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1165
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1166
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1167
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1168
+ * IN THE SOFTWARE.
1169
+ */
1170
+
1171
+ var resolveOptions = function resolveOptions(el, binding) {
1172
+ var options = {
1173
+ content: '',
1174
+ target: el
1175
+ };
1176
+ if (_typeof(binding) === 'object') {
1177
+ Object.assign(options, binding);
1178
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
1179
+ Object.assign(options, binding.popoverOption);
1180
+ }
1181
+ } else {
1182
+ options.content = binding;
1183
+ }
1184
+ return options;
1185
+ };
1186
+ var createInstance = function createInstance(el, binding) {
1187
+ var instance = null;
1188
+ var createTimer = null;
1189
+ var hidePopTimer = null;
1190
+ var options = resolveOptions(el, binding);
1191
+ var disabled = options.disabled;
1192
+ if (disabled || instance) {
1193
+ return;
1194
+ }
1195
+ var handleContentEnter = function handleContentEnter() {
1196
+ hidePopTimer && clearTimeout(hidePopTimer);
1197
+ hidePopTimer = null;
1198
+ };
1199
+ var handleContentLeave = function handleContentLeave() {
1200
+ var _instance, _instance2;
1201
+ if (createTimer) {
1202
+ clearTimeout(createTimer);
1203
+ }
1204
+ (_instance = instance) === null || _instance === void 0 || _instance.hide();
1205
+ (_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
1206
+ instance = null;
1207
+ };
1208
+ var handleMouseEnter = function handleMouseEnter() {
1209
+ handleContentLeave();
1210
+ createTimer && clearTimeout(createTimer);
1211
+ createTimer = setTimeout(function () {
1212
+ var targetOptions = resolveOptions(el, binding);
1213
+ targetOptions.isShow = true;
1214
+ targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
1215
+ targetOptions.allowHtml = true;
1216
+ Object.assign(targetOptions, {
1217
+ onContentMouseenter: handleContentEnter,
1218
+ onContentMouseleave: handleContentLeave
1219
+ });
1220
+ instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
1221
+ }, 300);
1222
+ };
1223
+ var handleMouseLeave = function handleMouseLeave() {
1224
+ hidePopTimer = setTimeout(function () {
1225
+ var _instance3, _instance4;
1226
+ if (createTimer) {
1227
+ clearTimeout(createTimer);
1228
+ }
1229
+ (_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
1230
+ (_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
1231
+ instance = null;
1232
+ }, 120);
1233
+ };
1234
+ el.addEventListener('mouseenter', handleMouseEnter);
1235
+ el.addEventListener('mouseleave', handleMouseLeave);
1236
+ var destroyInstance = function destroyInstance(element) {
1237
+ var _ref, _ref2;
1238
+ handleMouseLeave();
1239
+ (_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
1240
+ (_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
1241
+ };
1242
+ return {
1243
+ destroyInstance: destroyInstance,
1244
+ instance: instance
1245
+ };
1246
+ };
1247
+ var ellipsis = {
1248
+ mounted: function mounted(el, binding) {
1249
+ createInstance(el, binding);
1250
+ }
1251
+ };
1252
+ /* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
1253
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
1254
+ var normalize_wheel = __webpack_require__(2439);
1255
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
1256
+ ;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
1257
+ /*
1258
+ * Tencent is pleased to support the open source community by making
1259
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1260
+ *
1261
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1262
+ *
1263
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1264
+ *
1265
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1266
+ *
1267
+ * ---------------------------------------------------
1268
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1269
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1270
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1271
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1272
+ *
1273
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1274
+ * the Software.
1275
+ *
1276
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1277
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1278
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1279
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1280
+ * IN THE SOFTWARE.
1281
+ */
1282
+
1283
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
1284
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
1285
+ if (element !== null && element !== void 0 && element.addEventListener) {
1286
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
1287
+ var normalized = normalize_wheel_default()(e);
1288
+ callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
1289
+ });
1290
+ }
1291
+ };
1292
+ var mousewheel = {
1293
+ beforeMount: function beforeMount(el, binding) {
1294
+ mousewheelHandler(el, binding.value);
1295
+ }
1296
+ };
1297
+ /* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
1298
+ ;// CONCATENATED MODULE: external "@popperjs/core"
1299
+ var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1300
+ var core_y = x => () => x
1301
+ const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
1302
+ ;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
1303
+
1304
+
1305
+
1306
+ function tooltips_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1307
+ function tooltips_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? tooltips_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : tooltips_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1308
+ /*
1309
+ * Tencent is pleased to support the open source community by making
1310
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1311
+ *
1312
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1313
+ *
1314
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1315
+ *
1316
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1317
+ *
1318
+ * ---------------------------------------------------
1319
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1320
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1321
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1322
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1323
+ *
1324
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1325
+ * the Software.
1326
+ *
1327
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1328
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1329
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1330
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1331
+ * IN THE SOFTWARE.
1332
+ */
1333
+
1334
+
1335
+
1336
+ var tooltips_nodeList = new WeakMap();
1337
+ var tooltips = {
1338
+ beforeMount: function beforeMount(el, binding) {
1339
+ var opts = getOpts(binding);
1340
+ var trigger = opts.trigger,
1341
+ showOnInit = opts.showOnInit;
1342
+ var popper = renderContent(opts);
1343
+ var delayTimeout = null;
1344
+ if (showOnInit) {
1345
+ (0,external_vue_namespaceObject.nextTick)(function () {
1346
+ show(el);
1347
+ });
1348
+ }
1349
+ if (trigger === 'hover') {
1350
+ var hideTimeout = null;
1351
+ el.addEventListener('mouseenter', function () {
1352
+ delayTimeout = setTimeout(function () {
1353
+ show(el);
1354
+ clearTimeout(hideTimeout);
1355
+ clearTimeout(delayTimeout);
1356
+ }, opts.delay);
1357
+ });
1358
+ popper.addEventListener('mouseenter', function () {
1359
+ clearTimeout(hideTimeout);
1360
+ });
1361
+ el.addEventListener('mouseleave', function () {
1362
+ clearTimeout(delayTimeout);
1363
+ hideTimeout = setTimeout(function () {
1364
+ hide(el);
1365
+ }, 100);
1366
+ });
1367
+ el.addEventListener('click', function () {
1368
+ hide(el);
1369
+ });
1370
+ popper.addEventListener('mouseleave', function () {
1371
+ clearTimeout(delayTimeout);
1372
+ hideTimeout = setTimeout(function () {
1373
+ hide(el);
1374
+ }, 100);
1375
+ });
1376
+ } else if (trigger === 'click') {
1377
+ document.body.addEventListener('click', function (event) {
1378
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
1379
+ delayTimeout = setTimeout(function () {
1380
+ show(el);
1381
+ clearTimeout(delayTimeout);
1382
+ }, opts.delay);
1383
+ } else if (popper.hasAttribute('data-show')) {
1384
+ hide(el);
1385
+ }
1386
+ });
1387
+ }
1388
+ tooltips_nodeList.set(el, {
1389
+ opts: opts,
1390
+ popper: popper,
1391
+ popperInstance: null
1392
+ });
1393
+ },
1394
+ updated: function updated(el, binding) {
1395
+ if (tooltips_nodeList.get(el)) {
1396
+ tooltips_nodeList.get(el).opts = getOpts(binding);
1397
+ }
1398
+ },
1399
+ unmounted: function unmounted(el) {
1400
+ hide(el);
1401
+ tooltips_nodeList["delete"](el);
1402
+ }
1403
+ };
1404
+ /**
1405
+ * 初始化配置
1406
+ * @returns tooltips配置
1407
+ */
1408
+ function initOptions() {
1409
+ var defaultOpts = {
1410
+ arrow: true,
1411
+ disabled: false,
1412
+ trigger: 'hover',
1413
+ theme: 'dark',
1414
+ content: '',
1415
+ showOnInit: false,
1416
+ placement: 'top',
1417
+ distance: 8,
1418
+ extCls: '',
1419
+ sameWidth: false,
1420
+ delay: 0,
1421
+ onShow: function onShow() {},
1422
+ onHide: function onHide() {}
1423
+ };
1424
+ return defaultOpts;
1425
+ }
1426
+ /**
1427
+ * 获取配置
1428
+ * @returns tooltips配置
1429
+ */
1430
+ function getOpts(binding) {
1431
+ var opts = initOptions();
1432
+ if (_typeof(binding.value) === 'object') {
1433
+ Object.assign(opts, binding.value);
1434
+ } else {
1435
+ opts.content = binding.value;
1436
+ }
1437
+ return opts;
1438
+ }
1439
+ /**
1440
+ * 创建tooltips DOM
1441
+ * @param opts
1442
+ * @returns
1443
+ */
1444
+ function renderContext(value, content) {
1445
+ if (typeof value === 'string') {
1446
+ content.innerText = value;
1447
+ } else {
1448
+ // 如果 content 是 Vue 组件的实例,则挂载它
1449
+ var container = document.createElement('div');
1450
+ var vnode = (0,external_vue_namespaceObject.h)(value);
1451
+ (0,external_vue_namespaceObject.render)(vnode, container);
1452
+ content.innerHTML = container.innerHTML;
1453
+ }
1454
+ }
1455
+ function renderContent(opts) {
1456
+ var value = opts.content,
1457
+ hasArrow = opts.arrow,
1458
+ theme = opts.theme,
1459
+ extCls = opts.extCls;
1460
+ var isLight = theme === 'light';
1461
+ var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
1462
+ var content = document.createElement('div');
1463
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1464
+ content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
1465
+ content.innerText = value;
1466
+ content.style.zIndex = String(zIndex);
1467
+ renderContext(value, content);
1468
+ if (hasArrow) {
1469
+ var arrow = renderArrow();
1470
+ content.appendChild(arrow);
1471
+ }
1472
+ return content;
1473
+ }
1474
+ /**
1475
+ * 渲染箭头dom
1476
+ * @returns arrow DOM
1477
+ */
1478
+ function renderArrow() {
1479
+ var arrow = document.createElement('div');
1480
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1481
+ arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
1482
+ arrow.setAttribute('data-popper-arrow', '');
1483
+ return arrow;
1484
+ }
1485
+ /**
1486
+ * 创建popper实例
1487
+ * @param el
1488
+ * @param popper
1489
+ * @returns popper实例
1490
+ */
1491
+ function createPopperInstance(el, popper) {
1492
+ var _nodeList$get = tooltips_nodeList.get(el),
1493
+ opts = _nodeList$get.opts;
1494
+ var placement = opts.placement,
1495
+ distance = opts.distance,
1496
+ sameWidth = opts.sameWidth;
1497
+ var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
1498
+ placement: placement,
1499
+ modifiers: [{
1500
+ name: 'offset',
1501
+ options: {
1502
+ offset: [0, distance]
1503
+ }
1504
+ }, {
1505
+ name: 'arrow',
1506
+ options: {
1507
+ padding: 5
1508
+ }
1509
+ }].concat(_toConsumableArray(sameWidth ? [{
1510
+ name: 'sameWidth',
1511
+ enabled: true,
1512
+ phase: 'beforeWrite',
1513
+ requires: ['computeStyles'],
1514
+ fn: function fn(_ref) {
1515
+ var state = _ref.state;
1516
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
1517
+ },
1518
+ effect: function effect(_ref2) {
1519
+ var state = _ref2.state;
1520
+ state.elements.popper.style.overflowWrap = 'break-word';
1521
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
1522
+ }
1523
+ }] : []))
1524
+ });
1525
+ return popperInstance;
1526
+ }
1527
+ /**
1528
+ * 显示
1529
+ * @param el
1530
+ */
1531
+ function show(el) {
1532
+ var _nodeList$get2 = tooltips_nodeList.get(el),
1533
+ popper = _nodeList$get2.popper,
1534
+ opts = _nodeList$get2.opts;
1535
+ var disabled = opts.disabled,
1536
+ content = opts.content,
1537
+ hasArrow = opts.arrow,
1538
+ onShow = opts.onShow,
1539
+ boundary = opts.boundary,
1540
+ _opts$modifiers = opts.modifiers,
1541
+ modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
1542
+ if (disabled) return;
1543
+ renderContext(content, popper);
1544
+ if (hasArrow) {
1545
+ var arrow = renderArrow();
1546
+ popper.appendChild(arrow);
1547
+ }
1548
+ var container = document.body;
1549
+ if (boundary) {
1550
+ if (boundary === 'parent') {
1551
+ container = el.parentElement;
1552
+ } else if (boundary instanceof HTMLElement) {
1553
+ container = boundary;
1554
+ }
1555
+ }
1556
+ container.appendChild(popper);
1557
+ var popperInstance = createPopperInstance(el, popper);
1558
+ onShow();
1559
+ // Make the tooltip visible
1560
+ popper.setAttribute('data-show', '');
1561
+ // Enable the event listeners
1562
+ popperInstance.setOptions(function (options) {
1563
+ return tooltips_objectSpread(tooltips_objectSpread({}, options), {}, {
1564
+ modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
1565
+ name: 'eventListeners',
1566
+ enabled: true
1567
+ }])
1568
+ });
1569
+ });
1570
+ // Update its position
1571
+ popperInstance.forceUpdate();
1572
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
1573
+ }
1574
+ /**
1575
+ * 隐藏
1576
+ * @param el
1577
+ */
1578
+ function hide(el) {
1579
+ if (!tooltips_nodeList.get(el)) return;
1580
+ var _nodeList$get3 = tooltips_nodeList.get(el),
1581
+ popper = _nodeList$get3.popper,
1582
+ popperInstance = _nodeList$get3.popperInstance,
1583
+ opts = _nodeList$get3.opts;
1584
+ var onHide = opts.onHide;
1585
+ if (popper && document.body.contains(popper)) {
1586
+ var _popper$parentNode;
1587
+ popper.removeAttribute('data-show');
1588
+ popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
1589
+ popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
1590
+ onHide();
1591
+ }
1592
+ }
1593
+ /* harmony default export */ const src_tooltips = (tooltips);
1594
+ ;// CONCATENATED MODULE: external "../loading"
1595
+ var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1596
+ var external_loading_y = x => () => x
1597
+ const external_loading_namespaceObject = external_loading_x({ });
1598
+ ;// CONCATENATED MODULE: external "../overflow-title"
1599
+ var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1600
+ var external_overflow_title_y = x => () => x
1601
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
1602
+ ;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
1603
+ /*
1604
+ * Tencent is pleased to support the open source community by making
1605
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1606
+ *
1607
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1608
+ *
1609
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1610
+ *
1611
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1612
+ *
1613
+ * ---------------------------------------------------
1614
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1615
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1616
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1617
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1618
+ *
1619
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1620
+ * the Software.
1621
+ *
1622
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1623
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1624
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1625
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1626
+ * IN THE SOFTWARE.
1627
+ */
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
370
1635
  ;// CONCATENATED MODULE: external "../icon"
371
1636
  var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
372
1637
  var icon_y = x => () => x
@@ -602,7 +1867,7 @@ function tag_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
602
1867
  /* harmony default export */ const tag_render = ((0,external_vue_namespaceObject.defineComponent)({
603
1868
  name: 'TagRender',
604
1869
  directives: {
605
- bkTooltips: directives_namespaceObject.bkTooltips
1870
+ bkTooltips: src_tooltips
606
1871
  },
607
1872
  props: {
608
1873
  node: shared_namespaceObject.PropTypes.object,
@@ -706,7 +1971,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
706
1971
  /* harmony default export */ const tag_input = ((0,external_vue_namespaceObject.defineComponent)({
707
1972
  name: 'TagInput',
708
1973
  directives: {
709
- bkTooltips: directives_namespaceObject.bkTooltips
1974
+ bkTooltips: src_tooltips
710
1975
  },
711
1976
  props: tag_props(),
712
1977
  emits: ['update:modelValue', 'change', 'select', 'focus', 'blur', 'remove', 'removeAll', 'input'],
@@ -1706,6 +2971,8 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
1706
2971
  var TagInput = (0,shared_namespaceObject.withInstall)(tag_input);
1707
2972
  /* harmony default export */ const src = (TagInput);
1708
2973
 
2974
+ })();
2975
+
1709
2976
  var __webpack_exports__TagInput = __webpack_exports__.TagInput;
1710
2977
  var __webpack_exports__default = __webpack_exports__["default"];
1711
2978
  var __webpack_exports__useTagsOverflow = __webpack_exports__.useTagsOverflow;