bkui-vue 2.0.1-beta.113 → 2.0.1-beta.115
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 +54 -54
- package/dist/index.esm.js +13951 -13942
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +47 -39
- package/lib/alert/index.d.ts +73 -126
- package/lib/alert/index.js +50 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +21 -16
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +42 -31
- package/lib/badge/index.d.ts +119 -152
- package/lib/badge/index.js +43 -37
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -40
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +55 -46
- package/lib/card/index.d.ts +128 -157
- package/lib/card/index.js +67 -55
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +149 -119
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +143 -175
- package/lib/checkbox/index.js +89 -79
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +464 -517
- package/lib/collapse/index.d.ts +156 -175
- package/lib/collapse/index.js +67 -60
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +23 -16
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +144 -165
- package/lib/color-picker/index.js +98 -82
- package/lib/config-provider/index.d.ts +160 -227
- package/lib/config-provider/index.js +51 -43
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +55 -47
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/index.d.ts +380 -351
- package/lib/date-picker/index.js +171 -150
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +299 -269
- package/lib/dialog/index.js +323 -310
- package/lib/directives/index.js +344 -336
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +23 -16
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +66 -52
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +76 -70
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +22 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +104 -83
- package/lib/icon/angle-double-down-line.js +31 -29
- package/lib/icon/angle-double-left-line.js +31 -29
- package/lib/icon/angle-double-left.js +31 -29
- package/lib/icon/angle-double-right-line.js +31 -29
- package/lib/icon/angle-double-right.js +31 -29
- package/lib/icon/angle-double-up-line.js +31 -29
- package/lib/icon/angle-down-fill.js +31 -29
- package/lib/icon/angle-down-line.js +31 -29
- package/lib/icon/angle-down.js +31 -29
- package/lib/icon/angle-left.js +31 -29
- package/lib/icon/angle-right.js +31 -29
- package/lib/icon/angle-up-fill.js +31 -29
- package/lib/icon/angle-up.js +31 -29
- package/lib/icon/archive-fill.js +31 -29
- package/lib/icon/arrows-left.js +31 -29
- package/lib/icon/arrows-right.js +31 -29
- package/lib/icon/assistant.js +31 -29
- package/lib/icon/audio-fill.js +31 -29
- package/lib/icon/bk.js +31 -29
- package/lib/icon/circle.js +31 -29
- package/lib/icon/close-line.js +31 -29
- package/lib/icon/close.js +31 -29
- package/lib/icon/code.js +31 -29
- package/lib/icon/cog-shape.js +31 -29
- package/lib/icon/collapse-left.js +31 -29
- package/lib/icon/copy-shape.js +31 -29
- package/lib/icon/copy.js +31 -29
- package/lib/icon/data-shape.js +31 -29
- package/lib/icon/del.js +31 -29
- package/lib/icon/doc-fill.js +31 -29
- package/lib/icon/done.js +31 -29
- package/lib/icon/down-shape.js +31 -29
- package/lib/icon/down-small.js +31 -29
- package/lib/icon/edit-line.js +31 -29
- package/lib/icon/ellipsis.js +31 -29
- package/lib/icon/enlarge-line.js +31 -29
- package/lib/icon/error.js +31 -29
- package/lib/icon/excel-fill.js +31 -29
- package/lib/icon/exclamation-circle-shape.js +31 -29
- package/lib/icon/eye.js +31 -29
- package/lib/icon/filliscreen-line.js +31 -29
- package/lib/icon/fix-line.js +31 -29
- package/lib/icon/fix-shape.js +31 -29
- package/lib/icon/folder-open.js +31 -29
- package/lib/icon/folder-shape-open.js +31 -29
- package/lib/icon/folder-shape.js +31 -29
- package/lib/icon/folder.js +31 -29
- package/lib/icon/funnel.js +31 -29
- package/lib/icon/grag-fill.js +31 -29
- package/lib/icon/help-document-fill.js +31 -29
- package/lib/icon/help-fill.js +31 -29
- package/lib/icon/help.js +31 -29
- package/lib/icon/image-fill.js +31 -29
- package/lib/icon/img-error.js +31 -29
- package/lib/icon/img-placehoulder.js +31 -29
- package/lib/icon/info-line.js +31 -29
- package/lib/icon/info.js +31 -29
- package/lib/icon/left-shape.js +31 -29
- package/lib/icon/left-turn-line.js +31 -29
- package/lib/icon/loading.js +31 -29
- package/lib/icon/narrow-line.js +31 -29
- package/lib/icon/original.js +31 -29
- package/lib/icon/pdf-fill.js +31 -29
- package/lib/icon/play-shape.js +31 -29
- package/lib/icon/plus.js +31 -29
- package/lib/icon/ppt-fill.js +31 -29
- package/lib/icon/qq.js +31 -29
- package/lib/icon/right-shape.js +31 -29
- package/lib/icon/right-turn-line.js +31 -29
- package/lib/icon/search.js +31 -29
- package/lib/icon/share.js +31 -29
- package/lib/icon/spinner.js +31 -29
- package/lib/icon/success.js +31 -29
- package/lib/icon/switcher-loading.js +31 -29
- package/lib/icon/text-all.js +31 -29
- package/lib/icon/text-file.js +31 -29
- package/lib/icon/text-fill.js +31 -29
- package/lib/icon/transfer.js +31 -29
- package/lib/icon/tree-application-shape.js +31 -29
- package/lib/icon/unfull-screen.js +31 -29
- package/lib/icon/unvisible.js +31 -29
- package/lib/icon/up-shape.js +31 -29
- package/lib/icon/upload.js +31 -29
- package/lib/icon/video-fill.js +31 -29
- package/lib/icon/warn.js +31 -29
- package/lib/icon/weixin-pro.js +31 -29
- package/lib/icon/weixin.js +31 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +76 -61
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +328 -315
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +91 -83
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +27 -19
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +56 -51
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.d.ts +55 -116
- package/lib/menu/index.js +67 -58
- package/lib/message/index.js +72 -67
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +171 -185
- package/lib/modal/index.js +58 -48
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +35 -25
- package/lib/notify/index.js +57 -48
- package/lib/overflow-title/index.d.ts +343 -256
- package/lib/overflow-title/index.js +51 -38
- package/lib/pagination/index.d.ts +184 -198
- package/lib/pagination/index.js +112 -103
- package/lib/plugin-popover/index.js +7 -5
- package/lib/plugins/index.js +7 -5
- package/lib/pop-confirm/index.d.ts +115 -153
- package/lib/pop-confirm/index.js +53 -36
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +421 -359
- package/lib/popover/index.js +291 -179
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +15 -11
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +299 -295
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +47 -40
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +91 -140
- package/lib/radio/index.js +85 -79
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +44 -39
- package/lib/resize-layout/index.d.ts +168 -192
- package/lib/resize-layout/index.js +50 -43
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +63 -63
- package/lib/search-select/index.d.ts +678 -895
- package/lib/search-select/index.js +397 -379
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +133 -188
- package/lib/search-select/selected.d.ts +133 -188
- package/lib/select/index.d.ts +1375 -1217
- package/lib/select/index.js +456 -419
- package/lib/select/select.d.ts +132 -169
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +109 -103
- package/lib/sideslider/index.d.ts +197 -201
- package/lib/sideslider/index.js +312 -303
- package/lib/slider/index.d.ts +214 -210
- package/lib/slider/index.js +305 -294
- package/lib/steps/index.d.ts +110 -149
- package/lib/steps/index.js +303 -298
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +42 -36
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +50 -44
- package/lib/tab/index.d.ts +151 -183
- package/lib/tab/index.js +72 -59
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +457 -362
- package/lib/table/index.js +589 -547
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +104 -150
- package/lib/table-column/index.js +13 -9
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +56 -46
- package/lib/tag-input/index.d.ts +744 -529
- package/lib/tag-input/index.js +148 -128
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +439 -386
- package/lib/time-picker/index.js +13 -9
- package/lib/timeline/index.d.ts +64 -131
- package/lib/timeline/index.js +27 -21
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +56 -40
- package/lib/tree/index.d.ts +350 -308
- package/lib/tree/index.js +171 -150
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +311 -273
- package/lib/upload/index.js +474 -465
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +333 -241
- package/lib/virtual-render/index.js +84 -72
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/directives/index.js
CHANGED
@@ -7,15 +7,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
8
8
|
/******/ var __webpack_modules__ = ({
|
9
9
|
|
10
|
-
/***/
|
11
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
12
|
-
|
13
|
-
module.exports = __webpack_require__(2527);
|
14
|
-
|
15
|
-
|
16
|
-
/***/ }),
|
17
|
-
|
18
|
-
/***/ 7430:
|
10
|
+
/***/ 1043:
|
19
11
|
/***/ ((module) => {
|
20
12
|
|
21
13
|
/**
|
@@ -65,7 +57,265 @@ module.exports = ExecutionEnvironment;
|
|
65
57
|
|
66
58
|
/***/ }),
|
67
59
|
|
68
|
-
/***/
|
60
|
+
/***/ 2586:
|
61
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Copyright 2013-2015, Facebook, Inc.
|
65
|
+
* All rights reserved.
|
66
|
+
*
|
67
|
+
* This source code is licensed under the BSD-style license found in the
|
68
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
69
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
70
|
+
*
|
71
|
+
* @providesModule isEventSupported
|
72
|
+
*/
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
var ExecutionEnvironment = __webpack_require__(1043);
|
77
|
+
|
78
|
+
var useHasFeature;
|
79
|
+
if (ExecutionEnvironment.canUseDOM) {
|
80
|
+
useHasFeature =
|
81
|
+
document.implementation &&
|
82
|
+
document.implementation.hasFeature &&
|
83
|
+
// always returns true in newer browsers as per the standard.
|
84
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
85
|
+
document.implementation.hasFeature('', '') !== true;
|
86
|
+
}
|
87
|
+
|
88
|
+
/**
|
89
|
+
* Checks if an event is supported in the current execution environment.
|
90
|
+
*
|
91
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
92
|
+
* `reset`, `load`, `error`, and `select`.
|
93
|
+
*
|
94
|
+
* Borrows from Modernizr.
|
95
|
+
*
|
96
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
97
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
98
|
+
* @return {boolean} True if the event is supported.
|
99
|
+
* @internal
|
100
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
101
|
+
*/
|
102
|
+
function isEventSupported(eventNameSuffix, capture) {
|
103
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
104
|
+
capture && !('addEventListener' in document)) {
|
105
|
+
return false;
|
106
|
+
}
|
107
|
+
|
108
|
+
var eventName = 'on' + eventNameSuffix;
|
109
|
+
var isSupported = eventName in document;
|
110
|
+
|
111
|
+
if (!isSupported) {
|
112
|
+
var element = document.createElement('div');
|
113
|
+
element.setAttribute(eventName, 'return;');
|
114
|
+
isSupported = typeof element[eventName] === 'function';
|
115
|
+
}
|
116
|
+
|
117
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
118
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
119
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
120
|
+
}
|
121
|
+
|
122
|
+
return isSupported;
|
123
|
+
}
|
124
|
+
|
125
|
+
module.exports = isEventSupported;
|
126
|
+
|
127
|
+
|
128
|
+
/***/ }),
|
129
|
+
|
130
|
+
/***/ 5022:
|
131
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
132
|
+
|
133
|
+
/**
|
134
|
+
* Copyright (c) 2015, Facebook, Inc.
|
135
|
+
* All rights reserved.
|
136
|
+
*
|
137
|
+
* This source code is licensed under the BSD-style license found in the
|
138
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
139
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
140
|
+
*
|
141
|
+
* @providesModule normalizeWheel
|
142
|
+
* @typechecks
|
143
|
+
*/
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
148
|
+
|
149
|
+
var isEventSupported = __webpack_require__(2586);
|
150
|
+
|
151
|
+
|
152
|
+
// Reasonable defaults
|
153
|
+
var PIXEL_STEP = 10;
|
154
|
+
var LINE_HEIGHT = 40;
|
155
|
+
var PAGE_HEIGHT = 800;
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
159
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
160
|
+
* your questions.
|
161
|
+
*
|
162
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
163
|
+
* like your bestest friend. * hugs *
|
164
|
+
*
|
165
|
+
* As of today, there are 4 DOM event types you can listen to:
|
166
|
+
*
|
167
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
168
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
169
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
170
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
171
|
+
*
|
172
|
+
* So what to do? The is the best:
|
173
|
+
*
|
174
|
+
* normalizeWheel.getEventType();
|
175
|
+
*
|
176
|
+
* In your event callback, use this code to get sane interpretation of the
|
177
|
+
* deltas. This code will return an object with properties:
|
178
|
+
*
|
179
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
180
|
+
* spinY -- " - y plane
|
181
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
182
|
+
* pixelY -- " - y plane
|
183
|
+
*
|
184
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
185
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
186
|
+
* significantly on different platforms and browsers, forgetting that you can
|
187
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
188
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
189
|
+
* linear speed or acceleration.
|
190
|
+
*
|
191
|
+
* This code does its best to normalize the deltas for you:
|
192
|
+
*
|
193
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
194
|
+
* dragged). This is super useful for zoom support where you want to
|
195
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
196
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
197
|
+
* resolve a single slow step on a wheel to 1.
|
198
|
+
*
|
199
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
200
|
+
* get the crazy differences between browsers, but at least it'll be in
|
201
|
+
* pixels!
|
202
|
+
*
|
203
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
204
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
205
|
+
* This matches the newer 'wheel' event.
|
206
|
+
*
|
207
|
+
* Why are there spinX, spinY (or pixels)?
|
208
|
+
*
|
209
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
210
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
211
|
+
*
|
212
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
213
|
+
*
|
214
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
215
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
216
|
+
* you know.
|
217
|
+
*
|
218
|
+
* Implementation info:
|
219
|
+
*
|
220
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
221
|
+
* average mouse:
|
222
|
+
*
|
223
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
224
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
225
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
226
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
227
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
228
|
+
*
|
229
|
+
* On the trackpad:
|
230
|
+
*
|
231
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
232
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
233
|
+
*
|
234
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
235
|
+
* also missing delta values.
|
236
|
+
*
|
237
|
+
* The 'wheel' event is more standard:
|
238
|
+
*
|
239
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
240
|
+
*
|
241
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
242
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
243
|
+
* backward compatibility with older events. Those other values help us
|
244
|
+
* better normalize spin speed. Example of what the browsers provide:
|
245
|
+
*
|
246
|
+
* | event.wheelDelta | event.detail
|
247
|
+
* ------------------+------------------+--------------
|
248
|
+
* Safari v5/OS X | -120 | 0
|
249
|
+
* Safari v5/Win7 | -120 | 0
|
250
|
+
* Chrome v17/OS X | -120 | 0
|
251
|
+
* Chrome v17/Win7 | -120 | 0
|
252
|
+
* IE9/Win7 | -120 | undefined
|
253
|
+
* Firefox v4/OS X | undefined | 1
|
254
|
+
* Firefox v4/Win7 | undefined | 3
|
255
|
+
*
|
256
|
+
*/
|
257
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
258
|
+
var sX = 0, sY = 0, // spinX, spinY
|
259
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
260
|
+
|
261
|
+
// Legacy
|
262
|
+
if ('detail' in event) { sY = event.detail; }
|
263
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
264
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
265
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
266
|
+
|
267
|
+
// side scrolling on FF with DOMMouseScroll
|
268
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
269
|
+
sX = sY;
|
270
|
+
sY = 0;
|
271
|
+
}
|
272
|
+
|
273
|
+
pX = sX * PIXEL_STEP;
|
274
|
+
pY = sY * PIXEL_STEP;
|
275
|
+
|
276
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
277
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
278
|
+
|
279
|
+
if ((pX || pY) && event.deltaMode) {
|
280
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
281
|
+
pX *= LINE_HEIGHT;
|
282
|
+
pY *= LINE_HEIGHT;
|
283
|
+
} else { // delta in PAGE units
|
284
|
+
pX *= PAGE_HEIGHT;
|
285
|
+
pY *= PAGE_HEIGHT;
|
286
|
+
}
|
287
|
+
}
|
288
|
+
|
289
|
+
// Fall-back if spin cannot be determined
|
290
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
291
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
292
|
+
|
293
|
+
return { spinX : sX,
|
294
|
+
spinY : sY,
|
295
|
+
pixelX : pX,
|
296
|
+
pixelY : pY };
|
297
|
+
}
|
298
|
+
|
299
|
+
|
300
|
+
/**
|
301
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
302
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
303
|
+
* 'wheel' event, making spin speed determination impossible.
|
304
|
+
*/
|
305
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
306
|
+
return (UserAgent_DEPRECATED.firefox())
|
307
|
+
? 'DOMMouseScroll'
|
308
|
+
: (isEventSupported('wheel'))
|
309
|
+
? 'wheel'
|
310
|
+
: 'mousewheel';
|
311
|
+
};
|
312
|
+
|
313
|
+
module.exports = normalizeWheel;
|
314
|
+
|
315
|
+
|
316
|
+
/***/ }),
|
317
|
+
|
318
|
+
/***/ 7416:
|
69
319
|
/***/ ((module) => {
|
70
320
|
|
71
321
|
/**
|
@@ -354,260 +604,10 @@ module.exports = UserAgent_DEPRECATED;
|
|
354
604
|
|
355
605
|
/***/ }),
|
356
606
|
|
357
|
-
/***/
|
607
|
+
/***/ 8283:
|
358
608
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
359
609
|
|
360
|
-
|
361
|
-
* Copyright 2013-2015, Facebook, Inc.
|
362
|
-
* All rights reserved.
|
363
|
-
*
|
364
|
-
* This source code is licensed under the BSD-style license found in the
|
365
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
366
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
367
|
-
*
|
368
|
-
* @providesModule isEventSupported
|
369
|
-
*/
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
var ExecutionEnvironment = __webpack_require__(7430);
|
374
|
-
|
375
|
-
var useHasFeature;
|
376
|
-
if (ExecutionEnvironment.canUseDOM) {
|
377
|
-
useHasFeature =
|
378
|
-
document.implementation &&
|
379
|
-
document.implementation.hasFeature &&
|
380
|
-
// always returns true in newer browsers as per the standard.
|
381
|
-
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
382
|
-
document.implementation.hasFeature('', '') !== true;
|
383
|
-
}
|
384
|
-
|
385
|
-
/**
|
386
|
-
* Checks if an event is supported in the current execution environment.
|
387
|
-
*
|
388
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
389
|
-
* `reset`, `load`, `error`, and `select`.
|
390
|
-
*
|
391
|
-
* Borrows from Modernizr.
|
392
|
-
*
|
393
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
394
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
395
|
-
* @return {boolean} True if the event is supported.
|
396
|
-
* @internal
|
397
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
398
|
-
*/
|
399
|
-
function isEventSupported(eventNameSuffix, capture) {
|
400
|
-
if (!ExecutionEnvironment.canUseDOM ||
|
401
|
-
capture && !('addEventListener' in document)) {
|
402
|
-
return false;
|
403
|
-
}
|
404
|
-
|
405
|
-
var eventName = 'on' + eventNameSuffix;
|
406
|
-
var isSupported = eventName in document;
|
407
|
-
|
408
|
-
if (!isSupported) {
|
409
|
-
var element = document.createElement('div');
|
410
|
-
element.setAttribute(eventName, 'return;');
|
411
|
-
isSupported = typeof element[eventName] === 'function';
|
412
|
-
}
|
413
|
-
|
414
|
-
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
415
|
-
// This is the only way to test support for the `wheel` event in IE9+.
|
416
|
-
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
417
|
-
}
|
418
|
-
|
419
|
-
return isSupported;
|
420
|
-
}
|
421
|
-
|
422
|
-
module.exports = isEventSupported;
|
423
|
-
|
424
|
-
|
425
|
-
/***/ }),
|
426
|
-
|
427
|
-
/***/ 2527:
|
428
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
429
|
-
|
430
|
-
/**
|
431
|
-
* Copyright (c) 2015, Facebook, Inc.
|
432
|
-
* All rights reserved.
|
433
|
-
*
|
434
|
-
* This source code is licensed under the BSD-style license found in the
|
435
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
436
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
437
|
-
*
|
438
|
-
* @providesModule normalizeWheel
|
439
|
-
* @typechecks
|
440
|
-
*/
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
var UserAgent_DEPRECATED = __webpack_require__(6377);
|
445
|
-
|
446
|
-
var isEventSupported = __webpack_require__(3541);
|
447
|
-
|
448
|
-
|
449
|
-
// Reasonable defaults
|
450
|
-
var PIXEL_STEP = 10;
|
451
|
-
var LINE_HEIGHT = 40;
|
452
|
-
var PAGE_HEIGHT = 800;
|
453
|
-
|
454
|
-
/**
|
455
|
-
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
456
|
-
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
457
|
-
* your questions.
|
458
|
-
*
|
459
|
-
* If you need to react to the mouse wheel in a predictable way, this code is
|
460
|
-
* like your bestest friend. * hugs *
|
461
|
-
*
|
462
|
-
* As of today, there are 4 DOM event types you can listen to:
|
463
|
-
*
|
464
|
-
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
465
|
-
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
466
|
-
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
467
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
468
|
-
*
|
469
|
-
* So what to do? The is the best:
|
470
|
-
*
|
471
|
-
* normalizeWheel.getEventType();
|
472
|
-
*
|
473
|
-
* In your event callback, use this code to get sane interpretation of the
|
474
|
-
* deltas. This code will return an object with properties:
|
475
|
-
*
|
476
|
-
* spinX -- normalized spin speed (use for zoom) - x plane
|
477
|
-
* spinY -- " - y plane
|
478
|
-
* pixelX -- normalized distance (to pixels) - x plane
|
479
|
-
* pixelY -- " - y plane
|
480
|
-
*
|
481
|
-
* Wheel values are provided by the browser assuming you are using the wheel to
|
482
|
-
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
483
|
-
* significantly on different platforms and browsers, forgetting that you can
|
484
|
-
* scroll at different speeds. Some devices (like trackpads) emit more events
|
485
|
-
* at smaller increments with fine granularity, and some emit massive jumps with
|
486
|
-
* linear speed or acceleration.
|
487
|
-
*
|
488
|
-
* This code does its best to normalize the deltas for you:
|
489
|
-
*
|
490
|
-
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
491
|
-
* dragged). This is super useful for zoom support where you want to
|
492
|
-
* throw away the chunky scroll steps on the PC and make those equal to
|
493
|
-
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
494
|
-
* resolve a single slow step on a wheel to 1.
|
495
|
-
*
|
496
|
-
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
497
|
-
* get the crazy differences between browsers, but at least it'll be in
|
498
|
-
* pixels!
|
499
|
-
*
|
500
|
-
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
501
|
-
* should translate to positive value zooming IN, negative zooming OUT.
|
502
|
-
* This matches the newer 'wheel' event.
|
503
|
-
*
|
504
|
-
* Why are there spinX, spinY (or pixels)?
|
505
|
-
*
|
506
|
-
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
507
|
-
* with a mouse. It results in side-scrolling in the browser by default.
|
508
|
-
*
|
509
|
-
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
510
|
-
*
|
511
|
-
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
512
|
-
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
513
|
-
* you know.
|
514
|
-
*
|
515
|
-
* Implementation info:
|
516
|
-
*
|
517
|
-
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
518
|
-
* average mouse:
|
519
|
-
*
|
520
|
-
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
521
|
-
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
522
|
-
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
523
|
-
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
524
|
-
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
525
|
-
*
|
526
|
-
* On the trackpad:
|
527
|
-
*
|
528
|
-
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
529
|
-
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
530
|
-
*
|
531
|
-
* On other/older browsers.. it's more complicated as there can be multiple and
|
532
|
-
* also missing delta values.
|
533
|
-
*
|
534
|
-
* The 'wheel' event is more standard:
|
535
|
-
*
|
536
|
-
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
537
|
-
*
|
538
|
-
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
539
|
-
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
540
|
-
* backward compatibility with older events. Those other values help us
|
541
|
-
* better normalize spin speed. Example of what the browsers provide:
|
542
|
-
*
|
543
|
-
* | event.wheelDelta | event.detail
|
544
|
-
* ------------------+------------------+--------------
|
545
|
-
* Safari v5/OS X | -120 | 0
|
546
|
-
* Safari v5/Win7 | -120 | 0
|
547
|
-
* Chrome v17/OS X | -120 | 0
|
548
|
-
* Chrome v17/Win7 | -120 | 0
|
549
|
-
* IE9/Win7 | -120 | undefined
|
550
|
-
* Firefox v4/OS X | undefined | 1
|
551
|
-
* Firefox v4/Win7 | undefined | 3
|
552
|
-
*
|
553
|
-
*/
|
554
|
-
function normalizeWheel(/*object*/ event) /*object*/ {
|
555
|
-
var sX = 0, sY = 0, // spinX, spinY
|
556
|
-
pX = 0, pY = 0; // pixelX, pixelY
|
557
|
-
|
558
|
-
// Legacy
|
559
|
-
if ('detail' in event) { sY = event.detail; }
|
560
|
-
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
561
|
-
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
562
|
-
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
563
|
-
|
564
|
-
// side scrolling on FF with DOMMouseScroll
|
565
|
-
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
566
|
-
sX = sY;
|
567
|
-
sY = 0;
|
568
|
-
}
|
569
|
-
|
570
|
-
pX = sX * PIXEL_STEP;
|
571
|
-
pY = sY * PIXEL_STEP;
|
572
|
-
|
573
|
-
if ('deltaY' in event) { pY = event.deltaY; }
|
574
|
-
if ('deltaX' in event) { pX = event.deltaX; }
|
575
|
-
|
576
|
-
if ((pX || pY) && event.deltaMode) {
|
577
|
-
if (event.deltaMode == 1) { // delta in LINE units
|
578
|
-
pX *= LINE_HEIGHT;
|
579
|
-
pY *= LINE_HEIGHT;
|
580
|
-
} else { // delta in PAGE units
|
581
|
-
pX *= PAGE_HEIGHT;
|
582
|
-
pY *= PAGE_HEIGHT;
|
583
|
-
}
|
584
|
-
}
|
585
|
-
|
586
|
-
// Fall-back if spin cannot be determined
|
587
|
-
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
588
|
-
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
589
|
-
|
590
|
-
return { spinX : sX,
|
591
|
-
spinY : sY,
|
592
|
-
pixelX : pX,
|
593
|
-
pixelY : pY };
|
594
|
-
}
|
595
|
-
|
596
|
-
|
597
|
-
/**
|
598
|
-
* The best combination if you prefer spinX + spinY normalization. It favors
|
599
|
-
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
600
|
-
* 'wheel' event, making spin speed determination impossible.
|
601
|
-
*/
|
602
|
-
normalizeWheel.getEventType = function() /*string*/ {
|
603
|
-
return (UserAgent_DEPRECATED.firefox())
|
604
|
-
? 'DOMMouseScroll'
|
605
|
-
: (isEventSupported('wheel'))
|
606
|
-
? 'wheel'
|
607
|
-
: 'mousewheel';
|
608
|
-
};
|
609
|
-
|
610
|
-
module.exports = normalizeWheel;
|
610
|
+
module.exports = __webpack_require__(5022);
|
611
611
|
|
612
612
|
|
613
613
|
/***/ })
|
@@ -670,8 +670,6 @@ module.exports = normalizeWheel;
|
|
670
670
|
/******/
|
671
671
|
/************************************************************************/
|
672
672
|
var __webpack_exports__ = {};
|
673
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
674
|
-
(() => {
|
675
673
|
|
676
674
|
// EXPORTS
|
677
675
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -684,10 +682,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
684
682
|
overflowTitle: () => (/* reexport */ external_overflow_title_namespaceObject.overflowTitle)
|
685
683
|
});
|
686
684
|
|
687
|
-
;//
|
688
|
-
function _createForOfIteratorHelper(
|
689
|
-
function _unsupportedIterableToArray(
|
690
|
-
function _arrayLikeToArray(
|
685
|
+
;// ../../packages/directives/src/clickoutside.ts
|
686
|
+
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; } } }; }
|
687
|
+
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); }
|
688
|
+
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; }
|
691
689
|
/*
|
692
690
|
* Tencent is pleased to support the open source community by making
|
693
691
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -810,21 +808,23 @@ ClickOutside.install = function (app) {
|
|
810
808
|
app.directive('bkTooltips', ClickOutside);
|
811
809
|
};
|
812
810
|
/* harmony default export */ const clickoutside = (ClickOutside);
|
813
|
-
;//
|
814
|
-
function _typeof(
|
811
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
812
|
+
function _typeof(o) {
|
815
813
|
"@babel/helpers - typeof";
|
816
814
|
|
817
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
818
|
-
return typeof
|
819
|
-
} : function (
|
820
|
-
return
|
821
|
-
}, _typeof(
|
815
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
816
|
+
return typeof o;
|
817
|
+
} : function (o) {
|
818
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
819
|
+
}, _typeof(o);
|
822
820
|
}
|
823
|
-
;//
|
824
|
-
var x = y => {
|
825
|
-
var
|
826
|
-
|
827
|
-
|
821
|
+
;// external "../plugin-popover"
|
822
|
+
var x = (y) => {
|
823
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
824
|
+
}
|
825
|
+
var y = (x) => (() => (x))
|
826
|
+
const plugin_popover_namespaceObject = x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
|
827
|
+
;// ../../packages/directives/src/ellipsis.ts
|
828
828
|
|
829
829
|
/*
|
830
830
|
* Tencent is pleased to support the open source community by making
|
@@ -885,8 +885,8 @@ var createInstance = function createInstance(el, binding) {
|
|
885
885
|
if (createTimer) {
|
886
886
|
clearTimeout(createTimer);
|
887
887
|
}
|
888
|
-
(_instance = instance) === null || _instance === void 0
|
889
|
-
(_instance2 = instance) === null || _instance2 === void 0
|
888
|
+
(_instance = instance) === null || _instance === void 0 || _instance.hide();
|
889
|
+
(_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
|
890
890
|
instance = null;
|
891
891
|
};
|
892
892
|
var handleMouseEnter = function handleMouseEnter() {
|
@@ -911,8 +911,8 @@ var createInstance = function createInstance(el, binding) {
|
|
911
911
|
if (createTimer) {
|
912
912
|
clearTimeout(createTimer);
|
913
913
|
}
|
914
|
-
(_instance3 = instance) === null || _instance3 === void 0
|
915
|
-
(_instance4 = instance) === null || _instance4 === void 0
|
914
|
+
(_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
|
915
|
+
(_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
|
916
916
|
instance = null;
|
917
917
|
}, 120);
|
918
918
|
};
|
@@ -921,8 +921,8 @@ var createInstance = function createInstance(el, binding) {
|
|
921
921
|
var destroyInstance = function destroyInstance(element) {
|
922
922
|
var _ref, _ref2;
|
923
923
|
handleMouseLeave();
|
924
|
-
(_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0
|
925
|
-
(_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0
|
924
|
+
(_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
|
925
|
+
(_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
|
926
926
|
};
|
927
927
|
return {
|
928
928
|
destroyInstance: destroyInstance,
|
@@ -936,9 +936,9 @@ var ellipsis = {
|
|
936
936
|
};
|
937
937
|
/* harmony default export */ const src_ellipsis = (ellipsis);
|
938
938
|
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
939
|
-
var normalize_wheel = __webpack_require__(
|
939
|
+
var normalize_wheel = __webpack_require__(8283);
|
940
940
|
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
941
|
-
;//
|
941
|
+
;// ../../packages/directives/src/mousewheel.ts
|
942
942
|
/*
|
943
943
|
* Tencent is pleased to support the open source community by making
|
944
944
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -970,7 +970,7 @@ var mousewheelHandler = function mousewheelHandler(element, callback) {
|
|
970
970
|
if (element !== null && element !== void 0 && element.addEventListener) {
|
971
971
|
element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
|
972
972
|
var normalized = normalize_wheel_default()(e);
|
973
|
-
callback === null || callback === void 0
|
973
|
+
callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
|
974
974
|
});
|
975
975
|
}
|
976
976
|
};
|
@@ -980,29 +980,29 @@ var mousewheel = {
|
|
980
980
|
}
|
981
981
|
};
|
982
982
|
/* harmony default export */ const src_mousewheel = (mousewheel);
|
983
|
-
;//
|
984
|
-
|
985
|
-
function
|
986
|
-
if (
|
987
|
-
var
|
988
|
-
if (
|
989
|
-
var
|
990
|
-
if (
|
983
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
984
|
+
|
985
|
+
function toPrimitive(t, r) {
|
986
|
+
if ("object" != _typeof(t) || !t) return t;
|
987
|
+
var e = t[Symbol.toPrimitive];
|
988
|
+
if (void 0 !== e) {
|
989
|
+
var i = e.call(t, r || "default");
|
990
|
+
if ("object" != _typeof(i)) return i;
|
991
991
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
992
992
|
}
|
993
|
-
return (
|
993
|
+
return ("string" === r ? String : Number)(t);
|
994
994
|
}
|
995
|
-
;//
|
995
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
996
996
|
|
997
997
|
|
998
|
-
function
|
999
|
-
var
|
1000
|
-
return _typeof(
|
998
|
+
function toPropertyKey(t) {
|
999
|
+
var i = toPrimitive(t, "string");
|
1000
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
1001
1001
|
}
|
1002
|
-
;//
|
1002
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1003
1003
|
|
1004
1004
|
function _defineProperty(obj, key, value) {
|
1005
|
-
key =
|
1005
|
+
key = toPropertyKey(key);
|
1006
1006
|
if (key in obj) {
|
1007
1007
|
Object.defineProperty(obj, key, {
|
1008
1008
|
value: value,
|
@@ -1015,22 +1015,22 @@ function _defineProperty(obj, key, value) {
|
|
1015
1015
|
}
|
1016
1016
|
return obj;
|
1017
1017
|
}
|
1018
|
-
;//
|
1018
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1019
1019
|
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
1020
1020
|
if (len == null || len > arr.length) len = arr.length;
|
1021
1021
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1022
1022
|
return arr2;
|
1023
1023
|
}
|
1024
|
-
;//
|
1024
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1025
1025
|
|
1026
1026
|
function _arrayWithoutHoles(arr) {
|
1027
1027
|
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
1028
1028
|
}
|
1029
|
-
;//
|
1029
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1030
1030
|
function _iterableToArray(iter) {
|
1031
1031
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1032
1032
|
}
|
1033
|
-
;//
|
1033
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1034
1034
|
|
1035
1035
|
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
1036
1036
|
if (!o) return;
|
@@ -1040,11 +1040,11 @@ function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
1040
1040
|
if (n === "Map" || n === "Set") return Array.from(o);
|
1041
1041
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1042
1042
|
}
|
1043
|
-
;//
|
1043
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1044
1044
|
function _nonIterableSpread() {
|
1045
1045
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1046
1046
|
}
|
1047
|
-
;//
|
1047
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1048
1048
|
|
1049
1049
|
|
1050
1050
|
|
@@ -1052,19 +1052,25 @@ function _nonIterableSpread() {
|
|
1052
1052
|
function _toConsumableArray(arr) {
|
1053
1053
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1054
1054
|
}
|
1055
|
-
;//
|
1056
|
-
var external_vue_x = y => {
|
1057
|
-
var
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
var
|
1066
|
-
const
|
1067
|
-
;//
|
1055
|
+
;// external "vue"
|
1056
|
+
var external_vue_x = (y) => {
|
1057
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1058
|
+
}
|
1059
|
+
var external_vue_y = (x) => (() => (x))
|
1060
|
+
const external_vue_namespaceObject = external_vue_x({ ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render) });
|
1061
|
+
;// external "../shared"
|
1062
|
+
var shared_x = (y) => {
|
1063
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1064
|
+
}
|
1065
|
+
var shared_y = (x) => (() => (x))
|
1066
|
+
const shared_namespaceObject = shared_x({ ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName) });
|
1067
|
+
;// external "@popperjs/core"
|
1068
|
+
var core_x = (y) => {
|
1069
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1070
|
+
}
|
1071
|
+
var core_y = (x) => (() => (x))
|
1072
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
1073
|
+
;// ../../packages/directives/src/tooltips.ts
|
1068
1074
|
|
1069
1075
|
|
1070
1076
|
|
@@ -1350,21 +1356,25 @@ function hide(el) {
|
|
1350
1356
|
if (popper && document.body.contains(popper)) {
|
1351
1357
|
var _popper$parentNode;
|
1352
1358
|
popper.removeAttribute('data-show');
|
1353
|
-
popperInstance === null || popperInstance === void 0
|
1354
|
-
popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0
|
1359
|
+
popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
|
1360
|
+
popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
|
1355
1361
|
onHide();
|
1356
1362
|
}
|
1357
1363
|
}
|
1358
1364
|
/* harmony default export */ const src_tooltips = (tooltips);
|
1359
|
-
;//
|
1360
|
-
var external_loading_x = y => {
|
1361
|
-
var
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1365
|
+
;// external "../loading"
|
1366
|
+
var external_loading_x = (y) => {
|
1367
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1368
|
+
}
|
1369
|
+
var external_loading_y = (x) => (() => (x))
|
1370
|
+
const external_loading_namespaceObject = external_loading_x({ ["vBkloading"]: () => (__WEBPACK_EXTERNAL_MODULE__loading_4d683b23__.vBkloading) });
|
1371
|
+
;// external "../overflow-title"
|
1372
|
+
var external_overflow_title_x = (y) => {
|
1373
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1374
|
+
}
|
1375
|
+
var external_overflow_title_y = (x) => (() => (x))
|
1376
|
+
const external_overflow_title_namespaceObject = external_overflow_title_x({ ["overflowTitle"]: () => (__WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__.overflowTitle) });
|
1377
|
+
;// ../../packages/directives/src/index.ts
|
1368
1378
|
/*
|
1369
1379
|
* Tencent is pleased to support the open source community by making
|
1370
1380
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1397,8 +1407,6 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ ["ov
|
|
1397
1407
|
|
1398
1408
|
|
1399
1409
|
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
1400
|
-
})();
|
1401
|
-
|
1402
1410
|
var __webpack_exports__bkEllipsis = __webpack_exports__.bkEllipsis;
|
1403
1411
|
var __webpack_exports__bkEllipsisInstance = __webpack_exports__.bkEllipsisInstance;
|
1404
1412
|
var __webpack_exports__bkLoading = __webpack_exports__.bkLoading;
|