bkui-vue 2.0.1 → 2.0.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/lib/affix/index.js +30 -22
- package/lib/alert/index.js +30 -22
- package/lib/animate-number/index.js +14 -10
- package/lib/backtop/index.js +32 -22
- package/lib/badge/index.js +24 -18
- package/lib/breadcrumb/index.js +31 -23
- package/lib/button/index.js +36 -26
- package/lib/card/index.js +47 -33
- package/lib/cascader/index.js +1680 -198
- package/lib/checkbox/index.js +44 -34
- package/lib/code-diff/index.js +83 -79
- package/lib/collapse/index.js +39 -33
- package/lib/collapse-transition/index.js +20 -14
- package/lib/color-picker/index.js +1645 -193
- package/lib/config-provider/index.js +34 -26
- package/lib/container/index.js +27 -21
- package/lib/date-picker/index.js +1943 -516
- package/lib/dialog/index.js +101 -87
- package/lib/directives/index.js +494 -376
- package/lib/divider/index.js +21 -15
- package/lib/dropdown/index.js +43 -31
- package/lib/exception/index.js +55 -49
- package/lib/fixed-navbar/index.js +20 -14
- package/lib/form/index.js +1623 -198
- package/lib/icon/angle-double-down-line.js +14 -12
- package/lib/icon/angle-double-left-line.js +14 -12
- package/lib/icon/angle-double-left.js +14 -12
- package/lib/icon/angle-double-right-line.js +14 -12
- package/lib/icon/angle-double-right.js +14 -12
- package/lib/icon/angle-double-up-line.js +14 -12
- package/lib/icon/angle-down-fill.js +14 -12
- package/lib/icon/angle-down-line.js +14 -12
- package/lib/icon/angle-down.js +14 -12
- package/lib/icon/angle-left.js +14 -12
- package/lib/icon/angle-right.js +14 -12
- package/lib/icon/angle-up-fill.js +14 -12
- package/lib/icon/angle-up.js +14 -12
- package/lib/icon/archive-fill.js +14 -12
- package/lib/icon/arrows-left.js +14 -12
- package/lib/icon/arrows-right.js +14 -12
- package/lib/icon/assistant.js +14 -12
- package/lib/icon/audio-fill.js +14 -12
- package/lib/icon/bk.js +14 -12
- package/lib/icon/circle.js +14 -12
- package/lib/icon/close-line.js +14 -12
- package/lib/icon/close.js +14 -12
- package/lib/icon/code.js +14 -12
- package/lib/icon/cog-shape.js +14 -12
- package/lib/icon/collapse-left.js +14 -12
- package/lib/icon/copy-shape.js +14 -12
- package/lib/icon/copy.js +14 -12
- package/lib/icon/data-shape.js +14 -12
- package/lib/icon/del.js +14 -12
- package/lib/icon/doc-fill.js +14 -12
- package/lib/icon/done.js +14 -12
- package/lib/icon/down-shape.js +14 -12
- package/lib/icon/down-small.js +14 -12
- package/lib/icon/edit-line.js +14 -12
- package/lib/icon/ellipsis.js +14 -12
- package/lib/icon/enlarge-line.js +14 -12
- package/lib/icon/error.js +14 -12
- package/lib/icon/excel-fill.js +14 -12
- package/lib/icon/exclamation-circle-shape.js +14 -12
- package/lib/icon/eye.js +14 -12
- package/lib/icon/filliscreen-line.js +14 -12
- package/lib/icon/fix-line.js +14 -12
- package/lib/icon/fix-shape.js +14 -12
- package/lib/icon/folder-open.js +14 -12
- package/lib/icon/folder-shape-open.js +14 -12
- package/lib/icon/folder-shape.js +14 -12
- package/lib/icon/folder.js +14 -12
- package/lib/icon/funnel.js +14 -12
- package/lib/icon/grag-fill.js +14 -12
- package/lib/icon/help-document-fill.js +14 -12
- package/lib/icon/help-fill.js +14 -12
- package/lib/icon/help.js +14 -12
- package/lib/icon/image-fill.js +14 -12
- package/lib/icon/img-error.js +14 -12
- package/lib/icon/img-placehoulder.js +14 -12
- package/lib/icon/info-line.js +14 -12
- package/lib/icon/info.js +14 -12
- package/lib/icon/left-shape.js +14 -12
- package/lib/icon/left-turn-line.js +14 -12
- package/lib/icon/loading.js +14 -12
- package/lib/icon/narrow-line.js +14 -12
- package/lib/icon/original.js +14 -12
- package/lib/icon/pdf-fill.js +14 -12
- package/lib/icon/play-shape.js +14 -12
- package/lib/icon/plus.js +14 -12
- package/lib/icon/ppt-fill.js +14 -12
- package/lib/icon/qq.js +14 -12
- package/lib/icon/right-shape.js +14 -12
- package/lib/icon/right-turn-line.js +14 -12
- package/lib/icon/search.js +14 -12
- package/lib/icon/share.js +14 -12
- package/lib/icon/spinner.js +14 -12
- package/lib/icon/success.js +14 -12
- package/lib/icon/switcher-loading.js +14 -12
- package/lib/icon/text-all.js +14 -12
- package/lib/icon/text-file.js +14 -12
- package/lib/icon/text-fill.js +14 -12
- package/lib/icon/transfer.js +14 -12
- package/lib/icon/tree-application-shape.js +14 -12
- package/lib/icon/unfull-screen.js +14 -12
- package/lib/icon/unvisible.js +14 -12
- package/lib/icon/up-shape.js +14 -12
- package/lib/icon/upload.js +14 -12
- package/lib/icon/video-fill.js +14 -12
- package/lib/icon/warn.js +14 -12
- package/lib/icon/weixin-pro.js +14 -12
- package/lib/icon/weixin.js +14 -12
- package/lib/image/index.js +1502 -182
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +101 -87
- package/lib/input/index.js +1342 -42
- package/lib/link/index.js +26 -18
- package/lib/loading/index.js +25 -19
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.js +40 -32
- package/lib/message/index.js +47 -41
- package/lib/modal/index.js +39 -29
- package/lib/navigation/index.js +27 -19
- package/lib/notify/index.js +37 -27
- package/lib/overflow-title/index.js +41 -29
- package/lib/pagination/index.js +62 -46
- package/lib/plugin-popover/index.js +7 -5
- package/lib/plugins/index.js +7 -5
- package/lib/pop-confirm/index.js +49 -33
- package/lib/popover/index.js +1417 -113
- package/lib/popover2/index.js +14 -10
- package/lib/process/index.js +78 -74
- package/lib/progress/index.js +26 -20
- package/lib/radio/index.js +39 -31
- package/lib/rate/index.js +25 -19
- package/lib/resize-layout/index.js +30 -22
- package/lib/scrollbar/index.js +25 -25
- package/lib/search-select/index.js +1486 -236
- package/lib/select/index.js +1404 -134
- package/lib/shared/index.js +57 -49
- package/lib/sideslider/index.js +89 -79
- package/lib/slider/index.js +85 -75
- package/lib/steps/index.js +78 -72
- package/lib/swiper/index.js +24 -18
- package/lib/switcher/index.js +30 -22
- package/lib/tab/index.js +1324 -43
- package/lib/table/index.js +1582 -296
- package/lib/table-column/index.js +13 -9
- package/lib/tag/index.js +36 -26
- package/lib/tag-input/index.js +1370 -75
- package/lib/time-picker/index.js +13 -9
- package/lib/timeline/index.js +21 -15
- package/lib/transfer/index.js +56 -40
- package/lib/tree/index.js +100 -76
- package/lib/upload/index.js +584 -572
- package/lib/virtual-render/index.js +55 -43
- package/package.json +1 -1
@@ -3,7 +3,10 @@ import "./search-select.less";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
|
-
import * as
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
7
10
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
8
11
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
9
12
|
import "../popover/popover.less";
|
@@ -13,10 +16,356 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_radio_d36f24cf__ from "../rad
|
|
13
16
|
import "../radio/radio.less";
|
14
17
|
/******/ var __webpack_modules__ = ({
|
15
18
|
|
16
|
-
/***/
|
19
|
+
/***/ 1043:
|
20
|
+
/***/ ((module) => {
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Copyright (c) 2015, Facebook, Inc.
|
24
|
+
* All rights reserved.
|
25
|
+
*
|
26
|
+
* This source code is licensed under the BSD-style license found in the
|
27
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
28
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
29
|
+
*
|
30
|
+
* @providesModule ExecutionEnvironment
|
31
|
+
*/
|
32
|
+
|
33
|
+
/*jslint evil: true */
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
var canUseDOM = !!(
|
38
|
+
typeof window !== 'undefined' &&
|
39
|
+
window.document &&
|
40
|
+
window.document.createElement
|
41
|
+
);
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Simple, lightweight module assisting with the detection and context of
|
45
|
+
* Worker. Helps avoid circular dependencies and allows code to reason about
|
46
|
+
* whether or not they are in a Worker, even if they never include the main
|
47
|
+
* `ReactWorker` dependency.
|
48
|
+
*/
|
49
|
+
var ExecutionEnvironment = {
|
50
|
+
|
51
|
+
canUseDOM: canUseDOM,
|
52
|
+
|
53
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
54
|
+
|
55
|
+
canUseEventListeners:
|
56
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
57
|
+
|
58
|
+
canUseViewport: canUseDOM && !!window.screen,
|
59
|
+
|
60
|
+
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
61
|
+
|
62
|
+
};
|
63
|
+
|
64
|
+
module.exports = ExecutionEnvironment;
|
65
|
+
|
66
|
+
|
67
|
+
/***/ }),
|
68
|
+
|
69
|
+
/***/ 2586:
|
17
70
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
18
71
|
|
19
|
-
|
72
|
+
/**
|
73
|
+
* Copyright 2013-2015, Facebook, Inc.
|
74
|
+
* All rights reserved.
|
75
|
+
*
|
76
|
+
* This source code is licensed under the BSD-style license found in the
|
77
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
78
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
79
|
+
*
|
80
|
+
* @providesModule isEventSupported
|
81
|
+
*/
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
var ExecutionEnvironment = __webpack_require__(1043);
|
86
|
+
|
87
|
+
var useHasFeature;
|
88
|
+
if (ExecutionEnvironment.canUseDOM) {
|
89
|
+
useHasFeature =
|
90
|
+
document.implementation &&
|
91
|
+
document.implementation.hasFeature &&
|
92
|
+
// always returns true in newer browsers as per the standard.
|
93
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
94
|
+
document.implementation.hasFeature('', '') !== true;
|
95
|
+
}
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Checks if an event is supported in the current execution environment.
|
99
|
+
*
|
100
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
101
|
+
* `reset`, `load`, `error`, and `select`.
|
102
|
+
*
|
103
|
+
* Borrows from Modernizr.
|
104
|
+
*
|
105
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
106
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
107
|
+
* @return {boolean} True if the event is supported.
|
108
|
+
* @internal
|
109
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
110
|
+
*/
|
111
|
+
function isEventSupported(eventNameSuffix, capture) {
|
112
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
113
|
+
capture && !('addEventListener' in document)) {
|
114
|
+
return false;
|
115
|
+
}
|
116
|
+
|
117
|
+
var eventName = 'on' + eventNameSuffix;
|
118
|
+
var isSupported = eventName in document;
|
119
|
+
|
120
|
+
if (!isSupported) {
|
121
|
+
var element = document.createElement('div');
|
122
|
+
element.setAttribute(eventName, 'return;');
|
123
|
+
isSupported = typeof element[eventName] === 'function';
|
124
|
+
}
|
125
|
+
|
126
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
127
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
128
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
129
|
+
}
|
130
|
+
|
131
|
+
return isSupported;
|
132
|
+
}
|
133
|
+
|
134
|
+
module.exports = isEventSupported;
|
135
|
+
|
136
|
+
|
137
|
+
/***/ }),
|
138
|
+
|
139
|
+
/***/ 4319:
|
140
|
+
/***/ ((module) => {
|
141
|
+
|
142
|
+
function _typeof(o) {
|
143
|
+
"@babel/helpers - typeof";
|
144
|
+
|
145
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
146
|
+
return typeof o;
|
147
|
+
} : function (o) {
|
148
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
149
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
150
|
+
}
|
151
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
152
|
+
|
153
|
+
/***/ }),
|
154
|
+
|
155
|
+
/***/ 5022:
|
156
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
157
|
+
|
158
|
+
/**
|
159
|
+
* Copyright (c) 2015, Facebook, Inc.
|
160
|
+
* All rights reserved.
|
161
|
+
*
|
162
|
+
* This source code is licensed under the BSD-style license found in the
|
163
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
164
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
165
|
+
*
|
166
|
+
* @providesModule normalizeWheel
|
167
|
+
* @typechecks
|
168
|
+
*/
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
173
|
+
|
174
|
+
var isEventSupported = __webpack_require__(2586);
|
175
|
+
|
176
|
+
|
177
|
+
// Reasonable defaults
|
178
|
+
var PIXEL_STEP = 10;
|
179
|
+
var LINE_HEIGHT = 40;
|
180
|
+
var PAGE_HEIGHT = 800;
|
181
|
+
|
182
|
+
/**
|
183
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
184
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
185
|
+
* your questions.
|
186
|
+
*
|
187
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
188
|
+
* like your bestest friend. * hugs *
|
189
|
+
*
|
190
|
+
* As of today, there are 4 DOM event types you can listen to:
|
191
|
+
*
|
192
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
193
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
194
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
195
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
196
|
+
*
|
197
|
+
* So what to do? The is the best:
|
198
|
+
*
|
199
|
+
* normalizeWheel.getEventType();
|
200
|
+
*
|
201
|
+
* In your event callback, use this code to get sane interpretation of the
|
202
|
+
* deltas. This code will return an object with properties:
|
203
|
+
*
|
204
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
205
|
+
* spinY -- " - y plane
|
206
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
207
|
+
* pixelY -- " - y plane
|
208
|
+
*
|
209
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
210
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
211
|
+
* significantly on different platforms and browsers, forgetting that you can
|
212
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
213
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
214
|
+
* linear speed or acceleration.
|
215
|
+
*
|
216
|
+
* This code does its best to normalize the deltas for you:
|
217
|
+
*
|
218
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
219
|
+
* dragged). This is super useful for zoom support where you want to
|
220
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
221
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
222
|
+
* resolve a single slow step on a wheel to 1.
|
223
|
+
*
|
224
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
225
|
+
* get the crazy differences between browsers, but at least it'll be in
|
226
|
+
* pixels!
|
227
|
+
*
|
228
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
229
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
230
|
+
* This matches the newer 'wheel' event.
|
231
|
+
*
|
232
|
+
* Why are there spinX, spinY (or pixels)?
|
233
|
+
*
|
234
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
235
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
236
|
+
*
|
237
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
238
|
+
*
|
239
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
240
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
241
|
+
* you know.
|
242
|
+
*
|
243
|
+
* Implementation info:
|
244
|
+
*
|
245
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
246
|
+
* average mouse:
|
247
|
+
*
|
248
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
249
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
250
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
251
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
252
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
253
|
+
*
|
254
|
+
* On the trackpad:
|
255
|
+
*
|
256
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
257
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
258
|
+
*
|
259
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
260
|
+
* also missing delta values.
|
261
|
+
*
|
262
|
+
* The 'wheel' event is more standard:
|
263
|
+
*
|
264
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
265
|
+
*
|
266
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
267
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
268
|
+
* backward compatibility with older events. Those other values help us
|
269
|
+
* better normalize spin speed. Example of what the browsers provide:
|
270
|
+
*
|
271
|
+
* | event.wheelDelta | event.detail
|
272
|
+
* ------------------+------------------+--------------
|
273
|
+
* Safari v5/OS X | -120 | 0
|
274
|
+
* Safari v5/Win7 | -120 | 0
|
275
|
+
* Chrome v17/OS X | -120 | 0
|
276
|
+
* Chrome v17/Win7 | -120 | 0
|
277
|
+
* IE9/Win7 | -120 | undefined
|
278
|
+
* Firefox v4/OS X | undefined | 1
|
279
|
+
* Firefox v4/Win7 | undefined | 3
|
280
|
+
*
|
281
|
+
*/
|
282
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
283
|
+
var sX = 0, sY = 0, // spinX, spinY
|
284
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
285
|
+
|
286
|
+
// Legacy
|
287
|
+
if ('detail' in event) { sY = event.detail; }
|
288
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
289
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
290
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
291
|
+
|
292
|
+
// side scrolling on FF with DOMMouseScroll
|
293
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
294
|
+
sX = sY;
|
295
|
+
sY = 0;
|
296
|
+
}
|
297
|
+
|
298
|
+
pX = sX * PIXEL_STEP;
|
299
|
+
pY = sY * PIXEL_STEP;
|
300
|
+
|
301
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
302
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
303
|
+
|
304
|
+
if ((pX || pY) && event.deltaMode) {
|
305
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
306
|
+
pX *= LINE_HEIGHT;
|
307
|
+
pY *= LINE_HEIGHT;
|
308
|
+
} else { // delta in PAGE units
|
309
|
+
pX *= PAGE_HEIGHT;
|
310
|
+
pY *= PAGE_HEIGHT;
|
311
|
+
}
|
312
|
+
}
|
313
|
+
|
314
|
+
// Fall-back if spin cannot be determined
|
315
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
316
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
317
|
+
|
318
|
+
return { spinX : sX,
|
319
|
+
spinY : sY,
|
320
|
+
pixelX : pX,
|
321
|
+
pixelY : pY };
|
322
|
+
}
|
323
|
+
|
324
|
+
|
325
|
+
/**
|
326
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
327
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
328
|
+
* 'wheel' event, making spin speed determination impossible.
|
329
|
+
*/
|
330
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
331
|
+
return (UserAgent_DEPRECATED.firefox())
|
332
|
+
? 'DOMMouseScroll'
|
333
|
+
: (isEventSupported('wheel'))
|
334
|
+
? 'wheel'
|
335
|
+
: 'mousewheel';
|
336
|
+
};
|
337
|
+
|
338
|
+
module.exports = normalizeWheel;
|
339
|
+
|
340
|
+
|
341
|
+
/***/ }),
|
342
|
+
|
343
|
+
/***/ 5799:
|
344
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
345
|
+
|
346
|
+
// TODO(Babel 8): Remove this file.
|
347
|
+
|
348
|
+
var runtime = __webpack_require__(7048)();
|
349
|
+
module.exports = runtime;
|
350
|
+
|
351
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
352
|
+
try {
|
353
|
+
regeneratorRuntime = runtime;
|
354
|
+
} catch (accidentalStrictMode) {
|
355
|
+
if (typeof globalThis === "object") {
|
356
|
+
globalThis.regeneratorRuntime = runtime;
|
357
|
+
} else {
|
358
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
359
|
+
}
|
360
|
+
}
|
361
|
+
|
362
|
+
|
363
|
+
/***/ }),
|
364
|
+
|
365
|
+
/***/ 7048:
|
366
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
367
|
+
|
368
|
+
var _typeof = (__webpack_require__(4319)["default"]);
|
20
369
|
function _regeneratorRuntime() {
|
21
370
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
22
371
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
@@ -323,177 +672,1105 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
323
672
|
|
324
673
|
/***/ }),
|
325
674
|
|
326
|
-
/***/
|
675
|
+
/***/ 7416:
|
327
676
|
/***/ ((module) => {
|
328
677
|
|
678
|
+
/**
|
679
|
+
* Copyright 2004-present Facebook. All Rights Reserved.
|
680
|
+
*
|
681
|
+
* @providesModule UserAgent_DEPRECATED
|
682
|
+
*/
|
683
|
+
|
684
|
+
/**
|
685
|
+
* Provides entirely client-side User Agent and OS detection. You should prefer
|
686
|
+
* the non-deprecated UserAgent module when possible, which exposes our
|
687
|
+
* authoritative server-side PHP-based detection to the client.
|
688
|
+
*
|
689
|
+
* Usage is straightforward:
|
690
|
+
*
|
691
|
+
* if (UserAgent_DEPRECATED.ie()) {
|
692
|
+
* // IE
|
693
|
+
* }
|
694
|
+
*
|
695
|
+
* You can also do version checks:
|
696
|
+
*
|
697
|
+
* if (UserAgent_DEPRECATED.ie() >= 7) {
|
698
|
+
* // IE7 or better
|
699
|
+
* }
|
700
|
+
*
|
701
|
+
* The browser functions will return NaN if the browser does not match, so
|
702
|
+
* you can also do version compares the other way:
|
703
|
+
*
|
704
|
+
* if (UserAgent_DEPRECATED.ie() < 7) {
|
705
|
+
* // IE6 or worse
|
706
|
+
* }
|
707
|
+
*
|
708
|
+
* Note that the version is a float and may include a minor version number,
|
709
|
+
* so you should always use range operators to perform comparisons, not
|
710
|
+
* strict equality.
|
711
|
+
*
|
712
|
+
* **Note:** You should **strongly** prefer capability detection to browser
|
713
|
+
* version detection where it's reasonable:
|
714
|
+
*
|
715
|
+
* http://www.quirksmode.org/js/support.html
|
716
|
+
*
|
717
|
+
* Further, we have a large number of mature wrapper functions and classes
|
718
|
+
* which abstract away many browser irregularities. Check the documentation,
|
719
|
+
* grep for things, or ask on javascript@lists.facebook.com before writing yet
|
720
|
+
* another copy of "event || window.event".
|
721
|
+
*
|
722
|
+
*/
|
723
|
+
|
724
|
+
var _populated = false;
|
725
|
+
|
726
|
+
// Browsers
|
727
|
+
var _ie, _firefox, _opera, _webkit, _chrome;
|
728
|
+
|
729
|
+
// Actual IE browser for compatibility mode
|
730
|
+
var _ie_real_version;
|
731
|
+
|
732
|
+
// Platforms
|
733
|
+
var _osx, _windows, _linux, _android;
|
734
|
+
|
735
|
+
// Architectures
|
736
|
+
var _win64;
|
737
|
+
|
738
|
+
// Devices
|
739
|
+
var _iphone, _ipad, _native;
|
740
|
+
|
741
|
+
var _mobile;
|
742
|
+
|
743
|
+
function _populate() {
|
744
|
+
if (_populated) {
|
745
|
+
return;
|
746
|
+
}
|
747
|
+
|
748
|
+
_populated = true;
|
749
|
+
|
750
|
+
// To work around buggy JS libraries that can't handle multi-digit
|
751
|
+
// version numbers, Opera 10's user agent string claims it's Opera
|
752
|
+
// 9, then later includes a Version/X.Y field:
|
753
|
+
//
|
754
|
+
// Opera/9.80 (foo) Presto/2.2.15 Version/10.10
|
755
|
+
var uas = navigator.userAgent;
|
756
|
+
var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
|
757
|
+
var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
|
758
|
+
|
759
|
+
_iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
|
760
|
+
_ipad = /\b(iP[ao]d)/.exec(uas);
|
761
|
+
_android = /Android/i.exec(uas);
|
762
|
+
_native = /FBAN\/\w+;/i.exec(uas);
|
763
|
+
_mobile = /Mobile/i.exec(uas);
|
764
|
+
|
765
|
+
// Note that the IE team blog would have you believe you should be checking
|
766
|
+
// for 'Win64; x64'. But MSDN then reveals that you can actually be coming
|
767
|
+
// from either x64 or ia64; so ultimately, you should just check for Win64
|
768
|
+
// as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
|
769
|
+
// Windows will send 'WOW64' instead.
|
770
|
+
_win64 = !!(/Win64/.exec(uas));
|
771
|
+
|
772
|
+
if (agent) {
|
773
|
+
_ie = agent[1] ? parseFloat(agent[1]) : (
|
774
|
+
agent[5] ? parseFloat(agent[5]) : NaN);
|
775
|
+
// IE compatibility mode
|
776
|
+
if (_ie && document && document.documentMode) {
|
777
|
+
_ie = document.documentMode;
|
778
|
+
}
|
779
|
+
// grab the "true" ie version from the trident token if available
|
780
|
+
var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
|
781
|
+
_ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
|
782
|
+
|
783
|
+
_firefox = agent[2] ? parseFloat(agent[2]) : NaN;
|
784
|
+
_opera = agent[3] ? parseFloat(agent[3]) : NaN;
|
785
|
+
_webkit = agent[4] ? parseFloat(agent[4]) : NaN;
|
786
|
+
if (_webkit) {
|
787
|
+
// We do not add the regexp to the above test, because it will always
|
788
|
+
// match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
|
789
|
+
// the userAgent string.
|
790
|
+
agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
|
791
|
+
_chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
|
792
|
+
} else {
|
793
|
+
_chrome = NaN;
|
794
|
+
}
|
795
|
+
} else {
|
796
|
+
_ie = _firefox = _opera = _chrome = _webkit = NaN;
|
797
|
+
}
|
798
|
+
|
799
|
+
if (os) {
|
800
|
+
if (os[1]) {
|
801
|
+
// Detect OS X version. If no version number matches, set _osx to true.
|
802
|
+
// Version examples: 10, 10_6_1, 10.7
|
803
|
+
// Parses version number as a float, taking only first two sets of
|
804
|
+
// digits. If only one set of digits is found, returns just the major
|
805
|
+
// version number.
|
806
|
+
var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
|
807
|
+
|
808
|
+
_osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
|
809
|
+
} else {
|
810
|
+
_osx = false;
|
811
|
+
}
|
812
|
+
_windows = !!os[2];
|
813
|
+
_linux = !!os[3];
|
814
|
+
} else {
|
815
|
+
_osx = _windows = _linux = false;
|
816
|
+
}
|
817
|
+
}
|
818
|
+
|
819
|
+
var UserAgent_DEPRECATED = {
|
820
|
+
|
821
|
+
/**
|
822
|
+
* Check if the UA is Internet Explorer.
|
823
|
+
*
|
824
|
+
*
|
825
|
+
* @return float|NaN Version number (if match) or NaN.
|
826
|
+
*/
|
827
|
+
ie: function() {
|
828
|
+
return _populate() || _ie;
|
829
|
+
},
|
830
|
+
|
831
|
+
/**
|
832
|
+
* Check if we're in Internet Explorer compatibility mode.
|
833
|
+
*
|
834
|
+
* @return bool true if in compatibility mode, false if
|
835
|
+
* not compatibility mode or not ie
|
836
|
+
*/
|
837
|
+
ieCompatibilityMode: function() {
|
838
|
+
return _populate() || (_ie_real_version > _ie);
|
839
|
+
},
|
840
|
+
|
841
|
+
|
842
|
+
/**
|
843
|
+
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
844
|
+
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
845
|
+
* this when we don't need it -- tracked by #601957.
|
846
|
+
*/
|
847
|
+
ie64: function() {
|
848
|
+
return UserAgent_DEPRECATED.ie() && _win64;
|
849
|
+
},
|
850
|
+
|
851
|
+
/**
|
852
|
+
* Check if the UA is Firefox.
|
853
|
+
*
|
854
|
+
*
|
855
|
+
* @return float|NaN Version number (if match) or NaN.
|
856
|
+
*/
|
857
|
+
firefox: function() {
|
858
|
+
return _populate() || _firefox;
|
859
|
+
},
|
860
|
+
|
861
|
+
|
862
|
+
/**
|
863
|
+
* Check if the UA is Opera.
|
864
|
+
*
|
865
|
+
*
|
866
|
+
* @return float|NaN Version number (if match) or NaN.
|
867
|
+
*/
|
868
|
+
opera: function() {
|
869
|
+
return _populate() || _opera;
|
870
|
+
},
|
871
|
+
|
872
|
+
|
873
|
+
/**
|
874
|
+
* Check if the UA is WebKit.
|
875
|
+
*
|
876
|
+
*
|
877
|
+
* @return float|NaN Version number (if match) or NaN.
|
878
|
+
*/
|
879
|
+
webkit: function() {
|
880
|
+
return _populate() || _webkit;
|
881
|
+
},
|
882
|
+
|
883
|
+
/**
|
884
|
+
* For Push
|
885
|
+
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
886
|
+
*/
|
887
|
+
safari: function() {
|
888
|
+
return UserAgent_DEPRECATED.webkit();
|
889
|
+
},
|
890
|
+
|
891
|
+
/**
|
892
|
+
* Check if the UA is a Chrome browser.
|
893
|
+
*
|
894
|
+
*
|
895
|
+
* @return float|NaN Version number (if match) or NaN.
|
896
|
+
*/
|
897
|
+
chrome : function() {
|
898
|
+
return _populate() || _chrome;
|
899
|
+
},
|
900
|
+
|
901
|
+
|
902
|
+
/**
|
903
|
+
* Check if the user is running Windows.
|
904
|
+
*
|
905
|
+
* @return bool `true' if the user's OS is Windows.
|
906
|
+
*/
|
907
|
+
windows: function() {
|
908
|
+
return _populate() || _windows;
|
909
|
+
},
|
910
|
+
|
911
|
+
|
912
|
+
/**
|
913
|
+
* Check if the user is running Mac OS X.
|
914
|
+
*
|
915
|
+
* @return float|bool Returns a float if a version number is detected,
|
916
|
+
* otherwise true/false.
|
917
|
+
*/
|
918
|
+
osx: function() {
|
919
|
+
return _populate() || _osx;
|
920
|
+
},
|
921
|
+
|
922
|
+
/**
|
923
|
+
* Check if the user is running Linux.
|
924
|
+
*
|
925
|
+
* @return bool `true' if the user's OS is some flavor of Linux.
|
926
|
+
*/
|
927
|
+
linux: function() {
|
928
|
+
return _populate() || _linux;
|
929
|
+
},
|
930
|
+
|
931
|
+
/**
|
932
|
+
* Check if the user is running on an iPhone or iPod platform.
|
933
|
+
*
|
934
|
+
* @return bool `true' if the user is running some flavor of the
|
935
|
+
* iPhone OS.
|
936
|
+
*/
|
937
|
+
iphone: function() {
|
938
|
+
return _populate() || _iphone;
|
939
|
+
},
|
940
|
+
|
941
|
+
mobile: function() {
|
942
|
+
return _populate() || (_iphone || _ipad || _android || _mobile);
|
943
|
+
},
|
944
|
+
|
945
|
+
nativeApp: function() {
|
946
|
+
// webviews inside of the native apps
|
947
|
+
return _populate() || _native;
|
948
|
+
},
|
949
|
+
|
950
|
+
android: function() {
|
951
|
+
return _populate() || _android;
|
952
|
+
},
|
953
|
+
|
954
|
+
ipad: function() {
|
955
|
+
return _populate() || _ipad;
|
956
|
+
}
|
957
|
+
};
|
958
|
+
|
959
|
+
module.exports = UserAgent_DEPRECATED;
|
960
|
+
|
961
|
+
|
962
|
+
/***/ }),
|
963
|
+
|
964
|
+
/***/ 8283:
|
965
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
966
|
+
|
967
|
+
module.exports = __webpack_require__(5022);
|
968
|
+
|
969
|
+
|
970
|
+
/***/ })
|
971
|
+
|
972
|
+
/******/ });
|
973
|
+
/************************************************************************/
|
974
|
+
/******/ // The module cache
|
975
|
+
/******/ var __webpack_module_cache__ = {};
|
976
|
+
/******/
|
977
|
+
/******/ // The require function
|
978
|
+
/******/ function __webpack_require__(moduleId) {
|
979
|
+
/******/ // Check if module is in cache
|
980
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
981
|
+
/******/ if (cachedModule !== undefined) {
|
982
|
+
/******/ return cachedModule.exports;
|
983
|
+
/******/ }
|
984
|
+
/******/ // Create a new module (and put it into the cache)
|
985
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
986
|
+
/******/ // no module.id needed
|
987
|
+
/******/ // no module.loaded needed
|
988
|
+
/******/ exports: {}
|
989
|
+
/******/ };
|
990
|
+
/******/
|
991
|
+
/******/ // Execute the module function
|
992
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
993
|
+
/******/
|
994
|
+
/******/ // Return the exports of the module
|
995
|
+
/******/ return module.exports;
|
996
|
+
/******/ }
|
997
|
+
/******/
|
998
|
+
/************************************************************************/
|
999
|
+
/******/ /* webpack/runtime/compat get default export */
|
1000
|
+
/******/ (() => {
|
1001
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
1002
|
+
/******/ __webpack_require__.n = (module) => {
|
1003
|
+
/******/ var getter = module && module.__esModule ?
|
1004
|
+
/******/ () => (module['default']) :
|
1005
|
+
/******/ () => (module);
|
1006
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
1007
|
+
/******/ return getter;
|
1008
|
+
/******/ };
|
1009
|
+
/******/ })();
|
1010
|
+
/******/
|
1011
|
+
/******/ /* webpack/runtime/define property getters */
|
1012
|
+
/******/ (() => {
|
1013
|
+
/******/ // define getter functions for harmony exports
|
1014
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
1015
|
+
/******/ for(var key in definition) {
|
1016
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
1017
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
1018
|
+
/******/ }
|
1019
|
+
/******/ }
|
1020
|
+
/******/ };
|
1021
|
+
/******/ })();
|
1022
|
+
/******/
|
1023
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
1024
|
+
/******/ (() => {
|
1025
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
1026
|
+
/******/ })();
|
1027
|
+
/******/
|
1028
|
+
/************************************************************************/
|
1029
|
+
var __webpack_exports__ = {};
|
1030
|
+
|
1031
|
+
// EXPORTS
|
1032
|
+
__webpack_require__.d(__webpack_exports__, {
|
1033
|
+
BkSearchSelect: () => (/* binding */ BkSearchSelect),
|
1034
|
+
"default": () => (/* binding */ src)
|
1035
|
+
});
|
1036
|
+
|
1037
|
+
;// external "../shared"
|
1038
|
+
var x = (y) => {
|
1039
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1040
|
+
}
|
1041
|
+
var y = (x) => (() => (x))
|
1042
|
+
const shared_namespaceObject = x({ ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["debounce"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce), ["random"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.random), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["withInstall"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall) });
|
1043
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
329
1044
|
function _typeof(o) {
|
330
1045
|
"@babel/helpers - typeof";
|
331
1046
|
|
332
|
-
return
|
1047
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
333
1048
|
return typeof o;
|
334
1049
|
} : function (o) {
|
335
1050
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
336
|
-
},
|
1051
|
+
}, _typeof(o);
|
1052
|
+
}
|
1053
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
1054
|
+
|
1055
|
+
function toPrimitive(t, r) {
|
1056
|
+
if ("object" != _typeof(t) || !t) return t;
|
1057
|
+
var e = t[Symbol.toPrimitive];
|
1058
|
+
if (void 0 !== e) {
|
1059
|
+
var i = e.call(t, r || "default");
|
1060
|
+
if ("object" != _typeof(i)) return i;
|
1061
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
1062
|
+
}
|
1063
|
+
return ("string" === r ? String : Number)(t);
|
1064
|
+
}
|
1065
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1066
|
+
|
1067
|
+
|
1068
|
+
function toPropertyKey(t) {
|
1069
|
+
var i = toPrimitive(t, "string");
|
1070
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
1071
|
+
}
|
1072
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1073
|
+
|
1074
|
+
function _defineProperty(obj, key, value) {
|
1075
|
+
key = toPropertyKey(key);
|
1076
|
+
if (key in obj) {
|
1077
|
+
Object.defineProperty(obj, key, {
|
1078
|
+
value: value,
|
1079
|
+
enumerable: true,
|
1080
|
+
configurable: true,
|
1081
|
+
writable: true
|
1082
|
+
});
|
1083
|
+
} else {
|
1084
|
+
obj[key] = value;
|
1085
|
+
}
|
1086
|
+
return obj;
|
1087
|
+
}
|
1088
|
+
;// external "vue"
|
1089
|
+
var external_vue_x = (y) => {
|
1090
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1091
|
+
}
|
1092
|
+
var external_vue_y = (x) => (() => (x))
|
1093
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Fragment), ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createTextVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["inject"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.inject), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onBeforeUnmount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["provide"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.provide), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["shallowRef"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.shallowRef), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
1094
|
+
;// external "../config-provider"
|
1095
|
+
var config_provider_x = (y) => {
|
1096
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1097
|
+
}
|
1098
|
+
var config_provider_y = (x) => (() => (x))
|
1099
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale), ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
1100
|
+
;// ../../packages/directives/src/clickoutside.ts
|
1101
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
1102
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
1103
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
1104
|
+
/*
|
1105
|
+
* Tencent is pleased to support the open source community by making
|
1106
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1107
|
+
*
|
1108
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1109
|
+
*
|
1110
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1111
|
+
*
|
1112
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1113
|
+
*
|
1114
|
+
* ---------------------------------------------------
|
1115
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1116
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1117
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1118
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1119
|
+
*
|
1120
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1121
|
+
* the Software.
|
1122
|
+
*
|
1123
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1124
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1125
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1126
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1127
|
+
* IN THE SOFTWARE.
|
1128
|
+
*/
|
1129
|
+
var isElement = function isElement(e) {
|
1130
|
+
if (typeof Element === 'undefined') return false;
|
1131
|
+
return e instanceof Element;
|
1132
|
+
};
|
1133
|
+
var nodeList = new Map();
|
1134
|
+
var startClick;
|
1135
|
+
document.addEventListener('mousedown', function (e) {
|
1136
|
+
return startClick = e;
|
1137
|
+
});
|
1138
|
+
document.addEventListener('mouseup', function (e) {
|
1139
|
+
var _iterator = _createForOfIteratorHelper(nodeList.values()),
|
1140
|
+
_step;
|
1141
|
+
try {
|
1142
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
1143
|
+
var handlers = _step.value;
|
1144
|
+
var _iterator2 = _createForOfIteratorHelper(handlers),
|
1145
|
+
_step2;
|
1146
|
+
try {
|
1147
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
1148
|
+
var documentHandler = _step2.value.documentHandler;
|
1149
|
+
documentHandler(e, startClick);
|
1150
|
+
}
|
1151
|
+
} catch (err) {
|
1152
|
+
_iterator2.e(err);
|
1153
|
+
} finally {
|
1154
|
+
_iterator2.f();
|
1155
|
+
}
|
1156
|
+
}
|
1157
|
+
} catch (err) {
|
1158
|
+
_iterator.e(err);
|
1159
|
+
} finally {
|
1160
|
+
_iterator.f();
|
1161
|
+
}
|
1162
|
+
});
|
1163
|
+
function createDocumentHandler(el, binding) {
|
1164
|
+
var excludes = [];
|
1165
|
+
if (Array.isArray(binding.arg)) {
|
1166
|
+
excludes = binding.arg;
|
1167
|
+
} else if (isElement(binding.arg)) {
|
1168
|
+
excludes.push(binding.arg);
|
1169
|
+
}
|
1170
|
+
return function (mouseup, mousedown) {
|
1171
|
+
var popperRef = binding.instance.popperRef;
|
1172
|
+
var mouseUpTarget = mouseup.target;
|
1173
|
+
var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
|
1174
|
+
var isBound = !binding || !binding.instance;
|
1175
|
+
var isTargetExists = !mouseUpTarget || !mouseDownTarget;
|
1176
|
+
var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
|
1177
|
+
var isSelf = el === mouseUpTarget;
|
1178
|
+
var isTargetExcluded = excludes.length && excludes.some(function (item) {
|
1179
|
+
return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
|
1180
|
+
}) || excludes.length && excludes.includes(mouseDownTarget);
|
1181
|
+
var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
|
1182
|
+
if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
|
1183
|
+
return;
|
1184
|
+
}
|
1185
|
+
binding.value(mouseup, mousedown);
|
1186
|
+
};
|
1187
|
+
}
|
1188
|
+
var ClickOutside = {
|
1189
|
+
beforeMount: function beforeMount(el, binding) {
|
1190
|
+
if (!nodeList.has(el)) {
|
1191
|
+
nodeList.set(el, []);
|
1192
|
+
}
|
1193
|
+
nodeList.get(el).push({
|
1194
|
+
documentHandler: createDocumentHandler(el, binding),
|
1195
|
+
bindingFn: binding.value
|
1196
|
+
});
|
1197
|
+
},
|
1198
|
+
updated: function updated(el, binding) {
|
1199
|
+
if (!nodeList.has(el)) {
|
1200
|
+
nodeList.set(el, []);
|
1201
|
+
}
|
1202
|
+
var handlers = nodeList.get(el);
|
1203
|
+
var oldHandlerIndex = handlers.findIndex(function (item) {
|
1204
|
+
return item.bindingFn === binding.oldValue;
|
1205
|
+
});
|
1206
|
+
var newHandler = {
|
1207
|
+
documentHandler: createDocumentHandler(el, binding),
|
1208
|
+
bindingFn: binding.value
|
1209
|
+
};
|
1210
|
+
if (oldHandlerIndex >= 0) {
|
1211
|
+
// replace the old handler to the new handler
|
1212
|
+
handlers.splice(oldHandlerIndex, 1, newHandler);
|
1213
|
+
} else {
|
1214
|
+
handlers.push(newHandler);
|
1215
|
+
}
|
1216
|
+
},
|
1217
|
+
unmounted: function unmounted(el) {
|
1218
|
+
// remove all listeners when a component unmounted
|
1219
|
+
nodeList["delete"](el);
|
1220
|
+
}
|
1221
|
+
};
|
1222
|
+
ClickOutside.install = function (app) {
|
1223
|
+
app.directive('bkTooltips', ClickOutside);
|
1224
|
+
};
|
1225
|
+
/* harmony default export */ const clickoutside = (ClickOutside);
|
1226
|
+
;// external "../plugin-popover"
|
1227
|
+
var plugin_popover_x = (y) => {
|
1228
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1229
|
+
}
|
1230
|
+
var plugin_popover_y = (x) => (() => (x))
|
1231
|
+
const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
|
1232
|
+
;// ../../packages/directives/src/ellipsis.ts
|
1233
|
+
|
1234
|
+
/*
|
1235
|
+
* Tencent is pleased to support the open source community by making
|
1236
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1237
|
+
*
|
1238
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1239
|
+
*
|
1240
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1241
|
+
*
|
1242
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1243
|
+
*
|
1244
|
+
* ---------------------------------------------------
|
1245
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1246
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1247
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1248
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1249
|
+
*
|
1250
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1251
|
+
* the Software.
|
1252
|
+
*
|
1253
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1254
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1255
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1256
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1257
|
+
* IN THE SOFTWARE.
|
1258
|
+
*/
|
1259
|
+
|
1260
|
+
var resolveOptions = function resolveOptions(el, binding) {
|
1261
|
+
var options = {
|
1262
|
+
content: '',
|
1263
|
+
target: el
|
1264
|
+
};
|
1265
|
+
if (_typeof(binding) === 'object') {
|
1266
|
+
Object.assign(options, binding);
|
1267
|
+
if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
|
1268
|
+
Object.assign(options, binding.popoverOption);
|
1269
|
+
}
|
1270
|
+
} else {
|
1271
|
+
options.content = binding;
|
1272
|
+
}
|
1273
|
+
return options;
|
1274
|
+
};
|
1275
|
+
var createInstance = function createInstance(el, binding) {
|
1276
|
+
var instance = null;
|
1277
|
+
var createTimer = null;
|
1278
|
+
var hidePopTimer = null;
|
1279
|
+
var options = resolveOptions(el, binding);
|
1280
|
+
var disabled = options.disabled;
|
1281
|
+
if (disabled || instance) {
|
1282
|
+
return;
|
1283
|
+
}
|
1284
|
+
var handleContentEnter = function handleContentEnter() {
|
1285
|
+
hidePopTimer && clearTimeout(hidePopTimer);
|
1286
|
+
hidePopTimer = null;
|
1287
|
+
};
|
1288
|
+
var handleContentLeave = function handleContentLeave() {
|
1289
|
+
var _instance, _instance2;
|
1290
|
+
if (createTimer) {
|
1291
|
+
clearTimeout(createTimer);
|
1292
|
+
}
|
1293
|
+
(_instance = instance) === null || _instance === void 0 || _instance.hide();
|
1294
|
+
(_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
|
1295
|
+
instance = null;
|
1296
|
+
};
|
1297
|
+
var handleMouseEnter = function handleMouseEnter() {
|
1298
|
+
handleContentLeave();
|
1299
|
+
createTimer && clearTimeout(createTimer);
|
1300
|
+
createTimer = setTimeout(function () {
|
1301
|
+
var targetOptions = resolveOptions(el, binding);
|
1302
|
+
targetOptions.isShow = true;
|
1303
|
+
targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
|
1304
|
+
targetOptions.allowHtml = true;
|
1305
|
+
Object.assign(targetOptions, {
|
1306
|
+
onContentMouseenter: handleContentEnter,
|
1307
|
+
onContentMouseleave: handleContentLeave
|
1308
|
+
});
|
1309
|
+
instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
|
1310
|
+
}, 300);
|
1311
|
+
};
|
1312
|
+
var handleMouseLeave = function handleMouseLeave() {
|
1313
|
+
hidePopTimer = setTimeout(function () {
|
1314
|
+
var _instance3, _instance4;
|
1315
|
+
if (createTimer) {
|
1316
|
+
clearTimeout(createTimer);
|
1317
|
+
}
|
1318
|
+
(_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
|
1319
|
+
(_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
|
1320
|
+
instance = null;
|
1321
|
+
}, 120);
|
1322
|
+
};
|
1323
|
+
el.addEventListener('mouseenter', handleMouseEnter);
|
1324
|
+
el.addEventListener('mouseleave', handleMouseLeave);
|
1325
|
+
var destroyInstance = function destroyInstance(element) {
|
1326
|
+
var _ref, _ref2;
|
1327
|
+
handleMouseLeave();
|
1328
|
+
(_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
|
1329
|
+
(_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
|
1330
|
+
};
|
1331
|
+
return {
|
1332
|
+
destroyInstance: destroyInstance,
|
1333
|
+
instance: instance
|
1334
|
+
};
|
1335
|
+
};
|
1336
|
+
var ellipsis = {
|
1337
|
+
mounted: function mounted(el, binding) {
|
1338
|
+
createInstance(el, binding);
|
1339
|
+
}
|
1340
|
+
};
|
1341
|
+
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
1342
|
+
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
1343
|
+
var normalize_wheel = __webpack_require__(8283);
|
1344
|
+
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
1345
|
+
;// ../../packages/directives/src/mousewheel.ts
|
1346
|
+
/*
|
1347
|
+
* Tencent is pleased to support the open source community by making
|
1348
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1349
|
+
*
|
1350
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1351
|
+
*
|
1352
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1353
|
+
*
|
1354
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1355
|
+
*
|
1356
|
+
* ---------------------------------------------------
|
1357
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1358
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1359
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1360
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1361
|
+
*
|
1362
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1363
|
+
* the Software.
|
1364
|
+
*
|
1365
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1366
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1367
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1368
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1369
|
+
* IN THE SOFTWARE.
|
1370
|
+
*/
|
1371
|
+
|
1372
|
+
var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
1373
|
+
var mousewheelHandler = function mousewheelHandler(element, callback) {
|
1374
|
+
if (element !== null && element !== void 0 && element.addEventListener) {
|
1375
|
+
element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
|
1376
|
+
var normalized = normalize_wheel_default()(e);
|
1377
|
+
callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
|
1378
|
+
});
|
1379
|
+
}
|
1380
|
+
};
|
1381
|
+
var mousewheel = {
|
1382
|
+
beforeMount: function beforeMount(el, binding) {
|
1383
|
+
mousewheelHandler(el, binding.value);
|
1384
|
+
}
|
1385
|
+
};
|
1386
|
+
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
1387
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1388
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
1389
|
+
if (len == null || len > arr.length) len = arr.length;
|
1390
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1391
|
+
return arr2;
|
1392
|
+
}
|
1393
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1394
|
+
|
1395
|
+
function _arrayWithoutHoles(arr) {
|
1396
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
1397
|
+
}
|
1398
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1399
|
+
function _iterableToArray(iter) {
|
1400
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
337
1401
|
}
|
338
|
-
|
1402
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
339
1403
|
|
340
|
-
|
1404
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
1405
|
+
if (!o) return;
|
1406
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1407
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1408
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1409
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
1410
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1411
|
+
}
|
1412
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1413
|
+
function _nonIterableSpread() {
|
1414
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1415
|
+
}
|
1416
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
341
1417
|
|
342
|
-
/***/ 2841:
|
343
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
344
1418
|
|
345
|
-
// TODO(Babel 8): Remove this file.
|
346
1419
|
|
347
|
-
var runtime = __webpack_require__(7609)();
|
348
|
-
module.exports = runtime;
|
349
1420
|
|
350
|
-
|
351
|
-
|
352
|
-
regeneratorRuntime = runtime;
|
353
|
-
} catch (accidentalStrictMode) {
|
354
|
-
if (typeof globalThis === "object") {
|
355
|
-
globalThis.regeneratorRuntime = runtime;
|
356
|
-
} else {
|
357
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
358
|
-
}
|
1421
|
+
function _toConsumableArray(arr) {
|
1422
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
359
1423
|
}
|
1424
|
+
;// external "@popperjs/core"
|
1425
|
+
var core_x = (y) => {
|
1426
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1427
|
+
}
|
1428
|
+
var core_y = (x) => (() => (x))
|
1429
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
1430
|
+
;// ../../packages/directives/src/tooltips.ts
|
360
1431
|
|
361
1432
|
|
362
|
-
/***/ })
|
363
1433
|
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
/******/ /* webpack/runtime/compat get default export */
|
392
|
-
/******/ (() => {
|
393
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
394
|
-
/******/ __webpack_require__.n = (module) => {
|
395
|
-
/******/ var getter = module && module.__esModule ?
|
396
|
-
/******/ () => (module['default']) :
|
397
|
-
/******/ () => (module);
|
398
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
399
|
-
/******/ return getter;
|
400
|
-
/******/ };
|
401
|
-
/******/ })();
|
402
|
-
/******/
|
403
|
-
/******/ /* webpack/runtime/define property getters */
|
404
|
-
/******/ (() => {
|
405
|
-
/******/ // define getter functions for harmony exports
|
406
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
407
|
-
/******/ for(var key in definition) {
|
408
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
409
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
410
|
-
/******/ }
|
411
|
-
/******/ }
|
412
|
-
/******/ };
|
413
|
-
/******/ })();
|
414
|
-
/******/
|
415
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
416
|
-
/******/ (() => {
|
417
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
418
|
-
/******/ })();
|
419
|
-
/******/
|
420
|
-
/************************************************************************/
|
421
|
-
var __webpack_exports__ = {};
|
422
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
423
|
-
(() => {
|
1434
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
1435
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1436
|
+
/*
|
1437
|
+
* Tencent is pleased to support the open source community by making
|
1438
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1439
|
+
*
|
1440
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1441
|
+
*
|
1442
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1443
|
+
*
|
1444
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1445
|
+
*
|
1446
|
+
* ---------------------------------------------------
|
1447
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1448
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1449
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1450
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1451
|
+
*
|
1452
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1453
|
+
* the Software.
|
1454
|
+
*
|
1455
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1456
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1457
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1458
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1459
|
+
* IN THE SOFTWARE.
|
1460
|
+
*/
|
424
1461
|
|
425
|
-
// EXPORTS
|
426
|
-
__webpack_require__.d(__webpack_exports__, {
|
427
|
-
BkSearchSelect: () => (/* binding */ BkSearchSelect),
|
428
|
-
"default": () => (/* binding */ src)
|
429
|
-
});
|
430
1462
|
|
431
|
-
;// CONCATENATED MODULE: external "../shared"
|
432
|
-
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
433
|
-
var y = x => () => x
|
434
|
-
const shared_namespaceObject = x({ ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["random"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.random, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
435
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
436
|
-
function _typeof(o) {
|
437
|
-
"@babel/helpers - typeof";
|
438
1463
|
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
1464
|
+
var tooltips_nodeList = new WeakMap();
|
1465
|
+
var tooltips = {
|
1466
|
+
beforeMount: function beforeMount(el, binding) {
|
1467
|
+
var opts = getOpts(binding);
|
1468
|
+
var trigger = opts.trigger,
|
1469
|
+
showOnInit = opts.showOnInit;
|
1470
|
+
var popper = renderContent(opts);
|
1471
|
+
var delayTimeout = null;
|
1472
|
+
if (showOnInit) {
|
1473
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
1474
|
+
show(el);
|
1475
|
+
});
|
1476
|
+
}
|
1477
|
+
if (trigger === 'hover') {
|
1478
|
+
var hideTimeout = null;
|
1479
|
+
el.addEventListener('mouseenter', function () {
|
1480
|
+
delayTimeout = setTimeout(function () {
|
1481
|
+
show(el);
|
1482
|
+
clearTimeout(hideTimeout);
|
1483
|
+
clearTimeout(delayTimeout);
|
1484
|
+
}, opts.delay);
|
1485
|
+
});
|
1486
|
+
popper.addEventListener('mouseenter', function () {
|
1487
|
+
clearTimeout(hideTimeout);
|
1488
|
+
});
|
1489
|
+
el.addEventListener('mouseleave', function () {
|
1490
|
+
clearTimeout(delayTimeout);
|
1491
|
+
hideTimeout = setTimeout(function () {
|
1492
|
+
hide(el);
|
1493
|
+
}, 100);
|
1494
|
+
});
|
1495
|
+
el.addEventListener('click', function () {
|
1496
|
+
hide(el);
|
1497
|
+
});
|
1498
|
+
popper.addEventListener('mouseleave', function () {
|
1499
|
+
clearTimeout(delayTimeout);
|
1500
|
+
hideTimeout = setTimeout(function () {
|
1501
|
+
hide(el);
|
1502
|
+
}, 100);
|
1503
|
+
});
|
1504
|
+
} else if (trigger === 'click') {
|
1505
|
+
document.body.addEventListener('click', function (event) {
|
1506
|
+
if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
|
1507
|
+
delayTimeout = setTimeout(function () {
|
1508
|
+
show(el);
|
1509
|
+
clearTimeout(delayTimeout);
|
1510
|
+
}, opts.delay);
|
1511
|
+
} else if (popper.hasAttribute('data-show')) {
|
1512
|
+
hide(el);
|
1513
|
+
}
|
1514
|
+
});
|
1515
|
+
}
|
1516
|
+
tooltips_nodeList.set(el, {
|
1517
|
+
opts: opts,
|
1518
|
+
popper: popper,
|
1519
|
+
popperInstance: null
|
1520
|
+
});
|
1521
|
+
},
|
1522
|
+
updated: function updated(el, binding) {
|
1523
|
+
if (tooltips_nodeList.get(el)) {
|
1524
|
+
tooltips_nodeList.get(el).opts = getOpts(binding);
|
1525
|
+
}
|
1526
|
+
},
|
1527
|
+
unmounted: function unmounted(el) {
|
1528
|
+
hide(el);
|
1529
|
+
tooltips_nodeList["delete"](el);
|
1530
|
+
}
|
1531
|
+
};
|
1532
|
+
/**
|
1533
|
+
* 初始化配置
|
1534
|
+
* @returns tooltips配置
|
1535
|
+
*/
|
1536
|
+
function initOptions() {
|
1537
|
+
var defaultOpts = {
|
1538
|
+
arrow: true,
|
1539
|
+
disabled: false,
|
1540
|
+
trigger: 'hover',
|
1541
|
+
theme: 'dark',
|
1542
|
+
content: '',
|
1543
|
+
showOnInit: false,
|
1544
|
+
placement: 'top',
|
1545
|
+
distance: 8,
|
1546
|
+
extCls: '',
|
1547
|
+
sameWidth: false,
|
1548
|
+
delay: 0,
|
1549
|
+
onShow: function onShow() {},
|
1550
|
+
onHide: function onHide() {}
|
1551
|
+
};
|
1552
|
+
return defaultOpts;
|
444
1553
|
}
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
1554
|
+
/**
|
1555
|
+
* 获取配置
|
1556
|
+
* @returns tooltips配置
|
1557
|
+
*/
|
1558
|
+
function getOpts(binding) {
|
1559
|
+
var opts = initOptions();
|
1560
|
+
if (_typeof(binding.value) === 'object') {
|
1561
|
+
Object.assign(opts, binding.value);
|
1562
|
+
} else {
|
1563
|
+
opts.content = binding.value;
|
454
1564
|
}
|
455
|
-
return
|
1565
|
+
return opts;
|
456
1566
|
}
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
1567
|
+
/**
|
1568
|
+
* 创建tooltips DOM
|
1569
|
+
* @param opts
|
1570
|
+
* @returns
|
1571
|
+
*/
|
1572
|
+
function renderContext(value, content) {
|
1573
|
+
if (typeof value === 'string') {
|
1574
|
+
content.innerText = value;
|
1575
|
+
} else {
|
1576
|
+
// 如果 content 是 Vue 组件的实例,则挂载它
|
1577
|
+
var container = document.createElement('div');
|
1578
|
+
var vnode = (0,external_vue_namespaceObject.h)(value);
|
1579
|
+
(0,external_vue_namespaceObject.render)(vnode, container);
|
1580
|
+
content.innerHTML = container.innerHTML;
|
1581
|
+
}
|
463
1582
|
}
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
1583
|
+
function renderContent(opts) {
|
1584
|
+
var value = opts.content,
|
1585
|
+
hasArrow = opts.arrow,
|
1586
|
+
theme = opts.theme,
|
1587
|
+
extCls = opts.extCls;
|
1588
|
+
var isLight = theme === 'light';
|
1589
|
+
var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
|
1590
|
+
var content = document.createElement('div');
|
1591
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
1592
|
+
content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
|
1593
|
+
content.innerText = value;
|
1594
|
+
content.style.zIndex = String(zIndex);
|
1595
|
+
renderContext(value, content);
|
1596
|
+
if (hasArrow) {
|
1597
|
+
var arrow = renderArrow();
|
1598
|
+
content.appendChild(arrow);
|
1599
|
+
}
|
1600
|
+
return content;
|
1601
|
+
}
|
1602
|
+
/**
|
1603
|
+
* 渲染箭头dom
|
1604
|
+
* @returns arrow DOM
|
1605
|
+
*/
|
1606
|
+
function renderArrow() {
|
1607
|
+
var arrow = document.createElement('div');
|
1608
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
1609
|
+
arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
|
1610
|
+
arrow.setAttribute('data-popper-arrow', '');
|
1611
|
+
return arrow;
|
1612
|
+
}
|
1613
|
+
/**
|
1614
|
+
* 创建popper实例
|
1615
|
+
* @param el
|
1616
|
+
* @param popper
|
1617
|
+
* @returns popper实例
|
1618
|
+
*/
|
1619
|
+
function createPopperInstance(el, popper) {
|
1620
|
+
var _nodeList$get = tooltips_nodeList.get(el),
|
1621
|
+
opts = _nodeList$get.opts;
|
1622
|
+
var placement = opts.placement,
|
1623
|
+
distance = opts.distance,
|
1624
|
+
sameWidth = opts.sameWidth;
|
1625
|
+
var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
|
1626
|
+
placement: placement,
|
1627
|
+
modifiers: [{
|
1628
|
+
name: 'offset',
|
1629
|
+
options: {
|
1630
|
+
offset: [0, distance]
|
1631
|
+
}
|
1632
|
+
}, {
|
1633
|
+
name: 'arrow',
|
1634
|
+
options: {
|
1635
|
+
padding: 5
|
1636
|
+
}
|
1637
|
+
}].concat(_toConsumableArray(sameWidth ? [{
|
1638
|
+
name: 'sameWidth',
|
1639
|
+
enabled: true,
|
1640
|
+
phase: 'beforeWrite',
|
1641
|
+
requires: ['computeStyles'],
|
1642
|
+
fn: function fn(_ref) {
|
1643
|
+
var state = _ref.state;
|
1644
|
+
state.styles.popper.width = "".concat(state.rects.reference.width, "px");
|
1645
|
+
},
|
1646
|
+
effect: function effect(_ref2) {
|
1647
|
+
var state = _ref2.state;
|
1648
|
+
state.elements.popper.style.overflowWrap = 'break-word';
|
1649
|
+
state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
|
1650
|
+
}
|
1651
|
+
}] : []))
|
1652
|
+
});
|
1653
|
+
return popperInstance;
|
1654
|
+
}
|
1655
|
+
/**
|
1656
|
+
* 显示
|
1657
|
+
* @param el
|
1658
|
+
*/
|
1659
|
+
function show(el) {
|
1660
|
+
var _nodeList$get2 = tooltips_nodeList.get(el),
|
1661
|
+
popper = _nodeList$get2.popper,
|
1662
|
+
opts = _nodeList$get2.opts;
|
1663
|
+
var disabled = opts.disabled,
|
1664
|
+
content = opts.content,
|
1665
|
+
hasArrow = opts.arrow,
|
1666
|
+
onShow = opts.onShow,
|
1667
|
+
boundary = opts.boundary,
|
1668
|
+
_opts$modifiers = opts.modifiers,
|
1669
|
+
modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
|
1670
|
+
if (disabled) return;
|
1671
|
+
renderContext(content, popper);
|
1672
|
+
if (hasArrow) {
|
1673
|
+
var arrow = renderArrow();
|
1674
|
+
popper.appendChild(arrow);
|
1675
|
+
}
|
1676
|
+
var container = document.body;
|
1677
|
+
if (boundary) {
|
1678
|
+
if (boundary === 'parent') {
|
1679
|
+
container = el.parentElement;
|
1680
|
+
} else if (boundary instanceof HTMLElement) {
|
1681
|
+
container = boundary;
|
1682
|
+
}
|
1683
|
+
}
|
1684
|
+
container.appendChild(popper);
|
1685
|
+
var popperInstance = createPopperInstance(el, popper);
|
1686
|
+
onShow();
|
1687
|
+
// Make the tooltip visible
|
1688
|
+
popper.setAttribute('data-show', '');
|
1689
|
+
// Enable the event listeners
|
1690
|
+
popperInstance.setOptions(function (options) {
|
1691
|
+
return _objectSpread(_objectSpread({}, options), {}, {
|
1692
|
+
modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
|
1693
|
+
name: 'eventListeners',
|
1694
|
+
enabled: true
|
1695
|
+
}])
|
474
1696
|
});
|
475
|
-
}
|
476
|
-
|
1697
|
+
});
|
1698
|
+
// Update its position
|
1699
|
+
popperInstance.forceUpdate();
|
1700
|
+
tooltips_nodeList.get(el).popperInstance = popperInstance;
|
1701
|
+
}
|
1702
|
+
/**
|
1703
|
+
* 隐藏
|
1704
|
+
* @param el
|
1705
|
+
*/
|
1706
|
+
function hide(el) {
|
1707
|
+
if (!tooltips_nodeList.get(el)) return;
|
1708
|
+
var _nodeList$get3 = tooltips_nodeList.get(el),
|
1709
|
+
popper = _nodeList$get3.popper,
|
1710
|
+
popperInstance = _nodeList$get3.popperInstance,
|
1711
|
+
opts = _nodeList$get3.opts;
|
1712
|
+
var onHide = opts.onHide;
|
1713
|
+
if (popper && document.body.contains(popper)) {
|
1714
|
+
var _popper$parentNode;
|
1715
|
+
popper.removeAttribute('data-show');
|
1716
|
+
popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
|
1717
|
+
popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
|
1718
|
+
onHide();
|
477
1719
|
}
|
478
|
-
return obj;
|
479
1720
|
}
|
480
|
-
|
481
|
-
|
482
|
-
var
|
483
|
-
|
484
|
-
|
485
|
-
var
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
var
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
1721
|
+
/* harmony default export */ const src_tooltips = ((/* unused pure expression or super */ null && (tooltips)));
|
1722
|
+
;// external "../loading"
|
1723
|
+
var external_loading_x = (y) => {
|
1724
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1725
|
+
}
|
1726
|
+
var external_loading_y = (x) => (() => (x))
|
1727
|
+
const external_loading_namespaceObject = external_loading_x({ });
|
1728
|
+
;// external "../overflow-title"
|
1729
|
+
var external_overflow_title_x = (y) => {
|
1730
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1731
|
+
}
|
1732
|
+
var external_overflow_title_y = (x) => (() => (x))
|
1733
|
+
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
1734
|
+
;// ../../packages/directives/src/index.ts
|
1735
|
+
/*
|
1736
|
+
* Tencent is pleased to support the open source community by making
|
1737
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1738
|
+
*
|
1739
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1740
|
+
*
|
1741
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1742
|
+
*
|
1743
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1744
|
+
*
|
1745
|
+
* ---------------------------------------------------
|
1746
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1747
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1748
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1749
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1750
|
+
*
|
1751
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1752
|
+
* the Software.
|
1753
|
+
*
|
1754
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1755
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1756
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1757
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1758
|
+
* IN THE SOFTWARE.
|
1759
|
+
*/
|
1760
|
+
|
1761
|
+
|
1762
|
+
|
1763
|
+
|
1764
|
+
|
1765
|
+
|
1766
|
+
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
1767
|
+
;// external "../icon"
|
1768
|
+
var icon_x = (y) => {
|
1769
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1770
|
+
}
|
1771
|
+
var icon_y = (x) => (() => (x))
|
1772
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close), ["Error"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error), ["ExclamationCircleShape"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape), ["Search"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search) });
|
1773
|
+
;// ../../node_modules/@blueking/fork-resize-detector/esm/index.js
|
497
1774
|
var raf = null;
|
498
1775
|
function requestAnimationFrame (callback) {
|
499
1776
|
if (!raf) {
|
@@ -809,11 +2086,11 @@ function resetTriggers (elem) {
|
|
809
2086
|
|
810
2087
|
|
811
2088
|
|
812
|
-
;//
|
2089
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
813
2090
|
function _arrayWithHoles(arr) {
|
814
2091
|
if (Array.isArray(arr)) return arr;
|
815
2092
|
}
|
816
|
-
;//
|
2093
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
817
2094
|
function _iterableToArrayLimit(r, l) {
|
818
2095
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
819
2096
|
if (null != t) {
|
@@ -841,35 +2118,19 @@ function _iterableToArrayLimit(r, l) {
|
|
841
2118
|
return a;
|
842
2119
|
}
|
843
2120
|
}
|
844
|
-
;//
|
845
|
-
function _arrayLikeToArray(arr, len) {
|
846
|
-
if (len == null || len > arr.length) len = arr.length;
|
847
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
848
|
-
return arr2;
|
849
|
-
}
|
850
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
851
|
-
|
852
|
-
function _unsupportedIterableToArray(o, minLen) {
|
853
|
-
if (!o) return;
|
854
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
855
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
856
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
857
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
858
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
859
|
-
}
|
860
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
2121
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
861
2122
|
function _nonIterableRest() {
|
862
2123
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
863
2124
|
}
|
864
|
-
;//
|
2125
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
865
2126
|
|
866
2127
|
|
867
2128
|
|
868
2129
|
|
869
2130
|
function _slicedToArray(arr, i) {
|
870
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
2131
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
871
2132
|
}
|
872
|
-
;//
|
2133
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
873
2134
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
874
2135
|
try {
|
875
2136
|
var info = gen[key](arg);
|
@@ -901,60 +2162,51 @@ function _asyncToGenerator(fn) {
|
|
901
2162
|
};
|
902
2163
|
}
|
903
2164
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
904
|
-
var regenerator = __webpack_require__(
|
2165
|
+
var regenerator = __webpack_require__(5799);
|
905
2166
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
906
|
-
;//
|
907
|
-
var popover_x = y => {
|
908
|
-
var
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
2167
|
+
;// external "../popover"
|
2168
|
+
var popover_x = (y) => {
|
2169
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2170
|
+
}
|
2171
|
+
var popover_y = (x) => (() => (x))
|
2172
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"]) });
|
2173
|
+
;// external "../popover/popover.less"
|
2174
|
+
var popover_less_x = (y) => {
|
2175
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2176
|
+
}
|
2177
|
+
var popover_less_y = (x) => (() => (x))
|
913
2178
|
const popover_less_namespaceObject = popover_less_x({ });
|
914
|
-
;//
|
915
|
-
var checkbox_x = y => {
|
916
|
-
var
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
2179
|
+
;// external "../checkbox"
|
2180
|
+
var checkbox_x = (y) => {
|
2181
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2182
|
+
}
|
2183
|
+
var checkbox_y = (x) => (() => (x))
|
2184
|
+
const checkbox_namespaceObject = checkbox_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"]) });
|
2185
|
+
;// external "../checkbox/checkbox.less"
|
2186
|
+
var checkbox_less_x = (y) => {
|
2187
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2188
|
+
}
|
2189
|
+
var checkbox_less_y = (x) => (() => (x))
|
921
2190
|
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
922
|
-
;//
|
923
|
-
var radio_x = y => {
|
924
|
-
var
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
2191
|
+
;// external "../radio"
|
2192
|
+
var radio_x = (y) => {
|
2193
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2194
|
+
}
|
2195
|
+
var radio_y = (x) => (() => (x))
|
2196
|
+
const radio_namespaceObject = radio_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_radio_d36f24cf__["default"]) });
|
2197
|
+
;// external "../radio/radio.less"
|
2198
|
+
var radio_less_x = (y) => {
|
2199
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2200
|
+
}
|
2201
|
+
var radio_less_y = (x) => (() => (x))
|
929
2202
|
const radio_less_namespaceObject = radio_less_x({ });
|
930
|
-
;//
|
931
|
-
|
932
|
-
function _arrayWithoutHoles(arr) {
|
933
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
934
|
-
}
|
935
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
936
|
-
function _iterableToArray(iter) {
|
937
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
938
|
-
}
|
939
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
940
|
-
function _nonIterableSpread() {
|
941
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
942
|
-
}
|
943
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
function _toConsumableArray(arr) {
|
949
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
950
|
-
}
|
951
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
2203
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
952
2204
|
function _classCallCheck(instance, Constructor) {
|
953
2205
|
if (!(instance instanceof Constructor)) {
|
954
2206
|
throw new TypeError("Cannot call a class as a function");
|
955
2207
|
}
|
956
2208
|
}
|
957
|
-
;//
|
2209
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
958
2210
|
|
959
2211
|
function _defineProperties(target, props) {
|
960
2212
|
for (var i = 0; i < props.length; i++) {
|
@@ -973,7 +2225,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
973
2225
|
});
|
974
2226
|
return Constructor;
|
975
2227
|
}
|
976
|
-
;//
|
2228
|
+
;// ../../packages/search-select/src/utils.ts
|
977
2229
|
|
978
2230
|
|
979
2231
|
|
@@ -1237,7 +2489,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1237
2489
|
}]);
|
1238
2490
|
return SelectedItem;
|
1239
2491
|
}();
|
1240
|
-
;//
|
2492
|
+
;// ../../packages/search-select/src/menu.tsx
|
1241
2493
|
|
1242
2494
|
/*
|
1243
2495
|
* Tencent is pleased to support the open source community by making
|
@@ -1479,17 +2731,17 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1479
2731
|
})]), getListMenu()]);
|
1480
2732
|
}
|
1481
2733
|
}));
|
1482
|
-
;//
|
2734
|
+
;// ../../packages/search-select/src/input.tsx
|
1483
2735
|
|
1484
2736
|
|
1485
2737
|
|
1486
2738
|
|
1487
|
-
function
|
2739
|
+
function input_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = input_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
1488
2740
|
function input_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return input_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return input_arrayLikeToArray(o, minLen); }
|
1489
2741
|
function input_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
1490
2742
|
|
1491
|
-
function
|
1492
|
-
function
|
2743
|
+
function input_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
2744
|
+
function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? input_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : input_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1493
2745
|
/*
|
1494
2746
|
* Tencent is pleased to support the open source community by making
|
1495
2747
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1526,7 +2778,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1526
2778
|
/* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
|
1527
2779
|
name: 'SearchSelectInput',
|
1528
2780
|
directives: {
|
1529
|
-
clickoutside:
|
2781
|
+
clickoutside: clickoutside
|
1530
2782
|
},
|
1531
2783
|
props: {
|
1532
2784
|
data: {
|
@@ -1914,7 +3166,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1914
3166
|
_context2.next = 18;
|
1915
3167
|
break;
|
1916
3168
|
}
|
1917
|
-
selectedItem = new SelectedItem(
|
3169
|
+
selectedItem = new SelectedItem(input_objectSpread(input_objectSpread({}, item), {}, {
|
1918
3170
|
id: (_item$realId = item.realId) !== null && _item$realId !== void 0 ? _item$realId : item.id
|
1919
3171
|
}), type);
|
1920
3172
|
selectedItem.addValues(item.value.name, false);
|
@@ -2127,7 +3379,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2127
3379
|
return !item.isSelected;
|
2128
3380
|
}).slice();
|
2129
3381
|
} else {
|
2130
|
-
_iterator =
|
3382
|
+
_iterator = input_createForOfIteratorHelper(props.data.filter(function (item) {
|
2131
3383
|
return !item.isSelected;
|
2132
3384
|
}));
|
2133
3385
|
try {
|
@@ -2137,11 +3389,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2137
3389
|
if (isMatched) {
|
2138
3390
|
list.push(item);
|
2139
3391
|
filterList = [];
|
2140
|
-
_iterator2 =
|
3392
|
+
_iterator2 = input_createForOfIteratorHelper(item.children || []);
|
2141
3393
|
try {
|
2142
3394
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
2143
3395
|
child = _step2.value;
|
2144
|
-
filterList.push(
|
3396
|
+
filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
|
2145
3397
|
realId: item.id,
|
2146
3398
|
id: (0,shared_namespaceObject.random)(10),
|
2147
3399
|
value: child
|
@@ -2153,7 +3405,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2153
3405
|
_iterator2.f();
|
2154
3406
|
}
|
2155
3407
|
if (!filterList.length && !item.onlyRecommendChildren) {
|
2156
|
-
filterList.push(
|
3408
|
+
filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
|
2157
3409
|
realId: item.id,
|
2158
3410
|
id: (0,shared_namespaceObject.random)(10),
|
2159
3411
|
value: {
|
@@ -2165,12 +3417,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2165
3417
|
(_list = list).push.apply(_list, filterList);
|
2166
3418
|
} else {
|
2167
3419
|
_filterList = [];
|
2168
|
-
_iterator3 =
|
3420
|
+
_iterator3 = input_createForOfIteratorHelper(item.children || []);
|
2169
3421
|
try {
|
2170
3422
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
2171
3423
|
_child = _step3.value;
|
2172
3424
|
if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
|
2173
|
-
_filterList.push(
|
3425
|
+
_filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
|
2174
3426
|
realId: item.id,
|
2175
3427
|
id: (0,shared_namespaceObject.random)(10),
|
2176
3428
|
value: _child
|
@@ -2183,7 +3435,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2183
3435
|
_iterator3.f();
|
2184
3436
|
}
|
2185
3437
|
if (!_filterList.length && !item.onlyRecommendChildren) {
|
2186
|
-
_filterList.push(
|
3438
|
+
_filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
|
2187
3439
|
value: {
|
2188
3440
|
id: keyword.value,
|
2189
3441
|
name: keyword.value
|
@@ -2250,7 +3502,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2250
3502
|
}
|
2251
3503
|
return _context6.abrupt("return");
|
2252
3504
|
case 7:
|
2253
|
-
emit('add', formatItem || new SelectedItem(
|
3505
|
+
emit('add', formatItem || new SelectedItem(input_objectSpread({}, valueList[0]), 'text'));
|
2254
3506
|
keyword.value = '';
|
2255
3507
|
setMenuList();
|
2256
3508
|
return _context6.abrupt("return", true);
|
@@ -2359,7 +3611,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2359
3611
|
return item.name === key.trim();
|
2360
3612
|
});
|
2361
3613
|
if (selectedItem) {
|
2362
|
-
var item = new SelectedItem(
|
3614
|
+
var item = new SelectedItem(input_objectSpread({}, selectedItem), 'default');
|
2363
3615
|
item.addValues(value);
|
2364
3616
|
return item;
|
2365
3617
|
}
|
@@ -2581,7 +3833,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2581
3833
|
});
|
2582
3834
|
}
|
2583
3835
|
}));
|
2584
|
-
;//
|
3836
|
+
;// ../../packages/search-select/src/selected.tsx
|
2585
3837
|
|
2586
3838
|
|
2587
3839
|
function selected_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -2748,7 +4000,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2748
4000
|
})]);
|
2749
4001
|
}
|
2750
4002
|
}));
|
2751
|
-
;//
|
4003
|
+
;// ../../packages/search-select/src/search-select.tsx
|
2752
4004
|
|
2753
4005
|
|
2754
4006
|
function search_select_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -2847,7 +4099,7 @@ var SearchSelectProps = {
|
|
2847
4099
|
/* harmony default export */ const search_select = ((0,external_vue_namespaceObject.defineComponent)({
|
2848
4100
|
name: 'SearchSelect',
|
2849
4101
|
directives: {
|
2850
|
-
clickoutside:
|
4102
|
+
clickoutside: clickoutside
|
2851
4103
|
},
|
2852
4104
|
props: SearchSelectProps,
|
2853
4105
|
emits: ['update:modelValue', 'search', 'selectKey'],
|
@@ -3202,7 +4454,7 @@ var SearchSelectProps = {
|
|
3202
4454
|
}, null), this.validateStr || ''])])]);
|
3203
4455
|
}
|
3204
4456
|
}));
|
3205
|
-
;//
|
4457
|
+
;// ../../packages/search-select/src/index.ts
|
3206
4458
|
/*
|
3207
4459
|
* Tencent is pleased to support the open source community by making
|
3208
4460
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3233,8 +4485,6 @@ var SearchSelectProps = {
|
|
3233
4485
|
var BkSearchSelect = (0,shared_namespaceObject.withInstall)(search_select);
|
3234
4486
|
/* harmony default export */ const src = (BkSearchSelect);
|
3235
4487
|
|
3236
|
-
})();
|
3237
|
-
|
3238
4488
|
var __webpack_exports__BkSearchSelect = __webpack_exports__.BkSearchSelect;
|
3239
4489
|
var __webpack_exports__default = __webpack_exports__["default"];
|
3240
4490
|
export { __webpack_exports__BkSearchSelect as BkSearchSelect, __webpack_exports__default as default };
|