bkui-vue 0.0.2-beta.75 → 0.0.2-beta.78

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 (144) hide show
  1. package/dist/index.cjs.js +48 -48
  2. package/dist/index.esm.js +8323 -8377
  3. package/dist/index.umd.js +48 -48
  4. package/lib/affix/index.js +5 -3
  5. package/lib/alert/index.js +2 -3
  6. package/lib/backtop/index.js +2 -2
  7. package/lib/badge/index.js +3 -4
  8. package/lib/breadcrumb/index.js +4 -4
  9. package/lib/button/index.js +6 -6
  10. package/lib/card/index.js +16 -5
  11. package/lib/cascader/index.js +70 -53
  12. package/lib/checkbox/index.js +4 -4
  13. package/lib/collapse/index.js +58 -6
  14. package/lib/color-picker/index.js +14 -11
  15. package/lib/config-provider/index.js +51 -3
  16. package/lib/container/index.js +55 -7
  17. package/lib/date-picker/index.js +202 -156
  18. package/lib/dialog/index.js +140 -431
  19. package/lib/directives/index.js +59 -19
  20. package/lib/dropdown/index.js +8 -8
  21. package/lib/exception/index.js +5 -5
  22. package/lib/form/index.js +22 -16
  23. package/lib/icon/angle-double-down-line.js +84 -374
  24. package/lib/icon/angle-double-left-line.js +84 -374
  25. package/lib/icon/angle-double-left.js +84 -374
  26. package/lib/icon/angle-double-right-line.js +84 -374
  27. package/lib/icon/angle-double-right.js +84 -374
  28. package/lib/icon/angle-double-up-line.js +84 -374
  29. package/lib/icon/angle-down-fill.js +84 -374
  30. package/lib/icon/angle-down-line.js +84 -374
  31. package/lib/icon/angle-down.js +84 -374
  32. package/lib/icon/angle-left.js +84 -374
  33. package/lib/icon/angle-right.js +84 -374
  34. package/lib/icon/angle-up-fill.js +84 -374
  35. package/lib/icon/angle-up.js +84 -374
  36. package/lib/icon/archive-fill.js +84 -374
  37. package/lib/icon/arrows-left.js +84 -374
  38. package/lib/icon/arrows-right.js +84 -374
  39. package/lib/icon/assistant.js +84 -374
  40. package/lib/icon/audio-fill.js +84 -374
  41. package/lib/icon/bk.js +84 -374
  42. package/lib/icon/circle.js +84 -374
  43. package/lib/icon/close-line.js +84 -374
  44. package/lib/icon/close.js +84 -374
  45. package/lib/icon/code.js +84 -374
  46. package/lib/icon/cog-shape.js +84 -374
  47. package/lib/icon/collapse-left.js +84 -374
  48. package/lib/icon/copy-shape.js +84 -374
  49. package/lib/icon/copy.js +84 -374
  50. package/lib/icon/data-shape.js +84 -374
  51. package/lib/icon/del.js +84 -374
  52. package/lib/icon/doc-fill.js +84 -374
  53. package/lib/icon/done.js +84 -374
  54. package/lib/icon/down-shape.js +84 -374
  55. package/lib/icon/down-small.js +84 -374
  56. package/lib/icon/edit-line.js +84 -374
  57. package/lib/icon/ellipsis.js +84 -374
  58. package/lib/icon/enlarge-line.js +84 -374
  59. package/lib/icon/error.js +84 -374
  60. package/lib/icon/excel-fill.js +84 -374
  61. package/lib/icon/exclamation-circle-shape.js +84 -374
  62. package/lib/icon/eye.js +84 -374
  63. package/lib/icon/filliscreen-line.js +84 -374
  64. package/lib/icon/fix-line.js +84 -374
  65. package/lib/icon/fix-shape.js +84 -374
  66. package/lib/icon/folder-open.js +84 -374
  67. package/lib/icon/folder-shape-open.js +84 -374
  68. package/lib/icon/folder-shape.js +84 -374
  69. package/lib/icon/folder.js +84 -374
  70. package/lib/icon/funnel.js +84 -374
  71. package/lib/icon/help-document-fill.js +84 -374
  72. package/lib/icon/help-fill.js +84 -374
  73. package/lib/icon/help.js +84 -374
  74. package/lib/icon/image-fill.js +131 -382
  75. package/lib/icon/img-error.js +131 -382
  76. package/lib/icon/img-placehoulder.js +131 -382
  77. package/lib/icon/index.js +563 -531
  78. package/lib/icon/info-line.js +131 -382
  79. package/lib/icon/info.js +131 -382
  80. package/lib/icon/left-shape.js +131 -382
  81. package/lib/icon/left-turn-line.js +131 -382
  82. package/lib/icon/narrow-line.js +131 -382
  83. package/lib/icon/original.js +131 -382
  84. package/lib/icon/pdf-fill.js +131 -382
  85. package/lib/icon/play-shape.js +131 -382
  86. package/lib/icon/plus.js +131 -382
  87. package/lib/icon/ppt-fill.js +131 -382
  88. package/lib/icon/qq.js +131 -382
  89. package/lib/icon/right-shape.js +131 -382
  90. package/lib/icon/right-turn-line.js +131 -382
  91. package/lib/icon/search.js +131 -382
  92. package/lib/icon/share.js +131 -382
  93. package/lib/icon/spinner.js +131 -382
  94. package/lib/icon/success.js +131 -382
  95. package/lib/icon/switcher-loading.js +131 -382
  96. package/lib/icon/text-file.js +131 -382
  97. package/lib/icon/text-fill.js +131 -382
  98. package/lib/icon/transfer.js +131 -382
  99. package/lib/icon/tree-application-shape.js +131 -382
  100. package/lib/icon/unfull-screen.js +131 -382
  101. package/lib/icon/unvisible.js +131 -382
  102. package/lib/icon/up-shape.js +131 -382
  103. package/lib/icon/upload.js +131 -382
  104. package/lib/icon/video-fill.js +131 -382
  105. package/lib/icon/warn.js +131 -382
  106. package/lib/icon/weixin-pro.js +131 -382
  107. package/lib/icon/weixin.js +131 -382
  108. package/lib/image/index.js +57 -9
  109. package/lib/info-box/index.js +145 -436
  110. package/lib/input/index.js +105 -415
  111. package/lib/link/index.js +2 -2
  112. package/lib/loading/index.js +18 -16
  113. package/lib/menu/index.js +22 -23
  114. package/lib/message/index.js +62 -57
  115. package/lib/modal/index.js +77 -18
  116. package/lib/navigation/index.js +11 -11
  117. package/lib/notify/index.js +51 -48
  118. package/lib/overflow-title/index.js +6 -5
  119. package/lib/plugin-popover/index.js +202 -364
  120. package/lib/popover/index.js +202 -364
  121. package/lib/process/index.js +55 -395
  122. package/lib/progress/index.js +51 -48
  123. package/lib/radio/index.js +4 -4
  124. package/lib/rate/index.js +2 -2
  125. package/lib/resize-layout/index.js +4 -5
  126. package/lib/search-select/index.js +179 -486
  127. package/lib/select/index.js +148 -479
  128. package/lib/shared/index.js +176 -352
  129. package/lib/sideslider/index.js +82 -373
  130. package/lib/slider/index.js +48 -386
  131. package/lib/steps/index.js +67 -405
  132. package/lib/swiper/index.js +10 -10
  133. package/lib/switcher/index.js +2 -2
  134. package/lib/tab/index.js +63 -8
  135. package/lib/table/index.js +262 -424
  136. package/lib/table-column/index.js +7 -6
  137. package/lib/tag/index.js +2 -2
  138. package/lib/tag-input/index.js +29 -21
  139. package/lib/timeline/index.js +6 -7
  140. package/lib/transfer/index.js +8 -8
  141. package/lib/tree/index.js +139 -319
  142. package/lib/upload/index.js +104 -423
  143. package/lib/virtual-render/index.js +60 -16
  144. package/package.json +2 -1
@@ -3,274 +3,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
6
- /******/ var __webpack_modules__ = ({
7
-
8
- /***/ 8022:
9
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10
-
11
- var v1 = __webpack_require__(4481);
12
- var v4 = __webpack_require__(6426);
13
-
14
- var uuid = v4;
15
- uuid.v1 = v1;
16
- uuid.v4 = v4;
17
-
18
- module.exports = uuid;
19
-
20
-
21
- /***/ }),
22
-
23
- /***/ 8725:
24
- /***/ ((module) => {
25
-
26
- /**
27
- * Convert array of 16 byte values to UUID string format of the form:
28
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
29
- */
30
- var byteToHex = [];
31
- for (var i = 0; i < 256; ++i) {
32
- byteToHex[i] = (i + 0x100).toString(16).substr(1);
33
- }
34
-
35
- function bytesToUuid(buf, offset) {
36
- var i = offset || 0;
37
- var bth = byteToHex;
38
- // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
39
- return ([
40
- bth[buf[i++]], bth[buf[i++]],
41
- bth[buf[i++]], bth[buf[i++]], '-',
42
- bth[buf[i++]], bth[buf[i++]], '-',
43
- bth[buf[i++]], bth[buf[i++]], '-',
44
- bth[buf[i++]], bth[buf[i++]], '-',
45
- bth[buf[i++]], bth[buf[i++]],
46
- bth[buf[i++]], bth[buf[i++]],
47
- bth[buf[i++]], bth[buf[i++]]
48
- ]).join('');
49
- }
50
-
51
- module.exports = bytesToUuid;
52
-
53
-
54
- /***/ }),
55
-
56
- /***/ 9157:
57
- /***/ ((module) => {
58
-
59
- // Unique ID creation requires a high quality random # generator. In the
60
- // browser this is a little complicated due to unknown quality of Math.random()
61
- // and inconsistent support for the `crypto` API. We do the best we can via
62
- // feature-detection
63
-
64
- // getRandomValues needs to be invoked in a context where "this" is a Crypto
65
- // implementation. Also, find the complete implementation of crypto on IE11.
66
- var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
67
- (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
68
-
69
- if (getRandomValues) {
70
- // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
71
- var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
72
-
73
- module.exports = function whatwgRNG() {
74
- getRandomValues(rnds8);
75
- return rnds8;
76
- };
77
- } else {
78
- // Math.random()-based (RNG)
79
- //
80
- // If all else fails, use Math.random(). It's fast, but is of unspecified
81
- // quality.
82
- var rnds = new Array(16);
83
-
84
- module.exports = function mathRNG() {
85
- for (var i = 0, r; i < 16; i++) {
86
- if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
87
- rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
88
- }
89
-
90
- return rnds;
91
- };
92
- }
93
-
94
-
95
- /***/ }),
96
-
97
- /***/ 4481:
98
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
99
-
100
- var rng = __webpack_require__(9157);
101
- var bytesToUuid = __webpack_require__(8725);
102
-
103
- // **`v1()` - Generate time-based UUID**
104
- //
105
- // Inspired by https://github.com/LiosK/UUID.js
106
- // and http://docs.python.org/library/uuid.html
107
-
108
- var _nodeId;
109
- var _clockseq;
110
-
111
- // Previous uuid creation time
112
- var _lastMSecs = 0;
113
- var _lastNSecs = 0;
114
-
115
- // See https://github.com/uuidjs/uuid for API details
116
- function v1(options, buf, offset) {
117
- var i = buf && offset || 0;
118
- var b = buf || [];
119
-
120
- options = options || {};
121
- var node = options.node || _nodeId;
122
- var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
123
-
124
- // node and clockseq need to be initialized to random values if they're not
125
- // specified. We do this lazily to minimize issues related to insufficient
126
- // system entropy. See #189
127
- if (node == null || clockseq == null) {
128
- var seedBytes = rng();
129
- if (node == null) {
130
- // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
131
- node = _nodeId = [
132
- seedBytes[0] | 0x01,
133
- seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
134
- ];
135
- }
136
- if (clockseq == null) {
137
- // Per 4.2.2, randomize (14 bit) clockseq
138
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
139
- }
140
- }
141
-
142
- // UUID timestamps are 100 nano-second units since the Gregorian epoch,
143
- // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
144
- // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
145
- // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
146
- var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
147
-
148
- // Per 4.2.1.2, use count of uuid's generated during the current clock
149
- // cycle to simulate higher resolution clock
150
- var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
151
-
152
- // Time since last uuid creation (in msecs)
153
- var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
154
-
155
- // Per 4.2.1.2, Bump clockseq on clock regression
156
- if (dt < 0 && options.clockseq === undefined) {
157
- clockseq = clockseq + 1 & 0x3fff;
158
- }
159
-
160
- // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
161
- // time interval
162
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
163
- nsecs = 0;
164
- }
165
-
166
- // Per 4.2.1.2 Throw error if too many uuids are requested
167
- if (nsecs >= 10000) {
168
- throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
169
- }
170
-
171
- _lastMSecs = msecs;
172
- _lastNSecs = nsecs;
173
- _clockseq = clockseq;
174
-
175
- // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
176
- msecs += 12219292800000;
177
-
178
- // `time_low`
179
- var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
180
- b[i++] = tl >>> 24 & 0xff;
181
- b[i++] = tl >>> 16 & 0xff;
182
- b[i++] = tl >>> 8 & 0xff;
183
- b[i++] = tl & 0xff;
184
-
185
- // `time_mid`
186
- var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
187
- b[i++] = tmh >>> 8 & 0xff;
188
- b[i++] = tmh & 0xff;
189
-
190
- // `time_high_and_version`
191
- b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
192
- b[i++] = tmh >>> 16 & 0xff;
193
-
194
- // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
195
- b[i++] = clockseq >>> 8 | 0x80;
196
-
197
- // `clock_seq_low`
198
- b[i++] = clockseq & 0xff;
199
-
200
- // `node`
201
- for (var n = 0; n < 6; ++n) {
202
- b[i + n] = node[n];
203
- }
204
-
205
- return buf ? buf : bytesToUuid(b);
206
- }
207
-
208
- module.exports = v1;
209
-
210
-
211
- /***/ }),
212
-
213
- /***/ 6426:
214
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
215
-
216
- var rng = __webpack_require__(9157);
217
- var bytesToUuid = __webpack_require__(8725);
218
-
219
- function v4(options, buf, offset) {
220
- var i = buf && offset || 0;
221
-
222
- if (typeof(options) == 'string') {
223
- buf = options === 'binary' ? new Array(16) : null;
224
- options = null;
225
- }
226
- options = options || {};
227
-
228
- var rnds = options.random || (options.rng || rng)();
229
-
230
- // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
231
- rnds[6] = (rnds[6] & 0x0f) | 0x40;
232
- rnds[8] = (rnds[8] & 0x3f) | 0x80;
233
-
234
- // Copy bytes to buffer, if provided
235
- if (buf) {
236
- for (var ii = 0; ii < 16; ++ii) {
237
- buf[i + ii] = rnds[ii];
238
- }
239
- }
240
-
241
- return buf || bytesToUuid(rnds);
242
- }
243
-
244
- module.exports = v4;
245
-
246
-
247
- /***/ })
248
-
249
- /******/ });
250
- /************************************************************************/
251
- /******/ // The module cache
252
- /******/ var __webpack_module_cache__ = {};
253
- /******/
254
- /******/ // The require function
255
- /******/ function __webpack_require__(moduleId) {
256
- /******/ // Check if module is in cache
257
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
258
- /******/ if (cachedModule !== undefined) {
259
- /******/ return cachedModule.exports;
260
- /******/ }
261
- /******/ // Create a new module (and put it into the cache)
262
- /******/ var module = __webpack_module_cache__[moduleId] = {
263
- /******/ // no module.id needed
264
- /******/ // no module.loaded needed
265
- /******/ exports: {}
266
- /******/ };
267
- /******/
268
- /******/ // Execute the module function
269
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
270
- /******/
271
- /******/ // Return the exports of the module
272
- /******/ return module.exports;
273
- /******/ }
6
+ /******/ // The require scope
7
+ /******/ var __webpack_require__ = {};
274
8
  /******/
275
9
  /************************************************************************/
276
10
  /******/ /* webpack/runtime/define property getters */
@@ -292,8 +26,6 @@ module.exports = v4;
292
26
  /******/
293
27
  /************************************************************************/
294
28
  var __webpack_exports__ = {};
295
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
296
- (() => {
297
29
 
298
30
  // EXPORTS
299
31
  __webpack_require__.d(__webpack_exports__, {
@@ -632,21 +364,21 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
632
364
  var refContent = (0,external_vue_namespaceObject.ref)(null);
633
365
  var refTimer = (0,external_vue_namespaceObject.ref)(null);
634
366
  var resetPointerEvent = function resetPointerEvent() {
635
- var _a;
367
+ var _props$eventDelay;
636
368
  if (props.eventDelay === 0) {
637
369
  return;
638
370
  }
639
371
  refTimer.value && clearTimeout(refTimer.value);
640
372
  refTimer.value = setTimeout(function () {
641
373
  setContentPointerEvent('unset');
642
- }, (_a = props.eventDelay) !== null && _a !== void 0 ? _a : 300);
374
+ }, (_props$eventDelay = props.eventDelay) !== null && _props$eventDelay !== void 0 ? _props$eventDelay : 300);
643
375
  };
644
376
  var setContentPointerEvent = function setContentPointerEvent(val) {
645
- var _a;
377
+ var _refContent$value;
646
378
  if (props.eventDelay === 0) {
647
379
  return;
648
380
  }
649
- (_a = refContent.value) === null || _a === void 0 ? void 0 : _a.style.setProperty('pointer-events', val);
381
+ (_refContent$value = refContent.value) === null || _refContent$value === void 0 ? void 0 : _refContent$value.style.setProperty('pointer-events', val);
650
382
  };
651
383
  var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
652
384
  resolveClassName = _usePrefix.resolveClassName;
@@ -659,12 +391,19 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
659
391
  };
660
392
  },
661
393
  render: function render() {
662
- var _this = this;
663
- var _a, _b, _c, _d, _e, _f, _g, _h;
394
+ var _this = this,
395
+ _this$$slots$default,
396
+ _this$$slots,
397
+ _this$$slots$arrow,
398
+ _this$$slots$arrow2,
399
+ _this$$slots2,
400
+ _this$$slots$default2,
401
+ _this$$slots$default3,
402
+ _this$$slots3;
664
403
  var className = [this.resolveClassName('popover'), this.resolveClassName('pop2-content'), this.extCls];
665
404
  var resolveContentStyle = function resolveContentStyle(slot) {
666
- var _a;
667
- if (external_vue_namespaceObject.Fragment === ((_a = slot === null || slot === void 0 ? void 0 : slot[0]) === null || _a === void 0 ? void 0 : _a.type)) {
405
+ var _slot$;
406
+ if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
668
407
  (0,external_vue_namespaceObject.nextTick)(function () {
669
408
  _this.setContentPointerEvent('none');
670
409
  _this.resetPointerEvent();
@@ -672,12 +411,12 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
672
411
  }
673
412
  return _this.style;
674
413
  };
675
- var style = resolveContentStyle((_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a));
414
+ var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
676
415
  return (0,external_vue_namespaceObject.createVNode)("div", {
677
416
  "class": className,
678
417
  "style": style,
679
418
  "ref": "refContent"
680
- }, [(_e = (_d = (_c = this.$slots).arrow) === null || _d === void 0 ? void 0 : _d.call(_c)) !== null && _e !== void 0 ? _e : '', (_h = (_g = (_f = this.$slots)["default"]) === null || _g === void 0 ? void 0 : _g.call(_f)) !== null && _h !== void 0 ? _h : '']);
419
+ }, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
681
420
  }
682
421
  }));
683
422
  ;// CONCATENATED MODULE: external "vue-types"
@@ -808,8 +547,8 @@ var PopoverProps = {
808
547
  /* harmony default export */ const reference = ((0,external_vue_namespaceObject.defineComponent)({
809
548
  name: 'PopReference',
810
549
  render: function render() {
811
- var _a, _b, _c;
812
- return (_c = (_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '';
550
+ var _this$$slots$default, _this$$slots$default2, _this$$slots;
551
+ return (_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '';
813
552
  }
814
553
  }));
815
554
  ;// CONCATENATED MODULE: ../../packages/popover/src/root.tsx
@@ -847,8 +586,8 @@ var PopoverProps = {
847
586
  mode: external_shared_namespaceObject.PropTypes.string.def('')
848
587
  },
849
588
  render: function render() {
850
- var _a, _b;
851
- return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
589
+ var _this$$slots$default, _this$$slots;
590
+ return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]);
852
591
  }
853
592
  }));
854
593
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
@@ -2832,9 +2571,9 @@ function _objectDestructuringEmpty(obj) {
2832
2571
  };
2833
2572
  };
2834
2573
  var getClippingRect = function getClippingRect(_ref2) {
2574
+ var _fullscreenTarget$get;
2835
2575
  _objectDestructuringEmpty(_ref2);
2836
- var _a;
2837
- var _ref3 = (_a = fullscreenTarget === null || fullscreenTarget === void 0 ? void 0 : fullscreenTarget.getBoundingClientRect()) !== null && _a !== void 0 ? _a : {},
2576
+ var _ref3 = (_fullscreenTarget$get = fullscreenTarget === null || fullscreenTarget === void 0 ? void 0 : fullscreenTarget.getBoundingClientRect()) !== null && _fullscreenTarget$get !== void 0 ? _fullscreenTarget$get : {},
2838
2577
  _ref3$width = _ref3.width,
2839
2578
  width = _ref3$width === void 0 ? 0 : _ref3$width,
2840
2579
  _ref3$height = _ref3.height,
@@ -2852,8 +2591,94 @@ function _objectDestructuringEmpty(obj) {
2852
2591
  getClippingRect: getClippingRect
2853
2592
  };
2854
2593
  });
2855
- // EXTERNAL MODULE: ../../node_modules/uuid/index.js
2856
- var uuid = __webpack_require__(8022);
2594
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
2595
+ const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
2596
+ /* harmony default export */ const esm_browser_native = ({
2597
+ randomUUID
2598
+ });
2599
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/rng.js
2600
+ // Unique ID creation requires a high quality random # generator. In the browser we therefore
2601
+ // require the crypto API and do not support built-in fallback to lower quality random number
2602
+ // generators (like Math.random()).
2603
+ let getRandomValues;
2604
+ const rnds8 = new Uint8Array(16);
2605
+ function rng() {
2606
+ // lazy load so that environments that need to polyfill have a chance to do so
2607
+ if (!getRandomValues) {
2608
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
2609
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
2610
+
2611
+ if (!getRandomValues) {
2612
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
2613
+ }
2614
+ }
2615
+
2616
+ return getRandomValues(rnds8);
2617
+ }
2618
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/stringify.js
2619
+
2620
+ /**
2621
+ * Convert array of 16 byte values to UUID string format of the form:
2622
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
2623
+ */
2624
+
2625
+ const byteToHex = [];
2626
+
2627
+ for (let i = 0; i < 256; ++i) {
2628
+ byteToHex.push((i + 0x100).toString(16).slice(1));
2629
+ }
2630
+
2631
+ function unsafeStringify(arr, offset = 0) {
2632
+ // Note: Be careful editing this code! It's been tuned for performance
2633
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
2634
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
2635
+ }
2636
+
2637
+ function stringify(arr, offset = 0) {
2638
+ const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
2639
+ // of the following:
2640
+ // - One or more input array values don't map to a hex octet (leading to
2641
+ // "undefined" in the uuid)
2642
+ // - Invalid input values for the RFC `version` or `variant` fields
2643
+
2644
+ if (!validate(uuid)) {
2645
+ throw TypeError('Stringified UUID is invalid');
2646
+ }
2647
+
2648
+ return uuid;
2649
+ }
2650
+
2651
+ /* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
2652
+ ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/v4.js
2653
+
2654
+
2655
+
2656
+
2657
+ function v4(options, buf, offset) {
2658
+ if (esm_browser_native.randomUUID && !buf && !options) {
2659
+ return esm_browser_native.randomUUID();
2660
+ }
2661
+
2662
+ options = options || {};
2663
+ const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
2664
+
2665
+ rnds[6] = rnds[6] & 0x0f | 0x40;
2666
+ rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
2667
+
2668
+ if (buf) {
2669
+ offset = offset || 0;
2670
+
2671
+ for (let i = 0; i < 16; ++i) {
2672
+ buf[offset + i] = rnds[i];
2673
+ }
2674
+
2675
+ return buf;
2676
+ }
2677
+
2678
+ return unsafeStringify(rnds);
2679
+ }
2680
+
2681
+ /* harmony default export */ const esm_browser_v4 = (v4);
2857
2682
  ;// CONCATENATED MODULE: ../../packages/popover/src/utils.ts
2858
2683
  /*
2859
2684
  * Tencent is pleased to support the open source community by making
@@ -2888,7 +2713,7 @@ var isAvailableId = function isAvailableId(query) {
2888
2713
  };
2889
2714
  var getFullscreenUid = function getFullscreenUid() {
2890
2715
  if (!CachedConst.fullscreenReferId) {
2891
- CachedConst.fullscreenReferId = "id_".concat((0,uuid.v4)());
2716
+ CachedConst.fullscreenReferId = "id_".concat(esm_browser_v4());
2892
2717
  }
2893
2718
  return CachedConst.fullscreenReferId;
2894
2719
  };
@@ -2921,6 +2746,8 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
2921
2746
  ;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
2922
2747
 
2923
2748
 
2749
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2750
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2924
2751
  /*
2925
2752
  * Tencent is pleased to support the open source community by making
2926
2753
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2964,12 +2791,12 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
2964
2791
  var localIsShow = (0,external_vue_namespaceObject.ref)(false);
2965
2792
  var fullScreenTarget = (0,external_vue_namespaceObject.ref)();
2966
2793
  var isElementFullScreen = function isElementFullScreen() {
2967
- var _a, _b;
2794
+ var _document$fullscreenE, _document$fullscreenE2;
2968
2795
  var elReference = resolveReferElement();
2969
- if ((_a = document.fullscreenElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) {
2796
+ if ((_document$fullscreenE = document.fullscreenElement) !== null && _document$fullscreenE !== void 0 && _document$fullscreenE.shadowRoot) {
2970
2797
  return document.fullscreenElement.shadowRoot.contains(elReference);
2971
2798
  }
2972
- return (_b = document.fullscreenElement) === null || _b === void 0 ? void 0 : _b.contains(elReference);
2799
+ return (_document$fullscreenE2 = document.fullscreenElement) === null || _document$fullscreenE2 === void 0 ? void 0 : _document$fullscreenE2.contains(elReference);
2973
2800
  };
2974
2801
  /**
2975
2802
  * 当全屏模式开启,获取指定选择器下面的全屏元素
@@ -2994,8 +2821,8 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
2994
2821
  * customTheme是指自定义的theme,string类型
2995
2822
  */
2996
2823
  var compTheme = (0,external_vue_namespaceObject.computed)(function () {
2997
- var _a, _b;
2998
- var themes = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.split(/\s+/)) !== null && _b !== void 0 ? _b : [];
2824
+ var _props$theme$split, _props$theme;
2825
+ var themes = (_props$theme$split = (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.split(/\s+/)) !== null && _props$theme$split !== void 0 ? _props$theme$split : [];
2999
2826
  themes.sort(function (a, b) {
3000
2827
  return Number(themeList.includes(b)) - Number(themeList.includes(a));
3001
2828
  });
@@ -3019,15 +2846,15 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3019
2846
  * @returns
3020
2847
  */
3021
2848
  var resolvePopElements = function resolvePopElements() {
3022
- var _a, _b, _c;
2849
+ var _refContent$value, _refArrow$value, _refRoot$value;
3023
2850
  var elReference = resolveReferElement();
3024
- var elContent = resolveTargetElement((_a = refContent.value) === null || _a === void 0 ? void 0 : _a.$el);
3025
- var elArrow = props.arrow ? resolveTargetElement((_b = refArrow.value) === null || _b === void 0 ? void 0 : _b.$el) : null;
3026
- var root = resolveTargetElement((_c = refRoot.value) === null || _c === void 0 ? void 0 : _c.$el);
2851
+ var elContent = resolveTargetElement((_refContent$value = refContent.value) === null || _refContent$value === void 0 ? void 0 : _refContent$value.$el);
2852
+ var elArrow = props.arrow ? resolveTargetElement((_refArrow$value = refArrow.value) === null || _refArrow$value === void 0 ? void 0 : _refArrow$value.$el) : null;
2853
+ var root = resolveTargetElement((_refRoot$value = refRoot.value) === null || _refRoot$value === void 0 ? void 0 : _refRoot$value.$el);
3027
2854
  var _contentAsHTMLElement = contentAsHTMLElement(props.content),
3028
2855
  isElement = _contentAsHTMLElement.isElement,
3029
2856
  content = _contentAsHTMLElement.content;
3030
- if (elContent && isElement && !(elContent === null || elContent === void 0 ? void 0 : elContent.contains(content))) {
2857
+ if (elContent && isElement && !(elContent !== null && elContent !== void 0 && elContent.contains(content))) {
3031
2858
  elContent.append(content);
3032
2859
  }
3033
2860
  return {
@@ -3038,24 +2865,26 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3038
2865
  };
3039
2866
  };
3040
2867
  var resolveReferElement = function resolveReferElement() {
3041
- var _a;
3042
- return resolveTargetElement(props.target) || resolveTargetElement((_a = refReference.value) === null || _a === void 0 ? void 0 : _a.$el);
2868
+ var _refReference$value;
2869
+ return resolveTargetElement(props.target) || resolveTargetElement((_refReference$value = refReference.value) === null || _refReference$value === void 0 ? void 0 : _refReference$value.$el);
3043
2870
  };
3044
2871
  var resolveModifiers = function resolveModifiers() {
3045
2872
  var resolveResult = {};
3046
2873
  if (Array.isArray(props.modifiers)) {
3047
2874
  props.modifiers.forEach(function (m) {
3048
- var _a, _b, _c, _d;
3049
2875
  var result;
3050
2876
  if (m.name === 'offset') {
3051
- if (typeof ((_a = m.options) === null || _a === void 0 ? void 0 : _a.offset) === 'number') {
3052
- result = (_b = m.options) === null || _b === void 0 ? void 0 : _b.offset;
2877
+ var _m$options, _m$options3;
2878
+ if (typeof ((_m$options = m.options) === null || _m$options === void 0 ? void 0 : _m$options.offset) === 'number') {
2879
+ var _m$options2;
2880
+ result = (_m$options2 = m.options) === null || _m$options2 === void 0 ? void 0 : _m$options2.offset;
3053
2881
  }
3054
- if (Array.isArray((_c = m.options) === null || _c === void 0 ? void 0 : _c.offset)) {
3055
- var _ref2 = (_d = m.options) === null || _d === void 0 ? void 0 : _d.offset,
3056
- _ref3 = _slicedToArray(_ref2, 2),
3057
- mainAxis = _ref3[0],
3058
- crossAxis = _ref3[1];
2882
+ if (Array.isArray((_m$options3 = m.options) === null || _m$options3 === void 0 ? void 0 : _m$options3.offset)) {
2883
+ var _m$options4;
2884
+ var _m$options$offset = (_m$options4 = m.options) === null || _m$options4 === void 0 ? void 0 : _m$options4.offset,
2885
+ _m$options$offset2 = _slicedToArray(_m$options$offset, 2),
2886
+ mainAxis = _m$options$offset2[0],
2887
+ crossAxis = _m$options$offset2[1];
3059
2888
  result = {
3060
2889
  mainAxis: mainAxis,
3061
2890
  crossAxis: crossAxis
@@ -3070,7 +2899,6 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3070
2899
  return resolveResult;
3071
2900
  };
3072
2901
  var resolvePopOptions = function resolvePopOptions(elArrow, props) {
3073
- var _a;
3074
2902
  var modifiers = resolveModifiers();
3075
2903
  var middleware = [offset(modifiers.offset || props.offset), shift({
3076
2904
  padding: props.padding
@@ -3100,12 +2928,13 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3100
2928
  * 全屏模式下面,需要自定义当前元素的一个platform
3101
2929
  */
3102
2930
  if (isElementFullScreen() || props.isVirtualEl) {
2931
+ var _props$platform;
3103
2932
  var _usePlatform = use_platform(fullScreenTarget.value),
3104
2933
  getElementRects = _usePlatform.getElementRects,
3105
2934
  getDimensions = _usePlatform.getDimensions,
3106
2935
  getClippingRect = _usePlatform.getClippingRect;
3107
2936
  Object.assign(options, {
3108
- platform: Object.assign(Object.assign({}, (_a = props === null || props === void 0 ? void 0 : props.platform) !== null && _a !== void 0 ? _a : {}), {
2937
+ platform: _objectSpread(_objectSpread({}, (_props$platform = props === null || props === void 0 ? void 0 : props.platform) !== null && _props$platform !== void 0 ? _props$platform : {}), {}, {
3109
2938
  getElementRects: getElementRects,
3110
2939
  getDimensions: getDimensions,
3111
2940
  getClippingRect: getClippingRect
@@ -3140,7 +2969,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3140
2969
  // class custom-theme
3141
2970
  var customThemeCls = compTheme.value.customThemes.join(' ');
3142
2971
  var customTheme = compTheme.value.customThemes.reduce(function (out, cur) {
3143
- return Object.assign(_defineProperty({}, "data-".concat(cur, "-theme"), true), out);
2972
+ return _objectSpread(_defineProperty({}, "data-".concat(cur, "-theme"), true), out);
3144
2973
  }, {});
3145
2974
  var contentClass = "".concat(customThemeCls);
3146
2975
  var cleanup = null;
@@ -3149,7 +2978,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3149
2978
  return Math.round(val * dpr) / dpr || 0;
3150
2979
  };
3151
2980
  var updatePopContentStyle = function updatePopContentStyle(elContent, x, y, middlewareData) {
3152
- var _a;
2981
+ var _middlewareData$hide;
3153
2982
  if (props.disableTransform) {
3154
2983
  Object.assign(elContent.style, {
3155
2984
  left: "".concat(getRoundPixelVal(x), "px"),
@@ -3162,17 +2991,17 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3162
2991
  transform: "translate3d(".concat(getRoundPixelVal(x), "px,").concat(getRoundPixelVal(y), "px,0)")
3163
2992
  });
3164
2993
  }
3165
- var referenceHidden = isHideMiddlewareAvailable() ? (_a = middlewareData.hide) === null || _a === void 0 ? void 0 : _a.referenceHidden : false;
2994
+ var referenceHidden = isHideMiddlewareAvailable() ? (_middlewareData$hide = middlewareData.hide) === null || _middlewareData$hide === void 0 ? void 0 : _middlewareData$hide.referenceHidden : false;
3166
2995
  Object.assign(elContent.style, {
3167
2996
  visibility: referenceHidden ? 'hidden' : 'visible'
3168
2997
  });
3169
2998
  };
3170
2999
  var updateArrowStyle = function updateArrowStyle(elArrow, resolvedPlacement, middlewareData) {
3171
- var _a;
3172
3000
  if (props.arrow) {
3173
- var _ref4 = (_a = middlewareData.arrow) !== null && _a !== void 0 ? _a : {},
3174
- arrowX = _ref4.x,
3175
- arrowY = _ref4.y;
3001
+ var _middlewareData$arrow;
3002
+ var _ref2 = (_middlewareData$arrow = middlewareData.arrow) !== null && _middlewareData$arrow !== void 0 ? _middlewareData$arrow : {},
3003
+ arrowX = _ref2.x,
3004
+ arrowY = _ref2.y;
3176
3005
  elArrow.setAttribute('data-arrow', resolvedPlacement);
3177
3006
  var arrowConfig = {
3178
3007
  left: '',
@@ -3214,11 +3043,11 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3214
3043
  var targetEl = virtualEl || elReference;
3215
3044
  if (!targetEl || !elContent) return;
3216
3045
  var options = resolvePopOptions(elArrow, props);
3217
- floating_ui_dom_computePosition(targetEl, elContent, options).then(function (_ref5) {
3218
- var x = _ref5.x,
3219
- y = _ref5.y,
3220
- placement = _ref5.placement,
3221
- middlewareData = _ref5.middlewareData;
3046
+ floating_ui_dom_computePosition(targetEl, elContent, options).then(function (_ref3) {
3047
+ var x = _ref3.x,
3048
+ y = _ref3.y,
3049
+ placement = _ref3.placement,
3050
+ middlewareData = _ref3.middlewareData;
3222
3051
  var oldClass = elContent.className;
3223
3052
  elContent.className = "".concat(oldClass.replace(contentClass, ''), " ").concat(contentClass).replace(/\s+/gm, ' ').replace(/^\s+|\s+$/g, '');
3224
3053
  Object.keys(customTheme).forEach(function (key) {
@@ -3265,8 +3094,8 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3265
3094
  }, delay);
3266
3095
  };
3267
3096
  var handlePopoverShow = function handlePopoverShow() {
3268
- var _a;
3269
- var elContent = resolveTargetElement((_a = refContent.value) === null || _a === void 0 ? void 0 : _a.$el);
3097
+ var _refContent$value2;
3098
+ var elContent = resolveTargetElement((_refContent$value2 = refContent.value) === null || _refContent$value2 === void 0 ? void 0 : _refContent$value2.$el);
3270
3099
  elContent.style.setProperty('display', 'block');
3271
3100
  elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex : external_shared_namespaceObject.bkZIndexManager.getPopperIndex()));
3272
3101
  updatePopover();
@@ -3275,8 +3104,8 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3275
3104
  });
3276
3105
  };
3277
3106
  var handlePopoverHide = function handlePopoverHide() {
3278
- var _a;
3279
- var elContent = resolveTargetElement((_a = refContent.value) === null || _a === void 0 ? void 0 : _a.$el);
3107
+ var _refContent$value3;
3108
+ var elContent = resolveTargetElement((_refContent$value3 = refContent.value) === null || _refContent$value3 === void 0 ? void 0 : _refContent$value3.$el);
3280
3109
  elContent.style.setProperty('display', 'none');
3281
3110
  ctx.emit(EMIT_EVENTS.CONTENT_AfterHidden, {
3282
3111
  isShow: false
@@ -3325,7 +3154,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3325
3154
  ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE, e);
3326
3155
  };
3327
3156
  var resolveTriggerEvents = function resolveTriggerEvents() {
3328
- var _a;
3157
+ var _triggerEvents$props$;
3329
3158
  var triggerEvents = {
3330
3159
  hover: {
3331
3160
  content: [['mouseenter', handlePopContentMouseEnter], ['mouseleave', handlePopContentMouseLeave]],
@@ -3337,7 +3166,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
3337
3166
  reference: [[]]
3338
3167
  }
3339
3168
  };
3340
- return (_a = triggerEvents[props.trigger]) !== null && _a !== void 0 ? _a : [];
3169
+ return (_triggerEvents$props$ = triggerEvents[props.trigger]) !== null && _triggerEvents$props$ !== void 0 ? _triggerEvents$props$ : [];
3341
3170
  };
3342
3171
  var updateFullscreenTarget = function updateFullscreenTarget(val) {
3343
3172
  fullScreenTarget.value = val;
@@ -3422,7 +3251,7 @@ var parentNodeReferId = null;
3422
3251
  resolvedBoundary = "".concat(prefix).concat(popContainerId);
3423
3252
  var _ref = root || {},
3424
3253
  parentNode = _ref.parentNode;
3425
- if (parentNode === null || parentNode === void 0 ? void 0 : parentNode.parentNode) {
3254
+ if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
3426
3255
  parentNode.parentNode.setAttribute('data-pnode-id', parentNodeReferId);
3427
3256
  resolvedBoundary = "[data-pnode-id=".concat(parentNodeReferId, "]");
3428
3257
  }
@@ -3453,14 +3282,14 @@ var parentNodeReferId = null;
3453
3282
  return resolvedBoundary;
3454
3283
  };
3455
3284
  if (popContainerId === null || !isAvailableId("#".concat(popContainerId))) {
3456
- popContainerId = "id_".concat((0,uuid.v4)());
3285
+ popContainerId = "id_".concat(esm_browser_v4());
3457
3286
  var popContainer = document.createElement('div');
3458
3287
  popContainer.setAttribute('id', popContainerId);
3459
3288
  popContainer.setAttribute('data-popper-id', popContainerId);
3460
3289
  document.body.append(popContainer);
3461
3290
  }
3462
3291
  if (parentNodeReferId === null) {
3463
- parentNodeReferId = "id_".concat((0,uuid.v4)());
3292
+ parentNodeReferId = "id_".concat(esm_browser_v4());
3464
3293
  }
3465
3294
  return {
3466
3295
  popContainerId: popContainerId,
@@ -3571,7 +3400,8 @@ var parentNodeReferId = null;
3571
3400
  });
3572
3401
  };
3573
3402
  var removeEventListener = function removeEventListener() {
3574
- if (storeEvents === null || storeEvents === void 0 ? void 0 : storeEvents.length) {
3403
+ var _storeEvents2;
3404
+ if ((_storeEvents2 = storeEvents) !== null && _storeEvents2 !== void 0 && _storeEvents2.length) {
3575
3405
  var _resolvePopElements2 = resolvePopElements(),
3576
3406
  elReference = _resolvePopElements2.elReference;
3577
3407
  if (elReference) {
@@ -3600,13 +3430,13 @@ var parentNodeReferId = null;
3600
3430
  var _usePopperId = use_popper_id(props, '#'),
3601
3431
  getPrefixId = _usePopperId.getPrefixId;
3602
3432
  var setFullscreenTag = function setFullscreenTag() {
3603
- var _a;
3604
- (_a = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) === null || _a === void 0 ? void 0 : _a.setAttribute('data-fllsrn-id', fullscreenReferId);
3433
+ var _fullScreenTarget$val;
3434
+ fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0 ? void 0 : _fullScreenTarget$val.setAttribute('data-fllsrn-id', fullscreenReferId);
3605
3435
  };
3606
3436
  var clearFullscreenTag = function clearFullscreenTag() {
3607
- var _a, _b;
3437
+ var _fullScreenTarget$val2, _fullScreenTarget$val3;
3608
3438
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
3609
- ((_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) {
3439
+ ((_fullScreenTarget$val2 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val3 = fullScreenTarget.value) === null || _fullScreenTarget$val3 === void 0 ? void 0 : _fullScreenTarget$val3.querySelectorAll(query)) !== null && _fullScreenTarget$val2 !== void 0 ? _fullScreenTarget$val2 : []).forEach(function (element) {
3610
3440
  element === null || element === void 0 ? void 0 : element.removeAttribute('data-fllsrn-id');
3611
3441
  });
3612
3442
  };
@@ -3827,12 +3657,17 @@ function _isSlot(s) {
3827
3657
  };
3828
3658
  },
3829
3659
  render: function render() {
3830
- var _this = this;
3831
3660
  var _slot;
3832
- var _a, _b, _c, _d, _e, _f;
3661
+ var _this$$slots$default,
3662
+ _this$$slots$default2,
3663
+ _this$$slots,
3664
+ _this = this,
3665
+ _this$$slots$content,
3666
+ _this$$slots$content2,
3667
+ _this$$slots3;
3833
3668
  var renderReferSlot = function renderReferSlot(slot) {
3834
- var _a;
3835
- if (external_vue_namespaceObject.Text === ((_a = slot === null || slot === void 0 ? void 0 : slot[0]) === null || _a === void 0 ? void 0 : _a.type)) {
3669
+ var _slot$;
3670
+ if (external_vue_namespaceObject.Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
3836
3671
  return (0,external_vue_namespaceObject.createVNode)("span", null, [slot]);
3837
3672
  }
3838
3673
  return slot;
@@ -3843,7 +3678,7 @@ function _isSlot(s) {
3843
3678
  "default": function _default() {
3844
3679
  return [(0,external_vue_namespaceObject.createVNode)(reference, {
3845
3680
  "ref": "refDefaultReference"
3846
- }, _isSlot(_slot = renderReferSlot((_c = (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,external_vue_namespaceObject.createVNode)("span", null, null))) ? _slot : {
3681
+ }, _isSlot(_slot = renderReferSlot((_this$$slots$default = (_this$$slots$default2 = (_this$$slots = _this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : (0,external_vue_namespaceObject.createVNode)("span", null, null))) ? _slot : {
3847
3682
  "default": function _default() {
3848
3683
  return [_slot];
3849
3684
  }
@@ -3864,15 +3699,15 @@ function _isSlot(s) {
3864
3699
  "eventDelay": _this.componentEventDelay
3865
3700
  }, {
3866
3701
  "default": function _default() {
3867
- return [_this.contentIsShow ? (_f = (_e = (_d = _this.$slots).content) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : _this.renderContent() : ''];
3702
+ return [_this.contentIsShow ? (_this$$slots$content = (_this$$slots$content2 = (_this$$slots3 = _this.$slots).content) === null || _this$$slots$content2 === void 0 ? void 0 : _this$$slots$content2.call(_this$$slots3)) !== null && _this$$slots$content !== void 0 ? _this$$slots$content : _this.renderContent() : ''];
3868
3703
  },
3869
3704
  arrow: function arrow() {
3870
- var _a, _b;
3705
+ var _this$$slots$arrow, _this$$slots2;
3871
3706
  return _this.arrow ? (0,external_vue_namespaceObject.createVNode)(src_arrow, {
3872
3707
  "ref": "refArrow"
3873
3708
  }, {
3874
3709
  "default": function _default() {
3875
- return [(_b = (_a = _this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a)];
3710
+ return [(_this$$slots$arrow = (_this$$slots2 = _this.$slots).arrow) === null || _this$$slots$arrow === void 0 ? void 0 : _this$$slots$arrow.call(_this$$slots2)];
3876
3711
  }
3877
3712
  }) : '';
3878
3713
  }
@@ -3886,6 +3721,8 @@ function _isSlot(s) {
3886
3721
  ;// CONCATENATED MODULE: ../../packages/popover/src/plugin-popover.tsx
3887
3722
 
3888
3723
 
3724
+ function plugin_popover_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3725
+ function plugin_popover_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? plugin_popover_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : plugin_popover_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3889
3726
  /*
3890
3727
  * Tencent is pleased to support the open source community by making
3891
3728
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -3919,13 +3756,13 @@ function createPopoverComponent(options) {
3919
3756
  var $PopoverInstance = null;
3920
3757
  var $PopoverInstanceVm = null;
3921
3758
  var $PopoverInstanceEl = null;
3922
- var resolvedOptions = Object.assign(Object.assign({
3759
+ var resolvedOptions = plugin_popover_objectSpread(plugin_popover_objectSpread({
3923
3760
  boundary: 'body',
3924
3761
  placement: 'top',
3925
3762
  autoVisibility: true,
3926
3763
  isShow: false,
3927
3764
  trigger: 'manual'
3928
- }, options), {
3765
+ }, options), {}, {
3929
3766
  allowHtml: true
3930
3767
  });
3931
3768
  var popoverComponent = {
@@ -3945,29 +3782,29 @@ function createPopoverComponent(options) {
3945
3782
  var refProps = (0,external_vue_namespaceObject.reactive)(formatOptions());
3946
3783
  var refReference = (0,external_vue_namespaceObject.ref)();
3947
3784
  var show = function show() {
3948
- var _a, _b;
3949
- (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.show) === null || _b === void 0 ? void 0 : _b.call(_a);
3785
+ var _refReference$value, _refReference$value$s;
3786
+ (_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0 ? void 0 : _refReference$value$s.call(_refReference$value);
3950
3787
  };
3951
3788
  var hide = function hide() {
3952
- var _a, _b;
3953
- (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.hide) === null || _b === void 0 ? void 0 : _b.call(_a);
3789
+ var _refReference$value2, _refReference$value2$;
3790
+ (_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 ? void 0 : _refReference$value2$.call(_refReference$value2);
3954
3791
  };
3955
3792
  var stopHide = function stopHide() {
3956
- var _a, _b;
3957
- (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.stopHide) === null || _b === void 0 ? void 0 : _b.call(_a);
3793
+ var _refReference$value3, _refReference$value3$;
3794
+ (_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 ? void 0 : _refReference$value3$.call(_refReference$value3);
3958
3795
  };
3959
3796
  var updateTarget = function updateTarget(target) {
3960
- var _a, _b;
3797
+ var _refReference$value4, _refReference$value4$;
3961
3798
  refProps.target = target;
3962
- (_b = (_a = refReference.value) === null || _a === void 0 ? void 0 : _a.resetPopover) === null || _b === void 0 ? void 0 : _b.call(_a);
3799
+ (_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 ? void 0 : _refReference$value4$.call(_refReference$value4);
3963
3800
  };
3964
3801
  var handleContentMouseenter = function handleContentMouseenter() {
3965
- var _a;
3966
- (_a = resolvedOptions.onContentMouseenter) === null || _a === void 0 ? void 0 : _a.call(resolvedOptions);
3802
+ var _resolvedOptions$onCo;
3803
+ (_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 ? void 0 : _resolvedOptions$onCo.call(resolvedOptions);
3967
3804
  };
3968
3805
  var handleContentMouseleave = function handleContentMouseleave() {
3969
- var _a;
3970
- (_a = resolvedOptions.onContentMouseleave) === null || _a === void 0 ? void 0 : _a.call(resolvedOptions);
3806
+ var _resolvedOptions$onCo2;
3807
+ (_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 ? void 0 : _resolvedOptions$onCo2.call(resolvedOptions);
3971
3808
  };
3972
3809
  expose({
3973
3810
  show: show,
@@ -4014,13 +3851,16 @@ function createPopoverComponent(options) {
4014
3851
  }
4015
3852
  }
4016
3853
  function show() {
4017
- $PopoverInstanceVm === null || $PopoverInstanceVm === void 0 ? void 0 : $PopoverInstanceVm.show();
3854
+ var _$PopoverInstanceVm;
3855
+ (_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 ? void 0 : _$PopoverInstanceVm.show();
4018
3856
  }
4019
3857
  function update(e) {
4020
- $PopoverInstanceVm === null || $PopoverInstanceVm === void 0 ? void 0 : $PopoverInstanceVm.updateTarget(e);
3858
+ var _$PopoverInstanceVm2;
3859
+ (_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 ? void 0 : _$PopoverInstanceVm2.updateTarget(e);
4021
3860
  }
4022
3861
  function hide() {
4023
- $PopoverInstanceVm === null || $PopoverInstanceVm === void 0 ? void 0 : $PopoverInstanceVm.hide();
3862
+ var _$PopoverInstanceVm3;
3863
+ (_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 ? void 0 : _$PopoverInstanceVm3.hide();
4024
3864
  }
4025
3865
  return {
4026
3866
  close: close,
@@ -4067,8 +3907,6 @@ var BkPopover = (0,external_shared_namespaceObject.withInstall)(popover);
4067
3907
  /* harmony default export */ const src = (BkPopover);
4068
3908
 
4069
3909
 
4070
- })();
4071
-
4072
3910
  var __webpack_exports__$bkPopover = __webpack_exports__.kB;
4073
3911
  var __webpack_exports__PopoverProps = __webpack_exports__.uE;
4074
3912
  var __webpack_exports__default = __webpack_exports__.ZP;