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
package/lib/select/index.js
CHANGED
@@ -7,7 +7,10 @@ import "../checkbox/checkbox.less";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
|
10
|
-
import * as
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
12
|
+
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
13
|
+
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
11
14
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__ from "../input";
|
12
15
|
import "../input/input.less";
|
13
16
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__ from "../loading";
|
@@ -23,10 +26,356 @@ import "../tag/tag.less";
|
|
23
26
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
24
27
|
/******/ var __webpack_modules__ = ({
|
25
28
|
|
26
|
-
/***/
|
29
|
+
/***/ 1043:
|
30
|
+
/***/ ((module) => {
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Copyright (c) 2015, Facebook, Inc.
|
34
|
+
* All rights reserved.
|
35
|
+
*
|
36
|
+
* This source code is licensed under the BSD-style license found in the
|
37
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
38
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
39
|
+
*
|
40
|
+
* @providesModule ExecutionEnvironment
|
41
|
+
*/
|
42
|
+
|
43
|
+
/*jslint evil: true */
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
var canUseDOM = !!(
|
48
|
+
typeof window !== 'undefined' &&
|
49
|
+
window.document &&
|
50
|
+
window.document.createElement
|
51
|
+
);
|
52
|
+
|
53
|
+
/**
|
54
|
+
* Simple, lightweight module assisting with the detection and context of
|
55
|
+
* Worker. Helps avoid circular dependencies and allows code to reason about
|
56
|
+
* whether or not they are in a Worker, even if they never include the main
|
57
|
+
* `ReactWorker` dependency.
|
58
|
+
*/
|
59
|
+
var ExecutionEnvironment = {
|
60
|
+
|
61
|
+
canUseDOM: canUseDOM,
|
62
|
+
|
63
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
64
|
+
|
65
|
+
canUseEventListeners:
|
66
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
67
|
+
|
68
|
+
canUseViewport: canUseDOM && !!window.screen,
|
69
|
+
|
70
|
+
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
71
|
+
|
72
|
+
};
|
73
|
+
|
74
|
+
module.exports = ExecutionEnvironment;
|
75
|
+
|
76
|
+
|
77
|
+
/***/ }),
|
78
|
+
|
79
|
+
/***/ 2586:
|
80
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Copyright 2013-2015, Facebook, Inc.
|
84
|
+
* All rights reserved.
|
85
|
+
*
|
86
|
+
* This source code is licensed under the BSD-style license found in the
|
87
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
88
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
89
|
+
*
|
90
|
+
* @providesModule isEventSupported
|
91
|
+
*/
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
var ExecutionEnvironment = __webpack_require__(1043);
|
96
|
+
|
97
|
+
var useHasFeature;
|
98
|
+
if (ExecutionEnvironment.canUseDOM) {
|
99
|
+
useHasFeature =
|
100
|
+
document.implementation &&
|
101
|
+
document.implementation.hasFeature &&
|
102
|
+
// always returns true in newer browsers as per the standard.
|
103
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
104
|
+
document.implementation.hasFeature('', '') !== true;
|
105
|
+
}
|
106
|
+
|
107
|
+
/**
|
108
|
+
* Checks if an event is supported in the current execution environment.
|
109
|
+
*
|
110
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
111
|
+
* `reset`, `load`, `error`, and `select`.
|
112
|
+
*
|
113
|
+
* Borrows from Modernizr.
|
114
|
+
*
|
115
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
116
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
117
|
+
* @return {boolean} True if the event is supported.
|
118
|
+
* @internal
|
119
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
120
|
+
*/
|
121
|
+
function isEventSupported(eventNameSuffix, capture) {
|
122
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
123
|
+
capture && !('addEventListener' in document)) {
|
124
|
+
return false;
|
125
|
+
}
|
126
|
+
|
127
|
+
var eventName = 'on' + eventNameSuffix;
|
128
|
+
var isSupported = eventName in document;
|
129
|
+
|
130
|
+
if (!isSupported) {
|
131
|
+
var element = document.createElement('div');
|
132
|
+
element.setAttribute(eventName, 'return;');
|
133
|
+
isSupported = typeof element[eventName] === 'function';
|
134
|
+
}
|
135
|
+
|
136
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
137
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
138
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
139
|
+
}
|
140
|
+
|
141
|
+
return isSupported;
|
142
|
+
}
|
143
|
+
|
144
|
+
module.exports = isEventSupported;
|
145
|
+
|
146
|
+
|
147
|
+
/***/ }),
|
148
|
+
|
149
|
+
/***/ 4319:
|
150
|
+
/***/ ((module) => {
|
151
|
+
|
152
|
+
function _typeof(o) {
|
153
|
+
"@babel/helpers - typeof";
|
154
|
+
|
155
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
156
|
+
return typeof o;
|
157
|
+
} : function (o) {
|
158
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
159
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
160
|
+
}
|
161
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
162
|
+
|
163
|
+
/***/ }),
|
164
|
+
|
165
|
+
/***/ 5022:
|
27
166
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
28
167
|
|
29
|
-
|
168
|
+
/**
|
169
|
+
* Copyright (c) 2015, Facebook, Inc.
|
170
|
+
* All rights reserved.
|
171
|
+
*
|
172
|
+
* This source code is licensed under the BSD-style license found in the
|
173
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
174
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
175
|
+
*
|
176
|
+
* @providesModule normalizeWheel
|
177
|
+
* @typechecks
|
178
|
+
*/
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
183
|
+
|
184
|
+
var isEventSupported = __webpack_require__(2586);
|
185
|
+
|
186
|
+
|
187
|
+
// Reasonable defaults
|
188
|
+
var PIXEL_STEP = 10;
|
189
|
+
var LINE_HEIGHT = 40;
|
190
|
+
var PAGE_HEIGHT = 800;
|
191
|
+
|
192
|
+
/**
|
193
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
194
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
195
|
+
* your questions.
|
196
|
+
*
|
197
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
198
|
+
* like your bestest friend. * hugs *
|
199
|
+
*
|
200
|
+
* As of today, there are 4 DOM event types you can listen to:
|
201
|
+
*
|
202
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
203
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
204
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
205
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
206
|
+
*
|
207
|
+
* So what to do? The is the best:
|
208
|
+
*
|
209
|
+
* normalizeWheel.getEventType();
|
210
|
+
*
|
211
|
+
* In your event callback, use this code to get sane interpretation of the
|
212
|
+
* deltas. This code will return an object with properties:
|
213
|
+
*
|
214
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
215
|
+
* spinY -- " - y plane
|
216
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
217
|
+
* pixelY -- " - y plane
|
218
|
+
*
|
219
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
220
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
221
|
+
* significantly on different platforms and browsers, forgetting that you can
|
222
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
223
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
224
|
+
* linear speed or acceleration.
|
225
|
+
*
|
226
|
+
* This code does its best to normalize the deltas for you:
|
227
|
+
*
|
228
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
229
|
+
* dragged). This is super useful for zoom support where you want to
|
230
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
231
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
232
|
+
* resolve a single slow step on a wheel to 1.
|
233
|
+
*
|
234
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
235
|
+
* get the crazy differences between browsers, but at least it'll be in
|
236
|
+
* pixels!
|
237
|
+
*
|
238
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
239
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
240
|
+
* This matches the newer 'wheel' event.
|
241
|
+
*
|
242
|
+
* Why are there spinX, spinY (or pixels)?
|
243
|
+
*
|
244
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
245
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
246
|
+
*
|
247
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
248
|
+
*
|
249
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
250
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
251
|
+
* you know.
|
252
|
+
*
|
253
|
+
* Implementation info:
|
254
|
+
*
|
255
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
256
|
+
* average mouse:
|
257
|
+
*
|
258
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
259
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
260
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
261
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
262
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
263
|
+
*
|
264
|
+
* On the trackpad:
|
265
|
+
*
|
266
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
267
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
268
|
+
*
|
269
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
270
|
+
* also missing delta values.
|
271
|
+
*
|
272
|
+
* The 'wheel' event is more standard:
|
273
|
+
*
|
274
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
275
|
+
*
|
276
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
277
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
278
|
+
* backward compatibility with older events. Those other values help us
|
279
|
+
* better normalize spin speed. Example of what the browsers provide:
|
280
|
+
*
|
281
|
+
* | event.wheelDelta | event.detail
|
282
|
+
* ------------------+------------------+--------------
|
283
|
+
* Safari v5/OS X | -120 | 0
|
284
|
+
* Safari v5/Win7 | -120 | 0
|
285
|
+
* Chrome v17/OS X | -120 | 0
|
286
|
+
* Chrome v17/Win7 | -120 | 0
|
287
|
+
* IE9/Win7 | -120 | undefined
|
288
|
+
* Firefox v4/OS X | undefined | 1
|
289
|
+
* Firefox v4/Win7 | undefined | 3
|
290
|
+
*
|
291
|
+
*/
|
292
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
293
|
+
var sX = 0, sY = 0, // spinX, spinY
|
294
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
295
|
+
|
296
|
+
// Legacy
|
297
|
+
if ('detail' in event) { sY = event.detail; }
|
298
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
299
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
300
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
301
|
+
|
302
|
+
// side scrolling on FF with DOMMouseScroll
|
303
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
304
|
+
sX = sY;
|
305
|
+
sY = 0;
|
306
|
+
}
|
307
|
+
|
308
|
+
pX = sX * PIXEL_STEP;
|
309
|
+
pY = sY * PIXEL_STEP;
|
310
|
+
|
311
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
312
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
313
|
+
|
314
|
+
if ((pX || pY) && event.deltaMode) {
|
315
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
316
|
+
pX *= LINE_HEIGHT;
|
317
|
+
pY *= LINE_HEIGHT;
|
318
|
+
} else { // delta in PAGE units
|
319
|
+
pX *= PAGE_HEIGHT;
|
320
|
+
pY *= PAGE_HEIGHT;
|
321
|
+
}
|
322
|
+
}
|
323
|
+
|
324
|
+
// Fall-back if spin cannot be determined
|
325
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
326
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
327
|
+
|
328
|
+
return { spinX : sX,
|
329
|
+
spinY : sY,
|
330
|
+
pixelX : pX,
|
331
|
+
pixelY : pY };
|
332
|
+
}
|
333
|
+
|
334
|
+
|
335
|
+
/**
|
336
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
337
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
338
|
+
* 'wheel' event, making spin speed determination impossible.
|
339
|
+
*/
|
340
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
341
|
+
return (UserAgent_DEPRECATED.firefox())
|
342
|
+
? 'DOMMouseScroll'
|
343
|
+
: (isEventSupported('wheel'))
|
344
|
+
? 'wheel'
|
345
|
+
: 'mousewheel';
|
346
|
+
};
|
347
|
+
|
348
|
+
module.exports = normalizeWheel;
|
349
|
+
|
350
|
+
|
351
|
+
/***/ }),
|
352
|
+
|
353
|
+
/***/ 5799:
|
354
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
355
|
+
|
356
|
+
// TODO(Babel 8): Remove this file.
|
357
|
+
|
358
|
+
var runtime = __webpack_require__(7048)();
|
359
|
+
module.exports = runtime;
|
360
|
+
|
361
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
362
|
+
try {
|
363
|
+
regeneratorRuntime = runtime;
|
364
|
+
} catch (accidentalStrictMode) {
|
365
|
+
if (typeof globalThis === "object") {
|
366
|
+
globalThis.regeneratorRuntime = runtime;
|
367
|
+
} else {
|
368
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
369
|
+
}
|
370
|
+
}
|
371
|
+
|
372
|
+
|
373
|
+
/***/ }),
|
374
|
+
|
375
|
+
/***/ 7048:
|
376
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
377
|
+
|
378
|
+
var _typeof = (__webpack_require__(4319)["default"]);
|
30
379
|
function _regeneratorRuntime() {
|
31
380
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
32
381
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
@@ -333,41 +682,300 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
333
682
|
|
334
683
|
/***/ }),
|
335
684
|
|
336
|
-
/***/
|
685
|
+
/***/ 7416:
|
337
686
|
/***/ ((module) => {
|
338
687
|
|
339
|
-
|
340
|
-
|
688
|
+
/**
|
689
|
+
* Copyright 2004-present Facebook. All Rights Reserved.
|
690
|
+
*
|
691
|
+
* @providesModule UserAgent_DEPRECATED
|
692
|
+
*/
|
341
693
|
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
694
|
+
/**
|
695
|
+
* Provides entirely client-side User Agent and OS detection. You should prefer
|
696
|
+
* the non-deprecated UserAgent module when possible, which exposes our
|
697
|
+
* authoritative server-side PHP-based detection to the client.
|
698
|
+
*
|
699
|
+
* Usage is straightforward:
|
700
|
+
*
|
701
|
+
* if (UserAgent_DEPRECATED.ie()) {
|
702
|
+
* // IE
|
703
|
+
* }
|
704
|
+
*
|
705
|
+
* You can also do version checks:
|
706
|
+
*
|
707
|
+
* if (UserAgent_DEPRECATED.ie() >= 7) {
|
708
|
+
* // IE7 or better
|
709
|
+
* }
|
710
|
+
*
|
711
|
+
* The browser functions will return NaN if the browser does not match, so
|
712
|
+
* you can also do version compares the other way:
|
713
|
+
*
|
714
|
+
* if (UserAgent_DEPRECATED.ie() < 7) {
|
715
|
+
* // IE6 or worse
|
716
|
+
* }
|
717
|
+
*
|
718
|
+
* Note that the version is a float and may include a minor version number,
|
719
|
+
* so you should always use range operators to perform comparisons, not
|
720
|
+
* strict equality.
|
721
|
+
*
|
722
|
+
* **Note:** You should **strongly** prefer capability detection to browser
|
723
|
+
* version detection where it's reasonable:
|
724
|
+
*
|
725
|
+
* http://www.quirksmode.org/js/support.html
|
726
|
+
*
|
727
|
+
* Further, we have a large number of mature wrapper functions and classes
|
728
|
+
* which abstract away many browser irregularities. Check the documentation,
|
729
|
+
* grep for things, or ask on javascript@lists.facebook.com before writing yet
|
730
|
+
* another copy of "event || window.event".
|
731
|
+
*
|
732
|
+
*/
|
349
733
|
|
350
|
-
|
734
|
+
var _populated = false;
|
351
735
|
|
352
|
-
|
353
|
-
|
736
|
+
// Browsers
|
737
|
+
var _ie, _firefox, _opera, _webkit, _chrome;
|
354
738
|
|
355
|
-
//
|
739
|
+
// Actual IE browser for compatibility mode
|
740
|
+
var _ie_real_version;
|
356
741
|
|
357
|
-
|
358
|
-
|
742
|
+
// Platforms
|
743
|
+
var _osx, _windows, _linux, _android;
|
359
744
|
|
360
|
-
//
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
745
|
+
// Architectures
|
746
|
+
var _win64;
|
747
|
+
|
748
|
+
// Devices
|
749
|
+
var _iphone, _ipad, _native;
|
750
|
+
|
751
|
+
var _mobile;
|
752
|
+
|
753
|
+
function _populate() {
|
754
|
+
if (_populated) {
|
755
|
+
return;
|
756
|
+
}
|
757
|
+
|
758
|
+
_populated = true;
|
759
|
+
|
760
|
+
// To work around buggy JS libraries that can't handle multi-digit
|
761
|
+
// version numbers, Opera 10's user agent string claims it's Opera
|
762
|
+
// 9, then later includes a Version/X.Y field:
|
763
|
+
//
|
764
|
+
// Opera/9.80 (foo) Presto/2.2.15 Version/10.10
|
765
|
+
var uas = navigator.userAgent;
|
766
|
+
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);
|
767
|
+
var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
|
768
|
+
|
769
|
+
_iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
|
770
|
+
_ipad = /\b(iP[ao]d)/.exec(uas);
|
771
|
+
_android = /Android/i.exec(uas);
|
772
|
+
_native = /FBAN\/\w+;/i.exec(uas);
|
773
|
+
_mobile = /Mobile/i.exec(uas);
|
774
|
+
|
775
|
+
// Note that the IE team blog would have you believe you should be checking
|
776
|
+
// for 'Win64; x64'. But MSDN then reveals that you can actually be coming
|
777
|
+
// from either x64 or ia64; so ultimately, you should just check for Win64
|
778
|
+
// as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
|
779
|
+
// Windows will send 'WOW64' instead.
|
780
|
+
_win64 = !!(/Win64/.exec(uas));
|
781
|
+
|
782
|
+
if (agent) {
|
783
|
+
_ie = agent[1] ? parseFloat(agent[1]) : (
|
784
|
+
agent[5] ? parseFloat(agent[5]) : NaN);
|
785
|
+
// IE compatibility mode
|
786
|
+
if (_ie && document && document.documentMode) {
|
787
|
+
_ie = document.documentMode;
|
788
|
+
}
|
789
|
+
// grab the "true" ie version from the trident token if available
|
790
|
+
var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
|
791
|
+
_ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
|
792
|
+
|
793
|
+
_firefox = agent[2] ? parseFloat(agent[2]) : NaN;
|
794
|
+
_opera = agent[3] ? parseFloat(agent[3]) : NaN;
|
795
|
+
_webkit = agent[4] ? parseFloat(agent[4]) : NaN;
|
796
|
+
if (_webkit) {
|
797
|
+
// We do not add the regexp to the above test, because it will always
|
798
|
+
// match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
|
799
|
+
// the userAgent string.
|
800
|
+
agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
|
801
|
+
_chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
|
802
|
+
} else {
|
803
|
+
_chrome = NaN;
|
804
|
+
}
|
366
805
|
} else {
|
367
|
-
|
806
|
+
_ie = _firefox = _opera = _chrome = _webkit = NaN;
|
807
|
+
}
|
808
|
+
|
809
|
+
if (os) {
|
810
|
+
if (os[1]) {
|
811
|
+
// Detect OS X version. If no version number matches, set _osx to true.
|
812
|
+
// Version examples: 10, 10_6_1, 10.7
|
813
|
+
// Parses version number as a float, taking only first two sets of
|
814
|
+
// digits. If only one set of digits is found, returns just the major
|
815
|
+
// version number.
|
816
|
+
var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
|
817
|
+
|
818
|
+
_osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
|
819
|
+
} else {
|
820
|
+
_osx = false;
|
821
|
+
}
|
822
|
+
_windows = !!os[2];
|
823
|
+
_linux = !!os[3];
|
824
|
+
} else {
|
825
|
+
_osx = _windows = _linux = false;
|
368
826
|
}
|
369
827
|
}
|
370
828
|
|
829
|
+
var UserAgent_DEPRECATED = {
|
830
|
+
|
831
|
+
/**
|
832
|
+
* Check if the UA is Internet Explorer.
|
833
|
+
*
|
834
|
+
*
|
835
|
+
* @return float|NaN Version number (if match) or NaN.
|
836
|
+
*/
|
837
|
+
ie: function() {
|
838
|
+
return _populate() || _ie;
|
839
|
+
},
|
840
|
+
|
841
|
+
/**
|
842
|
+
* Check if we're in Internet Explorer compatibility mode.
|
843
|
+
*
|
844
|
+
* @return bool true if in compatibility mode, false if
|
845
|
+
* not compatibility mode or not ie
|
846
|
+
*/
|
847
|
+
ieCompatibilityMode: function() {
|
848
|
+
return _populate() || (_ie_real_version > _ie);
|
849
|
+
},
|
850
|
+
|
851
|
+
|
852
|
+
/**
|
853
|
+
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
854
|
+
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
855
|
+
* this when we don't need it -- tracked by #601957.
|
856
|
+
*/
|
857
|
+
ie64: function() {
|
858
|
+
return UserAgent_DEPRECATED.ie() && _win64;
|
859
|
+
},
|
860
|
+
|
861
|
+
/**
|
862
|
+
* Check if the UA is Firefox.
|
863
|
+
*
|
864
|
+
*
|
865
|
+
* @return float|NaN Version number (if match) or NaN.
|
866
|
+
*/
|
867
|
+
firefox: function() {
|
868
|
+
return _populate() || _firefox;
|
869
|
+
},
|
870
|
+
|
871
|
+
|
872
|
+
/**
|
873
|
+
* Check if the UA is Opera.
|
874
|
+
*
|
875
|
+
*
|
876
|
+
* @return float|NaN Version number (if match) or NaN.
|
877
|
+
*/
|
878
|
+
opera: function() {
|
879
|
+
return _populate() || _opera;
|
880
|
+
},
|
881
|
+
|
882
|
+
|
883
|
+
/**
|
884
|
+
* Check if the UA is WebKit.
|
885
|
+
*
|
886
|
+
*
|
887
|
+
* @return float|NaN Version number (if match) or NaN.
|
888
|
+
*/
|
889
|
+
webkit: function() {
|
890
|
+
return _populate() || _webkit;
|
891
|
+
},
|
892
|
+
|
893
|
+
/**
|
894
|
+
* For Push
|
895
|
+
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
896
|
+
*/
|
897
|
+
safari: function() {
|
898
|
+
return UserAgent_DEPRECATED.webkit();
|
899
|
+
},
|
900
|
+
|
901
|
+
/**
|
902
|
+
* Check if the UA is a Chrome browser.
|
903
|
+
*
|
904
|
+
*
|
905
|
+
* @return float|NaN Version number (if match) or NaN.
|
906
|
+
*/
|
907
|
+
chrome : function() {
|
908
|
+
return _populate() || _chrome;
|
909
|
+
},
|
910
|
+
|
911
|
+
|
912
|
+
/**
|
913
|
+
* Check if the user is running Windows.
|
914
|
+
*
|
915
|
+
* @return bool `true' if the user's OS is Windows.
|
916
|
+
*/
|
917
|
+
windows: function() {
|
918
|
+
return _populate() || _windows;
|
919
|
+
},
|
920
|
+
|
921
|
+
|
922
|
+
/**
|
923
|
+
* Check if the user is running Mac OS X.
|
924
|
+
*
|
925
|
+
* @return float|bool Returns a float if a version number is detected,
|
926
|
+
* otherwise true/false.
|
927
|
+
*/
|
928
|
+
osx: function() {
|
929
|
+
return _populate() || _osx;
|
930
|
+
},
|
931
|
+
|
932
|
+
/**
|
933
|
+
* Check if the user is running Linux.
|
934
|
+
*
|
935
|
+
* @return bool `true' if the user's OS is some flavor of Linux.
|
936
|
+
*/
|
937
|
+
linux: function() {
|
938
|
+
return _populate() || _linux;
|
939
|
+
},
|
940
|
+
|
941
|
+
/**
|
942
|
+
* Check if the user is running on an iPhone or iPod platform.
|
943
|
+
*
|
944
|
+
* @return bool `true' if the user is running some flavor of the
|
945
|
+
* iPhone OS.
|
946
|
+
*/
|
947
|
+
iphone: function() {
|
948
|
+
return _populate() || _iphone;
|
949
|
+
},
|
950
|
+
|
951
|
+
mobile: function() {
|
952
|
+
return _populate() || (_iphone || _ipad || _android || _mobile);
|
953
|
+
},
|
954
|
+
|
955
|
+
nativeApp: function() {
|
956
|
+
// webviews inside of the native apps
|
957
|
+
return _populate() || _native;
|
958
|
+
},
|
959
|
+
|
960
|
+
android: function() {
|
961
|
+
return _populate() || _android;
|
962
|
+
},
|
963
|
+
|
964
|
+
ipad: function() {
|
965
|
+
return _populate() || _ipad;
|
966
|
+
}
|
967
|
+
};
|
968
|
+
|
969
|
+
module.exports = UserAgent_DEPRECATED;
|
970
|
+
|
971
|
+
|
972
|
+
/***/ }),
|
973
|
+
|
974
|
+
/***/ 8283:
|
975
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
976
|
+
|
977
|
+
module.exports = __webpack_require__(5022);
|
978
|
+
|
371
979
|
|
372
980
|
/***/ })
|
373
981
|
|
@@ -429,8 +1037,6 @@ try {
|
|
429
1037
|
/******/
|
430
1038
|
/************************************************************************/
|
431
1039
|
var __webpack_exports__ = {};
|
432
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
433
|
-
(() => {
|
434
1040
|
|
435
1041
|
// EXPORTS
|
436
1042
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -441,11 +1047,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
441
1047
|
useHover: () => (/* reexport */ useHover)
|
442
1048
|
});
|
443
1049
|
|
444
|
-
;//
|
445
|
-
var x = y => {
|
446
|
-
var
|
447
|
-
|
448
|
-
|
1050
|
+
;// external "../shared"
|
1051
|
+
var x = (y) => {
|
1052
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1053
|
+
}
|
1054
|
+
var y = (x) => (() => (x))
|
1055
|
+
const shared_namespaceObject = x({ ["InputBehaviorType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.InputBehaviorType), ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["RenderType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType), ["SelectedType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedType), ["SelectedTypeEnum"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedTypeEnum), ["SizeEnum"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SizeEnum), ["TagThemeType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.TagThemeType), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["classes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes), ["observerResize"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.observerResize), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["useFormItem"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem), ["withInstallProps"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps) });
|
1056
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
449
1057
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
450
1058
|
try {
|
451
1059
|
var info = gen[key](arg);
|
@@ -477,13 +1085,15 @@ function _asyncToGenerator(fn) {
|
|
477
1085
|
};
|
478
1086
|
}
|
479
1087
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
480
|
-
var regenerator = __webpack_require__(
|
1088
|
+
var regenerator = __webpack_require__(5799);
|
481
1089
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
482
|
-
;//
|
483
|
-
var external_vue_x = y => {
|
484
|
-
var
|
485
|
-
|
486
|
-
|
1090
|
+
;// external "vue"
|
1091
|
+
var external_vue_x = (y) => {
|
1092
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1093
|
+
}
|
1094
|
+
var external_vue_y = (x) => (() => (x))
|
1095
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createTextVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["customRef"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.customRef), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["getCurrentInstance"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["inject"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.inject), ["mergeProps"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.mergeProps), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onBeforeMount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount), ["onBeforeUnmount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["provide"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.provide), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["toRef"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRef), ["toRefs"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRefs), ["vModelText"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vModelText), ["vShow"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vShow), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
1096
|
+
;// ../../packages/select/src/common.ts
|
487
1097
|
|
488
1098
|
|
489
1099
|
/*
|
@@ -666,7 +1276,7 @@ function isInViewPort(el, client) {
|
|
666
1276
|
clientBottom = _client$getBoundingCl.bottom;
|
667
1277
|
return elTop >= clientTop && elBottom <= clientBottom;
|
668
1278
|
}
|
669
|
-
;//
|
1279
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
670
1280
|
function _typeof(o) {
|
671
1281
|
"@babel/helpers - typeof";
|
672
1282
|
|
@@ -676,7 +1286,7 @@ function _typeof(o) {
|
|
676
1286
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
677
1287
|
}, _typeof(o);
|
678
1288
|
}
|
679
|
-
;//
|
1289
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
680
1290
|
|
681
1291
|
function toPrimitive(t, r) {
|
682
1292
|
if ("object" != _typeof(t) || !t) return t;
|
@@ -688,14 +1298,14 @@ function toPrimitive(t, r) {
|
|
688
1298
|
}
|
689
1299
|
return ("string" === r ? String : Number)(t);
|
690
1300
|
}
|
691
|
-
;//
|
1301
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
692
1302
|
|
693
1303
|
|
694
1304
|
function toPropertyKey(t) {
|
695
1305
|
var i = toPrimitive(t, "string");
|
696
1306
|
return "symbol" == _typeof(i) ? i : String(i);
|
697
1307
|
}
|
698
|
-
;//
|
1308
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
699
1309
|
|
700
1310
|
function _defineProperty(obj, key, value) {
|
701
1311
|
key = toPropertyKey(key);
|
@@ -711,27 +1321,37 @@ function _defineProperty(obj, key, value) {
|
|
711
1321
|
}
|
712
1322
|
return obj;
|
713
1323
|
}
|
714
|
-
;//
|
715
|
-
var checkbox_x = y => {
|
716
|
-
var
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
1324
|
+
;// external "../checkbox"
|
1325
|
+
var checkbox_x = (y) => {
|
1326
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1327
|
+
}
|
1328
|
+
var checkbox_y = (x) => (() => (x))
|
1329
|
+
const checkbox_namespaceObject = checkbox_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"]) });
|
1330
|
+
;// external "../checkbox/checkbox.less"
|
1331
|
+
var checkbox_less_x = (y) => {
|
1332
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1333
|
+
}
|
1334
|
+
var checkbox_less_y = (x) => (() => (x))
|
721
1335
|
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
722
|
-
;//
|
723
|
-
var config_provider_x = y => {
|
724
|
-
var
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
var
|
733
|
-
const
|
734
|
-
;//
|
1336
|
+
;// external "../config-provider"
|
1337
|
+
var config_provider_x = (y) => {
|
1338
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1339
|
+
}
|
1340
|
+
var config_provider_y = (x) => (() => (x))
|
1341
|
+
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) });
|
1342
|
+
;// external "../icon"
|
1343
|
+
var icon_x = (y) => {
|
1344
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1345
|
+
}
|
1346
|
+
var icon_y = (x) => (() => (x))
|
1347
|
+
const icon_namespaceObject = icon_x({ ["AngleDown"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleDown), ["AngleUpFill"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUpFill), ["Close"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close), ["Done"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done), ["Search"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search), ["TextAll"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextAll) });
|
1348
|
+
;// external "lodash/isEqual"
|
1349
|
+
var isEqual_x = (y) => {
|
1350
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1351
|
+
}
|
1352
|
+
var isEqual_y = (x) => (() => (x))
|
1353
|
+
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"]) });
|
1354
|
+
;// ../../packages/select/src/option.tsx
|
735
1355
|
|
736
1356
|
|
737
1357
|
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; }
|
@@ -916,22 +1536,22 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
916
1536
|
}, null)]), [[external_vue_namespaceObject.vShow, this.visible]]);
|
917
1537
|
}
|
918
1538
|
}));
|
919
|
-
;//
|
1539
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
920
1540
|
function _arrayLikeToArray(arr, len) {
|
921
1541
|
if (len == null || len > arr.length) len = arr.length;
|
922
1542
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
923
1543
|
return arr2;
|
924
1544
|
}
|
925
|
-
;//
|
1545
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
926
1546
|
|
927
1547
|
function _arrayWithoutHoles(arr) {
|
928
1548
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
929
1549
|
}
|
930
|
-
;//
|
1550
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
931
1551
|
function _iterableToArray(iter) {
|
932
1552
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
933
1553
|
}
|
934
|
-
;//
|
1554
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
935
1555
|
|
936
1556
|
function _unsupportedIterableToArray(o, minLen) {
|
937
1557
|
if (!o) return;
|
@@ -941,11 +1561,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
941
1561
|
if (n === "Map" || n === "Set") return Array.from(o);
|
942
1562
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
943
1563
|
}
|
944
|
-
;//
|
1564
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
945
1565
|
function _nonIterableSpread() {
|
946
1566
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
947
1567
|
}
|
948
|
-
;//
|
1568
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
949
1569
|
|
950
1570
|
|
951
1571
|
|
@@ -953,7 +1573,7 @@ function _nonIterableSpread() {
|
|
953
1573
|
function _toConsumableArray(arr) {
|
954
1574
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
955
1575
|
}
|
956
|
-
;//
|
1576
|
+
;// ../../packages/select/src/optionGroup.tsx
|
957
1577
|
|
958
1578
|
|
959
1579
|
|
@@ -1063,47 +1683,691 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1063
1683
|
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), [[external_vue_namespaceObject.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject.vShow, this.visible]]);
|
1064
1684
|
}
|
1065
1685
|
}));
|
1066
|
-
;//
|
1067
|
-
var
|
1068
|
-
var
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1686
|
+
;// ../../packages/directives/src/clickoutside.ts
|
1687
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = clickoutside_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; } } }; }
|
1688
|
+
function clickoutside_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return clickoutside_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 clickoutside_arrayLikeToArray(o, minLen); }
|
1689
|
+
function clickoutside_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; }
|
1690
|
+
/*
|
1691
|
+
* Tencent is pleased to support the open source community by making
|
1692
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1693
|
+
*
|
1694
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1695
|
+
*
|
1696
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1697
|
+
*
|
1698
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1699
|
+
*
|
1700
|
+
* ---------------------------------------------------
|
1701
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1702
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1703
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1704
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1705
|
+
*
|
1706
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1707
|
+
* the Software.
|
1708
|
+
*
|
1709
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1710
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1711
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1712
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1713
|
+
* IN THE SOFTWARE.
|
1714
|
+
*/
|
1715
|
+
var isElement = function isElement(e) {
|
1716
|
+
if (typeof Element === 'undefined') return false;
|
1717
|
+
return e instanceof Element;
|
1718
|
+
};
|
1719
|
+
var nodeList = new Map();
|
1720
|
+
var startClick;
|
1721
|
+
document.addEventListener('mousedown', function (e) {
|
1722
|
+
return startClick = e;
|
1723
|
+
});
|
1724
|
+
document.addEventListener('mouseup', function (e) {
|
1725
|
+
var _iterator = _createForOfIteratorHelper(nodeList.values()),
|
1726
|
+
_step;
|
1727
|
+
try {
|
1728
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
1729
|
+
var handlers = _step.value;
|
1730
|
+
var _iterator2 = _createForOfIteratorHelper(handlers),
|
1731
|
+
_step2;
|
1732
|
+
try {
|
1733
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
1734
|
+
var documentHandler = _step2.value.documentHandler;
|
1735
|
+
documentHandler(e, startClick);
|
1736
|
+
}
|
1737
|
+
} catch (err) {
|
1738
|
+
_iterator2.e(err);
|
1739
|
+
} finally {
|
1740
|
+
_iterator2.f();
|
1741
|
+
}
|
1742
|
+
}
|
1743
|
+
} catch (err) {
|
1744
|
+
_iterator.e(err);
|
1745
|
+
} finally {
|
1746
|
+
_iterator.f();
|
1747
|
+
}
|
1748
|
+
});
|
1749
|
+
function createDocumentHandler(el, binding) {
|
1750
|
+
var excludes = [];
|
1751
|
+
if (Array.isArray(binding.arg)) {
|
1752
|
+
excludes = binding.arg;
|
1753
|
+
} else if (isElement(binding.arg)) {
|
1754
|
+
excludes.push(binding.arg);
|
1755
|
+
}
|
1756
|
+
return function (mouseup, mousedown) {
|
1757
|
+
var popperRef = binding.instance.popperRef;
|
1758
|
+
var mouseUpTarget = mouseup.target;
|
1759
|
+
var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
|
1760
|
+
var isBound = !binding || !binding.instance;
|
1761
|
+
var isTargetExists = !mouseUpTarget || !mouseDownTarget;
|
1762
|
+
var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
|
1763
|
+
var isSelf = el === mouseUpTarget;
|
1764
|
+
var isTargetExcluded = excludes.length && excludes.some(function (item) {
|
1765
|
+
return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
|
1766
|
+
}) || excludes.length && excludes.includes(mouseDownTarget);
|
1767
|
+
var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
|
1768
|
+
if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
|
1769
|
+
return;
|
1770
|
+
}
|
1771
|
+
binding.value(mouseup, mousedown);
|
1772
|
+
};
|
1773
|
+
}
|
1774
|
+
var ClickOutside = {
|
1775
|
+
beforeMount: function beforeMount(el, binding) {
|
1776
|
+
if (!nodeList.has(el)) {
|
1777
|
+
nodeList.set(el, []);
|
1778
|
+
}
|
1779
|
+
nodeList.get(el).push({
|
1780
|
+
documentHandler: createDocumentHandler(el, binding),
|
1781
|
+
bindingFn: binding.value
|
1782
|
+
});
|
1783
|
+
},
|
1784
|
+
updated: function updated(el, binding) {
|
1785
|
+
if (!nodeList.has(el)) {
|
1786
|
+
nodeList.set(el, []);
|
1787
|
+
}
|
1788
|
+
var handlers = nodeList.get(el);
|
1789
|
+
var oldHandlerIndex = handlers.findIndex(function (item) {
|
1790
|
+
return item.bindingFn === binding.oldValue;
|
1791
|
+
});
|
1792
|
+
var newHandler = {
|
1793
|
+
documentHandler: createDocumentHandler(el, binding),
|
1794
|
+
bindingFn: binding.value
|
1795
|
+
};
|
1796
|
+
if (oldHandlerIndex >= 0) {
|
1797
|
+
// replace the old handler to the new handler
|
1798
|
+
handlers.splice(oldHandlerIndex, 1, newHandler);
|
1799
|
+
} else {
|
1800
|
+
handlers.push(newHandler);
|
1801
|
+
}
|
1802
|
+
},
|
1803
|
+
unmounted: function unmounted(el) {
|
1804
|
+
// remove all listeners when a component unmounted
|
1805
|
+
nodeList["delete"](el);
|
1806
|
+
}
|
1807
|
+
};
|
1808
|
+
ClickOutside.install = function (app) {
|
1809
|
+
app.directive('bkTooltips', ClickOutside);
|
1810
|
+
};
|
1811
|
+
/* harmony default export */ const clickoutside = (ClickOutside);
|
1812
|
+
;// external "../plugin-popover"
|
1813
|
+
var plugin_popover_x = (y) => {
|
1814
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1815
|
+
}
|
1816
|
+
var plugin_popover_y = (x) => (() => (x))
|
1817
|
+
const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
|
1818
|
+
;// ../../packages/directives/src/ellipsis.ts
|
1819
|
+
|
1820
|
+
/*
|
1821
|
+
* Tencent is pleased to support the open source community by making
|
1822
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1823
|
+
*
|
1824
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1825
|
+
*
|
1826
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1827
|
+
*
|
1828
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1829
|
+
*
|
1830
|
+
* ---------------------------------------------------
|
1831
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1832
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1833
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1834
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1835
|
+
*
|
1836
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1837
|
+
* the Software.
|
1838
|
+
*
|
1839
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1840
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1841
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1842
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1843
|
+
* IN THE SOFTWARE.
|
1844
|
+
*/
|
1845
|
+
|
1846
|
+
var resolveOptions = function resolveOptions(el, binding) {
|
1847
|
+
var options = {
|
1848
|
+
content: '',
|
1849
|
+
target: el
|
1850
|
+
};
|
1851
|
+
if (_typeof(binding) === 'object') {
|
1852
|
+
Object.assign(options, binding);
|
1853
|
+
if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
|
1854
|
+
Object.assign(options, binding.popoverOption);
|
1855
|
+
}
|
1856
|
+
} else {
|
1857
|
+
options.content = binding;
|
1858
|
+
}
|
1859
|
+
return options;
|
1860
|
+
};
|
1861
|
+
var createInstance = function createInstance(el, binding) {
|
1862
|
+
var instance = null;
|
1863
|
+
var createTimer = null;
|
1864
|
+
var hidePopTimer = null;
|
1865
|
+
var options = resolveOptions(el, binding);
|
1866
|
+
var disabled = options.disabled;
|
1867
|
+
if (disabled || instance) {
|
1868
|
+
return;
|
1869
|
+
}
|
1870
|
+
var handleContentEnter = function handleContentEnter() {
|
1871
|
+
hidePopTimer && clearTimeout(hidePopTimer);
|
1872
|
+
hidePopTimer = null;
|
1873
|
+
};
|
1874
|
+
var handleContentLeave = function handleContentLeave() {
|
1875
|
+
var _instance, _instance2;
|
1876
|
+
if (createTimer) {
|
1877
|
+
clearTimeout(createTimer);
|
1878
|
+
}
|
1879
|
+
(_instance = instance) === null || _instance === void 0 || _instance.hide();
|
1880
|
+
(_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
|
1881
|
+
instance = null;
|
1882
|
+
};
|
1883
|
+
var handleMouseEnter = function handleMouseEnter() {
|
1884
|
+
handleContentLeave();
|
1885
|
+
createTimer && clearTimeout(createTimer);
|
1886
|
+
createTimer = setTimeout(function () {
|
1887
|
+
var targetOptions = resolveOptions(el, binding);
|
1888
|
+
targetOptions.isShow = true;
|
1889
|
+
targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
|
1890
|
+
targetOptions.allowHtml = true;
|
1891
|
+
Object.assign(targetOptions, {
|
1892
|
+
onContentMouseenter: handleContentEnter,
|
1893
|
+
onContentMouseleave: handleContentLeave
|
1894
|
+
});
|
1895
|
+
instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
|
1896
|
+
}, 300);
|
1897
|
+
};
|
1898
|
+
var handleMouseLeave = function handleMouseLeave() {
|
1899
|
+
hidePopTimer = setTimeout(function () {
|
1900
|
+
var _instance3, _instance4;
|
1901
|
+
if (createTimer) {
|
1902
|
+
clearTimeout(createTimer);
|
1903
|
+
}
|
1904
|
+
(_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
|
1905
|
+
(_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
|
1906
|
+
instance = null;
|
1907
|
+
}, 120);
|
1908
|
+
};
|
1909
|
+
el.addEventListener('mouseenter', handleMouseEnter);
|
1910
|
+
el.addEventListener('mouseleave', handleMouseLeave);
|
1911
|
+
var destroyInstance = function destroyInstance(element) {
|
1912
|
+
var _ref, _ref2;
|
1913
|
+
handleMouseLeave();
|
1914
|
+
(_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
|
1915
|
+
(_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
|
1916
|
+
};
|
1917
|
+
return {
|
1918
|
+
destroyInstance: destroyInstance,
|
1919
|
+
instance: instance
|
1920
|
+
};
|
1921
|
+
};
|
1922
|
+
var ellipsis = {
|
1923
|
+
mounted: function mounted(el, binding) {
|
1924
|
+
createInstance(el, binding);
|
1925
|
+
}
|
1926
|
+
};
|
1927
|
+
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
1928
|
+
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
1929
|
+
var normalize_wheel = __webpack_require__(8283);
|
1930
|
+
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
1931
|
+
;// ../../packages/directives/src/mousewheel.ts
|
1932
|
+
/*
|
1933
|
+
* Tencent is pleased to support the open source community by making
|
1934
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1935
|
+
*
|
1936
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1937
|
+
*
|
1938
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1939
|
+
*
|
1940
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1941
|
+
*
|
1942
|
+
* ---------------------------------------------------
|
1943
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1944
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1945
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1946
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1947
|
+
*
|
1948
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1949
|
+
* the Software.
|
1950
|
+
*
|
1951
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1952
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1953
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1954
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1955
|
+
* IN THE SOFTWARE.
|
1956
|
+
*/
|
1957
|
+
|
1958
|
+
var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
1959
|
+
var mousewheelHandler = function mousewheelHandler(element, callback) {
|
1960
|
+
if (element !== null && element !== void 0 && element.addEventListener) {
|
1961
|
+
element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
|
1962
|
+
var normalized = normalize_wheel_default()(e);
|
1963
|
+
callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
|
1964
|
+
});
|
1965
|
+
}
|
1966
|
+
};
|
1967
|
+
var mousewheel = {
|
1968
|
+
beforeMount: function beforeMount(el, binding) {
|
1969
|
+
mousewheelHandler(el, binding.value);
|
1970
|
+
}
|
1971
|
+
};
|
1972
|
+
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
1973
|
+
;// external "@popperjs/core"
|
1974
|
+
var core_x = (y) => {
|
1975
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1976
|
+
}
|
1977
|
+
var core_y = (x) => (() => (x))
|
1978
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
1979
|
+
;// ../../packages/directives/src/tooltips.ts
|
1980
|
+
|
1981
|
+
|
1982
|
+
|
1983
|
+
function tooltips_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; }
|
1984
|
+
function tooltips_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? tooltips_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : tooltips_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1985
|
+
/*
|
1986
|
+
* Tencent is pleased to support the open source community by making
|
1987
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1988
|
+
*
|
1989
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1990
|
+
*
|
1991
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1992
|
+
*
|
1993
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1994
|
+
*
|
1995
|
+
* ---------------------------------------------------
|
1996
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1997
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1998
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1999
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2000
|
+
*
|
2001
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2002
|
+
* the Software.
|
2003
|
+
*
|
2004
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2005
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2006
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2007
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2008
|
+
* IN THE SOFTWARE.
|
2009
|
+
*/
|
2010
|
+
|
2011
|
+
|
2012
|
+
|
2013
|
+
var tooltips_nodeList = new WeakMap();
|
2014
|
+
var tooltips = {
|
2015
|
+
beforeMount: function beforeMount(el, binding) {
|
2016
|
+
var opts = getOpts(binding);
|
2017
|
+
var trigger = opts.trigger,
|
2018
|
+
showOnInit = opts.showOnInit;
|
2019
|
+
var popper = renderContent(opts);
|
2020
|
+
var delayTimeout = null;
|
2021
|
+
if (showOnInit) {
|
2022
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
2023
|
+
show(el);
|
2024
|
+
});
|
2025
|
+
}
|
2026
|
+
if (trigger === 'hover') {
|
2027
|
+
var hideTimeout = null;
|
2028
|
+
el.addEventListener('mouseenter', function () {
|
2029
|
+
delayTimeout = setTimeout(function () {
|
2030
|
+
show(el);
|
2031
|
+
clearTimeout(hideTimeout);
|
2032
|
+
clearTimeout(delayTimeout);
|
2033
|
+
}, opts.delay);
|
2034
|
+
});
|
2035
|
+
popper.addEventListener('mouseenter', function () {
|
2036
|
+
clearTimeout(hideTimeout);
|
2037
|
+
});
|
2038
|
+
el.addEventListener('mouseleave', function () {
|
2039
|
+
clearTimeout(delayTimeout);
|
2040
|
+
hideTimeout = setTimeout(function () {
|
2041
|
+
hide(el);
|
2042
|
+
}, 100);
|
2043
|
+
});
|
2044
|
+
el.addEventListener('click', function () {
|
2045
|
+
hide(el);
|
2046
|
+
});
|
2047
|
+
popper.addEventListener('mouseleave', function () {
|
2048
|
+
clearTimeout(delayTimeout);
|
2049
|
+
hideTimeout = setTimeout(function () {
|
2050
|
+
hide(el);
|
2051
|
+
}, 100);
|
2052
|
+
});
|
2053
|
+
} else if (trigger === 'click') {
|
2054
|
+
document.body.addEventListener('click', function (event) {
|
2055
|
+
if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
|
2056
|
+
delayTimeout = setTimeout(function () {
|
2057
|
+
show(el);
|
2058
|
+
clearTimeout(delayTimeout);
|
2059
|
+
}, opts.delay);
|
2060
|
+
} else if (popper.hasAttribute('data-show')) {
|
2061
|
+
hide(el);
|
2062
|
+
}
|
2063
|
+
});
|
2064
|
+
}
|
2065
|
+
tooltips_nodeList.set(el, {
|
2066
|
+
opts: opts,
|
2067
|
+
popper: popper,
|
2068
|
+
popperInstance: null
|
2069
|
+
});
|
2070
|
+
},
|
2071
|
+
updated: function updated(el, binding) {
|
2072
|
+
if (tooltips_nodeList.get(el)) {
|
2073
|
+
tooltips_nodeList.get(el).opts = getOpts(binding);
|
2074
|
+
}
|
2075
|
+
},
|
2076
|
+
unmounted: function unmounted(el) {
|
2077
|
+
hide(el);
|
2078
|
+
tooltips_nodeList["delete"](el);
|
2079
|
+
}
|
2080
|
+
};
|
2081
|
+
/**
|
2082
|
+
* 初始化配置
|
2083
|
+
* @returns tooltips配置
|
2084
|
+
*/
|
2085
|
+
function initOptions() {
|
2086
|
+
var defaultOpts = {
|
2087
|
+
arrow: true,
|
2088
|
+
disabled: false,
|
2089
|
+
trigger: 'hover',
|
2090
|
+
theme: 'dark',
|
2091
|
+
content: '',
|
2092
|
+
showOnInit: false,
|
2093
|
+
placement: 'top',
|
2094
|
+
distance: 8,
|
2095
|
+
extCls: '',
|
2096
|
+
sameWidth: false,
|
2097
|
+
delay: 0,
|
2098
|
+
onShow: function onShow() {},
|
2099
|
+
onHide: function onHide() {}
|
2100
|
+
};
|
2101
|
+
return defaultOpts;
|
2102
|
+
}
|
2103
|
+
/**
|
2104
|
+
* 获取配置
|
2105
|
+
* @returns tooltips配置
|
2106
|
+
*/
|
2107
|
+
function getOpts(binding) {
|
2108
|
+
var opts = initOptions();
|
2109
|
+
if (_typeof(binding.value) === 'object') {
|
2110
|
+
Object.assign(opts, binding.value);
|
2111
|
+
} else {
|
2112
|
+
opts.content = binding.value;
|
2113
|
+
}
|
2114
|
+
return opts;
|
2115
|
+
}
|
2116
|
+
/**
|
2117
|
+
* 创建tooltips DOM
|
2118
|
+
* @param opts
|
2119
|
+
* @returns
|
2120
|
+
*/
|
2121
|
+
function renderContext(value, content) {
|
2122
|
+
if (typeof value === 'string') {
|
2123
|
+
content.innerText = value;
|
2124
|
+
} else {
|
2125
|
+
// 如果 content 是 Vue 组件的实例,则挂载它
|
2126
|
+
var container = document.createElement('div');
|
2127
|
+
var vnode = (0,external_vue_namespaceObject.h)(value);
|
2128
|
+
(0,external_vue_namespaceObject.render)(vnode, container);
|
2129
|
+
content.innerHTML = container.innerHTML;
|
2130
|
+
}
|
2131
|
+
}
|
2132
|
+
function renderContent(opts) {
|
2133
|
+
var value = opts.content,
|
2134
|
+
hasArrow = opts.arrow,
|
2135
|
+
theme = opts.theme,
|
2136
|
+
extCls = opts.extCls;
|
2137
|
+
var isLight = theme === 'light';
|
2138
|
+
var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
|
2139
|
+
var content = document.createElement('div');
|
2140
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
2141
|
+
content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
|
2142
|
+
content.innerText = value;
|
2143
|
+
content.style.zIndex = String(zIndex);
|
2144
|
+
renderContext(value, content);
|
2145
|
+
if (hasArrow) {
|
2146
|
+
var arrow = renderArrow();
|
2147
|
+
content.appendChild(arrow);
|
2148
|
+
}
|
2149
|
+
return content;
|
2150
|
+
}
|
2151
|
+
/**
|
2152
|
+
* 渲染箭头dom
|
2153
|
+
* @returns arrow DOM
|
2154
|
+
*/
|
2155
|
+
function renderArrow() {
|
2156
|
+
var arrow = document.createElement('div');
|
2157
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
2158
|
+
arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
|
2159
|
+
arrow.setAttribute('data-popper-arrow', '');
|
2160
|
+
return arrow;
|
2161
|
+
}
|
2162
|
+
/**
|
2163
|
+
* 创建popper实例
|
2164
|
+
* @param el
|
2165
|
+
* @param popper
|
2166
|
+
* @returns popper实例
|
2167
|
+
*/
|
2168
|
+
function createPopperInstance(el, popper) {
|
2169
|
+
var _nodeList$get = tooltips_nodeList.get(el),
|
2170
|
+
opts = _nodeList$get.opts;
|
2171
|
+
var placement = opts.placement,
|
2172
|
+
distance = opts.distance,
|
2173
|
+
sameWidth = opts.sameWidth;
|
2174
|
+
var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
|
2175
|
+
placement: placement,
|
2176
|
+
modifiers: [{
|
2177
|
+
name: 'offset',
|
2178
|
+
options: {
|
2179
|
+
offset: [0, distance]
|
2180
|
+
}
|
2181
|
+
}, {
|
2182
|
+
name: 'arrow',
|
2183
|
+
options: {
|
2184
|
+
padding: 5
|
2185
|
+
}
|
2186
|
+
}].concat(_toConsumableArray(sameWidth ? [{
|
2187
|
+
name: 'sameWidth',
|
2188
|
+
enabled: true,
|
2189
|
+
phase: 'beforeWrite',
|
2190
|
+
requires: ['computeStyles'],
|
2191
|
+
fn: function fn(_ref) {
|
2192
|
+
var state = _ref.state;
|
2193
|
+
state.styles.popper.width = "".concat(state.rects.reference.width, "px");
|
2194
|
+
},
|
2195
|
+
effect: function effect(_ref2) {
|
2196
|
+
var state = _ref2.state;
|
2197
|
+
state.elements.popper.style.overflowWrap = 'break-word';
|
2198
|
+
state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
|
2199
|
+
}
|
2200
|
+
}] : []))
|
2201
|
+
});
|
2202
|
+
return popperInstance;
|
2203
|
+
}
|
2204
|
+
/**
|
2205
|
+
* 显示
|
2206
|
+
* @param el
|
2207
|
+
*/
|
2208
|
+
function show(el) {
|
2209
|
+
var _nodeList$get2 = tooltips_nodeList.get(el),
|
2210
|
+
popper = _nodeList$get2.popper,
|
2211
|
+
opts = _nodeList$get2.opts;
|
2212
|
+
var disabled = opts.disabled,
|
2213
|
+
content = opts.content,
|
2214
|
+
hasArrow = opts.arrow,
|
2215
|
+
onShow = opts.onShow,
|
2216
|
+
boundary = opts.boundary,
|
2217
|
+
_opts$modifiers = opts.modifiers,
|
2218
|
+
modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
|
2219
|
+
if (disabled) return;
|
2220
|
+
renderContext(content, popper);
|
2221
|
+
if (hasArrow) {
|
2222
|
+
var arrow = renderArrow();
|
2223
|
+
popper.appendChild(arrow);
|
2224
|
+
}
|
2225
|
+
var container = document.body;
|
2226
|
+
if (boundary) {
|
2227
|
+
if (boundary === 'parent') {
|
2228
|
+
container = el.parentElement;
|
2229
|
+
} else if (boundary instanceof HTMLElement) {
|
2230
|
+
container = boundary;
|
2231
|
+
}
|
2232
|
+
}
|
2233
|
+
container.appendChild(popper);
|
2234
|
+
var popperInstance = createPopperInstance(el, popper);
|
2235
|
+
onShow();
|
2236
|
+
// Make the tooltip visible
|
2237
|
+
popper.setAttribute('data-show', '');
|
2238
|
+
// Enable the event listeners
|
2239
|
+
popperInstance.setOptions(function (options) {
|
2240
|
+
return tooltips_objectSpread(tooltips_objectSpread({}, options), {}, {
|
2241
|
+
modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
|
2242
|
+
name: 'eventListeners',
|
2243
|
+
enabled: true
|
2244
|
+
}])
|
2245
|
+
});
|
2246
|
+
});
|
2247
|
+
// Update its position
|
2248
|
+
popperInstance.forceUpdate();
|
2249
|
+
tooltips_nodeList.get(el).popperInstance = popperInstance;
|
2250
|
+
}
|
2251
|
+
/**
|
2252
|
+
* 隐藏
|
2253
|
+
* @param el
|
2254
|
+
*/
|
2255
|
+
function hide(el) {
|
2256
|
+
if (!tooltips_nodeList.get(el)) return;
|
2257
|
+
var _nodeList$get3 = tooltips_nodeList.get(el),
|
2258
|
+
popper = _nodeList$get3.popper,
|
2259
|
+
popperInstance = _nodeList$get3.popperInstance,
|
2260
|
+
opts = _nodeList$get3.opts;
|
2261
|
+
var onHide = opts.onHide;
|
2262
|
+
if (popper && document.body.contains(popper)) {
|
2263
|
+
var _popper$parentNode;
|
2264
|
+
popper.removeAttribute('data-show');
|
2265
|
+
popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
|
2266
|
+
popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
|
2267
|
+
onHide();
|
2268
|
+
}
|
2269
|
+
}
|
2270
|
+
/* harmony default export */ const src_tooltips = (tooltips);
|
2271
|
+
;// external "../loading"
|
2272
|
+
var external_loading_x = (y) => {
|
2273
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2274
|
+
}
|
2275
|
+
var external_loading_y = (x) => (() => (x))
|
2276
|
+
const external_loading_namespaceObject = external_loading_x({ });
|
2277
|
+
;// external "../overflow-title"
|
2278
|
+
var external_overflow_title_x = (y) => {
|
2279
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2280
|
+
}
|
2281
|
+
var external_overflow_title_y = (x) => (() => (x))
|
2282
|
+
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
2283
|
+
;// ../../packages/directives/src/index.ts
|
2284
|
+
/*
|
2285
|
+
* Tencent is pleased to support the open source community by making
|
2286
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2287
|
+
*
|
2288
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
2289
|
+
*
|
2290
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2291
|
+
*
|
2292
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
2293
|
+
*
|
2294
|
+
* ---------------------------------------------------
|
2295
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
2296
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
2297
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
2298
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2299
|
+
*
|
2300
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2301
|
+
* the Software.
|
2302
|
+
*
|
2303
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2304
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2305
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2306
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2307
|
+
* IN THE SOFTWARE.
|
2308
|
+
*/
|
2309
|
+
|
2310
|
+
|
2311
|
+
|
2312
|
+
|
2313
|
+
|
2314
|
+
|
2315
|
+
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
2316
|
+
;// external "../input"
|
2317
|
+
var input_x = (y) => {
|
2318
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2319
|
+
}
|
2320
|
+
var input_y = (x) => (() => (x))
|
2321
|
+
const input_namespaceObject = input_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__["default"]) });
|
2322
|
+
;// external "../input/input.less"
|
2323
|
+
var input_less_x = (y) => {
|
2324
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2325
|
+
}
|
2326
|
+
var input_less_y = (x) => (() => (x))
|
1077
2327
|
const input_less_namespaceObject = input_less_x({ });
|
1078
|
-
;//
|
1079
|
-
var loading_x = y => {
|
1080
|
-
var
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
2328
|
+
;// external "../loading"
|
2329
|
+
var loading_x = (y) => {
|
2330
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2331
|
+
}
|
2332
|
+
var loading_y = (x) => (() => (x))
|
2333
|
+
const loading_namespaceObject = loading_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__["default"]) });
|
2334
|
+
;// external "../loading/loading.less"
|
2335
|
+
var loading_less_x = (y) => {
|
2336
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2337
|
+
}
|
2338
|
+
var loading_less_y = (x) => (() => (x))
|
1085
2339
|
const loading_less_namespaceObject = loading_less_x({ });
|
1086
|
-
;//
|
1087
|
-
var popover_x = y => {
|
1088
|
-
var
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
2340
|
+
;// external "../popover"
|
2341
|
+
var popover_x = (y) => {
|
2342
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2343
|
+
}
|
2344
|
+
var popover_y = (x) => (() => (x))
|
2345
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"]) });
|
2346
|
+
;// external "../popover/popover.less"
|
2347
|
+
var popover_less_x = (y) => {
|
2348
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2349
|
+
}
|
2350
|
+
var popover_less_y = (x) => (() => (x))
|
1093
2351
|
const popover_less_namespaceObject = popover_less_x({ });
|
1094
|
-
;//
|
1095
|
-
var virtual_render_x = y => {
|
1096
|
-
var
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
2352
|
+
;// external "../virtual-render"
|
2353
|
+
var virtual_render_x = (y) => {
|
2354
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2355
|
+
}
|
2356
|
+
var virtual_render_y = (x) => (() => (x))
|
2357
|
+
const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__["default"]) });
|
2358
|
+
;// external "../virtual-render/virtual-render.less"
|
2359
|
+
var virtual_render_less_x = (y) => {
|
2360
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2361
|
+
}
|
2362
|
+
var virtual_render_less_y = (x) => (() => (x))
|
1101
2363
|
const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
1102
|
-
;//
|
1103
|
-
var merge_x = y => {
|
1104
|
-
var
|
1105
|
-
|
1106
|
-
|
2364
|
+
;// external "lodash/merge"
|
2365
|
+
var merge_x = (y) => {
|
2366
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2367
|
+
}
|
2368
|
+
var merge_y = (x) => (() => (x))
|
2369
|
+
const merge_namespaceObject = merge_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"]) });
|
2370
|
+
;// ../../packages/select/src/pinyin/dict.js
|
1107
2371
|
/*
|
1108
2372
|
* Tencent is pleased to support the open source community by making
|
1109
2373
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2001,7 +3265,7 @@ const EXCEPTIONS = {
|
|
2001
3265
|
EXCEPTIONS,
|
2002
3266
|
});
|
2003
3267
|
|
2004
|
-
;//
|
3268
|
+
;// ../../packages/select/src/pinyin/core.js
|
2005
3269
|
/*
|
2006
3270
|
* Tencent is pleased to support the open source community by making
|
2007
3271
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2168,7 +3432,7 @@ function parse(str) {
|
|
2168
3432
|
},
|
2169
3433
|
});
|
2170
3434
|
|
2171
|
-
;//
|
3435
|
+
;// ../../packages/select/src/pinyin/patchers/56l.js
|
2172
3436
|
/*
|
2173
3437
|
* Tencent is pleased to support the open source community by making
|
2174
3438
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2261,7 +3525,7 @@ function shouldPatch(toToken) {
|
|
2261
3525
|
shouldPatch,
|
2262
3526
|
});
|
2263
3527
|
|
2264
|
-
;//
|
3528
|
+
;// ../../packages/select/src/pinyin/index.js
|
2265
3529
|
/*
|
2266
3530
|
* Tencent is pleased to support the open source community by making
|
2267
3531
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2301,23 +3565,31 @@ if (core.isSupported() && _56l.shouldPatch(core.genToken)) {
|
|
2301
3565
|
|
2302
3566
|
/* harmony default export */ const pinyin = (core);
|
2303
3567
|
|
2304
|
-
;//
|
2305
|
-
var overflow_title_x = y => {
|
2306
|
-
var
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
|
2311
|
-
|
2312
|
-
|
2313
|
-
|
2314
|
-
var
|
3568
|
+
;// external "../overflow-title"
|
3569
|
+
var overflow_title_x = (y) => {
|
3570
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3571
|
+
}
|
3572
|
+
var overflow_title_y = (x) => (() => (x))
|
3573
|
+
const overflow_title_namespaceObject = overflow_title_x({ ["OverflowTitle"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__.OverflowTitle) });
|
3574
|
+
;// external "../tag"
|
3575
|
+
var tag_x = (y) => {
|
3576
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3577
|
+
}
|
3578
|
+
var tag_y = (x) => (() => (x))
|
3579
|
+
const tag_namespaceObject = tag_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__["default"]) });
|
3580
|
+
;// external "../tag/tag.less"
|
3581
|
+
var tag_less_x = (y) => {
|
3582
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3583
|
+
}
|
3584
|
+
var tag_less_y = (x) => (() => (x))
|
2315
3585
|
const tag_less_namespaceObject = tag_less_x({ });
|
2316
|
-
;//
|
2317
|
-
var debounce_x = y => {
|
2318
|
-
var
|
2319
|
-
|
2320
|
-
|
3586
|
+
;// external "lodash/debounce"
|
3587
|
+
var debounce_x = (y) => {
|
3588
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3589
|
+
}
|
3590
|
+
var debounce_y = (x) => (() => (x))
|
3591
|
+
const debounce_namespaceObject = debounce_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"]) });
|
3592
|
+
;// ../../packages/select/src/selectTagInput.tsx
|
2321
3593
|
|
2322
3594
|
|
2323
3595
|
/*
|
@@ -2357,7 +3629,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2357
3629
|
/* harmony default export */ const selectTagInput = ((0,external_vue_namespaceObject.defineComponent)({
|
2358
3630
|
name: 'SelectTagInput',
|
2359
3631
|
directives: {
|
2360
|
-
bkTooltips:
|
3632
|
+
bkTooltips: src_tooltips
|
2361
3633
|
},
|
2362
3634
|
props: {
|
2363
3635
|
selected: {
|
@@ -2568,12 +3840,12 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2568
3840
|
}, null)]), (_this$$slots5 = this.$slots) === null || _this$$slots5 === void 0 || (_this$$slots5$suffix = _this$$slots5.suffix) === null || _this$$slots5$suffix === void 0 ? void 0 : _this$$slots5$suffix.call(_this$$slots5)]);
|
2569
3841
|
}
|
2570
3842
|
}));
|
2571
|
-
;//
|
3843
|
+
;// ../../packages/select/src/select.tsx
|
2572
3844
|
|
2573
3845
|
|
2574
3846
|
|
2575
3847
|
|
2576
|
-
function
|
3848
|
+
function select_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = select_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; } } }; }
|
2577
3849
|
function select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return select_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 select_arrayLikeToArray(o, minLen); }
|
2578
3850
|
function select_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; }
|
2579
3851
|
function 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; }
|
@@ -2627,7 +3899,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2627
3899
|
/* harmony default export */ const src_select = ((0,external_vue_namespaceObject.defineComponent)({
|
2628
3900
|
name: 'Select',
|
2629
3901
|
directives: {
|
2630
|
-
clickoutside:
|
3902
|
+
clickoutside: clickoutside
|
2631
3903
|
},
|
2632
3904
|
props: {
|
2633
3905
|
modelValue: shared_namespaceObject.PropTypes.any,
|
@@ -3289,7 +4561,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3289
4561
|
// 处理options value为对象类型,引用类型变更后,回显不对问题
|
3290
4562
|
var tmpValue = value;
|
3291
4563
|
if (_typeof(tmpValue) === 'object') {
|
3292
|
-
var _iterator =
|
4564
|
+
var _iterator = select_createForOfIteratorHelper(optionsMap.value.keys()),
|
3293
4565
|
_step;
|
3294
4566
|
try {
|
3295
4567
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
@@ -3765,7 +5037,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3765
5037
|
})]);
|
3766
5038
|
}
|
3767
5039
|
}));
|
3768
|
-
;//
|
5040
|
+
;// ../../packages/select/src/index.ts
|
3769
5041
|
/*
|
3770
5042
|
* Tencent is pleased to support the open source community by making
|
3771
5043
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3802,8 +5074,6 @@ var BkSelect = (0,shared_namespaceObject.withInstallProps)(src_select, {
|
|
3802
5074
|
});
|
3803
5075
|
/* harmony default export */ const src = (BkSelect);
|
3804
5076
|
|
3805
|
-
})();
|
3806
|
-
|
3807
5077
|
var __webpack_exports__BkOption = __webpack_exports__.BkOption;
|
3808
5078
|
var __webpack_exports__BkOptionGroup = __webpack_exports__.BkOptionGroup;
|
3809
5079
|
var __webpack_exports__BkSelect = __webpack_exports__.BkSelect;
|