bkui-vue 0.0.1-beta.468 → 0.0.1-beta.469

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.
Files changed (168) hide show
  1. package/lib/affix/index.js +1 -335
  2. package/lib/alert/index.js +1 -276
  3. package/lib/animate-number/index.js +1 -219
  4. package/lib/backtop/index.js +1 -252
  5. package/lib/badge/index.js +1 -293
  6. package/lib/breadcrumb/index.js +1 -311
  7. package/lib/button/index.js +1 -388
  8. package/lib/card/index.js +1 -356
  9. package/lib/cascader/index.js +2 -2075
  10. package/lib/cascader/index.js.LICENSE.txt +1 -0
  11. package/lib/checkbox/index.js +1 -536
  12. package/lib/code-diff/index.js +1 -5535
  13. package/lib/collapse/index.js +1 -589
  14. package/lib/collapse-transition/index.js +1 -234
  15. package/lib/color-picker/index.js +1 -2701
  16. package/lib/components.js +1 -781
  17. package/lib/config-provider/index.js +1 -377
  18. package/lib/container/index.js +1 -390
  19. package/lib/date-picker/index.js +1 -5537
  20. package/lib/dialog/index.js +2 -1322
  21. package/lib/dialog/index.js.LICENSE.txt +1 -0
  22. package/lib/directives/index.js +2 -1357
  23. package/lib/directives/index.js.LICENSE.txt +14 -0
  24. package/lib/dist.index.js +1 -179
  25. package/lib/divider/index.js +1 -226
  26. package/lib/dropdown/index.js +1 -392
  27. package/lib/exception/index.js +1 -423
  28. package/lib/fixed-navbar/index.js +1 -210
  29. package/lib/form/index.js +1 -995
  30. package/lib/hooks.js +1 -133
  31. package/lib/icon/angle-double-down-line.js +1 -541
  32. package/lib/icon/angle-double-left-line.js +1 -541
  33. package/lib/icon/angle-double-left.js +1 -541
  34. package/lib/icon/angle-double-right-line.js +1 -541
  35. package/lib/icon/angle-double-right.js +1 -541
  36. package/lib/icon/angle-double-up-line.js +1 -541
  37. package/lib/icon/angle-down-fill.js +1 -541
  38. package/lib/icon/angle-down-line.js +1 -541
  39. package/lib/icon/angle-down.js +1 -541
  40. package/lib/icon/angle-left.js +1 -541
  41. package/lib/icon/angle-right.js +1 -541
  42. package/lib/icon/angle-up-fill.js +1 -541
  43. package/lib/icon/angle-up.js +1 -541
  44. package/lib/icon/archive-fill.js +1 -541
  45. package/lib/icon/arrows-left.js +1 -541
  46. package/lib/icon/arrows-right.js +1 -541
  47. package/lib/icon/audio-fill.js +1 -541
  48. package/lib/icon/bk.js +1 -541
  49. package/lib/icon/circle.js +1 -541
  50. package/lib/icon/close-line.js +1 -541
  51. package/lib/icon/close.js +1 -541
  52. package/lib/icon/code.js +1 -541
  53. package/lib/icon/cog-shape.js +1 -541
  54. package/lib/icon/collapse-left.js +1 -541
  55. package/lib/icon/copy-shape.js +1 -541
  56. package/lib/icon/copy.js +1 -541
  57. package/lib/icon/data-shape.js +1 -541
  58. package/lib/icon/del.js +1 -541
  59. package/lib/icon/doc-fill.js +1 -541
  60. package/lib/icon/done.js +1 -541
  61. package/lib/icon/down-shape.js +1 -541
  62. package/lib/icon/down-small.js +1 -541
  63. package/lib/icon/edit-line.js +1 -541
  64. package/lib/icon/ellipsis.js +1 -541
  65. package/lib/icon/enlarge-line.js +1 -541
  66. package/lib/icon/error.js +1 -541
  67. package/lib/icon/excel-fill.js +1 -541
  68. package/lib/icon/exclamation-circle-shape.js +1 -541
  69. package/lib/icon/eye.js +1 -541
  70. package/lib/icon/filliscreen-line.js +1 -541
  71. package/lib/icon/fix-line.js +1 -541
  72. package/lib/icon/fix-shape.js +1 -541
  73. package/lib/icon/folder-open.js +1 -541
  74. package/lib/icon/folder-shape-open.js +1 -541
  75. package/lib/icon/folder-shape.js +1 -541
  76. package/lib/icon/folder.js +1 -541
  77. package/lib/icon/funnel.js +1 -541
  78. package/lib/icon/help-document-fill.js +1 -541
  79. package/lib/icon/help-fill.js +1 -541
  80. package/lib/icon/help.js +1 -541
  81. package/lib/icon/image-fill.js +1 -563
  82. package/lib/icon/img-error.js +1 -563
  83. package/lib/icon/img-placehoulder.js +1 -563
  84. package/lib/icon/index.js +1 -2337
  85. package/lib/icon/info-line.js +1 -563
  86. package/lib/icon/info.js +1 -563
  87. package/lib/icon/left-shape.js +1 -563
  88. package/lib/icon/left-turn-line.js +1 -563
  89. package/lib/icon/narrow-line.js +1 -563
  90. package/lib/icon/original.js +1 -563
  91. package/lib/icon/pdf-fill.js +1 -563
  92. package/lib/icon/play-shape.js +1 -563
  93. package/lib/icon/plus.js +1 -563
  94. package/lib/icon/ppt-fill.js +1 -563
  95. package/lib/icon/qq.js +1 -563
  96. package/lib/icon/right-shape.js +1 -563
  97. package/lib/icon/right-turn-line.js +1 -563
  98. package/lib/icon/search.js +1 -563
  99. package/lib/icon/share.js +1 -563
  100. package/lib/icon/spinner.js +1 -563
  101. package/lib/icon/success.js +1 -563
  102. package/lib/icon/switcher-loading.js +1 -563
  103. package/lib/icon/text-file.js +1 -563
  104. package/lib/icon/text-fill.js +1 -563
  105. package/lib/icon/transfer.js +1 -563
  106. package/lib/icon/tree-application-shape.js +1 -563
  107. package/lib/icon/unfull-screen.js +1 -563
  108. package/lib/icon/unvisible.js +1 -563
  109. package/lib/icon/up-shape.js +1 -563
  110. package/lib/icon/upload.js +1 -563
  111. package/lib/icon/video-fill.js +1 -563
  112. package/lib/icon/warn.js +1 -563
  113. package/lib/icon/weixin-pro.js +1 -563
  114. package/lib/icon/weixin.js +1 -563
  115. package/lib/image/index.js +1 -944
  116. package/lib/index.js +1 -195
  117. package/lib/info-box/index.js +2 -1508
  118. package/lib/info-box/index.js.LICENSE.txt +1 -0
  119. package/lib/input/index.js +1 -963
  120. package/lib/link/index.js +1 -219
  121. package/lib/loading/index.js +1 -434
  122. package/lib/locale/index.js +1 -489
  123. package/lib/menu/index.js +1 -776
  124. package/lib/message/index.js +2 -1744
  125. package/lib/message/index.js.LICENSE.txt +6 -0
  126. package/lib/modal/index.js +1 -397
  127. package/lib/navigation/index.js +1 -423
  128. package/lib/notify/index.js +1 -437
  129. package/lib/overflow-title/index.js +1 -547
  130. package/lib/pagination/index.js +1 -987
  131. package/lib/plugin-popover/index.js +1 -4022
  132. package/lib/plugins/index.js +1 -130
  133. package/lib/pop-confirm/index.js +1 -365
  134. package/lib/popover/index.js +1 -4028
  135. package/lib/popover2/index.js +1 -171
  136. package/lib/preset.js +1 -164
  137. package/lib/process/index.js +2 -1143
  138. package/lib/process/index.js.LICENSE.txt +1 -0
  139. package/lib/progress/index.js +1 -476
  140. package/lib/radio/index.js +1 -611
  141. package/lib/rate/index.js +1 -348
  142. package/lib/resize-layout/index.js +1 -482
  143. package/lib/search-select/index.js +2 -2999
  144. package/lib/search-select/index.js.LICENSE.txt +1 -0
  145. package/lib/select/index.js +2 -2531
  146. package/lib/select/index.js.LICENSE.txt +1 -0
  147. package/lib/shared/index.js +1 -2713
  148. package/lib/sideslider/index.js +2 -1043
  149. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  150. package/lib/slider/index.js +2 -1667
  151. package/lib/slider/index.js.LICENSE.txt +1 -0
  152. package/lib/steps/index.js +2 -1212
  153. package/lib/steps/index.js.LICENSE.txt +1 -0
  154. package/lib/swiper/index.js +1 -350
  155. package/lib/switcher/index.js +1 -323
  156. package/lib/tab/index.js +1 -918
  157. package/lib/table/index.js +1 -6388
  158. package/lib/table-column/index.js +1 -801
  159. package/lib/tag/index.js +1 -300
  160. package/lib/tag-input/index.js +1 -1757
  161. package/lib/time-picker/index.js +1 -142
  162. package/lib/timeline/index.js +1 -297
  163. package/lib/transfer/index.js +1 -764
  164. package/lib/tree/index.js +1 -2608
  165. package/lib/upload/index.js +2 -3257
  166. package/lib/upload/index.js.LICENSE.txt +1 -0
  167. package/lib/virtual-render/index.js +1 -790
  168. package/package.json +1 -1
@@ -1,1357 +1,2 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("../overflow-title"), require("../shared"), require("@popperjs/core"), require("../plugin-popover"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["../overflow-title", "../shared", "@popperjs/core", "../plugin-popover"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("../overflow-title"), require("../shared"), require("@popperjs/core"), require("../plugin-popover")) : factory(root["../overflow-title"], root["../shared"], root["@popperjs/core"], root["../plugin-popover"]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
10
- })(self, (__WEBPACK_EXTERNAL_MODULE__1040__, __WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__5798__, __WEBPACK_EXTERNAL_MODULE__9706__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ var __webpack_modules__ = ({
13
-
14
- /***/ 2439:
15
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
16
-
17
- module.exports = __webpack_require__(2527);
18
-
19
-
20
- /***/ }),
21
-
22
- /***/ 7430:
23
- /***/ ((module) => {
24
-
25
- "use strict";
26
- /**
27
- * Copyright (c) 2015, Facebook, Inc.
28
- * All rights reserved.
29
- *
30
- * This source code is licensed under the BSD-style license found in the
31
- * LICENSE file in the root directory of this source tree. An additional grant
32
- * of patent rights can be found in the PATENTS file in the same directory.
33
- *
34
- * @providesModule ExecutionEnvironment
35
- */
36
-
37
- /*jslint evil: true */
38
-
39
-
40
-
41
- var canUseDOM = !!(
42
- typeof window !== 'undefined' &&
43
- window.document &&
44
- window.document.createElement
45
- );
46
-
47
- /**
48
- * Simple, lightweight module assisting with the detection and context of
49
- * Worker. Helps avoid circular dependencies and allows code to reason about
50
- * whether or not they are in a Worker, even if they never include the main
51
- * `ReactWorker` dependency.
52
- */
53
- var ExecutionEnvironment = {
54
-
55
- canUseDOM: canUseDOM,
56
-
57
- canUseWorkers: typeof Worker !== 'undefined',
58
-
59
- canUseEventListeners:
60
- canUseDOM && !!(window.addEventListener || window.attachEvent),
61
-
62
- canUseViewport: canUseDOM && !!window.screen,
63
-
64
- isInWorker: !canUseDOM // For now, this is true - might change in the future.
65
-
66
- };
67
-
68
- module.exports = ExecutionEnvironment;
69
-
70
-
71
- /***/ }),
72
-
73
- /***/ 6377:
74
- /***/ ((module) => {
75
-
76
- /**
77
- * Copyright 2004-present Facebook. All Rights Reserved.
78
- *
79
- * @providesModule UserAgent_DEPRECATED
80
- */
81
-
82
- /**
83
- * Provides entirely client-side User Agent and OS detection. You should prefer
84
- * the non-deprecated UserAgent module when possible, which exposes our
85
- * authoritative server-side PHP-based detection to the client.
86
- *
87
- * Usage is straightforward:
88
- *
89
- * if (UserAgent_DEPRECATED.ie()) {
90
- * // IE
91
- * }
92
- *
93
- * You can also do version checks:
94
- *
95
- * if (UserAgent_DEPRECATED.ie() >= 7) {
96
- * // IE7 or better
97
- * }
98
- *
99
- * The browser functions will return NaN if the browser does not match, so
100
- * you can also do version compares the other way:
101
- *
102
- * if (UserAgent_DEPRECATED.ie() < 7) {
103
- * // IE6 or worse
104
- * }
105
- *
106
- * Note that the version is a float and may include a minor version number,
107
- * so you should always use range operators to perform comparisons, not
108
- * strict equality.
109
- *
110
- * **Note:** You should **strongly** prefer capability detection to browser
111
- * version detection where it's reasonable:
112
- *
113
- * http://www.quirksmode.org/js/support.html
114
- *
115
- * Further, we have a large number of mature wrapper functions and classes
116
- * which abstract away many browser irregularities. Check the documentation,
117
- * grep for things, or ask on javascript@lists.facebook.com before writing yet
118
- * another copy of "event || window.event".
119
- *
120
- */
121
-
122
- var _populated = false;
123
-
124
- // Browsers
125
- var _ie, _firefox, _opera, _webkit, _chrome;
126
-
127
- // Actual IE browser for compatibility mode
128
- var _ie_real_version;
129
-
130
- // Platforms
131
- var _osx, _windows, _linux, _android;
132
-
133
- // Architectures
134
- var _win64;
135
-
136
- // Devices
137
- var _iphone, _ipad, _native;
138
-
139
- var _mobile;
140
-
141
- function _populate() {
142
- if (_populated) {
143
- return;
144
- }
145
-
146
- _populated = true;
147
-
148
- // To work around buggy JS libraries that can't handle multi-digit
149
- // version numbers, Opera 10's user agent string claims it's Opera
150
- // 9, then later includes a Version/X.Y field:
151
- //
152
- // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
153
- var uas = navigator.userAgent;
154
- 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);
155
- var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
156
-
157
- _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
158
- _ipad = /\b(iP[ao]d)/.exec(uas);
159
- _android = /Android/i.exec(uas);
160
- _native = /FBAN\/\w+;/i.exec(uas);
161
- _mobile = /Mobile/i.exec(uas);
162
-
163
- // Note that the IE team blog would have you believe you should be checking
164
- // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
165
- // from either x64 or ia64; so ultimately, you should just check for Win64
166
- // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
167
- // Windows will send 'WOW64' instead.
168
- _win64 = !!(/Win64/.exec(uas));
169
-
170
- if (agent) {
171
- _ie = agent[1] ? parseFloat(agent[1]) : (
172
- agent[5] ? parseFloat(agent[5]) : NaN);
173
- // IE compatibility mode
174
- if (_ie && document && document.documentMode) {
175
- _ie = document.documentMode;
176
- }
177
- // grab the "true" ie version from the trident token if available
178
- var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
179
- _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
180
-
181
- _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
182
- _opera = agent[3] ? parseFloat(agent[3]) : NaN;
183
- _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
184
- if (_webkit) {
185
- // We do not add the regexp to the above test, because it will always
186
- // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
187
- // the userAgent string.
188
- agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
189
- _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
190
- } else {
191
- _chrome = NaN;
192
- }
193
- } else {
194
- _ie = _firefox = _opera = _chrome = _webkit = NaN;
195
- }
196
-
197
- if (os) {
198
- if (os[1]) {
199
- // Detect OS X version. If no version number matches, set _osx to true.
200
- // Version examples: 10, 10_6_1, 10.7
201
- // Parses version number as a float, taking only first two sets of
202
- // digits. If only one set of digits is found, returns just the major
203
- // version number.
204
- var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
205
-
206
- _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
207
- } else {
208
- _osx = false;
209
- }
210
- _windows = !!os[2];
211
- _linux = !!os[3];
212
- } else {
213
- _osx = _windows = _linux = false;
214
- }
215
- }
216
-
217
- var UserAgent_DEPRECATED = {
218
-
219
- /**
220
- * Check if the UA is Internet Explorer.
221
- *
222
- *
223
- * @return float|NaN Version number (if match) or NaN.
224
- */
225
- ie: function() {
226
- return _populate() || _ie;
227
- },
228
-
229
- /**
230
- * Check if we're in Internet Explorer compatibility mode.
231
- *
232
- * @return bool true if in compatibility mode, false if
233
- * not compatibility mode or not ie
234
- */
235
- ieCompatibilityMode: function() {
236
- return _populate() || (_ie_real_version > _ie);
237
- },
238
-
239
-
240
- /**
241
- * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
242
- * only need this because Skype can't handle 64-bit IE yet. We need to remove
243
- * this when we don't need it -- tracked by #601957.
244
- */
245
- ie64: function() {
246
- return UserAgent_DEPRECATED.ie() && _win64;
247
- },
248
-
249
- /**
250
- * Check if the UA is Firefox.
251
- *
252
- *
253
- * @return float|NaN Version number (if match) or NaN.
254
- */
255
- firefox: function() {
256
- return _populate() || _firefox;
257
- },
258
-
259
-
260
- /**
261
- * Check if the UA is Opera.
262
- *
263
- *
264
- * @return float|NaN Version number (if match) or NaN.
265
- */
266
- opera: function() {
267
- return _populate() || _opera;
268
- },
269
-
270
-
271
- /**
272
- * Check if the UA is WebKit.
273
- *
274
- *
275
- * @return float|NaN Version number (if match) or NaN.
276
- */
277
- webkit: function() {
278
- return _populate() || _webkit;
279
- },
280
-
281
- /**
282
- * For Push
283
- * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
284
- */
285
- safari: function() {
286
- return UserAgent_DEPRECATED.webkit();
287
- },
288
-
289
- /**
290
- * Check if the UA is a Chrome browser.
291
- *
292
- *
293
- * @return float|NaN Version number (if match) or NaN.
294
- */
295
- chrome : function() {
296
- return _populate() || _chrome;
297
- },
298
-
299
-
300
- /**
301
- * Check if the user is running Windows.
302
- *
303
- * @return bool `true' if the user's OS is Windows.
304
- */
305
- windows: function() {
306
- return _populate() || _windows;
307
- },
308
-
309
-
310
- /**
311
- * Check if the user is running Mac OS X.
312
- *
313
- * @return float|bool Returns a float if a version number is detected,
314
- * otherwise true/false.
315
- */
316
- osx: function() {
317
- return _populate() || _osx;
318
- },
319
-
320
- /**
321
- * Check if the user is running Linux.
322
- *
323
- * @return bool `true' if the user's OS is some flavor of Linux.
324
- */
325
- linux: function() {
326
- return _populate() || _linux;
327
- },
328
-
329
- /**
330
- * Check if the user is running on an iPhone or iPod platform.
331
- *
332
- * @return bool `true' if the user is running some flavor of the
333
- * iPhone OS.
334
- */
335
- iphone: function() {
336
- return _populate() || _iphone;
337
- },
338
-
339
- mobile: function() {
340
- return _populate() || (_iphone || _ipad || _android || _mobile);
341
- },
342
-
343
- nativeApp: function() {
344
- // webviews inside of the native apps
345
- return _populate() || _native;
346
- },
347
-
348
- android: function() {
349
- return _populate() || _android;
350
- },
351
-
352
- ipad: function() {
353
- return _populate() || _ipad;
354
- }
355
- };
356
-
357
- module.exports = UserAgent_DEPRECATED;
358
-
359
-
360
- /***/ }),
361
-
362
- /***/ 3541:
363
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
364
-
365
- "use strict";
366
- /**
367
- * Copyright 2013-2015, Facebook, Inc.
368
- * All rights reserved.
369
- *
370
- * This source code is licensed under the BSD-style license found in the
371
- * LICENSE file in the root directory of this source tree. An additional grant
372
- * of patent rights can be found in the PATENTS file in the same directory.
373
- *
374
- * @providesModule isEventSupported
375
- */
376
-
377
-
378
-
379
- var ExecutionEnvironment = __webpack_require__(7430);
380
-
381
- var useHasFeature;
382
- if (ExecutionEnvironment.canUseDOM) {
383
- useHasFeature =
384
- document.implementation &&
385
- document.implementation.hasFeature &&
386
- // always returns true in newer browsers as per the standard.
387
- // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
388
- document.implementation.hasFeature('', '') !== true;
389
- }
390
-
391
- /**
392
- * Checks if an event is supported in the current execution environment.
393
- *
394
- * NOTE: This will not work correctly for non-generic events such as `change`,
395
- * `reset`, `load`, `error`, and `select`.
396
- *
397
- * Borrows from Modernizr.
398
- *
399
- * @param {string} eventNameSuffix Event name, e.g. "click".
400
- * @param {?boolean} capture Check if the capture phase is supported.
401
- * @return {boolean} True if the event is supported.
402
- * @internal
403
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
404
- */
405
- function isEventSupported(eventNameSuffix, capture) {
406
- if (!ExecutionEnvironment.canUseDOM ||
407
- capture && !('addEventListener' in document)) {
408
- return false;
409
- }
410
-
411
- var eventName = 'on' + eventNameSuffix;
412
- var isSupported = eventName in document;
413
-
414
- if (!isSupported) {
415
- var element = document.createElement('div');
416
- element.setAttribute(eventName, 'return;');
417
- isSupported = typeof element[eventName] === 'function';
418
- }
419
-
420
- if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
421
- // This is the only way to test support for the `wheel` event in IE9+.
422
- isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
423
- }
424
-
425
- return isSupported;
426
- }
427
-
428
- module.exports = isEventSupported;
429
-
430
-
431
- /***/ }),
432
-
433
- /***/ 2527:
434
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
435
-
436
- "use strict";
437
- /**
438
- * Copyright (c) 2015, Facebook, Inc.
439
- * All rights reserved.
440
- *
441
- * This source code is licensed under the BSD-style license found in the
442
- * LICENSE file in the root directory of this source tree. An additional grant
443
- * of patent rights can be found in the PATENTS file in the same directory.
444
- *
445
- * @providesModule normalizeWheel
446
- * @typechecks
447
- */
448
-
449
-
450
-
451
- var UserAgent_DEPRECATED = __webpack_require__(6377);
452
-
453
- var isEventSupported = __webpack_require__(3541);
454
-
455
-
456
- // Reasonable defaults
457
- var PIXEL_STEP = 10;
458
- var LINE_HEIGHT = 40;
459
- var PAGE_HEIGHT = 800;
460
-
461
- /**
462
- * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
463
- * complicated, thus this doc is long and (hopefully) detailed enough to answer
464
- * your questions.
465
- *
466
- * If you need to react to the mouse wheel in a predictable way, this code is
467
- * like your bestest friend. * hugs *
468
- *
469
- * As of today, there are 4 DOM event types you can listen to:
470
- *
471
- * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
472
- * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
473
- * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
474
- * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
475
- *
476
- * So what to do? The is the best:
477
- *
478
- * normalizeWheel.getEventType();
479
- *
480
- * In your event callback, use this code to get sane interpretation of the
481
- * deltas. This code will return an object with properties:
482
- *
483
- * spinX -- normalized spin speed (use for zoom) - x plane
484
- * spinY -- " - y plane
485
- * pixelX -- normalized distance (to pixels) - x plane
486
- * pixelY -- " - y plane
487
- *
488
- * Wheel values are provided by the browser assuming you are using the wheel to
489
- * scroll a web page by a number of lines or pixels (or pages). Values can vary
490
- * significantly on different platforms and browsers, forgetting that you can
491
- * scroll at different speeds. Some devices (like trackpads) emit more events
492
- * at smaller increments with fine granularity, and some emit massive jumps with
493
- * linear speed or acceleration.
494
- *
495
- * This code does its best to normalize the deltas for you:
496
- *
497
- * - spin is trying to normalize how far the wheel was spun (or trackpad
498
- * dragged). This is super useful for zoom support where you want to
499
- * throw away the chunky scroll steps on the PC and make those equal to
500
- * the slow and smooth tiny steps on the Mac. Key data: This code tries to
501
- * resolve a single slow step on a wheel to 1.
502
- *
503
- * - pixel is normalizing the desired scroll delta in pixel units. You'll
504
- * get the crazy differences between browsers, but at least it'll be in
505
- * pixels!
506
- *
507
- * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
508
- * should translate to positive value zooming IN, negative zooming OUT.
509
- * This matches the newer 'wheel' event.
510
- *
511
- * Why are there spinX, spinY (or pixels)?
512
- *
513
- * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
514
- * with a mouse. It results in side-scrolling in the browser by default.
515
- *
516
- * - spinY is what you expect -- it's the classic axis of a mouse wheel.
517
- *
518
- * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
519
- * probably is by browsers in conjunction with fancy 3D controllers .. but
520
- * you know.
521
- *
522
- * Implementation info:
523
- *
524
- * Examples of 'wheel' event if you scroll slowly (down) by one step with an
525
- * average mouse:
526
- *
527
- * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
528
- * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
529
- * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
530
- * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
531
- * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
532
- *
533
- * On the trackpad:
534
- *
535
- * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
536
- * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
537
- *
538
- * On other/older browsers.. it's more complicated as there can be multiple and
539
- * also missing delta values.
540
- *
541
- * The 'wheel' event is more standard:
542
- *
543
- * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
544
- *
545
- * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
546
- * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
547
- * backward compatibility with older events. Those other values help us
548
- * better normalize spin speed. Example of what the browsers provide:
549
- *
550
- * | event.wheelDelta | event.detail
551
- * ------------------+------------------+--------------
552
- * Safari v5/OS X | -120 | 0
553
- * Safari v5/Win7 | -120 | 0
554
- * Chrome v17/OS X | -120 | 0
555
- * Chrome v17/Win7 | -120 | 0
556
- * IE9/Win7 | -120 | undefined
557
- * Firefox v4/OS X | undefined | 1
558
- * Firefox v4/Win7 | undefined | 3
559
- *
560
- */
561
- function normalizeWheel(/*object*/ event) /*object*/ {
562
- var sX = 0, sY = 0, // spinX, spinY
563
- pX = 0, pY = 0; // pixelX, pixelY
564
-
565
- // Legacy
566
- if ('detail' in event) { sY = event.detail; }
567
- if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
568
- if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
569
- if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
570
-
571
- // side scrolling on FF with DOMMouseScroll
572
- if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
573
- sX = sY;
574
- sY = 0;
575
- }
576
-
577
- pX = sX * PIXEL_STEP;
578
- pY = sY * PIXEL_STEP;
579
-
580
- if ('deltaY' in event) { pY = event.deltaY; }
581
- if ('deltaX' in event) { pX = event.deltaX; }
582
-
583
- if ((pX || pY) && event.deltaMode) {
584
- if (event.deltaMode == 1) { // delta in LINE units
585
- pX *= LINE_HEIGHT;
586
- pY *= LINE_HEIGHT;
587
- } else { // delta in PAGE units
588
- pX *= PAGE_HEIGHT;
589
- pY *= PAGE_HEIGHT;
590
- }
591
- }
592
-
593
- // Fall-back if spin cannot be determined
594
- if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
595
- if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
596
-
597
- return { spinX : sX,
598
- spinY : sY,
599
- pixelX : pX,
600
- pixelY : pY };
601
- }
602
-
603
-
604
- /**
605
- * The best combination if you prefer spinX + spinY normalization. It favors
606
- * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
607
- * 'wheel' event, making spin speed determination impossible.
608
- */
609
- normalizeWheel.getEventType = function() /*string*/ {
610
- return (UserAgent_DEPRECATED.firefox())
611
- ? 'DOMMouseScroll'
612
- : (isEventSupported('wheel'))
613
- ? 'wheel'
614
- : 'mousewheel';
615
- };
616
-
617
- module.exports = normalizeWheel;
618
-
619
-
620
- /***/ }),
621
-
622
- /***/ 1040:
623
- /***/ ((module) => {
624
-
625
- "use strict";
626
- module.exports = __WEBPACK_EXTERNAL_MODULE__1040__;
627
-
628
- /***/ }),
629
-
630
- /***/ 9706:
631
- /***/ ((module) => {
632
-
633
- "use strict";
634
- module.exports = __WEBPACK_EXTERNAL_MODULE__9706__;
635
-
636
- /***/ }),
637
-
638
- /***/ 4212:
639
- /***/ ((module) => {
640
-
641
- "use strict";
642
- module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
643
-
644
- /***/ }),
645
-
646
- /***/ 5798:
647
- /***/ ((module) => {
648
-
649
- "use strict";
650
- module.exports = __WEBPACK_EXTERNAL_MODULE__5798__;
651
-
652
- /***/ })
653
-
654
- /******/ });
655
- /************************************************************************/
656
- /******/ // The module cache
657
- /******/ var __webpack_module_cache__ = {};
658
- /******/
659
- /******/ // The require function
660
- /******/ function __webpack_require__(moduleId) {
661
- /******/ // Check if module is in cache
662
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
663
- /******/ if (cachedModule !== undefined) {
664
- /******/ return cachedModule.exports;
665
- /******/ }
666
- /******/ // Create a new module (and put it into the cache)
667
- /******/ var module = __webpack_module_cache__[moduleId] = {
668
- /******/ // no module.id needed
669
- /******/ // no module.loaded needed
670
- /******/ exports: {}
671
- /******/ };
672
- /******/
673
- /******/ // Execute the module function
674
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
675
- /******/
676
- /******/ // Return the exports of the module
677
- /******/ return module.exports;
678
- /******/ }
679
- /******/
680
- /************************************************************************/
681
- /******/ /* webpack/runtime/compat get default export */
682
- /******/ (() => {
683
- /******/ // getDefaultExport function for compatibility with non-harmony modules
684
- /******/ __webpack_require__.n = (module) => {
685
- /******/ var getter = module && module.__esModule ?
686
- /******/ () => (module['default']) :
687
- /******/ () => (module);
688
- /******/ __webpack_require__.d(getter, { a: getter });
689
- /******/ return getter;
690
- /******/ };
691
- /******/ })();
692
- /******/
693
- /******/ /* webpack/runtime/define property getters */
694
- /******/ (() => {
695
- /******/ // define getter functions for harmony exports
696
- /******/ __webpack_require__.d = (exports, definition) => {
697
- /******/ for(var key in definition) {
698
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
699
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
700
- /******/ }
701
- /******/ }
702
- /******/ };
703
- /******/ })();
704
- /******/
705
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
706
- /******/ (() => {
707
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
708
- /******/ })();
709
- /******/
710
- /******/ /* webpack/runtime/make namespace object */
711
- /******/ (() => {
712
- /******/ // define __esModule on exports
713
- /******/ __webpack_require__.r = (exports) => {
714
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
715
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
716
- /******/ }
717
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
718
- /******/ };
719
- /******/ })();
720
- /******/
721
- /************************************************************************/
722
- var __webpack_exports__ = {};
723
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
724
- (() => {
725
- "use strict";
726
- // ESM COMPAT FLAG
727
- __webpack_require__.r(__webpack_exports__);
728
-
729
- // EXPORTS
730
- __webpack_require__.d(__webpack_exports__, {
731
- bkEllipsis: () => (/* reexport */ src_ellipsis),
732
- bkEllipsisInstance: () => (/* reexport */ createInstance),
733
- bkTooltips: () => (/* reexport */ src_tooltips),
734
- clickoutside: () => (/* reexport */ clickoutside),
735
- mousewheel: () => (/* reexport */ src_mousewheel),
736
- overflowTitle: () => (/* reexport */ external_overflow_title_.overflowTitle)
737
- });
738
-
739
- // EXTERNAL MODULE: external "../overflow-title"
740
- var external_overflow_title_ = __webpack_require__(1040);
741
- // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
742
- var normalize_wheel = __webpack_require__(2439);
743
- var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
744
- ;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
745
- /*
746
- * Tencent is pleased to support the open source community by making
747
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
748
- *
749
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
750
- *
751
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
752
- *
753
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
754
- *
755
- * ---------------------------------------------------
756
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
757
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
758
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
759
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
760
- *
761
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
762
- * the Software.
763
- *
764
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
765
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
766
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
767
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
768
- * IN THE SOFTWARE.
769
- */
770
-
771
- var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
772
- var mousewheelHandler = function mousewheelHandler(element, callback) {
773
- if (element === null || element === void 0 ? void 0 : element.addEventListener) {
774
- element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
775
- var normalized = normalize_wheel_default()(e);
776
- callback === null || callback === void 0 ? void 0 : callback.apply(this, [e, normalized]);
777
- });
778
- }
779
- };
780
- var mousewheel = {
781
- beforeMount: function beforeMount(el, binding) {
782
- console.error(el, binding);
783
- mousewheelHandler(el, binding.value);
784
- }
785
- };
786
- /* harmony default export */ const src_mousewheel = (mousewheel);
787
- ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
788
- 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; } } }; }
789
- 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); }
790
- 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; }
791
- /*
792
- * Tencent is pleased to support the open source community by making
793
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
794
- *
795
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
796
- *
797
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
798
- *
799
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
800
- *
801
- * ---------------------------------------------------
802
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
803
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
804
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
805
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
806
- *
807
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
808
- * the Software.
809
- *
810
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
811
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
812
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
813
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
814
- * IN THE SOFTWARE.
815
- */
816
- var isElement = function isElement(e) {
817
- if (typeof Element === 'undefined') return false;
818
- return e instanceof Element;
819
- };
820
- var nodeList = new Map();
821
- var startClick;
822
- document.addEventListener('mousedown', function (e) {
823
- return startClick = e;
824
- });
825
- document.addEventListener('mouseup', function (e) {
826
- var _iterator = _createForOfIteratorHelper(nodeList.values()),
827
- _step;
828
- try {
829
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
830
- var handlers = _step.value;
831
- var _iterator2 = _createForOfIteratorHelper(handlers),
832
- _step2;
833
- try {
834
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
835
- var documentHandler = _step2.value.documentHandler;
836
- documentHandler(e, startClick);
837
- }
838
- } catch (err) {
839
- _iterator2.e(err);
840
- } finally {
841
- _iterator2.f();
842
- }
843
- }
844
- } catch (err) {
845
- _iterator.e(err);
846
- } finally {
847
- _iterator.f();
848
- }
849
- });
850
- function createDocumentHandler(el, binding) {
851
- var excludes = [];
852
- if (Array.isArray(binding.arg)) {
853
- excludes = binding.arg;
854
- } else if (isElement(binding.arg)) {
855
- excludes.push(binding.arg);
856
- }
857
- return function (mouseup, mousedown) {
858
- var popperRef = binding.instance.popperRef;
859
- var mouseUpTarget = mouseup.target;
860
- var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
861
- var isBound = !binding || !binding.instance;
862
- var isTargetExists = !mouseUpTarget || !mouseDownTarget;
863
- var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
864
- var isSelf = el === mouseUpTarget;
865
- var isTargetExcluded = excludes.length && excludes.some(function (item) {
866
- return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
867
- }) || excludes.length && excludes.includes(mouseDownTarget);
868
- var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
869
- if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
870
- return;
871
- }
872
- binding.value(mouseup, mousedown);
873
- };
874
- }
875
- var ClickOutside = {
876
- beforeMount: function beforeMount(el, binding) {
877
- if (!nodeList.has(el)) {
878
- nodeList.set(el, []);
879
- }
880
- nodeList.get(el).push({
881
- documentHandler: createDocumentHandler(el, binding),
882
- bindingFn: binding.value
883
- });
884
- },
885
- updated: function updated(el, binding) {
886
- if (!nodeList.has(el)) {
887
- nodeList.set(el, []);
888
- }
889
- var handlers = nodeList.get(el);
890
- var oldHandlerIndex = handlers.findIndex(function (item) {
891
- return item.bindingFn === binding.oldValue;
892
- });
893
- var newHandler = {
894
- documentHandler: createDocumentHandler(el, binding),
895
- bindingFn: binding.value
896
- };
897
- if (oldHandlerIndex >= 0) {
898
- // replace the old handler to the new handler
899
- handlers.splice(oldHandlerIndex, 1, newHandler);
900
- } else {
901
- handlers.push(newHandler);
902
- }
903
- },
904
- unmounted: function unmounted(el) {
905
- // remove all listeners when a component unmounted
906
- nodeList["delete"](el);
907
- }
908
- };
909
- ClickOutside.install = function (app) {
910
- app.directive('bkTooltips', ClickOutside);
911
- };
912
- /* harmony default export */ const clickoutside = (ClickOutside);
913
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
914
- function arrayLikeToArray_arrayLikeToArray(arr, len) {
915
- if (len == null || len > arr.length) len = arr.length;
916
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
917
- return arr2;
918
- }
919
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
920
-
921
- function _arrayWithoutHoles(arr) {
922
- if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
923
- }
924
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
925
- function _iterableToArray(iter) {
926
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
927
- }
928
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
929
-
930
- function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
931
- if (!o) return;
932
- if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
933
- var n = Object.prototype.toString.call(o).slice(8, -1);
934
- if (n === "Object" && o.constructor) n = o.constructor.name;
935
- if (n === "Map" || n === "Set") return Array.from(o);
936
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
937
- }
938
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
939
- function _nonIterableSpread() {
940
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
941
- }
942
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
943
-
944
-
945
-
946
-
947
- function _toConsumableArray(arr) {
948
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
949
- }
950
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
951
- function _typeof(obj) {
952
- "@babel/helpers - typeof";
953
-
954
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
955
- return typeof obj;
956
- } : function (obj) {
957
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
958
- }, _typeof(obj);
959
- }
960
- // EXTERNAL MODULE: external "../shared"
961
- var external_shared_ = __webpack_require__(4212);
962
- // EXTERNAL MODULE: external "@popperjs/core"
963
- var core_ = __webpack_require__(5798);
964
- ;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
965
-
966
-
967
- /*
968
- * Tencent is pleased to support the open source community by making
969
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
970
- *
971
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
972
- *
973
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
974
- *
975
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
976
- *
977
- * ---------------------------------------------------
978
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
979
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
980
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
981
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
982
- *
983
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
984
- * the Software.
985
- *
986
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
987
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
988
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
989
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
990
- * IN THE SOFTWARE.
991
- */
992
-
993
-
994
- var tooltips_nodeList = new Map();
995
- var tooltips = {
996
- beforeMount: function beforeMount(el, binding) {
997
- var opts = getOpts(binding);
998
- var trigger = opts.trigger;
999
- var popper = renderContent(opts);
1000
- var delayTimeout = null;
1001
- if (trigger === 'hover') {
1002
- var hideTimeout = null;
1003
- el.addEventListener('mouseenter', function () {
1004
- delayTimeout = setTimeout(function () {
1005
- show(el);
1006
- clearTimeout(hideTimeout);
1007
- clearTimeout(delayTimeout);
1008
- }, opts.delay);
1009
- });
1010
- popper.addEventListener('mouseenter', function () {
1011
- clearTimeout(hideTimeout);
1012
- });
1013
- el.addEventListener('mouseleave', function () {
1014
- clearTimeout(delayTimeout);
1015
- hideTimeout = setTimeout(function () {
1016
- hide(el);
1017
- }, 100);
1018
- });
1019
- el.addEventListener('click', function () {
1020
- hide(el);
1021
- });
1022
- popper.addEventListener('mouseleave', function () {
1023
- clearTimeout(delayTimeout);
1024
- hideTimeout = setTimeout(function () {
1025
- hide(el);
1026
- }, 100);
1027
- });
1028
- } else if (trigger === 'click') {
1029
- document.body.addEventListener('click', function (event) {
1030
- if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
1031
- delayTimeout = setTimeout(function () {
1032
- show(el);
1033
- clearTimeout(delayTimeout);
1034
- }, opts.delay);
1035
- } else if (popper.hasAttribute('data-show')) {
1036
- hide(el);
1037
- }
1038
- });
1039
- }
1040
- tooltips_nodeList.set(el, {
1041
- opts: opts,
1042
- popper: popper,
1043
- popperInstance: null
1044
- });
1045
- },
1046
- updated: function updated(el, binding) {
1047
- tooltips_nodeList.get(el).opts = getOpts(binding);
1048
- },
1049
- unmounted: function unmounted(el) {
1050
- hide(el);
1051
- tooltips_nodeList["delete"](el);
1052
- }
1053
- };
1054
- /**
1055
- * 初始化配置
1056
- * @returns tooltips配置
1057
- */
1058
- function initOptions() {
1059
- var defaultOpts = {
1060
- arrow: true,
1061
- disabled: false,
1062
- trigger: 'hover',
1063
- theme: 'dark',
1064
- content: '',
1065
- showOnInit: false,
1066
- placement: 'top',
1067
- distance: 8,
1068
- extCls: '',
1069
- delay: 0,
1070
- onShow: function onShow() {},
1071
- onHide: function onHide() {}
1072
- };
1073
- return defaultOpts;
1074
- }
1075
- /**
1076
- * 获取配置
1077
- * @returns tooltips配置
1078
- */
1079
- function getOpts(binding) {
1080
- var opts = initOptions();
1081
- if (_typeof(binding.value) === 'object') {
1082
- Object.assign(opts, binding.value);
1083
- } else {
1084
- opts.content = binding.value;
1085
- }
1086
- return opts;
1087
- }
1088
- /**
1089
- * 创建tooltips DOM
1090
- * @param opts
1091
- * @returns
1092
- */
1093
- function renderContent(opts) {
1094
- var value = opts.content,
1095
- hasArrow = opts.arrow,
1096
- theme = opts.theme,
1097
- extCls = opts.extCls;
1098
- var isLight = theme === 'light';
1099
- var zIndex = external_shared_.bkZIndexManager.getPopperIndex();
1100
- var content = document.createElement('div');
1101
- content.className = "".concat((0,external_shared_.resolveClassName)('popper'), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
1102
- content.innerText = value;
1103
- content.style.zIndex = String(zIndex);
1104
- if (hasArrow) {
1105
- var arrow = renderArrow();
1106
- content.appendChild(arrow);
1107
- }
1108
- return content;
1109
- }
1110
- /**
1111
- * 渲染箭头dom
1112
- * @returns arrow DOM
1113
- */
1114
- function renderArrow() {
1115
- var arrow = document.createElement('div');
1116
- arrow.className = (0,external_shared_.resolveClassName)('popper-arrow');
1117
- arrow.setAttribute('data-popper-arrow', '');
1118
- return arrow;
1119
- }
1120
- /**
1121
- * 创建popper实例
1122
- * @param el
1123
- * @param popper
1124
- * @returns popper实例
1125
- */
1126
- function createPopperInstance(el, popper) {
1127
- var _nodeList$get = tooltips_nodeList.get(el),
1128
- opts = _nodeList$get.opts;
1129
- var placement = opts.placement,
1130
- distance = opts.distance,
1131
- showOnInit = opts.showOnInit;
1132
- var popperInstance = (0,core_.createPopper)(el, popper, {
1133
- placement: placement,
1134
- modifiers: [{
1135
- name: 'offset',
1136
- options: {
1137
- offset: [0, distance]
1138
- }
1139
- }]
1140
- });
1141
- if (showOnInit) show(el);
1142
- return popperInstance;
1143
- }
1144
- /**
1145
- * 显示
1146
- * @param el
1147
- */
1148
- function show(el) {
1149
- var _nodeList$get2 = tooltips_nodeList.get(el),
1150
- popper = _nodeList$get2.popper,
1151
- opts = _nodeList$get2.opts;
1152
- var disabled = opts.disabled,
1153
- content = opts.content,
1154
- hasArrow = opts.arrow,
1155
- onShow = opts.onShow;
1156
- if (disabled) return;
1157
- popper.innerText = content;
1158
- if (hasArrow) {
1159
- var arrow = renderArrow();
1160
- popper.appendChild(arrow);
1161
- }
1162
- document.body.appendChild(popper);
1163
- var popperInstance = createPopperInstance(el, popper);
1164
- onShow();
1165
- // Make the tooltip visible
1166
- popper.setAttribute('data-show', '');
1167
- // Enable the event listeners
1168
- popperInstance.setOptions(function (options) {
1169
- return Object.assign(Object.assign({}, options), {
1170
- modifiers: [].concat(_toConsumableArray(options.modifiers), [{
1171
- name: 'eventListeners',
1172
- enabled: true
1173
- }])
1174
- });
1175
- });
1176
- // Update its position
1177
- popperInstance.forceUpdate();
1178
- tooltips_nodeList.get(el).popperInstance = popperInstance;
1179
- }
1180
- /**
1181
- * 隐藏
1182
- * @param el
1183
- */
1184
- function hide(el) {
1185
- if (!tooltips_nodeList.get(el)) return;
1186
- var _nodeList$get3 = tooltips_nodeList.get(el),
1187
- popper = _nodeList$get3.popper,
1188
- popperInstance = _nodeList$get3.popperInstance,
1189
- opts = _nodeList$get3.opts;
1190
- var onHide = opts.onHide;
1191
- if (popper && document.body.contains(popper)) {
1192
- popper.removeAttribute('data-show');
1193
- popperInstance === null || popperInstance === void 0 ? void 0 : popperInstance.destroy();
1194
- document.body.removeChild(popper);
1195
- onHide();
1196
- }
1197
- }
1198
- /* harmony default export */ const src_tooltips = (tooltips);
1199
- // EXTERNAL MODULE: external "../plugin-popover"
1200
- var external_plugin_popover_ = __webpack_require__(9706);
1201
- var external_plugin_popover_default = /*#__PURE__*/__webpack_require__.n(external_plugin_popover_);
1202
- ;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
1203
-
1204
- /*
1205
- * Tencent is pleased to support the open source community by making
1206
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1207
- *
1208
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1209
- *
1210
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1211
- *
1212
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1213
- *
1214
- * ---------------------------------------------------
1215
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1216
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1217
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1218
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1219
- *
1220
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1221
- * the Software.
1222
- *
1223
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1224
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1225
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1226
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1227
- * IN THE SOFTWARE.
1228
- */
1229
-
1230
- var resolveOptions = function resolveOptions(el, binding) {
1231
- var options = {
1232
- content: '',
1233
- target: el
1234
- };
1235
- if (_typeof(binding) === 'object') {
1236
- Object.assign(options, binding);
1237
- } else {
1238
- options.content = binding;
1239
- }
1240
- return options;
1241
- };
1242
- var createInstance = function createInstance(el, binding) {
1243
- var instance = null;
1244
- var createTimer = null;
1245
- var hidePopTimer = null;
1246
- // const cache = {};
1247
- var options = resolveOptions(el, binding);
1248
- var disabled = options.disabled;
1249
- if (disabled || instance) {
1250
- return;
1251
- }
1252
- var handleContentEnter = function handleContentEnter() {
1253
- hidePopTimer && clearTimeout(hidePopTimer);
1254
- hidePopTimer = null;
1255
- };
1256
- var handleContentLeave = function handleContentLeave() {
1257
- if (createTimer) {
1258
- clearTimeout(createTimer);
1259
- }
1260
- instance === null || instance === void 0 ? void 0 : instance.hide();
1261
- instance === null || instance === void 0 ? void 0 : instance.close();
1262
- instance = null;
1263
- };
1264
- var handleMouseEnter = function handleMouseEnter() {
1265
- createTimer && clearTimeout(createTimer);
1266
- createTimer = setTimeout(function () {
1267
- var targetOptions = resolveOptions(el, binding);
1268
- targetOptions.isShow = true;
1269
- targetOptions.content = targetOptions.content || el.innerHTML;
1270
- targetOptions.allowHtml = true;
1271
- Object.assign(targetOptions, {
1272
- onContentMouseenter: handleContentEnter,
1273
- onContentMouseleave: handleContentLeave
1274
- });
1275
- instance = external_plugin_popover_default()(targetOptions);
1276
- }, 100);
1277
- };
1278
- var handleMouseLeave = function handleMouseLeave() {
1279
- hidePopTimer = setTimeout(function () {
1280
- if (createTimer) {
1281
- clearTimeout(createTimer);
1282
- }
1283
- instance === null || instance === void 0 ? void 0 : instance.hide();
1284
- instance === null || instance === void 0 ? void 0 : instance.close();
1285
- instance = null;
1286
- }, 120);
1287
- };
1288
- el.addEventListener('mouseenter', handleMouseEnter);
1289
- el.addEventListener('mouseleave', handleMouseLeave);
1290
- // Object.assign(cache, {
1291
- // __cached: {
1292
- // handleMouseEnter,
1293
- // handleMouseLeave,
1294
- // },
1295
- // });
1296
- var destroyInstance = function destroyInstance(element) {
1297
- var _a, _b;
1298
- handleMouseLeave();
1299
- (_a = element !== null && element !== void 0 ? element : el) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', handleMouseEnter);
1300
- (_b = element !== null && element !== void 0 ? element : el) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', handleMouseLeave);
1301
- };
1302
- return {
1303
- destroyInstance: destroyInstance,
1304
- instance: instance
1305
- };
1306
- };
1307
- var ellipsis = {
1308
- mounted: function mounted(el, binding) {
1309
- createInstance(el, binding);
1310
- } // beforeUnmount(el: HTMLElement, binding: any) {
1311
- // if (binding.cache) {
1312
- // const { handleMouseEnter, handleMouseLeave } = binding.__cached;
1313
- // el.removeEventListener('mouseenter', handleMouseEnter);
1314
- // el.removeEventListener('mouseleave', handleMouseLeave);
1315
- // binding.__cached = null;
1316
- // }
1317
- // },
1318
- };
1319
- /* harmony default export */ const src_ellipsis = (ellipsis);
1320
- ;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
1321
- /*
1322
- * Tencent is pleased to support the open source community by making
1323
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1324
- *
1325
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1326
- *
1327
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1328
- *
1329
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1330
- *
1331
- * ---------------------------------------------------
1332
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1333
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1334
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1335
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1336
- *
1337
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1338
- * the Software.
1339
- *
1340
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1341
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1342
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1343
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1344
- * IN THE SOFTWARE.
1345
- */
1346
-
1347
-
1348
-
1349
-
1350
-
1351
- // export { createInstance as bkEllipsisInstance } from './ellipsis';
1352
- })();
1353
-
1354
- /******/ return __webpack_exports__;
1355
- /******/ })()
1356
- ;
1357
- });
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../overflow-title"),require("../shared"),require("@popperjs/core"),require("../plugin-popover"));else if("function"==typeof define&&define.amd)define(["../overflow-title","../shared","@popperjs/core","../plugin-popover"],t);else{var n="object"==typeof exports?t(require("../overflow-title"),require("../shared"),require("@popperjs/core"),require("../plugin-popover")):t(e["../overflow-title"],e["../shared"],e["@popperjs/core"],e["../plugin-popover"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r)=>(()=>{var o={2439:(e,t,n)=>{e.exports=n(2527)},7430:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},6377:e=>{var t,n,r,o,i,a,u,l,c,s,d,f,p,v,m,y=!1;function b(){if(!y){y=!0;var e=navigator.userAgent,b=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),h=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),s=/Android/i.exec(e),v=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),d=!!/Win64/.exec(e),b){(t=b[1]?parseFloat(b[1]):b[5]?parseFloat(b[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var w=/(?:Trident\/(\d+.\d+))/.exec(e);a=w?parseFloat(w[1])+4:t,n=b[2]?parseFloat(b[2]):NaN,r=b[3]?parseFloat(b[3]):NaN,(o=b[4]?parseFloat(b[4]):NaN)?(b=/(?:Chrome\/(\d+\.\d+))/.exec(e),i=b&&b[1]?parseFloat(b[1]):NaN):i=NaN}else t=n=r=i=o=NaN;if(h){if(h[1]){var g=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);u=!g||parseFloat(g[1].replace("_","."))}else u=!1;l=!!h[2],c=!!h[3]}else u=l=c=!1}}var h={ie:function(){return b()||t},ieCompatibilityMode:function(){return b()||a>t},ie64:function(){return h.ie()&&d},firefox:function(){return b()||n},opera:function(){return b()||r},webkit:function(){return b()||o},safari:function(){return h.webkit()},chrome:function(){return b()||i},windows:function(){return b()||l},osx:function(){return b()||u},linux:function(){return b()||c},iphone:function(){return b()||f},mobile:function(){return b()||f||p||s||m},nativeApp:function(){return b()||v},android:function(){return b()||s},ipad:function(){return b()||p}};e.exports=h},3541:(e,t,n)=>{"use strict";var r,o=n(7430);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},2527:(e,t,n)=>{"use strict";var r=n(6377),o=n(3541);function i(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=i},1040:t=>{"use strict";t.exports=e},9706:e=>{"use strict";e.exports=r},4212:e=>{"use strict";e.exports=t},5798:e=>{"use strict";e.exports=n}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{"use strict";a.r(u),a.d(u,{bkEllipsis:()=>j,bkEllipsisInstance:()=>O,bkTooltips:()=>T,clickoutside:()=>p,mousewheel:()=>o,overflowTitle:()=>e.overflowTitle});var e=a(1040),t=a(2439),n=a.n(t),r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;const o={beforeMount:function(e,t){var o,i;console.error(e,t),o=e,i=t.value,(null==o?void 0:o.addEventListener)&&o.addEventListener(r?"DOMMouseScroll":"mousewheel",(function(e){var t=n()(e);null==i||i.apply(this,[e,t])}))}};function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c,s=new Map;function d(e,t){var n,r=[];return Array.isArray(t.arg)?r=t.arg:(n=t.arg,"undefined"!=typeof Element&&n instanceof Element&&r.push(t.arg)),function(n,o){var i=t.instance.popperRef,a=n.target,u=null==o?void 0:o.target,l=!t||!t.instance,c=!a||!u,s=e.contains(a)||e.contains(u),d=e===a,f=r.length&&r.some((function(e){return null==e?void 0:e.contains(a)}))||r.length&&r.includes(u),p=i&&(i.contains(a)||i.contains(u));l||c||s||d||f||p||t.value(n,o)}}document.addEventListener("mousedown",(function(e){return c=e})),document.addEventListener("mouseup",(function(e){var t,n=i(s.values());try{for(n.s();!(t=n.n()).done;){var r,o=i(t.value);try{for(o.s();!(r=o.n()).done;)(0,r.value.documentHandler)(e,c)}catch(e){o.e(e)}finally{o.f()}}}catch(e){n.e(e)}finally{n.f()}}));var f={beforeMount:function(e,t){s.has(e)||s.set(e,[]),s.get(e).push({documentHandler:d(e,t),bindingFn:t.value})},updated:function(e,t){s.has(e)||s.set(e,[]);var n=s.get(e),r=n.findIndex((function(e){return e.bindingFn===t.oldValue})),o={documentHandler:d(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted:function(e){s.delete(e)},install:function(e){e.directive("bkTooltips",f)}};const p=f;function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var y=a(4212),b=a(5798),h=new Map;function w(e){var t={arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,extCls:"",delay:0,onShow:function(){},onHide:function(){}};return"object"===m(e.value)?Object.assign(t,e.value):t.content=e.value,t}function g(){var e=document.createElement("div");return e.className=(0,y.resolveClassName)("popper-arrow"),e.setAttribute("data-popper-arrow",""),e}function x(e){var t=h.get(e),n=t.popper,r=t.opts,o=r.disabled,i=r.content,a=r.arrow,u=r.onShow;if(!o){if(n.innerText=i,a){var l=g();n.appendChild(l)}document.body.appendChild(n);var c=function(e,t){var n=h.get(e).opts,r=n.placement,o=n.distance,i=n.showOnInit,a=(0,b.createPopper)(e,t,{placement:r,modifiers:[{name:"offset",options:{offset:[0,o]}}]});return i&&x(e),a}(e,n);u(),n.setAttribute("data-show",""),c.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat((t=e.modifiers,function(e){if(Array.isArray(e))return v(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{name:"eventListeners",enabled:!0}])});var t})),c.forceUpdate(),h.get(e).popperInstance=c}}function E(e){if(h.get(e)){var t=h.get(e),n=t.popper,r=t.popperInstance,o=t.opts.onHide;n&&document.body.contains(n)&&(n.removeAttribute("data-show"),null==r||r.destroy(),document.body.removeChild(n),o())}}const T={beforeMount:function(e,t){var n=w(t),r=n.trigger,o=function(e){var t=e.content,n=e.arrow,r=e.theme,o=e.extCls,i="light"===r,a=y.bkZIndexManager.getPopperIndex(),u=document.createElement("div");if(u.className="".concat((0,y.resolveClassName)("popper")," ").concat(i?"light":"dark"," ").concat(o),u.innerText=t,u.style.zIndex=String(a),n){var l=g();u.appendChild(l)}return u}(n),i=null;if("hover"===r){var a=null;e.addEventListener("mouseenter",(function(){i=setTimeout((function(){x(e),clearTimeout(a),clearTimeout(i)}),n.delay)})),o.addEventListener("mouseenter",(function(){clearTimeout(a)})),e.addEventListener("mouseleave",(function(){clearTimeout(i),a=setTimeout((function(){E(e)}),100)})),e.addEventListener("click",(function(){E(e)})),o.addEventListener("mouseleave",(function(){clearTimeout(i),a=setTimeout((function(){E(e)}),100)}))}else"click"===r&&document.body.addEventListener("click",(function(t){e.contains(t.target)&&!o.hasAttribute("data-show")?i=setTimeout((function(){x(e),clearTimeout(i)}),n.delay):o.hasAttribute("data-show")&&E(e)}));h.set(e,{opts:n,popper:o,popperInstance:null})},updated:function(e,t){h.get(e).opts=w(t)},unmounted:function(e){E(e),h.delete(e)}};var M=a(9706),S=a.n(M),A=function(e,t){var n={content:"",target:e};return"object"===m(t)?Object.assign(n,t):n.content=t,n},O=function(e,t){var n=null,r=null,o=null;if(!A(e,t).disabled&&!n){var i=function(){o&&clearTimeout(o),o=null},a=function(){r&&clearTimeout(r),null==n||n.hide(),null==n||n.close(),n=null},u=function(){r&&clearTimeout(r),r=setTimeout((function(){var r=A(e,t);r.isShow=!0,r.content=r.content||e.innerHTML,r.allowHtml=!0,Object.assign(r,{onContentMouseenter:i,onContentMouseleave:a}),n=S()(r)}),100)},l=function(){o=setTimeout((function(){r&&clearTimeout(r),null==n||n.hide(),null==n||n.close(),n=null}),120)};return e.addEventListener("mouseenter",u),e.addEventListener("mouseleave",l),{destroyInstance:function(t){var n,r;l(),null===(n=null!=t?t:e)||void 0===n||n.removeEventListener("mouseenter",u),null===(r=null!=t?t:e)||void 0===r||r.removeEventListener("mouseleave",l)},instance:n}}};const j={mounted:function(e,t){O(e,t)}}})(),u})()));