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/table/index.js
CHANGED
@@ -4,7 +4,10 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../sh
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
7
|
-
import * as
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
8
11
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
9
12
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
|
10
13
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
@@ -31,10 +34,356 @@ import "../input/input.less";
|
|
31
34
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__ from "../icon/";
|
32
35
|
/******/ var __webpack_modules__ = ({
|
33
36
|
|
34
|
-
/***/
|
37
|
+
/***/ 1043:
|
38
|
+
/***/ ((module) => {
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Copyright (c) 2015, Facebook, Inc.
|
42
|
+
* All rights reserved.
|
43
|
+
*
|
44
|
+
* This source code is licensed under the BSD-style license found in the
|
45
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
46
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
47
|
+
*
|
48
|
+
* @providesModule ExecutionEnvironment
|
49
|
+
*/
|
50
|
+
|
51
|
+
/*jslint evil: true */
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
var canUseDOM = !!(
|
56
|
+
typeof window !== 'undefined' &&
|
57
|
+
window.document &&
|
58
|
+
window.document.createElement
|
59
|
+
);
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Simple, lightweight module assisting with the detection and context of
|
63
|
+
* Worker. Helps avoid circular dependencies and allows code to reason about
|
64
|
+
* whether or not they are in a Worker, even if they never include the main
|
65
|
+
* `ReactWorker` dependency.
|
66
|
+
*/
|
67
|
+
var ExecutionEnvironment = {
|
68
|
+
|
69
|
+
canUseDOM: canUseDOM,
|
70
|
+
|
71
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
72
|
+
|
73
|
+
canUseEventListeners:
|
74
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
75
|
+
|
76
|
+
canUseViewport: canUseDOM && !!window.screen,
|
77
|
+
|
78
|
+
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
79
|
+
|
80
|
+
};
|
81
|
+
|
82
|
+
module.exports = ExecutionEnvironment;
|
83
|
+
|
84
|
+
|
85
|
+
/***/ }),
|
86
|
+
|
87
|
+
/***/ 2586:
|
88
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Copyright 2013-2015, Facebook, Inc.
|
92
|
+
* All rights reserved.
|
93
|
+
*
|
94
|
+
* This source code is licensed under the BSD-style license found in the
|
95
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
96
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
97
|
+
*
|
98
|
+
* @providesModule isEventSupported
|
99
|
+
*/
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
var ExecutionEnvironment = __webpack_require__(1043);
|
104
|
+
|
105
|
+
var useHasFeature;
|
106
|
+
if (ExecutionEnvironment.canUseDOM) {
|
107
|
+
useHasFeature =
|
108
|
+
document.implementation &&
|
109
|
+
document.implementation.hasFeature &&
|
110
|
+
// always returns true in newer browsers as per the standard.
|
111
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
112
|
+
document.implementation.hasFeature('', '') !== true;
|
113
|
+
}
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Checks if an event is supported in the current execution environment.
|
117
|
+
*
|
118
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
119
|
+
* `reset`, `load`, `error`, and `select`.
|
120
|
+
*
|
121
|
+
* Borrows from Modernizr.
|
122
|
+
*
|
123
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
124
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
125
|
+
* @return {boolean} True if the event is supported.
|
126
|
+
* @internal
|
127
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
128
|
+
*/
|
129
|
+
function isEventSupported(eventNameSuffix, capture) {
|
130
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
131
|
+
capture && !('addEventListener' in document)) {
|
132
|
+
return false;
|
133
|
+
}
|
134
|
+
|
135
|
+
var eventName = 'on' + eventNameSuffix;
|
136
|
+
var isSupported = eventName in document;
|
137
|
+
|
138
|
+
if (!isSupported) {
|
139
|
+
var element = document.createElement('div');
|
140
|
+
element.setAttribute(eventName, 'return;');
|
141
|
+
isSupported = typeof element[eventName] === 'function';
|
142
|
+
}
|
143
|
+
|
144
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
145
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
146
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
147
|
+
}
|
148
|
+
|
149
|
+
return isSupported;
|
150
|
+
}
|
151
|
+
|
152
|
+
module.exports = isEventSupported;
|
153
|
+
|
154
|
+
|
155
|
+
/***/ }),
|
156
|
+
|
157
|
+
/***/ 4319:
|
158
|
+
/***/ ((module) => {
|
159
|
+
|
160
|
+
function _typeof(o) {
|
161
|
+
"@babel/helpers - typeof";
|
162
|
+
|
163
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
164
|
+
return typeof o;
|
165
|
+
} : function (o) {
|
166
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
167
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
168
|
+
}
|
169
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
170
|
+
|
171
|
+
/***/ }),
|
172
|
+
|
173
|
+
/***/ 5022:
|
35
174
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
36
175
|
|
37
|
-
|
176
|
+
/**
|
177
|
+
* Copyright (c) 2015, Facebook, Inc.
|
178
|
+
* All rights reserved.
|
179
|
+
*
|
180
|
+
* This source code is licensed under the BSD-style license found in the
|
181
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
182
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
183
|
+
*
|
184
|
+
* @providesModule normalizeWheel
|
185
|
+
* @typechecks
|
186
|
+
*/
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
191
|
+
|
192
|
+
var isEventSupported = __webpack_require__(2586);
|
193
|
+
|
194
|
+
|
195
|
+
// Reasonable defaults
|
196
|
+
var PIXEL_STEP = 10;
|
197
|
+
var LINE_HEIGHT = 40;
|
198
|
+
var PAGE_HEIGHT = 800;
|
199
|
+
|
200
|
+
/**
|
201
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
202
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
203
|
+
* your questions.
|
204
|
+
*
|
205
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
206
|
+
* like your bestest friend. * hugs *
|
207
|
+
*
|
208
|
+
* As of today, there are 4 DOM event types you can listen to:
|
209
|
+
*
|
210
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
211
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
212
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
213
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
214
|
+
*
|
215
|
+
* So what to do? The is the best:
|
216
|
+
*
|
217
|
+
* normalizeWheel.getEventType();
|
218
|
+
*
|
219
|
+
* In your event callback, use this code to get sane interpretation of the
|
220
|
+
* deltas. This code will return an object with properties:
|
221
|
+
*
|
222
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
223
|
+
* spinY -- " - y plane
|
224
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
225
|
+
* pixelY -- " - y plane
|
226
|
+
*
|
227
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
228
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
229
|
+
* significantly on different platforms and browsers, forgetting that you can
|
230
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
231
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
232
|
+
* linear speed or acceleration.
|
233
|
+
*
|
234
|
+
* This code does its best to normalize the deltas for you:
|
235
|
+
*
|
236
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
237
|
+
* dragged). This is super useful for zoom support where you want to
|
238
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
239
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
240
|
+
* resolve a single slow step on a wheel to 1.
|
241
|
+
*
|
242
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
243
|
+
* get the crazy differences between browsers, but at least it'll be in
|
244
|
+
* pixels!
|
245
|
+
*
|
246
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
247
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
248
|
+
* This matches the newer 'wheel' event.
|
249
|
+
*
|
250
|
+
* Why are there spinX, spinY (or pixels)?
|
251
|
+
*
|
252
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
253
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
254
|
+
*
|
255
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
256
|
+
*
|
257
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
258
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
259
|
+
* you know.
|
260
|
+
*
|
261
|
+
* Implementation info:
|
262
|
+
*
|
263
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
264
|
+
* average mouse:
|
265
|
+
*
|
266
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
267
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
268
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
269
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
270
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
271
|
+
*
|
272
|
+
* On the trackpad:
|
273
|
+
*
|
274
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
275
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
276
|
+
*
|
277
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
278
|
+
* also missing delta values.
|
279
|
+
*
|
280
|
+
* The 'wheel' event is more standard:
|
281
|
+
*
|
282
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
283
|
+
*
|
284
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
285
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
286
|
+
* backward compatibility with older events. Those other values help us
|
287
|
+
* better normalize spin speed. Example of what the browsers provide:
|
288
|
+
*
|
289
|
+
* | event.wheelDelta | event.detail
|
290
|
+
* ------------------+------------------+--------------
|
291
|
+
* Safari v5/OS X | -120 | 0
|
292
|
+
* Safari v5/Win7 | -120 | 0
|
293
|
+
* Chrome v17/OS X | -120 | 0
|
294
|
+
* Chrome v17/Win7 | -120 | 0
|
295
|
+
* IE9/Win7 | -120 | undefined
|
296
|
+
* Firefox v4/OS X | undefined | 1
|
297
|
+
* Firefox v4/Win7 | undefined | 3
|
298
|
+
*
|
299
|
+
*/
|
300
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
301
|
+
var sX = 0, sY = 0, // spinX, spinY
|
302
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
303
|
+
|
304
|
+
// Legacy
|
305
|
+
if ('detail' in event) { sY = event.detail; }
|
306
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
307
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
308
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
309
|
+
|
310
|
+
// side scrolling on FF with DOMMouseScroll
|
311
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
312
|
+
sX = sY;
|
313
|
+
sY = 0;
|
314
|
+
}
|
315
|
+
|
316
|
+
pX = sX * PIXEL_STEP;
|
317
|
+
pY = sY * PIXEL_STEP;
|
318
|
+
|
319
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
320
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
321
|
+
|
322
|
+
if ((pX || pY) && event.deltaMode) {
|
323
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
324
|
+
pX *= LINE_HEIGHT;
|
325
|
+
pY *= LINE_HEIGHT;
|
326
|
+
} else { // delta in PAGE units
|
327
|
+
pX *= PAGE_HEIGHT;
|
328
|
+
pY *= PAGE_HEIGHT;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
|
332
|
+
// Fall-back if spin cannot be determined
|
333
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
334
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
335
|
+
|
336
|
+
return { spinX : sX,
|
337
|
+
spinY : sY,
|
338
|
+
pixelX : pX,
|
339
|
+
pixelY : pY };
|
340
|
+
}
|
341
|
+
|
342
|
+
|
343
|
+
/**
|
344
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
345
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
346
|
+
* 'wheel' event, making spin speed determination impossible.
|
347
|
+
*/
|
348
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
349
|
+
return (UserAgent_DEPRECATED.firefox())
|
350
|
+
? 'DOMMouseScroll'
|
351
|
+
: (isEventSupported('wheel'))
|
352
|
+
? 'wheel'
|
353
|
+
: 'mousewheel';
|
354
|
+
};
|
355
|
+
|
356
|
+
module.exports = normalizeWheel;
|
357
|
+
|
358
|
+
|
359
|
+
/***/ }),
|
360
|
+
|
361
|
+
/***/ 5799:
|
362
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
363
|
+
|
364
|
+
// TODO(Babel 8): Remove this file.
|
365
|
+
|
366
|
+
var runtime = __webpack_require__(7048)();
|
367
|
+
module.exports = runtime;
|
368
|
+
|
369
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
370
|
+
try {
|
371
|
+
regeneratorRuntime = runtime;
|
372
|
+
} catch (accidentalStrictMode) {
|
373
|
+
if (typeof globalThis === "object") {
|
374
|
+
globalThis.regeneratorRuntime = runtime;
|
375
|
+
} else {
|
376
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
377
|
+
}
|
378
|
+
}
|
379
|
+
|
380
|
+
|
381
|
+
/***/ }),
|
382
|
+
|
383
|
+
/***/ 7048:
|
384
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
385
|
+
|
386
|
+
var _typeof = (__webpack_require__(4319)["default"]);
|
38
387
|
function _regeneratorRuntime() {
|
39
388
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
40
389
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
@@ -341,41 +690,300 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
341
690
|
|
342
691
|
/***/ }),
|
343
692
|
|
344
|
-
/***/
|
693
|
+
/***/ 7416:
|
345
694
|
/***/ ((module) => {
|
346
695
|
|
347
|
-
|
348
|
-
|
696
|
+
/**
|
697
|
+
* Copyright 2004-present Facebook. All Rights Reserved.
|
698
|
+
*
|
699
|
+
* @providesModule UserAgent_DEPRECATED
|
700
|
+
*/
|
349
701
|
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
702
|
+
/**
|
703
|
+
* Provides entirely client-side User Agent and OS detection. You should prefer
|
704
|
+
* the non-deprecated UserAgent module when possible, which exposes our
|
705
|
+
* authoritative server-side PHP-based detection to the client.
|
706
|
+
*
|
707
|
+
* Usage is straightforward:
|
708
|
+
*
|
709
|
+
* if (UserAgent_DEPRECATED.ie()) {
|
710
|
+
* // IE
|
711
|
+
* }
|
712
|
+
*
|
713
|
+
* You can also do version checks:
|
714
|
+
*
|
715
|
+
* if (UserAgent_DEPRECATED.ie() >= 7) {
|
716
|
+
* // IE7 or better
|
717
|
+
* }
|
718
|
+
*
|
719
|
+
* The browser functions will return NaN if the browser does not match, so
|
720
|
+
* you can also do version compares the other way:
|
721
|
+
*
|
722
|
+
* if (UserAgent_DEPRECATED.ie() < 7) {
|
723
|
+
* // IE6 or worse
|
724
|
+
* }
|
725
|
+
*
|
726
|
+
* Note that the version is a float and may include a minor version number,
|
727
|
+
* so you should always use range operators to perform comparisons, not
|
728
|
+
* strict equality.
|
729
|
+
*
|
730
|
+
* **Note:** You should **strongly** prefer capability detection to browser
|
731
|
+
* version detection where it's reasonable:
|
732
|
+
*
|
733
|
+
* http://www.quirksmode.org/js/support.html
|
734
|
+
*
|
735
|
+
* Further, we have a large number of mature wrapper functions and classes
|
736
|
+
* which abstract away many browser irregularities. Check the documentation,
|
737
|
+
* grep for things, or ask on javascript@lists.facebook.com before writing yet
|
738
|
+
* another copy of "event || window.event".
|
739
|
+
*
|
740
|
+
*/
|
357
741
|
|
358
|
-
|
742
|
+
var _populated = false;
|
359
743
|
|
360
|
-
|
361
|
-
|
744
|
+
// Browsers
|
745
|
+
var _ie, _firefox, _opera, _webkit, _chrome;
|
362
746
|
|
363
|
-
//
|
747
|
+
// Actual IE browser for compatibility mode
|
748
|
+
var _ie_real_version;
|
364
749
|
|
365
|
-
|
366
|
-
|
750
|
+
// Platforms
|
751
|
+
var _osx, _windows, _linux, _android;
|
367
752
|
|
368
|
-
//
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
753
|
+
// Architectures
|
754
|
+
var _win64;
|
755
|
+
|
756
|
+
// Devices
|
757
|
+
var _iphone, _ipad, _native;
|
758
|
+
|
759
|
+
var _mobile;
|
760
|
+
|
761
|
+
function _populate() {
|
762
|
+
if (_populated) {
|
763
|
+
return;
|
764
|
+
}
|
765
|
+
|
766
|
+
_populated = true;
|
767
|
+
|
768
|
+
// To work around buggy JS libraries that can't handle multi-digit
|
769
|
+
// version numbers, Opera 10's user agent string claims it's Opera
|
770
|
+
// 9, then later includes a Version/X.Y field:
|
771
|
+
//
|
772
|
+
// Opera/9.80 (foo) Presto/2.2.15 Version/10.10
|
773
|
+
var uas = navigator.userAgent;
|
774
|
+
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);
|
775
|
+
var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
|
776
|
+
|
777
|
+
_iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
|
778
|
+
_ipad = /\b(iP[ao]d)/.exec(uas);
|
779
|
+
_android = /Android/i.exec(uas);
|
780
|
+
_native = /FBAN\/\w+;/i.exec(uas);
|
781
|
+
_mobile = /Mobile/i.exec(uas);
|
782
|
+
|
783
|
+
// Note that the IE team blog would have you believe you should be checking
|
784
|
+
// for 'Win64; x64'. But MSDN then reveals that you can actually be coming
|
785
|
+
// from either x64 or ia64; so ultimately, you should just check for Win64
|
786
|
+
// as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
|
787
|
+
// Windows will send 'WOW64' instead.
|
788
|
+
_win64 = !!(/Win64/.exec(uas));
|
789
|
+
|
790
|
+
if (agent) {
|
791
|
+
_ie = agent[1] ? parseFloat(agent[1]) : (
|
792
|
+
agent[5] ? parseFloat(agent[5]) : NaN);
|
793
|
+
// IE compatibility mode
|
794
|
+
if (_ie && document && document.documentMode) {
|
795
|
+
_ie = document.documentMode;
|
796
|
+
}
|
797
|
+
// grab the "true" ie version from the trident token if available
|
798
|
+
var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
|
799
|
+
_ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
|
800
|
+
|
801
|
+
_firefox = agent[2] ? parseFloat(agent[2]) : NaN;
|
802
|
+
_opera = agent[3] ? parseFloat(agent[3]) : NaN;
|
803
|
+
_webkit = agent[4] ? parseFloat(agent[4]) : NaN;
|
804
|
+
if (_webkit) {
|
805
|
+
// We do not add the regexp to the above test, because it will always
|
806
|
+
// match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
|
807
|
+
// the userAgent string.
|
808
|
+
agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
|
809
|
+
_chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
|
810
|
+
} else {
|
811
|
+
_chrome = NaN;
|
812
|
+
}
|
374
813
|
} else {
|
375
|
-
|
814
|
+
_ie = _firefox = _opera = _chrome = _webkit = NaN;
|
815
|
+
}
|
816
|
+
|
817
|
+
if (os) {
|
818
|
+
if (os[1]) {
|
819
|
+
// Detect OS X version. If no version number matches, set _osx to true.
|
820
|
+
// Version examples: 10, 10_6_1, 10.7
|
821
|
+
// Parses version number as a float, taking only first two sets of
|
822
|
+
// digits. If only one set of digits is found, returns just the major
|
823
|
+
// version number.
|
824
|
+
var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
|
825
|
+
|
826
|
+
_osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
|
827
|
+
} else {
|
828
|
+
_osx = false;
|
829
|
+
}
|
830
|
+
_windows = !!os[2];
|
831
|
+
_linux = !!os[3];
|
832
|
+
} else {
|
833
|
+
_osx = _windows = _linux = false;
|
376
834
|
}
|
377
835
|
}
|
378
836
|
|
837
|
+
var UserAgent_DEPRECATED = {
|
838
|
+
|
839
|
+
/**
|
840
|
+
* Check if the UA is Internet Explorer.
|
841
|
+
*
|
842
|
+
*
|
843
|
+
* @return float|NaN Version number (if match) or NaN.
|
844
|
+
*/
|
845
|
+
ie: function() {
|
846
|
+
return _populate() || _ie;
|
847
|
+
},
|
848
|
+
|
849
|
+
/**
|
850
|
+
* Check if we're in Internet Explorer compatibility mode.
|
851
|
+
*
|
852
|
+
* @return bool true if in compatibility mode, false if
|
853
|
+
* not compatibility mode or not ie
|
854
|
+
*/
|
855
|
+
ieCompatibilityMode: function() {
|
856
|
+
return _populate() || (_ie_real_version > _ie);
|
857
|
+
},
|
858
|
+
|
859
|
+
|
860
|
+
/**
|
861
|
+
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
862
|
+
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
863
|
+
* this when we don't need it -- tracked by #601957.
|
864
|
+
*/
|
865
|
+
ie64: function() {
|
866
|
+
return UserAgent_DEPRECATED.ie() && _win64;
|
867
|
+
},
|
868
|
+
|
869
|
+
/**
|
870
|
+
* Check if the UA is Firefox.
|
871
|
+
*
|
872
|
+
*
|
873
|
+
* @return float|NaN Version number (if match) or NaN.
|
874
|
+
*/
|
875
|
+
firefox: function() {
|
876
|
+
return _populate() || _firefox;
|
877
|
+
},
|
878
|
+
|
879
|
+
|
880
|
+
/**
|
881
|
+
* Check if the UA is Opera.
|
882
|
+
*
|
883
|
+
*
|
884
|
+
* @return float|NaN Version number (if match) or NaN.
|
885
|
+
*/
|
886
|
+
opera: function() {
|
887
|
+
return _populate() || _opera;
|
888
|
+
},
|
889
|
+
|
890
|
+
|
891
|
+
/**
|
892
|
+
* Check if the UA is WebKit.
|
893
|
+
*
|
894
|
+
*
|
895
|
+
* @return float|NaN Version number (if match) or NaN.
|
896
|
+
*/
|
897
|
+
webkit: function() {
|
898
|
+
return _populate() || _webkit;
|
899
|
+
},
|
900
|
+
|
901
|
+
/**
|
902
|
+
* For Push
|
903
|
+
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
904
|
+
*/
|
905
|
+
safari: function() {
|
906
|
+
return UserAgent_DEPRECATED.webkit();
|
907
|
+
},
|
908
|
+
|
909
|
+
/**
|
910
|
+
* Check if the UA is a Chrome browser.
|
911
|
+
*
|
912
|
+
*
|
913
|
+
* @return float|NaN Version number (if match) or NaN.
|
914
|
+
*/
|
915
|
+
chrome : function() {
|
916
|
+
return _populate() || _chrome;
|
917
|
+
},
|
918
|
+
|
919
|
+
|
920
|
+
/**
|
921
|
+
* Check if the user is running Windows.
|
922
|
+
*
|
923
|
+
* @return bool `true' if the user's OS is Windows.
|
924
|
+
*/
|
925
|
+
windows: function() {
|
926
|
+
return _populate() || _windows;
|
927
|
+
},
|
928
|
+
|
929
|
+
|
930
|
+
/**
|
931
|
+
* Check if the user is running Mac OS X.
|
932
|
+
*
|
933
|
+
* @return float|bool Returns a float if a version number is detected,
|
934
|
+
* otherwise true/false.
|
935
|
+
*/
|
936
|
+
osx: function() {
|
937
|
+
return _populate() || _osx;
|
938
|
+
},
|
939
|
+
|
940
|
+
/**
|
941
|
+
* Check if the user is running Linux.
|
942
|
+
*
|
943
|
+
* @return bool `true' if the user's OS is some flavor of Linux.
|
944
|
+
*/
|
945
|
+
linux: function() {
|
946
|
+
return _populate() || _linux;
|
947
|
+
},
|
948
|
+
|
949
|
+
/**
|
950
|
+
* Check if the user is running on an iPhone or iPod platform.
|
951
|
+
*
|
952
|
+
* @return bool `true' if the user is running some flavor of the
|
953
|
+
* iPhone OS.
|
954
|
+
*/
|
955
|
+
iphone: function() {
|
956
|
+
return _populate() || _iphone;
|
957
|
+
},
|
958
|
+
|
959
|
+
mobile: function() {
|
960
|
+
return _populate() || (_iphone || _ipad || _android || _mobile);
|
961
|
+
},
|
962
|
+
|
963
|
+
nativeApp: function() {
|
964
|
+
// webviews inside of the native apps
|
965
|
+
return _populate() || _native;
|
966
|
+
},
|
967
|
+
|
968
|
+
android: function() {
|
969
|
+
return _populate() || _android;
|
970
|
+
},
|
971
|
+
|
972
|
+
ipad: function() {
|
973
|
+
return _populate() || _ipad;
|
974
|
+
}
|
975
|
+
};
|
976
|
+
|
977
|
+
module.exports = UserAgent_DEPRECATED;
|
978
|
+
|
979
|
+
|
980
|
+
/***/ }),
|
981
|
+
|
982
|
+
/***/ 8283:
|
983
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
984
|
+
|
985
|
+
module.exports = __webpack_require__(5022);
|
986
|
+
|
379
987
|
|
380
988
|
/***/ })
|
381
989
|
|
@@ -449,8 +1057,6 @@ try {
|
|
449
1057
|
/******/
|
450
1058
|
/************************************************************************/
|
451
1059
|
var __webpack_exports__ = {};
|
452
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
453
|
-
(() => {
|
454
1060
|
|
455
1061
|
// EXPORTS
|
456
1062
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -459,23 +1065,29 @@ __webpack_require__.d(__webpack_exports__, {
|
|
459
1065
|
"default": () => (/* binding */ src)
|
460
1066
|
});
|
461
1067
|
|
462
|
-
;//
|
463
|
-
var x = y => {
|
464
|
-
var
|
465
|
-
|
466
|
-
|
1068
|
+
;// external "../shared"
|
1069
|
+
var x = (y) => {
|
1070
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1071
|
+
}
|
1072
|
+
var y = (x) => (() => (x))
|
1073
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["RenderType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["classes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes), ["hasOverflowEllipsis"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis), ["isElement"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["throttle"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.throttle), ["withInstallProps"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps) });
|
1074
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
|
467
1075
|
function _objectDestructuringEmpty(obj) {
|
468
1076
|
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
469
1077
|
}
|
470
|
-
;//
|
471
|
-
var external_vue_x = y => {
|
472
|
-
var
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
1078
|
+
;// external "vue"
|
1079
|
+
var external_vue_x = (y) => {
|
1080
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1081
|
+
}
|
1082
|
+
var external_vue_y = (x) => (() => (x))
|
1083
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Fragment), ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createTextVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["getCurrentInstance"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["inject"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.inject), ["isProxy"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.isProxy), ["isRef"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.isRef), ["isVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.isVNode), ["mergeProps"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.mergeProps), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onBeforeUnmount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["onUnmounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted), ["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), ["toRaw"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRaw), ["toRef"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRef), ["unref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.unref), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
1084
|
+
;// external "lodash/isEqual"
|
1085
|
+
var isEqual_x = (y) => {
|
1086
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1087
|
+
}
|
1088
|
+
var isEqual_y = (x) => (() => (x))
|
1089
|
+
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"]) });
|
1090
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
479
1091
|
function typeof_typeof(o) {
|
480
1092
|
"@babel/helpers - typeof";
|
481
1093
|
|
@@ -485,7 +1097,7 @@ function typeof_typeof(o) {
|
|
485
1097
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
486
1098
|
}, typeof_typeof(o);
|
487
1099
|
}
|
488
|
-
;//
|
1100
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
489
1101
|
|
490
1102
|
function toPrimitive(t, r) {
|
491
1103
|
if ("object" != typeof_typeof(t) || !t) return t;
|
@@ -497,14 +1109,14 @@ function toPrimitive(t, r) {
|
|
497
1109
|
}
|
498
1110
|
return ("string" === r ? String : Number)(t);
|
499
1111
|
}
|
500
|
-
;//
|
1112
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
501
1113
|
|
502
1114
|
|
503
1115
|
function toPropertyKey(t) {
|
504
1116
|
var i = toPrimitive(t, "string");
|
505
1117
|
return "symbol" == typeof_typeof(i) ? i : String(i);
|
506
1118
|
}
|
507
|
-
;//
|
1119
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
508
1120
|
|
509
1121
|
function defineProperty_defineProperty(obj, key, value) {
|
510
1122
|
key = toPropertyKey(key);
|
@@ -520,7 +1132,7 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
520
1132
|
}
|
521
1133
|
return obj;
|
522
1134
|
}
|
523
|
-
;//
|
1135
|
+
;// ../../packages/table/src/const.ts
|
524
1136
|
|
525
1137
|
/*
|
526
1138
|
* Tencent is pleased to support the open source community by making
|
@@ -686,11 +1298,13 @@ var CHECK_ALL_OBJ = {};
|
|
686
1298
|
* 是否设置了colspan或者rowspan
|
687
1299
|
*/
|
688
1300
|
var NEED_COL_ROW_SPAN = {};
|
689
|
-
;//
|
690
|
-
var external_vue_types_x = y => {
|
691
|
-
var
|
692
|
-
|
693
|
-
|
1301
|
+
;// external "vue-types"
|
1302
|
+
var external_vue_types_x = (y) => {
|
1303
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1304
|
+
}
|
1305
|
+
var external_vue_types_y = (x) => (() => (x))
|
1306
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["string"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.string), ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
|
1307
|
+
;// ../../packages/table/src/props.ts
|
694
1308
|
|
695
1309
|
|
696
1310
|
|
@@ -1083,10 +1697,357 @@ var tableProps = {
|
|
1083
1697
|
type: 'default',
|
1084
1698
|
cellRender: undefined
|
1085
1699
|
}
|
1086
|
-
})
|
1700
|
+
})
|
1701
|
+
};
|
1702
|
+
;// ../../packages/table/src/components/table-column.tsx
|
1703
|
+
|
1704
|
+
/*
|
1705
|
+
* Tencent is pleased to support the open source community by making
|
1706
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1707
|
+
*
|
1708
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1709
|
+
*
|
1710
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1711
|
+
*
|
1712
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1713
|
+
*
|
1714
|
+
* ---------------------------------------------------
|
1715
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1716
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1717
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1718
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1719
|
+
*
|
1720
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1721
|
+
* the Software.
|
1722
|
+
*
|
1723
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1724
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1725
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1726
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1727
|
+
* IN THE SOFTWARE.
|
1728
|
+
*/
|
1729
|
+
|
1730
|
+
|
1731
|
+
|
1732
|
+
|
1733
|
+
|
1734
|
+
var TableColumnProp = {
|
1735
|
+
label: LabelFunctionStringType,
|
1736
|
+
field: LabelFunctionStringType,
|
1737
|
+
render: RenderFunctionStringType,
|
1738
|
+
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
1739
|
+
minWidth: StringNumberType(COL_MIN_WIDTH),
|
1740
|
+
columnKey: shared_namespaceObject.PropTypes.string.def(''),
|
1741
|
+
showOverflowTooltip: IOverflowTooltipPropType,
|
1742
|
+
type: columnType,
|
1743
|
+
resizable: shared_namespaceObject.PropTypes.bool.def(true),
|
1744
|
+
fixed: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, fixedType]).def(false),
|
1745
|
+
sort: ISortType,
|
1746
|
+
filter: IFilterType,
|
1747
|
+
colspan: SpanFunctionStringType.def(1),
|
1748
|
+
rowspan: SpanFunctionStringType.def(1),
|
1749
|
+
align: TableAlign,
|
1750
|
+
className: RowClassFunctionStringType,
|
1751
|
+
prop: LabelFunctionStringType,
|
1752
|
+
index: shared_namespaceObject.PropTypes.number.def(undefined)
|
1753
|
+
};
|
1754
|
+
/* harmony default export */ const table_column = ((0,external_vue_namespaceObject.defineComponent)({
|
1755
|
+
name: 'TableColumn',
|
1756
|
+
props: TableColumnProp,
|
1757
|
+
setup: function setup(props, _ref) {
|
1758
|
+
_objectDestructuringEmpty(_ref);
|
1759
|
+
var initTableColumns = (0,external_vue_namespaceObject.inject)(PROVIDE_KEY_INIT_COL, function () {});
|
1760
|
+
var lastPropsVal = {};
|
1761
|
+
var isPropsEqual = function isPropsEqual(sorce, target) {
|
1762
|
+
var rawProps = (0,external_vue_namespaceObject.toRaw)(target);
|
1763
|
+
var keys = Object.keys(rawProps);
|
1764
|
+
return keys.every(function (key) {
|
1765
|
+
if (typeof rawProps[key] === 'function') {
|
1766
|
+
return sorce[key] !== undefined;
|
1767
|
+
}
|
1768
|
+
if (key === 'children') {
|
1769
|
+
return true;
|
1770
|
+
}
|
1771
|
+
return (0,isEqual_namespaceObject["default"])(sorce[key], target[key]);
|
1772
|
+
});
|
1773
|
+
};
|
1774
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
1775
|
+
return [props];
|
1776
|
+
}, function () {
|
1777
|
+
if (!isPropsEqual(lastPropsVal, props)) {
|
1778
|
+
initTableColumns();
|
1779
|
+
Object.assign(lastPropsVal, (0,external_vue_namespaceObject.toRaw)(props));
|
1780
|
+
}
|
1781
|
+
}, {
|
1782
|
+
immediate: true,
|
1783
|
+
deep: true
|
1784
|
+
});
|
1785
|
+
(0,external_vue_namespaceObject.onUnmounted)(function () {
|
1786
|
+
initTableColumns();
|
1787
|
+
});
|
1788
|
+
},
|
1789
|
+
render: function render() {
|
1790
|
+
try {
|
1791
|
+
var _this$$slots$default, _this$$slots;
|
1792
|
+
var renderDefault = (_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots, {
|
1793
|
+
row: {},
|
1794
|
+
column: {},
|
1795
|
+
$index: -1
|
1796
|
+
});
|
1797
|
+
var children = [renderDefault];
|
1798
|
+
var vnode = (0,external_vue_namespaceObject.h)('div', children);
|
1799
|
+
return vnode;
|
1800
|
+
} catch (_unused) {
|
1801
|
+
return (0,external_vue_namespaceObject.h)('div', []);
|
1802
|
+
}
|
1803
|
+
}
|
1804
|
+
}));
|
1805
|
+
;// ../../packages/directives/src/clickoutside.ts
|
1806
|
+
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; } } }; }
|
1807
|
+
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); }
|
1808
|
+
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; }
|
1809
|
+
/*
|
1810
|
+
* Tencent is pleased to support the open source community by making
|
1811
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1812
|
+
*
|
1813
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1814
|
+
*
|
1815
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1816
|
+
*
|
1817
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1818
|
+
*
|
1819
|
+
* ---------------------------------------------------
|
1820
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1821
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1822
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1823
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1824
|
+
*
|
1825
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1826
|
+
* the Software.
|
1827
|
+
*
|
1828
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1829
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1830
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1831
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1832
|
+
* IN THE SOFTWARE.
|
1833
|
+
*/
|
1834
|
+
var isElement = function isElement(e) {
|
1835
|
+
if (typeof Element === 'undefined') return false;
|
1836
|
+
return e instanceof Element;
|
1837
|
+
};
|
1838
|
+
var nodeList = new Map();
|
1839
|
+
var startClick;
|
1840
|
+
document.addEventListener('mousedown', function (e) {
|
1841
|
+
return startClick = e;
|
1842
|
+
});
|
1843
|
+
document.addEventListener('mouseup', function (e) {
|
1844
|
+
var _iterator = _createForOfIteratorHelper(nodeList.values()),
|
1845
|
+
_step;
|
1846
|
+
try {
|
1847
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
1848
|
+
var handlers = _step.value;
|
1849
|
+
var _iterator2 = _createForOfIteratorHelper(handlers),
|
1850
|
+
_step2;
|
1851
|
+
try {
|
1852
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
1853
|
+
var documentHandler = _step2.value.documentHandler;
|
1854
|
+
documentHandler(e, startClick);
|
1855
|
+
}
|
1856
|
+
} catch (err) {
|
1857
|
+
_iterator2.e(err);
|
1858
|
+
} finally {
|
1859
|
+
_iterator2.f();
|
1860
|
+
}
|
1861
|
+
}
|
1862
|
+
} catch (err) {
|
1863
|
+
_iterator.e(err);
|
1864
|
+
} finally {
|
1865
|
+
_iterator.f();
|
1866
|
+
}
|
1867
|
+
});
|
1868
|
+
function createDocumentHandler(el, binding) {
|
1869
|
+
var excludes = [];
|
1870
|
+
if (Array.isArray(binding.arg)) {
|
1871
|
+
excludes = binding.arg;
|
1872
|
+
} else if (isElement(binding.arg)) {
|
1873
|
+
excludes.push(binding.arg);
|
1874
|
+
}
|
1875
|
+
return function (mouseup, mousedown) {
|
1876
|
+
var popperRef = binding.instance.popperRef;
|
1877
|
+
var mouseUpTarget = mouseup.target;
|
1878
|
+
var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
|
1879
|
+
var isBound = !binding || !binding.instance;
|
1880
|
+
var isTargetExists = !mouseUpTarget || !mouseDownTarget;
|
1881
|
+
var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
|
1882
|
+
var isSelf = el === mouseUpTarget;
|
1883
|
+
var isTargetExcluded = excludes.length && excludes.some(function (item) {
|
1884
|
+
return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
|
1885
|
+
}) || excludes.length && excludes.includes(mouseDownTarget);
|
1886
|
+
var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
|
1887
|
+
if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
|
1888
|
+
return;
|
1889
|
+
}
|
1890
|
+
binding.value(mouseup, mousedown);
|
1891
|
+
};
|
1892
|
+
}
|
1893
|
+
var ClickOutside = {
|
1894
|
+
beforeMount: function beforeMount(el, binding) {
|
1895
|
+
if (!nodeList.has(el)) {
|
1896
|
+
nodeList.set(el, []);
|
1897
|
+
}
|
1898
|
+
nodeList.get(el).push({
|
1899
|
+
documentHandler: createDocumentHandler(el, binding),
|
1900
|
+
bindingFn: binding.value
|
1901
|
+
});
|
1902
|
+
},
|
1903
|
+
updated: function updated(el, binding) {
|
1904
|
+
if (!nodeList.has(el)) {
|
1905
|
+
nodeList.set(el, []);
|
1906
|
+
}
|
1907
|
+
var handlers = nodeList.get(el);
|
1908
|
+
var oldHandlerIndex = handlers.findIndex(function (item) {
|
1909
|
+
return item.bindingFn === binding.oldValue;
|
1910
|
+
});
|
1911
|
+
var newHandler = {
|
1912
|
+
documentHandler: createDocumentHandler(el, binding),
|
1913
|
+
bindingFn: binding.value
|
1914
|
+
};
|
1915
|
+
if (oldHandlerIndex >= 0) {
|
1916
|
+
// replace the old handler to the new handler
|
1917
|
+
handlers.splice(oldHandlerIndex, 1, newHandler);
|
1918
|
+
} else {
|
1919
|
+
handlers.push(newHandler);
|
1920
|
+
}
|
1921
|
+
},
|
1922
|
+
unmounted: function unmounted(el) {
|
1923
|
+
// remove all listeners when a component unmounted
|
1924
|
+
nodeList["delete"](el);
|
1925
|
+
}
|
1926
|
+
};
|
1927
|
+
ClickOutside.install = function (app) {
|
1928
|
+
app.directive('bkTooltips', ClickOutside);
|
1929
|
+
};
|
1930
|
+
/* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
|
1931
|
+
;// external "../plugin-popover"
|
1932
|
+
var plugin_popover_x = (y) => {
|
1933
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1934
|
+
}
|
1935
|
+
var plugin_popover_y = (x) => (() => (x))
|
1936
|
+
const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
|
1937
|
+
;// ../../packages/directives/src/ellipsis.ts
|
1938
|
+
|
1939
|
+
/*
|
1940
|
+
* Tencent is pleased to support the open source community by making
|
1941
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1942
|
+
*
|
1943
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1944
|
+
*
|
1945
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1946
|
+
*
|
1947
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1948
|
+
*
|
1949
|
+
* ---------------------------------------------------
|
1950
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1951
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1952
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1953
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1954
|
+
*
|
1955
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1956
|
+
* the Software.
|
1957
|
+
*
|
1958
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1959
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1960
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1961
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1962
|
+
* IN THE SOFTWARE.
|
1963
|
+
*/
|
1964
|
+
|
1965
|
+
var resolveOptions = function resolveOptions(el, binding) {
|
1966
|
+
var options = {
|
1967
|
+
content: '',
|
1968
|
+
target: el
|
1969
|
+
};
|
1970
|
+
if (typeof_typeof(binding) === 'object') {
|
1971
|
+
Object.assign(options, binding);
|
1972
|
+
if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
|
1973
|
+
Object.assign(options, binding.popoverOption);
|
1974
|
+
}
|
1975
|
+
} else {
|
1976
|
+
options.content = binding;
|
1977
|
+
}
|
1978
|
+
return options;
|
1087
1979
|
};
|
1088
|
-
|
1089
|
-
|
1980
|
+
var createInstance = function createInstance(el, binding) {
|
1981
|
+
var instance = null;
|
1982
|
+
var createTimer = null;
|
1983
|
+
var hidePopTimer = null;
|
1984
|
+
var options = resolveOptions(el, binding);
|
1985
|
+
var disabled = options.disabled;
|
1986
|
+
if (disabled || instance) {
|
1987
|
+
return;
|
1988
|
+
}
|
1989
|
+
var handleContentEnter = function handleContentEnter() {
|
1990
|
+
hidePopTimer && clearTimeout(hidePopTimer);
|
1991
|
+
hidePopTimer = null;
|
1992
|
+
};
|
1993
|
+
var handleContentLeave = function handleContentLeave() {
|
1994
|
+
var _instance, _instance2;
|
1995
|
+
if (createTimer) {
|
1996
|
+
clearTimeout(createTimer);
|
1997
|
+
}
|
1998
|
+
(_instance = instance) === null || _instance === void 0 || _instance.hide();
|
1999
|
+
(_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
|
2000
|
+
instance = null;
|
2001
|
+
};
|
2002
|
+
var handleMouseEnter = function handleMouseEnter() {
|
2003
|
+
handleContentLeave();
|
2004
|
+
createTimer && clearTimeout(createTimer);
|
2005
|
+
createTimer = setTimeout(function () {
|
2006
|
+
var targetOptions = resolveOptions(el, binding);
|
2007
|
+
targetOptions.isShow = true;
|
2008
|
+
targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
|
2009
|
+
targetOptions.allowHtml = true;
|
2010
|
+
Object.assign(targetOptions, {
|
2011
|
+
onContentMouseenter: handleContentEnter,
|
2012
|
+
onContentMouseleave: handleContentLeave
|
2013
|
+
});
|
2014
|
+
instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
|
2015
|
+
}, 300);
|
2016
|
+
};
|
2017
|
+
var handleMouseLeave = function handleMouseLeave() {
|
2018
|
+
hidePopTimer = setTimeout(function () {
|
2019
|
+
var _instance3, _instance4;
|
2020
|
+
if (createTimer) {
|
2021
|
+
clearTimeout(createTimer);
|
2022
|
+
}
|
2023
|
+
(_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
|
2024
|
+
(_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
|
2025
|
+
instance = null;
|
2026
|
+
}, 120);
|
2027
|
+
};
|
2028
|
+
el.addEventListener('mouseenter', handleMouseEnter);
|
2029
|
+
el.addEventListener('mouseleave', handleMouseLeave);
|
2030
|
+
var destroyInstance = function destroyInstance(element) {
|
2031
|
+
var _ref, _ref2;
|
2032
|
+
handleMouseLeave();
|
2033
|
+
(_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
|
2034
|
+
(_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
|
2035
|
+
};
|
2036
|
+
return {
|
2037
|
+
destroyInstance: destroyInstance,
|
2038
|
+
instance: instance
|
2039
|
+
};
|
2040
|
+
};
|
2041
|
+
var ellipsis = {
|
2042
|
+
mounted: function mounted(el, binding) {
|
2043
|
+
createInstance(el, binding);
|
2044
|
+
}
|
2045
|
+
};
|
2046
|
+
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
2047
|
+
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
2048
|
+
var normalize_wheel = __webpack_require__(8283);
|
2049
|
+
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
2050
|
+
;// ../../packages/directives/src/mousewheel.ts
|
1090
2051
|
/*
|
1091
2052
|
* Tencent is pleased to support the open source community by making
|
1092
2053
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1113,94 +2074,414 @@ var tableProps = {
|
|
1113
2074
|
* IN THE SOFTWARE.
|
1114
2075
|
*/
|
1115
2076
|
|
2077
|
+
var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
2078
|
+
var mousewheelHandler = function mousewheelHandler(element, callback) {
|
2079
|
+
if (element !== null && element !== void 0 && element.addEventListener) {
|
2080
|
+
element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
|
2081
|
+
var normalized = normalize_wheel_default()(e);
|
2082
|
+
callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
|
2083
|
+
});
|
2084
|
+
}
|
2085
|
+
};
|
2086
|
+
var mousewheel = {
|
2087
|
+
beforeMount: function beforeMount(el, binding) {
|
2088
|
+
mousewheelHandler(el, binding.value);
|
2089
|
+
}
|
2090
|
+
};
|
2091
|
+
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
2092
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
2093
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
2094
|
+
if (len == null || len > arr.length) len = arr.length;
|
2095
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
2096
|
+
return arr2;
|
2097
|
+
}
|
2098
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1116
2099
|
|
2100
|
+
function _arrayWithoutHoles(arr) {
|
2101
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
2102
|
+
}
|
2103
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
2104
|
+
function _iterableToArray(iter) {
|
2105
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
2106
|
+
}
|
2107
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1117
2108
|
|
2109
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
2110
|
+
if (!o) return;
|
2111
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
2112
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
2113
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
2114
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
2115
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
2116
|
+
}
|
2117
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
2118
|
+
function _nonIterableSpread() {
|
2119
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
2120
|
+
}
|
2121
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1118
2122
|
|
1119
2123
|
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
2124
|
+
|
2125
|
+
|
2126
|
+
function _toConsumableArray(arr) {
|
2127
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
2128
|
+
}
|
2129
|
+
;// external "@popperjs/core"
|
2130
|
+
var core_x = (y) => {
|
2131
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2132
|
+
}
|
2133
|
+
var core_y = (x) => (() => (x))
|
2134
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
2135
|
+
;// ../../packages/directives/src/tooltips.ts
|
2136
|
+
|
2137
|
+
|
2138
|
+
|
2139
|
+
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; }
|
2140
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2141
|
+
/*
|
2142
|
+
* Tencent is pleased to support the open source community by making
|
2143
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2144
|
+
*
|
2145
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
2146
|
+
*
|
2147
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2148
|
+
*
|
2149
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
2150
|
+
*
|
2151
|
+
* ---------------------------------------------------
|
2152
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
2153
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
2154
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
2155
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2156
|
+
*
|
2157
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2158
|
+
* the Software.
|
2159
|
+
*
|
2160
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2161
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2162
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2163
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2164
|
+
* IN THE SOFTWARE.
|
2165
|
+
*/
|
2166
|
+
|
2167
|
+
|
2168
|
+
|
2169
|
+
var tooltips_nodeList = new WeakMap();
|
2170
|
+
var tooltips = {
|
2171
|
+
beforeMount: function beforeMount(el, binding) {
|
2172
|
+
var opts = getOpts(binding);
|
2173
|
+
var trigger = opts.trigger,
|
2174
|
+
showOnInit = opts.showOnInit;
|
2175
|
+
var popper = renderContent(opts);
|
2176
|
+
var delayTimeout = null;
|
2177
|
+
if (showOnInit) {
|
2178
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
2179
|
+
show(el);
|
2180
|
+
});
|
2181
|
+
}
|
2182
|
+
if (trigger === 'hover') {
|
2183
|
+
var hideTimeout = null;
|
2184
|
+
el.addEventListener('mouseenter', function () {
|
2185
|
+
delayTimeout = setTimeout(function () {
|
2186
|
+
show(el);
|
2187
|
+
clearTimeout(hideTimeout);
|
2188
|
+
clearTimeout(delayTimeout);
|
2189
|
+
}, opts.delay);
|
2190
|
+
});
|
2191
|
+
popper.addEventListener('mouseenter', function () {
|
2192
|
+
clearTimeout(hideTimeout);
|
2193
|
+
});
|
2194
|
+
el.addEventListener('mouseleave', function () {
|
2195
|
+
clearTimeout(delayTimeout);
|
2196
|
+
hideTimeout = setTimeout(function () {
|
2197
|
+
hide(el);
|
2198
|
+
}, 100);
|
2199
|
+
});
|
2200
|
+
el.addEventListener('click', function () {
|
2201
|
+
hide(el);
|
2202
|
+
});
|
2203
|
+
popper.addEventListener('mouseleave', function () {
|
2204
|
+
clearTimeout(delayTimeout);
|
2205
|
+
hideTimeout = setTimeout(function () {
|
2206
|
+
hide(el);
|
2207
|
+
}, 100);
|
2208
|
+
});
|
2209
|
+
} else if (trigger === 'click') {
|
2210
|
+
document.body.addEventListener('click', function (event) {
|
2211
|
+
if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
|
2212
|
+
delayTimeout = setTimeout(function () {
|
2213
|
+
show(el);
|
2214
|
+
clearTimeout(delayTimeout);
|
2215
|
+
}, opts.delay);
|
2216
|
+
} else if (popper.hasAttribute('data-show')) {
|
2217
|
+
hide(el);
|
1156
2218
|
}
|
1157
|
-
return (0,isEqual_namespaceObject["default"])(sorce[key], target[key]);
|
1158
2219
|
});
|
1159
|
-
}
|
1160
|
-
(
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
initTableColumns();
|
1165
|
-
Object.assign(lastPropsVal, (0,external_vue_namespaceObject.toRaw)(props));
|
1166
|
-
}
|
1167
|
-
}, {
|
1168
|
-
immediate: true,
|
1169
|
-
deep: true
|
1170
|
-
});
|
1171
|
-
(0,external_vue_namespaceObject.onUnmounted)(function () {
|
1172
|
-
initTableColumns();
|
2220
|
+
}
|
2221
|
+
tooltips_nodeList.set(el, {
|
2222
|
+
opts: opts,
|
2223
|
+
popper: popper,
|
2224
|
+
popperInstance: null
|
1173
2225
|
});
|
1174
2226
|
},
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
var renderDefault = (_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots, {
|
1179
|
-
row: {},
|
1180
|
-
column: {},
|
1181
|
-
$index: -1
|
1182
|
-
});
|
1183
|
-
var children = [renderDefault];
|
1184
|
-
var vnode = (0,external_vue_namespaceObject.h)('div', children);
|
1185
|
-
return vnode;
|
1186
|
-
} catch (_unused) {
|
1187
|
-
return (0,external_vue_namespaceObject.h)('div', []);
|
2227
|
+
updated: function updated(el, binding) {
|
2228
|
+
if (tooltips_nodeList.get(el)) {
|
2229
|
+
tooltips_nodeList.get(el).opts = getOpts(binding);
|
1188
2230
|
}
|
2231
|
+
},
|
2232
|
+
unmounted: function unmounted(el) {
|
2233
|
+
hide(el);
|
2234
|
+
tooltips_nodeList["delete"](el);
|
1189
2235
|
}
|
1190
|
-
}
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
var
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
2236
|
+
};
|
2237
|
+
/**
|
2238
|
+
* 初始化配置
|
2239
|
+
* @returns tooltips配置
|
2240
|
+
*/
|
2241
|
+
function initOptions() {
|
2242
|
+
var defaultOpts = {
|
2243
|
+
arrow: true,
|
2244
|
+
disabled: false,
|
2245
|
+
trigger: 'hover',
|
2246
|
+
theme: 'dark',
|
2247
|
+
content: '',
|
2248
|
+
showOnInit: false,
|
2249
|
+
placement: 'top',
|
2250
|
+
distance: 8,
|
2251
|
+
extCls: '',
|
2252
|
+
sameWidth: false,
|
2253
|
+
delay: 0,
|
2254
|
+
onShow: function onShow() {},
|
2255
|
+
onHide: function onHide() {}
|
2256
|
+
};
|
2257
|
+
return defaultOpts;
|
2258
|
+
}
|
2259
|
+
/**
|
2260
|
+
* 获取配置
|
2261
|
+
* @returns tooltips配置
|
2262
|
+
*/
|
2263
|
+
function getOpts(binding) {
|
2264
|
+
var opts = initOptions();
|
2265
|
+
if (typeof_typeof(binding.value) === 'object') {
|
2266
|
+
Object.assign(opts, binding.value);
|
2267
|
+
} else {
|
2268
|
+
opts.content = binding.value;
|
2269
|
+
}
|
2270
|
+
return opts;
|
2271
|
+
}
|
2272
|
+
/**
|
2273
|
+
* 创建tooltips DOM
|
2274
|
+
* @param opts
|
2275
|
+
* @returns
|
2276
|
+
*/
|
2277
|
+
function renderContext(value, content) {
|
2278
|
+
if (typeof value === 'string') {
|
2279
|
+
content.innerText = value;
|
2280
|
+
} else {
|
2281
|
+
// 如果 content 是 Vue 组件的实例,则挂载它
|
2282
|
+
var container = document.createElement('div');
|
2283
|
+
var vnode = (0,external_vue_namespaceObject.h)(value);
|
2284
|
+
(0,external_vue_namespaceObject.render)(vnode, container);
|
2285
|
+
content.innerHTML = container.innerHTML;
|
2286
|
+
}
|
2287
|
+
}
|
2288
|
+
function renderContent(opts) {
|
2289
|
+
var value = opts.content,
|
2290
|
+
hasArrow = opts.arrow,
|
2291
|
+
theme = opts.theme,
|
2292
|
+
extCls = opts.extCls;
|
2293
|
+
var isLight = theme === 'light';
|
2294
|
+
var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
|
2295
|
+
var content = document.createElement('div');
|
2296
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
2297
|
+
content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
|
2298
|
+
content.innerText = value;
|
2299
|
+
content.style.zIndex = String(zIndex);
|
2300
|
+
renderContext(value, content);
|
2301
|
+
if (hasArrow) {
|
2302
|
+
var arrow = renderArrow();
|
2303
|
+
content.appendChild(arrow);
|
2304
|
+
}
|
2305
|
+
return content;
|
2306
|
+
}
|
2307
|
+
/**
|
2308
|
+
* 渲染箭头dom
|
2309
|
+
* @returns arrow DOM
|
2310
|
+
*/
|
2311
|
+
function renderArrow() {
|
2312
|
+
var arrow = document.createElement('div');
|
2313
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
2314
|
+
arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
|
2315
|
+
arrow.setAttribute('data-popper-arrow', '');
|
2316
|
+
return arrow;
|
2317
|
+
}
|
2318
|
+
/**
|
2319
|
+
* 创建popper实例
|
2320
|
+
* @param el
|
2321
|
+
* @param popper
|
2322
|
+
* @returns popper实例
|
2323
|
+
*/
|
2324
|
+
function createPopperInstance(el, popper) {
|
2325
|
+
var _nodeList$get = tooltips_nodeList.get(el),
|
2326
|
+
opts = _nodeList$get.opts;
|
2327
|
+
var placement = opts.placement,
|
2328
|
+
distance = opts.distance,
|
2329
|
+
sameWidth = opts.sameWidth;
|
2330
|
+
var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
|
2331
|
+
placement: placement,
|
2332
|
+
modifiers: [{
|
2333
|
+
name: 'offset',
|
2334
|
+
options: {
|
2335
|
+
offset: [0, distance]
|
2336
|
+
}
|
2337
|
+
}, {
|
2338
|
+
name: 'arrow',
|
2339
|
+
options: {
|
2340
|
+
padding: 5
|
2341
|
+
}
|
2342
|
+
}].concat(_toConsumableArray(sameWidth ? [{
|
2343
|
+
name: 'sameWidth',
|
2344
|
+
enabled: true,
|
2345
|
+
phase: 'beforeWrite',
|
2346
|
+
requires: ['computeStyles'],
|
2347
|
+
fn: function fn(_ref) {
|
2348
|
+
var state = _ref.state;
|
2349
|
+
state.styles.popper.width = "".concat(state.rects.reference.width, "px");
|
2350
|
+
},
|
2351
|
+
effect: function effect(_ref2) {
|
2352
|
+
var state = _ref2.state;
|
2353
|
+
state.elements.popper.style.overflowWrap = 'break-word';
|
2354
|
+
state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
|
2355
|
+
}
|
2356
|
+
}] : []))
|
2357
|
+
});
|
2358
|
+
return popperInstance;
|
2359
|
+
}
|
2360
|
+
/**
|
2361
|
+
* 显示
|
2362
|
+
* @param el
|
2363
|
+
*/
|
2364
|
+
function show(el) {
|
2365
|
+
var _nodeList$get2 = tooltips_nodeList.get(el),
|
2366
|
+
popper = _nodeList$get2.popper,
|
2367
|
+
opts = _nodeList$get2.opts;
|
2368
|
+
var disabled = opts.disabled,
|
2369
|
+
content = opts.content,
|
2370
|
+
hasArrow = opts.arrow,
|
2371
|
+
onShow = opts.onShow,
|
2372
|
+
boundary = opts.boundary,
|
2373
|
+
_opts$modifiers = opts.modifiers,
|
2374
|
+
modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
|
2375
|
+
if (disabled) return;
|
2376
|
+
renderContext(content, popper);
|
2377
|
+
if (hasArrow) {
|
2378
|
+
var arrow = renderArrow();
|
2379
|
+
popper.appendChild(arrow);
|
2380
|
+
}
|
2381
|
+
var container = document.body;
|
2382
|
+
if (boundary) {
|
2383
|
+
if (boundary === 'parent') {
|
2384
|
+
container = el.parentElement;
|
2385
|
+
} else if (boundary instanceof HTMLElement) {
|
2386
|
+
container = boundary;
|
2387
|
+
}
|
2388
|
+
}
|
2389
|
+
container.appendChild(popper);
|
2390
|
+
var popperInstance = createPopperInstance(el, popper);
|
2391
|
+
onShow();
|
2392
|
+
// Make the tooltip visible
|
2393
|
+
popper.setAttribute('data-show', '');
|
2394
|
+
// Enable the event listeners
|
2395
|
+
popperInstance.setOptions(function (options) {
|
2396
|
+
return _objectSpread(_objectSpread({}, options), {}, {
|
2397
|
+
modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
|
2398
|
+
name: 'eventListeners',
|
2399
|
+
enabled: true
|
2400
|
+
}])
|
2401
|
+
});
|
2402
|
+
});
|
2403
|
+
// Update its position
|
2404
|
+
popperInstance.forceUpdate();
|
2405
|
+
tooltips_nodeList.get(el).popperInstance = popperInstance;
|
2406
|
+
}
|
2407
|
+
/**
|
2408
|
+
* 隐藏
|
2409
|
+
* @param el
|
2410
|
+
*/
|
2411
|
+
function hide(el) {
|
2412
|
+
if (!tooltips_nodeList.get(el)) return;
|
2413
|
+
var _nodeList$get3 = tooltips_nodeList.get(el),
|
2414
|
+
popper = _nodeList$get3.popper,
|
2415
|
+
popperInstance = _nodeList$get3.popperInstance,
|
2416
|
+
opts = _nodeList$get3.opts;
|
2417
|
+
var onHide = opts.onHide;
|
2418
|
+
if (popper && document.body.contains(popper)) {
|
2419
|
+
var _popper$parentNode;
|
2420
|
+
popper.removeAttribute('data-show');
|
2421
|
+
popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
|
2422
|
+
popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
|
2423
|
+
onHide();
|
2424
|
+
}
|
2425
|
+
}
|
2426
|
+
/* harmony default export */ const src_tooltips = (tooltips);
|
2427
|
+
;// external "../loading"
|
2428
|
+
var external_loading_x = (y) => {
|
2429
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2430
|
+
}
|
2431
|
+
var external_loading_y = (x) => (() => (x))
|
2432
|
+
const external_loading_namespaceObject = external_loading_x({ });
|
2433
|
+
;// external "../overflow-title"
|
2434
|
+
var external_overflow_title_x = (y) => {
|
2435
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2436
|
+
}
|
2437
|
+
var external_overflow_title_y = (x) => (() => (x))
|
2438
|
+
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
2439
|
+
;// ../../packages/directives/src/index.ts
|
2440
|
+
/*
|
2441
|
+
* Tencent is pleased to support the open source community by making
|
2442
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2443
|
+
*
|
2444
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
2445
|
+
*
|
2446
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2447
|
+
*
|
2448
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
2449
|
+
*
|
2450
|
+
* ---------------------------------------------------
|
2451
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
2452
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
2453
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
2454
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2455
|
+
*
|
2456
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2457
|
+
* the Software.
|
2458
|
+
*
|
2459
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2460
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2461
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2462
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2463
|
+
* IN THE SOFTWARE.
|
2464
|
+
*/
|
2465
|
+
|
2466
|
+
|
2467
|
+
|
2468
|
+
|
2469
|
+
|
2470
|
+
|
2471
|
+
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
2472
|
+
;// external "lodash/debounce"
|
2473
|
+
var debounce_x = (y) => {
|
2474
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2475
|
+
}
|
2476
|
+
var debounce_y = (x) => (() => (x))
|
2477
|
+
const debounce_namespaceObject = debounce_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"]) });
|
2478
|
+
;// external "lodash/isElement"
|
2479
|
+
var isElement_x = (y) => {
|
2480
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2481
|
+
}
|
2482
|
+
var isElement_y = (x) => (() => (x))
|
2483
|
+
const isElement_namespaceObject = isElement_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"]) });
|
2484
|
+
;// ../../packages/table/src/events.ts
|
1204
2485
|
|
1205
2486
|
var _EMIT_EVENT_TYPES;
|
1206
2487
|
/*
|
@@ -1296,11 +2577,13 @@ var EVENT_DRAGEND_FN = function EVENT_DRAGEND_FN(_args) {
|
|
1296
2577
|
};
|
1297
2578
|
var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.COLUMN_PICK, EVENT_COL_PICK), EMIT_EVENTS.COLUMN_FILTER, EVENT_COL_FILTER), EMIT_EVENTS.COLUMN_SORT, EVENT_COL_SORT), EMIT_EVENTS.COLUMN_FILTER_SAVE, EVENT_COL_FILTER_SAVE), EMIT_EVENTS.ROW_CLICK, EVENT_MOUSE_FN), EMIT_EVENTS.ROW_DBL_CLICK, EVENT_MOUSE_FN), EMIT_EVENTS.ROW_EXPAND_CLICK, EVENT_EXPAND_FN), EMIT_EVENTS.ROW_SELECT, EVENT_ROW_SELECT_FN), EMIT_EVENTS.ROW_SELECT_ALL, EVENT_ROW_SELECT_ALL_FN), EMIT_EVENTS.ROW_SELECT_CHANGE, EVENT_ROW_SELECT_CHANGE_FN), defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.PAGE_LIMIT_CHANGE, EVENT_PAGE_FN), EMIT_EVENTS.PAGE_VALUE_CHANGE, EVENT_PAGE_FN), EMIT_EVENTS.SETTING_CHANGE, EVENT_SETTING_FN), EMIT_EVENTS.SCROLL_BOTTOM, EVENT_SCROLL_FN), EMIT_EVENTS.CELL_CLICK, EVENT_CELL_FN), EMIT_EVENTS.CELL_DBL_CLICK, EVENT_CELL_FN), EMIT_EVENTS.ROW_MOUSE_ENTER, EVENT_MOUSE_FN), EMIT_EVENTS.ROW_MOUSE_LEAVE, EVENT_MOUSE_FN), EMIT_EVENTS.DRAG_END, EVENT_DRAGEND_FN));
|
1298
2579
|
var CELL_EVENT_TYPES = defineProperty_defineProperty(defineProperty_defineProperty({}, EMIT_EVENTS.NATIVE_CLICK, EVENT_MOUSE_FN), EMIT_EVENTS.NATIVE_DBL_CLICK, EVENT_MOUSE_FN);
|
1299
|
-
;//
|
1300
|
-
var throttle_x = y => {
|
1301
|
-
var
|
1302
|
-
|
1303
|
-
|
2580
|
+
;// external "lodash/throttle"
|
2581
|
+
var throttle_x = (y) => {
|
2582
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2583
|
+
}
|
2584
|
+
var throttle_y = (x) => (() => (x))
|
2585
|
+
const throttle_namespaceObject = throttle_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"]) });
|
2586
|
+
;// ../../packages/table/src/hooks/use-column-resize.tsx
|
1304
2587
|
|
1305
2588
|
/*
|
1306
2589
|
* Tencent is pleased to support the open source community by making
|
@@ -1528,12 +2811,12 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
|
|
1528
2811
|
dragOffsetX: dragOffsetX
|
1529
2812
|
};
|
1530
2813
|
});
|
1531
|
-
;//
|
2814
|
+
;// ../../node_modules/uuid/dist/esm-browser/native.js
|
1532
2815
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
1533
2816
|
/* harmony default export */ const esm_browser_native = ({
|
1534
2817
|
randomUUID
|
1535
2818
|
});
|
1536
|
-
;//
|
2819
|
+
;// ../../node_modules/uuid/dist/esm-browser/rng.js
|
1537
2820
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
1538
2821
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
1539
2822
|
// generators (like Math.random()).
|
@@ -1552,7 +2835,7 @@ function rng() {
|
|
1552
2835
|
|
1553
2836
|
return getRandomValues(rnds8);
|
1554
2837
|
}
|
1555
|
-
;//
|
2838
|
+
;// ../../node_modules/uuid/dist/esm-browser/stringify.js
|
1556
2839
|
|
1557
2840
|
/**
|
1558
2841
|
* Convert array of 16 byte values to UUID string format of the form:
|
@@ -1586,7 +2869,7 @@ function stringify(arr, offset = 0) {
|
|
1586
2869
|
}
|
1587
2870
|
|
1588
2871
|
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
1589
|
-
;//
|
2872
|
+
;// ../../node_modules/uuid/dist/esm-browser/v4.js
|
1590
2873
|
|
1591
2874
|
|
1592
2875
|
|
@@ -1616,7 +2899,7 @@ function v4(options, buf, offset) {
|
|
1616
2899
|
}
|
1617
2900
|
|
1618
2901
|
/* harmony default export */ const esm_browser_v4 = (v4);
|
1619
|
-
;//
|
2902
|
+
;// ../../packages/table/src/hooks/use-column-template.tsx
|
1620
2903
|
|
1621
2904
|
|
1622
2905
|
/*
|
@@ -1757,52 +3040,19 @@ function v4(options, buf, offset) {
|
|
1757
3040
|
resolveColumns: resolveColumns
|
1758
3041
|
};
|
1759
3042
|
});
|
1760
|
-
;//
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
}
|
1766
|
-
;//
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1774
|
-
}
|
1775
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1776
|
-
|
1777
|
-
function _unsupportedIterableToArray(o, minLen) {
|
1778
|
-
if (!o) return;
|
1779
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
1780
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1781
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1782
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
1783
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
1784
|
-
}
|
1785
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1786
|
-
function _nonIterableSpread() {
|
1787
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1788
|
-
}
|
1789
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1793
|
-
|
1794
|
-
function _toConsumableArray(arr) {
|
1795
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1796
|
-
}
|
1797
|
-
;// CONCATENATED MODULE: external "../config-provider"
|
1798
|
-
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1799
|
-
var config_provider_y = x => () => x
|
1800
|
-
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 });
|
1801
|
-
;// CONCATENATED MODULE: external "lodash/get"
|
1802
|
-
var get_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1803
|
-
var get_y = x => () => x
|
1804
|
-
const get_namespaceObject = get_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__["default"] });
|
1805
|
-
;// CONCATENATED MODULE: ../../node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
3043
|
+
;// external "../config-provider"
|
3044
|
+
var config_provider_x = (y) => {
|
3045
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3046
|
+
}
|
3047
|
+
var config_provider_y = (x) => (() => (x))
|
3048
|
+
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) });
|
3049
|
+
;// external "lodash/get"
|
3050
|
+
var get_x = (y) => {
|
3051
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3052
|
+
}
|
3053
|
+
var get_y = (x) => (() => (x))
|
3054
|
+
const get_namespaceObject = get_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__["default"]) });
|
3055
|
+
;// ../../node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
1806
3056
|
/**
|
1807
3057
|
* A collection of shims that provide minimal functionality of the ES6 collections.
|
1808
3058
|
*
|
@@ -2732,13 +3982,13 @@ var index = (function () {
|
|
2732
3982
|
|
2733
3983
|
/* harmony default export */ const ResizeObserver_es = (index);
|
2734
3984
|
|
2735
|
-
;//
|
3985
|
+
;// ../../packages/table/src/utils.tsx
|
2736
3986
|
|
2737
3987
|
|
2738
3988
|
|
2739
3989
|
var _this = undefined;
|
2740
|
-
function
|
2741
|
-
function
|
3990
|
+
function utils_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; }
|
3991
|
+
function utils_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? utils_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : utils_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2742
3992
|
/*
|
2743
3993
|
* Tencent is pleased to support the open source community by making
|
2744
3994
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3052,7 +4302,7 @@ var hasRootScrollY = function hasRootScrollY(root, querySelector) {
|
|
3052
4302
|
var getColumnClass = function getColumnClass(column) {
|
3053
4303
|
var colIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
3054
4304
|
var uuid = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
3055
|
-
return
|
4305
|
+
return utils_objectSpread(utils_objectSpread({}, uuid ? _defineProperty({}, "".concat(uuid, "-column-").concat(colIndex), true) : {}), {}, {
|
3056
4306
|
column_fixed: !!column.fixed,
|
3057
4307
|
column_fixed_left: !!column.fixed,
|
3058
4308
|
column_fixed_right: column.fixed === 'right'
|
@@ -3180,7 +4430,7 @@ var resolveSort = function resolveSort(sort, column) {
|
|
3180
4430
|
if (typeof_typeof(sort) === 'object' && sort !== null) {
|
3181
4431
|
var _sort$value;
|
3182
4432
|
if (typeof sort.sortFn === 'function') {
|
3183
|
-
return
|
4433
|
+
return utils_objectSpread({
|
3184
4434
|
value: 'custom'
|
3185
4435
|
}, sort);
|
3186
4436
|
}
|
@@ -3229,7 +4479,7 @@ var resolveColumnSortProp = function resolveColumnSortProp(col, props) {
|
|
3229
4479
|
};
|
3230
4480
|
var resolveColumnFilterProp = function resolveColumnFilterProp(col) {
|
3231
4481
|
if (typeof_typeof(col.filter) === 'object') {
|
3232
|
-
return
|
4482
|
+
return utils_objectSpread(utils_objectSpread({}, col.filter), {}, {
|
3233
4483
|
enabled: true
|
3234
4484
|
});
|
3235
4485
|
}
|
@@ -3259,7 +4509,7 @@ var getNumberOrPercentValue = function getNumberOrPercentValue(val, parentVal) {
|
|
3259
4509
|
}
|
3260
4510
|
return null;
|
3261
4511
|
};
|
3262
|
-
;//
|
4512
|
+
;// ../../packages/table/src/hooks/use-columns.tsx
|
3263
4513
|
|
3264
4514
|
|
3265
4515
|
var use_columns_this = undefined;
|
@@ -3937,7 +5187,7 @@ var useColumns = function useColumns(props) {
|
|
3937
5187
|
};
|
3938
5188
|
};
|
3939
5189
|
/* harmony default export */ const use_columns = (useColumns);
|
3940
|
-
;//
|
5190
|
+
;// ../../packages/table/src/hooks/use-draggable.tsx
|
3941
5191
|
/*
|
3942
5192
|
* Tencent is pleased to support the open source community by making
|
3943
5193
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -4086,7 +5336,7 @@ var useColumns = function useColumns(props) {
|
|
4086
5336
|
onDragend: onDragend
|
4087
5337
|
};
|
4088
5338
|
});
|
4089
|
-
;//
|
5339
|
+
;// ../../packages/table/src/hooks/use-fixed-column.tsx
|
4090
5340
|
|
4091
5341
|
/*
|
4092
5342
|
* Tencent is pleased to support the open source community by making
|
@@ -4191,15 +5441,19 @@ var useColumns = function useColumns(props) {
|
|
4191
5441
|
resolveFixedColumnStyle: resolveFixedColumnStyle
|
4192
5442
|
};
|
4193
5443
|
});
|
4194
|
-
;//
|
4195
|
-
var virtual_render_x = y => {
|
4196
|
-
var
|
4197
|
-
|
4198
|
-
|
4199
|
-
|
4200
|
-
|
5444
|
+
;// external "../virtual-render"
|
5445
|
+
var virtual_render_x = (y) => {
|
5446
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
5447
|
+
}
|
5448
|
+
var virtual_render_y = (x) => (() => (x))
|
5449
|
+
const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__["default"]) });
|
5450
|
+
;// external "../virtual-render/virtual-render.less"
|
5451
|
+
var virtual_render_less_x = (y) => {
|
5452
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
5453
|
+
}
|
5454
|
+
var virtual_render_less_y = (x) => (() => (x))
|
4201
5455
|
const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
4202
|
-
;//
|
5456
|
+
;// ../../packages/table/src/components/ghost-body.tsx
|
4203
5457
|
|
4204
5458
|
/*
|
4205
5459
|
* Tencent is pleased to support the open source community by making
|
@@ -4244,15 +5498,19 @@ const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
|
4244
5498
|
};
|
4245
5499
|
}
|
4246
5500
|
}));
|
4247
|
-
;//
|
4248
|
-
var loading_x = y => {
|
4249
|
-
var
|
4250
|
-
|
4251
|
-
|
4252
|
-
|
4253
|
-
|
5501
|
+
;// external "../loading"
|
5502
|
+
var loading_x = (y) => {
|
5503
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
5504
|
+
}
|
5505
|
+
var loading_y = (x) => (() => (x))
|
5506
|
+
const loading_namespaceObject = loading_x({ ["BkLoadingMode"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingMode), ["BkLoadingSize"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingSize), ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__["default"]) });
|
5507
|
+
;// external "../loading/loading.less"
|
5508
|
+
var loading_less_x = (y) => {
|
5509
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
5510
|
+
}
|
5511
|
+
var loading_less_y = (x) => (() => (x))
|
4254
5512
|
const loading_less_namespaceObject = loading_less_x({ });
|
4255
|
-
;//
|
5513
|
+
;// ../../packages/table/src/hooks/use-scroll-loading.tsx
|
4256
5514
|
|
4257
5515
|
|
4258
5516
|
/*
|
@@ -4330,7 +5588,7 @@ const loading_less_namespaceObject = loading_less_x({ });
|
|
4330
5588
|
renderScrollLoading: renderScrollLoading
|
4331
5589
|
};
|
4332
5590
|
});
|
4333
|
-
;//
|
5591
|
+
;// ../../packages/table/src/hooks/use-layout.tsx
|
4334
5592
|
|
4335
5593
|
|
4336
5594
|
|
@@ -4681,7 +5939,7 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
4681
5939
|
refFooter: refFooter
|
4682
5940
|
};
|
4683
5941
|
});
|
4684
|
-
;//
|
5942
|
+
;// ../../packages/table/src/hooks/use-observer-resize.tsx
|
4685
5943
|
|
4686
5944
|
/*
|
4687
5945
|
* Tencent is pleased to support the open source community by making
|
@@ -4740,7 +5998,7 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
4740
5998
|
instance: instance
|
4741
5999
|
};
|
4742
6000
|
});
|
4743
|
-
;//
|
6001
|
+
;// ../../packages/table/src/hooks/use-pagination.tsx
|
4744
6002
|
|
4745
6003
|
/*
|
4746
6004
|
* Tencent is pleased to support the open source community by making
|
@@ -4841,23 +6099,31 @@ var usePagination = function usePagination(props) {
|
|
4841
6099
|
};
|
4842
6100
|
};
|
4843
6101
|
/* harmony default export */ const use_pagination = (usePagination);
|
4844
|
-
;//
|
4845
|
-
var pagination_x = y => {
|
4846
|
-
var
|
4847
|
-
|
4848
|
-
|
4849
|
-
|
4850
|
-
|
6102
|
+
;// external "../pagination"
|
6103
|
+
var pagination_x = (y) => {
|
6104
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6105
|
+
}
|
6106
|
+
var pagination_y = (x) => (() => (x))
|
6107
|
+
const pagination_namespaceObject = pagination_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_pagination_95c6c47e__["default"]) });
|
6108
|
+
;// external "../pagination/pagination.less"
|
6109
|
+
var pagination_less_x = (y) => {
|
6110
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6111
|
+
}
|
6112
|
+
var pagination_less_y = (x) => (() => (x))
|
4851
6113
|
const pagination_less_namespaceObject = pagination_less_x({ });
|
4852
|
-
;//
|
4853
|
-
var exception_x = y => {
|
4854
|
-
var
|
4855
|
-
|
4856
|
-
|
4857
|
-
|
4858
|
-
|
6114
|
+
;// external "../exception"
|
6115
|
+
var exception_x = (y) => {
|
6116
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6117
|
+
}
|
6118
|
+
var exception_y = (x) => (() => (x))
|
6119
|
+
const exception_namespaceObject = exception_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_exception_7490d0fd__["default"]) });
|
6120
|
+
;// external "../exception/exception.less"
|
6121
|
+
var exception_less_x = (y) => {
|
6122
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6123
|
+
}
|
6124
|
+
var exception_less_y = (x) => (() => (x))
|
4859
6125
|
const exception_less_namespaceObject = exception_less_x({ });
|
4860
|
-
;//
|
6126
|
+
;// ../../packages/table/src/components/body-empty.tsx
|
4861
6127
|
|
4862
6128
|
/*
|
4863
6129
|
* Tencent is pleased to support the open source community by making
|
@@ -4917,7 +6183,7 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
4917
6183
|
};
|
4918
6184
|
}
|
4919
6185
|
}));
|
4920
|
-
;//
|
6186
|
+
;// ../../packages/table/src/components/table-cell.tsx
|
4921
6187
|
|
4922
6188
|
|
4923
6189
|
/*
|
@@ -5132,7 +6398,7 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
5132
6398
|
if (isTipsEnabled.value) {
|
5133
6399
|
var bindings = (0,external_vue_namespaceObject.ref)(resolveTooltipOption());
|
5134
6400
|
if (bkEllipsisIns === null) {
|
5135
|
-
bkEllipsisIns = (
|
6401
|
+
bkEllipsisIns = createInstance(target, {
|
5136
6402
|
disabled: bindings.value.disabled,
|
5137
6403
|
content: bindings.value.content,
|
5138
6404
|
mode: bindings.value.mode,
|
@@ -5207,7 +6473,7 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
5207
6473
|
};
|
5208
6474
|
}
|
5209
6475
|
}));
|
5210
|
-
;//
|
6476
|
+
;// ../../packages/table/src/components/table-row.tsx
|
5211
6477
|
|
5212
6478
|
/*
|
5213
6479
|
* Tencent is pleased to support the open source community by making
|
@@ -5242,23 +6508,31 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
5242
6508
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]);
|
5243
6509
|
}
|
5244
6510
|
}));
|
5245
|
-
;//
|
5246
|
-
var checkbox_x = y => {
|
5247
|
-
var
|
5248
|
-
|
5249
|
-
|
5250
|
-
|
5251
|
-
|
6511
|
+
;// external "../checkbox"
|
6512
|
+
var checkbox_x = (y) => {
|
6513
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6514
|
+
}
|
6515
|
+
var checkbox_y = (x) => (() => (x))
|
6516
|
+
const checkbox_namespaceObject = checkbox_x({ ["BkCheckboxGroup"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__.BkCheckboxGroup), ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"]) });
|
6517
|
+
;// external "../checkbox/checkbox.less"
|
6518
|
+
var checkbox_less_x = (y) => {
|
6519
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6520
|
+
}
|
6521
|
+
var checkbox_less_y = (x) => (() => (x))
|
5252
6522
|
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
5253
|
-
;//
|
5254
|
-
var icon_x = y => {
|
5255
|
-
var
|
5256
|
-
|
5257
|
-
|
5258
|
-
|
5259
|
-
|
5260
|
-
|
5261
|
-
|
6523
|
+
;// external "../icon"
|
6524
|
+
var icon_x = (y) => {
|
6525
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6526
|
+
}
|
6527
|
+
var icon_y = (x) => (() => (x))
|
6528
|
+
const icon_namespaceObject = icon_x({ ["DownShape"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.DownShape), ["Funnel"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Funnel), ["GragFill"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.GragFill), ["RightShape"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.RightShape) });
|
6529
|
+
;// external "lodash/isEmpty"
|
6530
|
+
var isEmpty_x = (y) => {
|
6531
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6532
|
+
}
|
6533
|
+
var isEmpty_y = (x) => (() => (x))
|
6534
|
+
const isEmpty_namespaceObject = isEmpty_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_isEmpty_e109fd6b__["default"]) });
|
6535
|
+
;// ../../packages/table/src/hooks/use-cell.tsx
|
5262
6536
|
|
5263
6537
|
|
5264
6538
|
/*
|
@@ -5522,15 +6796,19 @@ const isEmpty_namespaceObject = isEmpty_x({ ["default"]: () => __WEBPACK_EXTERNA
|
|
5522
6796
|
renderCell: renderCell
|
5523
6797
|
};
|
5524
6798
|
});
|
5525
|
-
;//
|
5526
|
-
var popover_x = y => {
|
5527
|
-
var
|
5528
|
-
|
5529
|
-
|
5530
|
-
|
5531
|
-
|
6799
|
+
;// external "../popover"
|
6800
|
+
var popover_x = (y) => {
|
6801
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6802
|
+
}
|
6803
|
+
var popover_y = (x) => (() => (x))
|
6804
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"]) });
|
6805
|
+
;// external "../popover/popover.less"
|
6806
|
+
var popover_less_x = (y) => {
|
6807
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6808
|
+
}
|
6809
|
+
var popover_less_y = (x) => (() => (x))
|
5532
6810
|
const popover_less_namespaceObject = popover_less_x({ });
|
5533
|
-
;//
|
6811
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
5534
6812
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
5535
6813
|
try {
|
5536
6814
|
var info = gen[key](arg);
|
@@ -5562,25 +6840,33 @@ function _asyncToGenerator(fn) {
|
|
5562
6840
|
};
|
5563
6841
|
}
|
5564
6842
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
5565
|
-
var regenerator = __webpack_require__(
|
6843
|
+
var regenerator = __webpack_require__(5799);
|
5566
6844
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
5567
|
-
;//
|
5568
|
-
var button_x = y => {
|
5569
|
-
var
|
5570
|
-
|
5571
|
-
|
5572
|
-
|
5573
|
-
|
6845
|
+
;// external "../button"
|
6846
|
+
var button_x = (y) => {
|
6847
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6848
|
+
}
|
6849
|
+
var button_y = (x) => (() => (x))
|
6850
|
+
const button_namespaceObject = button_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__["default"]) });
|
6851
|
+
;// external "../button/button.less"
|
6852
|
+
var button_less_x = (y) => {
|
6853
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6854
|
+
}
|
6855
|
+
var button_less_y = (x) => (() => (x))
|
5574
6856
|
const button_less_namespaceObject = button_less_x({ });
|
5575
|
-
;//
|
5576
|
-
var input_x = y => {
|
5577
|
-
var
|
5578
|
-
|
5579
|
-
|
5580
|
-
|
5581
|
-
|
6857
|
+
;// external "../input"
|
6858
|
+
var input_x = (y) => {
|
6859
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6860
|
+
}
|
6861
|
+
var input_y = (x) => (() => (x))
|
6862
|
+
const input_namespaceObject = input_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__["default"]) });
|
6863
|
+
;// external "../input/input.less"
|
6864
|
+
var input_less_x = (y) => {
|
6865
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
6866
|
+
}
|
6867
|
+
var input_less_y = (x) => (() => (x))
|
5582
6868
|
const input_less_namespaceObject = input_less_x({ });
|
5583
|
-
;//
|
6869
|
+
;// ../../packages/table/src/hooks/use-checkbox-tooltip.tsx
|
5584
6870
|
var useCheckboxToolTip = function useCheckboxToolTip() {
|
5585
6871
|
var renderDomStyles = function renderDomStyles(el) {
|
5586
6872
|
var stylesSize = {
|
@@ -5673,7 +6959,7 @@ var useCheckboxToolTip = function useCheckboxToolTip() {
|
|
5673
6959
|
};
|
5674
6960
|
};
|
5675
6961
|
/* harmony default export */ const use_checkbox_tooltip = (useCheckboxToolTip);
|
5676
|
-
;//
|
6962
|
+
;// ../../packages/table/src/plugins/head-filter.tsx
|
5677
6963
|
|
5678
6964
|
|
5679
6965
|
|
@@ -5727,7 +7013,7 @@ var ROW_HEIGHT = 32;
|
|
5727
7013
|
/* harmony default export */ const head_filter = ((0,external_vue_namespaceObject.defineComponent)({
|
5728
7014
|
name: 'HeadFilter',
|
5729
7015
|
directives: {
|
5730
|
-
bkTooltips:
|
7016
|
+
bkTooltips: src_tooltips
|
5731
7017
|
},
|
5732
7018
|
props: {
|
5733
7019
|
column: IColumnType,
|
@@ -6021,11 +7307,11 @@ var ROW_HEIGHT = 32;
|
|
6021
7307
|
};
|
6022
7308
|
}
|
6023
7309
|
}));
|
6024
|
-
;//
|
7310
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
6025
7311
|
function _arrayWithHoles(arr) {
|
6026
7312
|
if (Array.isArray(arr)) return arr;
|
6027
7313
|
}
|
6028
|
-
;//
|
7314
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
6029
7315
|
function _iterableToArrayLimit(r, l) {
|
6030
7316
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
6031
7317
|
if (null != t) {
|
@@ -6053,23 +7339,25 @@ function _iterableToArrayLimit(r, l) {
|
|
6053
7339
|
return a;
|
6054
7340
|
}
|
6055
7341
|
}
|
6056
|
-
;//
|
7342
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
6057
7343
|
function _nonIterableRest() {
|
6058
7344
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
6059
7345
|
}
|
6060
|
-
;//
|
7346
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
6061
7347
|
|
6062
7348
|
|
6063
7349
|
|
6064
7350
|
|
6065
7351
|
function _slicedToArray(arr, i) {
|
6066
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
7352
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
6067
7353
|
}
|
6068
|
-
;//
|
6069
|
-
var _x = y => {
|
6070
|
-
var
|
6071
|
-
|
6072
|
-
|
7354
|
+
;// external "../icon/"
|
7355
|
+
var _x = (y) => {
|
7356
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
7357
|
+
}
|
7358
|
+
var _y = (x) => (() => (x))
|
7359
|
+
const _namespaceObject = _x({ ["AngleDownFill"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.AngleDownFill), ["AngleUpFill"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.AngleUpFill), ["CloseLine"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.CloseLine), ["CogShape"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.CogShape) });
|
7360
|
+
;// ../../packages/table/src/plugins/head-sort.tsx
|
6073
7361
|
|
6074
7362
|
|
6075
7363
|
/*
|
@@ -6168,7 +7456,7 @@ const _namespaceObject = _x({ ["AngleDownFill"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
6168
7456
|
};
|
6169
7457
|
}
|
6170
7458
|
}));
|
6171
|
-
;//
|
7459
|
+
;// ../../packages/table/src/hooks/use-head.tsx
|
6172
7460
|
|
6173
7461
|
/*
|
6174
7462
|
* Tencent is pleased to support the open source community by making
|
@@ -6489,7 +7777,7 @@ function use_head_isSlot(s) {
|
|
6489
7777
|
getTH: getTH
|
6490
7778
|
};
|
6491
7779
|
});
|
6492
|
-
;//
|
7780
|
+
;// ../../packages/table/src/hooks/use-shift-key.tsx
|
6493
7781
|
/*
|
6494
7782
|
* Tencent is pleased to support the open source community by making
|
6495
7783
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -6584,7 +7872,7 @@ var multiShiftKey = function multiShiftKey(props) {
|
|
6584
7872
|
};
|
6585
7873
|
};
|
6586
7874
|
/* harmony default export */ const use_shift_key = (multiShiftKey);
|
6587
|
-
;//
|
7875
|
+
;// ../../packages/table/src/hooks/use-render.tsx
|
6588
7876
|
|
6589
7877
|
|
6590
7878
|
|
@@ -7039,7 +8327,7 @@ function use_render_isSlot(s) {
|
|
7039
8327
|
setDragEvents: setDragEvents
|
7040
8328
|
};
|
7041
8329
|
});
|
7042
|
-
;//
|
8330
|
+
;// ../../packages/table/src/hooks/use-rows.tsx
|
7043
8331
|
|
7044
8332
|
|
7045
8333
|
|
@@ -7390,7 +8678,7 @@ var useRows = function useRows(props) {
|
|
7390
8678
|
};
|
7391
8679
|
};
|
7392
8680
|
/* harmony default export */ const use_rows = (useRows);
|
7393
|
-
;//
|
8681
|
+
;// ../../packages/table/src/hooks/use-settings.tsx
|
7394
8682
|
|
7395
8683
|
|
7396
8684
|
|
@@ -7775,7 +9063,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
7775
9063
|
};
|
7776
9064
|
};
|
7777
9065
|
/* harmony default export */ const use_settings = (useSettings);
|
7778
|
-
;//
|
9066
|
+
;// ../../packages/table/src/table.tsx
|
7779
9067
|
/*
|
7780
9068
|
* Tencent is pleased to support the open source community by making
|
7781
9069
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -7822,7 +9110,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
7822
9110
|
/* harmony default export */ const table = ((0,external_vue_namespaceObject.defineComponent)({
|
7823
9111
|
name: 'Table',
|
7824
9112
|
directives: {
|
7825
|
-
bkTooltips:
|
9113
|
+
bkTooltips: src_tooltips
|
7826
9114
|
},
|
7827
9115
|
props: tableProps,
|
7828
9116
|
emits: EMIT_EVENT_TYPES,
|
@@ -8121,7 +9409,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
|
|
8121
9409
|
};
|
8122
9410
|
}
|
8123
9411
|
}));
|
8124
|
-
;//
|
9412
|
+
;// ../../packages/table/src/index.ts
|
8125
9413
|
|
8126
9414
|
|
8127
9415
|
|
@@ -8130,8 +9418,6 @@ var BkTable = (0,shared_namespaceObject.withInstallProps)(table, {
|
|
8130
9418
|
});
|
8131
9419
|
/* harmony default export */ const src = (BkTable);
|
8132
9420
|
|
8133
|
-
})();
|
8134
|
-
|
8135
9421
|
var __webpack_exports__BkTable = __webpack_exports__.BkTable;
|
8136
9422
|
var __webpack_exports__BkTableColumn = __webpack_exports__.BkTableColumn;
|
8137
9423
|
var __webpack_exports__default = __webpack_exports__["default"];
|