bkui-vue 0.0.1-beta.392 → 0.0.1-beta.394

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 (155) hide show
  1. package/dist/index.cjs.js +40 -40
  2. package/dist/index.esm.js +1129 -1100
  3. package/dist/index.umd.js +39 -39
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +1 -353
  7. package/lib/alert/index.js +1 -251
  8. package/lib/animate-number/index.js +1 -226
  9. package/lib/backtop/index.js +1 -260
  10. package/lib/badge/index.js +1 -274
  11. package/lib/breadcrumb/index.js +1 -329
  12. package/lib/button/index.js +1 -371
  13. package/lib/card/index.js +1 -326
  14. package/lib/cascader/index.js +1 -2168
  15. package/lib/checkbox/index.js +1 -571
  16. package/lib/code-diff/index.js +1 -5520
  17. package/lib/collapse/index.js +1 -698
  18. package/lib/color-picker/index.js +1 -2816
  19. package/lib/components.js +1 -759
  20. package/lib/container/index.js +1 -369
  21. package/lib/date-picker/index.js +1 -5601
  22. package/lib/dialog/index.js +1 -545
  23. package/lib/directives/index.js +2 -1427
  24. package/lib/directives/index.js.LICENSE.txt +14 -0
  25. package/lib/dist.index.js +1 -166
  26. package/lib/divider/index.js +1 -512
  27. package/lib/dropdown/index.js +1 -414
  28. package/lib/exception/index.js +1 -405
  29. package/lib/fixed-navbar/index.js +1 -214
  30. package/lib/form/index.js +1 -986
  31. package/lib/icon/angle-double-down-line.js +1 -426
  32. package/lib/icon/angle-double-left-line.js +1 -426
  33. package/lib/icon/angle-double-left.js +1 -426
  34. package/lib/icon/angle-double-right-line.js +1 -426
  35. package/lib/icon/angle-double-right.js +1 -426
  36. package/lib/icon/angle-double-up-line.js +1 -426
  37. package/lib/icon/angle-down-fill.js +1 -426
  38. package/lib/icon/angle-down-line.js +1 -426
  39. package/lib/icon/angle-down.js +1 -426
  40. package/lib/icon/angle-left.js +1 -426
  41. package/lib/icon/angle-right.js +1 -426
  42. package/lib/icon/angle-up-fill.js +1 -426
  43. package/lib/icon/angle-up.js +1 -426
  44. package/lib/icon/archive-fill.js +1 -426
  45. package/lib/icon/arrows-left.js +1 -426
  46. package/lib/icon/arrows-right.js +1 -426
  47. package/lib/icon/audio-fill.js +1 -426
  48. package/lib/icon/bk.js +1 -426
  49. package/lib/icon/circle.js +1 -426
  50. package/lib/icon/close-line.js +1 -426
  51. package/lib/icon/close.js +1 -426
  52. package/lib/icon/code.js +1 -426
  53. package/lib/icon/cog-shape.js +1 -426
  54. package/lib/icon/collapse-left.js +1 -426
  55. package/lib/icon/copy.js +1 -426
  56. package/lib/icon/data-shape.js +1 -426
  57. package/lib/icon/del.js +1 -426
  58. package/lib/icon/doc-fill.js +1 -426
  59. package/lib/icon/done.js +1 -426
  60. package/lib/icon/down-shape.js +1 -426
  61. package/lib/icon/down-small.js +1 -426
  62. package/lib/icon/edit-line.js +1 -426
  63. package/lib/icon/ellipsis.js +1 -426
  64. package/lib/icon/enlarge-line.js +1 -426
  65. package/lib/icon/error.js +1 -426
  66. package/lib/icon/excel-fill.js +1 -426
  67. package/lib/icon/exclamation-circle-shape.js +1 -426
  68. package/lib/icon/eye.js +1 -426
  69. package/lib/icon/filliscreen-line.js +1 -426
  70. package/lib/icon/folder-open.js +1 -426
  71. package/lib/icon/folder-shape-open.js +1 -426
  72. package/lib/icon/folder-shape.js +1 -426
  73. package/lib/icon/folder.js +1 -426
  74. package/lib/icon/funnel.js +1 -426
  75. package/lib/icon/help-document-fill.js +1 -426
  76. package/lib/icon/help-fill.js +1 -426
  77. package/lib/icon/help.js +1 -426
  78. package/lib/icon/image-fill.js +1 -426
  79. package/lib/icon/img-placehoulder.js +1 -448
  80. package/lib/icon/index.js +1 -2275
  81. package/lib/icon/info-line.js +1 -448
  82. package/lib/icon/info.js +1 -448
  83. package/lib/icon/left-shape.js +1 -448
  84. package/lib/icon/left-turn-line.js +1 -448
  85. package/lib/icon/narrow-line.js +1 -448
  86. package/lib/icon/original.js +1 -448
  87. package/lib/icon/pdf-fill.js +1 -448
  88. package/lib/icon/play-shape.js +1 -448
  89. package/lib/icon/plus.js +1 -448
  90. package/lib/icon/ppt-fill.js +1 -448
  91. package/lib/icon/qq.js +1 -448
  92. package/lib/icon/right-shape.js +1 -448
  93. package/lib/icon/right-turn-line.js +1 -448
  94. package/lib/icon/search.js +1 -448
  95. package/lib/icon/share.js +1 -448
  96. package/lib/icon/spinner.js +1 -448
  97. package/lib/icon/success.js +1 -448
  98. package/lib/icon/switcher-loading.js +1 -448
  99. package/lib/icon/text-file.js +1 -448
  100. package/lib/icon/text-fill.js +1 -448
  101. package/lib/icon/transfer.js +1 -448
  102. package/lib/icon/tree-application-shape.js +1 -448
  103. package/lib/icon/unfull-screen.js +1 -448
  104. package/lib/icon/unvisible.js +1 -448
  105. package/lib/icon/up-shape.js +1 -448
  106. package/lib/icon/upload.js +1 -448
  107. package/lib/icon/video-fill.js +1 -448
  108. package/lib/icon/warn.js +1 -448
  109. package/lib/icon/weixin.js +1 -448
  110. package/lib/image/index.js +1 -873
  111. package/lib/index.js +1 -169
  112. package/lib/info-box/index.js +1 -1784
  113. package/lib/input/index.js +1 -846
  114. package/lib/link/index.js +1 -226
  115. package/lib/loading/index.js +1 -309
  116. package/lib/menu/index.js +1 -796
  117. package/lib/message/index.js +1 -401
  118. package/lib/modal/index.js +1 -395
  119. package/lib/navigation/index.js +1 -431
  120. package/lib/notify/index.js +1 -430
  121. package/lib/overflow-title/index.js +1 -512
  122. package/lib/pagination/index.js +1 -1026
  123. package/lib/plugin-popover/index.js +1 -2447
  124. package/lib/plugins/index.js +1 -130
  125. package/lib/popover/index.js +1 -2453
  126. package/lib/popover2/index.js +1 -172
  127. package/lib/preset.js +1 -129
  128. package/lib/process/index.js +1 -1417
  129. package/lib/progress/index.js +1 -479
  130. package/lib/radio/index.js +1 -649
  131. package/lib/rate/index.js +1 -358
  132. package/lib/resize-layout/index.js +1 -495
  133. package/lib/search-select/index.js +1 -3388
  134. package/lib/search-select/search-select.css +1 -1
  135. package/lib/search-select/search-select.less +1 -1
  136. package/lib/search-select/search-select.variable.css +1 -1
  137. package/lib/select/index.js +1 -2819
  138. package/lib/shared/index.js +1 -2813
  139. package/lib/sideslider/index.js +1 -1362
  140. package/lib/slider/index.js +1 -2060
  141. package/lib/steps/index.js +1 -1504
  142. package/lib/swiper/index.js +1 -374
  143. package/lib/switcher/index.js +1 -308
  144. package/lib/tab/index.js +1 -919
  145. package/lib/table/index.js +1 -6635
  146. package/lib/table-column/index.js +1 -737
  147. package/lib/tag/index.js +1 -278
  148. package/lib/tag-input/index.js +1 -1897
  149. package/lib/time-picker/index.js +1 -142
  150. package/lib/timeline/index.js +1 -315
  151. package/lib/transfer/index.js +1 -658
  152. package/lib/tree/index.js +1 -2917
  153. package/lib/upload/index.js +1 -3735
  154. package/lib/virtual-render/index.js +1 -825
  155. package/package.json +2 -1
@@ -1,2447 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("vue"), require("../directives"), require("../shared"), require("vue-types"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["vue", "../directives", "../shared", "vue-types"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("vue"), require("../directives"), require("../shared"), require("vue-types")) : factory(root["vue"], root["../directives"], root["../shared"], root["vue-types"]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
10
- })(self, (__WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__4061__, __WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__210__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ var __webpack_modules__ = ({
13
-
14
- /***/ 8022:
15
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
16
-
17
- var v1 = __webpack_require__(4481);
18
- var v4 = __webpack_require__(6426);
19
-
20
- var uuid = v4;
21
- uuid.v1 = v1;
22
- uuid.v4 = v4;
23
-
24
- module.exports = uuid;
25
-
26
-
27
- /***/ }),
28
-
29
- /***/ 8725:
30
- /***/ ((module) => {
31
-
32
- /**
33
- * Convert array of 16 byte values to UUID string format of the form:
34
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
35
- */
36
- var byteToHex = [];
37
- for (var i = 0; i < 256; ++i) {
38
- byteToHex[i] = (i + 0x100).toString(16).substr(1);
39
- }
40
-
41
- function bytesToUuid(buf, offset) {
42
- var i = offset || 0;
43
- var bth = byteToHex;
44
- // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
45
- return ([
46
- bth[buf[i++]], bth[buf[i++]],
47
- bth[buf[i++]], bth[buf[i++]], '-',
48
- bth[buf[i++]], bth[buf[i++]], '-',
49
- bth[buf[i++]], bth[buf[i++]], '-',
50
- bth[buf[i++]], bth[buf[i++]], '-',
51
- bth[buf[i++]], bth[buf[i++]],
52
- bth[buf[i++]], bth[buf[i++]],
53
- bth[buf[i++]], bth[buf[i++]]
54
- ]).join('');
55
- }
56
-
57
- module.exports = bytesToUuid;
58
-
59
-
60
- /***/ }),
61
-
62
- /***/ 9157:
63
- /***/ ((module) => {
64
-
65
- // Unique ID creation requires a high quality random # generator. In the
66
- // browser this is a little complicated due to unknown quality of Math.random()
67
- // and inconsistent support for the `crypto` API. We do the best we can via
68
- // feature-detection
69
-
70
- // getRandomValues needs to be invoked in a context where "this" is a Crypto
71
- // implementation. Also, find the complete implementation of crypto on IE11.
72
- var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
73
- (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
74
-
75
- if (getRandomValues) {
76
- // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
77
- var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
78
-
79
- module.exports = function whatwgRNG() {
80
- getRandomValues(rnds8);
81
- return rnds8;
82
- };
83
- } else {
84
- // Math.random()-based (RNG)
85
- //
86
- // If all else fails, use Math.random(). It's fast, but is of unspecified
87
- // quality.
88
- var rnds = new Array(16);
89
-
90
- module.exports = function mathRNG() {
91
- for (var i = 0, r; i < 16; i++) {
92
- if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
93
- rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
94
- }
95
-
96
- return rnds;
97
- };
98
- }
99
-
100
-
101
- /***/ }),
102
-
103
- /***/ 4481:
104
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
105
-
106
- var rng = __webpack_require__(9157);
107
- var bytesToUuid = __webpack_require__(8725);
108
-
109
- // **`v1()` - Generate time-based UUID**
110
- //
111
- // Inspired by https://github.com/LiosK/UUID.js
112
- // and http://docs.python.org/library/uuid.html
113
-
114
- var _nodeId;
115
- var _clockseq;
116
-
117
- // Previous uuid creation time
118
- var _lastMSecs = 0;
119
- var _lastNSecs = 0;
120
-
121
- // See https://github.com/uuidjs/uuid for API details
122
- function v1(options, buf, offset) {
123
- var i = buf && offset || 0;
124
- var b = buf || [];
125
-
126
- options = options || {};
127
- var node = options.node || _nodeId;
128
- var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
129
-
130
- // node and clockseq need to be initialized to random values if they're not
131
- // specified. We do this lazily to minimize issues related to insufficient
132
- // system entropy. See #189
133
- if (node == null || clockseq == null) {
134
- var seedBytes = rng();
135
- if (node == null) {
136
- // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
137
- node = _nodeId = [
138
- seedBytes[0] | 0x01,
139
- seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
140
- ];
141
- }
142
- if (clockseq == null) {
143
- // Per 4.2.2, randomize (14 bit) clockseq
144
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
145
- }
146
- }
147
-
148
- // UUID timestamps are 100 nano-second units since the Gregorian epoch,
149
- // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
150
- // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
151
- // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
152
- var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
153
-
154
- // Per 4.2.1.2, use count of uuid's generated during the current clock
155
- // cycle to simulate higher resolution clock
156
- var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
157
-
158
- // Time since last uuid creation (in msecs)
159
- var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
160
-
161
- // Per 4.2.1.2, Bump clockseq on clock regression
162
- if (dt < 0 && options.clockseq === undefined) {
163
- clockseq = clockseq + 1 & 0x3fff;
164
- }
165
-
166
- // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
167
- // time interval
168
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
169
- nsecs = 0;
170
- }
171
-
172
- // Per 4.2.1.2 Throw error if too many uuids are requested
173
- if (nsecs >= 10000) {
174
- throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
175
- }
176
-
177
- _lastMSecs = msecs;
178
- _lastNSecs = nsecs;
179
- _clockseq = clockseq;
180
-
181
- // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
182
- msecs += 12219292800000;
183
-
184
- // `time_low`
185
- var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
186
- b[i++] = tl >>> 24 & 0xff;
187
- b[i++] = tl >>> 16 & 0xff;
188
- b[i++] = tl >>> 8 & 0xff;
189
- b[i++] = tl & 0xff;
190
-
191
- // `time_mid`
192
- var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
193
- b[i++] = tmh >>> 8 & 0xff;
194
- b[i++] = tmh & 0xff;
195
-
196
- // `time_high_and_version`
197
- b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
198
- b[i++] = tmh >>> 16 & 0xff;
199
-
200
- // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
201
- b[i++] = clockseq >>> 8 | 0x80;
202
-
203
- // `clock_seq_low`
204
- b[i++] = clockseq & 0xff;
205
-
206
- // `node`
207
- for (var n = 0; n < 6; ++n) {
208
- b[i + n] = node[n];
209
- }
210
-
211
- return buf ? buf : bytesToUuid(b);
212
- }
213
-
214
- module.exports = v1;
215
-
216
-
217
- /***/ }),
218
-
219
- /***/ 6426:
220
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
221
-
222
- var rng = __webpack_require__(9157);
223
- var bytesToUuid = __webpack_require__(8725);
224
-
225
- function v4(options, buf, offset) {
226
- var i = buf && offset || 0;
227
-
228
- if (typeof(options) == 'string') {
229
- buf = options === 'binary' ? new Array(16) : null;
230
- options = null;
231
- }
232
- options = options || {};
233
-
234
- var rnds = options.random || (options.rng || rng)();
235
-
236
- // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
237
- rnds[6] = (rnds[6] & 0x0f) | 0x40;
238
- rnds[8] = (rnds[8] & 0x3f) | 0x80;
239
-
240
- // Copy bytes to buffer, if provided
241
- if (buf) {
242
- for (var ii = 0; ii < 16; ++ii) {
243
- buf[i + ii] = rnds[ii];
244
- }
245
- }
246
-
247
- return buf || bytesToUuid(rnds);
248
- }
249
-
250
- module.exports = v4;
251
-
252
-
253
- /***/ }),
254
-
255
- /***/ 4061:
256
- /***/ ((module) => {
257
-
258
- "use strict";
259
- module.exports = __WEBPACK_EXTERNAL_MODULE__4061__;
260
-
261
- /***/ }),
262
-
263
- /***/ 4212:
264
- /***/ ((module) => {
265
-
266
- "use strict";
267
- module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
268
-
269
- /***/ }),
270
-
271
- /***/ 748:
272
- /***/ ((module) => {
273
-
274
- "use strict";
275
- module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
276
-
277
- /***/ }),
278
-
279
- /***/ 210:
280
- /***/ ((module) => {
281
-
282
- "use strict";
283
- module.exports = __WEBPACK_EXTERNAL_MODULE__210__;
284
-
285
- /***/ })
286
-
287
- /******/ });
288
- /************************************************************************/
289
- /******/ // The module cache
290
- /******/ var __webpack_module_cache__ = {};
291
- /******/
292
- /******/ // The require function
293
- /******/ function __webpack_require__(moduleId) {
294
- /******/ // Check if module is in cache
295
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
296
- /******/ if (cachedModule !== undefined) {
297
- /******/ return cachedModule.exports;
298
- /******/ }
299
- /******/ // Create a new module (and put it into the cache)
300
- /******/ var module = __webpack_module_cache__[moduleId] = {
301
- /******/ // no module.id needed
302
- /******/ // no module.loaded needed
303
- /******/ exports: {}
304
- /******/ };
305
- /******/
306
- /******/ // Execute the module function
307
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
308
- /******/
309
- /******/ // Return the exports of the module
310
- /******/ return module.exports;
311
- /******/ }
312
- /******/
313
- /************************************************************************/
314
- /******/ /* webpack/runtime/define property getters */
315
- /******/ (() => {
316
- /******/ // define getter functions for harmony exports
317
- /******/ __webpack_require__.d = (exports, definition) => {
318
- /******/ for(var key in definition) {
319
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
320
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
321
- /******/ }
322
- /******/ }
323
- /******/ };
324
- /******/ })();
325
- /******/
326
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
327
- /******/ (() => {
328
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
329
- /******/ })();
330
- /******/
331
- /******/ /* webpack/runtime/make namespace object */
332
- /******/ (() => {
333
- /******/ // define __esModule on exports
334
- /******/ __webpack_require__.r = (exports) => {
335
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
336
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
337
- /******/ }
338
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
339
- /******/ };
340
- /******/ })();
341
- /******/
342
- /************************************************************************/
343
- var __webpack_exports__ = {};
344
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
345
- (() => {
346
- "use strict";
347
- // ESM COMPAT FLAG
348
- __webpack_require__.r(__webpack_exports__);
349
-
350
- // EXPORTS
351
- __webpack_require__.d(__webpack_exports__, {
352
- "default": () => (/* binding */ src)
353
- });
354
-
355
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
356
- function _defineProperty(obj, key, value) {
357
- if (key in obj) {
358
- Object.defineProperty(obj, key, {
359
- value: value,
360
- enumerable: true,
361
- configurable: true,
362
- writable: true
363
- });
364
- } else {
365
- obj[key] = value;
366
- }
367
-
368
- return obj;
369
- }
370
- // EXTERNAL MODULE: external "vue"
371
- var external_vue_ = __webpack_require__(748);
372
- // EXTERNAL MODULE: external "../directives"
373
- var external_directives_ = __webpack_require__(4061);
374
- // EXTERNAL MODULE: external "../shared"
375
- var external_shared_ = __webpack_require__(4212);
376
- ;// CONCATENATED MODULE: ../../packages/popover/src/arrow.tsx
377
-
378
-
379
- /*
380
- * Tencent is pleased to support the open source community by making
381
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
382
- *
383
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
384
- *
385
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
386
- *
387
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
388
- *
389
- * ---------------------------------------------------
390
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
391
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
392
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
393
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
394
- *
395
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
396
- * the Software.
397
- *
398
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
399
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
400
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
401
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
402
- * IN THE SOFTWARE.
403
- */
404
-
405
-
406
- /* harmony default export */ const src_arrow = ((0,external_vue_.defineComponent)({
407
- name: 'PopArrow',
408
- render: function render() {
409
- var arrowClassName = (0,external_shared_.resolveClassName)('pop2-arrow');
410
- return (0,external_vue_.createVNode)("div", {
411
- "class": arrowClassName
412
- }, null);
413
- }
414
- }));
415
- ;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
416
-
417
-
418
- var _EMIT_EVENT_TYPES;
419
-
420
- /*
421
- * Tencent is pleased to support the open source community by making
422
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
423
- *
424
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
425
- *
426
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
427
- *
428
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
429
- *
430
- * ---------------------------------------------------
431
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
432
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
433
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
434
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
435
- *
436
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
437
- * the Software.
438
- *
439
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
440
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
441
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
442
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
443
- * IN THE SOFTWARE.
444
- */
445
- var EMPTY = function EMPTY() {
446
- return true;
447
- }; // eslint-disable-next-line @typescript-eslint/naming-convention
448
-
449
-
450
- var EMIT_EVENTS;
451
-
452
- (function (EMIT_EVENTS) {
453
- EMIT_EVENTS["SHOW"] = "show";
454
- EMIT_EVENTS["HIDE"] = "hide";
455
- EMIT_EVENTS["CLICK_OUTSIDE"] = "clickoutside";
456
- EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
457
- EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
458
- EMIT_EVENTS["STOP_HIDE"] = "stopHide";
459
- })(EMIT_EVENTS || (EMIT_EVENTS = {}));
460
-
461
- var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.SHOW, EMPTY), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.HIDE, EMPTY), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CLICK_OUTSIDE, EMPTY), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSEENTER, EMPTY), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSELEAVE, EMPTY), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.STOP_HIDE, EMPTY), _EMIT_EVENT_TYPES);
462
- ;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
463
-
464
-
465
- /*
466
- * Tencent is pleased to support the open source community by making
467
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
468
- *
469
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
470
- *
471
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
472
- *
473
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
474
- *
475
- * ---------------------------------------------------
476
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
477
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
478
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
479
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
480
- *
481
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
482
- * the Software.
483
- *
484
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
485
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
486
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
487
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
488
- * IN THE SOFTWARE.
489
- */
490
-
491
-
492
- /* harmony default export */ const content = ((0,external_vue_.defineComponent)({
493
- name: 'PopContent',
494
- props: {
495
- width: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto'),
496
- height: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto'),
497
- maxHeight: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto')
498
- },
499
- setup: function setup(props) {
500
- var resolveValToPix = function resolveValToPix(val) {
501
- if (/^\d+\.?\d*$/.test("".concat(val))) {
502
- return "".concat(val, "px");
503
- }
504
-
505
- return val;
506
- };
507
-
508
- var style = (0,external_vue_.computed)(function () {
509
- return {
510
- width: resolveValToPix(props.width),
511
- height: resolveValToPix(props.height),
512
- maxHeight: resolveValToPix(props.maxHeight)
513
- };
514
- });
515
- return {
516
- style: style
517
- };
518
- },
519
- render: function render() {
520
- var _a, _b, _c, _d, _e, _f;
521
-
522
- var className = [(0,external_shared_.resolveClassName)('popover'), (0,external_shared_.resolveClassName)('pop2-content')];
523
- return (0,external_vue_.createVNode)("div", {
524
- "class": className,
525
- "tabindex": "-1",
526
- "style": this.style
527
- }, [(_c = (_b = (_a = this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '', (_f = (_e = (_d = this.$slots)["default"]) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : '']);
528
- }
529
- }));
530
- // EXTERNAL MODULE: external "vue-types"
531
- var external_vue_types_ = __webpack_require__(210);
532
- ;// CONCATENATED MODULE: ../../packages/shared/src/vue-types.ts
533
-
534
-
535
-
536
-
537
-
538
-
539
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
540
-
541
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
542
-
543
-
544
- var propTypesNS = (0,external_vue_types_.createTypes)({}); // 用于创建字符串列表映射至 `K: V` 的函数
545
-
546
- function stringEnum(o) {
547
- return o.reduce(function (res, key) {
548
- res[key] = key;
549
- return res;
550
- }, Object.create(null));
551
- }
552
- var SizeEnum;
553
-
554
- (function (SizeEnum) {
555
- SizeEnum["SMALL"] = "small";
556
- SizeEnum["LARGE"] = "large";
557
- SizeEnum["DEFAULT"] = "default";
558
- })(SizeEnum || (SizeEnum = {}));
559
-
560
- var Placements;
561
-
562
- (function (Placements) {
563
- Placements["Top"] = "top";
564
- Placements["Left"] = "left";
565
- Placements["Right"] = "right";
566
- Placements["Bottom"] = "bottom";
567
- })(Placements || (Placements = {}));
568
-
569
- var RenderDirectiveEnum;
570
-
571
- (function (RenderDirectiveEnum) {
572
- RenderDirectiveEnum["IF"] = "if";
573
- RenderDirectiveEnum["SHOW"] = "show";
574
- })(RenderDirectiveEnum || (RenderDirectiveEnum = {}));
575
-
576
- function renderDirectiveType() {
577
- return toType('renderDirective', {
578
- "default": RenderDirectiveEnum.SHOW
579
- });
580
- }
581
- ;
582
- var AlignEnum;
583
-
584
- (function (AlignEnum) {
585
- AlignEnum["LEFT"] = "left";
586
- AlignEnum["CENTER"] = "center";
587
- AlignEnum["RIGHT"] = "right";
588
- })(AlignEnum || (AlignEnum = {}));
589
-
590
- function alignType() {
591
- return toType('align', {
592
- "default": AlignEnum.LEFT
593
- }).def(AlignEnum.LEFT);
594
- }
595
- ;
596
- var ThemeEnum;
597
-
598
- (function (ThemeEnum) {
599
- ThemeEnum["PRIMARY"] = "primary";
600
- ThemeEnum["WARNING"] = "warning";
601
- ThemeEnum["SUCCESS"] = "success";
602
- ThemeEnum["DANGER"] = "danger";
603
- })(ThemeEnum || (ThemeEnum = {}));
604
- /** 弹层出现位置选项 */
605
-
606
-
607
- var PlacementEnum;
608
-
609
- (function (PlacementEnum) {
610
- PlacementEnum["AUTO"] = "auto";
611
- PlacementEnum["AUTO_START"] = "auto-start";
612
- PlacementEnum["AUTO_END"] = "auto-end";
613
- PlacementEnum["TOP"] = "top";
614
- PlacementEnum["RIGHT"] = "right";
615
- PlacementEnum["BOTTOM"] = "bottom";
616
- PlacementEnum["LEFT"] = "left";
617
- PlacementEnum["TOP_START"] = "top-start";
618
- PlacementEnum["TOP_END"] = "top-end";
619
- PlacementEnum["BOTTOM_START"] = "bottom-start";
620
- PlacementEnum["BOTTOM_END"] = "bottom-end";
621
- PlacementEnum["RIGHT_START"] = "right-start";
622
- PlacementEnum["RIGHT_END"] = "right-end";
623
- PlacementEnum["LEFT_START"] = "left-start";
624
- PlacementEnum["LEFT_END"] = "left-end";
625
- })(PlacementEnum || (PlacementEnum = {}));
626
-
627
- function placementType() {
628
- return toType('placement', {}).def(PlacementEnum.BOTTOM);
629
- }
630
- ;
631
- /** 弹层触发选项 */
632
-
633
- var TriggerEnum;
634
-
635
- (function (TriggerEnum) {
636
- TriggerEnum["HOVER"] = "hover";
637
- TriggerEnum["CLICK"] = "click";
638
- TriggerEnum["MANUAL"] = "manual";
639
- })(TriggerEnum || (TriggerEnum = {}));
640
-
641
- function triggerType() {
642
- return (0,external_vue_types_.toType)('trigger', {}).def(TriggerEnum.HOVER);
643
- }
644
- ;
645
- /** 内容渲染类型:目前是在popover内容渲染时使用 */
646
-
647
- var RenderType;
648
-
649
- (function (RenderType) {
650
- RenderType["AUTO"] = "auto";
651
- RenderType["SHOWN"] = "shown"; // 默认不渲染,只有在popover弹出之后才会渲染
652
- })(RenderType || (RenderType = {}));
653
-
654
- function renderType() {
655
- return (0,external_vue_types_.toType)('trigger', {}).def(RenderType.AUTO);
656
- }
657
- ;
658
- var DialogTypeEnum;
659
-
660
- (function (DialogTypeEnum) {
661
- DialogTypeEnum["SHOW"] = "show";
662
- DialogTypeEnum["OPERATION"] = "operation";
663
- DialogTypeEnum["CONFIRM"] = "confirm";
664
- DialogTypeEnum["PROCESS"] = "process";
665
- })(DialogTypeEnum || (DialogTypeEnum = {}));
666
-
667
- function dialogTypeUnion() {
668
- return toType('dialogType', {
669
- "default": DialogTypeEnum.OPERATION
670
- });
671
- }
672
- var DirectionEnum;
673
-
674
- (function (DirectionEnum) {
675
- DirectionEnum["HORIZONTAL"] = "horizontal";
676
- DirectionEnum["VERTICAL"] = "vertical";
677
- })(DirectionEnum || (DirectionEnum = {}));
678
-
679
- function directionType() {
680
- return toType('direction', {}).def(DirectionEnum.HORIZONTAL);
681
- }
682
- var LineStyleEnum;
683
-
684
- (function (LineStyleEnum) {
685
- LineStyleEnum["DASHED"] = "dashed";
686
- LineStyleEnum["SOLID"] = "solid";
687
- })(LineStyleEnum || (LineStyleEnum = {}));
688
-
689
- function lineStyleType() {
690
- return toType('lineType', {}).def(LineStyleEnum.DASHED);
691
- }
692
- ;
693
- var TagThemeEnum;
694
-
695
- (function (TagThemeEnum) {
696
- TagThemeEnum["SUCCESS"] = "success";
697
- TagThemeEnum["INFO"] = "info";
698
- TagThemeEnum["WARNING"] = "warning";
699
- TagThemeEnum["DANGER"] = "danger";
700
- })(TagThemeEnum || (TagThemeEnum = {}));
701
-
702
- function TagThemeType() {
703
- return toType('tagTheme', {}).def();
704
- }
705
- var InputBehaviorEnum;
706
-
707
- (function (InputBehaviorEnum) {
708
- InputBehaviorEnum["SIMPLICITY"] = "simplicity";
709
- InputBehaviorEnum["NORMAL"] = "normal";
710
- })(InputBehaviorEnum || (InputBehaviorEnum = {}));
711
-
712
- function InputBehaviorType() {
713
- return toType('behavior', {}).def(InputBehaviorEnum.NORMAL);
714
- }
715
- ;
716
- var PropTypes = /*#__PURE__*/(/* unused pure expression or super */ null && (function (_propTypesNS) {
717
- _inherits(PropTypes, _propTypesNS);
718
-
719
- var _super = _createSuper(PropTypes);
720
-
721
- function PropTypes() {
722
- _classCallCheck(this, PropTypes);
723
-
724
- return _super.apply(this, arguments);
725
- }
726
-
727
- _createClass(PropTypes, null, [{
728
- key: "size",
729
- value: function size() {
730
- var defaultList = ['small', 'default', 'large'];
731
- return toType('Size', {
732
- validator: function validator(val) {
733
- if (!val || defaultList.includes(val)) {
734
- return true;
735
- }
736
-
737
- console.error("invalid theme, ".concat(val, ", the theme must be one of \u3010").concat(defaultList.join(' | '), "\u3011"));
738
- return false;
739
- },
740
- "default": 'default'
741
- });
742
- }
743
- }, {
744
- key: "theme",
745
- value: function theme() {
746
- var themes = ['primary', 'warning', 'success', 'danger'];
747
- return toType('Theme', {
748
- validator: function validator(val) {
749
- if (!val || themes.includes(val)) {
750
- return true;
751
- }
752
-
753
- console.error("invalid theme, ".concat(val, ", the theme must be one of \u3010").concat(themes.join(' | '), "\u3011"));
754
- return false;
755
- }
756
- });
757
- }
758
- }, {
759
- key: "placement",
760
- value: function placement() {
761
- var placements = ['top', 'left', 'right', 'bottom'];
762
- return toType('Placements', {
763
- validator: function validator(val) {
764
- if (!val || placements.includes(val)) {
765
- return true;
766
- }
767
-
768
- console.error("invalid placements, ".concat(val, ", the placement must be one of \u3010").concat(placements.join(' | '), "\u3011"));
769
- return false;
770
- },
771
- "default": 'top'
772
- });
773
- }
774
- }, {
775
- key: "style",
776
- value: function style() {
777
- return toType('Style', {
778
- type: [String, Object]
779
- });
780
- }
781
- }, {
782
- key: "position",
783
- value: function position() {
784
- var positions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
785
- return toType('positions', {
786
- type: String,
787
- validator: function validator(val) {
788
- if (!val || positions.includes(val)) {
789
- return true;
790
- }
791
-
792
- console.error("invalid positions, ".concat(val, ", the position must be one of \u3010").concat(positions.join(' | '), "\u3011"));
793
- return false;
794
- },
795
- "default": 'top-center'
796
- });
797
- }
798
- }]);
799
-
800
- return PropTypes;
801
- }(propTypesNS)));
802
- ;// CONCATENATED MODULE: ../../packages/popover/src/props.ts
803
-
804
-
805
- var EventProps = {
806
- onAfterHidden: Function,
807
- onAfterShow: Function
808
- };
809
- var PopoverProps = Object.assign({
810
- isShow: external_shared_.PropTypes.bool.def(false),
811
- always: external_shared_.PropTypes.bool.def(false),
812
- disabled: external_shared_.PropTypes.bool.def(false),
813
- width: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto'),
814
- height: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto'),
815
- maxHeight: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def('auto'),
816
- content: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.number]).def(''),
817
-
818
- /**
819
- * 组件显示位置
820
- */
821
- placement: (0,external_shared_.placementType)().def(PlacementEnum.TOP),
822
- // 'dark', 'light'
823
- theme: external_shared_.PropTypes.string.def('dark'),
824
-
825
- /**
826
- * 触发方式
827
- * 支持 click hover manual
828
- * manual: 通过isShow控制显示、隐藏
829
- */
830
- trigger: triggerType(),
831
-
832
- /**
833
- * content 渲染方式
834
- */
835
- renderType: renderType(),
836
- // 是否显示箭头
837
- arrow: external_shared_.PropTypes.bool.def(true),
838
- padding: external_shared_.PropTypes.number.def(5),
839
- offset: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.number, external_shared_.PropTypes.shape({})]).def(6),
840
-
841
- /**
842
- * 弹出内容绑定元素
843
- */
844
- boundary: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string.def('parent'), external_shared_.PropTypes.instanceOf(HTMLElement)]),
845
- zIndex: external_shared_.PropTypes.number.def(undefined),
846
- disableTeleport: external_shared_.PropTypes.bool.def(false),
847
-
848
- /**
849
- * chooses the placement that has the most space available automatically
850
- */
851
- autoPlacement: external_shared_.PropTypes.bool.def(false),
852
-
853
- /**
854
- * 当有滚动条,滚动出可是范围时自动隐藏pop
855
- */
856
- autoVisibility: external_shared_.PropTypes.bool.def(true),
857
-
858
- /**
859
- * 是否禁用clickoutside
860
- */
861
- disableOutsideClick: external_shared_.PropTypes.bool.def(false),
862
-
863
- /**
864
- * 是否禁用样式的transform更新位移
865
- */
866
- disableTransform: external_shared_.PropTypes.bool.def(false),
867
-
868
- /**
869
- * 自定义 reference
870
- */
871
- reference: external_shared_.PropTypes.any.def(null),
872
-
873
- /**
874
- * 兼容v1版本遗留配置
875
- * 不建议使用
876
- */
877
- modifiers: external_shared_.PropTypes.array.def([]),
878
-
879
- /**
880
- * popover显示和隐藏的延时时间
881
- */
882
- popoverDelay: external_shared_.PropTypes.number.def(100)
883
- }, EventProps);
884
- ;// CONCATENATED MODULE: ../../packages/popover/src/reference.tsx
885
- /*
886
- * Tencent is pleased to support the open source community by making
887
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
888
- *
889
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
890
- *
891
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
892
- *
893
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
894
- *
895
- * ---------------------------------------------------
896
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
897
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
898
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
899
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
900
- *
901
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
902
- * the Software.
903
- *
904
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
905
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
906
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
907
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
908
- * IN THE SOFTWARE.
909
- */
910
-
911
- /* harmony default export */ const reference = ((0,external_vue_.defineComponent)({
912
- name: 'PopReference',
913
- render: function render() {
914
- var _a, _b, _c;
915
-
916
- return (_c = (_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '';
917
- }
918
- }));
919
- ;// CONCATENATED MODULE: ../../packages/popover/src/root.tsx
920
-
921
-
922
- /*
923
- * Tencent is pleased to support the open source community by making
924
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
925
- *
926
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
927
- *
928
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
929
- *
930
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
931
- *
932
- * ---------------------------------------------------
933
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
934
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
935
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
936
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
937
- *
938
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
939
- * the Software.
940
- *
941
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
942
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
943
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
944
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
945
- * IN THE SOFTWARE.
946
- */
947
-
948
-
949
- /* harmony default export */ const root = ((0,external_vue_.defineComponent)({
950
- props: {
951
- "class": external_shared_.PropTypes.string.def('')
952
- },
953
- render: function render() {
954
- var _a, _b;
955
-
956
- return (0,external_vue_.createVNode)(external_vue_.Fragment, null, [(_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
957
- }
958
- }));
959
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
960
- function _arrayWithHoles(arr) {
961
- if (Array.isArray(arr)) return arr;
962
- }
963
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
964
- function _iterableToArrayLimit(arr, i) {
965
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
966
-
967
- if (_i == null) return;
968
- var _arr = [];
969
- var _n = true;
970
- var _d = false;
971
-
972
- var _s, _e;
973
-
974
- try {
975
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
976
- _arr.push(_s.value);
977
-
978
- if (i && _arr.length === i) break;
979
- }
980
- } catch (err) {
981
- _d = true;
982
- _e = err;
983
- } finally {
984
- try {
985
- if (!_n && _i["return"] != null) _i["return"]();
986
- } finally {
987
- if (_d) throw _e;
988
- }
989
- }
990
-
991
- return _arr;
992
- }
993
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
994
- function _arrayLikeToArray(arr, len) {
995
- if (len == null || len > arr.length) len = arr.length;
996
-
997
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
998
- arr2[i] = arr[i];
999
- }
1000
-
1001
- return arr2;
1002
- }
1003
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1004
-
1005
- function _unsupportedIterableToArray(o, minLen) {
1006
- if (!o) return;
1007
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1008
- var n = Object.prototype.toString.call(o).slice(8, -1);
1009
- if (n === "Object" && o.constructor) n = o.constructor.name;
1010
- if (n === "Map" || n === "Set") return Array.from(o);
1011
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1012
- }
1013
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
1014
- function _nonIterableRest() {
1015
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1016
- }
1017
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
1018
-
1019
-
1020
-
1021
-
1022
- function _slicedToArray(arr, i) {
1023
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1024
- }
1025
- ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs
1026
- function t(t){return t.split("-")[0]}function e(t){return t.split("-")[1]}function n(e){return["top","bottom"].includes(t(e))?"x":"y"}function r(t){return"y"===t?"height":"width"}function i(i,o,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=n(o),m=r(u),g=l[m]/2-s[m]/2,d="x"===u;let p;switch(t(o)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y}}switch(e(o)){case"start":p[u]-=g*(a&&d?-1:1);break;case"end":p[u]+=g*(a&&d?-1:1)}return p}const floating_ui_core_browser_min_o=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=i(c,r,s),m=r,g={};for(let n=0;n<a.length;n++){const{name:d,fn:p}=a[n],{x:h,y:y,data:x,reset:w}=await p({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=h?h:f,u=null!=y?y:u,g={...g,[d]:{...g[d],...x}},w&&("object"==typeof w&&(w.placement&&(m=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):w.rects),({x:f,y:u}=i(c,m,s))),n=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:g}};function a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function s(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:d=!1,padding:p=0}=e,h=a(p),y=c[d?"floating"===g?"reference":"floating":g],x=l(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:f})),w=l(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===g?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(c.floating)),strategy:f}):s[g]);return{top:x.top-w.top+h.top,bottom:w.bottom-x.bottom+h.bottom,left:x.left-w.left+h.left,right:w.right-x.right+h.right}}const c=Math.min,f=Math.max;function u(t,e,n){return f(t,c(e,n))}const m=t=>({name:"arrow",options:t,async fn(i){const{element:o,padding:l=0}=null!=t?t:{},{x:s,y:c,placement:f,rects:m,platform:g}=i;if(null==o)return{};const d=a(l),p={x:s,y:c},h=n(f),y=e(f),x=r(h),w=await g.getDimensions(o),v="y"===h?"top":"left",b="y"===h?"bottom":"right",R=m.reference[x]+m.reference[h]-p[h]-m.floating[x],A=p[h]-m.reference[h],P=await(null==g.getOffsetParent?void 0:g.getOffsetParent(o));let T=P?"y"===h?P.clientHeight||0:P.clientWidth||0:0;0===T&&(T=m.floating[x]);const O=R/2-A/2,D=d[v],L=T-w[x]-d[b],k=T/2-w[x]/2+O,E=u(D,k,L),C=("start"===y?d[v]:d[b])>0&&k!==E&&m.reference[x]<=m.floating[x];return{[h]:p[h]-(C?k<D?D-k:L-k:0),data:{[h]:E,centerOffset:k-E}}}}),g={left:"right",right:"left",bottom:"top",top:"bottom"};function d(t){return t.replace(/left|right|bottom|top/g,(t=>g[t]))}function p(t,i,o){void 0===o&&(o=!1);const a=e(t),l=n(t),s=r(l);let c="x"===l?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=d(c)),{main:c,cross:d(c)}}const h={start:"end",end:"start"};function y(t){return t.replace(/start|end/g,(t=>h[t]))}const x=["top","right","bottom","left"],w=x.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]);const v=function(n){return void 0===n&&(n={}),{name:"autoPlacement",options:n,async fn(r){var i,o,a,l,c;const{x:f,y:u,rects:m,middlewareData:g,placement:d,platform:h,elements:x}=r,{alignment:v=null,allowedPlacements:b=w,autoAlignment:R=!0,...A}=n,P=function(n,r,i){return(n?[...i.filter((t=>e(t)===n)),...i.filter((t=>e(t)!==n))]:i.filter((e=>t(e)===e))).filter((t=>!n||e(t)===n||!!r&&y(t)!==t))}(v,R,b),T=await s(r,A),O=null!=(i=null==(o=g.autoPlacement)?void 0:o.index)?i:0,D=P[O];if(null==D)return{};const{main:L,cross:k}=p(D,m,await(null==h.isRTL?void 0:h.isRTL(x.floating)));if(d!==D)return{x:f,y:u,reset:{placement:P[0]}};const E=[T[t(D)],T[L],T[k]],C=[...null!=(a=null==(l=g.autoPlacement)?void 0:l.overflows)?a:[],{placement:D,overflows:E}],H=P[O+1];if(H)return{data:{index:O+1,overflows:C},reset:{placement:H}};const B=C.slice().sort(((t,e)=>t.overflows[0]-e.overflows[0])),V=null==(c=B.find((t=>{let{overflows:e}=t;return e.every((t=>t<=0))})))?void 0:c.placement,F=null!=V?V:B[0].placement;return F!==d?{data:{index:O+1,overflows:C},reset:{placement:F}}:{}}}};const b=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=n,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",flipAlignment:x=!0,...w}=e,v=t(i),b=g||(v===l||!x?[d(l)]:function(t){const e=d(t);return[y(t),e,y(e)]}(l)),R=[l,...b],A=await s(n,w),P=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&P.push(A[v]),m){const{main:t,cross:e}=p(i,a,await(null==c.isRTL?void 0:c.isRTL(f.floating)));P.push(A[t],A[e])}if(T=[...T,{placement:i,overflows:P}],!P.every((t=>t<=0))){var O,D;const t=(null!=(O=null==(D=o.flip)?void 0:D.index)?O:0)+1,e=R[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var L;const t=null==(L=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0].placement;t&&(n=t);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};function R(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function A(t){return x.some((e=>t[e]>=0))}const P=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:r}=t;switch(e){case"referenceHidden":{const e=R(await s(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{const e=R(await s(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}};const T=function(r){return void 0===r&&(r=0),{name:"offset",options:r,async fn(i){const{x:o,y:a}=i,l=await async function(r,i){const{placement:o,platform:a,elements:l}=r,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=t(o),f=e(o),u="x"===n(o),m=["left","top"].includes(c)?-1:1,g=s&&u?-1:1,d="function"==typeof i?i(r):i;let{mainAxis:p,crossAxis:h,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*g,y:p*m}:{x:p*m,y:h*g}}(i,r);return{x:o+l.x,y:a+l.y,data:l}}}};function O(t){return"x"===t?"y":"x"}const D=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:o,placement:a}=r,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=e,g={x:i,y:o},d=await s(r,m),p=n(t(a)),h=O(p);let y=g[p],x=g[h];if(l){const t="y"===p?"bottom":"right";y=u(y+d["y"===p?"top":"left"],y,y-d[t])}if(c){const t="y"===h?"bottom":"right";x=u(x+d["y"===h?"top":"left"],x,x-d[t])}const w=f.fn({...r,[p]:y,[h]:x});return{...w,data:{x:w.x-i,y:w.y-o}}}}},L=function(e){return void 0===e&&(e={}),{options:e,fn(r){const{x:i,y:o,placement:a,rects:l,middlewareData:s}=r,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=e,m={x:i,y:o},g=n(a),d=O(g);let p=m[g],h=m[d];const y="function"==typeof c?c({...l,placement:a}):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===g?"height":"width",e=l.reference[g]-l.floating[t]+x.mainAxis,n=l.reference[g]+l.reference[t]-x.mainAxis;p<e?p=e:p>n&&(p=n)}if(u){var w,v,b,R;const e="y"===g?"width":"height",n=["top","left"].includes(t(a)),r=l.reference[d]-l.floating[e]+(n&&null!=(w=null==(v=s.offset)?void 0:v[d])?w:0)+(n?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(n?0:null!=(b=null==(R=s.offset)?void 0:R[d])?b:0)-(n?x.crossAxis:0);h<r?h=r:h>i&&(h=i)}return{[g]:p,[d]:h}}}},k=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(r){const{placement:i,rects:o,platform:a,elements:l}=r,{apply:c,...u}=n,m=await s(r,u),g=t(i),d=e(i);let p,h;"top"===g||"bottom"===g?(p=g,h=d===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=g,p="end"===d?"top":"bottom");const y=f(m.left,0),x=f(m.right,0),w=f(m.top,0),v=f(m.bottom,0),b={availableHeight:o.floating.height-(["left","right"].includes(i)?2*(0!==w||0!==v?w+v:f(m.top,m.bottom)):m[p]),availableWidth:o.floating.width-(["top","bottom"].includes(i)?2*(0!==y||0!==x?y+x:f(m.left,m.right)):m[h])},R=await a.getDimensions(l.floating);null==c||c({...r,...b});const A=await a.getDimensions(l.floating);return R.width!==A.width||R.height!==A.height?{reset:{rects:!0}}:{}}}},E=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(r){var i;const{placement:o,elements:s,rects:u,platform:m,strategy:g}=r,{padding:d=2,x:p,y:h}=e,y=l(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u.reference,offsetParent:await(null==m.getOffsetParent?void 0:m.getOffsetParent(s.floating)),strategy:g}):u.reference),x=null!=(i=await(null==m.getClientRects?void 0:m.getClientRects(s.reference)))?i:[],w=a(d);const v=await m.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===x.length&&x[0].left>x[1].right&&null!=p&&null!=h)return null!=(e=x.find((t=>p>t.left-w.left&&p<t.right+w.right&&h>t.top-w.top&&h<t.bottom+w.bottom)))?e:y;if(x.length>=2){if("x"===n(o)){const e=x[0],n=x[x.length-1],r="top"===t(o),i=e.top,a=n.bottom,l=r?e.left:n.left,s=r?e.right:n.right;return{top:i,bottom:a,left:l,right:s,width:s-l,height:a-i,x:l,y:i}}const e="left"===t(o),r=f(...x.map((t=>t.right))),i=c(...x.map((t=>t.left))),a=x.filter((t=>e?t.left===i:t.right===r)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:i,right:r,width:r-i,height:s-l,x:i,y:l}}return y}},floating:s.floating,strategy:g});return u.reference.x!==v.reference.x||u.reference.y!==v.reference.y||u.reference.width!==v.reference.width||u.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}};
1027
-
1028
- ;// CONCATENATED MODULE: ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
1029
- function floating_ui_dom_browser_min_n(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function o(t){if(null==t)return window;if(!floating_ui_dom_browser_min_n(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function floating_ui_dom_browser_min_i(t){return o(t).getComputedStyle(t)}function floating_ui_dom_browser_min_r(t){return floating_ui_dom_browser_min_n(t)?"":t?(t.nodeName||"").toLowerCase():""}function floating_ui_dom_browser_min_l(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function floating_ui_dom_browser_min_c(t){return t instanceof o(t).HTMLElement}function floating_ui_dom_browser_min_f(t){return t instanceof o(t).Element}function floating_ui_dom_browser_min_s(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof o(t).ShadowRoot||t instanceof ShadowRoot}function floating_ui_dom_browser_min_u(t){const{overflow:e,overflowX:n,overflowY:o}=floating_ui_dom_browser_min_i(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function floating_ui_dom_browser_min_d(t){return["table","td","th"].includes(floating_ui_dom_browser_min_r(t))}function floating_ui_dom_browser_min_h(t){const e=/firefox/i.test(floating_ui_dom_browser_min_l()),n=floating_ui_dom_browser_min_i(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function floating_ui_dom_browser_min_a(){return!/^((?!chrome|android).)*safari/i.test(floating_ui_dom_browser_min_l())}const floating_ui_dom_browser_min_g=Math.min,floating_ui_dom_browser_min_p=Math.max,floating_ui_dom_browser_min_m=Math.round;function floating_ui_dom_browser_min_w(t,e,n){var i,r,l,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const u=t.getBoundingClientRect();let d=1,h=1;e&&floating_ui_dom_browser_min_c(t)&&(d=t.offsetWidth>0&&floating_ui_dom_browser_min_m(u.width)/t.offsetWidth||1,h=t.offsetHeight>0&&floating_ui_dom_browser_min_m(u.height)/t.offsetHeight||1);const g=floating_ui_dom_browser_min_f(t)?o(t):window,p=!floating_ui_dom_browser_min_a()&&n,w=(u.left+(p&&null!=(i=null==(r=g.visualViewport)?void 0:r.offsetLeft)?i:0))/d,v=(u.top+(p&&null!=(l=null==(s=g.visualViewport)?void 0:s.offsetTop)?l:0))/h,y=u.width/d,x=u.height/h;return{width:y,height:x,top:v,right:w+y,bottom:v+x,left:w,x:w,y:v}}function floating_ui_dom_browser_min_v(t){return(e=t,(e instanceof o(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function floating_ui_dom_browser_min_y(t){return floating_ui_dom_browser_min_f(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function floating_ui_dom_browser_min_x(t){return floating_ui_dom_browser_min_w(floating_ui_dom_browser_min_v(t)).left+floating_ui_dom_browser_min_y(t).scrollLeft}function floating_ui_dom_browser_min_b(t,e,n){const o=floating_ui_dom_browser_min_c(e),i=floating_ui_dom_browser_min_v(e),l=floating_ui_dom_browser_min_w(t,o&&function(t){const e=floating_ui_dom_browser_min_w(t);return floating_ui_dom_browser_min_m(e.width)!==t.offsetWidth||floating_ui_dom_browser_min_m(e.height)!==t.offsetHeight}(e),"fixed"===n);let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==floating_ui_dom_browser_min_r(e)||floating_ui_dom_browser_min_u(i))&&(f=floating_ui_dom_browser_min_y(e)),floating_ui_dom_browser_min_c(e)){const t=floating_ui_dom_browser_min_w(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=floating_ui_dom_browser_min_x(i));return{x:l.left+f.scrollLeft-s.x,y:l.top+f.scrollTop-s.y,width:l.width,height:l.height}}function floating_ui_dom_browser_min_L(t){return"html"===floating_ui_dom_browser_min_r(t)?t:t.assignedSlot||t.parentNode||(floating_ui_dom_browser_min_s(t)?t.host:null)||floating_ui_dom_browser_min_v(t)}function floating_ui_dom_browser_min_R(t){return floating_ui_dom_browser_min_c(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function floating_ui_dom_browser_min_T(t){const e=o(t);let n=floating_ui_dom_browser_min_R(t);for(;n&&floating_ui_dom_browser_min_d(n)&&"static"===getComputedStyle(n).position;)n=floating_ui_dom_browser_min_R(n);return n&&("html"===floating_ui_dom_browser_min_r(n)||"body"===floating_ui_dom_browser_min_r(n)&&"static"===getComputedStyle(n).position&&!floating_ui_dom_browser_min_h(n))?e:n||function(t){let e=floating_ui_dom_browser_min_L(t);for(floating_ui_dom_browser_min_s(e)&&(e=e.host);floating_ui_dom_browser_min_c(e)&&!["html","body"].includes(floating_ui_dom_browser_min_r(e));){if(floating_ui_dom_browser_min_h(e))return e;e=e.parentNode}return null}(t)||e}function W(t){if(floating_ui_dom_browser_min_c(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=floating_ui_dom_browser_min_w(t);return{width:e.width,height:e.height}}function floating_ui_dom_browser_min_E(t){const e=floating_ui_dom_browser_min_L(t);return["html","body","#document"].includes(floating_ui_dom_browser_min_r(e))?t.ownerDocument.body:floating_ui_dom_browser_min_c(e)&&floating_ui_dom_browser_min_u(e)?e:floating_ui_dom_browser_min_E(e)}function H(t,e){var n;void 0===e&&(e=[]);const i=floating_ui_dom_browser_min_E(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),l=o(i),c=r?[l].concat(l.visualViewport||[],floating_ui_dom_browser_min_u(i)?i:[]):i,f=e.concat(c);return r?f:f.concat(H(c))}function C(e,n,r){return"viewport"===n?l(function(t,e){const n=o(t),i=floating_ui_dom_browser_min_v(t),r=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,f=0,s=0;if(r){l=r.width,c=r.height;const t=floating_ui_dom_browser_min_a();(t||!t&&"fixed"===e)&&(f=r.offsetLeft,s=r.offsetTop)}return{width:l,height:c,x:f,y:s}}(e,r)):floating_ui_dom_browser_min_f(n)?function(t,e){const n=floating_ui_dom_browser_min_w(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,r):l(function(t){var e;const n=floating_ui_dom_browser_min_v(t),o=floating_ui_dom_browser_min_y(t),r=null==(e=t.ownerDocument)?void 0:e.body,l=floating_ui_dom_browser_min_p(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=floating_ui_dom_browser_min_p(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let f=-o.scrollLeft+floating_ui_dom_browser_min_x(t);const s=-o.scrollTop;return"rtl"===floating_ui_dom_browser_min_i(r||n).direction&&(f+=floating_ui_dom_browser_min_p(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:f,y:s}}(floating_ui_dom_browser_min_v(e)))}function S(t){const e=H(t),n=["absolute","fixed"].includes(floating_ui_dom_browser_min_i(t).position)&&floating_ui_dom_browser_min_c(t)?floating_ui_dom_browser_min_T(t):t;return floating_ui_dom_browser_min_f(n)?e.filter((t=>floating_ui_dom_browser_min_f(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&floating_ui_dom_browser_min_s(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==floating_ui_dom_browser_min_r(t))):[]}const floating_ui_dom_browser_min_D={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?S(e):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=C(e,n,i);return t.top=floating_ui_dom_browser_min_p(o.top,t.top),t.right=floating_ui_dom_browser_min_g(o.right,t.right),t.bottom=floating_ui_dom_browser_min_g(o.bottom,t.bottom),t.left=floating_ui_dom_browser_min_p(o.left,t.left),t}),C(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=floating_ui_dom_browser_min_c(n),l=floating_ui_dom_browser_min_v(n);if(n===l)return e;let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==floating_ui_dom_browser_min_r(n)||floating_ui_dom_browser_min_u(l))&&(f=floating_ui_dom_browser_min_y(n)),floating_ui_dom_browser_min_c(n))){const t=floating_ui_dom_browser_min_w(n,!0);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}return{...e,x:e.x-f.scrollLeft+s.x,y:e.y-f.scrollTop+s.y}},isElement:floating_ui_dom_browser_min_f,getDimensions:W,getOffsetParent:floating_ui_dom_browser_min_T,getDocumentElement:floating_ui_dom_browser_min_v,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:floating_ui_dom_browser_min_b(e,floating_ui_dom_browser_min_T(n),o),floating:{...W(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===floating_ui_dom_browser_min_i(t).direction};function N(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:c=!1}=o,s=i&&!c,u=r&&!c,d=s||u?[...floating_ui_dom_browser_min_f(t)?H(t):[],...H(e)]:[];d.forEach((t=>{s&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)}));let h,a=null;l&&(a=new ResizeObserver(n),floating_ui_dom_browser_min_f(t)&&!c&&a.observe(t),a.observe(e));let g=c?floating_ui_dom_browser_min_w(t):null;return c&&function e(){const o=floating_ui_dom_browser_min_w(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,h=requestAnimationFrame(e)}(),l||n(),()=>{var t;d.forEach((t=>{s&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)})),null==(t=a)||t.disconnect(),a=null,c&&cancelAnimationFrame(h)}}const z=(t,n,o)=>floating_ui_core_browser_min_o(t,n,{platform:floating_ui_dom_browser_min_D,...o});
1030
-
1031
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
1032
- function _objectDestructuringEmpty(obj) {
1033
- if (obj == null) throw new TypeError("Cannot destructure undefined");
1034
- }
1035
- ;// CONCATENATED MODULE: ../../packages/popover/src/use-platform.tsx
1036
-
1037
-
1038
- /*
1039
- * Tencent is pleased to support the open source community by making
1040
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1041
- *
1042
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1043
- *
1044
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1045
- *
1046
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1047
- *
1048
- * ---------------------------------------------------
1049
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1050
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1051
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1052
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1053
- *
1054
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1055
- * the Software.
1056
- *
1057
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1058
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1059
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1060
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1061
- * IN THE SOFTWARE.
1062
- */
1063
- /* harmony default export */ const use_platform = (function (fullscreenTarget) {
1064
- var getElementRects = function getElementRects(_ref) {
1065
- var reference = _ref.reference,
1066
- floating = _ref.floating;
1067
- var refRect = reference.getBoundingClientRect();
1068
- var floatRect = floating.getBoundingClientRect();
1069
- return {
1070
- reference: {
1071
- width: refRect.width,
1072
- height: refRect.height,
1073
- x: refRect.x,
1074
- y: refRect.y
1075
- },
1076
- floating: {
1077
- width: floatRect.width,
1078
- height: floatRect.height,
1079
- x: floatRect.x,
1080
- y: floatRect.y
1081
- }
1082
- };
1083
- };
1084
-
1085
- var getDimensions = function getDimensions(element) {
1086
- var _element$getBoundingC = element.getBoundingClientRect(),
1087
- width = _element$getBoundingC.width,
1088
- height = _element$getBoundingC.height;
1089
-
1090
- return {
1091
- width: width,
1092
- height: height
1093
- };
1094
- };
1095
-
1096
- var getClippingRect = function getClippingRect(_ref2) {
1097
- _objectDestructuringEmpty(_ref2);
1098
-
1099
- var _a;
1100
-
1101
- var _ref3 = (_a = fullscreenTarget === null || fullscreenTarget === void 0 ? void 0 : fullscreenTarget.getBoundingClientRect()) !== null && _a !== void 0 ? _a : {},
1102
- _ref3$width = _ref3.width,
1103
- width = _ref3$width === void 0 ? 0 : _ref3$width,
1104
- _ref3$height = _ref3.height,
1105
- height = _ref3$height === void 0 ? 0 : _ref3$height;
1106
-
1107
- return {
1108
- width: width,
1109
- height: height,
1110
- x: 0,
1111
- y: 0
1112
- };
1113
- };
1114
-
1115
- return {
1116
- getElementRects: getElementRects,
1117
- getDimensions: getDimensions,
1118
- getClippingRect: getClippingRect
1119
- };
1120
- });
1121
- ;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
1122
-
1123
-
1124
-
1125
- /*
1126
- * Tencent is pleased to support the open source community by making
1127
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1128
- *
1129
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1130
- *
1131
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1132
- *
1133
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1134
- *
1135
- * ---------------------------------------------------
1136
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1137
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1138
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1139
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1140
- *
1141
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1142
- * the Software.
1143
- *
1144
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1145
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1146
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1147
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1148
- * IN THE SOFTWARE.
1149
- */
1150
-
1151
-
1152
-
1153
-
1154
-
1155
- /**
1156
- * 解析popover相关配置
1157
- */
1158
-
1159
- /* harmony default export */ const use_floating = (function (props, ctx, _ref) {
1160
- var refReference = _ref.refReference,
1161
- refContent = _ref.refContent,
1162
- refArrow = _ref.refArrow,
1163
- refRoot = _ref.refRoot;
1164
- var localIsShow = (0,external_vue_.ref)(false);
1165
- var fullScreenTarget = (0,external_vue_.ref)();
1166
-
1167
- var isElementFullScreen = function isElementFullScreen() {
1168
- var _a, _b, _c;
1169
-
1170
- var elReference = resolveTargetElement((_a = refReference.value) === null || _a === void 0 ? void 0 : _a.$el);
1171
-
1172
- if ((_b = document.fullscreenElement) === null || _b === void 0 ? void 0 : _b.shadowRoot) {
1173
- return document.fullscreenElement.shadowRoot.contains(elReference);
1174
- }
1175
-
1176
- return (_c = document.fullscreenElement) === null || _c === void 0 ? void 0 : _c.contains(elReference);
1177
- };
1178
- /**
1179
- * 当全屏模式开启,获取指定选择器下面的全屏元素
1180
- * 如果是启用了webcomponent组件,则返回shadowRoot内指定的目标元素
1181
- * @param selector
1182
- * @returns
1183
- */
1184
-
1185
-
1186
- var getFullscreenRoot = function getFullscreenRoot(selector) {
1187
- if (isElementFullScreen()) {
1188
- if (document.fullscreenElement.shadowRoot) {
1189
- return document.fullscreenElement.shadowRoot.querySelector(selector);
1190
- }
1191
-
1192
- return document.fullscreenElement.querySelector(selector);
1193
- }
1194
-
1195
- return document.body;
1196
- };
1197
-
1198
- var themeList = ['dark', 'light'];
1199
- /**
1200
- * 根据props.theme计算theme
1201
- * 返回systemTheme & customTheme
1202
- * systemTheme是指包含在 ['dark', 'light'] 内置主题
1203
- * customTheme是指自定义的theme,string类型
1204
- */
1205
-
1206
- var compTheme = (0,external_vue_.computed)(function () {
1207
- var _a, _b;
1208
-
1209
- var themes = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.split(/\s+/)) !== null && _b !== void 0 ? _b : [];
1210
- themes.sort(function (a, b) {
1211
- return Number(themeList.includes(b)) - Number(themeList.includes(a));
1212
- });
1213
- var systemThemes = themes;
1214
- var customThemes = themes.filter(function (item) {
1215
- return !themeList.includes(item);
1216
- });
1217
- return {
1218
- systemThemes: systemThemes,
1219
- customThemes: customThemes
1220
- };
1221
- });
1222
-
1223
- var isHideMiddlewareAvailable = function isHideMiddlewareAvailable() {
1224
- return props.autoVisibility;
1225
- };
1226
-
1227
- var isAutoPlacementAvailable = function isAutoPlacementAvailable() {
1228
- return props.autoPlacement;
1229
- };
1230
- /**
1231
- * 解析弹出reference元素,content元素, arrow元素
1232
- * @returns
1233
- */
1234
-
1235
-
1236
- var resolvePopElements = function resolvePopElements() {
1237
- var _a, _b, _c, _d;
1238
-
1239
- var elReference = resolveTargetElement((_a = refReference.value) === null || _a === void 0 ? void 0 : _a.$el);
1240
- var elContent = resolveTargetElement((_b = refContent.value) === null || _b === void 0 ? void 0 : _b.$el);
1241
- var elArrow = props.arrow ? resolveTargetElement((_c = refArrow.value) === null || _c === void 0 ? void 0 : _c.$el) : null;
1242
- var root = resolveTargetElement((_d = refRoot.value) === null || _d === void 0 ? void 0 : _d.$el);
1243
- return {
1244
- elReference: elReference,
1245
- elContent: elContent,
1246
- elArrow: elArrow,
1247
- root: root
1248
- };
1249
- };
1250
-
1251
- var resolveModifiers = function resolveModifiers() {
1252
- var resolveResult = {};
1253
-
1254
- if (Array.isArray(props.modifiers)) {
1255
- props.modifiers.forEach(function (m) {
1256
- var _a, _b, _c, _d;
1257
-
1258
- var result;
1259
-
1260
- if (m.name === 'offset') {
1261
- if (typeof ((_a = m.options) === null || _a === void 0 ? void 0 : _a.offset) === 'number') {
1262
- result = (_b = m.options) === null || _b === void 0 ? void 0 : _b.offset;
1263
- }
1264
-
1265
- if (Array.isArray((_c = m.options) === null || _c === void 0 ? void 0 : _c.offset)) {
1266
- var _ref2 = (_d = m.options) === null || _d === void 0 ? void 0 : _d.offset,
1267
- _ref3 = _slicedToArray(_ref2, 2),
1268
- mainAxis = _ref3[0],
1269
- crossAxis = _ref3[1];
1270
-
1271
- result = {
1272
- mainAxis: mainAxis,
1273
- crossAxis: crossAxis
1274
- };
1275
- }
1276
-
1277
- Object.assign(resolveResult, {
1278
- offset: result
1279
- });
1280
- }
1281
- });
1282
- }
1283
-
1284
- return resolveResult;
1285
- };
1286
-
1287
- var resolvePopOptions = function resolvePopOptions(elArrow, props) {
1288
- var _a;
1289
-
1290
- var modifiers = resolveModifiers();
1291
- var middleware = [T(modifiers.offset || props.offset), D({
1292
- padding: props.padding
1293
- })];
1294
- var options = {
1295
- placement: props.placement,
1296
- middleware: middleware
1297
- };
1298
-
1299
- if (props.arrow) {
1300
- middleware.push(m({
1301
- element: elArrow
1302
- }));
1303
- }
1304
-
1305
- if (isAutoPlacementAvailable()) {
1306
- middleware.push(v());
1307
- } else {
1308
- middleware.unshift(E());
1309
- middleware.push(b());
1310
- }
1311
-
1312
- if (isHideMiddlewareAvailable()) {
1313
- options.middleware.push(P());
1314
- }
1315
- /**
1316
- * 如果是全屏元素或者指定的虚拟元素
1317
- * 则启用自定义的platform
1318
- * 在弹出的全屏元素中,元素相对位置有别于document下面元素
1319
- * 全屏模式下面,需要自定义当前元素的一个platform
1320
- */
1321
-
1322
-
1323
- if (isElementFullScreen() || props.isVirtualEl) {
1324
- var _usePlatform = use_platform(fullScreenTarget.value),
1325
- getElementRects = _usePlatform.getElementRects,
1326
- getDimensions = _usePlatform.getDimensions,
1327
- getClippingRect = _usePlatform.getClippingRect;
1328
-
1329
- Object.assign(options, {
1330
- platform: Object.assign(Object.assign({}, (_a = props === null || props === void 0 ? void 0 : props.platform) !== null && _a !== void 0 ? _a : {}), {
1331
- getElementRects: getElementRects,
1332
- getDimensions: getDimensions,
1333
- getClippingRect: getClippingRect
1334
- })
1335
- });
1336
- }
1337
-
1338
- return options;
1339
- };
1340
-
1341
- var resolveTargetElement = function resolveTargetElement(target) {
1342
- if (target instanceof HTMLElement) {
1343
- return target;
1344
- }
1345
-
1346
- if (target instanceof Text) {
1347
- return resolveTargetElement(target.nextElementSibling);
1348
- }
1349
-
1350
- if (typeof (target === null || target === void 0 ? void 0 : target.getBoundingClientRect) === 'function') {
1351
- return target;
1352
- }
1353
-
1354
- return null;
1355
- }; // 兼容多种样式处理规则
1356
- // class custom-theme
1357
-
1358
-
1359
- var customThemeCls = compTheme.value.customThemes.join(' ');
1360
- var customTheme = compTheme.value.customThemes.reduce(function (out, cur) {
1361
- return Object.assign(_defineProperty({}, "data-".concat(cur, "-theme"), true), out);
1362
- }, {});
1363
- var contentClass = "".concat(customThemeCls);
1364
- var cleanup = null;
1365
-
1366
- var getRoundPixelVal = function getRoundPixelVal(val) {
1367
- var dpr = window.devicePixelRatio || 1;
1368
- return Math.round(val * dpr) / dpr || 0;
1369
- };
1370
-
1371
- var updatePopContentStyle = function updatePopContentStyle(elContent, x, y, middlewareData) {
1372
- var _a;
1373
-
1374
- if (props.disableTransform) {
1375
- Object.assign(elContent.style, {
1376
- left: "".concat(getRoundPixelVal(x), "px"),
1377
- top: "".concat(getRoundPixelVal(y), "px")
1378
- });
1379
- } else {
1380
- Object.assign(elContent.style, {
1381
- left: '0',
1382
- top: '0',
1383
- transform: "translate3d(".concat(getRoundPixelVal(x), "px,").concat(getRoundPixelVal(y), "px,0)")
1384
- });
1385
- }
1386
-
1387
- var referenceHidden = isHideMiddlewareAvailable() ? (_a = middlewareData.hide) === null || _a === void 0 ? void 0 : _a.referenceHidden : false;
1388
- Object.assign(elContent.style, {
1389
- visibility: referenceHidden ? 'hidden' : 'visible'
1390
- });
1391
- };
1392
-
1393
- var updateArrowStyle = function updateArrowStyle(elArrow, resolvedPlacement, middlewareData) {
1394
- var _a;
1395
-
1396
- if (props.arrow) {
1397
- var _ref4 = (_a = middlewareData.arrow) !== null && _a !== void 0 ? _a : {},
1398
- arrowX = _ref4.x,
1399
- arrowY = _ref4.y;
1400
-
1401
- elArrow.setAttribute('data-arrow', resolvedPlacement);
1402
- var arrowConfig = {
1403
- left: '',
1404
- top: '',
1405
- bottom: '',
1406
- right: ''
1407
- };
1408
- Object.assign(elArrow.style, arrowConfig);
1409
- var arrowSide = {
1410
- top: 'bottom',
1411
- right: 'left',
1412
- bottom: 'top',
1413
- left: 'right'
1414
- }[resolvedPlacement];
1415
- Object.assign(elArrow.style, _defineProperty({
1416
- left: arrowX !== null ? "".concat(arrowX, "px") : '',
1417
- top: arrowY !== null ? "".concat(arrowY, "px") : ''
1418
- }, arrowSide, '-4px'));
1419
- }
1420
- };
1421
-
1422
- var createPopInstance = function createPopInstance() {
1423
- var _resolvePopElements = resolvePopElements(),
1424
- elReference = _resolvePopElements.elReference,
1425
- elContent = _resolvePopElements.elContent;
1426
-
1427
- cleanup = N(elReference, elContent, function () {
1428
- updatePopover(null, props);
1429
- });
1430
- };
1431
-
1432
- var updatePopover = function updatePopover() {
1433
- var virtualEl = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
1434
- var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1435
-
1436
- var _resolvePopElements2 = resolvePopElements(),
1437
- elReference = _resolvePopElements2.elReference,
1438
- elContent = _resolvePopElements2.elContent,
1439
- elArrow = _resolvePopElements2.elArrow;
1440
-
1441
- var targetEl = virtualEl || elReference;
1442
- if (!targetEl || !elContent) return;
1443
- var options = resolvePopOptions(elArrow, props);
1444
- z(targetEl, elContent, options).then(function (_ref5) {
1445
- var x = _ref5.x,
1446
- y = _ref5.y,
1447
- placement = _ref5.placement,
1448
- middlewareData = _ref5.middlewareData;
1449
- var oldClass = elContent.className;
1450
- elContent.className = "".concat(oldClass.replace(contentClass, ''), " ").concat(contentClass).replace(/\s+/mg, ' ').replace(/^\s+|\s+$/g, '');
1451
- Object.keys(customTheme).forEach(function (key) {
1452
- elContent.setAttribute(key, customTheme[key]);
1453
- });
1454
- var placementStr = placement.split('-')[0];
1455
- var resolvedPlacement = placementStr;
1456
-
1457
- if (!['left', 'right', 'top', 'bottom'].includes(placementStr)) {
1458
- resolvedPlacement = 'top';
1459
- }
1460
-
1461
- updatePopContentStyle(elContent, x, y, middlewareData);
1462
- updateArrowStyle(elArrow, resolvedPlacement, middlewareData);
1463
- });
1464
- };
1465
-
1466
- var popHideTimerId = undefined;
1467
- var isMouseenter = false;
1468
-
1469
- var showPopover = function showPopover() {
1470
- // 设置settimeout避免hidePopover导致显示问题
1471
- setTimeout(function () {
1472
- !props.disabled && (localIsShow.value = true);
1473
- }, props.popoverDelay);
1474
- };
1475
-
1476
- var hidePopover = function hidePopover() {
1477
- popHideTimerId = setTimeout(function () {
1478
- localIsShow.value = false;
1479
- }, props.popoverDelay);
1480
- };
1481
-
1482
- var hanldePopoverShow = function hanldePopoverShow() {
1483
- var _a;
1484
-
1485
- var elContent = resolveTargetElement((_a = refContent.value) === null || _a === void 0 ? void 0 : _a.$el);
1486
- elContent.style.setProperty('display', 'block');
1487
- elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex : external_shared_.bkZIndexManager.getPopperIndex()));
1488
- updatePopover();
1489
- ctx.emit('afterShow', {
1490
- isShow: true
1491
- });
1492
- };
1493
-
1494
- var handlePopoverHide = function handlePopoverHide() {
1495
- var _a;
1496
-
1497
- var elContent = resolveTargetElement((_a = refContent.value) === null || _a === void 0 ? void 0 : _a.$el);
1498
- elContent.style.setProperty('display', 'none');
1499
- ctx.emit('afterHidden', {
1500
- isShow: false
1501
- });
1502
- };
1503
-
1504
- var triggerPopover = function triggerPopover() {
1505
- if (!localIsShow.value) {
1506
- showPopover();
1507
- } else {
1508
- hidePopover();
1509
- }
1510
- };
1511
-
1512
- var handleClickRef = function handleClickRef() {
1513
- triggerPopover();
1514
- };
1515
-
1516
- var handlePopContentMouseEnter = function handlePopContentMouseEnter() {
1517
- if (props.trigger !== 'hover') {
1518
- return;
1519
- }
1520
-
1521
- if (popHideTimerId) {
1522
- isMouseenter = true;
1523
- clearTimeout(popHideTimerId);
1524
- popHideTimerId = undefined;
1525
- }
1526
-
1527
- emitPopContentMouseEnter();
1528
- };
1529
-
1530
- var handlePopContentMouseLeave = function handlePopContentMouseLeave() {
1531
- if (isMouseenter) {
1532
- hidePopover();
1533
- isMouseenter = false;
1534
- emitPopContentMouseLeave();
1535
- }
1536
- };
1537
- /**
1538
- * 弹出内容鼠标移入事件
1539
- * 抛出相关事件,方便后续操作
1540
- * 例如:鼠标移入内容区域,则取消弹出内容隐藏操作
1541
- */
1542
-
1543
-
1544
- var emitPopContentMouseEnter = function emitPopContentMouseEnter() {
1545
- ctx.emit(EMIT_EVENTS.CONTENT_MOUSEENTER);
1546
- };
1547
- /**
1548
- * 弹出内容鼠标移出事件
1549
- */
1550
-
1551
-
1552
- var emitPopContentMouseLeave = function emitPopContentMouseLeave() {
1553
- ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE);
1554
- };
1555
-
1556
- var resolveTriggerEvents = function resolveTriggerEvents() {
1557
- var _a;
1558
-
1559
- var triggerEvents = {
1560
- hover: {
1561
- content: [['mouseenter', handlePopContentMouseEnter], ['mouseleave', handlePopContentMouseLeave]],
1562
- reference: [['mouseenter', showPopover], ['mouseleave', hidePopover], ['focus', showPopover], ['blur', hidePopover]]
1563
- },
1564
- click: [['click', handleClickRef]],
1565
- manual: {
1566
- content: [['mouseenter', emitPopContentMouseEnter], ['mouseleave', emitPopContentMouseLeave]],
1567
- reference: [[]]
1568
- }
1569
- };
1570
- return (_a = triggerEvents[props.trigger]) !== null && _a !== void 0 ? _a : [];
1571
- };
1572
-
1573
- var updateFullscreenTarget = function updateFullscreenTarget(val) {
1574
- fullScreenTarget.value = val;
1575
- };
1576
-
1577
- (0,external_vue_.watch)(localIsShow, function (val) {
1578
- if (val) {
1579
- hanldePopoverShow();
1580
- } else {
1581
- handlePopoverHide();
1582
- }
1583
- });
1584
-
1585
- var stopHide = function stopHide() {
1586
- if (popHideTimerId) {
1587
- isMouseenter = true;
1588
- clearTimeout(popHideTimerId);
1589
- popHideTimerId = undefined;
1590
- }
1591
- };
1592
-
1593
- return {
1594
- showPopover: showPopover,
1595
- hidePopover: hidePopover,
1596
- resolveTriggerEvents: resolveTriggerEvents,
1597
- updatePopover: updatePopover,
1598
- triggerPopover: triggerPopover,
1599
- resolvePopElements: resolvePopElements,
1600
- isElementFullScreen: isElementFullScreen,
1601
- resolveTargetElement: resolveTargetElement,
1602
- createPopInstance: createPopInstance,
1603
- updateFullscreenTarget: updateFullscreenTarget,
1604
- getFullscreenRoot: getFullscreenRoot,
1605
- stopHide: stopHide,
1606
- localIsShow: localIsShow,
1607
- cleanup: cleanup
1608
- };
1609
- });
1610
- // EXTERNAL MODULE: ../../node_modules/uuid/index.js
1611
- var uuid = __webpack_require__(8022);
1612
- ;// CONCATENATED MODULE: ../../packages/popover/src/utils.ts
1613
- /*
1614
- * Tencent is pleased to support the open source community by making
1615
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1616
- *
1617
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1618
- *
1619
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1620
- *
1621
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1622
- *
1623
- * ---------------------------------------------------
1624
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1625
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1626
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1627
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1628
- *
1629
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1630
- * the Software.
1631
- *
1632
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1633
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1634
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1635
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1636
- * IN THE SOFTWARE.
1637
- */
1638
-
1639
- var CachedConst = {};
1640
- var isAvailableId = function isAvailableId(query) {
1641
- var container = document.querySelector(query);
1642
- return container instanceof HTMLElement;
1643
- };
1644
- var getFullscreenUid = function getFullscreenUid() {
1645
- if (!CachedConst.fullscreenReferId) {
1646
- CachedConst.fullscreenReferId = "id_".concat((0,uuid.v4)());
1647
- }
1648
-
1649
- return CachedConst.fullscreenReferId;
1650
- };
1651
- ;// CONCATENATED MODULE: ../../packages/popover/src/use-popper-id.ts
1652
- /*
1653
- * Tencent is pleased to support the open source community by making
1654
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1655
- *
1656
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1657
- *
1658
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1659
- *
1660
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1661
- *
1662
- * ---------------------------------------------------
1663
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1664
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1665
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1666
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1667
- *
1668
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1669
- * the Software.
1670
- *
1671
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1672
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1673
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1674
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1675
- * IN THE SOFTWARE.
1676
- */
1677
-
1678
-
1679
- var popContainerId = null;
1680
- var parentNodeReferId = null;
1681
- /* harmony default export */ const use_popper_id = (function (props) {
1682
- var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#';
1683
-
1684
- var getPrefixId = function getPrefixId(root) {
1685
- var resolvedBoundary = null;
1686
-
1687
- var resolveBoundary = function resolveBoundary(fn) {
1688
- if (resolvedBoundary === null) {
1689
- fn();
1690
- }
1691
- };
1692
-
1693
- var resolveParentBoundary = function resolveParentBoundary() {
1694
- if (/^parent$/i.test(props.boundary)) {
1695
- resolvedBoundary = "".concat(prefix).concat(popContainerId);
1696
-
1697
- var _ref = root || {},
1698
- parentNode = _ref.parentNode;
1699
-
1700
- if (parentNode === null || parentNode === void 0 ? void 0 : parentNode.parentNode) {
1701
- parentNode.parentNode.setAttribute('data-pnode-id', parentNodeReferId);
1702
- resolvedBoundary = "[data-pnode-id=".concat(parentNodeReferId, "]");
1703
- }
1704
- }
1705
- };
1706
-
1707
- var resolveCommonBoundary = function resolveCommonBoundary() {
1708
- if (!/^body$/i.test(props.boundary) && typeof props.boundary === 'string') {
1709
- if (!isAvailableId(props.boundary)) {
1710
- console.error('props.boundary is not available selector');
1711
- resolvedBoundary = 'body';
1712
- return;
1713
- }
1714
-
1715
- resolvedBoundary = props.boundary;
1716
- }
1717
- };
1718
-
1719
- resolveBoundary(resolveParentBoundary);
1720
- resolveBoundary(resolveCommonBoundary);
1721
- resolveBoundary(function () {
1722
- resolvedBoundary = typeof props.boundary === 'string' ? props.boundary : "".concat(prefix).concat(popContainerId);
1723
- });
1724
- return resolvedBoundary;
1725
- };
1726
-
1727
- if (popContainerId === null || !isAvailableId("#".concat(popContainerId))) {
1728
- popContainerId = "id_".concat((0,uuid.v4)());
1729
- var popContainer = document.createElement('div');
1730
- popContainer.setAttribute('id', popContainerId);
1731
- popContainer.setAttribute('data-popper-id', popContainerId);
1732
- document.body.append(popContainer);
1733
- }
1734
-
1735
- if (parentNodeReferId === null) {
1736
- parentNodeReferId = "id_".concat((0,uuid.v4)());
1737
- }
1738
-
1739
- return {
1740
- popContainerId: popContainerId,
1741
- prefixId: getPrefixId(),
1742
- getPrefixId: getPrefixId
1743
- };
1744
- });
1745
- ;// CONCATENATED MODULE: ../../packages/popover/src/use-popover-init.ts
1746
-
1747
-
1748
- /*
1749
- * Tencent is pleased to support the open source community by making
1750
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1751
- *
1752
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1753
- *
1754
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1755
- *
1756
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1757
- *
1758
- * ---------------------------------------------------
1759
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1760
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1761
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1762
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1763
- *
1764
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1765
- * the Software.
1766
- *
1767
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1768
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1769
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1770
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1771
- * IN THE SOFTWARE.
1772
- */
1773
-
1774
-
1775
-
1776
-
1777
-
1778
- /* harmony default export */ const use_popover_init = (function (props, ctx, _ref) {
1779
- var refReference = _ref.refReference,
1780
- refContent = _ref.refContent,
1781
- refArrow = _ref.refArrow,
1782
- refRoot = _ref.refRoot;
1783
- var storeEvents = null;
1784
- var isFullscreen = (0,external_vue_.ref)(false);
1785
- var fullscreenReferId = getFullscreenUid();
1786
- var fullScreenTarget = (0,external_vue_.ref)();
1787
-
1788
- var _useFloating = use_floating(props, ctx, {
1789
- refReference: refReference,
1790
- refContent: refContent,
1791
- refArrow: refArrow,
1792
- refRoot: refRoot
1793
- }),
1794
- localIsShow = _useFloating.localIsShow,
1795
- showPopover = _useFloating.showPopover,
1796
- hidePopover = _useFloating.hidePopover,
1797
- updatePopover = _useFloating.updatePopover,
1798
- resolveTriggerEvents = _useFloating.resolveTriggerEvents,
1799
- resolvePopElements = _useFloating.resolvePopElements,
1800
- isElementFullScreen = _useFloating.isElementFullScreen,
1801
- updateFullscreenTarget = _useFloating.updateFullscreenTarget,
1802
- createPopInstance = _useFloating.createPopInstance,
1803
- getFullscreenRoot = _useFloating.getFullscreenRoot,
1804
- stopHide = _useFloating.stopHide;
1805
-
1806
- var showFn = function showFn() {
1807
- showPopover();
1808
- };
1809
-
1810
- var hideFn = function hideFn() {
1811
- hidePopover();
1812
- };
1813
-
1814
- var initPopInstance = function initPopInstance() {
1815
- createPopInstance();
1816
-
1817
- if (props.always) {
1818
- showPopover();
1819
- } else {
1820
- addEventToPopTargetEl();
1821
- }
1822
- };
1823
-
1824
- var addEventToPopTargetEl = function addEventToPopTargetEl() {
1825
- var _resolvePopElements = resolvePopElements(),
1826
- elReference = _resolvePopElements.elReference,
1827
- elContent = _resolvePopElements.elContent;
1828
-
1829
- storeEvents = resolveTriggerEvents();
1830
-
1831
- if (Array.isArray(storeEvents)) {
1832
- addEventToTargetEl(elReference, storeEvents);
1833
- } else {
1834
- var _storeEvents = storeEvents,
1835
- content = _storeEvents.content,
1836
- reference = _storeEvents.reference;
1837
- addEventToTargetEl(elReference, reference);
1838
- addEventToTargetEl(elContent, content);
1839
- }
1840
- };
1841
-
1842
- var addEventToTargetEl = function addEventToTargetEl(target, evets) {
1843
- evets.forEach(function (_ref2) {
1844
- var _ref3 = _slicedToArray(_ref2, 2),
1845
- event = _ref3[0],
1846
- listener = _ref3[1];
1847
-
1848
- if (event && typeof listener === 'function') {
1849
- target.addEventListener(event, listener);
1850
- }
1851
- });
1852
- };
1853
-
1854
- var removeEventListener = function removeEventListener() {
1855
- if (storeEvents === null || storeEvents === void 0 ? void 0 : storeEvents.length) {
1856
- var _resolvePopElements2 = resolvePopElements(),
1857
- elReference = _resolvePopElements2.elReference;
1858
-
1859
- if (elReference) {
1860
- storeEvents.forEach(function (_ref4) {
1861
- var _ref5 = _slicedToArray(_ref4, 2),
1862
- event = _ref5[0],
1863
- listener = _ref5[1];
1864
-
1865
- if (event && typeof listener === 'function') {
1866
- elReference.removeEventListener(event, listener);
1867
- }
1868
- });
1869
- }
1870
-
1871
- storeEvents = null;
1872
- }
1873
- };
1874
-
1875
- var updateBoundary = function updateBoundary() {
1876
- var _resolvePopElements3 = resolvePopElements(),
1877
- elReference = _resolvePopElements3.elReference,
1878
- root = _resolvePopElements3.root;
1879
-
1880
- if (isFullscreen.value) {
1881
- boundary.value = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value;
1882
- return;
1883
- }
1884
-
1885
- boundary.value = getPrefixId(root || elReference);
1886
- };
1887
-
1888
- var _usePopperId = use_popper_id(props, '#'),
1889
- getPrefixId = _usePopperId.getPrefixId;
1890
-
1891
- var setFullscreenTag = function setFullscreenTag() {
1892
- var _a;
1893
-
1894
- (_a = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) === null || _a === void 0 ? void 0 : _a.setAttribute('data-fllsrn-id', fullscreenReferId);
1895
- };
1896
-
1897
- var clearFullscreenTag = function clearFullscreenTag() {
1898
- var _a, _b;
1899
-
1900
- var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
1901
- ((_b = (_a = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) === null || _a === void 0 ? void 0 : _a.querySelectorAll(query)) !== null && _b !== void 0 ? _b : []).forEach(function (element) {
1902
- element === null || element === void 0 ? void 0 : element.removeAttribute('data-fllsrn-id');
1903
- });
1904
- };
1905
-
1906
- var boundary = (0,external_vue_.ref)();
1907
-
1908
- var beforeInstanceUnmount = function beforeInstanceUnmount() {
1909
- removeEventListener();
1910
- };
1911
-
1912
- var updateFullscreen = function updateFullscreen(target) {
1913
- fullScreenTarget.value = target;
1914
- updateFullscreenTarget(target);
1915
- isFullscreen.value = isElementFullScreen();
1916
- setFullscreenTag();
1917
- };
1918
-
1919
- var handleFullscreenChange = function handleFullscreenChange(e) {
1920
- if (!document.fullscreenElement) {
1921
- clearFullscreenTag();
1922
- }
1923
-
1924
- updateFullscreen(e.target);
1925
- updateBoundary();
1926
- updatePopover(null, props);
1927
- };
1928
-
1929
- var onMountedFn = function onMountedFn() {
1930
- if (props.disabled) {
1931
- return;
1932
- }
1933
-
1934
- initPopInstance();
1935
-
1936
- if (isElementFullScreen()) {
1937
- var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
1938
- var target = getFullscreenRoot(query);
1939
- updateFullscreen(target);
1940
- }
1941
-
1942
- updateBoundary();
1943
- document.body.addEventListener('fullscreenchange', handleFullscreenChange);
1944
- };
1945
-
1946
- var onUnmountedFn = function onUnmountedFn() {
1947
- beforeInstanceUnmount();
1948
- document.body.removeEventListener('fullscreenchange', handleFullscreenChange);
1949
- };
1950
-
1951
- var handleClickOutside = function handleClickOutside(_e) {
1952
- ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
1953
- isShow: localIsShow.value,
1954
- event: _e
1955
- });
1956
-
1957
- if (props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual') {
1958
- return;
1959
- }
1960
-
1961
- if (localIsShow.value) {
1962
- hideFn();
1963
- }
1964
- };
1965
-
1966
- return {
1967
- onMountedFn: onMountedFn,
1968
- onUnmountedFn: onUnmountedFn,
1969
- handleClickOutside: handleClickOutside,
1970
- beforeInstanceUnmount: beforeInstanceUnmount,
1971
- updateBoundary: updateBoundary,
1972
- initPopInstance: initPopInstance,
1973
- updatePopover: updatePopover,
1974
- showPopover: showPopover,
1975
- hidePopover: hidePopover,
1976
- showFn: showFn,
1977
- hideFn: hideFn,
1978
- stopHide: stopHide,
1979
- isFullscreen: isFullscreen,
1980
- boundary: boundary,
1981
- localIsShow: localIsShow
1982
- };
1983
- });
1984
- ;// CONCATENATED MODULE: ../../packages/popover/src/popover.tsx
1985
-
1986
-
1987
- /*
1988
- * Tencent is pleased to support the open source community by making
1989
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1990
- *
1991
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1992
- *
1993
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1994
- *
1995
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1996
- *
1997
- * ---------------------------------------------------
1998
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1999
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2000
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2001
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2002
- *
2003
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2004
- * the Software.
2005
- *
2006
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2007
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2008
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2009
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2010
- * IN THE SOFTWARE.
2011
- */
2012
-
2013
-
2014
-
2015
-
2016
-
2017
-
2018
-
2019
-
2020
-
2021
-
2022
- /* harmony default export */ const popover = ((0,external_vue_.defineComponent)({
2023
- name: 'Popover',
2024
- components: {
2025
- Content: content,
2026
- Arrow: src_arrow,
2027
- Root: root
2028
- },
2029
- directives: {
2030
- clickoutside: external_directives_.clickoutside
2031
- },
2032
- props: PopoverProps,
2033
- emits: EMIT_EVENT_TYPES,
2034
- setup: function setup(props, ctx) {
2035
- var content = props.content,
2036
- theme = props.theme,
2037
- disableTeleport = props.disableTeleport;
2038
-
2039
- var _toRefs = (0,external_vue_.toRefs)(props),
2040
- reference = _toRefs.reference;
2041
-
2042
- var refDefaultReference = (0,external_vue_.ref)();
2043
- var refContent = (0,external_vue_.ref)();
2044
- var refArrow = (0,external_vue_.ref)();
2045
- var refRoot = (0,external_vue_.ref)();
2046
- var refReference = (0,external_vue_.computed)(function () {
2047
- return reference.value || refDefaultReference.value;
2048
- });
2049
-
2050
- var _usePopoverInit = use_popover_init(props, ctx, {
2051
- refReference: refReference,
2052
- refContent: refContent,
2053
- refArrow: refArrow,
2054
- refRoot: refRoot
2055
- }),
2056
- onMountedFn = _usePopoverInit.onMountedFn,
2057
- onUnmountedFn = _usePopoverInit.onUnmountedFn,
2058
- handleClickOutside = _usePopoverInit.handleClickOutside,
2059
- beforeInstanceUnmount = _usePopoverInit.beforeInstanceUnmount,
2060
- updateBoundary = _usePopoverInit.updateBoundary,
2061
- initPopInstance = _usePopoverInit.initPopInstance,
2062
- showFn = _usePopoverInit.showFn,
2063
- hideFn = _usePopoverInit.hideFn,
2064
- showPopover = _usePopoverInit.showPopover,
2065
- hidePopover = _usePopoverInit.hidePopover,
2066
- updatePopover = _usePopoverInit.updatePopover,
2067
- stopHide = _usePopoverInit.stopHide,
2068
- localIsShow = _usePopoverInit.localIsShow,
2069
- boundary = _usePopoverInit.boundary;
2070
-
2071
- if (!props.always && !props.disabled) {
2072
- (0,external_vue_.watch)(function () {
2073
- return props.isShow;
2074
- }, function () {
2075
- props.isShow ? showPopover() : hidePopover();
2076
- }, {
2077
- immediate: true
2078
- });
2079
- }
2080
-
2081
- (0,external_vue_.watch)(function () {
2082
- return [props.disabled];
2083
- }, function (val) {
2084
- if (val[0]) {
2085
- beforeInstanceUnmount();
2086
- } else {
2087
- initPopInstance();
2088
- }
2089
- });
2090
- updateBoundary();
2091
- (0,external_vue_.onMounted)(onMountedFn);
2092
- (0,external_vue_.onBeforeUnmount)(onUnmountedFn);
2093
- var transBoundary = (0,external_vue_.computed)(function () {
2094
- return !disableTeleport;
2095
- });
2096
-
2097
- var show = function show() {
2098
- showFn();
2099
- };
2100
-
2101
- var hide = function hide() {
2102
- hideFn();
2103
- };
2104
-
2105
- var contentIsShow = (0,external_vue_.computed)(function () {
2106
- if (props.renderType === external_shared_.RenderType.AUTO) {
2107
- return true;
2108
- }
2109
-
2110
- return localIsShow.value;
2111
- });
2112
- return {
2113
- boundary: boundary,
2114
- arrow: props.arrow,
2115
- refDefaultReference: refDefaultReference,
2116
- refContent: refContent,
2117
- refArrow: refArrow,
2118
- content: content,
2119
- theme: theme,
2120
- transBoundary: transBoundary,
2121
- handleClickOutside: handleClickOutside,
2122
- updatePopover: updatePopover,
2123
- hide: hide,
2124
- show: show,
2125
- stopHide: stopHide,
2126
- contentIsShow: contentIsShow
2127
- };
2128
- },
2129
- render: function render() {
2130
- var _this = this;
2131
-
2132
- var _a, _b, _c, _d, _e, _f;
2133
-
2134
- return (0,external_vue_.createVNode)(root, {
2135
- "ref": "refRoot"
2136
- }, {
2137
- "default": function _default() {
2138
- return [(0,external_vue_.createVNode)(reference, {
2139
- "ref": "refDefaultReference"
2140
- }, {
2141
- "default": function _default() {
2142
- return [(_c = (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,external_vue_.createVNode)("span", null, null)];
2143
- }
2144
- }), (0,external_vue_.createVNode)(external_vue_.Teleport, {
2145
- "to": _this.boundary,
2146
- "disabled": !_this.transBoundary
2147
- }, {
2148
- "default": function _default() {
2149
- return [(0,external_vue_.withDirectives)((0,external_vue_.createVNode)(content, {
2150
- "ref": "refContent",
2151
- "data-theme": _this.theme,
2152
- "width": _this.width,
2153
- "height": _this.height,
2154
- "maxHeight": _this.maxHeight
2155
- }, {
2156
- "default": function _default() {
2157
- return [_this.contentIsShow ? (_f = (_e = (_d = _this.$slots).content) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : _this.content : ''];
2158
- },
2159
- arrow: function arrow() {
2160
- var _a, _b;
2161
-
2162
- return _this.arrow ? (0,external_vue_.createVNode)(src_arrow, {
2163
- "ref": "refArrow"
2164
- }, {
2165
- "default": function _default() {
2166
- return [(_b = (_a = _this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a)];
2167
- }
2168
- }) : '';
2169
- }
2170
- }), [[(0,external_vue_.resolveDirective)("clickoutside"), _this.handleClickOutside]])];
2171
- }
2172
- })];
2173
- }
2174
- });
2175
- }
2176
- }));
2177
- ;// CONCATENATED MODULE: ../../packages/popover/src/plugin-popover.tsx
2178
-
2179
-
2180
-
2181
- /*
2182
- * Tencent is pleased to support the open source community by making
2183
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2184
- *
2185
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2186
- *
2187
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2188
- *
2189
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2190
- *
2191
- * ---------------------------------------------------
2192
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2193
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2194
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2195
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2196
- *
2197
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2198
- * the Software.
2199
- *
2200
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2201
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2202
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2203
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2204
- * IN THE SOFTWARE.
2205
- */
2206
-
2207
-
2208
-
2209
- function createPopoverComponent(options) {
2210
- var $PopoverInstance = null;
2211
- var $PopoverInstanceVm = null;
2212
- var $PopoverInstanceEl = null;
2213
- var resolvedOptions = Object.assign(Object.assign({
2214
- boundary: 'body',
2215
- placement: 'top',
2216
- autoVisibility: false
2217
- }, options), {
2218
- trigger: 'manual'
2219
- });
2220
-
2221
- var isElement = function isElement(element) {
2222
- return element instanceof Element || element instanceof HTMLDocument;
2223
- };
2224
-
2225
- var popoverComponent = {
2226
- name: '$popover',
2227
- setup: function setup(_, _ref) {
2228
- var expose = _ref.expose;
2229
- var refProps = (0,external_vue_.ref)(resolvedOptions);
2230
- var refReference = (0,external_vue_.ref)();
2231
- var referStyle = (0,external_vue_.ref)({
2232
- position: 'absolute',
2233
- pointerEvents: 'none',
2234
- left: 0,
2235
- top: 0,
2236
- width: 'auto',
2237
- height: 'auto',
2238
- transform: ''
2239
- });
2240
-
2241
- var updateStyle = function updateStyle(target) {
2242
- if (isElement(target)) {
2243
- var _target$getBoundingCl = target.getBoundingClientRect(),
2244
- x = _target$getBoundingCl.x,
2245
- y = _target$getBoundingCl.y,
2246
- width = _target$getBoundingCl.width,
2247
- height = _target$getBoundingCl.height;
2248
-
2249
- Object.assign(referStyle.value, {
2250
- width: "".concat(width, "px"),
2251
- height: "".concat(height, "px"),
2252
- transform: "translate3d(".concat(x, "px,").concat(y, "px,0)")
2253
- });
2254
- return;
2255
- }
2256
-
2257
- var clientX = target.clientX,
2258
- clientY = target.clientY;
2259
- Object.assign(referStyle.value, {
2260
- transform: "translate3d(".concat(clientX, "px,").concat(clientY, "px,0)"),
2261
- width: '10px',
2262
- height: '10px'
2263
- });
2264
- };
2265
-
2266
- updateStyle(refProps.value.target);
2267
-
2268
- var show = function show() {
2269
- setTimeout(function () {
2270
- var _a, _b;
2271
-
2272
- (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.show) === null || _b === void 0 ? void 0 : _b.call(_a);
2273
- });
2274
- };
2275
-
2276
- var hide = function hide() {
2277
- var _a, _b;
2278
-
2279
- (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.hide) === null || _b === void 0 ? void 0 : _b.call(_a);
2280
- };
2281
-
2282
- var stopHide = function stopHide() {
2283
- var _a, _b;
2284
-
2285
- (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.stopHide) === null || _b === void 0 ? void 0 : _b.call(_a);
2286
- };
2287
-
2288
- var attrs = (0,external_vue_.computed)(function () {
2289
- var excludeKeys = ['target'];
2290
- return Object.keys(refProps.value).filter(function (key) {
2291
- return !excludeKeys.includes(key);
2292
- }).reduce(function (out, curKey) {
2293
- return Object.assign(Object.assign({}, out), _defineProperty({}, curKey, refProps.value[curKey]));
2294
- }, {});
2295
- });
2296
-
2297
- var updateTarget = function updateTarget(target) {
2298
- var _a, _b;
2299
-
2300
- refProps.value.target = target;
2301
- updateStyle(target);
2302
- (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.updatePopover) === null || _b === void 0 ? void 0 : _b.call(_a);
2303
- (0,external_vue_.nextTick)(function () {
2304
- var _a, _b;
2305
-
2306
- (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.updatePopover) === null || _b === void 0 ? void 0 : _b.call(_a);
2307
- });
2308
- };
2309
-
2310
- var handleContentMouseenter = function handleContentMouseenter() {
2311
- var _a;
2312
-
2313
- (_a = resolvedOptions.onContentMouseenter) === null || _a === void 0 ? void 0 : _a.call(resolvedOptions);
2314
- };
2315
-
2316
- var handleContentMouseleave = function handleContentMouseleave() {
2317
- var _a;
2318
-
2319
- (_a = resolvedOptions.onContentMouseleave) === null || _a === void 0 ? void 0 : _a.call(resolvedOptions);
2320
- };
2321
-
2322
- expose({
2323
- show: show,
2324
- hide: hide,
2325
- updateTarget: updateTarget,
2326
- stopHide: stopHide
2327
- });
2328
- return function () {
2329
- return (0,external_vue_.createVNode)(popover, (0,external_vue_.mergeProps)(attrs.value, {
2330
- "ref": refReference,
2331
- "onContentMouseenter": handleContentMouseenter,
2332
- "onContentMouseleave": handleContentMouseleave
2333
- }), {
2334
- "default": function _default() {
2335
- return [(0,external_vue_.createVNode)("span", {
2336
- "style": referStyle.value
2337
- }, null)];
2338
- }
2339
- });
2340
- };
2341
- }
2342
- };
2343
-
2344
- function getBoundaryDom(boundary) {
2345
- if (/^body$/i.test(boundary)) {
2346
- return document.body;
2347
- }
2348
-
2349
- if (/^parent$/i.test(boundary)) {
2350
- if (isElement(resolvedOptions.target)) {
2351
- return resolvedOptions.target.parentNode;
2352
- }
2353
-
2354
- return resolvedOptions.target.target.parentNode;
2355
- }
2356
-
2357
- if (typeof boundary === 'string' && isAvailableId(boundary)) {
2358
- return document.querySelector(boundary);
2359
- }
2360
-
2361
- return document.body;
2362
- }
2363
-
2364
- if ($PopoverInstance === null) {
2365
- $PopoverInstanceEl = document.createElement('div');
2366
- getBoundaryDom(resolvedOptions.boundary).append($PopoverInstanceEl);
2367
- setTimeout(function () {
2368
- $PopoverInstance = (0,external_vue_.createApp)(popoverComponent);
2369
- $PopoverInstanceVm = $PopoverInstance.mount($PopoverInstanceEl);
2370
- });
2371
- }
2372
-
2373
- function close() {
2374
- if ($PopoverInstance) {
2375
- $PopoverInstance.unmount();
2376
- $PopoverInstanceVm = null;
2377
- $PopoverInstance = null;
2378
- $PopoverInstanceEl.remove();
2379
- }
2380
- }
2381
-
2382
- ;
2383
-
2384
- function show() {
2385
- $PopoverInstanceVm === null || $PopoverInstanceVm === void 0 ? void 0 : $PopoverInstanceVm.show();
2386
- }
2387
-
2388
- function update(e) {
2389
- $PopoverInstanceVm === null || $PopoverInstanceVm === void 0 ? void 0 : $PopoverInstanceVm.updateTarget(e);
2390
- }
2391
-
2392
- ;
2393
-
2394
- function hide() {
2395
- $PopoverInstanceVm === null || $PopoverInstanceVm === void 0 ? void 0 : $PopoverInstanceVm.hide();
2396
- }
2397
-
2398
- return {
2399
- close: close,
2400
- show: show,
2401
- hide: hide,
2402
- update: update,
2403
-
2404
- get vm() {
2405
- return $PopoverInstanceVm;
2406
- },
2407
-
2408
- get $el() {
2409
- return $PopoverInstanceVm.$el;
2410
- }
2411
-
2412
- };
2413
- }
2414
- ;// CONCATENATED MODULE: ../../packages/plugin-popover/src/index.ts
2415
- /**
2416
- * Tencent is pleased to support the open source community by making
2417
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
2418
- *
2419
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
2420
- *
2421
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
2422
- *
2423
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
2424
- *
2425
- * ---------------------------------------------------
2426
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
2427
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
2428
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
2429
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2430
- *
2431
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
2432
- * the Software.
2433
- *
2434
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
2435
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2436
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
2437
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2438
- * IN THE SOFTWARE.
2439
- */
2440
-
2441
- /* harmony default export */ const src = (createPopoverComponent);
2442
- })();
2443
-
2444
- /******/ return __webpack_exports__;
2445
- /******/ })()
2446
- ;
2447
- });
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("../shared"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["vue","../shared","vue-types"],t);else{var n="object"==typeof exports?t(require("vue"),require("../shared"),require("vue-types")):t(e.vue,e["../shared"],e["vue-types"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,s=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,h=v-a+(m-u)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||v>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=v,u=m,r=d;var g=(1e4*(268435455&(v+=122192928e5))+m)%4294967296;s[c++]=g>>>24&255,s[c++]=g>>>16&255,s[c++]=g>>>8&255,s[c++]=255&g;var y=v/4294967296*1e4&268435455;s[c++]=y>>>8&255,s[c++]=255&y,s[c++]=y>>>24&15|16,s[c++]=y>>>16&255,s[c++]=d>>>8|128,s[c++]=255&d;for(var w=0;w<6;++w)s[c+w]=f[w];return t||l(s)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:e=>{"use strict";e.exports=n}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}i.r(l),i.d(l,{default:()=>Be});var t=i(748),n=i(4212);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}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 l,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,l=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw l}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var a,u=new Map;function c(e,t){var n=[];return Array.isArray(t.arg)?n=t.arg:function(e){return"undefined"!=typeof Element&&e instanceof Element}(t.arg)&&n.push(t.arg),function(o,r){var i=t.instance.popperRef,l=o.target,a=null==r?void 0:r.target,u=!t||!t.instance,c=!l||!a,s=e.contains(l)||e.contains(a),f=e===l,d=n.length&&n.some((function(e){return null==e?void 0:e.contains(l)}))||n.length&&n.includes(a),p=i&&(i.contains(l)||i.contains(a));u||c||s||f||d||p||t.value(o,r)}}document.addEventListener("mousedown",(function(e){return a=e})),document.addEventListener("mouseup",(function(e){var t,n=o(u.values());try{for(n.s();!(t=n.n()).done;){var r,i=o(t.value);try{for(i.s();!(r=i.n()).done;)(0,r.value.documentHandler)(e,a)}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}}));var s={beforeMount:function(e,t){u.has(e)||u.set(e,[]),u.get(e).push({documentHandler:c(e,t),bindingFn:t.value})},updated:function(e,t){u.has(e)||u.set(e,[]);var n=u.get(e),o=n.findIndex((function(e){return e.bindingFn===t.oldValue})),r={documentHandler:c(e,t),bindingFn:t.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted:function(e){u.delete(e)},install:function(e){e.directive("bkTooltips",s)}};const f=s,d=(0,t.defineComponent)({name:"PopArrow",render:function(){var e=(0,n.resolveClassName)("pop2-arrow");return(0,t.createVNode)("div",{class:e},null)}});var p,v,m=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside",e.CONTENT_MOUSEENTER="contentMouseenter",e.CONTENT_MOUSELEAVE="contentMouseleave",e.STOP_HIDE="stopHide"}(v||(v={}));var h=(e(p={},v.SHOW,m),e(p,v.HIDE,m),e(p,v.CLICK_OUTSIDE,m),e(p,v.CONTENT_MOUSEENTER,m),e(p,v.CONTENT_MOUSELEAVE,m),e(p,v.STOP_HIDE,m),p);const g=(0,t.defineComponent)({name:"PopContent",props:{width:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),height:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),maxHeight:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto")},setup:function(e){var n=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,t.computed)((function(){return{width:n(e.width),height:n(e.height),maxHeight:n(e.maxHeight)}}))}},render:function(){var e,o,r,i,l,a,u=[(0,n.resolveClassName)("popover"),(0,n.resolveClassName)("pop2-content")];return(0,t.createVNode)("div",{class:u,tabindex:"-1",style:this.style},[null!==(r=null===(o=(e=this.$slots).arrow)||void 0===o?void 0:o.call(e))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).default)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var y,w,b,T,x,R,P,E,O,A,C,S,N,L=i(210);(0,L.createTypes)({}),function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(y||(y={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(w||(w={})),function(e){e.IF="if",e.SHOW="show"}(b||(b={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(T||(T={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(x||(x={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(R||(R={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(P||(P={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(E||(E={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(O||(O={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(A||(A={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(C||(C={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(S||(S={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(N||(N={}));var I={onAfterHidden:Function,onAfterShow:Function},H=Object.assign({isShow:n.PropTypes.bool.def(!1),always:n.PropTypes.bool.def(!1),disabled:n.PropTypes.bool.def(!1),width:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),height:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),maxHeight:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),content:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def(""),placement:(0,n.placementType)().def(R.TOP),theme:n.PropTypes.string.def("dark"),trigger:(0,L.toType)("trigger",{}).def(P.HOVER),renderType:(0,L.toType)("trigger",{}).def(E.AUTO),arrow:n.PropTypes.bool.def(!0),padding:n.PropTypes.number.def(5),offset:n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.shape({})]).def(6),boundary:n.PropTypes.oneOfType([n.PropTypes.string.def("parent"),n.PropTypes.instanceOf(HTMLElement)]),zIndex:n.PropTypes.number.def(void 0),disableTeleport:n.PropTypes.bool.def(!1),autoPlacement:n.PropTypes.bool.def(!1),autoVisibility:n.PropTypes.bool.def(!0),disableOutsideClick:n.PropTypes.bool.def(!1),disableTransform:n.PropTypes.bool.def(!1),reference:n.PropTypes.any.def(null),modifiers:n.PropTypes.array.def([]),popoverDelay:n.PropTypes.number.def(100)},I);const D=(0,t.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),M=(0,t.defineComponent)({props:{class:n.PropTypes.string.def("")},render:function(){var e,n;return(0,t.createVNode)(t.Fragment,null,[null===(n=(e=this.$slots).default)||void 0===n?void 0:n.call(e)])}});function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e){return e.split("-")[0]}function k(e){return e.split("-")[1]}function U(e){return["top","bottom"].includes(F(e))?"x":"y"}function _(e){return"y"===e?"height":"width"}function $(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=U(t),u=_(a),c=o[u]/2-r[u]/2,s="x"===a;let f;switch(F(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(k(t)){case"start":f[a]-=c*(n&&s?-1:1);break;case"end":f[a]+=c*(n&&s?-1:1)}return f}function B(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function W(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function q(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,v=B(p),m=a[d?"floating"===f?"reference":"floating":f],h=W(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),g=W(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:u}):l[f]);return{top:h.top-g.top+v.top,bottom:g.bottom-h.bottom+v.bottom,left:h.left-g.left+v.left,right:g.right-h.right+v.right}}const z=Math.min,G=Math.max;function Y(e,t,n){return G(e,z(t,n))}const K={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,(e=>K[e]))}function Z(e,t,n){void 0===n&&(n=!1);const o=k(e),r=U(e),i=_(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=X(l)),{main:l,cross:X(l)}}const J={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,(e=>J[e]))}const ee=["top","right","bottom","left"],te=ee.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function ne(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oe(e){return ee.some((t=>e[t]>=0))}const re=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=F(n),a=k(n),u="x"===U(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof v&&(p="end"===a?-1*v:v),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const ie=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e,c={x:n,y:o},s=await q(t,u),f=U(F(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=c[f],v=c[d];if(i){const e="y"===f?"bottom":"right";p=Y(p+s["y"===f?"top":"left"],p,p-s[e])}if(l){const e="y"===d?"bottom":"right";v=Y(v+s["y"===d?"top":"left"],v,v-s[e])}const m=a.fn({...t,[f]:p,[d]:v});return{...m,data:{x:m.x-n,y:m.y-o}}}}};function le(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ae(e){if(null==e)return window;if(!le(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ue(e){return ae(e).getComputedStyle(e)}function ce(e){return le(e)?"":e?(e.nodeName||"").toLowerCase():""}function se(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function fe(e){return e instanceof ae(e).HTMLElement}function de(e){return e instanceof ae(e).Element}function pe(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ae(e).ShadowRoot||e instanceof ShadowRoot)}function ve(e){const{overflow:t,overflowX:n,overflowY:o}=ue(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function me(e){return["table","td","th"].includes(ce(e))}function he(e){const t=/firefox/i.test(se()),n=ue(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function ge(){return!/^((?!chrome|android).)*safari/i.test(se())}const ye=Math.min,we=Math.max,be=Math.round;function Te(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let u=1,c=1;t&&fe(e)&&(u=e.offsetWidth>0&&be(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&be(a.height)/e.offsetHeight||1);const s=de(e)?ae(e):window,f=!ge()&&n,d=(a.left+(f&&null!=(o=null==(r=s.visualViewport)?void 0:r.offsetLeft)?o:0))/u,p=(a.top+(f&&null!=(i=null==(l=s.visualViewport)?void 0:l.offsetTop)?i:0))/c,v=a.width/u,m=a.height/c;return{width:v,height:m,top:p,right:d+v,bottom:p+m,left:d,x:d,y:p}}function xe(e){return(t=e,(t instanceof ae(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Re(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Pe(e){return Te(xe(e)).left+Re(e).scrollLeft}function Ee(e,t,n){const o=fe(t),r=xe(t),i=Te(e,o&&function(e){const t=Te(e);return be(t.width)!==e.offsetWidth||be(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==ce(t)||ve(r))&&(l=Re(t)),fe(t)){const e=Te(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=Pe(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Oe(e){return"html"===ce(e)?e:e.assignedSlot||e.parentNode||(pe(e)?e.host:null)||xe(e)}function Ae(e){return fe(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function Ce(e){const t=ae(e);let n=Ae(e);for(;n&&me(n)&&"static"===getComputedStyle(n).position;)n=Ae(n);return n&&("html"===ce(n)||"body"===ce(n)&&"static"===getComputedStyle(n).position&&!he(n))?t:n||function(e){let t=Oe(e);for(pe(t)&&(t=t.host);fe(t)&&!["html","body"].includes(ce(t));){if(he(t))return t;t=t.parentNode}return null}(e)||t}function Se(e){if(fe(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Te(e);return{width:t.width,height:t.height}}function Ne(e){const t=Oe(e);return["html","body","#document"].includes(ce(t))?e.ownerDocument.body:fe(t)&&ve(t)?t:Ne(t)}function Le(e,t){var n;void 0===t&&(t=[]);const o=Ne(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=ae(o),l=r?[i].concat(i.visualViewport||[],ve(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(Le(l))}function Ie(e,t,n){return"viewport"===t?W(function(e,t){const n=ae(e),o=xe(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,u=0;if(r){i=r.width,l=r.height;const e=ge();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,u=r.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n)):de(t)?function(e,t){const n=Te(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):W(function(e){var t;const n=xe(e),o=Re(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=we(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=we(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+Pe(e);const u=-o.scrollTop;return"rtl"===ue(r||n).direction&&(a+=we(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:u}}(xe(e)))}function He(e){const t=Le(e),n=["absolute","fixed"].includes(ue(e).position)&&fe(e)?Ce(e):e;return de(n)?t.filter((e=>de(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&pe(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==ce(e))):[]}const De={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?He(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=Ie(t,n,r);return e.top=we(o.top,e.top),e.right=ye(o.right,e.right),e.bottom=ye(o.bottom,e.bottom),e.left=we(o.left,e.left),e}),Ie(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=fe(n),i=xe(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==ce(n)||ve(i))&&(l=Re(n)),fe(n))){const e=Te(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:de,getDimensions:Se,getOffsetParent:Ce,getDocumentElement:xe,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:Ee(t,Ce(n),o),floating:{...Se(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===ue(e).direction},Me=(e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:s}=$(u,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:v}=i[n],{x:m,y:h,data:g,reset:y}=await v({x:c,y:s,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=m?m:c,s=null!=h?h:s,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(u=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:c,y:s}=$(u,f,a))),n=-1)}return{x:c,y:s,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:De,...n}),je=function(o,r,i){var l=i.refReference,a=i.refContent,u=i.refArrow,c=i.refRoot,s=(0,t.ref)(!1),f=(0,t.ref)(),d=function(){var e,t,n,o=T(null===(e=l.value)||void 0===e?void 0:e.$el);return(null===(t=document.fullscreenElement)||void 0===t?void 0:t.shadowRoot)?document.fullscreenElement.shadowRoot.contains(o):null===(n=document.fullscreenElement)||void 0===n?void 0:n.contains(o)},p=["dark","light"],m=(0,t.computed)((function(){var e,t,n=null!==(t=null===(e=o.theme)||void 0===e?void 0:e.split(/\s+/))&&void 0!==t?t:[];return n.sort((function(e,t){return Number(p.includes(t))-Number(p.includes(e))})),{systemThemes:n,customThemes:n.filter((function(e){return!p.includes(e)}))}})),h=function(){return o.autoVisibility},g=function(){return o.autoPlacement},y=function(){var e,t,n,r;return{elReference:T(null===(e=l.value)||void 0===e?void 0:e.$el),elContent:T(null===(t=a.value)||void 0===t?void 0:t.$el),elArrow:o.arrow?T(null===(n=u.value)||void 0===n?void 0:n.$el):null,root:T(null===(r=c.value)||void 0===r?void 0:r.$el)}},w=function(){var e={};return Array.isArray(o.modifiers)&&o.modifiers.forEach((function(t){var n,o,r,i,l;if("offset"===t.name){if("number"==typeof(null===(n=t.options)||void 0===n?void 0:n.offset)&&(l=null===(o=t.options)||void 0===o?void 0:o.offset),Array.isArray(null===(r=t.options)||void 0===r?void 0:r.offset)){var a=V(null===(i=t.options)||void 0===i?void 0:i.offset,2);l={mainAxis:a[0],crossAxis:a[1]}}Object.assign(e,{offset:l})}})),e},b=function(e,t){var n,o,r=w(),i=[re(r.offset||t.offset),ie({padding:t.padding})],l={placement:t.placement,middleware:i};if(t.arrow&&i.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:u}=t;if(null==n)return{};const c=B(o),s={x:r,y:i},f=U(l),d=k(l),p=_(f),v=await u.getDimensions(n),m="y"===f?"top":"left",h="y"===f?"bottom":"right",g=a.reference[p]+a.reference[f]-s[f]-a.floating[p],y=s[f]-a.reference[f],w=await(null==u.getOffsetParent?void 0:u.getOffsetParent(n));let b=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0;0===b&&(b=a.floating[p]);const T=g/2-y/2,x=c[m],R=b-v[p]-c[h],P=b/2-v[p]/2+T,E=Y(x,P,R),O=("start"===d?c[m]:c[h])>0&&P!==E&&a.reference[p]<=a.floating[p];return{[f]:s[f]-(O?P<x?x-P:R-P:0),data:{[f]:E,centerOffset:P-E}}}}))({element:e})),g()?i.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:u,rects:c,middlewareData:s,placement:f,platform:d,elements:p}=t,{alignment:v=null,allowedPlacements:m=te,autoAlignment:h=!0,...g}=e,y=function(e,t,n){return(e?[...n.filter((t=>k(t)===e)),...n.filter((t=>k(t)!==e))]:n.filter((e=>F(e)===e))).filter((n=>!e||k(n)===e||!!t&&Q(n)!==n))}(v,h,m),w=await q(t,g),b=null!=(n=null==(o=s.autoPlacement)?void 0:o.index)?n:0,T=y[b];if(null==T)return{};const{main:x,cross:R}=Z(T,c,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==T)return{x:a,y:u,reset:{placement:y[0]}};const P=[w[F(T)],w[x],w[R]],E=[...null!=(r=null==(i=s.autoPlacement)?void 0:i.overflows)?r:[],{placement:T,overflows:P}],O=y[b+1];if(O)return{data:{index:b+1,overflows:E},reset:{placement:O}};const A=E.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),C=null==(l=A.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,S=null!=C?C:A[0].placement;return S!==f?{data:{index:b+1,overflows:E},reset:{placement:S}}:{}}}}()):(i.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:u=2,x:c,y:s}=e,f=W(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=B(u),v=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=c&&null!=s)return null!=(e=d.find((e=>c>e.left-p.left&&c<e.right+p.right&&s>e.top-p.top&&s<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===U(o)){const e=d[0],t=d[d.length-1],n="top"===F(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===F(o),t=G(...d.map((e=>e.right))),n=z(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==v.reference.x||i.reference.y!==v.reference.y||i.reference.width!==v.reference.width||i.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}()),i.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:s=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...v}=e,m=F(o),h=f||(m!==l&&p?function(e){const t=X(e);return[Q(e),t,Q(t)]}(l):[X(l)]),g=[l,...h],y=await q(t,v),w=[];let b=(null==(n=r.flip)?void 0:n.overflows)||[];if(c&&w.push(y[m]),s){const{main:e,cross:t}=Z(o,i,await(null==a.isRTL?void 0:a.isRTL(u.floating)));w.push(y[e],y[t])}if(b=[...b,{placement:o,overflows:w}],!w.every((e=>e<=0))){var T,x;const e=(null!=(T=null==(x=r.flip)?void 0:x.index)?T:0)+1,t=g[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var R;const e=null==(R=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),h()&&l.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=ne(await q(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:oe(t)}}}case"escaped":{const t=ne(await q(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:oe(t)}}}default:return{}}}}}()),d()||t.isVirtualEl){var a=(o=f.value,{getElementRects:function(e){var t=e.reference,n=e.floating,o=t.getBoundingClientRect(),r=n.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:r.width,height:r.height,x:r.x,y:r.y}}},getDimensions:function(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height}},getClippingRect:function(e){var t;!function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e);var n=null!==(t=null==o?void 0:o.getBoundingClientRect())&&void 0!==t?t:{},r=n.width,i=void 0===r?0:r,l=n.height;return{width:i,height:void 0===l?0:l,x:0,y:0}}}),u=a.getElementRects,c=a.getDimensions,s=a.getClippingRect;Object.assign(l,{platform:Object.assign(Object.assign({},null!==(n=null==t?void 0:t.platform)&&void 0!==n?n:{}),{getElementRects:u,getDimensions:c,getClippingRect:s})})}return l},T=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):"function"==typeof(null==t?void 0:t.getBoundingClientRect)?t:null},x=m.value.customThemes.join(" "),R=m.value.customThemes.reduce((function(t,n){return Object.assign(e({},"data-".concat(n,"-theme"),!0),t)}),{}),P="".concat(x),E=null,O=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},A=function(e,t,n,r){var i;o.disableTransform?Object.assign(e.style,{left:"".concat(O(t),"px"),top:"".concat(O(n),"px")}):Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(O(t),"px,").concat(O(n),"px,0)")});var l=!!h()&&(null===(i=r.hide)||void 0===i?void 0:i.referenceHidden);Object.assign(e.style,{visibility:l?"hidden":"visible"})},C=function(t,n,r){var i;if(o.arrow){var l=null!==(i=r.arrow)&&void 0!==i?i:{},a=l.x,u=l.y;t.setAttribute("data-arrow",n),Object.assign(t.style,{left:"",top:"",bottom:"",right:""});var c={top:"bottom",right:"left",bottom:"top",left:"right"}[n];Object.assign(t.style,e({left:null!==a?"".concat(a,"px"):"",top:null!==u?"".concat(u,"px"):""},c,"-4px"))}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=y(),o=n.elReference,r=n.elContent,i=n.elArrow,l=e||o;if(l&&r){var a=b(i,t);Me(l,r,a).then((function(e){var t=e.x,n=e.y,o=e.placement,l=e.middlewareData,a=r.className;r.className="".concat(a.replace(P,"")," ").concat(P).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(R).forEach((function(e){r.setAttribute(e,R[e])}));var u=o.split("-")[0],c=u;["left","right","top","bottom"].includes(u)||(c="top"),A(r,t,n,l),C(i,c,l)}))}},N=void 0,L=!1,I=function(){setTimeout((function(){!o.disabled&&(s.value=!0)}),o.popoverDelay)},H=function(){N=setTimeout((function(){s.value=!1}),o.popoverDelay)},D=function(){s.value?H():I()},M=function(){D()},j=function(){"hover"===o.trigger&&(N&&(L=!0,clearTimeout(N),N=void 0),K())},$=function(){L&&(H(),L=!1,J())},K=function(){r.emit(v.CONTENT_MOUSEENTER)},J=function(){r.emit(v.CONTENT_MOUSELEAVE)};return(0,t.watch)(s,(function(e){var t,i;e?((i=T(null===(t=a.value)||void 0===t?void 0:t.$el)).style.setProperty("display","block"),i.style.setProperty("z-index","".concat(o.zIndex?o.zIndex:n.bkZIndexManager.getPopperIndex())),S(),r.emit("afterShow",{isShow:!0})):function(){var e;T(null===(e=a.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),r.emit("afterHidden",{isShow:!1})}()})),{showPopover:I,hidePopover:H,resolveTriggerEvents:function(){var e;return null!==(e={hover:{content:[["mouseenter",j],["mouseleave",$]],reference:[["mouseenter",I],["mouseleave",H],["focus",I],["blur",H]]},click:[["click",M]],manual:{content:[["mouseenter",K],["mouseleave",J]],reference:[[]]}}[o.trigger])&&void 0!==e?e:[]},updatePopover:S,triggerPopover:D,resolvePopElements:y,isElementFullScreen:d,resolveTargetElement:T,createPopInstance:function(){var e=y(),t=e.elReference,n=e.elContent;E=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,u=r&&!a,c=i&&!a,s=u||c?[...de(e)?Le(e):[],...Le(t)]:[];s.forEach((e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),de(e)&&!a&&d.observe(e),d.observe(t));let p=a?Te(e):null;return a&&function t(){const o=Te(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;s.forEach((e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,n,(function(){S(null,o)}))},updateFullscreenTarget:function(e){f.value=e},getFullscreenRoot:function(e){return d()?document.fullscreenElement.shadowRoot?document.fullscreenElement.shadowRoot.querySelector(e):document.fullscreenElement.querySelector(e):document.body},stopHide:function(){N&&(L=!0,clearTimeout(N),N=void 0)},localIsShow:s,cleanup:E}};var Ve=i(8022),Fe={},ke=function(e){return document.querySelector(e)instanceof HTMLElement},Ue=null,_e=null;const $e=(0,t.defineComponent)({name:"Popover",components:{Content:g,Arrow:d,Root:M},directives:{clickoutside:f},props:H,emits:h,setup:function(e,o){var r=e.content,i=e.theme,l=e.disableTeleport,a=(0,t.toRefs)(e).reference,u=(0,t.ref)(),c=(0,t.ref)(),s=(0,t.ref)(),f=(0,t.ref)(),d=(0,t.computed)((function(){return a.value||u.value})),p=function(e,n,o){var r=o.refReference,i=o.refContent,l=o.refArrow,a=o.refRoot,u=null,c=(0,t.ref)(!1),s=(Fe.fullscreenReferId||(Fe.fullscreenReferId="id_".concat((0,Ve.v4)())),Fe.fullscreenReferId),f=(0,t.ref)(),d=je(e,n,{refReference:r,refContent:i,refArrow:l,refRoot:a}),p=d.localIsShow,m=d.showPopover,h=d.hidePopover,g=d.updatePopover,y=d.resolveTriggerEvents,w=d.resolvePopElements,b=d.isElementFullScreen,T=d.updateFullscreenTarget,x=d.createPopInstance,R=d.getFullscreenRoot,P=d.stopHide,E=function(){h()},O=function(){x(),e.always?m():A()},A=function(){var e=w(),t=e.elReference,n=e.elContent;if(u=y(),Array.isArray(u))C(t,u);else{var o=u,r=o.content,i=o.reference;C(t,i),C(n,r)}},C=function(e,t){t.forEach((function(t){var n=V(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.addEventListener(o,r)}))},S=function(){var e=w(),t=e.elReference,n=e.root;c.value?I.value=null==f?void 0:f.value:I.value=L(n||t)},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(n){var o=null,r=function(e){null===o&&e()};return r((function(){if(/^parent$/i.test(e.boundary)){o="".concat(t).concat(Ue);var r=(n||{}).parentNode;(null==r?void 0:r.parentNode)&&(r.parentNode.setAttribute("data-pnode-id",_e),o="[data-pnode-id=".concat(_e,"]"))}})),r((function(){if(!/^body$/i.test(e.boundary)&&"string"==typeof e.boundary){if(!ke(e.boundary))return console.error("props.boundary is not available selector"),void(o="body");o=e.boundary}})),r((function(){o="string"==typeof e.boundary?e.boundary:"".concat(t).concat(Ue)})),o};if(null===Ue||!ke("#".concat(Ue))){Ue="id_".concat((0,Ve.v4)());var o=document.createElement("div");o.setAttribute("id",Ue),o.setAttribute("data-popper-id",Ue),document.body.append(o)}return null===_e&&(_e="id_".concat((0,Ve.v4)())),{popContainerId:Ue,prefixId:n(),getPrefixId:n}}(e,"#"),L=N.getPrefixId,I=(0,t.ref)(),H=function(){!function(){if(null==u?void 0:u.length){var e=w().elReference;e&&u.forEach((function(t){var n=V(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.removeEventListener(o,r)})),u=null}}()},D=function(e){var t;f.value=e,T(e),c.value=b(),null===(t=null==f?void 0:f.value)||void 0===t||t.setAttribute("data-fllsrn-id",s)},M=function(t){var n,o,r;document.fullscreenElement||(r="[data-fllsrn-id=".concat(s,"]"),(null!==(o=null===(n=null==f?void 0:f.value)||void 0===n?void 0:n.querySelectorAll(r))&&void 0!==o?o:[]).forEach((function(e){null==e||e.removeAttribute("data-fllsrn-id")}))),D(t.target),S(),g(null,e)};return{onMountedFn:function(){if(!e.disabled){if(O(),b()){var t="[data-fllsrn-id=".concat(s,"]"),n=R(t);D(n)}S(),document.body.addEventListener("fullscreenchange",M)}},onUnmountedFn:function(){H(),document.body.removeEventListener("fullscreenchange",M)},handleClickOutside:function(t){n.emit(v.CLICK_OUTSIDE,{isShow:p.value,event:t}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||p.value&&E()},beforeInstanceUnmount:H,updateBoundary:S,initPopInstance:O,updatePopover:g,showPopover:m,hidePopover:h,showFn:function(){m()},hideFn:E,stopHide:P,isFullscreen:c,boundary:I,localIsShow:p}}(e,o,{refReference:d,refContent:c,refArrow:s,refRoot:f}),m=p.onMountedFn,h=p.onUnmountedFn,g=p.handleClickOutside,y=p.beforeInstanceUnmount,w=p.updateBoundary,b=p.initPopInstance,T=p.showFn,x=p.hideFn,R=p.showPopover,P=p.hidePopover,E=p.updatePopover,O=p.stopHide,A=p.localIsShow,C=p.boundary;e.always||e.disabled||(0,t.watch)((function(){return e.isShow}),(function(){e.isShow?R():P()}),{immediate:!0}),(0,t.watch)((function(){return[e.disabled]}),(function(e){e[0]?y():b()})),w(),(0,t.onMounted)(m),(0,t.onBeforeUnmount)(h);var S=(0,t.computed)((function(){return!l})),N=(0,t.computed)((function(){return e.renderType===n.RenderType.AUTO||A.value}));return{boundary:C,arrow:e.arrow,refDefaultReference:u,refContent:c,refArrow:s,content:r,theme:i,transBoundary:S,handleClickOutside:g,updatePopover:E,hide:function(){x()},show:function(){T()},stopHide:O,contentIsShow:N}},render:function(){var e,n,o,r,i,l,a=this;return(0,t.createVNode)(M,{ref:"refRoot"},{default:function(){return[(0,t.createVNode)(D,{ref:"refDefaultReference"},{default:function(){return[null!==(o=null===(n=(e=a.$slots).default)||void 0===n?void 0:n.call(e))&&void 0!==o?o:(0,t.createVNode)("span",null,null)]}}),(0,t.createVNode)(t.Teleport,{to:a.boundary,disabled:!a.transBoundary},{default:function(){return[(0,t.withDirectives)((0,t.createVNode)(g,{ref:"refContent","data-theme":a.theme,width:a.width,height:a.height,maxHeight:a.maxHeight},{default:function(){return[a.contentIsShow?null!==(l=null===(i=(r=a.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:a.content:""]},arrow:function(){var e,n;return a.arrow?(0,t.createVNode)(d,{ref:"refArrow"},{default:function(){return[null===(n=(e=a.$slots).arrow)||void 0===n?void 0:n.call(e)]}}):""}}),[[(0,t.resolveDirective)("clickoutside"),a.handleClickOutside]])]}})]}})}}),Be=function(n){var o,r=null,i=null,l=null,a=Object.assign(Object.assign({boundary:"body",placement:"top",autoVisibility:!1},n),{trigger:"manual"}),u=function(e){return e instanceof Element||e instanceof HTMLDocument},c={name:"$popover",setup:function(n,o){var r=o.expose,i=(0,t.ref)(a),l=(0,t.ref)(),c=(0,t.ref)({position:"absolute",pointerEvents:"none",left:0,top:0,width:"auto",height:"auto",transform:""}),s=function(e){if(u(e)){var t=e.getBoundingClientRect(),n=t.x,o=t.y,r=t.width,i=t.height;Object.assign(c.value,{width:"".concat(r,"px"),height:"".concat(i,"px"),transform:"translate3d(".concat(n,"px,").concat(o,"px,0)")})}else{var l=e.clientX,a=e.clientY;Object.assign(c.value,{transform:"translate3d(".concat(l,"px,").concat(a,"px,0)"),width:"10px",height:"10px"})}};s(i.value.target);var f=(0,t.computed)((function(){var t=["target"];return Object.keys(i.value).filter((function(e){return!t.includes(e)})).reduce((function(t,n){return Object.assign(Object.assign({},t),e({},n,i.value[n]))}),{})})),d=function(){var e;null===(e=a.onContentMouseenter)||void 0===e||e.call(a)},p=function(){var e;null===(e=a.onContentMouseleave)||void 0===e||e.call(a)};return r({show:function(){setTimeout((function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.show)||void 0===t||t.call(e)}))},hide:function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.hide)||void 0===t||t.call(e)},updateTarget:function(e){var n,o;i.value.target=e,s(e),null===(o=null===(n=l.value)||void 0===n?void 0:n.updatePopover)||void 0===o||o.call(n),(0,t.nextTick)((function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.updatePopover)||void 0===t||t.call(e)}))},stopHide:function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.stopHide)||void 0===t||t.call(e)}}),function(){return(0,t.createVNode)($e,(0,t.mergeProps)(f.value,{ref:l,onContentMouseenter:d,onContentMouseleave:p}),{default:function(){return[(0,t.createVNode)("span",{style:c.value},null)]}})}}};return null===r&&(l=document.createElement("div"),(o=a.boundary,/^body$/i.test(o)?document.body:/^parent$/i.test(o)?u(a.target)?a.target.parentNode:a.target.target.parentNode:"string"==typeof o&&ke(o)?document.querySelector(o):document.body).append(l),setTimeout((function(){r=(0,t.createApp)(c),i=r.mount(l)}))),{close:function(){r&&(r.unmount(),i=null,r=null,l.remove())},show:function(){null==i||i.show()},hide:function(){null==i||i.hide()},update:function(e){null==i||i.updateTarget(e)},get vm(){return i},get $el(){return i.$el}}}})(),l})()));