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