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.
- package/dist/index.cjs.js +48 -48
- package/dist/index.esm.js +8323 -8377
- package/dist/index.umd.js +48 -48
- package/lib/affix/index.js +5 -3
- package/lib/alert/index.js +2 -3
- package/lib/backtop/index.js +2 -2
- package/lib/badge/index.js +3 -4
- package/lib/breadcrumb/index.js +4 -4
- package/lib/button/index.js +6 -6
- package/lib/card/index.js +16 -5
- package/lib/cascader/index.js +70 -53
- package/lib/checkbox/index.js +4 -4
- package/lib/collapse/index.js +58 -6
- package/lib/color-picker/index.js +14 -11
- package/lib/config-provider/index.js +51 -3
- package/lib/container/index.js +55 -7
- package/lib/date-picker/index.js +202 -156
- package/lib/dialog/index.js +140 -431
- package/lib/directives/index.js +59 -19
- package/lib/dropdown/index.js +8 -8
- package/lib/exception/index.js +5 -5
- package/lib/form/index.js +22 -16
- package/lib/icon/angle-double-down-line.js +84 -374
- package/lib/icon/angle-double-left-line.js +84 -374
- package/lib/icon/angle-double-left.js +84 -374
- package/lib/icon/angle-double-right-line.js +84 -374
- package/lib/icon/angle-double-right.js +84 -374
- package/lib/icon/angle-double-up-line.js +84 -374
- package/lib/icon/angle-down-fill.js +84 -374
- package/lib/icon/angle-down-line.js +84 -374
- package/lib/icon/angle-down.js +84 -374
- package/lib/icon/angle-left.js +84 -374
- package/lib/icon/angle-right.js +84 -374
- package/lib/icon/angle-up-fill.js +84 -374
- package/lib/icon/angle-up.js +84 -374
- package/lib/icon/archive-fill.js +84 -374
- package/lib/icon/arrows-left.js +84 -374
- package/lib/icon/arrows-right.js +84 -374
- package/lib/icon/assistant.js +84 -374
- package/lib/icon/audio-fill.js +84 -374
- package/lib/icon/bk.js +84 -374
- package/lib/icon/circle.js +84 -374
- package/lib/icon/close-line.js +84 -374
- package/lib/icon/close.js +84 -374
- package/lib/icon/code.js +84 -374
- package/lib/icon/cog-shape.js +84 -374
- package/lib/icon/collapse-left.js +84 -374
- package/lib/icon/copy-shape.js +84 -374
- package/lib/icon/copy.js +84 -374
- package/lib/icon/data-shape.js +84 -374
- package/lib/icon/del.js +84 -374
- package/lib/icon/doc-fill.js +84 -374
- package/lib/icon/done.js +84 -374
- package/lib/icon/down-shape.js +84 -374
- package/lib/icon/down-small.js +84 -374
- package/lib/icon/edit-line.js +84 -374
- package/lib/icon/ellipsis.js +84 -374
- package/lib/icon/enlarge-line.js +84 -374
- package/lib/icon/error.js +84 -374
- package/lib/icon/excel-fill.js +84 -374
- package/lib/icon/exclamation-circle-shape.js +84 -374
- package/lib/icon/eye.js +84 -374
- package/lib/icon/filliscreen-line.js +84 -374
- package/lib/icon/fix-line.js +84 -374
- package/lib/icon/fix-shape.js +84 -374
- package/lib/icon/folder-open.js +84 -374
- package/lib/icon/folder-shape-open.js +84 -374
- package/lib/icon/folder-shape.js +84 -374
- package/lib/icon/folder.js +84 -374
- package/lib/icon/funnel.js +84 -374
- package/lib/icon/help-document-fill.js +84 -374
- package/lib/icon/help-fill.js +84 -374
- package/lib/icon/help.js +84 -374
- package/lib/icon/image-fill.js +131 -382
- package/lib/icon/img-error.js +131 -382
- package/lib/icon/img-placehoulder.js +131 -382
- package/lib/icon/index.js +563 -531
- package/lib/icon/info-line.js +131 -382
- package/lib/icon/info.js +131 -382
- package/lib/icon/left-shape.js +131 -382
- package/lib/icon/left-turn-line.js +131 -382
- package/lib/icon/narrow-line.js +131 -382
- package/lib/icon/original.js +131 -382
- package/lib/icon/pdf-fill.js +131 -382
- package/lib/icon/play-shape.js +131 -382
- package/lib/icon/plus.js +131 -382
- package/lib/icon/ppt-fill.js +131 -382
- package/lib/icon/qq.js +131 -382
- package/lib/icon/right-shape.js +131 -382
- package/lib/icon/right-turn-line.js +131 -382
- package/lib/icon/search.js +131 -382
- package/lib/icon/share.js +131 -382
- package/lib/icon/spinner.js +131 -382
- package/lib/icon/success.js +131 -382
- package/lib/icon/switcher-loading.js +131 -382
- package/lib/icon/text-file.js +131 -382
- package/lib/icon/text-fill.js +131 -382
- package/lib/icon/transfer.js +131 -382
- package/lib/icon/tree-application-shape.js +131 -382
- package/lib/icon/unfull-screen.js +131 -382
- package/lib/icon/unvisible.js +131 -382
- package/lib/icon/up-shape.js +131 -382
- package/lib/icon/upload.js +131 -382
- package/lib/icon/video-fill.js +131 -382
- package/lib/icon/warn.js +131 -382
- package/lib/icon/weixin-pro.js +131 -382
- package/lib/icon/weixin.js +131 -382
- package/lib/image/index.js +57 -9
- package/lib/info-box/index.js +145 -436
- package/lib/input/index.js +105 -415
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +18 -16
- package/lib/menu/index.js +22 -23
- package/lib/message/index.js +62 -57
- package/lib/modal/index.js +77 -18
- package/lib/navigation/index.js +11 -11
- package/lib/notify/index.js +51 -48
- package/lib/overflow-title/index.js +6 -5
- package/lib/plugin-popover/index.js +202 -364
- package/lib/popover/index.js +202 -364
- package/lib/process/index.js +55 -395
- package/lib/progress/index.js +51 -48
- package/lib/radio/index.js +4 -4
- package/lib/rate/index.js +2 -2
- package/lib/resize-layout/index.js +4 -5
- package/lib/search-select/index.js +179 -486
- package/lib/select/index.js +148 -479
- package/lib/shared/index.js +176 -352
- package/lib/sideslider/index.js +82 -373
- package/lib/slider/index.js +48 -386
- package/lib/steps/index.js +67 -405
- package/lib/swiper/index.js +10 -10
- package/lib/switcher/index.js +2 -2
- package/lib/tab/index.js +63 -8
- package/lib/table/index.js +262 -424
- package/lib/table-column/index.js +7 -6
- package/lib/tag/index.js +2 -2
- package/lib/tag-input/index.js +29 -21
- package/lib/timeline/index.js +6 -7
- package/lib/transfer/index.js +8 -8
- package/lib/tree/index.js +139 -319
- package/lib/upload/index.js +104 -423
- package/lib/virtual-render/index.js +60 -16
- package/package.json +2 -1
@@ -3,274 +3,8 @@ import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
|
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
|
-
/******/
|
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__, {
|
@@ -630,21 +362,21 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
630
362
|
var refContent = (0,external_vue_namespaceObject.ref)(null);
|
631
363
|
var refTimer = (0,external_vue_namespaceObject.ref)(null);
|
632
364
|
var resetPointerEvent = function resetPointerEvent() {
|
633
|
-
var
|
365
|
+
var _props$eventDelay;
|
634
366
|
if (props.eventDelay === 0) {
|
635
367
|
return;
|
636
368
|
}
|
637
369
|
refTimer.value && clearTimeout(refTimer.value);
|
638
370
|
refTimer.value = setTimeout(function () {
|
639
371
|
setContentPointerEvent('unset');
|
640
|
-
}, (
|
372
|
+
}, (_props$eventDelay = props.eventDelay) !== null && _props$eventDelay !== void 0 ? _props$eventDelay : 300);
|
641
373
|
};
|
642
374
|
var setContentPointerEvent = function setContentPointerEvent(val) {
|
643
|
-
var
|
375
|
+
var _refContent$value;
|
644
376
|
if (props.eventDelay === 0) {
|
645
377
|
return;
|
646
378
|
}
|
647
|
-
(
|
379
|
+
(_refContent$value = refContent.value) === null || _refContent$value === void 0 ? void 0 : _refContent$value.style.setProperty('pointer-events', val);
|
648
380
|
};
|
649
381
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
650
382
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -657,12 +389,19 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
657
389
|
};
|
658
390
|
},
|
659
391
|
render: function render() {
|
660
|
-
var _this = this
|
661
|
-
|
392
|
+
var _this = this,
|
393
|
+
_this$$slots$default,
|
394
|
+
_this$$slots,
|
395
|
+
_this$$slots$arrow,
|
396
|
+
_this$$slots$arrow2,
|
397
|
+
_this$$slots2,
|
398
|
+
_this$$slots$default2,
|
399
|
+
_this$$slots$default3,
|
400
|
+
_this$$slots3;
|
662
401
|
var className = [this.resolveClassName('popover'), this.resolveClassName('pop2-content'), this.extCls];
|
663
402
|
var resolveContentStyle = function resolveContentStyle(slot) {
|
664
|
-
var
|
665
|
-
if (external_vue_namespaceObject.Fragment === (
|
403
|
+
var _slot$;
|
404
|
+
if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
666
405
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
667
406
|
_this.setContentPointerEvent('none');
|
668
407
|
_this.resetPointerEvent();
|
@@ -670,12 +409,12 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
670
409
|
}
|
671
410
|
return _this.style;
|
672
411
|
};
|
673
|
-
var style = resolveContentStyle((
|
412
|
+
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));
|
674
413
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
675
414
|
"class": className,
|
676
415
|
"style": style,
|
677
416
|
"ref": "refContent"
|
678
|
-
}, [(
|
417
|
+
}, [(_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 : '']);
|
679
418
|
}
|
680
419
|
}));
|
681
420
|
;// CONCATENATED MODULE: external "vue-types"
|
@@ -806,8 +545,8 @@ var PopoverProps = {
|
|
806
545
|
/* harmony default export */ const reference = ((0,external_vue_namespaceObject.defineComponent)({
|
807
546
|
name: 'PopReference',
|
808
547
|
render: function render() {
|
809
|
-
var
|
810
|
-
return (
|
548
|
+
var _this$$slots$default, _this$$slots$default2, _this$$slots;
|
549
|
+
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 : '';
|
811
550
|
}
|
812
551
|
}));
|
813
552
|
;// CONCATENATED MODULE: ../../packages/popover/src/root.tsx
|
@@ -845,8 +584,8 @@ var PopoverProps = {
|
|
845
584
|
mode: external_shared_namespaceObject.PropTypes.string.def('')
|
846
585
|
},
|
847
586
|
render: function render() {
|
848
|
-
var
|
849
|
-
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(
|
587
|
+
var _this$$slots$default, _this$$slots;
|
588
|
+
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)]);
|
850
589
|
}
|
851
590
|
}));
|
852
591
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
@@ -2830,9 +2569,9 @@ function _objectDestructuringEmpty(obj) {
|
|
2830
2569
|
};
|
2831
2570
|
};
|
2832
2571
|
var getClippingRect = function getClippingRect(_ref2) {
|
2572
|
+
var _fullscreenTarget$get;
|
2833
2573
|
_objectDestructuringEmpty(_ref2);
|
2834
|
-
var
|
2835
|
-
var _ref3 = (_a = fullscreenTarget === null || fullscreenTarget === void 0 ? void 0 : fullscreenTarget.getBoundingClientRect()) !== null && _a !== void 0 ? _a : {},
|
2574
|
+
var _ref3 = (_fullscreenTarget$get = fullscreenTarget === null || fullscreenTarget === void 0 ? void 0 : fullscreenTarget.getBoundingClientRect()) !== null && _fullscreenTarget$get !== void 0 ? _fullscreenTarget$get : {},
|
2836
2575
|
_ref3$width = _ref3.width,
|
2837
2576
|
width = _ref3$width === void 0 ? 0 : _ref3$width,
|
2838
2577
|
_ref3$height = _ref3.height,
|
@@ -2850,8 +2589,94 @@ function _objectDestructuringEmpty(obj) {
|
|
2850
2589
|
getClippingRect: getClippingRect
|
2851
2590
|
};
|
2852
2591
|
});
|
2853
|
-
|
2854
|
-
|
2592
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
2593
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
2594
|
+
/* harmony default export */ const esm_browser_native = ({
|
2595
|
+
randomUUID
|
2596
|
+
});
|
2597
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/rng.js
|
2598
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
2599
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
2600
|
+
// generators (like Math.random()).
|
2601
|
+
let getRandomValues;
|
2602
|
+
const rnds8 = new Uint8Array(16);
|
2603
|
+
function rng() {
|
2604
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
2605
|
+
if (!getRandomValues) {
|
2606
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
2607
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
2608
|
+
|
2609
|
+
if (!getRandomValues) {
|
2610
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
2611
|
+
}
|
2612
|
+
}
|
2613
|
+
|
2614
|
+
return getRandomValues(rnds8);
|
2615
|
+
}
|
2616
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/stringify.js
|
2617
|
+
|
2618
|
+
/**
|
2619
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
2620
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
2621
|
+
*/
|
2622
|
+
|
2623
|
+
const byteToHex = [];
|
2624
|
+
|
2625
|
+
for (let i = 0; i < 256; ++i) {
|
2626
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
2627
|
+
}
|
2628
|
+
|
2629
|
+
function unsafeStringify(arr, offset = 0) {
|
2630
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
2631
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
2632
|
+
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]];
|
2633
|
+
}
|
2634
|
+
|
2635
|
+
function stringify(arr, offset = 0) {
|
2636
|
+
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
2637
|
+
// of the following:
|
2638
|
+
// - One or more input array values don't map to a hex octet (leading to
|
2639
|
+
// "undefined" in the uuid)
|
2640
|
+
// - Invalid input values for the RFC `version` or `variant` fields
|
2641
|
+
|
2642
|
+
if (!validate(uuid)) {
|
2643
|
+
throw TypeError('Stringified UUID is invalid');
|
2644
|
+
}
|
2645
|
+
|
2646
|
+
return uuid;
|
2647
|
+
}
|
2648
|
+
|
2649
|
+
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
2650
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/v4.js
|
2651
|
+
|
2652
|
+
|
2653
|
+
|
2654
|
+
|
2655
|
+
function v4(options, buf, offset) {
|
2656
|
+
if (esm_browser_native.randomUUID && !buf && !options) {
|
2657
|
+
return esm_browser_native.randomUUID();
|
2658
|
+
}
|
2659
|
+
|
2660
|
+
options = options || {};
|
2661
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
2662
|
+
|
2663
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
2664
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
2665
|
+
|
2666
|
+
if (buf) {
|
2667
|
+
offset = offset || 0;
|
2668
|
+
|
2669
|
+
for (let i = 0; i < 16; ++i) {
|
2670
|
+
buf[offset + i] = rnds[i];
|
2671
|
+
}
|
2672
|
+
|
2673
|
+
return buf;
|
2674
|
+
}
|
2675
|
+
|
2676
|
+
return unsafeStringify(rnds);
|
2677
|
+
}
|
2678
|
+
|
2679
|
+
/* harmony default export */ const esm_browser_v4 = (v4);
|
2855
2680
|
;// CONCATENATED MODULE: ../../packages/popover/src/utils.ts
|
2856
2681
|
/*
|
2857
2682
|
* Tencent is pleased to support the open source community by making
|
@@ -2886,7 +2711,7 @@ var isAvailableId = function isAvailableId(query) {
|
|
2886
2711
|
};
|
2887
2712
|
var getFullscreenUid = function getFullscreenUid() {
|
2888
2713
|
if (!CachedConst.fullscreenReferId) {
|
2889
|
-
CachedConst.fullscreenReferId = "id_".concat((
|
2714
|
+
CachedConst.fullscreenReferId = "id_".concat(esm_browser_v4());
|
2890
2715
|
}
|
2891
2716
|
return CachedConst.fullscreenReferId;
|
2892
2717
|
};
|
@@ -2919,6 +2744,8 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
2919
2744
|
;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
|
2920
2745
|
|
2921
2746
|
|
2747
|
+
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; }
|
2748
|
+
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; }
|
2922
2749
|
/*
|
2923
2750
|
* Tencent is pleased to support the open source community by making
|
2924
2751
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2962,12 +2789,12 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
2962
2789
|
var localIsShow = (0,external_vue_namespaceObject.ref)(false);
|
2963
2790
|
var fullScreenTarget = (0,external_vue_namespaceObject.ref)();
|
2964
2791
|
var isElementFullScreen = function isElementFullScreen() {
|
2965
|
-
var
|
2792
|
+
var _document$fullscreenE, _document$fullscreenE2;
|
2966
2793
|
var elReference = resolveReferElement();
|
2967
|
-
if ((
|
2794
|
+
if ((_document$fullscreenE = document.fullscreenElement) !== null && _document$fullscreenE !== void 0 && _document$fullscreenE.shadowRoot) {
|
2968
2795
|
return document.fullscreenElement.shadowRoot.contains(elReference);
|
2969
2796
|
}
|
2970
|
-
return (
|
2797
|
+
return (_document$fullscreenE2 = document.fullscreenElement) === null || _document$fullscreenE2 === void 0 ? void 0 : _document$fullscreenE2.contains(elReference);
|
2971
2798
|
};
|
2972
2799
|
/**
|
2973
2800
|
* 当全屏模式开启,获取指定选择器下面的全屏元素
|
@@ -2992,8 +2819,8 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
2992
2819
|
* customTheme是指自定义的theme,string类型
|
2993
2820
|
*/
|
2994
2821
|
var compTheme = (0,external_vue_namespaceObject.computed)(function () {
|
2995
|
-
var
|
2996
|
-
var themes = (
|
2822
|
+
var _props$theme$split, _props$theme;
|
2823
|
+
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 : [];
|
2997
2824
|
themes.sort(function (a, b) {
|
2998
2825
|
return Number(themeList.includes(b)) - Number(themeList.includes(a));
|
2999
2826
|
});
|
@@ -3017,15 +2844,15 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3017
2844
|
* @returns
|
3018
2845
|
*/
|
3019
2846
|
var resolvePopElements = function resolvePopElements() {
|
3020
|
-
var
|
2847
|
+
var _refContent$value, _refArrow$value, _refRoot$value;
|
3021
2848
|
var elReference = resolveReferElement();
|
3022
|
-
var elContent = resolveTargetElement((
|
3023
|
-
var elArrow = props.arrow ? resolveTargetElement((
|
3024
|
-
var root = resolveTargetElement((
|
2849
|
+
var elContent = resolveTargetElement((_refContent$value = refContent.value) === null || _refContent$value === void 0 ? void 0 : _refContent$value.$el);
|
2850
|
+
var elArrow = props.arrow ? resolveTargetElement((_refArrow$value = refArrow.value) === null || _refArrow$value === void 0 ? void 0 : _refArrow$value.$el) : null;
|
2851
|
+
var root = resolveTargetElement((_refRoot$value = refRoot.value) === null || _refRoot$value === void 0 ? void 0 : _refRoot$value.$el);
|
3025
2852
|
var _contentAsHTMLElement = contentAsHTMLElement(props.content),
|
3026
2853
|
isElement = _contentAsHTMLElement.isElement,
|
3027
2854
|
content = _contentAsHTMLElement.content;
|
3028
|
-
if (elContent && isElement && !(elContent
|
2855
|
+
if (elContent && isElement && !(elContent !== null && elContent !== void 0 && elContent.contains(content))) {
|
3029
2856
|
elContent.append(content);
|
3030
2857
|
}
|
3031
2858
|
return {
|
@@ -3036,24 +2863,26 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3036
2863
|
};
|
3037
2864
|
};
|
3038
2865
|
var resolveReferElement = function resolveReferElement() {
|
3039
|
-
var
|
3040
|
-
return resolveTargetElement(props.target) || resolveTargetElement((
|
2866
|
+
var _refReference$value;
|
2867
|
+
return resolveTargetElement(props.target) || resolveTargetElement((_refReference$value = refReference.value) === null || _refReference$value === void 0 ? void 0 : _refReference$value.$el);
|
3041
2868
|
};
|
3042
2869
|
var resolveModifiers = function resolveModifiers() {
|
3043
2870
|
var resolveResult = {};
|
3044
2871
|
if (Array.isArray(props.modifiers)) {
|
3045
2872
|
props.modifiers.forEach(function (m) {
|
3046
|
-
var _a, _b, _c, _d;
|
3047
2873
|
var result;
|
3048
2874
|
if (m.name === 'offset') {
|
3049
|
-
|
3050
|
-
|
2875
|
+
var _m$options, _m$options3;
|
2876
|
+
if (typeof ((_m$options = m.options) === null || _m$options === void 0 ? void 0 : _m$options.offset) === 'number') {
|
2877
|
+
var _m$options2;
|
2878
|
+
result = (_m$options2 = m.options) === null || _m$options2 === void 0 ? void 0 : _m$options2.offset;
|
3051
2879
|
}
|
3052
|
-
if (Array.isArray((
|
3053
|
-
var
|
3054
|
-
|
3055
|
-
|
3056
|
-
|
2880
|
+
if (Array.isArray((_m$options3 = m.options) === null || _m$options3 === void 0 ? void 0 : _m$options3.offset)) {
|
2881
|
+
var _m$options4;
|
2882
|
+
var _m$options$offset = (_m$options4 = m.options) === null || _m$options4 === void 0 ? void 0 : _m$options4.offset,
|
2883
|
+
_m$options$offset2 = _slicedToArray(_m$options$offset, 2),
|
2884
|
+
mainAxis = _m$options$offset2[0],
|
2885
|
+
crossAxis = _m$options$offset2[1];
|
3057
2886
|
result = {
|
3058
2887
|
mainAxis: mainAxis,
|
3059
2888
|
crossAxis: crossAxis
|
@@ -3068,7 +2897,6 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3068
2897
|
return resolveResult;
|
3069
2898
|
};
|
3070
2899
|
var resolvePopOptions = function resolvePopOptions(elArrow, props) {
|
3071
|
-
var _a;
|
3072
2900
|
var modifiers = resolveModifiers();
|
3073
2901
|
var middleware = [offset(modifiers.offset || props.offset), shift({
|
3074
2902
|
padding: props.padding
|
@@ -3098,12 +2926,13 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3098
2926
|
* 全屏模式下面,需要自定义当前元素的一个platform
|
3099
2927
|
*/
|
3100
2928
|
if (isElementFullScreen() || props.isVirtualEl) {
|
2929
|
+
var _props$platform;
|
3101
2930
|
var _usePlatform = use_platform(fullScreenTarget.value),
|
3102
2931
|
getElementRects = _usePlatform.getElementRects,
|
3103
2932
|
getDimensions = _usePlatform.getDimensions,
|
3104
2933
|
getClippingRect = _usePlatform.getClippingRect;
|
3105
2934
|
Object.assign(options, {
|
3106
|
-
platform:
|
2935
|
+
platform: _objectSpread(_objectSpread({}, (_props$platform = props === null || props === void 0 ? void 0 : props.platform) !== null && _props$platform !== void 0 ? _props$platform : {}), {}, {
|
3107
2936
|
getElementRects: getElementRects,
|
3108
2937
|
getDimensions: getDimensions,
|
3109
2938
|
getClippingRect: getClippingRect
|
@@ -3138,7 +2967,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3138
2967
|
// class custom-theme
|
3139
2968
|
var customThemeCls = compTheme.value.customThemes.join(' ');
|
3140
2969
|
var customTheme = compTheme.value.customThemes.reduce(function (out, cur) {
|
3141
|
-
return
|
2970
|
+
return _objectSpread(_defineProperty({}, "data-".concat(cur, "-theme"), true), out);
|
3142
2971
|
}, {});
|
3143
2972
|
var contentClass = "".concat(customThemeCls);
|
3144
2973
|
var cleanup = null;
|
@@ -3147,7 +2976,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3147
2976
|
return Math.round(val * dpr) / dpr || 0;
|
3148
2977
|
};
|
3149
2978
|
var updatePopContentStyle = function updatePopContentStyle(elContent, x, y, middlewareData) {
|
3150
|
-
var
|
2979
|
+
var _middlewareData$hide;
|
3151
2980
|
if (props.disableTransform) {
|
3152
2981
|
Object.assign(elContent.style, {
|
3153
2982
|
left: "".concat(getRoundPixelVal(x), "px"),
|
@@ -3160,17 +2989,17 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3160
2989
|
transform: "translate3d(".concat(getRoundPixelVal(x), "px,").concat(getRoundPixelVal(y), "px,0)")
|
3161
2990
|
});
|
3162
2991
|
}
|
3163
|
-
var referenceHidden = isHideMiddlewareAvailable() ? (
|
2992
|
+
var referenceHidden = isHideMiddlewareAvailable() ? (_middlewareData$hide = middlewareData.hide) === null || _middlewareData$hide === void 0 ? void 0 : _middlewareData$hide.referenceHidden : false;
|
3164
2993
|
Object.assign(elContent.style, {
|
3165
2994
|
visibility: referenceHidden ? 'hidden' : 'visible'
|
3166
2995
|
});
|
3167
2996
|
};
|
3168
2997
|
var updateArrowStyle = function updateArrowStyle(elArrow, resolvedPlacement, middlewareData) {
|
3169
|
-
var _a;
|
3170
2998
|
if (props.arrow) {
|
3171
|
-
var
|
3172
|
-
|
3173
|
-
|
2999
|
+
var _middlewareData$arrow;
|
3000
|
+
var _ref2 = (_middlewareData$arrow = middlewareData.arrow) !== null && _middlewareData$arrow !== void 0 ? _middlewareData$arrow : {},
|
3001
|
+
arrowX = _ref2.x,
|
3002
|
+
arrowY = _ref2.y;
|
3174
3003
|
elArrow.setAttribute('data-arrow', resolvedPlacement);
|
3175
3004
|
var arrowConfig = {
|
3176
3005
|
left: '',
|
@@ -3212,11 +3041,11 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3212
3041
|
var targetEl = virtualEl || elReference;
|
3213
3042
|
if (!targetEl || !elContent) return;
|
3214
3043
|
var options = resolvePopOptions(elArrow, props);
|
3215
|
-
floating_ui_dom_computePosition(targetEl, elContent, options).then(function (
|
3216
|
-
var x =
|
3217
|
-
y =
|
3218
|
-
placement =
|
3219
|
-
middlewareData =
|
3044
|
+
floating_ui_dom_computePosition(targetEl, elContent, options).then(function (_ref3) {
|
3045
|
+
var x = _ref3.x,
|
3046
|
+
y = _ref3.y,
|
3047
|
+
placement = _ref3.placement,
|
3048
|
+
middlewareData = _ref3.middlewareData;
|
3220
3049
|
var oldClass = elContent.className;
|
3221
3050
|
elContent.className = "".concat(oldClass.replace(contentClass, ''), " ").concat(contentClass).replace(/\s+/gm, ' ').replace(/^\s+|\s+$/g, '');
|
3222
3051
|
Object.keys(customTheme).forEach(function (key) {
|
@@ -3263,8 +3092,8 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3263
3092
|
}, delay);
|
3264
3093
|
};
|
3265
3094
|
var handlePopoverShow = function handlePopoverShow() {
|
3266
|
-
var
|
3267
|
-
var elContent = resolveTargetElement((
|
3095
|
+
var _refContent$value2;
|
3096
|
+
var elContent = resolveTargetElement((_refContent$value2 = refContent.value) === null || _refContent$value2 === void 0 ? void 0 : _refContent$value2.$el);
|
3268
3097
|
elContent.style.setProperty('display', 'block');
|
3269
3098
|
elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex : external_shared_namespaceObject.bkZIndexManager.getPopperIndex()));
|
3270
3099
|
updatePopover();
|
@@ -3273,8 +3102,8 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3273
3102
|
});
|
3274
3103
|
};
|
3275
3104
|
var handlePopoverHide = function handlePopoverHide() {
|
3276
|
-
var
|
3277
|
-
var elContent = resolveTargetElement((
|
3105
|
+
var _refContent$value3;
|
3106
|
+
var elContent = resolveTargetElement((_refContent$value3 = refContent.value) === null || _refContent$value3 === void 0 ? void 0 : _refContent$value3.$el);
|
3278
3107
|
elContent.style.setProperty('display', 'none');
|
3279
3108
|
ctx.emit(EMIT_EVENTS.CONTENT_AfterHidden, {
|
3280
3109
|
isShow: false
|
@@ -3323,7 +3152,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3323
3152
|
ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE, e);
|
3324
3153
|
};
|
3325
3154
|
var resolveTriggerEvents = function resolveTriggerEvents() {
|
3326
|
-
var
|
3155
|
+
var _triggerEvents$props$;
|
3327
3156
|
var triggerEvents = {
|
3328
3157
|
hover: {
|
3329
3158
|
content: [['mouseenter', handlePopContentMouseEnter], ['mouseleave', handlePopContentMouseLeave]],
|
@@ -3335,7 +3164,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
3335
3164
|
reference: [[]]
|
3336
3165
|
}
|
3337
3166
|
};
|
3338
|
-
return (
|
3167
|
+
return (_triggerEvents$props$ = triggerEvents[props.trigger]) !== null && _triggerEvents$props$ !== void 0 ? _triggerEvents$props$ : [];
|
3339
3168
|
};
|
3340
3169
|
var updateFullscreenTarget = function updateFullscreenTarget(val) {
|
3341
3170
|
fullScreenTarget.value = val;
|
@@ -3420,7 +3249,7 @@ var parentNodeReferId = null;
|
|
3420
3249
|
resolvedBoundary = "".concat(prefix).concat(popContainerId);
|
3421
3250
|
var _ref = root || {},
|
3422
3251
|
parentNode = _ref.parentNode;
|
3423
|
-
if (parentNode
|
3252
|
+
if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
|
3424
3253
|
parentNode.parentNode.setAttribute('data-pnode-id', parentNodeReferId);
|
3425
3254
|
resolvedBoundary = "[data-pnode-id=".concat(parentNodeReferId, "]");
|
3426
3255
|
}
|
@@ -3451,14 +3280,14 @@ var parentNodeReferId = null;
|
|
3451
3280
|
return resolvedBoundary;
|
3452
3281
|
};
|
3453
3282
|
if (popContainerId === null || !isAvailableId("#".concat(popContainerId))) {
|
3454
|
-
popContainerId = "id_".concat((
|
3283
|
+
popContainerId = "id_".concat(esm_browser_v4());
|
3455
3284
|
var popContainer = document.createElement('div');
|
3456
3285
|
popContainer.setAttribute('id', popContainerId);
|
3457
3286
|
popContainer.setAttribute('data-popper-id', popContainerId);
|
3458
3287
|
document.body.append(popContainer);
|
3459
3288
|
}
|
3460
3289
|
if (parentNodeReferId === null) {
|
3461
|
-
parentNodeReferId = "id_".concat((
|
3290
|
+
parentNodeReferId = "id_".concat(esm_browser_v4());
|
3462
3291
|
}
|
3463
3292
|
return {
|
3464
3293
|
popContainerId: popContainerId,
|
@@ -3569,7 +3398,8 @@ var parentNodeReferId = null;
|
|
3569
3398
|
});
|
3570
3399
|
};
|
3571
3400
|
var removeEventListener = function removeEventListener() {
|
3572
|
-
|
3401
|
+
var _storeEvents2;
|
3402
|
+
if ((_storeEvents2 = storeEvents) !== null && _storeEvents2 !== void 0 && _storeEvents2.length) {
|
3573
3403
|
var _resolvePopElements2 = resolvePopElements(),
|
3574
3404
|
elReference = _resolvePopElements2.elReference;
|
3575
3405
|
if (elReference) {
|
@@ -3598,13 +3428,13 @@ var parentNodeReferId = null;
|
|
3598
3428
|
var _usePopperId = use_popper_id(props, '#'),
|
3599
3429
|
getPrefixId = _usePopperId.getPrefixId;
|
3600
3430
|
var setFullscreenTag = function setFullscreenTag() {
|
3601
|
-
var
|
3602
|
-
|
3431
|
+
var _fullScreenTarget$val;
|
3432
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0 ? void 0 : _fullScreenTarget$val.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3603
3433
|
};
|
3604
3434
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3605
|
-
var
|
3435
|
+
var _fullScreenTarget$val2, _fullScreenTarget$val3;
|
3606
3436
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3607
|
-
((
|
3437
|
+
((_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) {
|
3608
3438
|
element === null || element === void 0 ? void 0 : element.removeAttribute('data-fllsrn-id');
|
3609
3439
|
});
|
3610
3440
|
};
|
@@ -3825,12 +3655,17 @@ function _isSlot(s) {
|
|
3825
3655
|
};
|
3826
3656
|
},
|
3827
3657
|
render: function render() {
|
3828
|
-
var _this = this;
|
3829
3658
|
var _slot;
|
3830
|
-
var
|
3659
|
+
var _this$$slots$default,
|
3660
|
+
_this$$slots$default2,
|
3661
|
+
_this$$slots,
|
3662
|
+
_this = this,
|
3663
|
+
_this$$slots$content,
|
3664
|
+
_this$$slots$content2,
|
3665
|
+
_this$$slots3;
|
3831
3666
|
var renderReferSlot = function renderReferSlot(slot) {
|
3832
|
-
var
|
3833
|
-
if (external_vue_namespaceObject.Text === (
|
3667
|
+
var _slot$;
|
3668
|
+
if (external_vue_namespaceObject.Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
3834
3669
|
return (0,external_vue_namespaceObject.createVNode)("span", null, [slot]);
|
3835
3670
|
}
|
3836
3671
|
return slot;
|
@@ -3841,7 +3676,7 @@ function _isSlot(s) {
|
|
3841
3676
|
"default": function _default() {
|
3842
3677
|
return [(0,external_vue_namespaceObject.createVNode)(reference, {
|
3843
3678
|
"ref": "refDefaultReference"
|
3844
|
-
}, _isSlot(_slot = renderReferSlot((
|
3679
|
+
}, _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 : {
|
3845
3680
|
"default": function _default() {
|
3846
3681
|
return [_slot];
|
3847
3682
|
}
|
@@ -3862,15 +3697,15 @@ function _isSlot(s) {
|
|
3862
3697
|
"eventDelay": _this.componentEventDelay
|
3863
3698
|
}, {
|
3864
3699
|
"default": function _default() {
|
3865
|
-
return [_this.contentIsShow ? (
|
3700
|
+
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() : ''];
|
3866
3701
|
},
|
3867
3702
|
arrow: function arrow() {
|
3868
|
-
var
|
3703
|
+
var _this$$slots$arrow, _this$$slots2;
|
3869
3704
|
return _this.arrow ? (0,external_vue_namespaceObject.createVNode)(src_arrow, {
|
3870
3705
|
"ref": "refArrow"
|
3871
3706
|
}, {
|
3872
3707
|
"default": function _default() {
|
3873
|
-
return [(
|
3708
|
+
return [(_this$$slots$arrow = (_this$$slots2 = _this.$slots).arrow) === null || _this$$slots$arrow === void 0 ? void 0 : _this$$slots$arrow.call(_this$$slots2)];
|
3874
3709
|
}
|
3875
3710
|
}) : '';
|
3876
3711
|
}
|
@@ -3884,6 +3719,8 @@ function _isSlot(s) {
|
|
3884
3719
|
;// CONCATENATED MODULE: ../../packages/popover/src/plugin-popover.tsx
|
3885
3720
|
|
3886
3721
|
|
3722
|
+
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; }
|
3723
|
+
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; }
|
3887
3724
|
/*
|
3888
3725
|
* Tencent is pleased to support the open source community by making
|
3889
3726
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3917,13 +3754,13 @@ function createPopoverComponent(options) {
|
|
3917
3754
|
var $PopoverInstance = null;
|
3918
3755
|
var $PopoverInstanceVm = null;
|
3919
3756
|
var $PopoverInstanceEl = null;
|
3920
|
-
var resolvedOptions =
|
3757
|
+
var resolvedOptions = plugin_popover_objectSpread(plugin_popover_objectSpread({
|
3921
3758
|
boundary: 'body',
|
3922
3759
|
placement: 'top',
|
3923
3760
|
autoVisibility: true,
|
3924
3761
|
isShow: false,
|
3925
3762
|
trigger: 'manual'
|
3926
|
-
}, options), {
|
3763
|
+
}, options), {}, {
|
3927
3764
|
allowHtml: true
|
3928
3765
|
});
|
3929
3766
|
var popoverComponent = {
|
@@ -3943,29 +3780,29 @@ function createPopoverComponent(options) {
|
|
3943
3780
|
var refProps = (0,external_vue_namespaceObject.reactive)(formatOptions());
|
3944
3781
|
var refReference = (0,external_vue_namespaceObject.ref)();
|
3945
3782
|
var show = function show() {
|
3946
|
-
var
|
3947
|
-
(
|
3783
|
+
var _refReference$value, _refReference$value$s;
|
3784
|
+
(_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);
|
3948
3785
|
};
|
3949
3786
|
var hide = function hide() {
|
3950
|
-
var
|
3951
|
-
(
|
3787
|
+
var _refReference$value2, _refReference$value2$;
|
3788
|
+
(_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);
|
3952
3789
|
};
|
3953
3790
|
var stopHide = function stopHide() {
|
3954
|
-
var
|
3955
|
-
(
|
3791
|
+
var _refReference$value3, _refReference$value3$;
|
3792
|
+
(_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);
|
3956
3793
|
};
|
3957
3794
|
var updateTarget = function updateTarget(target) {
|
3958
|
-
var
|
3795
|
+
var _refReference$value4, _refReference$value4$;
|
3959
3796
|
refProps.target = target;
|
3960
|
-
(
|
3797
|
+
(_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);
|
3961
3798
|
};
|
3962
3799
|
var handleContentMouseenter = function handleContentMouseenter() {
|
3963
|
-
var
|
3964
|
-
(
|
3800
|
+
var _resolvedOptions$onCo;
|
3801
|
+
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 ? void 0 : _resolvedOptions$onCo.call(resolvedOptions);
|
3965
3802
|
};
|
3966
3803
|
var handleContentMouseleave = function handleContentMouseleave() {
|
3967
|
-
var
|
3968
|
-
(
|
3804
|
+
var _resolvedOptions$onCo2;
|
3805
|
+
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 ? void 0 : _resolvedOptions$onCo2.call(resolvedOptions);
|
3969
3806
|
};
|
3970
3807
|
expose({
|
3971
3808
|
show: show,
|
@@ -4012,13 +3849,16 @@ function createPopoverComponent(options) {
|
|
4012
3849
|
}
|
4013
3850
|
}
|
4014
3851
|
function show() {
|
4015
|
-
|
3852
|
+
var _$PopoverInstanceVm;
|
3853
|
+
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 ? void 0 : _$PopoverInstanceVm.show();
|
4016
3854
|
}
|
4017
3855
|
function update(e) {
|
4018
|
-
|
3856
|
+
var _$PopoverInstanceVm2;
|
3857
|
+
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 ? void 0 : _$PopoverInstanceVm2.updateTarget(e);
|
4019
3858
|
}
|
4020
3859
|
function hide() {
|
4021
|
-
|
3860
|
+
var _$PopoverInstanceVm3;
|
3861
|
+
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 ? void 0 : _$PopoverInstanceVm3.hide();
|
4022
3862
|
}
|
4023
3863
|
return {
|
4024
3864
|
close: close,
|
@@ -4061,7 +3901,5 @@ function createPopoverComponent(options) {
|
|
4061
3901
|
*/
|
4062
3902
|
|
4063
3903
|
/* harmony default export */ const src = (createPopoverComponent);
|
4064
|
-
})();
|
4065
|
-
|
4066
3904
|
var __webpack_exports__default = __webpack_exports__.Z;
|
4067
3905
|
export { __webpack_exports__default as default };
|