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 "./search-select.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_popover_9b03f19d__ from "../popover";
9
12
  import "../popover/popover.less";
@@ -13,6 +16,611 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_radio_d36f24cf__ from "../rad
13
16
  import "../radio/radio.less";
14
17
  /******/ var __webpack_modules__ = ({
15
18
 
19
+ /***/ 2439:
20
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
21
+
22
+ module.exports = __webpack_require__(2527);
23
+
24
+
25
+ /***/ }),
26
+
27
+ /***/ 7430:
28
+ /***/ ((module) => {
29
+
30
+ /**
31
+ * Copyright (c) 2015, Facebook, Inc.
32
+ * All rights reserved.
33
+ *
34
+ * This source code is licensed under the BSD-style license found in the
35
+ * LICENSE file in the root directory of this source tree. An additional grant
36
+ * of patent rights can be found in the PATENTS file in the same directory.
37
+ *
38
+ * @providesModule ExecutionEnvironment
39
+ */
40
+
41
+ /*jslint evil: true */
42
+
43
+
44
+
45
+ var canUseDOM = !!(
46
+ typeof window !== 'undefined' &&
47
+ window.document &&
48
+ window.document.createElement
49
+ );
50
+
51
+ /**
52
+ * Simple, lightweight module assisting with the detection and context of
53
+ * Worker. Helps avoid circular dependencies and allows code to reason about
54
+ * whether or not they are in a Worker, even if they never include the main
55
+ * `ReactWorker` dependency.
56
+ */
57
+ var ExecutionEnvironment = {
58
+
59
+ canUseDOM: canUseDOM,
60
+
61
+ canUseWorkers: typeof Worker !== 'undefined',
62
+
63
+ canUseEventListeners:
64
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
65
+
66
+ canUseViewport: canUseDOM && !!window.screen,
67
+
68
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
69
+
70
+ };
71
+
72
+ module.exports = ExecutionEnvironment;
73
+
74
+
75
+ /***/ }),
76
+
77
+ /***/ 6377:
78
+ /***/ ((module) => {
79
+
80
+ /**
81
+ * Copyright 2004-present Facebook. All Rights Reserved.
82
+ *
83
+ * @providesModule UserAgent_DEPRECATED
84
+ */
85
+
86
+ /**
87
+ * Provides entirely client-side User Agent and OS detection. You should prefer
88
+ * the non-deprecated UserAgent module when possible, which exposes our
89
+ * authoritative server-side PHP-based detection to the client.
90
+ *
91
+ * Usage is straightforward:
92
+ *
93
+ * if (UserAgent_DEPRECATED.ie()) {
94
+ * // IE
95
+ * }
96
+ *
97
+ * You can also do version checks:
98
+ *
99
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
100
+ * // IE7 or better
101
+ * }
102
+ *
103
+ * The browser functions will return NaN if the browser does not match, so
104
+ * you can also do version compares the other way:
105
+ *
106
+ * if (UserAgent_DEPRECATED.ie() < 7) {
107
+ * // IE6 or worse
108
+ * }
109
+ *
110
+ * Note that the version is a float and may include a minor version number,
111
+ * so you should always use range operators to perform comparisons, not
112
+ * strict equality.
113
+ *
114
+ * **Note:** You should **strongly** prefer capability detection to browser
115
+ * version detection where it's reasonable:
116
+ *
117
+ * http://www.quirksmode.org/js/support.html
118
+ *
119
+ * Further, we have a large number of mature wrapper functions and classes
120
+ * which abstract away many browser irregularities. Check the documentation,
121
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
122
+ * another copy of "event || window.event".
123
+ *
124
+ */
125
+
126
+ var _populated = false;
127
+
128
+ // Browsers
129
+ var _ie, _firefox, _opera, _webkit, _chrome;
130
+
131
+ // Actual IE browser for compatibility mode
132
+ var _ie_real_version;
133
+
134
+ // Platforms
135
+ var _osx, _windows, _linux, _android;
136
+
137
+ // Architectures
138
+ var _win64;
139
+
140
+ // Devices
141
+ var _iphone, _ipad, _native;
142
+
143
+ var _mobile;
144
+
145
+ function _populate() {
146
+ if (_populated) {
147
+ return;
148
+ }
149
+
150
+ _populated = true;
151
+
152
+ // To work around buggy JS libraries that can't handle multi-digit
153
+ // version numbers, Opera 10's user agent string claims it's Opera
154
+ // 9, then later includes a Version/X.Y field:
155
+ //
156
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
157
+ var uas = navigator.userAgent;
158
+ 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);
159
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
160
+
161
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
162
+ _ipad = /\b(iP[ao]d)/.exec(uas);
163
+ _android = /Android/i.exec(uas);
164
+ _native = /FBAN\/\w+;/i.exec(uas);
165
+ _mobile = /Mobile/i.exec(uas);
166
+
167
+ // Note that the IE team blog would have you believe you should be checking
168
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
169
+ // from either x64 or ia64; so ultimately, you should just check for Win64
170
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
171
+ // Windows will send 'WOW64' instead.
172
+ _win64 = !!(/Win64/.exec(uas));
173
+
174
+ if (agent) {
175
+ _ie = agent[1] ? parseFloat(agent[1]) : (
176
+ agent[5] ? parseFloat(agent[5]) : NaN);
177
+ // IE compatibility mode
178
+ if (_ie && document && document.documentMode) {
179
+ _ie = document.documentMode;
180
+ }
181
+ // grab the "true" ie version from the trident token if available
182
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
183
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
184
+
185
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
186
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
187
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
188
+ if (_webkit) {
189
+ // We do not add the regexp to the above test, because it will always
190
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
191
+ // the userAgent string.
192
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
193
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
194
+ } else {
195
+ _chrome = NaN;
196
+ }
197
+ } else {
198
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
199
+ }
200
+
201
+ if (os) {
202
+ if (os[1]) {
203
+ // Detect OS X version. If no version number matches, set _osx to true.
204
+ // Version examples: 10, 10_6_1, 10.7
205
+ // Parses version number as a float, taking only first two sets of
206
+ // digits. If only one set of digits is found, returns just the major
207
+ // version number.
208
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
209
+
210
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
211
+ } else {
212
+ _osx = false;
213
+ }
214
+ _windows = !!os[2];
215
+ _linux = !!os[3];
216
+ } else {
217
+ _osx = _windows = _linux = false;
218
+ }
219
+ }
220
+
221
+ var UserAgent_DEPRECATED = {
222
+
223
+ /**
224
+ * Check if the UA is Internet Explorer.
225
+ *
226
+ *
227
+ * @return float|NaN Version number (if match) or NaN.
228
+ */
229
+ ie: function() {
230
+ return _populate() || _ie;
231
+ },
232
+
233
+ /**
234
+ * Check if we're in Internet Explorer compatibility mode.
235
+ *
236
+ * @return bool true if in compatibility mode, false if
237
+ * not compatibility mode or not ie
238
+ */
239
+ ieCompatibilityMode: function() {
240
+ return _populate() || (_ie_real_version > _ie);
241
+ },
242
+
243
+
244
+ /**
245
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
246
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
247
+ * this when we don't need it -- tracked by #601957.
248
+ */
249
+ ie64: function() {
250
+ return UserAgent_DEPRECATED.ie() && _win64;
251
+ },
252
+
253
+ /**
254
+ * Check if the UA is Firefox.
255
+ *
256
+ *
257
+ * @return float|NaN Version number (if match) or NaN.
258
+ */
259
+ firefox: function() {
260
+ return _populate() || _firefox;
261
+ },
262
+
263
+
264
+ /**
265
+ * Check if the UA is Opera.
266
+ *
267
+ *
268
+ * @return float|NaN Version number (if match) or NaN.
269
+ */
270
+ opera: function() {
271
+ return _populate() || _opera;
272
+ },
273
+
274
+
275
+ /**
276
+ * Check if the UA is WebKit.
277
+ *
278
+ *
279
+ * @return float|NaN Version number (if match) or NaN.
280
+ */
281
+ webkit: function() {
282
+ return _populate() || _webkit;
283
+ },
284
+
285
+ /**
286
+ * For Push
287
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
288
+ */
289
+ safari: function() {
290
+ return UserAgent_DEPRECATED.webkit();
291
+ },
292
+
293
+ /**
294
+ * Check if the UA is a Chrome browser.
295
+ *
296
+ *
297
+ * @return float|NaN Version number (if match) or NaN.
298
+ */
299
+ chrome : function() {
300
+ return _populate() || _chrome;
301
+ },
302
+
303
+
304
+ /**
305
+ * Check if the user is running Windows.
306
+ *
307
+ * @return bool `true' if the user's OS is Windows.
308
+ */
309
+ windows: function() {
310
+ return _populate() || _windows;
311
+ },
312
+
313
+
314
+ /**
315
+ * Check if the user is running Mac OS X.
316
+ *
317
+ * @return float|bool Returns a float if a version number is detected,
318
+ * otherwise true/false.
319
+ */
320
+ osx: function() {
321
+ return _populate() || _osx;
322
+ },
323
+
324
+ /**
325
+ * Check if the user is running Linux.
326
+ *
327
+ * @return bool `true' if the user's OS is some flavor of Linux.
328
+ */
329
+ linux: function() {
330
+ return _populate() || _linux;
331
+ },
332
+
333
+ /**
334
+ * Check if the user is running on an iPhone or iPod platform.
335
+ *
336
+ * @return bool `true' if the user is running some flavor of the
337
+ * iPhone OS.
338
+ */
339
+ iphone: function() {
340
+ return _populate() || _iphone;
341
+ },
342
+
343
+ mobile: function() {
344
+ return _populate() || (_iphone || _ipad || _android || _mobile);
345
+ },
346
+
347
+ nativeApp: function() {
348
+ // webviews inside of the native apps
349
+ return _populate() || _native;
350
+ },
351
+
352
+ android: function() {
353
+ return _populate() || _android;
354
+ },
355
+
356
+ ipad: function() {
357
+ return _populate() || _ipad;
358
+ }
359
+ };
360
+
361
+ module.exports = UserAgent_DEPRECATED;
362
+
363
+
364
+ /***/ }),
365
+
366
+ /***/ 3541:
367
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
368
+
369
+ /**
370
+ * Copyright 2013-2015, Facebook, Inc.
371
+ * All rights reserved.
372
+ *
373
+ * This source code is licensed under the BSD-style license found in the
374
+ * LICENSE file in the root directory of this source tree. An additional grant
375
+ * of patent rights can be found in the PATENTS file in the same directory.
376
+ *
377
+ * @providesModule isEventSupported
378
+ */
379
+
380
+
381
+
382
+ var ExecutionEnvironment = __webpack_require__(7430);
383
+
384
+ var useHasFeature;
385
+ if (ExecutionEnvironment.canUseDOM) {
386
+ useHasFeature =
387
+ document.implementation &&
388
+ document.implementation.hasFeature &&
389
+ // always returns true in newer browsers as per the standard.
390
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
391
+ document.implementation.hasFeature('', '') !== true;
392
+ }
393
+
394
+ /**
395
+ * Checks if an event is supported in the current execution environment.
396
+ *
397
+ * NOTE: This will not work correctly for non-generic events such as `change`,
398
+ * `reset`, `load`, `error`, and `select`.
399
+ *
400
+ * Borrows from Modernizr.
401
+ *
402
+ * @param {string} eventNameSuffix Event name, e.g. "click".
403
+ * @param {?boolean} capture Check if the capture phase is supported.
404
+ * @return {boolean} True if the event is supported.
405
+ * @internal
406
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
407
+ */
408
+ function isEventSupported(eventNameSuffix, capture) {
409
+ if (!ExecutionEnvironment.canUseDOM ||
410
+ capture && !('addEventListener' in document)) {
411
+ return false;
412
+ }
413
+
414
+ var eventName = 'on' + eventNameSuffix;
415
+ var isSupported = eventName in document;
416
+
417
+ if (!isSupported) {
418
+ var element = document.createElement('div');
419
+ element.setAttribute(eventName, 'return;');
420
+ isSupported = typeof element[eventName] === 'function';
421
+ }
422
+
423
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
424
+ // This is the only way to test support for the `wheel` event in IE9+.
425
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
426
+ }
427
+
428
+ return isSupported;
429
+ }
430
+
431
+ module.exports = isEventSupported;
432
+
433
+
434
+ /***/ }),
435
+
436
+ /***/ 2527:
437
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
438
+
439
+ /**
440
+ * Copyright (c) 2015, Facebook, Inc.
441
+ * All rights reserved.
442
+ *
443
+ * This source code is licensed under the BSD-style license found in the
444
+ * LICENSE file in the root directory of this source tree. An additional grant
445
+ * of patent rights can be found in the PATENTS file in the same directory.
446
+ *
447
+ * @providesModule normalizeWheel
448
+ * @typechecks
449
+ */
450
+
451
+
452
+
453
+ var UserAgent_DEPRECATED = __webpack_require__(6377);
454
+
455
+ var isEventSupported = __webpack_require__(3541);
456
+
457
+
458
+ // Reasonable defaults
459
+ var PIXEL_STEP = 10;
460
+ var LINE_HEIGHT = 40;
461
+ var PAGE_HEIGHT = 800;
462
+
463
+ /**
464
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
465
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
466
+ * your questions.
467
+ *
468
+ * If you need to react to the mouse wheel in a predictable way, this code is
469
+ * like your bestest friend. * hugs *
470
+ *
471
+ * As of today, there are 4 DOM event types you can listen to:
472
+ *
473
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
474
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
475
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
476
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
477
+ *
478
+ * So what to do? The is the best:
479
+ *
480
+ * normalizeWheel.getEventType();
481
+ *
482
+ * In your event callback, use this code to get sane interpretation of the
483
+ * deltas. This code will return an object with properties:
484
+ *
485
+ * spinX -- normalized spin speed (use for zoom) - x plane
486
+ * spinY -- " - y plane
487
+ * pixelX -- normalized distance (to pixels) - x plane
488
+ * pixelY -- " - y plane
489
+ *
490
+ * Wheel values are provided by the browser assuming you are using the wheel to
491
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
492
+ * significantly on different platforms and browsers, forgetting that you can
493
+ * scroll at different speeds. Some devices (like trackpads) emit more events
494
+ * at smaller increments with fine granularity, and some emit massive jumps with
495
+ * linear speed or acceleration.
496
+ *
497
+ * This code does its best to normalize the deltas for you:
498
+ *
499
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
500
+ * dragged). This is super useful for zoom support where you want to
501
+ * throw away the chunky scroll steps on the PC and make those equal to
502
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
503
+ * resolve a single slow step on a wheel to 1.
504
+ *
505
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
506
+ * get the crazy differences between browsers, but at least it'll be in
507
+ * pixels!
508
+ *
509
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
510
+ * should translate to positive value zooming IN, negative zooming OUT.
511
+ * This matches the newer 'wheel' event.
512
+ *
513
+ * Why are there spinX, spinY (or pixels)?
514
+ *
515
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
516
+ * with a mouse. It results in side-scrolling in the browser by default.
517
+ *
518
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
519
+ *
520
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
521
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
522
+ * you know.
523
+ *
524
+ * Implementation info:
525
+ *
526
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
527
+ * average mouse:
528
+ *
529
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
530
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
531
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
532
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
533
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
534
+ *
535
+ * On the trackpad:
536
+ *
537
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
538
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
539
+ *
540
+ * On other/older browsers.. it's more complicated as there can be multiple and
541
+ * also missing delta values.
542
+ *
543
+ * The 'wheel' event is more standard:
544
+ *
545
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
546
+ *
547
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
548
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
549
+ * backward compatibility with older events. Those other values help us
550
+ * better normalize spin speed. Example of what the browsers provide:
551
+ *
552
+ * | event.wheelDelta | event.detail
553
+ * ------------------+------------------+--------------
554
+ * Safari v5/OS X | -120 | 0
555
+ * Safari v5/Win7 | -120 | 0
556
+ * Chrome v17/OS X | -120 | 0
557
+ * Chrome v17/Win7 | -120 | 0
558
+ * IE9/Win7 | -120 | undefined
559
+ * Firefox v4/OS X | undefined | 1
560
+ * Firefox v4/Win7 | undefined | 3
561
+ *
562
+ */
563
+ function normalizeWheel(/*object*/ event) /*object*/ {
564
+ var sX = 0, sY = 0, // spinX, spinY
565
+ pX = 0, pY = 0; // pixelX, pixelY
566
+
567
+ // Legacy
568
+ if ('detail' in event) { sY = event.detail; }
569
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
570
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
571
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
572
+
573
+ // side scrolling on FF with DOMMouseScroll
574
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
575
+ sX = sY;
576
+ sY = 0;
577
+ }
578
+
579
+ pX = sX * PIXEL_STEP;
580
+ pY = sY * PIXEL_STEP;
581
+
582
+ if ('deltaY' in event) { pY = event.deltaY; }
583
+ if ('deltaX' in event) { pX = event.deltaX; }
584
+
585
+ if ((pX || pY) && event.deltaMode) {
586
+ if (event.deltaMode == 1) { // delta in LINE units
587
+ pX *= LINE_HEIGHT;
588
+ pY *= LINE_HEIGHT;
589
+ } else { // delta in PAGE units
590
+ pX *= PAGE_HEIGHT;
591
+ pY *= PAGE_HEIGHT;
592
+ }
593
+ }
594
+
595
+ // Fall-back if spin cannot be determined
596
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
597
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
598
+
599
+ return { spinX : sX,
600
+ spinY : sY,
601
+ pixelX : pX,
602
+ pixelY : pY };
603
+ }
604
+
605
+
606
+ /**
607
+ * The best combination if you prefer spinX + spinY normalization. It favors
608
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
609
+ * 'wheel' event, making spin speed determination impossible.
610
+ */
611
+ normalizeWheel.getEventType = function() /*string*/ {
612
+ return (UserAgent_DEPRECATED.firefox())
613
+ ? 'DOMMouseScroll'
614
+ : (isEventSupported('wheel'))
615
+ ? 'wheel'
616
+ : 'mousewheel';
617
+ };
618
+
619
+ module.exports = normalizeWheel;
620
+
621
+
622
+ /***/ }),
623
+
16
624
  /***/ 7609:
17
625
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
18
626
 
@@ -359,136 +967,791 @@ try {
359
967
  }
360
968
 
361
969
 
362
- /***/ })
970
+ /***/ })
971
+
972
+ /******/ });
973
+ /************************************************************************/
974
+ /******/ // The module cache
975
+ /******/ var __webpack_module_cache__ = {};
976
+ /******/
977
+ /******/ // The require function
978
+ /******/ function __webpack_require__(moduleId) {
979
+ /******/ // Check if module is in cache
980
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
981
+ /******/ if (cachedModule !== undefined) {
982
+ /******/ return cachedModule.exports;
983
+ /******/ }
984
+ /******/ // Create a new module (and put it into the cache)
985
+ /******/ var module = __webpack_module_cache__[moduleId] = {
986
+ /******/ // no module.id needed
987
+ /******/ // no module.loaded needed
988
+ /******/ exports: {}
989
+ /******/ };
990
+ /******/
991
+ /******/ // Execute the module function
992
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
993
+ /******/
994
+ /******/ // Return the exports of the module
995
+ /******/ return module.exports;
996
+ /******/ }
997
+ /******/
998
+ /************************************************************************/
999
+ /******/ /* webpack/runtime/compat get default export */
1000
+ /******/ (() => {
1001
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
1002
+ /******/ __webpack_require__.n = (module) => {
1003
+ /******/ var getter = module && module.__esModule ?
1004
+ /******/ () => (module['default']) :
1005
+ /******/ () => (module);
1006
+ /******/ __webpack_require__.d(getter, { a: getter });
1007
+ /******/ return getter;
1008
+ /******/ };
1009
+ /******/ })();
1010
+ /******/
1011
+ /******/ /* webpack/runtime/define property getters */
1012
+ /******/ (() => {
1013
+ /******/ // define getter functions for harmony exports
1014
+ /******/ __webpack_require__.d = (exports, definition) => {
1015
+ /******/ for(var key in definition) {
1016
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1017
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1018
+ /******/ }
1019
+ /******/ }
1020
+ /******/ };
1021
+ /******/ })();
1022
+ /******/
1023
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
1024
+ /******/ (() => {
1025
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1026
+ /******/ })();
1027
+ /******/
1028
+ /************************************************************************/
1029
+ var __webpack_exports__ = {};
1030
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
1031
+ (() => {
1032
+
1033
+ // EXPORTS
1034
+ __webpack_require__.d(__webpack_exports__, {
1035
+ BkSearchSelect: () => (/* binding */ BkSearchSelect),
1036
+ "default": () => (/* binding */ src)
1037
+ });
1038
+
1039
+ ;// CONCATENATED MODULE: external "../shared"
1040
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1041
+ var y = x => () => x
1042
+ const shared_namespaceObject = x({ ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["random"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.random, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
1043
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
1044
+ function _typeof(o) {
1045
+ "@babel/helpers - typeof";
1046
+
1047
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1048
+ return typeof o;
1049
+ } : function (o) {
1050
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1051
+ }, _typeof(o);
1052
+ }
1053
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
1054
+
1055
+ function toPrimitive(t, r) {
1056
+ if ("object" != _typeof(t) || !t) return t;
1057
+ var e = t[Symbol.toPrimitive];
1058
+ if (void 0 !== e) {
1059
+ var i = e.call(t, r || "default");
1060
+ if ("object" != _typeof(i)) return i;
1061
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1062
+ }
1063
+ return ("string" === r ? String : Number)(t);
1064
+ }
1065
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
1066
+
1067
+
1068
+ function toPropertyKey(t) {
1069
+ var i = toPrimitive(t, "string");
1070
+ return "symbol" == _typeof(i) ? i : String(i);
1071
+ }
1072
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
1073
+
1074
+ function _defineProperty(obj, key, value) {
1075
+ key = toPropertyKey(key);
1076
+ if (key in obj) {
1077
+ Object.defineProperty(obj, key, {
1078
+ value: value,
1079
+ enumerable: true,
1080
+ configurable: true,
1081
+ writable: true
1082
+ });
1083
+ } else {
1084
+ obj[key] = value;
1085
+ }
1086
+ return obj;
1087
+ }
1088
+ ;// CONCATENATED MODULE: external "vue"
1089
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1090
+ var external_vue_y = x => () => x
1091
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
1092
+ ;// CONCATENATED MODULE: external "../config-provider"
1093
+ var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1094
+ var config_provider_y = x => () => x
1095
+ 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 });
1096
+ ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
1097
+ 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; } } }; }
1098
+ 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); }
1099
+ 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; }
1100
+ /*
1101
+ * Tencent is pleased to support the open source community by making
1102
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1103
+ *
1104
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1105
+ *
1106
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1107
+ *
1108
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1109
+ *
1110
+ * ---------------------------------------------------
1111
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1112
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1113
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1114
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1115
+ *
1116
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1117
+ * the Software.
1118
+ *
1119
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1120
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1121
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1122
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1123
+ * IN THE SOFTWARE.
1124
+ */
1125
+ var isElement = function isElement(e) {
1126
+ if (typeof Element === 'undefined') return false;
1127
+ return e instanceof Element;
1128
+ };
1129
+ var nodeList = new Map();
1130
+ var startClick;
1131
+ document.addEventListener('mousedown', function (e) {
1132
+ return startClick = e;
1133
+ });
1134
+ document.addEventListener('mouseup', function (e) {
1135
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
1136
+ _step;
1137
+ try {
1138
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
1139
+ var handlers = _step.value;
1140
+ var _iterator2 = _createForOfIteratorHelper(handlers),
1141
+ _step2;
1142
+ try {
1143
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1144
+ var documentHandler = _step2.value.documentHandler;
1145
+ documentHandler(e, startClick);
1146
+ }
1147
+ } catch (err) {
1148
+ _iterator2.e(err);
1149
+ } finally {
1150
+ _iterator2.f();
1151
+ }
1152
+ }
1153
+ } catch (err) {
1154
+ _iterator.e(err);
1155
+ } finally {
1156
+ _iterator.f();
1157
+ }
1158
+ });
1159
+ function createDocumentHandler(el, binding) {
1160
+ var excludes = [];
1161
+ if (Array.isArray(binding.arg)) {
1162
+ excludes = binding.arg;
1163
+ } else if (isElement(binding.arg)) {
1164
+ excludes.push(binding.arg);
1165
+ }
1166
+ return function (mouseup, mousedown) {
1167
+ var popperRef = binding.instance.popperRef;
1168
+ var mouseUpTarget = mouseup.target;
1169
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
1170
+ var isBound = !binding || !binding.instance;
1171
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
1172
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
1173
+ var isSelf = el === mouseUpTarget;
1174
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
1175
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
1176
+ }) || excludes.length && excludes.includes(mouseDownTarget);
1177
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
1178
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
1179
+ return;
1180
+ }
1181
+ binding.value(mouseup, mousedown);
1182
+ };
1183
+ }
1184
+ var ClickOutside = {
1185
+ beforeMount: function beforeMount(el, binding) {
1186
+ if (!nodeList.has(el)) {
1187
+ nodeList.set(el, []);
1188
+ }
1189
+ nodeList.get(el).push({
1190
+ documentHandler: createDocumentHandler(el, binding),
1191
+ bindingFn: binding.value
1192
+ });
1193
+ },
1194
+ updated: function updated(el, binding) {
1195
+ if (!nodeList.has(el)) {
1196
+ nodeList.set(el, []);
1197
+ }
1198
+ var handlers = nodeList.get(el);
1199
+ var oldHandlerIndex = handlers.findIndex(function (item) {
1200
+ return item.bindingFn === binding.oldValue;
1201
+ });
1202
+ var newHandler = {
1203
+ documentHandler: createDocumentHandler(el, binding),
1204
+ bindingFn: binding.value
1205
+ };
1206
+ if (oldHandlerIndex >= 0) {
1207
+ // replace the old handler to the new handler
1208
+ handlers.splice(oldHandlerIndex, 1, newHandler);
1209
+ } else {
1210
+ handlers.push(newHandler);
1211
+ }
1212
+ },
1213
+ unmounted: function unmounted(el) {
1214
+ // remove all listeners when a component unmounted
1215
+ nodeList["delete"](el);
1216
+ }
1217
+ };
1218
+ ClickOutside.install = function (app) {
1219
+ app.directive('bkTooltips', ClickOutside);
1220
+ };
1221
+ /* harmony default export */ const clickoutside = (ClickOutside);
1222
+ ;// CONCATENATED MODULE: external "../plugin-popover"
1223
+ var plugin_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1224
+ var plugin_popover_y = x => () => x
1225
+ const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"] });
1226
+ ;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
1227
+
1228
+ /*
1229
+ * Tencent is pleased to support the open source community by making
1230
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1231
+ *
1232
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1233
+ *
1234
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1235
+ *
1236
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1237
+ *
1238
+ * ---------------------------------------------------
1239
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1240
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1241
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1242
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1243
+ *
1244
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1245
+ * the Software.
1246
+ *
1247
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1248
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1249
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1250
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1251
+ * IN THE SOFTWARE.
1252
+ */
1253
+
1254
+ var resolveOptions = function resolveOptions(el, binding) {
1255
+ var options = {
1256
+ content: '',
1257
+ target: el
1258
+ };
1259
+ if (_typeof(binding) === 'object') {
1260
+ Object.assign(options, binding);
1261
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
1262
+ Object.assign(options, binding.popoverOption);
1263
+ }
1264
+ } else {
1265
+ options.content = binding;
1266
+ }
1267
+ return options;
1268
+ };
1269
+ var createInstance = function createInstance(el, binding) {
1270
+ var instance = null;
1271
+ var createTimer = null;
1272
+ var hidePopTimer = null;
1273
+ var options = resolveOptions(el, binding);
1274
+ var disabled = options.disabled;
1275
+ if (disabled || instance) {
1276
+ return;
1277
+ }
1278
+ var handleContentEnter = function handleContentEnter() {
1279
+ hidePopTimer && clearTimeout(hidePopTimer);
1280
+ hidePopTimer = null;
1281
+ };
1282
+ var handleContentLeave = function handleContentLeave() {
1283
+ var _instance, _instance2;
1284
+ if (createTimer) {
1285
+ clearTimeout(createTimer);
1286
+ }
1287
+ (_instance = instance) === null || _instance === void 0 || _instance.hide();
1288
+ (_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
1289
+ instance = null;
1290
+ };
1291
+ var handleMouseEnter = function handleMouseEnter() {
1292
+ handleContentLeave();
1293
+ createTimer && clearTimeout(createTimer);
1294
+ createTimer = setTimeout(function () {
1295
+ var targetOptions = resolveOptions(el, binding);
1296
+ targetOptions.isShow = true;
1297
+ targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
1298
+ targetOptions.allowHtml = true;
1299
+ Object.assign(targetOptions, {
1300
+ onContentMouseenter: handleContentEnter,
1301
+ onContentMouseleave: handleContentLeave
1302
+ });
1303
+ instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
1304
+ }, 300);
1305
+ };
1306
+ var handleMouseLeave = function handleMouseLeave() {
1307
+ hidePopTimer = setTimeout(function () {
1308
+ var _instance3, _instance4;
1309
+ if (createTimer) {
1310
+ clearTimeout(createTimer);
1311
+ }
1312
+ (_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
1313
+ (_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
1314
+ instance = null;
1315
+ }, 120);
1316
+ };
1317
+ el.addEventListener('mouseenter', handleMouseEnter);
1318
+ el.addEventListener('mouseleave', handleMouseLeave);
1319
+ var destroyInstance = function destroyInstance(element) {
1320
+ var _ref, _ref2;
1321
+ handleMouseLeave();
1322
+ (_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
1323
+ (_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
1324
+ };
1325
+ return {
1326
+ destroyInstance: destroyInstance,
1327
+ instance: instance
1328
+ };
1329
+ };
1330
+ var ellipsis = {
1331
+ mounted: function mounted(el, binding) {
1332
+ createInstance(el, binding);
1333
+ }
1334
+ };
1335
+ /* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
1336
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
1337
+ var normalize_wheel = __webpack_require__(2439);
1338
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
1339
+ ;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
1340
+ /*
1341
+ * Tencent is pleased to support the open source community by making
1342
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1343
+ *
1344
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1345
+ *
1346
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1347
+ *
1348
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1349
+ *
1350
+ * ---------------------------------------------------
1351
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1352
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1353
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1354
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1355
+ *
1356
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1357
+ * the Software.
1358
+ *
1359
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1360
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1361
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1362
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1363
+ * IN THE SOFTWARE.
1364
+ */
1365
+
1366
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
1367
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
1368
+ if (element !== null && element !== void 0 && element.addEventListener) {
1369
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
1370
+ var normalized = normalize_wheel_default()(e);
1371
+ callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
1372
+ });
1373
+ }
1374
+ };
1375
+ var mousewheel = {
1376
+ beforeMount: function beforeMount(el, binding) {
1377
+ mousewheelHandler(el, binding.value);
1378
+ }
1379
+ };
1380
+ /* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
1381
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1382
+ function arrayLikeToArray_arrayLikeToArray(arr, len) {
1383
+ if (len == null || len > arr.length) len = arr.length;
1384
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1385
+ return arr2;
1386
+ }
1387
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1388
+
1389
+ function _arrayWithoutHoles(arr) {
1390
+ if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
1391
+ }
1392
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1393
+ function _iterableToArray(iter) {
1394
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1395
+ }
1396
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1397
+
1398
+ function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
1399
+ if (!o) return;
1400
+ if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
1401
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1402
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1403
+ if (n === "Map" || n === "Set") return Array.from(o);
1404
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
1405
+ }
1406
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1407
+ function _nonIterableSpread() {
1408
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1409
+ }
1410
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1411
+
1412
+
1413
+
1414
+
1415
+ function _toConsumableArray(arr) {
1416
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
1417
+ }
1418
+ ;// CONCATENATED MODULE: external "@popperjs/core"
1419
+ var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1420
+ var core_y = x => () => x
1421
+ const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
1422
+ ;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
1423
+
1424
+
363
1425
 
364
- /******/ });
365
- /************************************************************************/
366
- /******/ // The module cache
367
- /******/ var __webpack_module_cache__ = {};
368
- /******/
369
- /******/ // The require function
370
- /******/ function __webpack_require__(moduleId) {
371
- /******/ // Check if module is in cache
372
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
373
- /******/ if (cachedModule !== undefined) {
374
- /******/ return cachedModule.exports;
375
- /******/ }
376
- /******/ // Create a new module (and put it into the cache)
377
- /******/ var module = __webpack_module_cache__[moduleId] = {
378
- /******/ // no module.id needed
379
- /******/ // no module.loaded needed
380
- /******/ exports: {}
381
- /******/ };
382
- /******/
383
- /******/ // Execute the module function
384
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
385
- /******/
386
- /******/ // Return the exports of the module
387
- /******/ return module.exports;
388
- /******/ }
389
- /******/
390
- /************************************************************************/
391
- /******/ /* webpack/runtime/compat get default export */
392
- /******/ (() => {
393
- /******/ // getDefaultExport function for compatibility with non-harmony modules
394
- /******/ __webpack_require__.n = (module) => {
395
- /******/ var getter = module && module.__esModule ?
396
- /******/ () => (module['default']) :
397
- /******/ () => (module);
398
- /******/ __webpack_require__.d(getter, { a: getter });
399
- /******/ return getter;
400
- /******/ };
401
- /******/ })();
402
- /******/
403
- /******/ /* webpack/runtime/define property getters */
404
- /******/ (() => {
405
- /******/ // define getter functions for harmony exports
406
- /******/ __webpack_require__.d = (exports, definition) => {
407
- /******/ for(var key in definition) {
408
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
409
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
410
- /******/ }
411
- /******/ }
412
- /******/ };
413
- /******/ })();
414
- /******/
415
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
416
- /******/ (() => {
417
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
418
- /******/ })();
419
- /******/
420
- /************************************************************************/
421
- var __webpack_exports__ = {};
422
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
423
- (() => {
1426
+ 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; }
1427
+ 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; }
1428
+ /*
1429
+ * Tencent is pleased to support the open source community by making
1430
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1431
+ *
1432
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1433
+ *
1434
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1435
+ *
1436
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1437
+ *
1438
+ * ---------------------------------------------------
1439
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1440
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1441
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1442
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1443
+ *
1444
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1445
+ * the Software.
1446
+ *
1447
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1448
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1449
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1450
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1451
+ * IN THE SOFTWARE.
1452
+ */
424
1453
 
425
- // EXPORTS
426
- __webpack_require__.d(__webpack_exports__, {
427
- BkSearchSelect: () => (/* binding */ BkSearchSelect),
428
- "default": () => (/* binding */ src)
429
- });
430
1454
 
431
- ;// CONCATENATED MODULE: external "../shared"
432
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
433
- var y = x => () => x
434
- const shared_namespaceObject = x({ ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["random"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.random, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
435
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
436
- function _typeof(o) {
437
- "@babel/helpers - typeof";
438
1455
 
439
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
440
- return typeof o;
441
- } : function (o) {
442
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
443
- }, _typeof(o);
1456
+ var tooltips_nodeList = new WeakMap();
1457
+ var tooltips = {
1458
+ beforeMount: function beforeMount(el, binding) {
1459
+ var opts = getOpts(binding);
1460
+ var trigger = opts.trigger,
1461
+ showOnInit = opts.showOnInit;
1462
+ var popper = renderContent(opts);
1463
+ var delayTimeout = null;
1464
+ if (showOnInit) {
1465
+ (0,external_vue_namespaceObject.nextTick)(function () {
1466
+ show(el);
1467
+ });
1468
+ }
1469
+ if (trigger === 'hover') {
1470
+ var hideTimeout = null;
1471
+ el.addEventListener('mouseenter', function () {
1472
+ delayTimeout = setTimeout(function () {
1473
+ show(el);
1474
+ clearTimeout(hideTimeout);
1475
+ clearTimeout(delayTimeout);
1476
+ }, opts.delay);
1477
+ });
1478
+ popper.addEventListener('mouseenter', function () {
1479
+ clearTimeout(hideTimeout);
1480
+ });
1481
+ el.addEventListener('mouseleave', function () {
1482
+ clearTimeout(delayTimeout);
1483
+ hideTimeout = setTimeout(function () {
1484
+ hide(el);
1485
+ }, 100);
1486
+ });
1487
+ el.addEventListener('click', function () {
1488
+ hide(el);
1489
+ });
1490
+ popper.addEventListener('mouseleave', function () {
1491
+ clearTimeout(delayTimeout);
1492
+ hideTimeout = setTimeout(function () {
1493
+ hide(el);
1494
+ }, 100);
1495
+ });
1496
+ } else if (trigger === 'click') {
1497
+ document.body.addEventListener('click', function (event) {
1498
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
1499
+ delayTimeout = setTimeout(function () {
1500
+ show(el);
1501
+ clearTimeout(delayTimeout);
1502
+ }, opts.delay);
1503
+ } else if (popper.hasAttribute('data-show')) {
1504
+ hide(el);
1505
+ }
1506
+ });
1507
+ }
1508
+ tooltips_nodeList.set(el, {
1509
+ opts: opts,
1510
+ popper: popper,
1511
+ popperInstance: null
1512
+ });
1513
+ },
1514
+ updated: function updated(el, binding) {
1515
+ if (tooltips_nodeList.get(el)) {
1516
+ tooltips_nodeList.get(el).opts = getOpts(binding);
1517
+ }
1518
+ },
1519
+ unmounted: function unmounted(el) {
1520
+ hide(el);
1521
+ tooltips_nodeList["delete"](el);
1522
+ }
1523
+ };
1524
+ /**
1525
+ * 初始化配置
1526
+ * @returns tooltips配置
1527
+ */
1528
+ function initOptions() {
1529
+ var defaultOpts = {
1530
+ arrow: true,
1531
+ disabled: false,
1532
+ trigger: 'hover',
1533
+ theme: 'dark',
1534
+ content: '',
1535
+ showOnInit: false,
1536
+ placement: 'top',
1537
+ distance: 8,
1538
+ extCls: '',
1539
+ sameWidth: false,
1540
+ delay: 0,
1541
+ onShow: function onShow() {},
1542
+ onHide: function onHide() {}
1543
+ };
1544
+ return defaultOpts;
444
1545
  }
445
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
446
-
447
- function toPrimitive(t, r) {
448
- if ("object" != _typeof(t) || !t) return t;
449
- var e = t[Symbol.toPrimitive];
450
- if (void 0 !== e) {
451
- var i = e.call(t, r || "default");
452
- if ("object" != _typeof(i)) return i;
453
- throw new TypeError("@@toPrimitive must return a primitive value.");
1546
+ /**
1547
+ * 获取配置
1548
+ * @returns tooltips配置
1549
+ */
1550
+ function getOpts(binding) {
1551
+ var opts = initOptions();
1552
+ if (_typeof(binding.value) === 'object') {
1553
+ Object.assign(opts, binding.value);
1554
+ } else {
1555
+ opts.content = binding.value;
454
1556
  }
455
- return ("string" === r ? String : Number)(t);
1557
+ return opts;
456
1558
  }
457
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
458
-
459
-
460
- function toPropertyKey(t) {
461
- var i = toPrimitive(t, "string");
462
- return "symbol" == _typeof(i) ? i : String(i);
1559
+ /**
1560
+ * 创建tooltips DOM
1561
+ * @param opts
1562
+ * @returns
1563
+ */
1564
+ function renderContext(value, content) {
1565
+ if (typeof value === 'string') {
1566
+ content.innerText = value;
1567
+ } else {
1568
+ // 如果 content 是 Vue 组件的实例,则挂载它
1569
+ var container = document.createElement('div');
1570
+ var vnode = (0,external_vue_namespaceObject.h)(value);
1571
+ (0,external_vue_namespaceObject.render)(vnode, container);
1572
+ content.innerHTML = container.innerHTML;
1573
+ }
463
1574
  }
464
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
465
-
466
- function _defineProperty(obj, key, value) {
467
- key = toPropertyKey(key);
468
- if (key in obj) {
469
- Object.defineProperty(obj, key, {
470
- value: value,
471
- enumerable: true,
472
- configurable: true,
473
- writable: true
1575
+ function renderContent(opts) {
1576
+ var value = opts.content,
1577
+ hasArrow = opts.arrow,
1578
+ theme = opts.theme,
1579
+ extCls = opts.extCls;
1580
+ var isLight = theme === 'light';
1581
+ var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
1582
+ var content = document.createElement('div');
1583
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1584
+ content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
1585
+ content.innerText = value;
1586
+ content.style.zIndex = String(zIndex);
1587
+ renderContext(value, content);
1588
+ if (hasArrow) {
1589
+ var arrow = renderArrow();
1590
+ content.appendChild(arrow);
1591
+ }
1592
+ return content;
1593
+ }
1594
+ /**
1595
+ * 渲染箭头dom
1596
+ * @returns arrow DOM
1597
+ */
1598
+ function renderArrow() {
1599
+ var arrow = document.createElement('div');
1600
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1601
+ arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
1602
+ arrow.setAttribute('data-popper-arrow', '');
1603
+ return arrow;
1604
+ }
1605
+ /**
1606
+ * 创建popper实例
1607
+ * @param el
1608
+ * @param popper
1609
+ * @returns popper实例
1610
+ */
1611
+ function createPopperInstance(el, popper) {
1612
+ var _nodeList$get = tooltips_nodeList.get(el),
1613
+ opts = _nodeList$get.opts;
1614
+ var placement = opts.placement,
1615
+ distance = opts.distance,
1616
+ sameWidth = opts.sameWidth;
1617
+ var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
1618
+ placement: placement,
1619
+ modifiers: [{
1620
+ name: 'offset',
1621
+ options: {
1622
+ offset: [0, distance]
1623
+ }
1624
+ }, {
1625
+ name: 'arrow',
1626
+ options: {
1627
+ padding: 5
1628
+ }
1629
+ }].concat(_toConsumableArray(sameWidth ? [{
1630
+ name: 'sameWidth',
1631
+ enabled: true,
1632
+ phase: 'beforeWrite',
1633
+ requires: ['computeStyles'],
1634
+ fn: function fn(_ref) {
1635
+ var state = _ref.state;
1636
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
1637
+ },
1638
+ effect: function effect(_ref2) {
1639
+ var state = _ref2.state;
1640
+ state.elements.popper.style.overflowWrap = 'break-word';
1641
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
1642
+ }
1643
+ }] : []))
1644
+ });
1645
+ return popperInstance;
1646
+ }
1647
+ /**
1648
+ * 显示
1649
+ * @param el
1650
+ */
1651
+ function show(el) {
1652
+ var _nodeList$get2 = tooltips_nodeList.get(el),
1653
+ popper = _nodeList$get2.popper,
1654
+ opts = _nodeList$get2.opts;
1655
+ var disabled = opts.disabled,
1656
+ content = opts.content,
1657
+ hasArrow = opts.arrow,
1658
+ onShow = opts.onShow,
1659
+ boundary = opts.boundary,
1660
+ _opts$modifiers = opts.modifiers,
1661
+ modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
1662
+ if (disabled) return;
1663
+ renderContext(content, popper);
1664
+ if (hasArrow) {
1665
+ var arrow = renderArrow();
1666
+ popper.appendChild(arrow);
1667
+ }
1668
+ var container = document.body;
1669
+ if (boundary) {
1670
+ if (boundary === 'parent') {
1671
+ container = el.parentElement;
1672
+ } else if (boundary instanceof HTMLElement) {
1673
+ container = boundary;
1674
+ }
1675
+ }
1676
+ container.appendChild(popper);
1677
+ var popperInstance = createPopperInstance(el, popper);
1678
+ onShow();
1679
+ // Make the tooltip visible
1680
+ popper.setAttribute('data-show', '');
1681
+ // Enable the event listeners
1682
+ popperInstance.setOptions(function (options) {
1683
+ return _objectSpread(_objectSpread({}, options), {}, {
1684
+ modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
1685
+ name: 'eventListeners',
1686
+ enabled: true
1687
+ }])
474
1688
  });
475
- } else {
476
- obj[key] = value;
1689
+ });
1690
+ // Update its position
1691
+ popperInstance.forceUpdate();
1692
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
1693
+ }
1694
+ /**
1695
+ * 隐藏
1696
+ * @param el
1697
+ */
1698
+ function hide(el) {
1699
+ if (!tooltips_nodeList.get(el)) return;
1700
+ var _nodeList$get3 = tooltips_nodeList.get(el),
1701
+ popper = _nodeList$get3.popper,
1702
+ popperInstance = _nodeList$get3.popperInstance,
1703
+ opts = _nodeList$get3.opts;
1704
+ var onHide = opts.onHide;
1705
+ if (popper && document.body.contains(popper)) {
1706
+ var _popper$parentNode;
1707
+ popper.removeAttribute('data-show');
1708
+ popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
1709
+ popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
1710
+ onHide();
477
1711
  }
478
- return obj;
479
1712
  }
480
- ;// CONCATENATED MODULE: external "vue"
481
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
482
- var external_vue_y = x => () => x
483
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
484
- ;// CONCATENATED MODULE: external "../config-provider"
485
- var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
486
- var config_provider_y = x => () => x
487
- 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 });
488
- ;// CONCATENATED MODULE: external "../directives"
489
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
490
- var directives_y = x => () => x
491
- const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
1713
+ /* harmony default export */ const src_tooltips = ((/* unused pure expression or super */ null && (tooltips)));
1714
+ ;// CONCATENATED MODULE: external "../loading"
1715
+ var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1716
+ var external_loading_y = x => () => x
1717
+ const external_loading_namespaceObject = external_loading_x({ });
1718
+ ;// CONCATENATED MODULE: external "../overflow-title"
1719
+ var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1720
+ var external_overflow_title_y = x => () => x
1721
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
1722
+ ;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
1723
+ /*
1724
+ * Tencent is pleased to support the open source community by making
1725
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1726
+ *
1727
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1728
+ *
1729
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1730
+ *
1731
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1732
+ *
1733
+ * ---------------------------------------------------
1734
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1735
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1736
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1737
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1738
+ *
1739
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1740
+ * the Software.
1741
+ *
1742
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1743
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1744
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1745
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1746
+ * IN THE SOFTWARE.
1747
+ */
1748
+
1749
+
1750
+
1751
+
1752
+
1753
+
1754
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
492
1755
  ;// CONCATENATED MODULE: external "../icon"
493
1756
  var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
494
1757
  var icon_y = x => () => x
@@ -841,22 +2104,6 @@ function _iterableToArrayLimit(r, l) {
841
2104
  return a;
842
2105
  }
843
2106
  }
844
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
845
- function _arrayLikeToArray(arr, len) {
846
- if (len == null || len > arr.length) len = arr.length;
847
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
848
- return arr2;
849
- }
850
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
851
-
852
- function _unsupportedIterableToArray(o, minLen) {
853
- if (!o) return;
854
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
855
- var n = Object.prototype.toString.call(o).slice(8, -1);
856
- if (n === "Object" && o.constructor) n = o.constructor.name;
857
- if (n === "Map" || n === "Set") return Array.from(o);
858
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
859
- }
860
2107
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
861
2108
  function _nonIterableRest() {
862
2109
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -867,7 +2114,7 @@ function _nonIterableRest() {
867
2114
 
868
2115
 
869
2116
  function _slicedToArray(arr, i) {
870
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
2117
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
871
2118
  }
872
2119
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
873
2120
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -927,27 +2174,6 @@ const radio_namespaceObject = radio_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
927
2174
  var radio_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
928
2175
  var radio_less_y = x => () => x
929
2176
  const radio_less_namespaceObject = radio_less_x({ });
930
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
931
-
932
- function _arrayWithoutHoles(arr) {
933
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
934
- }
935
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
936
- function _iterableToArray(iter) {
937
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
938
- }
939
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
940
- function _nonIterableSpread() {
941
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
942
- }
943
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
944
-
945
-
946
-
947
-
948
- function _toConsumableArray(arr) {
949
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
950
- }
951
2177
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
952
2178
  function _classCallCheck(instance, Constructor) {
953
2179
  if (!(instance instanceof Constructor)) {
@@ -1484,12 +2710,12 @@ var SelectedItem = /*#__PURE__*/function () {
1484
2710
 
1485
2711
 
1486
2712
 
1487
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = input_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; } } }; }
2713
+ function input_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = input_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; } } }; }
1488
2714
  function input_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return input_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 input_arrayLikeToArray(o, minLen); }
1489
2715
  function input_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; }
1490
2716
 
1491
- 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; }
1492
- 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; }
2717
+ function input_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; }
2718
+ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? input_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : input_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1493
2719
  /*
1494
2720
  * Tencent is pleased to support the open source community by making
1495
2721
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -1526,7 +2752,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1526
2752
  /* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
1527
2753
  name: 'SearchSelectInput',
1528
2754
  directives: {
1529
- clickoutside: directives_namespaceObject.clickoutside
2755
+ clickoutside: clickoutside
1530
2756
  },
1531
2757
  props: {
1532
2758
  data: {
@@ -1914,7 +3140,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1914
3140
  _context2.next = 18;
1915
3141
  break;
1916
3142
  }
1917
- selectedItem = new SelectedItem(_objectSpread(_objectSpread({}, item), {}, {
3143
+ selectedItem = new SelectedItem(input_objectSpread(input_objectSpread({}, item), {}, {
1918
3144
  id: (_item$realId = item.realId) !== null && _item$realId !== void 0 ? _item$realId : item.id
1919
3145
  }), type);
1920
3146
  selectedItem.addValues(item.value.name, false);
@@ -2127,7 +3353,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2127
3353
  return !item.isSelected;
2128
3354
  }).slice();
2129
3355
  } else {
2130
- _iterator = _createForOfIteratorHelper(props.data.filter(function (item) {
3356
+ _iterator = input_createForOfIteratorHelper(props.data.filter(function (item) {
2131
3357
  return !item.isSelected;
2132
3358
  }));
2133
3359
  try {
@@ -2137,11 +3363,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2137
3363
  if (isMatched) {
2138
3364
  list.push(item);
2139
3365
  filterList = [];
2140
- _iterator2 = _createForOfIteratorHelper(item.children || []);
3366
+ _iterator2 = input_createForOfIteratorHelper(item.children || []);
2141
3367
  try {
2142
3368
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2143
3369
  child = _step2.value;
2144
- filterList.push(_objectSpread(_objectSpread({}, item), {}, {
3370
+ filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
2145
3371
  realId: item.id,
2146
3372
  id: (0,shared_namespaceObject.random)(10),
2147
3373
  value: child
@@ -2153,7 +3379,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2153
3379
  _iterator2.f();
2154
3380
  }
2155
3381
  if (!filterList.length && !item.onlyRecommendChildren) {
2156
- filterList.push(_objectSpread(_objectSpread({}, item), {}, {
3382
+ filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
2157
3383
  realId: item.id,
2158
3384
  id: (0,shared_namespaceObject.random)(10),
2159
3385
  value: {
@@ -2165,12 +3391,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2165
3391
  (_list = list).push.apply(_list, filterList);
2166
3392
  } else {
2167
3393
  _filterList = [];
2168
- _iterator3 = _createForOfIteratorHelper(item.children || []);
3394
+ _iterator3 = input_createForOfIteratorHelper(item.children || []);
2169
3395
  try {
2170
3396
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
2171
3397
  _child = _step3.value;
2172
3398
  if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
2173
- _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
3399
+ _filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
2174
3400
  realId: item.id,
2175
3401
  id: (0,shared_namespaceObject.random)(10),
2176
3402
  value: _child
@@ -2183,7 +3409,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2183
3409
  _iterator3.f();
2184
3410
  }
2185
3411
  if (!_filterList.length && !item.onlyRecommendChildren) {
2186
- _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
3412
+ _filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
2187
3413
  value: {
2188
3414
  id: keyword.value,
2189
3415
  name: keyword.value
@@ -2250,7 +3476,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2250
3476
  }
2251
3477
  return _context6.abrupt("return");
2252
3478
  case 7:
2253
- emit('add', formatItem || new SelectedItem(_objectSpread({}, valueList[0]), 'text'));
3479
+ emit('add', formatItem || new SelectedItem(input_objectSpread({}, valueList[0]), 'text'));
2254
3480
  keyword.value = '';
2255
3481
  setMenuList();
2256
3482
  return _context6.abrupt("return", true);
@@ -2359,7 +3585,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2359
3585
  return item.name === key.trim();
2360
3586
  });
2361
3587
  if (selectedItem) {
2362
- var item = new SelectedItem(_objectSpread({}, selectedItem), 'default');
3588
+ var item = new SelectedItem(input_objectSpread({}, selectedItem), 'default');
2363
3589
  item.addValues(value);
2364
3590
  return item;
2365
3591
  }
@@ -2847,7 +4073,7 @@ var SearchSelectProps = {
2847
4073
  /* harmony default export */ const search_select = ((0,external_vue_namespaceObject.defineComponent)({
2848
4074
  name: 'SearchSelect',
2849
4075
  directives: {
2850
- clickoutside: directives_namespaceObject.clickoutside
4076
+ clickoutside: clickoutside
2851
4077
  },
2852
4078
  props: SearchSelectProps,
2853
4079
  emits: ['update:modelValue', 'search', 'selectKey'],