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
@@ -2,15 +2,660 @@ import "../styles/reset.css";
2
2
  import "./popover.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
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
5
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
7
+ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
8
+ import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
6
9
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
7
10
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
8
11
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
9
12
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__ from "lodash/random";
10
- /******/ // The require scope
11
- /******/ var __webpack_require__ = {};
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 1043:
16
+ /***/ ((module) => {
17
+
18
+ /**
19
+ * Copyright (c) 2015, Facebook, Inc.
20
+ * All rights reserved.
21
+ *
22
+ * This source code is licensed under the BSD-style license found in the
23
+ * LICENSE file in the root directory of this source tree. An additional grant
24
+ * of patent rights can be found in the PATENTS file in the same directory.
25
+ *
26
+ * @providesModule ExecutionEnvironment
27
+ */
28
+
29
+ /*jslint evil: true */
30
+
31
+
32
+
33
+ var canUseDOM = !!(
34
+ typeof window !== 'undefined' &&
35
+ window.document &&
36
+ window.document.createElement
37
+ );
38
+
39
+ /**
40
+ * Simple, lightweight module assisting with the detection and context of
41
+ * Worker. Helps avoid circular dependencies and allows code to reason about
42
+ * whether or not they are in a Worker, even if they never include the main
43
+ * `ReactWorker` dependency.
44
+ */
45
+ var ExecutionEnvironment = {
46
+
47
+ canUseDOM: canUseDOM,
48
+
49
+ canUseWorkers: typeof Worker !== 'undefined',
50
+
51
+ canUseEventListeners:
52
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
53
+
54
+ canUseViewport: canUseDOM && !!window.screen,
55
+
56
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
57
+
58
+ };
59
+
60
+ module.exports = ExecutionEnvironment;
61
+
62
+
63
+ /***/ }),
64
+
65
+ /***/ 2586:
66
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
67
+
68
+ /**
69
+ * Copyright 2013-2015, Facebook, Inc.
70
+ * All rights reserved.
71
+ *
72
+ * This source code is licensed under the BSD-style license found in the
73
+ * LICENSE file in the root directory of this source tree. An additional grant
74
+ * of patent rights can be found in the PATENTS file in the same directory.
75
+ *
76
+ * @providesModule isEventSupported
77
+ */
78
+
79
+
80
+
81
+ var ExecutionEnvironment = __webpack_require__(1043);
82
+
83
+ var useHasFeature;
84
+ if (ExecutionEnvironment.canUseDOM) {
85
+ useHasFeature =
86
+ document.implementation &&
87
+ document.implementation.hasFeature &&
88
+ // always returns true in newer browsers as per the standard.
89
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
90
+ document.implementation.hasFeature('', '') !== true;
91
+ }
92
+
93
+ /**
94
+ * Checks if an event is supported in the current execution environment.
95
+ *
96
+ * NOTE: This will not work correctly for non-generic events such as `change`,
97
+ * `reset`, `load`, `error`, and `select`.
98
+ *
99
+ * Borrows from Modernizr.
100
+ *
101
+ * @param {string} eventNameSuffix Event name, e.g. "click".
102
+ * @param {?boolean} capture Check if the capture phase is supported.
103
+ * @return {boolean} True if the event is supported.
104
+ * @internal
105
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
106
+ */
107
+ function isEventSupported(eventNameSuffix, capture) {
108
+ if (!ExecutionEnvironment.canUseDOM ||
109
+ capture && !('addEventListener' in document)) {
110
+ return false;
111
+ }
112
+
113
+ var eventName = 'on' + eventNameSuffix;
114
+ var isSupported = eventName in document;
115
+
116
+ if (!isSupported) {
117
+ var element = document.createElement('div');
118
+ element.setAttribute(eventName, 'return;');
119
+ isSupported = typeof element[eventName] === 'function';
120
+ }
121
+
122
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
123
+ // This is the only way to test support for the `wheel` event in IE9+.
124
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
125
+ }
126
+
127
+ return isSupported;
128
+ }
129
+
130
+ module.exports = isEventSupported;
131
+
132
+
133
+ /***/ }),
134
+
135
+ /***/ 5022:
136
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
137
+
138
+ /**
139
+ * Copyright (c) 2015, Facebook, Inc.
140
+ * All rights reserved.
141
+ *
142
+ * This source code is licensed under the BSD-style license found in the
143
+ * LICENSE file in the root directory of this source tree. An additional grant
144
+ * of patent rights can be found in the PATENTS file in the same directory.
145
+ *
146
+ * @providesModule normalizeWheel
147
+ * @typechecks
148
+ */
149
+
150
+
151
+
152
+ var UserAgent_DEPRECATED = __webpack_require__(7416);
153
+
154
+ var isEventSupported = __webpack_require__(2586);
155
+
156
+
157
+ // Reasonable defaults
158
+ var PIXEL_STEP = 10;
159
+ var LINE_HEIGHT = 40;
160
+ var PAGE_HEIGHT = 800;
161
+
162
+ /**
163
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
164
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
165
+ * your questions.
166
+ *
167
+ * If you need to react to the mouse wheel in a predictable way, this code is
168
+ * like your bestest friend. * hugs *
169
+ *
170
+ * As of today, there are 4 DOM event types you can listen to:
171
+ *
172
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
173
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
174
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
175
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
176
+ *
177
+ * So what to do? The is the best:
178
+ *
179
+ * normalizeWheel.getEventType();
180
+ *
181
+ * In your event callback, use this code to get sane interpretation of the
182
+ * deltas. This code will return an object with properties:
183
+ *
184
+ * spinX -- normalized spin speed (use for zoom) - x plane
185
+ * spinY -- " - y plane
186
+ * pixelX -- normalized distance (to pixels) - x plane
187
+ * pixelY -- " - y plane
188
+ *
189
+ * Wheel values are provided by the browser assuming you are using the wheel to
190
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
191
+ * significantly on different platforms and browsers, forgetting that you can
192
+ * scroll at different speeds. Some devices (like trackpads) emit more events
193
+ * at smaller increments with fine granularity, and some emit massive jumps with
194
+ * linear speed or acceleration.
195
+ *
196
+ * This code does its best to normalize the deltas for you:
197
+ *
198
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
199
+ * dragged). This is super useful for zoom support where you want to
200
+ * throw away the chunky scroll steps on the PC and make those equal to
201
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
202
+ * resolve a single slow step on a wheel to 1.
203
+ *
204
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
205
+ * get the crazy differences between browsers, but at least it'll be in
206
+ * pixels!
207
+ *
208
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
209
+ * should translate to positive value zooming IN, negative zooming OUT.
210
+ * This matches the newer 'wheel' event.
211
+ *
212
+ * Why are there spinX, spinY (or pixels)?
213
+ *
214
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
215
+ * with a mouse. It results in side-scrolling in the browser by default.
216
+ *
217
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
218
+ *
219
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
220
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
221
+ * you know.
222
+ *
223
+ * Implementation info:
224
+ *
225
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
226
+ * average mouse:
227
+ *
228
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
229
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
230
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
231
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
232
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
233
+ *
234
+ * On the trackpad:
235
+ *
236
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
237
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
238
+ *
239
+ * On other/older browsers.. it's more complicated as there can be multiple and
240
+ * also missing delta values.
241
+ *
242
+ * The 'wheel' event is more standard:
243
+ *
244
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
245
+ *
246
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
247
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
248
+ * backward compatibility with older events. Those other values help us
249
+ * better normalize spin speed. Example of what the browsers provide:
250
+ *
251
+ * | event.wheelDelta | event.detail
252
+ * ------------------+------------------+--------------
253
+ * Safari v5/OS X | -120 | 0
254
+ * Safari v5/Win7 | -120 | 0
255
+ * Chrome v17/OS X | -120 | 0
256
+ * Chrome v17/Win7 | -120 | 0
257
+ * IE9/Win7 | -120 | undefined
258
+ * Firefox v4/OS X | undefined | 1
259
+ * Firefox v4/Win7 | undefined | 3
260
+ *
261
+ */
262
+ function normalizeWheel(/*object*/ event) /*object*/ {
263
+ var sX = 0, sY = 0, // spinX, spinY
264
+ pX = 0, pY = 0; // pixelX, pixelY
265
+
266
+ // Legacy
267
+ if ('detail' in event) { sY = event.detail; }
268
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
269
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
270
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
271
+
272
+ // side scrolling on FF with DOMMouseScroll
273
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
274
+ sX = sY;
275
+ sY = 0;
276
+ }
277
+
278
+ pX = sX * PIXEL_STEP;
279
+ pY = sY * PIXEL_STEP;
280
+
281
+ if ('deltaY' in event) { pY = event.deltaY; }
282
+ if ('deltaX' in event) { pX = event.deltaX; }
283
+
284
+ if ((pX || pY) && event.deltaMode) {
285
+ if (event.deltaMode == 1) { // delta in LINE units
286
+ pX *= LINE_HEIGHT;
287
+ pY *= LINE_HEIGHT;
288
+ } else { // delta in PAGE units
289
+ pX *= PAGE_HEIGHT;
290
+ pY *= PAGE_HEIGHT;
291
+ }
292
+ }
293
+
294
+ // Fall-back if spin cannot be determined
295
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
296
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
297
+
298
+ return { spinX : sX,
299
+ spinY : sY,
300
+ pixelX : pX,
301
+ pixelY : pY };
302
+ }
303
+
304
+
305
+ /**
306
+ * The best combination if you prefer spinX + spinY normalization. It favors
307
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
308
+ * 'wheel' event, making spin speed determination impossible.
309
+ */
310
+ normalizeWheel.getEventType = function() /*string*/ {
311
+ return (UserAgent_DEPRECATED.firefox())
312
+ ? 'DOMMouseScroll'
313
+ : (isEventSupported('wheel'))
314
+ ? 'wheel'
315
+ : 'mousewheel';
316
+ };
317
+
318
+ module.exports = normalizeWheel;
319
+
320
+
321
+ /***/ }),
322
+
323
+ /***/ 7416:
324
+ /***/ ((module) => {
325
+
326
+ /**
327
+ * Copyright 2004-present Facebook. All Rights Reserved.
328
+ *
329
+ * @providesModule UserAgent_DEPRECATED
330
+ */
331
+
332
+ /**
333
+ * Provides entirely client-side User Agent and OS detection. You should prefer
334
+ * the non-deprecated UserAgent module when possible, which exposes our
335
+ * authoritative server-side PHP-based detection to the client.
336
+ *
337
+ * Usage is straightforward:
338
+ *
339
+ * if (UserAgent_DEPRECATED.ie()) {
340
+ * // IE
341
+ * }
342
+ *
343
+ * You can also do version checks:
344
+ *
345
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
346
+ * // IE7 or better
347
+ * }
348
+ *
349
+ * The browser functions will return NaN if the browser does not match, so
350
+ * you can also do version compares the other way:
351
+ *
352
+ * if (UserAgent_DEPRECATED.ie() < 7) {
353
+ * // IE6 or worse
354
+ * }
355
+ *
356
+ * Note that the version is a float and may include a minor version number,
357
+ * so you should always use range operators to perform comparisons, not
358
+ * strict equality.
359
+ *
360
+ * **Note:** You should **strongly** prefer capability detection to browser
361
+ * version detection where it's reasonable:
362
+ *
363
+ * http://www.quirksmode.org/js/support.html
364
+ *
365
+ * Further, we have a large number of mature wrapper functions and classes
366
+ * which abstract away many browser irregularities. Check the documentation,
367
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
368
+ * another copy of "event || window.event".
369
+ *
370
+ */
371
+
372
+ var _populated = false;
373
+
374
+ // Browsers
375
+ var _ie, _firefox, _opera, _webkit, _chrome;
376
+
377
+ // Actual IE browser for compatibility mode
378
+ var _ie_real_version;
379
+
380
+ // Platforms
381
+ var _osx, _windows, _linux, _android;
382
+
383
+ // Architectures
384
+ var _win64;
385
+
386
+ // Devices
387
+ var _iphone, _ipad, _native;
388
+
389
+ var _mobile;
390
+
391
+ function _populate() {
392
+ if (_populated) {
393
+ return;
394
+ }
395
+
396
+ _populated = true;
397
+
398
+ // To work around buggy JS libraries that can't handle multi-digit
399
+ // version numbers, Opera 10's user agent string claims it's Opera
400
+ // 9, then later includes a Version/X.Y field:
401
+ //
402
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
403
+ var uas = navigator.userAgent;
404
+ 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);
405
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
406
+
407
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
408
+ _ipad = /\b(iP[ao]d)/.exec(uas);
409
+ _android = /Android/i.exec(uas);
410
+ _native = /FBAN\/\w+;/i.exec(uas);
411
+ _mobile = /Mobile/i.exec(uas);
412
+
413
+ // Note that the IE team blog would have you believe you should be checking
414
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
415
+ // from either x64 or ia64; so ultimately, you should just check for Win64
416
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
417
+ // Windows will send 'WOW64' instead.
418
+ _win64 = !!(/Win64/.exec(uas));
419
+
420
+ if (agent) {
421
+ _ie = agent[1] ? parseFloat(agent[1]) : (
422
+ agent[5] ? parseFloat(agent[5]) : NaN);
423
+ // IE compatibility mode
424
+ if (_ie && document && document.documentMode) {
425
+ _ie = document.documentMode;
426
+ }
427
+ // grab the "true" ie version from the trident token if available
428
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
429
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
430
+
431
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
432
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
433
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
434
+ if (_webkit) {
435
+ // We do not add the regexp to the above test, because it will always
436
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
437
+ // the userAgent string.
438
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
439
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
440
+ } else {
441
+ _chrome = NaN;
442
+ }
443
+ } else {
444
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
445
+ }
446
+
447
+ if (os) {
448
+ if (os[1]) {
449
+ // Detect OS X version. If no version number matches, set _osx to true.
450
+ // Version examples: 10, 10_6_1, 10.7
451
+ // Parses version number as a float, taking only first two sets of
452
+ // digits. If only one set of digits is found, returns just the major
453
+ // version number.
454
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
455
+
456
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
457
+ } else {
458
+ _osx = false;
459
+ }
460
+ _windows = !!os[2];
461
+ _linux = !!os[3];
462
+ } else {
463
+ _osx = _windows = _linux = false;
464
+ }
465
+ }
466
+
467
+ var UserAgent_DEPRECATED = {
468
+
469
+ /**
470
+ * Check if the UA is Internet Explorer.
471
+ *
472
+ *
473
+ * @return float|NaN Version number (if match) or NaN.
474
+ */
475
+ ie: function() {
476
+ return _populate() || _ie;
477
+ },
478
+
479
+ /**
480
+ * Check if we're in Internet Explorer compatibility mode.
481
+ *
482
+ * @return bool true if in compatibility mode, false if
483
+ * not compatibility mode or not ie
484
+ */
485
+ ieCompatibilityMode: function() {
486
+ return _populate() || (_ie_real_version > _ie);
487
+ },
488
+
489
+
490
+ /**
491
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
492
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
493
+ * this when we don't need it -- tracked by #601957.
494
+ */
495
+ ie64: function() {
496
+ return UserAgent_DEPRECATED.ie() && _win64;
497
+ },
498
+
499
+ /**
500
+ * Check if the UA is Firefox.
501
+ *
502
+ *
503
+ * @return float|NaN Version number (if match) or NaN.
504
+ */
505
+ firefox: function() {
506
+ return _populate() || _firefox;
507
+ },
508
+
509
+
510
+ /**
511
+ * Check if the UA is Opera.
512
+ *
513
+ *
514
+ * @return float|NaN Version number (if match) or NaN.
515
+ */
516
+ opera: function() {
517
+ return _populate() || _opera;
518
+ },
519
+
520
+
521
+ /**
522
+ * Check if the UA is WebKit.
523
+ *
524
+ *
525
+ * @return float|NaN Version number (if match) or NaN.
526
+ */
527
+ webkit: function() {
528
+ return _populate() || _webkit;
529
+ },
530
+
531
+ /**
532
+ * For Push
533
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
534
+ */
535
+ safari: function() {
536
+ return UserAgent_DEPRECATED.webkit();
537
+ },
538
+
539
+ /**
540
+ * Check if the UA is a Chrome browser.
541
+ *
542
+ *
543
+ * @return float|NaN Version number (if match) or NaN.
544
+ */
545
+ chrome : function() {
546
+ return _populate() || _chrome;
547
+ },
548
+
549
+
550
+ /**
551
+ * Check if the user is running Windows.
552
+ *
553
+ * @return bool `true' if the user's OS is Windows.
554
+ */
555
+ windows: function() {
556
+ return _populate() || _windows;
557
+ },
558
+
559
+
560
+ /**
561
+ * Check if the user is running Mac OS X.
562
+ *
563
+ * @return float|bool Returns a float if a version number is detected,
564
+ * otherwise true/false.
565
+ */
566
+ osx: function() {
567
+ return _populate() || _osx;
568
+ },
569
+
570
+ /**
571
+ * Check if the user is running Linux.
572
+ *
573
+ * @return bool `true' if the user's OS is some flavor of Linux.
574
+ */
575
+ linux: function() {
576
+ return _populate() || _linux;
577
+ },
578
+
579
+ /**
580
+ * Check if the user is running on an iPhone or iPod platform.
581
+ *
582
+ * @return bool `true' if the user is running some flavor of the
583
+ * iPhone OS.
584
+ */
585
+ iphone: function() {
586
+ return _populate() || _iphone;
587
+ },
588
+
589
+ mobile: function() {
590
+ return _populate() || (_iphone || _ipad || _android || _mobile);
591
+ },
592
+
593
+ nativeApp: function() {
594
+ // webviews inside of the native apps
595
+ return _populate() || _native;
596
+ },
597
+
598
+ android: function() {
599
+ return _populate() || _android;
600
+ },
601
+
602
+ ipad: function() {
603
+ return _populate() || _ipad;
604
+ }
605
+ };
606
+
607
+ module.exports = UserAgent_DEPRECATED;
608
+
609
+
610
+ /***/ }),
611
+
612
+ /***/ 8283:
613
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
614
+
615
+ module.exports = __webpack_require__(5022);
616
+
617
+
618
+ /***/ })
619
+
620
+ /******/ });
621
+ /************************************************************************/
622
+ /******/ // The module cache
623
+ /******/ var __webpack_module_cache__ = {};
624
+ /******/
625
+ /******/ // The require function
626
+ /******/ function __webpack_require__(moduleId) {
627
+ /******/ // Check if module is in cache
628
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
629
+ /******/ if (cachedModule !== undefined) {
630
+ /******/ return cachedModule.exports;
631
+ /******/ }
632
+ /******/ // Create a new module (and put it into the cache)
633
+ /******/ var module = __webpack_module_cache__[moduleId] = {
634
+ /******/ // no module.id needed
635
+ /******/ // no module.loaded needed
636
+ /******/ exports: {}
637
+ /******/ };
638
+ /******/
639
+ /******/ // Execute the module function
640
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
641
+ /******/
642
+ /******/ // Return the exports of the module
643
+ /******/ return module.exports;
644
+ /******/ }
12
645
  /******/
13
646
  /************************************************************************/
647
+ /******/ /* webpack/runtime/compat get default export */
648
+ /******/ (() => {
649
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
650
+ /******/ __webpack_require__.n = (module) => {
651
+ /******/ var getter = module && module.__esModule ?
652
+ /******/ () => (module['default']) :
653
+ /******/ () => (module);
654
+ /******/ __webpack_require__.d(getter, { a: getter });
655
+ /******/ return getter;
656
+ /******/ };
657
+ /******/ })();
658
+ /******/
14
659
  /******/ /* webpack/runtime/define property getters */
15
660
  /******/ (() => {
16
661
  /******/ // define getter functions for harmony exports
@@ -38,24 +683,274 @@ __webpack_require__.d(__webpack_exports__, {
38
683
  "default": () => (/* binding */ src)
39
684
  });
40
685
 
41
- ;// CONCATENATED MODULE: external "../shared"
42
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
43
- var y = x => () => x
44
- const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
45
- ;// CONCATENATED MODULE: external "vue"
46
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
47
- var external_vue_y = x => () => x
48
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Text"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Text, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["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, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
49
- ;// CONCATENATED MODULE: external "../directives"
50
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
51
- var directives_y = x => () => x
52
- const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
53
- ;// CONCATENATED MODULE: external "../config-provider"
54
- var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
55
- var config_provider_y = x => () => x
56
- const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
57
- ;// CONCATENATED MODULE: ../../packages/popover/src/arrow.tsx
686
+ ;// external "../shared"
687
+ var x = (y) => {
688
+ var x = {}; __webpack_require__.d(x, y); return x
689
+ }
690
+ var y = (x) => (() => (x))
691
+ const shared_namespaceObject = x({ ["PlacementEnum"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum), ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["RenderType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["placementType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType), ["renderDirectiveType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType), ["renderType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["triggerType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType), ["withInstall"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall) });
692
+ ;// external "vue"
693
+ var external_vue_x = (y) => {
694
+ var x = {}; __webpack_require__.d(x, y); return x
695
+ }
696
+ var external_vue_y = (x) => (() => (x))
697
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Fragment), ["Teleport"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Teleport), ["Text"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Text), ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createApp"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createApp), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["isVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.isVNode), ["mergeProps"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.mergeProps), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onBeforeUnmount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount), ["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), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
698
+ ;// ../../packages/directives/src/clickoutside.ts
699
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
700
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
701
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
702
+ /*
703
+ * Tencent is pleased to support the open source community by making
704
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
705
+ *
706
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
707
+ *
708
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
709
+ *
710
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
711
+ *
712
+ * ---------------------------------------------------
713
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
714
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
715
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
716
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
717
+ *
718
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
719
+ * the Software.
720
+ *
721
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
722
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
723
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
724
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
725
+ * IN THE SOFTWARE.
726
+ */
727
+ var isElement = function isElement(e) {
728
+ if (typeof Element === 'undefined') return false;
729
+ return e instanceof Element;
730
+ };
731
+ var nodeList = new Map();
732
+ var startClick;
733
+ document.addEventListener('mousedown', function (e) {
734
+ return startClick = e;
735
+ });
736
+ document.addEventListener('mouseup', function (e) {
737
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
738
+ _step;
739
+ try {
740
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
741
+ var handlers = _step.value;
742
+ var _iterator2 = _createForOfIteratorHelper(handlers),
743
+ _step2;
744
+ try {
745
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
746
+ var documentHandler = _step2.value.documentHandler;
747
+ documentHandler(e, startClick);
748
+ }
749
+ } catch (err) {
750
+ _iterator2.e(err);
751
+ } finally {
752
+ _iterator2.f();
753
+ }
754
+ }
755
+ } catch (err) {
756
+ _iterator.e(err);
757
+ } finally {
758
+ _iterator.f();
759
+ }
760
+ });
761
+ function createDocumentHandler(el, binding) {
762
+ var excludes = [];
763
+ if (Array.isArray(binding.arg)) {
764
+ excludes = binding.arg;
765
+ } else if (isElement(binding.arg)) {
766
+ excludes.push(binding.arg);
767
+ }
768
+ return function (mouseup, mousedown) {
769
+ var popperRef = binding.instance.popperRef;
770
+ var mouseUpTarget = mouseup.target;
771
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
772
+ var isBound = !binding || !binding.instance;
773
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
774
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
775
+ var isSelf = el === mouseUpTarget;
776
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
777
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
778
+ }) || excludes.length && excludes.includes(mouseDownTarget);
779
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
780
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
781
+ return;
782
+ }
783
+ binding.value(mouseup, mousedown);
784
+ };
785
+ }
786
+ var ClickOutside = {
787
+ beforeMount: function beforeMount(el, binding) {
788
+ if (!nodeList.has(el)) {
789
+ nodeList.set(el, []);
790
+ }
791
+ nodeList.get(el).push({
792
+ documentHandler: createDocumentHandler(el, binding),
793
+ bindingFn: binding.value
794
+ });
795
+ },
796
+ updated: function updated(el, binding) {
797
+ if (!nodeList.has(el)) {
798
+ nodeList.set(el, []);
799
+ }
800
+ var handlers = nodeList.get(el);
801
+ var oldHandlerIndex = handlers.findIndex(function (item) {
802
+ return item.bindingFn === binding.oldValue;
803
+ });
804
+ var newHandler = {
805
+ documentHandler: createDocumentHandler(el, binding),
806
+ bindingFn: binding.value
807
+ };
808
+ if (oldHandlerIndex >= 0) {
809
+ // replace the old handler to the new handler
810
+ handlers.splice(oldHandlerIndex, 1, newHandler);
811
+ } else {
812
+ handlers.push(newHandler);
813
+ }
814
+ },
815
+ unmounted: function unmounted(el) {
816
+ // remove all listeners when a component unmounted
817
+ nodeList["delete"](el);
818
+ }
819
+ };
820
+ ClickOutside.install = function (app) {
821
+ app.directive('bkTooltips', ClickOutside);
822
+ };
823
+ /* harmony default export */ const clickoutside = (ClickOutside);
824
+ ;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
825
+ function _typeof(o) {
826
+ "@babel/helpers - typeof";
827
+
828
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
829
+ return typeof o;
830
+ } : function (o) {
831
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
832
+ }, _typeof(o);
833
+ }
834
+ ;// external "../plugin-popover"
835
+ var plugin_popover_x = (y) => {
836
+ var x = {}; __webpack_require__.d(x, y); return x
837
+ }
838
+ var plugin_popover_y = (x) => (() => (x))
839
+ const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
840
+ ;// ../../packages/directives/src/ellipsis.ts
841
+
842
+ /*
843
+ * Tencent is pleased to support the open source community by making
844
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
845
+ *
846
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
847
+ *
848
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
849
+ *
850
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
851
+ *
852
+ * ---------------------------------------------------
853
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
854
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
855
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
856
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
857
+ *
858
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
859
+ * the Software.
860
+ *
861
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
862
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
863
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
864
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
865
+ * IN THE SOFTWARE.
866
+ */
58
867
 
868
+ var resolveOptions = function resolveOptions(el, binding) {
869
+ var options = {
870
+ content: '',
871
+ target: el
872
+ };
873
+ if (_typeof(binding) === 'object') {
874
+ Object.assign(options, binding);
875
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
876
+ Object.assign(options, binding.popoverOption);
877
+ }
878
+ } else {
879
+ options.content = binding;
880
+ }
881
+ return options;
882
+ };
883
+ var createInstance = function createInstance(el, binding) {
884
+ var instance = null;
885
+ var createTimer = null;
886
+ var hidePopTimer = null;
887
+ var options = resolveOptions(el, binding);
888
+ var disabled = options.disabled;
889
+ if (disabled || instance) {
890
+ return;
891
+ }
892
+ var handleContentEnter = function handleContentEnter() {
893
+ hidePopTimer && clearTimeout(hidePopTimer);
894
+ hidePopTimer = null;
895
+ };
896
+ var handleContentLeave = function handleContentLeave() {
897
+ var _instance, _instance2;
898
+ if (createTimer) {
899
+ clearTimeout(createTimer);
900
+ }
901
+ (_instance = instance) === null || _instance === void 0 || _instance.hide();
902
+ (_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
903
+ instance = null;
904
+ };
905
+ var handleMouseEnter = function handleMouseEnter() {
906
+ handleContentLeave();
907
+ createTimer && clearTimeout(createTimer);
908
+ createTimer = setTimeout(function () {
909
+ var targetOptions = resolveOptions(el, binding);
910
+ targetOptions.isShow = true;
911
+ targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
912
+ targetOptions.allowHtml = true;
913
+ Object.assign(targetOptions, {
914
+ onContentMouseenter: handleContentEnter,
915
+ onContentMouseleave: handleContentLeave
916
+ });
917
+ instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
918
+ }, 300);
919
+ };
920
+ var handleMouseLeave = function handleMouseLeave() {
921
+ hidePopTimer = setTimeout(function () {
922
+ var _instance3, _instance4;
923
+ if (createTimer) {
924
+ clearTimeout(createTimer);
925
+ }
926
+ (_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
927
+ (_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
928
+ instance = null;
929
+ }, 120);
930
+ };
931
+ el.addEventListener('mouseenter', handleMouseEnter);
932
+ el.addEventListener('mouseleave', handleMouseLeave);
933
+ var destroyInstance = function destroyInstance(element) {
934
+ var _ref, _ref2;
935
+ handleMouseLeave();
936
+ (_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
937
+ (_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
938
+ };
939
+ return {
940
+ destroyInstance: destroyInstance,
941
+ instance: instance
942
+ };
943
+ };
944
+ var ellipsis = {
945
+ mounted: function mounted(el, binding) {
946
+ createInstance(el, binding);
947
+ }
948
+ };
949
+ /* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
950
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
951
+ var normalize_wheel = __webpack_require__(8283);
952
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
953
+ ;// ../../packages/directives/src/mousewheel.ts
59
954
  /*
60
955
  * Tencent is pleased to support the open source community by making
61
956
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -82,29 +977,22 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
82
977
  * IN THE SOFTWARE.
83
978
  */
84
979
 
85
-
86
- /* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
87
- name: 'PopArrow',
88
- render: function render() {
89
- var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
90
- resolveClassName = _usePrefix.resolveClassName;
91
- var arrowClassName = resolveClassName('pop2-arrow');
92
- return (0,external_vue_namespaceObject.createVNode)("div", {
93
- "class": arrowClassName
94
- }, null);
980
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
981
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
982
+ if (element !== null && element !== void 0 && element.addEventListener) {
983
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
984
+ var normalized = normalize_wheel_default()(e);
985
+ callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
986
+ });
95
987
  }
96
- }));
97
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
98
- function _typeof(o) {
99
- "@babel/helpers - typeof";
100
-
101
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
102
- return typeof o;
103
- } : function (o) {
104
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
105
- }, _typeof(o);
106
- }
107
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
988
+ };
989
+ var mousewheel = {
990
+ beforeMount: function beforeMount(el, binding) {
991
+ mousewheelHandler(el, binding.value);
992
+ }
993
+ };
994
+ /* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
995
+ ;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
108
996
 
109
997
  function toPrimitive(t, r) {
110
998
  if ("object" != _typeof(t) || !t) return t;
@@ -116,14 +1004,14 @@ function toPrimitive(t, r) {
116
1004
  }
117
1005
  return ("string" === r ? String : Number)(t);
118
1006
  }
119
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
1007
+ ;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
120
1008
 
121
1009
 
122
1010
  function toPropertyKey(t) {
123
1011
  var i = toPrimitive(t, "string");
124
1012
  return "symbol" == _typeof(i) ? i : String(i);
125
1013
  }
126
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
1014
+ ;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
127
1015
 
128
1016
  function _defineProperty(obj, key, value) {
129
1017
  key = toPropertyKey(key);
@@ -139,7 +1027,433 @@ function _defineProperty(obj, key, value) {
139
1027
  }
140
1028
  return obj;
141
1029
  }
142
- ;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
1030
+ ;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1031
+ function arrayLikeToArray_arrayLikeToArray(arr, len) {
1032
+ if (len == null || len > arr.length) len = arr.length;
1033
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1034
+ return arr2;
1035
+ }
1036
+ ;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1037
+
1038
+ function _arrayWithoutHoles(arr) {
1039
+ if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
1040
+ }
1041
+ ;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1042
+ function _iterableToArray(iter) {
1043
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1044
+ }
1045
+ ;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1046
+
1047
+ function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
1048
+ if (!o) return;
1049
+ if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
1050
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1051
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1052
+ if (n === "Map" || n === "Set") return Array.from(o);
1053
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
1054
+ }
1055
+ ;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1056
+ function _nonIterableSpread() {
1057
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1058
+ }
1059
+ ;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1060
+
1061
+
1062
+
1063
+
1064
+ function _toConsumableArray(arr) {
1065
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
1066
+ }
1067
+ ;// external "@popperjs/core"
1068
+ var core_x = (y) => {
1069
+ var x = {}; __webpack_require__.d(x, y); return x
1070
+ }
1071
+ var core_y = (x) => (() => (x))
1072
+ const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
1073
+ ;// ../../packages/directives/src/tooltips.ts
1074
+
1075
+
1076
+
1077
+ 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; }
1078
+ 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; }
1079
+ /*
1080
+ * Tencent is pleased to support the open source community by making
1081
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1082
+ *
1083
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1084
+ *
1085
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1086
+ *
1087
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1088
+ *
1089
+ * ---------------------------------------------------
1090
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1091
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1092
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1093
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1094
+ *
1095
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1096
+ * the Software.
1097
+ *
1098
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1099
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1100
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1101
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1102
+ * IN THE SOFTWARE.
1103
+ */
1104
+
1105
+
1106
+
1107
+ var tooltips_nodeList = new WeakMap();
1108
+ var tooltips = {
1109
+ beforeMount: function beforeMount(el, binding) {
1110
+ var opts = getOpts(binding);
1111
+ var trigger = opts.trigger,
1112
+ showOnInit = opts.showOnInit;
1113
+ var popper = renderContent(opts);
1114
+ var delayTimeout = null;
1115
+ if (showOnInit) {
1116
+ (0,external_vue_namespaceObject.nextTick)(function () {
1117
+ show(el);
1118
+ });
1119
+ }
1120
+ if (trigger === 'hover') {
1121
+ var hideTimeout = null;
1122
+ el.addEventListener('mouseenter', function () {
1123
+ delayTimeout = setTimeout(function () {
1124
+ show(el);
1125
+ clearTimeout(hideTimeout);
1126
+ clearTimeout(delayTimeout);
1127
+ }, opts.delay);
1128
+ });
1129
+ popper.addEventListener('mouseenter', function () {
1130
+ clearTimeout(hideTimeout);
1131
+ });
1132
+ el.addEventListener('mouseleave', function () {
1133
+ clearTimeout(delayTimeout);
1134
+ hideTimeout = setTimeout(function () {
1135
+ hide(el);
1136
+ }, 100);
1137
+ });
1138
+ el.addEventListener('click', function () {
1139
+ hide(el);
1140
+ });
1141
+ popper.addEventListener('mouseleave', function () {
1142
+ clearTimeout(delayTimeout);
1143
+ hideTimeout = setTimeout(function () {
1144
+ hide(el);
1145
+ }, 100);
1146
+ });
1147
+ } else if (trigger === 'click') {
1148
+ document.body.addEventListener('click', function (event) {
1149
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
1150
+ delayTimeout = setTimeout(function () {
1151
+ show(el);
1152
+ clearTimeout(delayTimeout);
1153
+ }, opts.delay);
1154
+ } else if (popper.hasAttribute('data-show')) {
1155
+ hide(el);
1156
+ }
1157
+ });
1158
+ }
1159
+ tooltips_nodeList.set(el, {
1160
+ opts: opts,
1161
+ popper: popper,
1162
+ popperInstance: null
1163
+ });
1164
+ },
1165
+ updated: function updated(el, binding) {
1166
+ if (tooltips_nodeList.get(el)) {
1167
+ tooltips_nodeList.get(el).opts = getOpts(binding);
1168
+ }
1169
+ },
1170
+ unmounted: function unmounted(el) {
1171
+ hide(el);
1172
+ tooltips_nodeList["delete"](el);
1173
+ }
1174
+ };
1175
+ /**
1176
+ * 初始化配置
1177
+ * @returns tooltips配置
1178
+ */
1179
+ function initOptions() {
1180
+ var defaultOpts = {
1181
+ arrow: true,
1182
+ disabled: false,
1183
+ trigger: 'hover',
1184
+ theme: 'dark',
1185
+ content: '',
1186
+ showOnInit: false,
1187
+ placement: 'top',
1188
+ distance: 8,
1189
+ extCls: '',
1190
+ sameWidth: false,
1191
+ delay: 0,
1192
+ onShow: function onShow() {},
1193
+ onHide: function onHide() {}
1194
+ };
1195
+ return defaultOpts;
1196
+ }
1197
+ /**
1198
+ * 获取配置
1199
+ * @returns tooltips配置
1200
+ */
1201
+ function getOpts(binding) {
1202
+ var opts = initOptions();
1203
+ if (_typeof(binding.value) === 'object') {
1204
+ Object.assign(opts, binding.value);
1205
+ } else {
1206
+ opts.content = binding.value;
1207
+ }
1208
+ return opts;
1209
+ }
1210
+ /**
1211
+ * 创建tooltips DOM
1212
+ * @param opts
1213
+ * @returns
1214
+ */
1215
+ function renderContext(value, content) {
1216
+ if (typeof value === 'string') {
1217
+ content.innerText = value;
1218
+ } else {
1219
+ // 如果 content 是 Vue 组件的实例,则挂载它
1220
+ var container = document.createElement('div');
1221
+ var vnode = (0,external_vue_namespaceObject.h)(value);
1222
+ (0,external_vue_namespaceObject.render)(vnode, container);
1223
+ content.innerHTML = container.innerHTML;
1224
+ }
1225
+ }
1226
+ function renderContent(opts) {
1227
+ var value = opts.content,
1228
+ hasArrow = opts.arrow,
1229
+ theme = opts.theme,
1230
+ extCls = opts.extCls;
1231
+ var isLight = theme === 'light';
1232
+ var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
1233
+ var content = document.createElement('div');
1234
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1235
+ content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
1236
+ content.innerText = value;
1237
+ content.style.zIndex = String(zIndex);
1238
+ renderContext(value, content);
1239
+ if (hasArrow) {
1240
+ var arrow = renderArrow();
1241
+ content.appendChild(arrow);
1242
+ }
1243
+ return content;
1244
+ }
1245
+ /**
1246
+ * 渲染箭头dom
1247
+ * @returns arrow DOM
1248
+ */
1249
+ function renderArrow() {
1250
+ var arrow = document.createElement('div');
1251
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
1252
+ arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
1253
+ arrow.setAttribute('data-popper-arrow', '');
1254
+ return arrow;
1255
+ }
1256
+ /**
1257
+ * 创建popper实例
1258
+ * @param el
1259
+ * @param popper
1260
+ * @returns popper实例
1261
+ */
1262
+ function createPopperInstance(el, popper) {
1263
+ var _nodeList$get = tooltips_nodeList.get(el),
1264
+ opts = _nodeList$get.opts;
1265
+ var placement = opts.placement,
1266
+ distance = opts.distance,
1267
+ sameWidth = opts.sameWidth;
1268
+ var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
1269
+ placement: placement,
1270
+ modifiers: [{
1271
+ name: 'offset',
1272
+ options: {
1273
+ offset: [0, distance]
1274
+ }
1275
+ }, {
1276
+ name: 'arrow',
1277
+ options: {
1278
+ padding: 5
1279
+ }
1280
+ }].concat(_toConsumableArray(sameWidth ? [{
1281
+ name: 'sameWidth',
1282
+ enabled: true,
1283
+ phase: 'beforeWrite',
1284
+ requires: ['computeStyles'],
1285
+ fn: function fn(_ref) {
1286
+ var state = _ref.state;
1287
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
1288
+ },
1289
+ effect: function effect(_ref2) {
1290
+ var state = _ref2.state;
1291
+ state.elements.popper.style.overflowWrap = 'break-word';
1292
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
1293
+ }
1294
+ }] : []))
1295
+ });
1296
+ return popperInstance;
1297
+ }
1298
+ /**
1299
+ * 显示
1300
+ * @param el
1301
+ */
1302
+ function show(el) {
1303
+ var _nodeList$get2 = tooltips_nodeList.get(el),
1304
+ popper = _nodeList$get2.popper,
1305
+ opts = _nodeList$get2.opts;
1306
+ var disabled = opts.disabled,
1307
+ content = opts.content,
1308
+ hasArrow = opts.arrow,
1309
+ onShow = opts.onShow,
1310
+ boundary = opts.boundary,
1311
+ _opts$modifiers = opts.modifiers,
1312
+ modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
1313
+ if (disabled) return;
1314
+ renderContext(content, popper);
1315
+ if (hasArrow) {
1316
+ var arrow = renderArrow();
1317
+ popper.appendChild(arrow);
1318
+ }
1319
+ var container = document.body;
1320
+ if (boundary) {
1321
+ if (boundary === 'parent') {
1322
+ container = el.parentElement;
1323
+ } else if (boundary instanceof HTMLElement) {
1324
+ container = boundary;
1325
+ }
1326
+ }
1327
+ container.appendChild(popper);
1328
+ var popperInstance = createPopperInstance(el, popper);
1329
+ onShow();
1330
+ // Make the tooltip visible
1331
+ popper.setAttribute('data-show', '');
1332
+ // Enable the event listeners
1333
+ popperInstance.setOptions(function (options) {
1334
+ return _objectSpread(_objectSpread({}, options), {}, {
1335
+ modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
1336
+ name: 'eventListeners',
1337
+ enabled: true
1338
+ }])
1339
+ });
1340
+ });
1341
+ // Update its position
1342
+ popperInstance.forceUpdate();
1343
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
1344
+ }
1345
+ /**
1346
+ * 隐藏
1347
+ * @param el
1348
+ */
1349
+ function hide(el) {
1350
+ if (!tooltips_nodeList.get(el)) return;
1351
+ var _nodeList$get3 = tooltips_nodeList.get(el),
1352
+ popper = _nodeList$get3.popper,
1353
+ popperInstance = _nodeList$get3.popperInstance,
1354
+ opts = _nodeList$get3.opts;
1355
+ var onHide = opts.onHide;
1356
+ if (popper && document.body.contains(popper)) {
1357
+ var _popper$parentNode;
1358
+ popper.removeAttribute('data-show');
1359
+ popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
1360
+ popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
1361
+ onHide();
1362
+ }
1363
+ }
1364
+ /* harmony default export */ const src_tooltips = ((/* unused pure expression or super */ null && (tooltips)));
1365
+ ;// external "../loading"
1366
+ var external_loading_x = (y) => {
1367
+ var x = {}; __webpack_require__.d(x, y); return x
1368
+ }
1369
+ var external_loading_y = (x) => (() => (x))
1370
+ const external_loading_namespaceObject = external_loading_x({ });
1371
+ ;// external "../overflow-title"
1372
+ var external_overflow_title_x = (y) => {
1373
+ var x = {}; __webpack_require__.d(x, y); return x
1374
+ }
1375
+ var external_overflow_title_y = (x) => (() => (x))
1376
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
1377
+ ;// ../../packages/directives/src/index.ts
1378
+ /*
1379
+ * Tencent is pleased to support the open source community by making
1380
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1381
+ *
1382
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1383
+ *
1384
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1385
+ *
1386
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1387
+ *
1388
+ * ---------------------------------------------------
1389
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1390
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1391
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1392
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1393
+ *
1394
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1395
+ * the Software.
1396
+ *
1397
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1398
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1399
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1400
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1401
+ * IN THE SOFTWARE.
1402
+ */
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
1410
+ ;// external "../config-provider"
1411
+ var config_provider_x = (y) => {
1412
+ var x = {}; __webpack_require__.d(x, y); return x
1413
+ }
1414
+ var config_provider_y = (x) => (() => (x))
1415
+ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
1416
+ ;// ../../packages/popover/src/arrow.tsx
1417
+
1418
+ /*
1419
+ * Tencent is pleased to support the open source community by making
1420
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1421
+ *
1422
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1423
+ *
1424
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1425
+ *
1426
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1427
+ *
1428
+ * ---------------------------------------------------
1429
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1430
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1431
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1432
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1433
+ *
1434
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1435
+ * the Software.
1436
+ *
1437
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1438
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1439
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1440
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1441
+ * IN THE SOFTWARE.
1442
+ */
1443
+
1444
+
1445
+ /* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
1446
+ name: 'PopArrow',
1447
+ render: function render() {
1448
+ var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
1449
+ resolveClassName = _usePrefix.resolveClassName;
1450
+ var arrowClassName = resolveClassName('pop2-arrow');
1451
+ return (0,external_vue_namespaceObject.createVNode)("div", {
1452
+ "class": arrowClassName
1453
+ }, null);
1454
+ }
1455
+ }));
1456
+ ;// ../../packages/popover/src/const.tsx
143
1457
 
144
1458
  /* eslint-disable @typescript-eslint/naming-convention */
145
1459
  /*
@@ -185,7 +1499,7 @@ var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
185
1499
  return true;
186
1500
  };
187
1501
  var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN);
188
- ;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
1502
+ ;// ../../packages/popover/src/content.tsx
189
1503
 
190
1504
  /*
191
1505
  * Tencent is pleased to support the open source community by making
@@ -309,11 +1623,13 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
309
1623
  }, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
310
1624
  }
311
1625
  }));
312
- ;// CONCATENATED MODULE: external "vue-types"
313
- var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
314
- var external_vue_types_y = x => () => x
315
- const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
316
- ;// CONCATENATED MODULE: ../../packages/popover/src/props.ts
1626
+ ;// external "vue-types"
1627
+ var external_vue_types_x = (y) => {
1628
+ var x = {}; __webpack_require__.d(x, y); return x
1629
+ }
1630
+ var external_vue_types_y = (x) => (() => (x))
1631
+ const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
1632
+ ;// ../../packages/popover/src/props.ts
317
1633
 
318
1634
 
319
1635
  var EventProps = {
@@ -416,7 +1732,7 @@ var PopoverProps = {
416
1732
  */
417
1733
  forceClickoutside: shared_namespaceObject.PropTypes.bool.def(false)
418
1734
  };
419
- ;// CONCATENATED MODULE: ../../packages/popover/src/reference.tsx
1735
+ ;// ../../packages/popover/src/reference.tsx
420
1736
  /*
421
1737
  * Tencent is pleased to support the open source community by making
422
1738
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -450,7 +1766,7 @@ var PopoverProps = {
450
1766
  return (_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '';
451
1767
  }
452
1768
  }));
453
- ;// CONCATENATED MODULE: ../../packages/popover/src/root.tsx
1769
+ ;// ../../packages/popover/src/root.tsx
454
1770
 
455
1771
  /*
456
1772
  * Tencent is pleased to support the open source community by making
@@ -489,11 +1805,11 @@ var PopoverProps = {
489
1805
  return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]);
490
1806
  }
491
1807
  }));
492
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
1808
+ ;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
493
1809
  function _arrayWithHoles(arr) {
494
1810
  if (Array.isArray(arr)) return arr;
495
1811
  }
496
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
1812
+ ;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
497
1813
  function _iterableToArrayLimit(r, l) {
498
1814
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
499
1815
  if (null != t) {
@@ -521,35 +1837,19 @@ function _iterableToArrayLimit(r, l) {
521
1837
  return a;
522
1838
  }
523
1839
  }
524
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
525
- function _arrayLikeToArray(arr, len) {
526
- if (len == null || len > arr.length) len = arr.length;
527
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
528
- return arr2;
529
- }
530
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
531
-
532
- function _unsupportedIterableToArray(o, minLen) {
533
- if (!o) return;
534
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
535
- var n = Object.prototype.toString.call(o).slice(8, -1);
536
- if (n === "Object" && o.constructor) n = o.constructor.name;
537
- if (n === "Map" || n === "Set") return Array.from(o);
538
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
539
- }
540
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
1840
+ ;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
541
1841
  function _nonIterableRest() {
542
1842
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
543
1843
  }
544
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
1844
+ ;// ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
545
1845
 
546
1846
 
547
1847
 
548
1848
 
549
1849
  function _slicedToArray(arr, i) {
550
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1850
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
551
1851
  }
552
- ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
1852
+ ;// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
553
1853
  /**
554
1854
  * Custom positioning reference element.
555
1855
  * @see https://floating-ui.com/docs/virtual-elements
@@ -680,7 +1980,7 @@ function rectToClientRect(rect) {
680
1980
 
681
1981
 
682
1982
 
683
- ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
1983
+ ;// ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
684
1984
 
685
1985
 
686
1986
 
@@ -1211,7 +2511,7 @@ function isAnySideFullyClipped(overflow) {
1211
2511
  * when it is not in the same clipping context as the reference element.
1212
2512
  * @see https://floating-ui.com/docs/hide
1213
2513
  */
1214
- const hide = function (options) {
2514
+ const floating_ui_core_hide = function (options) {
1215
2515
  if (options === void 0) {
1216
2516
  options = {};
1217
2517
  }
@@ -1704,7 +3004,7 @@ const size = function (options) {
1704
3004
 
1705
3005
 
1706
3006
 
1707
- ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
3007
+ ;// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
1708
3008
  function getNodeName(node) {
1709
3009
  if (isNode(node)) {
1710
3010
  return (node.nodeName || '').toLowerCase();
@@ -1725,7 +3025,7 @@ function getDocumentElement(node) {
1725
3025
  function isNode(value) {
1726
3026
  return value instanceof Node || value instanceof getWindow(value).Node;
1727
3027
  }
1728
- function isElement(value) {
3028
+ function floating_ui_utils_dom_isElement(value) {
1729
3029
  return value instanceof Element || value instanceof getWindow(value).Element;
1730
3030
  }
1731
3031
  function isHTMLElement(value) {
@@ -1779,7 +3079,7 @@ function getComputedStyle(element) {
1779
3079
  return getWindow(element).getComputedStyle(element);
1780
3080
  }
1781
3081
  function getNodeScroll(element) {
1782
- if (isElement(element)) {
3082
+ if (floating_ui_utils_dom_isElement(element)) {
1783
3083
  return {
1784
3084
  scrollLeft: element.scrollLeft,
1785
3085
  scrollTop: element.scrollTop
@@ -1834,7 +3134,7 @@ function getOverflowAncestors(node, list, traverseIframes) {
1834
3134
 
1835
3135
 
1836
3136
 
1837
- ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
3137
+ ;// ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
1838
3138
 
1839
3139
 
1840
3140
 
@@ -1863,7 +3163,7 @@ function getCssDimensions(element) {
1863
3163
  }
1864
3164
 
1865
3165
  function unwrapElement(element) {
1866
- return !isElement(element) ? element.contextElement : element;
3166
+ return !floating_ui_utils_dom_isElement(element) ? element.contextElement : element;
1867
3167
  }
1868
3168
 
1869
3169
  function getScale(element) {
@@ -1927,7 +3227,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
1927
3227
  let scale = createCoords(1);
1928
3228
  if (includeScale) {
1929
3229
  if (offsetParent) {
1930
- if (isElement(offsetParent)) {
3230
+ if (floating_ui_utils_dom_isElement(offsetParent)) {
1931
3231
  scale = getScale(offsetParent);
1932
3232
  }
1933
3233
  } else {
@@ -1941,7 +3241,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
1941
3241
  let height = clientRect.height / scale.y;
1942
3242
  if (domElement) {
1943
3243
  const win = getWindow(domElement);
1944
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
3244
+ const offsetWin = offsetParent && floating_ui_utils_dom_isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1945
3245
  let currentIFrame = win.frameElement;
1946
3246
  while (currentIFrame && offsetParent && offsetWin !== win) {
1947
3247
  const iframeScale = getScale(currentIFrame);
@@ -2081,7 +3381,7 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
2081
3381
  rect = getViewportRect(element, strategy);
2082
3382
  } else if (clippingAncestor === 'document') {
2083
3383
  rect = getDocumentRect(getDocumentElement(element));
2084
- } else if (isElement(clippingAncestor)) {
3384
+ } else if (floating_ui_utils_dom_isElement(clippingAncestor)) {
2085
3385
  rect = getInnerBoundingClientRect(clippingAncestor, strategy);
2086
3386
  } else {
2087
3387
  const visualOffsets = getVisualOffsets(element);
@@ -2095,7 +3395,7 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
2095
3395
  }
2096
3396
  function hasFixedPositionAncestor(element, stopNode) {
2097
3397
  const parentNode = getParentNode(element);
2098
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
3398
+ if (parentNode === stopNode || !floating_ui_utils_dom_isElement(parentNode) || isLastTraversableNode(parentNode)) {
2099
3399
  return false;
2100
3400
  }
2101
3401
  return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
@@ -2109,13 +3409,13 @@ function getClippingElementAncestors(element, cache) {
2109
3409
  if (cachedResult) {
2110
3410
  return cachedResult;
2111
3411
  }
2112
- let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
3412
+ let result = getOverflowAncestors(element, [], false).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
2113
3413
  let currentContainingBlockComputedStyle = null;
2114
3414
  const elementIsFixed = getComputedStyle(element).position === 'fixed';
2115
3415
  let currentNode = elementIsFixed ? getParentNode(element) : element;
2116
3416
 
2117
3417
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
2118
- while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
3418
+ while (floating_ui_utils_dom_isElement(currentNode) && !isLastTraversableNode(currentNode)) {
2119
3419
  const computedStyle = getComputedStyle(currentNode);
2120
3420
  const currentNodeIsContaining = isContainingBlock(currentNode);
2121
3421
  if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
@@ -2262,7 +3562,7 @@ const platform = {
2262
3562
  getClientRects,
2263
3563
  getDimensions,
2264
3564
  getScale,
2265
- isElement: isElement,
3565
+ isElement: floating_ui_utils_dom_isElement,
2266
3566
  isRTL
2267
3567
  };
2268
3568
 
@@ -2453,7 +3753,7 @@ const floating_ui_dom_size = (/* unused pure expression or super */ null && (siz
2453
3753
  * when it is not in the same clipping context as the reference element.
2454
3754
  * @see https://floating-ui.com/docs/hide
2455
3755
  */
2456
- const floating_ui_dom_hide = hide;
3756
+ const floating_ui_dom_hide = floating_ui_core_hide;
2457
3757
 
2458
3758
  /**
2459
3759
  * Provides data to position an inner element of the floating element so that it
@@ -2499,20 +3799,24 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
2499
3799
 
2500
3800
 
2501
3801
 
2502
- ;// CONCATENATED MODULE: external "lodash/isElement"
2503
- var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2504
- var isElement_y = x => () => x
2505
- const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
2506
- ;// CONCATENATED MODULE: external "lodash/random"
2507
- var random_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
2508
- var random_y = x => () => x
2509
- const random_namespaceObject = random_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__["default"] });
2510
- ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
3802
+ ;// external "lodash/isElement"
3803
+ var isElement_x = (y) => {
3804
+ var x = {}; __webpack_require__.d(x, y); return x
3805
+ }
3806
+ var isElement_y = (x) => (() => (x))
3807
+ const isElement_namespaceObject = isElement_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"]) });
3808
+ ;// external "lodash/random"
3809
+ var random_x = (y) => {
3810
+ var x = {}; __webpack_require__.d(x, y); return x
3811
+ }
3812
+ var random_y = (x) => (() => (x))
3813
+ const random_namespaceObject = random_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__["default"]) });
3814
+ ;// ../../node_modules/uuid/dist/esm-browser/native.js
2511
3815
  const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
2512
3816
  /* harmony default export */ const esm_browser_native = ({
2513
3817
  randomUUID
2514
3818
  });
2515
- ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/rng.js
3819
+ ;// ../../node_modules/uuid/dist/esm-browser/rng.js
2516
3820
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
2517
3821
  // require the crypto API and do not support built-in fallback to lower quality random number
2518
3822
  // generators (like Math.random()).
@@ -2531,7 +3835,7 @@ function rng() {
2531
3835
 
2532
3836
  return getRandomValues(rnds8);
2533
3837
  }
2534
- ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/stringify.js
3838
+ ;// ../../node_modules/uuid/dist/esm-browser/stringify.js
2535
3839
 
2536
3840
  /**
2537
3841
  * Convert array of 16 byte values to UUID string format of the form:
@@ -2565,7 +3869,7 @@ function stringify(arr, offset = 0) {
2565
3869
  }
2566
3870
 
2567
3871
  /* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
2568
- ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/v4.js
3872
+ ;// ../../node_modules/uuid/dist/esm-browser/v4.js
2569
3873
 
2570
3874
 
2571
3875
 
@@ -2595,7 +3899,7 @@ function v4(options, buf, offset) {
2595
3899
  }
2596
3900
 
2597
3901
  /* harmony default export */ const esm_browser_v4 = (v4);
2598
- ;// CONCATENATED MODULE: ../../packages/popover/src/utils.ts
3902
+ ;// ../../packages/popover/src/utils.ts
2599
3903
  /*
2600
3904
  * Tencent is pleased to support the open source community by making
2601
3905
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2665,11 +3969,11 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
2665
3969
  var random = function random() {
2666
3970
  return "".concat((0,random_namespaceObject["default"])(0, 999999), "_").concat(Date.now(), "_").concat((0,random_namespaceObject["default"])(0, 999999));
2667
3971
  };
2668
- ;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
3972
+ ;// ../../packages/popover/src/use-floating.tsx
2669
3973
 
2670
3974
 
2671
- 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; }
2672
- 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; }
3975
+ function use_floating_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; }
3976
+ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? use_floating_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : use_floating_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2673
3977
  /*
2674
3978
  * Tencent is pleased to support the open source community by making
2675
3979
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2887,7 +4191,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2887
4191
  // class custom-theme
2888
4192
  var customThemeCls = compTheme.value.customThemes.join(' ');
2889
4193
  var customTheme = compTheme.value.customThemes.reduce(function (out, cur) {
2890
- return _objectSpread(_defineProperty({}, "data-".concat(cur, "-theme"), true), out);
4194
+ return use_floating_objectSpread(_defineProperty({}, "data-".concat(cur, "-theme"), true), out);
2891
4195
  }, {});
2892
4196
  var contentClass = "".concat(customThemeCls);
2893
4197
  var cleanup = null;
@@ -3129,7 +4433,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
3129
4433
  cleanup: cleanup
3130
4434
  };
3131
4435
  });
3132
- ;// CONCATENATED MODULE: ../../packages/popover/src/use-popper-id.ts
4436
+ ;// ../../packages/popover/src/use-popper-id.ts
3133
4437
  /*
3134
4438
  * Tencent is pleased to support the open source community by making
3135
4439
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -3219,7 +4523,7 @@ var parentNodeReferId = null;
3219
4523
  getPrefixId: getPrefixId
3220
4524
  };
3221
4525
  });
3222
- ;// CONCATENATED MODULE: ../../packages/popover/src/use-popover-init.ts
4526
+ ;// ../../packages/popover/src/use-popover-init.ts
3223
4527
 
3224
4528
  /*
3225
4529
  * Tencent is pleased to support the open source community by making
@@ -3479,7 +4783,7 @@ var parentNodeReferId = null;
3479
4783
  uniqKey: uniqKey
3480
4784
  };
3481
4785
  });
3482
- ;// CONCATENATED MODULE: ../../packages/popover/src/popover.tsx
4786
+ ;// ../../packages/popover/src/popover.tsx
3483
4787
 
3484
4788
  /*
3485
4789
  * Tencent is pleased to support the open source community by making
@@ -3528,7 +4832,7 @@ function _isSlot(s) {
3528
4832
  Root: root
3529
4833
  },
3530
4834
  directives: {
3531
- clickoutside: directives_namespaceObject.clickoutside
4835
+ clickoutside: clickoutside
3532
4836
  },
3533
4837
  props: PopoverProps,
3534
4838
  emits: EMIT_EVENT_TYPES,
@@ -3721,7 +5025,7 @@ function _isSlot(s) {
3721
5025
  });
3722
5026
  }
3723
5027
  }));
3724
- ;// CONCATENATED MODULE: ../../packages/popover/src/plugin-popover.tsx
5028
+ ;// ../../packages/popover/src/plugin-popover.tsx
3725
5029
 
3726
5030
 
3727
5031
  function plugin_popover_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; }
@@ -3907,7 +5211,7 @@ function createPopoverComponent(options) {
3907
5211
  }
3908
5212
  };
3909
5213
  }
3910
- ;// CONCATENATED MODULE: ../../packages/popover/src/index.ts
5214
+ ;// ../../packages/popover/src/index.ts
3911
5215
  /**
3912
5216
  * Tencent is pleased to support the open source community by making
3913
5217
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.