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