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
package/lib/shared/index.js
CHANGED
@@ -2,274 +2,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
5
|
-
/******/
|
6
|
-
|
7
|
-
/***/ 8022:
|
8
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
9
|
-
|
10
|
-
var v1 = __webpack_require__(4481);
|
11
|
-
var v4 = __webpack_require__(6426);
|
12
|
-
|
13
|
-
var uuid = v4;
|
14
|
-
uuid.v1 = v1;
|
15
|
-
uuid.v4 = v4;
|
16
|
-
|
17
|
-
module.exports = uuid;
|
18
|
-
|
19
|
-
|
20
|
-
/***/ }),
|
21
|
-
|
22
|
-
/***/ 8725:
|
23
|
-
/***/ ((module) => {
|
24
|
-
|
25
|
-
/**
|
26
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
27
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
28
|
-
*/
|
29
|
-
var byteToHex = [];
|
30
|
-
for (var i = 0; i < 256; ++i) {
|
31
|
-
byteToHex[i] = (i + 0x100).toString(16).substr(1);
|
32
|
-
}
|
33
|
-
|
34
|
-
function bytesToUuid(buf, offset) {
|
35
|
-
var i = offset || 0;
|
36
|
-
var bth = byteToHex;
|
37
|
-
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
|
38
|
-
return ([
|
39
|
-
bth[buf[i++]], bth[buf[i++]],
|
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
|
-
]).join('');
|
48
|
-
}
|
49
|
-
|
50
|
-
module.exports = bytesToUuid;
|
51
|
-
|
52
|
-
|
53
|
-
/***/ }),
|
54
|
-
|
55
|
-
/***/ 9157:
|
56
|
-
/***/ ((module) => {
|
57
|
-
|
58
|
-
// Unique ID creation requires a high quality random # generator. In the
|
59
|
-
// browser this is a little complicated due to unknown quality of Math.random()
|
60
|
-
// and inconsistent support for the `crypto` API. We do the best we can via
|
61
|
-
// feature-detection
|
62
|
-
|
63
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto
|
64
|
-
// implementation. Also, find the complete implementation of crypto on IE11.
|
65
|
-
var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
|
66
|
-
(typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
|
67
|
-
|
68
|
-
if (getRandomValues) {
|
69
|
-
// WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
|
70
|
-
var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
|
71
|
-
|
72
|
-
module.exports = function whatwgRNG() {
|
73
|
-
getRandomValues(rnds8);
|
74
|
-
return rnds8;
|
75
|
-
};
|
76
|
-
} else {
|
77
|
-
// Math.random()-based (RNG)
|
78
|
-
//
|
79
|
-
// If all else fails, use Math.random(). It's fast, but is of unspecified
|
80
|
-
// quality.
|
81
|
-
var rnds = new Array(16);
|
82
|
-
|
83
|
-
module.exports = function mathRNG() {
|
84
|
-
for (var i = 0, r; i < 16; i++) {
|
85
|
-
if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
|
86
|
-
rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
|
87
|
-
}
|
88
|
-
|
89
|
-
return rnds;
|
90
|
-
};
|
91
|
-
}
|
92
|
-
|
93
|
-
|
94
|
-
/***/ }),
|
95
|
-
|
96
|
-
/***/ 4481:
|
97
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
98
|
-
|
99
|
-
var rng = __webpack_require__(9157);
|
100
|
-
var bytesToUuid = __webpack_require__(8725);
|
101
|
-
|
102
|
-
// **`v1()` - Generate time-based UUID**
|
103
|
-
//
|
104
|
-
// Inspired by https://github.com/LiosK/UUID.js
|
105
|
-
// and http://docs.python.org/library/uuid.html
|
106
|
-
|
107
|
-
var _nodeId;
|
108
|
-
var _clockseq;
|
109
|
-
|
110
|
-
// Previous uuid creation time
|
111
|
-
var _lastMSecs = 0;
|
112
|
-
var _lastNSecs = 0;
|
113
|
-
|
114
|
-
// See https://github.com/uuidjs/uuid for API details
|
115
|
-
function v1(options, buf, offset) {
|
116
|
-
var i = buf && offset || 0;
|
117
|
-
var b = buf || [];
|
118
|
-
|
119
|
-
options = options || {};
|
120
|
-
var node = options.node || _nodeId;
|
121
|
-
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
|
122
|
-
|
123
|
-
// node and clockseq need to be initialized to random values if they're not
|
124
|
-
// specified. We do this lazily to minimize issues related to insufficient
|
125
|
-
// system entropy. See #189
|
126
|
-
if (node == null || clockseq == null) {
|
127
|
-
var seedBytes = rng();
|
128
|
-
if (node == null) {
|
129
|
-
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
130
|
-
node = _nodeId = [
|
131
|
-
seedBytes[0] | 0x01,
|
132
|
-
seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
|
133
|
-
];
|
134
|
-
}
|
135
|
-
if (clockseq == null) {
|
136
|
-
// Per 4.2.2, randomize (14 bit) clockseq
|
137
|
-
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
138
|
-
}
|
139
|
-
}
|
140
|
-
|
141
|
-
// UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
142
|
-
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
143
|
-
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
144
|
-
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
145
|
-
var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
|
146
|
-
|
147
|
-
// Per 4.2.1.2, use count of uuid's generated during the current clock
|
148
|
-
// cycle to simulate higher resolution clock
|
149
|
-
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
|
150
|
-
|
151
|
-
// Time since last uuid creation (in msecs)
|
152
|
-
var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
|
153
|
-
|
154
|
-
// Per 4.2.1.2, Bump clockseq on clock regression
|
155
|
-
if (dt < 0 && options.clockseq === undefined) {
|
156
|
-
clockseq = clockseq + 1 & 0x3fff;
|
157
|
-
}
|
158
|
-
|
159
|
-
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
160
|
-
// time interval
|
161
|
-
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
162
|
-
nsecs = 0;
|
163
|
-
}
|
164
|
-
|
165
|
-
// Per 4.2.1.2 Throw error if too many uuids are requested
|
166
|
-
if (nsecs >= 10000) {
|
167
|
-
throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
|
168
|
-
}
|
169
|
-
|
170
|
-
_lastMSecs = msecs;
|
171
|
-
_lastNSecs = nsecs;
|
172
|
-
_clockseq = clockseq;
|
173
|
-
|
174
|
-
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
175
|
-
msecs += 12219292800000;
|
176
|
-
|
177
|
-
// `time_low`
|
178
|
-
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
179
|
-
b[i++] = tl >>> 24 & 0xff;
|
180
|
-
b[i++] = tl >>> 16 & 0xff;
|
181
|
-
b[i++] = tl >>> 8 & 0xff;
|
182
|
-
b[i++] = tl & 0xff;
|
183
|
-
|
184
|
-
// `time_mid`
|
185
|
-
var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
|
186
|
-
b[i++] = tmh >>> 8 & 0xff;
|
187
|
-
b[i++] = tmh & 0xff;
|
188
|
-
|
189
|
-
// `time_high_and_version`
|
190
|
-
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
191
|
-
b[i++] = tmh >>> 16 & 0xff;
|
192
|
-
|
193
|
-
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
194
|
-
b[i++] = clockseq >>> 8 | 0x80;
|
195
|
-
|
196
|
-
// `clock_seq_low`
|
197
|
-
b[i++] = clockseq & 0xff;
|
198
|
-
|
199
|
-
// `node`
|
200
|
-
for (var n = 0; n < 6; ++n) {
|
201
|
-
b[i + n] = node[n];
|
202
|
-
}
|
203
|
-
|
204
|
-
return buf ? buf : bytesToUuid(b);
|
205
|
-
}
|
206
|
-
|
207
|
-
module.exports = v1;
|
208
|
-
|
209
|
-
|
210
|
-
/***/ }),
|
211
|
-
|
212
|
-
/***/ 6426:
|
213
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
214
|
-
|
215
|
-
var rng = __webpack_require__(9157);
|
216
|
-
var bytesToUuid = __webpack_require__(8725);
|
217
|
-
|
218
|
-
function v4(options, buf, offset) {
|
219
|
-
var i = buf && offset || 0;
|
220
|
-
|
221
|
-
if (typeof(options) == 'string') {
|
222
|
-
buf = options === 'binary' ? new Array(16) : null;
|
223
|
-
options = null;
|
224
|
-
}
|
225
|
-
options = options || {};
|
226
|
-
|
227
|
-
var rnds = options.random || (options.rng || rng)();
|
228
|
-
|
229
|
-
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
230
|
-
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
231
|
-
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
232
|
-
|
233
|
-
// Copy bytes to buffer, if provided
|
234
|
-
if (buf) {
|
235
|
-
for (var ii = 0; ii < 16; ++ii) {
|
236
|
-
buf[i + ii] = rnds[ii];
|
237
|
-
}
|
238
|
-
}
|
239
|
-
|
240
|
-
return buf || bytesToUuid(rnds);
|
241
|
-
}
|
242
|
-
|
243
|
-
module.exports = v4;
|
244
|
-
|
245
|
-
|
246
|
-
/***/ })
|
247
|
-
|
248
|
-
/******/ });
|
249
|
-
/************************************************************************/
|
250
|
-
/******/ // The module cache
|
251
|
-
/******/ var __webpack_module_cache__ = {};
|
252
|
-
/******/
|
253
|
-
/******/ // The require function
|
254
|
-
/******/ function __webpack_require__(moduleId) {
|
255
|
-
/******/ // Check if module is in cache
|
256
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
257
|
-
/******/ if (cachedModule !== undefined) {
|
258
|
-
/******/ return cachedModule.exports;
|
259
|
-
/******/ }
|
260
|
-
/******/ // Create a new module (and put it into the cache)
|
261
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
262
|
-
/******/ // no module.id needed
|
263
|
-
/******/ // no module.loaded needed
|
264
|
-
/******/ exports: {}
|
265
|
-
/******/ };
|
266
|
-
/******/
|
267
|
-
/******/ // Execute the module function
|
268
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
269
|
-
/******/
|
270
|
-
/******/ // Return the exports of the module
|
271
|
-
/******/ return module.exports;
|
272
|
-
/******/ }
|
5
|
+
/******/ // The require scope
|
6
|
+
/******/ var __webpack_require__ = {};
|
273
7
|
/******/
|
274
8
|
/************************************************************************/
|
275
9
|
/******/ /* webpack/runtime/define property getters */
|
@@ -291,8 +25,6 @@ module.exports = v4;
|
|
291
25
|
/******/
|
292
26
|
/************************************************************************/
|
293
27
|
var __webpack_exports__ = {};
|
294
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
295
|
-
(() => {
|
296
28
|
|
297
29
|
// EXPORTS
|
298
30
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -860,6 +592,22 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
860
592
|
});
|
861
593
|
return Constructor;
|
862
594
|
}
|
595
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
596
|
+
|
597
|
+
function _defineProperty(obj, key, value) {
|
598
|
+
key = _toPropertyKey(key);
|
599
|
+
if (key in obj) {
|
600
|
+
Object.defineProperty(obj, key, {
|
601
|
+
value: value,
|
602
|
+
enumerable: true,
|
603
|
+
configurable: true,
|
604
|
+
writable: true
|
605
|
+
});
|
606
|
+
} else {
|
607
|
+
obj[key] = value;
|
608
|
+
}
|
609
|
+
return obj;
|
610
|
+
}
|
863
611
|
;// CONCATENATED MODULE: external "lodash"
|
864
612
|
var external_lodash_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
865
613
|
var external_lodash_y = x => () => x
|
@@ -975,22 +723,6 @@ function checkOverflow(el) {
|
|
975
723
|
}
|
976
724
|
return isOverflow;
|
977
725
|
}
|
978
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
979
|
-
|
980
|
-
function _defineProperty(obj, key, value) {
|
981
|
-
key = _toPropertyKey(key);
|
982
|
-
if (key in obj) {
|
983
|
-
Object.defineProperty(obj, key, {
|
984
|
-
value: value,
|
985
|
-
enumerable: true,
|
986
|
-
configurable: true,
|
987
|
-
writable: true
|
988
|
-
});
|
989
|
-
} else {
|
990
|
-
obj[key] = value;
|
991
|
-
}
|
992
|
-
return obj;
|
993
|
-
}
|
994
726
|
;// CONCATENATED MODULE: ../../packages/shared/src/z-index-manager.ts
|
995
727
|
|
996
728
|
|
@@ -1048,7 +780,7 @@ var BKLAYERD_INDEX_EFAULT_VALUE = (_BKLAYERD_INDEX_EFAUL = {}, _defineProperty(_
|
|
1048
780
|
var BKZIndexManager = /*#__PURE__*/function () {
|
1049
781
|
function BKZIndexManager() {
|
1050
782
|
_classCallCheck(this, BKZIndexManager);
|
1051
|
-
this
|
783
|
+
_defineProperty(this, "storageLayerIndexValue", {});
|
1052
784
|
this.copyDefaultValue();
|
1053
785
|
}
|
1054
786
|
/**
|
@@ -1147,6 +879,9 @@ var bkZIndexManager = new BKZIndexManager();
|
|
1147
879
|
;// CONCATENATED MODULE: ../../packages/shared/src/mask-manager.ts
|
1148
880
|
|
1149
881
|
|
882
|
+
|
883
|
+
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; }
|
884
|
+
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; }
|
1150
885
|
/*
|
1151
886
|
* Tencent is pleased to support the open source community by making
|
1152
887
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1205,9 +940,9 @@ var setMaskEventIns = function setMaskEventIns(mask, maskEvent) {
|
|
1205
940
|
var MaskQueueMaker = /*#__PURE__*/function () {
|
1206
941
|
function MaskQueueMaker() {
|
1207
942
|
_classCallCheck(this, MaskQueueMaker);
|
1208
|
-
this
|
1209
|
-
this
|
1210
|
-
this
|
943
|
+
_defineProperty(this, "timer", null);
|
944
|
+
_defineProperty(this, "store", []);
|
945
|
+
_defineProperty(this, "maskMap", new WeakMap());
|
1211
946
|
}
|
1212
947
|
_createClass(MaskQueueMaker, [{
|
1213
948
|
key: "appendMaker",
|
@@ -1219,22 +954,22 @@ var MaskQueueMaker = /*#__PURE__*/function () {
|
|
1219
954
|
key: "pushMaskStyle",
|
1220
955
|
value: function pushMaskStyle(parentNode, style) {
|
1221
956
|
var value = this.getMaskMap(parentNode);
|
1222
|
-
this.setMaskMap(parentNode,
|
957
|
+
this.setMaskMap(parentNode, _objectSpread({
|
1223
958
|
styles: [style]
|
1224
959
|
}, value || {}));
|
1225
960
|
}
|
1226
961
|
}, {
|
1227
962
|
key: "getMaskStyles",
|
1228
963
|
value: function getMaskStyles(parentNode) {
|
1229
|
-
var
|
1230
|
-
return ((
|
964
|
+
var _this$getMaskMap;
|
965
|
+
return ((_this$getMaskMap = this.getMaskMap(parentNode)) === null || _this$getMaskMap === void 0 ? void 0 : _this$getMaskMap.styles) || [];
|
1231
966
|
}
|
1232
967
|
}, {
|
1233
968
|
key: "setMaskId",
|
1234
969
|
value: function setMaskId(parentNode, id) {
|
1235
970
|
var value = this.getMaskMap(parentNode);
|
1236
971
|
if (!value) {
|
1237
|
-
this.setMaskMap(parentNode,
|
972
|
+
this.setMaskMap(parentNode, _objectSpread({
|
1238
973
|
id: id
|
1239
974
|
}, value || {}));
|
1240
975
|
} else {
|
@@ -1247,8 +982,8 @@ var MaskQueueMaker = /*#__PURE__*/function () {
|
|
1247
982
|
}, {
|
1248
983
|
key: "getMaskId",
|
1249
984
|
value: function getMaskId(parentNode) {
|
1250
|
-
var
|
1251
|
-
return (
|
985
|
+
var _this$getMaskMap2;
|
986
|
+
return (_this$getMaskMap2 = this.getMaskMap(parentNode)) === null || _this$getMaskMap2 === void 0 ? void 0 : _this$getMaskMap2.id;
|
1252
987
|
}
|
1253
988
|
}, {
|
1254
989
|
key: "setMaskMap",
|
@@ -1287,20 +1022,22 @@ var BkMaskManager = /*#__PURE__*/function () {
|
|
1287
1022
|
function BkMaskManager(config) {
|
1288
1023
|
var _this2 = this;
|
1289
1024
|
_classCallCheck(this, BkMaskManager);
|
1025
|
+
/** 遮罩容器 */
|
1026
|
+
/** 遮罩备份容器,用于多个组件实例显示,遮罩只显示最后一个 **/
|
1290
1027
|
/** 是否允许多个遮罩实例 */
|
1291
|
-
this
|
1028
|
+
_defineProperty(this, "multiInstance", false);
|
1292
1029
|
/** 遮罩控制器唯一标识 */
|
1293
|
-
this
|
1030
|
+
_defineProperty(this, "uniqueMaskAttrTag", '');
|
1294
1031
|
/** 设置弹出层父级组件,默认是body */
|
1295
|
-
this
|
1032
|
+
_defineProperty(this, "parentNode", document.body);
|
1296
1033
|
/** 遮罩当前显示组件实例 **/
|
1297
|
-
this
|
1034
|
+
_defineProperty(this, "activeInstance", undefined);
|
1298
1035
|
/** 记录已在使用的z-index */
|
1299
|
-
this
|
1036
|
+
_defineProperty(this, "zIndexStore", new Map());
|
1300
1037
|
/** 记录最后一个UUID */
|
1301
|
-
this
|
1038
|
+
_defineProperty(this, "lastUUID", null);
|
1302
1039
|
/** 遮罩样式 **/
|
1303
|
-
this
|
1040
|
+
_defineProperty(this, "maskStyle", {
|
1304
1041
|
position: 'fixed',
|
1305
1042
|
left: 0,
|
1306
1043
|
top: 0,
|
@@ -1308,10 +1045,10 @@ var BkMaskManager = /*#__PURE__*/function () {
|
|
1308
1045
|
right: 0,
|
1309
1046
|
display: 'none',
|
1310
1047
|
'background-color': 'rgba(0,0,0,.6)'
|
1311
|
-
};
|
1048
|
+
});
|
1312
1049
|
// 用于判定是否已经初始化过当前实例
|
1313
|
-
this
|
1314
|
-
this
|
1050
|
+
_defineProperty(this, "isInit", false);
|
1051
|
+
_defineProperty(this, "maskAttrTag", 'auto');
|
1315
1052
|
var _ref = config || {},
|
1316
1053
|
_ref$multiInstance = _ref.multiInstance,
|
1317
1054
|
multiInstance = _ref$multiInstance === void 0 ? false : _ref$multiInstance,
|
@@ -1397,7 +1134,7 @@ var BkMaskManager = /*#__PURE__*/function () {
|
|
1397
1134
|
/** 缓存当前z-index */
|
1398
1135
|
this.storeMaskInsCfg({
|
1399
1136
|
zIndex: localZIndex,
|
1400
|
-
style:
|
1137
|
+
style: _objectSpread({}, style),
|
1401
1138
|
uuid: uid,
|
1402
1139
|
preUID: this.lastUUID
|
1403
1140
|
});
|
@@ -1411,7 +1148,7 @@ var BkMaskManager = /*#__PURE__*/function () {
|
|
1411
1148
|
this.catchClickEvent(content, onMaskClick, instanceId);
|
1412
1149
|
}
|
1413
1150
|
this.setMaskStyle(style);
|
1414
|
-
bkMaskMaker.pushMaskStyle(this.parentNode,
|
1151
|
+
bkMaskMaker.pushMaskStyle(this.parentNode, _objectSpread({}, style));
|
1415
1152
|
this.backupMask.style.setProperty('z-index', "".concat(localZIndex - 1));
|
1416
1153
|
if (!showMask) {
|
1417
1154
|
this.mask.style.setProperty('pointer-events', 'none');
|
@@ -1429,18 +1166,18 @@ var BkMaskManager = /*#__PURE__*/function () {
|
|
1429
1166
|
var transfer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
1430
1167
|
var content = arguments.length > 1 ? arguments[1] : undefined;
|
1431
1168
|
var uuid = arguments.length > 2 ? arguments[2] : undefined;
|
1432
|
-
var _a;
|
1433
1169
|
var uid = uuid !== null && uuid !== void 0 ? uuid : this.lastUUID;
|
1434
1170
|
if (!transfer) {
|
1171
|
+
var _this$activeInstance;
|
1435
1172
|
content === null || content === void 0 ? void 0 : content.remove();
|
1436
|
-
(
|
1173
|
+
(_this$activeInstance = this.activeInstance) === null || _this$activeInstance === void 0 ? void 0 : _this$activeInstance.remove();
|
1437
1174
|
}
|
1438
1175
|
this.removeClickEvent();
|
1439
1176
|
this.activeInstance = undefined;
|
1440
1177
|
this.popIndexStore(uid);
|
1441
1178
|
var maskList = bkMaskMaker.getMaskStyles(this.parentNode);
|
1442
1179
|
maskList === null || maskList === void 0 ? void 0 : maskList.pop();
|
1443
|
-
if (!(maskList
|
1180
|
+
if (!(maskList !== null && maskList !== void 0 && maskList.length)) {
|
1444
1181
|
this.mask.style.setProperty('display', 'none');
|
1445
1182
|
} else {
|
1446
1183
|
var style = maskList.slice(-1)[0];
|
@@ -1478,8 +1215,8 @@ var BkMaskManager = /*#__PURE__*/function () {
|
|
1478
1215
|
}, {
|
1479
1216
|
key: "backupContentElement",
|
1480
1217
|
value: function backupContentElement(content) {
|
1481
|
-
var
|
1482
|
-
content && ((
|
1218
|
+
var _this$backupMask;
|
1219
|
+
content && ((_this$backupMask = this.backupMask) === null || _this$backupMask === void 0 ? void 0 : _this$backupMask.append(content));
|
1483
1220
|
}
|
1484
1221
|
}, {
|
1485
1222
|
key: "getActiveContentInstance",
|
@@ -1652,6 +1389,8 @@ var bKMaskManager = new BkMaskManager({});
|
|
1652
1389
|
|
1653
1390
|
var popInstanceStore = new WeakMap();
|
1654
1391
|
var BKPopIndexManager = /*#__PURE__*/function () {
|
1392
|
+
/** 用来缓存弹出层实例 */
|
1393
|
+
|
1655
1394
|
function BKPopIndexManager(options) {
|
1656
1395
|
_classCallCheck(this, BKPopIndexManager);
|
1657
1396
|
this.clickFn = undefined;
|
@@ -1857,8 +1596,94 @@ function _nonIterableSpread() {
|
|
1857
1596
|
function _toConsumableArray(arr) {
|
1858
1597
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1859
1598
|
}
|
1860
|
-
|
1861
|
-
|
1599
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
1600
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
1601
|
+
/* harmony default export */ const esm_browser_native = ({
|
1602
|
+
randomUUID
|
1603
|
+
});
|
1604
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/rng.js
|
1605
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
1606
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
1607
|
+
// generators (like Math.random()).
|
1608
|
+
let getRandomValues;
|
1609
|
+
const rnds8 = new Uint8Array(16);
|
1610
|
+
function rng() {
|
1611
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
1612
|
+
if (!getRandomValues) {
|
1613
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
1614
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
1615
|
+
|
1616
|
+
if (!getRandomValues) {
|
1617
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
1618
|
+
}
|
1619
|
+
}
|
1620
|
+
|
1621
|
+
return getRandomValues(rnds8);
|
1622
|
+
}
|
1623
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/stringify.js
|
1624
|
+
|
1625
|
+
/**
|
1626
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
1627
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
1628
|
+
*/
|
1629
|
+
|
1630
|
+
const byteToHex = [];
|
1631
|
+
|
1632
|
+
for (let i = 0; i < 256; ++i) {
|
1633
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
1634
|
+
}
|
1635
|
+
|
1636
|
+
function unsafeStringify(arr, offset = 0) {
|
1637
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
1638
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
1639
|
+
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]];
|
1640
|
+
}
|
1641
|
+
|
1642
|
+
function stringify(arr, offset = 0) {
|
1643
|
+
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
1644
|
+
// of the following:
|
1645
|
+
// - One or more input array values don't map to a hex octet (leading to
|
1646
|
+
// "undefined" in the uuid)
|
1647
|
+
// - Invalid input values for the RFC `version` or `variant` fields
|
1648
|
+
|
1649
|
+
if (!validate(uuid)) {
|
1650
|
+
throw TypeError('Stringified UUID is invalid');
|
1651
|
+
}
|
1652
|
+
|
1653
|
+
return uuid;
|
1654
|
+
}
|
1655
|
+
|
1656
|
+
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
1657
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/v4.js
|
1658
|
+
|
1659
|
+
|
1660
|
+
|
1661
|
+
|
1662
|
+
function v4(options, buf, offset) {
|
1663
|
+
if (esm_browser_native.randomUUID && !buf && !options) {
|
1664
|
+
return esm_browser_native.randomUUID();
|
1665
|
+
}
|
1666
|
+
|
1667
|
+
options = options || {};
|
1668
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
1669
|
+
|
1670
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
1671
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
1672
|
+
|
1673
|
+
if (buf) {
|
1674
|
+
offset = offset || 0;
|
1675
|
+
|
1676
|
+
for (let i = 0; i < 16; ++i) {
|
1677
|
+
buf[offset + i] = rnds[i];
|
1678
|
+
}
|
1679
|
+
|
1680
|
+
return buf;
|
1681
|
+
}
|
1682
|
+
|
1683
|
+
return unsafeStringify(rnds);
|
1684
|
+
}
|
1685
|
+
|
1686
|
+
/* harmony default export */ const esm_browser_v4 = (v4);
|
1862
1687
|
;// CONCATENATED MODULE: external "@popperjs/core"
|
1863
1688
|
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1864
1689
|
var core_y = x => () => x
|
@@ -1868,6 +1693,7 @@ const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL
|
|
1868
1693
|
|
1869
1694
|
|
1870
1695
|
|
1696
|
+
|
1871
1697
|
/*
|
1872
1698
|
* Tencent is pleased to support the open source community by making
|
1873
1699
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1898,48 +1724,48 @@ const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL
|
|
1898
1724
|
|
1899
1725
|
var BKPopover = /*#__PURE__*/function () {
|
1900
1726
|
function BKPopover(reference, popperRefer, options) {
|
1727
|
+
var _this$popperRefer, _this$instanceOptions;
|
1901
1728
|
_classCallCheck(this, BKPopover);
|
1902
|
-
var _a, _b;
|
1903
1729
|
/** 当前提内容是否弹出 */
|
1904
|
-
this
|
1730
|
+
_defineProperty(this, "isShow", false);
|
1905
1731
|
/** 触发条件 */
|
1906
|
-
this
|
1732
|
+
_defineProperty(this, "trigger", undefined);
|
1907
1733
|
/** 当前popperjs实例 */
|
1908
|
-
this
|
1734
|
+
_defineProperty(this, "instance", undefined);
|
1909
1735
|
/** 是否总是可见 */
|
1910
|
-
this
|
1736
|
+
_defineProperty(this, "always", false);
|
1911
1737
|
/** Popover 外层容器,触发Pop的元素 */
|
1912
|
-
this
|
1738
|
+
_defineProperty(this, "reference", undefined);
|
1913
1739
|
/** Popover 弹出内容外层占位容器 */
|
1914
|
-
this
|
1740
|
+
_defineProperty(this, "referenceTarget", undefined);
|
1915
1741
|
/** Popover Content 外层容器,目标元素:实际弹出内容 */
|
1916
|
-
this
|
1742
|
+
_defineProperty(this, "popperRefer", undefined);
|
1917
1743
|
/** hide延时 */
|
1918
|
-
this
|
1744
|
+
_defineProperty(this, "delay", 50);
|
1919
1745
|
/** 是否进入popperRefer */
|
1920
|
-
this
|
1746
|
+
_defineProperty(this, "isInnerPopper", false);
|
1921
1747
|
/** 是否为禁用状态 */
|
1922
|
-
this
|
1748
|
+
_defineProperty(this, "disabled", false);
|
1923
1749
|
/** 执行显示函数 */
|
1924
|
-
this
|
1750
|
+
_defineProperty(this, "afterShow", null);
|
1925
1751
|
/** 执行隐藏函数 */
|
1926
|
-
this
|
1752
|
+
_defineProperty(this, "afterHidden", null);
|
1927
1753
|
/** 弹出内容AppendTo */
|
1928
|
-
this
|
1754
|
+
_defineProperty(this, "appendTo", 'parent');
|
1929
1755
|
/** 父级容器 */
|
1930
|
-
this
|
1756
|
+
_defineProperty(this, "container", null);
|
1931
1757
|
/**
|
1932
1758
|
* 如果设置了appendTo为指定DOM,此配置项生效
|
1933
1759
|
* 是否将弹出内容固定到目标元素位置
|
1934
1760
|
* 例如:appendTo = document.body, fixOnBoundary = true,则弹出内容会一直固定到body
|
1935
1761
|
*/
|
1936
|
-
this
|
1762
|
+
_defineProperty(this, "fixOnBoundary", false);
|
1937
1763
|
this.instanceOptions = this.initDefaultOptions(options);
|
1938
1764
|
this.reference = this.resolveInputSelectorToHtmlElement(reference);
|
1939
1765
|
this.popperRefer = this.resolveInputSelectorToHtmlElement(popperRefer);
|
1940
1766
|
this.referenceTarget = this.getTargetReferenceElement();
|
1941
|
-
this.container = (
|
1942
|
-
this.isShow = !!((
|
1767
|
+
this.container = (_this$popperRefer = this.popperRefer) === null || _this$popperRefer === void 0 ? void 0 : _this$popperRefer.parentElement;
|
1768
|
+
this.isShow = !!((_this$instanceOptions = this.instanceOptions) !== null && _this$instanceOptions !== void 0 && _this$instanceOptions.isShow);
|
1943
1769
|
this.always = this.instanceOptions.always;
|
1944
1770
|
this.trigger = this.instanceOptions.trigger;
|
1945
1771
|
this.disabled = this.instanceOptions.disabled;
|
@@ -1959,23 +1785,23 @@ var BKPopover = /*#__PURE__*/function () {
|
|
1959
1785
|
_createClass(BKPopover, [{
|
1960
1786
|
key: "forceUpdate",
|
1961
1787
|
value: function forceUpdate() {
|
1962
|
-
var
|
1963
|
-
(
|
1788
|
+
var _this$instance;
|
1789
|
+
(_this$instance = this.instance) === null || _this$instance === void 0 ? void 0 : _this$instance.forceUpdate();
|
1964
1790
|
}
|
1965
1791
|
// Asynchronously updates the popper instance, and returns a promise. Use this
|
1966
1792
|
// for high-frequency updates.
|
1967
1793
|
}, {
|
1968
1794
|
key: "update",
|
1969
1795
|
value: function update() {
|
1970
|
-
var
|
1971
|
-
(
|
1796
|
+
var _this$instance2;
|
1797
|
+
(_this$instance2 = this.instance) === null || _this$instance2 === void 0 ? void 0 : _this$instance2.update();
|
1972
1798
|
}
|
1973
1799
|
}, {
|
1974
1800
|
key: "updateOptions",
|
1975
1801
|
value: function updateOptions(options) {
|
1976
|
-
var
|
1802
|
+
var _this$instanceOptions2;
|
1977
1803
|
this.instanceOptions = this.initDefaultOptions(options);
|
1978
|
-
this.isShow = !!((
|
1804
|
+
this.isShow = !!((_this$instanceOptions2 = this.instanceOptions) !== null && _this$instanceOptions2 !== void 0 && _this$instanceOptions2.isShow);
|
1979
1805
|
this.trigger = this.instanceOptions.trigger;
|
1980
1806
|
this.disabled = this.instanceOptions.disabled;
|
1981
1807
|
this.setOptions(this.instanceOptions);
|
@@ -1984,15 +1810,15 @@ var BKPopover = /*#__PURE__*/function () {
|
|
1984
1810
|
}, {
|
1985
1811
|
key: "setOptions",
|
1986
1812
|
value: function setOptions(options) {
|
1987
|
-
var
|
1988
|
-
(
|
1813
|
+
var _this$instance3;
|
1814
|
+
(_this$instance3 = this.instance) === null || _this$instance3 === void 0 ? void 0 : _this$instance3.setOptions(options);
|
1989
1815
|
}
|
1990
1816
|
// Cleans up the instance.
|
1991
1817
|
}, {
|
1992
1818
|
key: "destroy",
|
1993
1819
|
value: function destroy() {
|
1994
|
-
var
|
1995
|
-
(
|
1820
|
+
var _this$instance4;
|
1821
|
+
(_this$instance4 = this.instance) === null || _this$instance4 === void 0 ? void 0 : _this$instance4.destroy();
|
1996
1822
|
}
|
1997
1823
|
// 更新禁用状态
|
1998
1824
|
}, {
|
@@ -2008,10 +1834,10 @@ var BKPopover = /*#__PURE__*/function () {
|
|
2008
1834
|
}, {
|
2009
1835
|
key: "show",
|
2010
1836
|
value: function show(_event) {
|
2011
|
-
var _a;
|
2012
1837
|
if (!this.disabled) {
|
1838
|
+
var _this$popperRefer2;
|
2013
1839
|
// Make the tooltip visible
|
2014
|
-
(
|
1840
|
+
(_this$popperRefer2 = this.popperRefer) === null || _this$popperRefer2 === void 0 ? void 0 : _this$popperRefer2.setAttribute('data-show', '');
|
2015
1841
|
// Enable the event listeners
|
2016
1842
|
this.setOptions({
|
2017
1843
|
modifiers: [].concat(_toConsumableArray(this.instanceOptions.modifiers || []), [{
|
@@ -2035,10 +1861,10 @@ var BKPopover = /*#__PURE__*/function () {
|
|
2035
1861
|
}, {
|
2036
1862
|
key: "hide",
|
2037
1863
|
value: function hide() {
|
2038
|
-
var
|
1864
|
+
var _this$popperRefer3;
|
2039
1865
|
if (this.always) return;
|
2040
1866
|
// Hide the tooltip
|
2041
|
-
(
|
1867
|
+
(_this$popperRefer3 = this.popperRefer) === null || _this$popperRefer3 === void 0 ? void 0 : _this$popperRefer3.removeAttribute('data-show');
|
2042
1868
|
// Disable the event listeners
|
2043
1869
|
this.setOptions({
|
2044
1870
|
modifiers: [].concat(_toConsumableArray(this.instanceOptions.modifiers || []), [{
|
@@ -2153,11 +1979,11 @@ var BKPopover = /*#__PURE__*/function () {
|
|
2153
1979
|
}, {
|
2154
1980
|
key: "initInstance",
|
2155
1981
|
value: function initInstance() {
|
2156
|
-
var _a, _b;
|
2157
1982
|
if (this.referenceTarget) {
|
2158
1983
|
if (this.referenceTarget && this.popperRefer) {
|
1984
|
+
var _this$popperRefer4, _this$instanceOptions3;
|
2159
1985
|
this.instance = (0,core_namespaceObject.createPopper)(this.referenceTarget, this.popperRefer, this.instanceOptions);
|
2160
|
-
(
|
1986
|
+
(_this$popperRefer4 = this.popperRefer) === null || _this$popperRefer4 === void 0 ? void 0 : _this$popperRefer4.setAttribute('data-theme', (_this$instanceOptions3 = this.instanceOptions.theme) !== null && _this$instanceOptions3 !== void 0 ? _this$instanceOptions3 : 'dark');
|
2161
1987
|
} else {
|
2162
1988
|
console.error('reference or popperRefer is null, please check html element.');
|
2163
1989
|
}
|
@@ -2257,7 +2083,7 @@ var popContainerId = null;
|
|
2257
2083
|
var getPopContainerId = function getPopContainerId() {
|
2258
2084
|
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#';
|
2259
2085
|
if (popContainerId === null) {
|
2260
|
-
popContainerId = "id_".concat((
|
2086
|
+
popContainerId = "id_".concat(esm_browser_v4());
|
2261
2087
|
var popContainer = document.createElement('div');
|
2262
2088
|
popContainer.setAttribute('id', popContainerId);
|
2263
2089
|
popContainer.setAttribute('data-popper-id', popContainerId);
|
@@ -2779,8 +2605,6 @@ function arrayEqual() {
|
|
2779
2605
|
}
|
2780
2606
|
return true;
|
2781
2607
|
}
|
2782
|
-
})();
|
2783
|
-
|
2784
2608
|
var __webpack_exports__AlignEnum = __webpack_exports__.oY;
|
2785
2609
|
var __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE = __webpack_exports__.p3;
|
2786
2610
|
var __webpack_exports__BKLAYERTYPE = __webpack_exports__.Ql;
|