bkui-vue 2.0.1 → 2.0.2-beta.1

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