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.
Files changed (159) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.esm.js +1 -1
  3. package/dist/index.umd.js +1 -1
  4. package/lib/affix/index.js +30 -22
  5. package/lib/alert/index.js +30 -22
  6. package/lib/animate-number/index.js +14 -10
  7. package/lib/backtop/index.js +32 -22
  8. package/lib/badge/index.js +24 -18
  9. package/lib/breadcrumb/index.js +31 -23
  10. package/lib/button/index.js +36 -26
  11. package/lib/card/index.js +47 -33
  12. package/lib/cascader/index.js +1680 -198
  13. package/lib/checkbox/index.js +44 -34
  14. package/lib/code-diff/index.js +83 -79
  15. package/lib/collapse/index.js +39 -33
  16. package/lib/collapse-transition/index.js +20 -14
  17. package/lib/color-picker/index.js +1645 -193
  18. package/lib/config-provider/index.js +34 -26
  19. package/lib/container/index.js +27 -21
  20. package/lib/date-picker/index.js +1943 -516
  21. package/lib/dialog/index.js +101 -87
  22. package/lib/directives/index.js +494 -376
  23. package/lib/divider/index.js +21 -15
  24. package/lib/dropdown/index.js +43 -31
  25. package/lib/exception/index.js +55 -49
  26. package/lib/fixed-navbar/index.js +20 -14
  27. package/lib/form/index.js +1623 -198
  28. package/lib/icon/angle-double-down-line.js +14 -12
  29. package/lib/icon/angle-double-left-line.js +14 -12
  30. package/lib/icon/angle-double-left.js +14 -12
  31. package/lib/icon/angle-double-right-line.js +14 -12
  32. package/lib/icon/angle-double-right.js +14 -12
  33. package/lib/icon/angle-double-up-line.js +14 -12
  34. package/lib/icon/angle-down-fill.js +14 -12
  35. package/lib/icon/angle-down-line.js +14 -12
  36. package/lib/icon/angle-down.js +14 -12
  37. package/lib/icon/angle-left.js +14 -12
  38. package/lib/icon/angle-right.js +14 -12
  39. package/lib/icon/angle-up-fill.js +14 -12
  40. package/lib/icon/angle-up.js +14 -12
  41. package/lib/icon/archive-fill.js +14 -12
  42. package/lib/icon/arrows-left.js +14 -12
  43. package/lib/icon/arrows-right.js +14 -12
  44. package/lib/icon/assistant.js +14 -12
  45. package/lib/icon/audio-fill.js +14 -12
  46. package/lib/icon/bk.js +14 -12
  47. package/lib/icon/circle.js +14 -12
  48. package/lib/icon/close-line.js +14 -12
  49. package/lib/icon/close.js +14 -12
  50. package/lib/icon/code.js +14 -12
  51. package/lib/icon/cog-shape.js +14 -12
  52. package/lib/icon/collapse-left.js +14 -12
  53. package/lib/icon/copy-shape.js +14 -12
  54. package/lib/icon/copy.js +14 -12
  55. package/lib/icon/data-shape.js +14 -12
  56. package/lib/icon/del.js +14 -12
  57. package/lib/icon/doc-fill.js +14 -12
  58. package/lib/icon/done.js +14 -12
  59. package/lib/icon/down-shape.js +14 -12
  60. package/lib/icon/down-small.js +14 -12
  61. package/lib/icon/edit-line.js +14 -12
  62. package/lib/icon/ellipsis.js +14 -12
  63. package/lib/icon/enlarge-line.js +14 -12
  64. package/lib/icon/error.js +14 -12
  65. package/lib/icon/excel-fill.js +14 -12
  66. package/lib/icon/exclamation-circle-shape.js +14 -12
  67. package/lib/icon/eye.js +14 -12
  68. package/lib/icon/filliscreen-line.js +14 -12
  69. package/lib/icon/fix-line.js +14 -12
  70. package/lib/icon/fix-shape.js +14 -12
  71. package/lib/icon/folder-open.js +14 -12
  72. package/lib/icon/folder-shape-open.js +14 -12
  73. package/lib/icon/folder-shape.js +14 -12
  74. package/lib/icon/folder.js +14 -12
  75. package/lib/icon/funnel.js +14 -12
  76. package/lib/icon/grag-fill.js +14 -12
  77. package/lib/icon/help-document-fill.js +14 -12
  78. package/lib/icon/help-fill.js +14 -12
  79. package/lib/icon/help.js +14 -12
  80. package/lib/icon/image-fill.js +14 -12
  81. package/lib/icon/img-error.js +14 -12
  82. package/lib/icon/img-placehoulder.js +14 -12
  83. package/lib/icon/info-line.js +14 -12
  84. package/lib/icon/info.js +14 -12
  85. package/lib/icon/left-shape.js +14 -12
  86. package/lib/icon/left-turn-line.js +14 -12
  87. package/lib/icon/loading.js +14 -12
  88. package/lib/icon/narrow-line.js +14 -12
  89. package/lib/icon/original.js +14 -12
  90. package/lib/icon/pdf-fill.js +14 -12
  91. package/lib/icon/play-shape.js +14 -12
  92. package/lib/icon/plus.js +14 -12
  93. package/lib/icon/ppt-fill.js +14 -12
  94. package/lib/icon/qq.js +14 -12
  95. package/lib/icon/right-shape.js +14 -12
  96. package/lib/icon/right-turn-line.js +14 -12
  97. package/lib/icon/search.js +14 -12
  98. package/lib/icon/share.js +14 -12
  99. package/lib/icon/spinner.js +14 -12
  100. package/lib/icon/success.js +14 -12
  101. package/lib/icon/switcher-loading.js +14 -12
  102. package/lib/icon/text-all.js +14 -12
  103. package/lib/icon/text-file.js +14 -12
  104. package/lib/icon/text-fill.js +14 -12
  105. package/lib/icon/transfer.js +14 -12
  106. package/lib/icon/tree-application-shape.js +14 -12
  107. package/lib/icon/unfull-screen.js +14 -12
  108. package/lib/icon/unvisible.js +14 -12
  109. package/lib/icon/up-shape.js +14 -12
  110. package/lib/icon/upload.js +14 -12
  111. package/lib/icon/video-fill.js +14 -12
  112. package/lib/icon/warn.js +14 -12
  113. package/lib/icon/weixin-pro.js +14 -12
  114. package/lib/icon/weixin.js +14 -12
  115. package/lib/image/index.js +1502 -182
  116. package/lib/index.js +1 -1
  117. package/lib/info-box/index.js +101 -87
  118. package/lib/input/index.js +1342 -42
  119. package/lib/link/index.js +26 -18
  120. package/lib/loading/index.js +25 -19
  121. package/lib/locale/index.js +3 -3
  122. package/lib/menu/index.js +40 -32
  123. package/lib/message/index.js +47 -41
  124. package/lib/modal/index.js +39 -29
  125. package/lib/navigation/index.js +27 -19
  126. package/lib/notify/index.js +37 -27
  127. package/lib/overflow-title/index.js +41 -29
  128. package/lib/pagination/index.js +62 -46
  129. package/lib/plugin-popover/index.js +7 -5
  130. package/lib/plugins/index.js +7 -5
  131. package/lib/pop-confirm/index.js +49 -33
  132. package/lib/popover/index.js +1417 -113
  133. package/lib/popover2/index.js +14 -10
  134. package/lib/process/index.js +78 -74
  135. package/lib/progress/index.js +26 -20
  136. package/lib/radio/index.js +39 -31
  137. package/lib/rate/index.js +25 -19
  138. package/lib/resize-layout/index.js +30 -22
  139. package/lib/scrollbar/index.js +25 -25
  140. package/lib/search-select/index.js +1486 -236
  141. package/lib/select/index.js +1404 -134
  142. package/lib/shared/index.js +57 -49
  143. package/lib/sideslider/index.js +89 -79
  144. package/lib/slider/index.js +85 -75
  145. package/lib/steps/index.js +78 -72
  146. package/lib/swiper/index.js +24 -18
  147. package/lib/switcher/index.js +30 -22
  148. package/lib/tab/index.js +1324 -43
  149. package/lib/table/index.js +1582 -296
  150. package/lib/table-column/index.js +13 -9
  151. package/lib/tag/index.js +36 -26
  152. package/lib/tag-input/index.js +1370 -75
  153. package/lib/time-picker/index.js +13 -9
  154. package/lib/timeline/index.js +21 -15
  155. package/lib/transfer/index.js +56 -40
  156. package/lib/tree/index.js +100 -76
  157. package/lib/upload/index.js +584 -572
  158. package/lib/virtual-render/index.js +55 -43
  159. package/package.json +1 -1
@@ -1,10 +1,13 @@
1
1
  import "../styles/reset.css";
2
2
  import "./cascader.less";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
3
7
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
4
8
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
5
9
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
6
10
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
7
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
8
11
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
9
12
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
10
13
  import "../popover/popover.less";
@@ -14,10 +17,1500 @@ import "../tag/tag.less";
14
17
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__ from "../tag-input";
15
18
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
16
19
  import "../checkbox/checkbox.less";
17
- /******/ // The require scope
18
- /******/ var __webpack_require__ = {};
20
+ /******/ var __webpack_modules__ = ({
21
+
22
+ /***/ 205:
23
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
24
+
25
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26
+ /* harmony export */ "default": () => (/* binding */ toPropertyKey)
27
+ /* harmony export */ });
28
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7545);
29
+ /* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
30
+
31
+
32
+ function toPropertyKey(t) {
33
+ var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
34
+ return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
35
+ }
36
+
37
+ /***/ }),
38
+
39
+ /***/ 1043:
40
+ /***/ ((module) => {
41
+
42
+ /**
43
+ * Copyright (c) 2015, Facebook, Inc.
44
+ * All rights reserved.
45
+ *
46
+ * This source code is licensed under the BSD-style license found in the
47
+ * LICENSE file in the root directory of this source tree. An additional grant
48
+ * of patent rights can be found in the PATENTS file in the same directory.
49
+ *
50
+ * @providesModule ExecutionEnvironment
51
+ */
52
+
53
+ /*jslint evil: true */
54
+
55
+
56
+
57
+ var canUseDOM = !!(
58
+ typeof window !== 'undefined' &&
59
+ window.document &&
60
+ window.document.createElement
61
+ );
62
+
63
+ /**
64
+ * Simple, lightweight module assisting with the detection and context of
65
+ * Worker. Helps avoid circular dependencies and allows code to reason about
66
+ * whether or not they are in a Worker, even if they never include the main
67
+ * `ReactWorker` dependency.
68
+ */
69
+ var ExecutionEnvironment = {
70
+
71
+ canUseDOM: canUseDOM,
72
+
73
+ canUseWorkers: typeof Worker !== 'undefined',
74
+
75
+ canUseEventListeners:
76
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
77
+
78
+ canUseViewport: canUseDOM && !!window.screen,
79
+
80
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
81
+
82
+ };
83
+
84
+ module.exports = ExecutionEnvironment;
85
+
86
+
87
+ /***/ }),
88
+
89
+ /***/ 2586:
90
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
91
+
92
+ /**
93
+ * Copyright 2013-2015, Facebook, Inc.
94
+ * All rights reserved.
95
+ *
96
+ * This source code is licensed under the BSD-style license found in the
97
+ * LICENSE file in the root directory of this source tree. An additional grant
98
+ * of patent rights can be found in the PATENTS file in the same directory.
99
+ *
100
+ * @providesModule isEventSupported
101
+ */
102
+
103
+
104
+
105
+ var ExecutionEnvironment = __webpack_require__(1043);
106
+
107
+ var useHasFeature;
108
+ if (ExecutionEnvironment.canUseDOM) {
109
+ useHasFeature =
110
+ document.implementation &&
111
+ document.implementation.hasFeature &&
112
+ // always returns true in newer browsers as per the standard.
113
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
114
+ document.implementation.hasFeature('', '') !== true;
115
+ }
116
+
117
+ /**
118
+ * Checks if an event is supported in the current execution environment.
119
+ *
120
+ * NOTE: This will not work correctly for non-generic events such as `change`,
121
+ * `reset`, `load`, `error`, and `select`.
122
+ *
123
+ * Borrows from Modernizr.
124
+ *
125
+ * @param {string} eventNameSuffix Event name, e.g. "click".
126
+ * @param {?boolean} capture Check if the capture phase is supported.
127
+ * @return {boolean} True if the event is supported.
128
+ * @internal
129
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
130
+ */
131
+ function isEventSupported(eventNameSuffix, capture) {
132
+ if (!ExecutionEnvironment.canUseDOM ||
133
+ capture && !('addEventListener' in document)) {
134
+ return false;
135
+ }
136
+
137
+ var eventName = 'on' + eventNameSuffix;
138
+ var isSupported = eventName in document;
139
+
140
+ if (!isSupported) {
141
+ var element = document.createElement('div');
142
+ element.setAttribute(eventName, 'return;');
143
+ isSupported = typeof element[eventName] === 'function';
144
+ }
145
+
146
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
147
+ // This is the only way to test support for the `wheel` event in IE9+.
148
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
149
+ }
150
+
151
+ return isSupported;
152
+ }
153
+
154
+ module.exports = isEventSupported;
155
+
156
+
157
+ /***/ }),
158
+
159
+ /***/ 2880:
160
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
161
+
162
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
163
+ /* harmony export */ "default": () => (/* binding */ _nonIterableSpread)
164
+ /* harmony export */ });
165
+ function _nonIterableSpread() {
166
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
167
+ }
168
+
169
+ /***/ }),
170
+
171
+ /***/ 3492:
172
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
173
+
174
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
175
+ /* harmony export */ "default": () => (/* binding */ _arrayWithoutHoles)
176
+ /* harmony export */ });
177
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6284);
178
+
179
+ function _arrayWithoutHoles(arr) {
180
+ if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
181
+ }
182
+
183
+ /***/ }),
184
+
185
+ /***/ 4430:
186
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
187
+
188
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
189
+ /* harmony export */ "default": () => (/* binding */ _iterableToArray)
190
+ /* harmony export */ });
191
+ function _iterableToArray(iter) {
192
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
193
+ }
194
+
195
+ /***/ }),
196
+
197
+ /***/ 4586:
198
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
199
+
200
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
201
+ /* harmony export */ "default": () => (/* binding */ _defineProperty)
202
+ /* harmony export */ });
203
+ /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(205);
204
+
205
+ function _defineProperty(obj, key, value) {
206
+ key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
207
+ if (key in obj) {
208
+ Object.defineProperty(obj, key, {
209
+ value: value,
210
+ enumerable: true,
211
+ configurable: true,
212
+ writable: true
213
+ });
214
+ } else {
215
+ obj[key] = value;
216
+ }
217
+ return obj;
218
+ }
219
+
220
+ /***/ }),
221
+
222
+ /***/ 4923:
223
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
224
+
225
+
226
+ // EXPORTS
227
+ __webpack_require__.d(__webpack_exports__, {
228
+ bkTooltips: () => (/* reexport */ src_tooltips)
229
+ });
230
+
231
+ // UNUSED EXPORTS: bkEllipsis, bkEllipsisInstance, bkLoading, clickoutside, mousewheel, overflowTitle
232
+
233
+ ;// ../../packages/directives/src/clickoutside.ts
234
+ 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; } } }; }
235
+ 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); }
236
+ 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; }
237
+ /*
238
+ * Tencent is pleased to support the open source community by making
239
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
240
+ *
241
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
242
+ *
243
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
244
+ *
245
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
246
+ *
247
+ * ---------------------------------------------------
248
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
249
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
250
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
251
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
252
+ *
253
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
254
+ * the Software.
255
+ *
256
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
257
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
258
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
259
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
260
+ * IN THE SOFTWARE.
261
+ */
262
+ var isElement = function isElement(e) {
263
+ if (typeof Element === 'undefined') return false;
264
+ return e instanceof Element;
265
+ };
266
+ var nodeList = new Map();
267
+ var startClick;
268
+ document.addEventListener('mousedown', function (e) {
269
+ return startClick = e;
270
+ });
271
+ document.addEventListener('mouseup', function (e) {
272
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
273
+ _step;
274
+ try {
275
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
276
+ var handlers = _step.value;
277
+ var _iterator2 = _createForOfIteratorHelper(handlers),
278
+ _step2;
279
+ try {
280
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
281
+ var documentHandler = _step2.value.documentHandler;
282
+ documentHandler(e, startClick);
283
+ }
284
+ } catch (err) {
285
+ _iterator2.e(err);
286
+ } finally {
287
+ _iterator2.f();
288
+ }
289
+ }
290
+ } catch (err) {
291
+ _iterator.e(err);
292
+ } finally {
293
+ _iterator.f();
294
+ }
295
+ });
296
+ function createDocumentHandler(el, binding) {
297
+ var excludes = [];
298
+ if (Array.isArray(binding.arg)) {
299
+ excludes = binding.arg;
300
+ } else if (isElement(binding.arg)) {
301
+ excludes.push(binding.arg);
302
+ }
303
+ return function (mouseup, mousedown) {
304
+ var popperRef = binding.instance.popperRef;
305
+ var mouseUpTarget = mouseup.target;
306
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
307
+ var isBound = !binding || !binding.instance;
308
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
309
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
310
+ var isSelf = el === mouseUpTarget;
311
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
312
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
313
+ }) || excludes.length && excludes.includes(mouseDownTarget);
314
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
315
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
316
+ return;
317
+ }
318
+ binding.value(mouseup, mousedown);
319
+ };
320
+ }
321
+ var ClickOutside = {
322
+ beforeMount: function beforeMount(el, binding) {
323
+ if (!nodeList.has(el)) {
324
+ nodeList.set(el, []);
325
+ }
326
+ nodeList.get(el).push({
327
+ documentHandler: createDocumentHandler(el, binding),
328
+ bindingFn: binding.value
329
+ });
330
+ },
331
+ updated: function updated(el, binding) {
332
+ if (!nodeList.has(el)) {
333
+ nodeList.set(el, []);
334
+ }
335
+ var handlers = nodeList.get(el);
336
+ var oldHandlerIndex = handlers.findIndex(function (item) {
337
+ return item.bindingFn === binding.oldValue;
338
+ });
339
+ var newHandler = {
340
+ documentHandler: createDocumentHandler(el, binding),
341
+ bindingFn: binding.value
342
+ };
343
+ if (oldHandlerIndex >= 0) {
344
+ // replace the old handler to the new handler
345
+ handlers.splice(oldHandlerIndex, 1, newHandler);
346
+ } else {
347
+ handlers.push(newHandler);
348
+ }
349
+ },
350
+ unmounted: function unmounted(el) {
351
+ // remove all listeners when a component unmounted
352
+ nodeList["delete"](el);
353
+ }
354
+ };
355
+ ClickOutside.install = function (app) {
356
+ app.directive('bkTooltips', ClickOutside);
357
+ };
358
+ /* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
359
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
360
+ var esm_typeof = __webpack_require__(7545);
361
+ ;// external "../plugin-popover"
362
+ var x = (y) => {
363
+ var x = {}; __webpack_require__.d(x, y); return x
364
+ }
365
+ var y = (x) => (() => (x))
366
+ const plugin_popover_namespaceObject = x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
367
+ ;// ../../packages/directives/src/ellipsis.ts
368
+
369
+ /*
370
+ * Tencent is pleased to support the open source community by making
371
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
372
+ *
373
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
374
+ *
375
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
376
+ *
377
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
378
+ *
379
+ * ---------------------------------------------------
380
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
381
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
382
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
383
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
384
+ *
385
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
386
+ * the Software.
387
+ *
388
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
389
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
390
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
391
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
392
+ * IN THE SOFTWARE.
393
+ */
394
+
395
+ var resolveOptions = function resolveOptions(el, binding) {
396
+ var options = {
397
+ content: '',
398
+ target: el
399
+ };
400
+ if ((0,esm_typeof["default"])(binding) === 'object') {
401
+ Object.assign(options, binding);
402
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
403
+ Object.assign(options, binding.popoverOption);
404
+ }
405
+ } else {
406
+ options.content = binding;
407
+ }
408
+ return options;
409
+ };
410
+ var createInstance = function createInstance(el, binding) {
411
+ var instance = null;
412
+ var createTimer = null;
413
+ var hidePopTimer = null;
414
+ var options = resolveOptions(el, binding);
415
+ var disabled = options.disabled;
416
+ if (disabled || instance) {
417
+ return;
418
+ }
419
+ var handleContentEnter = function handleContentEnter() {
420
+ hidePopTimer && clearTimeout(hidePopTimer);
421
+ hidePopTimer = null;
422
+ };
423
+ var handleContentLeave = function handleContentLeave() {
424
+ var _instance, _instance2;
425
+ if (createTimer) {
426
+ clearTimeout(createTimer);
427
+ }
428
+ (_instance = instance) === null || _instance === void 0 || _instance.hide();
429
+ (_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
430
+ instance = null;
431
+ };
432
+ var handleMouseEnter = function handleMouseEnter() {
433
+ handleContentLeave();
434
+ createTimer && clearTimeout(createTimer);
435
+ createTimer = setTimeout(function () {
436
+ var targetOptions = resolveOptions(el, binding);
437
+ targetOptions.isShow = true;
438
+ targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
439
+ targetOptions.allowHtml = true;
440
+ Object.assign(targetOptions, {
441
+ onContentMouseenter: handleContentEnter,
442
+ onContentMouseleave: handleContentLeave
443
+ });
444
+ instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
445
+ }, 300);
446
+ };
447
+ var handleMouseLeave = function handleMouseLeave() {
448
+ hidePopTimer = setTimeout(function () {
449
+ var _instance3, _instance4;
450
+ if (createTimer) {
451
+ clearTimeout(createTimer);
452
+ }
453
+ (_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
454
+ (_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
455
+ instance = null;
456
+ }, 120);
457
+ };
458
+ el.addEventListener('mouseenter', handleMouseEnter);
459
+ el.addEventListener('mouseleave', handleMouseLeave);
460
+ var destroyInstance = function destroyInstance(element) {
461
+ var _ref, _ref2;
462
+ handleMouseLeave();
463
+ (_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
464
+ (_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
465
+ };
466
+ return {
467
+ destroyInstance: destroyInstance,
468
+ instance: instance
469
+ };
470
+ };
471
+ var ellipsis = {
472
+ mounted: function mounted(el, binding) {
473
+ createInstance(el, binding);
474
+ }
475
+ };
476
+ /* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
477
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
478
+ var normalize_wheel = __webpack_require__(8283);
479
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
480
+ ;// ../../packages/directives/src/mousewheel.ts
481
+ /*
482
+ * Tencent is pleased to support the open source community by making
483
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
484
+ *
485
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
486
+ *
487
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
488
+ *
489
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
490
+ *
491
+ * ---------------------------------------------------
492
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
493
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
494
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
495
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
496
+ *
497
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
498
+ * the Software.
499
+ *
500
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
501
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
502
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
503
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
504
+ * IN THE SOFTWARE.
505
+ */
506
+
507
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
508
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
509
+ if (element !== null && element !== void 0 && element.addEventListener) {
510
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
511
+ var normalized = normalize_wheel_default()(e);
512
+ callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
513
+ });
514
+ }
515
+ };
516
+ var mousewheel = {
517
+ beforeMount: function beforeMount(el, binding) {
518
+ mousewheelHandler(el, binding.value);
519
+ }
520
+ };
521
+ /* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
522
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
523
+ var defineProperty = __webpack_require__(4586);
524
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
525
+ var toConsumableArray = __webpack_require__(5153);
526
+ // EXTERNAL MODULE: external "vue"
527
+ var external_vue_ = __webpack_require__(5286);
528
+ // EXTERNAL MODULE: external "../shared"
529
+ var shared_ = __webpack_require__(5166);
530
+ ;// external "@popperjs/core"
531
+ var core_x = (y) => {
532
+ var x = {}; __webpack_require__.d(x, y); return x
533
+ }
534
+ var core_y = (x) => (() => (x))
535
+ const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
536
+ ;// ../../packages/directives/src/tooltips.ts
537
+
538
+
539
+
540
+ 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; }
541
+ 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) { (0,defineProperty["default"])(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; }
542
+ /*
543
+ * Tencent is pleased to support the open source community by making
544
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
545
+ *
546
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
547
+ *
548
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
549
+ *
550
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
551
+ *
552
+ * ---------------------------------------------------
553
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
554
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
555
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
556
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
557
+ *
558
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
559
+ * the Software.
560
+ *
561
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
562
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
563
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
564
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
565
+ * IN THE SOFTWARE.
566
+ */
567
+
568
+
569
+
570
+ var tooltips_nodeList = new WeakMap();
571
+ var tooltips = {
572
+ beforeMount: function beforeMount(el, binding) {
573
+ var opts = getOpts(binding);
574
+ var trigger = opts.trigger,
575
+ showOnInit = opts.showOnInit;
576
+ var popper = renderContent(opts);
577
+ var delayTimeout = null;
578
+ if (showOnInit) {
579
+ (0,external_vue_.nextTick)(function () {
580
+ show(el);
581
+ });
582
+ }
583
+ if (trigger === 'hover') {
584
+ var hideTimeout = null;
585
+ el.addEventListener('mouseenter', function () {
586
+ delayTimeout = setTimeout(function () {
587
+ show(el);
588
+ clearTimeout(hideTimeout);
589
+ clearTimeout(delayTimeout);
590
+ }, opts.delay);
591
+ });
592
+ popper.addEventListener('mouseenter', function () {
593
+ clearTimeout(hideTimeout);
594
+ });
595
+ el.addEventListener('mouseleave', function () {
596
+ clearTimeout(delayTimeout);
597
+ hideTimeout = setTimeout(function () {
598
+ hide(el);
599
+ }, 100);
600
+ });
601
+ el.addEventListener('click', function () {
602
+ hide(el);
603
+ });
604
+ popper.addEventListener('mouseleave', function () {
605
+ clearTimeout(delayTimeout);
606
+ hideTimeout = setTimeout(function () {
607
+ hide(el);
608
+ }, 100);
609
+ });
610
+ } else if (trigger === 'click') {
611
+ document.body.addEventListener('click', function (event) {
612
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
613
+ delayTimeout = setTimeout(function () {
614
+ show(el);
615
+ clearTimeout(delayTimeout);
616
+ }, opts.delay);
617
+ } else if (popper.hasAttribute('data-show')) {
618
+ hide(el);
619
+ }
620
+ });
621
+ }
622
+ tooltips_nodeList.set(el, {
623
+ opts: opts,
624
+ popper: popper,
625
+ popperInstance: null
626
+ });
627
+ },
628
+ updated: function updated(el, binding) {
629
+ if (tooltips_nodeList.get(el)) {
630
+ tooltips_nodeList.get(el).opts = getOpts(binding);
631
+ }
632
+ },
633
+ unmounted: function unmounted(el) {
634
+ hide(el);
635
+ tooltips_nodeList["delete"](el);
636
+ }
637
+ };
638
+ /**
639
+ * 初始化配置
640
+ * @returns tooltips配置
641
+ */
642
+ function initOptions() {
643
+ var defaultOpts = {
644
+ arrow: true,
645
+ disabled: false,
646
+ trigger: 'hover',
647
+ theme: 'dark',
648
+ content: '',
649
+ showOnInit: false,
650
+ placement: 'top',
651
+ distance: 8,
652
+ extCls: '',
653
+ sameWidth: false,
654
+ delay: 0,
655
+ onShow: function onShow() {},
656
+ onHide: function onHide() {}
657
+ };
658
+ return defaultOpts;
659
+ }
660
+ /**
661
+ * 获取配置
662
+ * @returns tooltips配置
663
+ */
664
+ function getOpts(binding) {
665
+ var opts = initOptions();
666
+ if ((0,esm_typeof["default"])(binding.value) === 'object') {
667
+ Object.assign(opts, binding.value);
668
+ } else {
669
+ opts.content = binding.value;
670
+ }
671
+ return opts;
672
+ }
673
+ /**
674
+ * 创建tooltips DOM
675
+ * @param opts
676
+ * @returns
677
+ */
678
+ function renderContext(value, content) {
679
+ if (typeof value === 'string') {
680
+ content.innerText = value;
681
+ } else {
682
+ // 如果 content 是 Vue 组件的实例,则挂载它
683
+ var container = document.createElement('div');
684
+ var vnode = (0,external_vue_.h)(value);
685
+ (0,external_vue_.render)(vnode, container);
686
+ content.innerHTML = container.innerHTML;
687
+ }
688
+ }
689
+ function renderContent(opts) {
690
+ var value = opts.content,
691
+ hasArrow = opts.arrow,
692
+ theme = opts.theme,
693
+ extCls = opts.extCls;
694
+ var isLight = theme === 'light';
695
+ var zIndex = shared_.bkZIndexManager.getPopperIndex();
696
+ var content = document.createElement('div');
697
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
698
+ content.className = "".concat((0,shared_.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
699
+ content.innerText = value;
700
+ content.style.zIndex = String(zIndex);
701
+ renderContext(value, content);
702
+ if (hasArrow) {
703
+ var arrow = renderArrow();
704
+ content.appendChild(arrow);
705
+ }
706
+ return content;
707
+ }
708
+ /**
709
+ * 渲染箭头dom
710
+ * @returns arrow DOM
711
+ */
712
+ function renderArrow() {
713
+ var arrow = document.createElement('div');
714
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
715
+ arrow.className = (0,shared_.resolveClassName)('popper-arrow', prefix);
716
+ arrow.setAttribute('data-popper-arrow', '');
717
+ return arrow;
718
+ }
719
+ /**
720
+ * 创建popper实例
721
+ * @param el
722
+ * @param popper
723
+ * @returns popper实例
724
+ */
725
+ function createPopperInstance(el, popper) {
726
+ var _nodeList$get = tooltips_nodeList.get(el),
727
+ opts = _nodeList$get.opts;
728
+ var placement = opts.placement,
729
+ distance = opts.distance,
730
+ sameWidth = opts.sameWidth;
731
+ var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
732
+ placement: placement,
733
+ modifiers: [{
734
+ name: 'offset',
735
+ options: {
736
+ offset: [0, distance]
737
+ }
738
+ }, {
739
+ name: 'arrow',
740
+ options: {
741
+ padding: 5
742
+ }
743
+ }].concat((0,toConsumableArray["default"])(sameWidth ? [{
744
+ name: 'sameWidth',
745
+ enabled: true,
746
+ phase: 'beforeWrite',
747
+ requires: ['computeStyles'],
748
+ fn: function fn(_ref) {
749
+ var state = _ref.state;
750
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
751
+ },
752
+ effect: function effect(_ref2) {
753
+ var state = _ref2.state;
754
+ state.elements.popper.style.overflowWrap = 'break-word';
755
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
756
+ }
757
+ }] : []))
758
+ });
759
+ return popperInstance;
760
+ }
761
+ /**
762
+ * 显示
763
+ * @param el
764
+ */
765
+ function show(el) {
766
+ var _nodeList$get2 = tooltips_nodeList.get(el),
767
+ popper = _nodeList$get2.popper,
768
+ opts = _nodeList$get2.opts;
769
+ var disabled = opts.disabled,
770
+ content = opts.content,
771
+ hasArrow = opts.arrow,
772
+ onShow = opts.onShow,
773
+ boundary = opts.boundary,
774
+ _opts$modifiers = opts.modifiers,
775
+ modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
776
+ if (disabled) return;
777
+ renderContext(content, popper);
778
+ if (hasArrow) {
779
+ var arrow = renderArrow();
780
+ popper.appendChild(arrow);
781
+ }
782
+ var container = document.body;
783
+ if (boundary) {
784
+ if (boundary === 'parent') {
785
+ container = el.parentElement;
786
+ } else if (boundary instanceof HTMLElement) {
787
+ container = boundary;
788
+ }
789
+ }
790
+ container.appendChild(popper);
791
+ var popperInstance = createPopperInstance(el, popper);
792
+ onShow();
793
+ // Make the tooltip visible
794
+ popper.setAttribute('data-show', '');
795
+ // Enable the event listeners
796
+ popperInstance.setOptions(function (options) {
797
+ return _objectSpread(_objectSpread({}, options), {}, {
798
+ modifiers: [].concat((0,toConsumableArray["default"])(options.modifiers), (0,toConsumableArray["default"])(modifiers), [{
799
+ name: 'eventListeners',
800
+ enabled: true
801
+ }])
802
+ });
803
+ });
804
+ // Update its position
805
+ popperInstance.forceUpdate();
806
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
807
+ }
808
+ /**
809
+ * 隐藏
810
+ * @param el
811
+ */
812
+ function hide(el) {
813
+ if (!tooltips_nodeList.get(el)) return;
814
+ var _nodeList$get3 = tooltips_nodeList.get(el),
815
+ popper = _nodeList$get3.popper,
816
+ popperInstance = _nodeList$get3.popperInstance,
817
+ opts = _nodeList$get3.opts;
818
+ var onHide = opts.onHide;
819
+ if (popper && document.body.contains(popper)) {
820
+ var _popper$parentNode;
821
+ popper.removeAttribute('data-show');
822
+ popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
823
+ popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
824
+ onHide();
825
+ }
826
+ }
827
+ /* harmony default export */ const src_tooltips = (tooltips);
828
+ ;// external "../loading"
829
+ var external_loading_x = (y) => {
830
+ var x = {}; __webpack_require__.d(x, y); return x
831
+ }
832
+ var external_loading_y = (x) => (() => (x))
833
+ const external_loading_namespaceObject = external_loading_x({ });
834
+ ;// external "../overflow-title"
835
+ var external_overflow_title_x = (y) => {
836
+ var x = {}; __webpack_require__.d(x, y); return x
837
+ }
838
+ var external_overflow_title_y = (x) => (() => (x))
839
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
840
+ ;// ../../packages/directives/src/index.ts
841
+ /*
842
+ * Tencent is pleased to support the open source community by making
843
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
844
+ *
845
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
846
+ *
847
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
848
+ *
849
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
850
+ *
851
+ * ---------------------------------------------------
852
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
853
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
854
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
855
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
856
+ *
857
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
858
+ * the Software.
859
+ *
860
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
861
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
862
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
863
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
864
+ * IN THE SOFTWARE.
865
+ */
866
+
867
+
868
+
869
+
870
+
871
+
872
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
873
+
874
+ /***/ }),
875
+
876
+ /***/ 5022:
877
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
878
+
879
+ /**
880
+ * Copyright (c) 2015, Facebook, Inc.
881
+ * All rights reserved.
882
+ *
883
+ * This source code is licensed under the BSD-style license found in the
884
+ * LICENSE file in the root directory of this source tree. An additional grant
885
+ * of patent rights can be found in the PATENTS file in the same directory.
886
+ *
887
+ * @providesModule normalizeWheel
888
+ * @typechecks
889
+ */
890
+
891
+
892
+
893
+ var UserAgent_DEPRECATED = __webpack_require__(7416);
894
+
895
+ var isEventSupported = __webpack_require__(2586);
896
+
897
+
898
+ // Reasonable defaults
899
+ var PIXEL_STEP = 10;
900
+ var LINE_HEIGHT = 40;
901
+ var PAGE_HEIGHT = 800;
902
+
903
+ /**
904
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
905
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
906
+ * your questions.
907
+ *
908
+ * If you need to react to the mouse wheel in a predictable way, this code is
909
+ * like your bestest friend. * hugs *
910
+ *
911
+ * As of today, there are 4 DOM event types you can listen to:
912
+ *
913
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
914
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
915
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
916
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
917
+ *
918
+ * So what to do? The is the best:
919
+ *
920
+ * normalizeWheel.getEventType();
921
+ *
922
+ * In your event callback, use this code to get sane interpretation of the
923
+ * deltas. This code will return an object with properties:
924
+ *
925
+ * spinX -- normalized spin speed (use for zoom) - x plane
926
+ * spinY -- " - y plane
927
+ * pixelX -- normalized distance (to pixels) - x plane
928
+ * pixelY -- " - y plane
929
+ *
930
+ * Wheel values are provided by the browser assuming you are using the wheel to
931
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
932
+ * significantly on different platforms and browsers, forgetting that you can
933
+ * scroll at different speeds. Some devices (like trackpads) emit more events
934
+ * at smaller increments with fine granularity, and some emit massive jumps with
935
+ * linear speed or acceleration.
936
+ *
937
+ * This code does its best to normalize the deltas for you:
938
+ *
939
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
940
+ * dragged). This is super useful for zoom support where you want to
941
+ * throw away the chunky scroll steps on the PC and make those equal to
942
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
943
+ * resolve a single slow step on a wheel to 1.
944
+ *
945
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
946
+ * get the crazy differences between browsers, but at least it'll be in
947
+ * pixels!
948
+ *
949
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
950
+ * should translate to positive value zooming IN, negative zooming OUT.
951
+ * This matches the newer 'wheel' event.
952
+ *
953
+ * Why are there spinX, spinY (or pixels)?
954
+ *
955
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
956
+ * with a mouse. It results in side-scrolling in the browser by default.
957
+ *
958
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
959
+ *
960
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
961
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
962
+ * you know.
963
+ *
964
+ * Implementation info:
965
+ *
966
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
967
+ * average mouse:
968
+ *
969
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
970
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
971
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
972
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
973
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
974
+ *
975
+ * On the trackpad:
976
+ *
977
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
978
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
979
+ *
980
+ * On other/older browsers.. it's more complicated as there can be multiple and
981
+ * also missing delta values.
982
+ *
983
+ * The 'wheel' event is more standard:
984
+ *
985
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
986
+ *
987
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
988
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
989
+ * backward compatibility with older events. Those other values help us
990
+ * better normalize spin speed. Example of what the browsers provide:
991
+ *
992
+ * | event.wheelDelta | event.detail
993
+ * ------------------+------------------+--------------
994
+ * Safari v5/OS X | -120 | 0
995
+ * Safari v5/Win7 | -120 | 0
996
+ * Chrome v17/OS X | -120 | 0
997
+ * Chrome v17/Win7 | -120 | 0
998
+ * IE9/Win7 | -120 | undefined
999
+ * Firefox v4/OS X | undefined | 1
1000
+ * Firefox v4/Win7 | undefined | 3
1001
+ *
1002
+ */
1003
+ function normalizeWheel(/*object*/ event) /*object*/ {
1004
+ var sX = 0, sY = 0, // spinX, spinY
1005
+ pX = 0, pY = 0; // pixelX, pixelY
1006
+
1007
+ // Legacy
1008
+ if ('detail' in event) { sY = event.detail; }
1009
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
1010
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
1011
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
1012
+
1013
+ // side scrolling on FF with DOMMouseScroll
1014
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
1015
+ sX = sY;
1016
+ sY = 0;
1017
+ }
1018
+
1019
+ pX = sX * PIXEL_STEP;
1020
+ pY = sY * PIXEL_STEP;
1021
+
1022
+ if ('deltaY' in event) { pY = event.deltaY; }
1023
+ if ('deltaX' in event) { pX = event.deltaX; }
1024
+
1025
+ if ((pX || pY) && event.deltaMode) {
1026
+ if (event.deltaMode == 1) { // delta in LINE units
1027
+ pX *= LINE_HEIGHT;
1028
+ pY *= LINE_HEIGHT;
1029
+ } else { // delta in PAGE units
1030
+ pX *= PAGE_HEIGHT;
1031
+ pY *= PAGE_HEIGHT;
1032
+ }
1033
+ }
1034
+
1035
+ // Fall-back if spin cannot be determined
1036
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
1037
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
1038
+
1039
+ return { spinX : sX,
1040
+ spinY : sY,
1041
+ pixelX : pX,
1042
+ pixelY : pY };
1043
+ }
1044
+
1045
+
1046
+ /**
1047
+ * The best combination if you prefer spinX + spinY normalization. It favors
1048
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
1049
+ * 'wheel' event, making spin speed determination impossible.
1050
+ */
1051
+ normalizeWheel.getEventType = function() /*string*/ {
1052
+ return (UserAgent_DEPRECATED.firefox())
1053
+ ? 'DOMMouseScroll'
1054
+ : (isEventSupported('wheel'))
1055
+ ? 'wheel'
1056
+ : 'mousewheel';
1057
+ };
1058
+
1059
+ module.exports = normalizeWheel;
1060
+
1061
+
1062
+ /***/ }),
1063
+
1064
+ /***/ 5153:
1065
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1066
+
1067
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1068
+ /* harmony export */ "default": () => (/* binding */ _toConsumableArray)
1069
+ /* harmony export */ });
1070
+ /* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3492);
1071
+ /* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4430);
1072
+ /* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7985);
1073
+ /* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2880);
1074
+
1075
+
1076
+
1077
+
1078
+ function _toConsumableArray(arr) {
1079
+ return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
1080
+ }
1081
+
1082
+ /***/ }),
1083
+
1084
+ /***/ 5166:
1085
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1086
+
1087
+ var x = (y) => {
1088
+ var x = {}; __webpack_require__.d(x, y); return x
1089
+ }
1090
+ var y = (x) => (() => (x))
1091
+ module.exports = x({ ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["arrayEqual"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.arrayEqual), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["capitalize"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.capitalize), ["debounce"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["withInstallProps"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps) });
1092
+
1093
+ /***/ }),
1094
+
1095
+ /***/ 5286:
1096
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1097
+
1098
+ var x = (y) => {
1099
+ var x = {}; __webpack_require__.d(x, y); return x
1100
+ }
1101
+ var y = (x) => (() => (x))
1102
+ module.exports = x({ ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createTextVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["mergeProps"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.mergeProps), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["toRefs"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRefs), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
1103
+
1104
+ /***/ }),
1105
+
1106
+ /***/ 6284:
1107
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1108
+
1109
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1110
+ /* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
1111
+ /* harmony export */ });
1112
+ function _arrayLikeToArray(arr, len) {
1113
+ if (len == null || len > arr.length) len = arr.length;
1114
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1115
+ return arr2;
1116
+ }
1117
+
1118
+ /***/ }),
1119
+
1120
+ /***/ 7416:
1121
+ /***/ ((module) => {
1122
+
1123
+ /**
1124
+ * Copyright 2004-present Facebook. All Rights Reserved.
1125
+ *
1126
+ * @providesModule UserAgent_DEPRECATED
1127
+ */
1128
+
1129
+ /**
1130
+ * Provides entirely client-side User Agent and OS detection. You should prefer
1131
+ * the non-deprecated UserAgent module when possible, which exposes our
1132
+ * authoritative server-side PHP-based detection to the client.
1133
+ *
1134
+ * Usage is straightforward:
1135
+ *
1136
+ * if (UserAgent_DEPRECATED.ie()) {
1137
+ * // IE
1138
+ * }
1139
+ *
1140
+ * You can also do version checks:
1141
+ *
1142
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
1143
+ * // IE7 or better
1144
+ * }
1145
+ *
1146
+ * The browser functions will return NaN if the browser does not match, so
1147
+ * you can also do version compares the other way:
1148
+ *
1149
+ * if (UserAgent_DEPRECATED.ie() < 7) {
1150
+ * // IE6 or worse
1151
+ * }
1152
+ *
1153
+ * Note that the version is a float and may include a minor version number,
1154
+ * so you should always use range operators to perform comparisons, not
1155
+ * strict equality.
1156
+ *
1157
+ * **Note:** You should **strongly** prefer capability detection to browser
1158
+ * version detection where it's reasonable:
1159
+ *
1160
+ * http://www.quirksmode.org/js/support.html
1161
+ *
1162
+ * Further, we have a large number of mature wrapper functions and classes
1163
+ * which abstract away many browser irregularities. Check the documentation,
1164
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
1165
+ * another copy of "event || window.event".
1166
+ *
1167
+ */
1168
+
1169
+ var _populated = false;
1170
+
1171
+ // Browsers
1172
+ var _ie, _firefox, _opera, _webkit, _chrome;
1173
+
1174
+ // Actual IE browser for compatibility mode
1175
+ var _ie_real_version;
1176
+
1177
+ // Platforms
1178
+ var _osx, _windows, _linux, _android;
1179
+
1180
+ // Architectures
1181
+ var _win64;
1182
+
1183
+ // Devices
1184
+ var _iphone, _ipad, _native;
1185
+
1186
+ var _mobile;
1187
+
1188
+ function _populate() {
1189
+ if (_populated) {
1190
+ return;
1191
+ }
1192
+
1193
+ _populated = true;
1194
+
1195
+ // To work around buggy JS libraries that can't handle multi-digit
1196
+ // version numbers, Opera 10's user agent string claims it's Opera
1197
+ // 9, then later includes a Version/X.Y field:
1198
+ //
1199
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
1200
+ var uas = navigator.userAgent;
1201
+ 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);
1202
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
1203
+
1204
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
1205
+ _ipad = /\b(iP[ao]d)/.exec(uas);
1206
+ _android = /Android/i.exec(uas);
1207
+ _native = /FBAN\/\w+;/i.exec(uas);
1208
+ _mobile = /Mobile/i.exec(uas);
1209
+
1210
+ // Note that the IE team blog would have you believe you should be checking
1211
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
1212
+ // from either x64 or ia64; so ultimately, you should just check for Win64
1213
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
1214
+ // Windows will send 'WOW64' instead.
1215
+ _win64 = !!(/Win64/.exec(uas));
1216
+
1217
+ if (agent) {
1218
+ _ie = agent[1] ? parseFloat(agent[1]) : (
1219
+ agent[5] ? parseFloat(agent[5]) : NaN);
1220
+ // IE compatibility mode
1221
+ if (_ie && document && document.documentMode) {
1222
+ _ie = document.documentMode;
1223
+ }
1224
+ // grab the "true" ie version from the trident token if available
1225
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
1226
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
1227
+
1228
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
1229
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
1230
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
1231
+ if (_webkit) {
1232
+ // We do not add the regexp to the above test, because it will always
1233
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
1234
+ // the userAgent string.
1235
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
1236
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
1237
+ } else {
1238
+ _chrome = NaN;
1239
+ }
1240
+ } else {
1241
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
1242
+ }
1243
+
1244
+ if (os) {
1245
+ if (os[1]) {
1246
+ // Detect OS X version. If no version number matches, set _osx to true.
1247
+ // Version examples: 10, 10_6_1, 10.7
1248
+ // Parses version number as a float, taking only first two sets of
1249
+ // digits. If only one set of digits is found, returns just the major
1250
+ // version number.
1251
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
1252
+
1253
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
1254
+ } else {
1255
+ _osx = false;
1256
+ }
1257
+ _windows = !!os[2];
1258
+ _linux = !!os[3];
1259
+ } else {
1260
+ _osx = _windows = _linux = false;
1261
+ }
1262
+ }
1263
+
1264
+ var UserAgent_DEPRECATED = {
1265
+
1266
+ /**
1267
+ * Check if the UA is Internet Explorer.
1268
+ *
1269
+ *
1270
+ * @return float|NaN Version number (if match) or NaN.
1271
+ */
1272
+ ie: function() {
1273
+ return _populate() || _ie;
1274
+ },
1275
+
1276
+ /**
1277
+ * Check if we're in Internet Explorer compatibility mode.
1278
+ *
1279
+ * @return bool true if in compatibility mode, false if
1280
+ * not compatibility mode or not ie
1281
+ */
1282
+ ieCompatibilityMode: function() {
1283
+ return _populate() || (_ie_real_version > _ie);
1284
+ },
1285
+
1286
+
1287
+ /**
1288
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
1289
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
1290
+ * this when we don't need it -- tracked by #601957.
1291
+ */
1292
+ ie64: function() {
1293
+ return UserAgent_DEPRECATED.ie() && _win64;
1294
+ },
1295
+
1296
+ /**
1297
+ * Check if the UA is Firefox.
1298
+ *
1299
+ *
1300
+ * @return float|NaN Version number (if match) or NaN.
1301
+ */
1302
+ firefox: function() {
1303
+ return _populate() || _firefox;
1304
+ },
1305
+
1306
+
1307
+ /**
1308
+ * Check if the UA is Opera.
1309
+ *
1310
+ *
1311
+ * @return float|NaN Version number (if match) or NaN.
1312
+ */
1313
+ opera: function() {
1314
+ return _populate() || _opera;
1315
+ },
1316
+
1317
+
1318
+ /**
1319
+ * Check if the UA is WebKit.
1320
+ *
1321
+ *
1322
+ * @return float|NaN Version number (if match) or NaN.
1323
+ */
1324
+ webkit: function() {
1325
+ return _populate() || _webkit;
1326
+ },
1327
+
1328
+ /**
1329
+ * For Push
1330
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
1331
+ */
1332
+ safari: function() {
1333
+ return UserAgent_DEPRECATED.webkit();
1334
+ },
1335
+
1336
+ /**
1337
+ * Check if the UA is a Chrome browser.
1338
+ *
1339
+ *
1340
+ * @return float|NaN Version number (if match) or NaN.
1341
+ */
1342
+ chrome : function() {
1343
+ return _populate() || _chrome;
1344
+ },
1345
+
1346
+
1347
+ /**
1348
+ * Check if the user is running Windows.
1349
+ *
1350
+ * @return bool `true' if the user's OS is Windows.
1351
+ */
1352
+ windows: function() {
1353
+ return _populate() || _windows;
1354
+ },
1355
+
1356
+
1357
+ /**
1358
+ * Check if the user is running Mac OS X.
1359
+ *
1360
+ * @return float|bool Returns a float if a version number is detected,
1361
+ * otherwise true/false.
1362
+ */
1363
+ osx: function() {
1364
+ return _populate() || _osx;
1365
+ },
1366
+
1367
+ /**
1368
+ * Check if the user is running Linux.
1369
+ *
1370
+ * @return bool `true' if the user's OS is some flavor of Linux.
1371
+ */
1372
+ linux: function() {
1373
+ return _populate() || _linux;
1374
+ },
1375
+
1376
+ /**
1377
+ * Check if the user is running on an iPhone or iPod platform.
1378
+ *
1379
+ * @return bool `true' if the user is running some flavor of the
1380
+ * iPhone OS.
1381
+ */
1382
+ iphone: function() {
1383
+ return _populate() || _iphone;
1384
+ },
1385
+
1386
+ mobile: function() {
1387
+ return _populate() || (_iphone || _ipad || _android || _mobile);
1388
+ },
1389
+
1390
+ nativeApp: function() {
1391
+ // webviews inside of the native apps
1392
+ return _populate() || _native;
1393
+ },
1394
+
1395
+ android: function() {
1396
+ return _populate() || _android;
1397
+ },
1398
+
1399
+ ipad: function() {
1400
+ return _populate() || _ipad;
1401
+ }
1402
+ };
1403
+
1404
+ module.exports = UserAgent_DEPRECATED;
1405
+
1406
+
1407
+ /***/ }),
1408
+
1409
+ /***/ 7545:
1410
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1411
+
1412
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1413
+ /* harmony export */ "default": () => (/* binding */ _typeof)
1414
+ /* harmony export */ });
1415
+ function _typeof(o) {
1416
+ "@babel/helpers - typeof";
1417
+
1418
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1419
+ return typeof o;
1420
+ } : function (o) {
1421
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1422
+ }, _typeof(o);
1423
+ }
1424
+
1425
+ /***/ }),
1426
+
1427
+ /***/ 7985:
1428
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1429
+
1430
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1431
+ /* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
1432
+ /* harmony export */ });
1433
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6284);
1434
+
1435
+ function _unsupportedIterableToArray(o, minLen) {
1436
+ if (!o) return;
1437
+ if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
1438
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1439
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1440
+ if (n === "Map" || n === "Set") return Array.from(o);
1441
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
1442
+ }
1443
+
1444
+ /***/ }),
1445
+
1446
+ /***/ 8283:
1447
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1448
+
1449
+ module.exports = __webpack_require__(5022);
1450
+
1451
+
1452
+ /***/ }),
1453
+
1454
+ /***/ 9824:
1455
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1456
+
1457
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1458
+ /* harmony export */ "default": () => (/* binding */ toPrimitive)
1459
+ /* harmony export */ });
1460
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7545);
1461
+
1462
+ function toPrimitive(t, r) {
1463
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
1464
+ var e = t[Symbol.toPrimitive];
1465
+ if (void 0 !== e) {
1466
+ var i = e.call(t, r || "default");
1467
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
1468
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1469
+ }
1470
+ return ("string" === r ? String : Number)(t);
1471
+ }
1472
+
1473
+ /***/ })
1474
+
1475
+ /******/ });
1476
+ /************************************************************************/
1477
+ /******/ // The module cache
1478
+ /******/ var __webpack_module_cache__ = {};
1479
+ /******/
1480
+ /******/ // The require function
1481
+ /******/ function __webpack_require__(moduleId) {
1482
+ /******/ // Check if module is in cache
1483
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1484
+ /******/ if (cachedModule !== undefined) {
1485
+ /******/ return cachedModule.exports;
1486
+ /******/ }
1487
+ /******/ // Create a new module (and put it into the cache)
1488
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1489
+ /******/ // no module.id needed
1490
+ /******/ // no module.loaded needed
1491
+ /******/ exports: {}
1492
+ /******/ };
1493
+ /******/
1494
+ /******/ // Execute the module function
1495
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1496
+ /******/
1497
+ /******/ // Return the exports of the module
1498
+ /******/ return module.exports;
1499
+ /******/ }
19
1500
  /******/
20
1501
  /************************************************************************/
1502
+ /******/ /* webpack/runtime/compat get default export */
1503
+ /******/ (() => {
1504
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
1505
+ /******/ __webpack_require__.n = (module) => {
1506
+ /******/ var getter = module && module.__esModule ?
1507
+ /******/ () => (module['default']) :
1508
+ /******/ () => (module);
1509
+ /******/ __webpack_require__.d(getter, { a: getter });
1510
+ /******/ return getter;
1511
+ /******/ };
1512
+ /******/ })();
1513
+ /******/
21
1514
  /******/ /* webpack/runtime/define property getters */
22
1515
  /******/ (() => {
23
1516
  /******/ // define getter functions for harmony exports
@@ -42,66 +1535,82 @@ var __webpack_exports__ = {};
42
1535
  __webpack_require__.d(__webpack_exports__, {
43
1536
  BkCascader: () => (/* binding */ BkCascader),
44
1537
  BkCascaderPanel: () => (/* reexport */ cascader_panel),
45
- "default": () => (/* binding */ src)
1538
+ "default": () => (/* binding */ cascader_src)
46
1539
  });
47
1540
 
48
- ;// CONCATENATED MODULE: external "../shared"
49
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
50
- var y = x => () => x
51
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["arrayEqual"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.arrayEqual, ["capitalize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.capitalize, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
52
- ;// CONCATENATED MODULE: external "vue"
53
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
54
- var external_vue_y = x => () => x
55
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
56
- ;// CONCATENATED MODULE: external "vue-types"
57
- var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
58
- var external_vue_types_y = x => () => x
59
- const external_vue_types_namespaceObject = external_vue_types_x({ ["array"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.array, ["object"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.object });
60
- ;// CONCATENATED MODULE: external "../config-provider"
61
- var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
62
- var config_provider_y = x => () => x
63
- 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 });
64
- ;// CONCATENATED MODULE: external "../directives"
65
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
66
- var directives_y = x => () => x
67
- const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
68
- ;// CONCATENATED MODULE: external "../icon"
69
- var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
70
- var icon_y = x => () => x
71
- const icon_namespaceObject = icon_x({ ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleRight, ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Spinner });
72
- ;// CONCATENATED MODULE: external "../popover"
73
- var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
74
- var popover_y = x => () => x
75
- const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
76
- ;// CONCATENATED MODULE: external "../popover/popover.less"
77
- var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
78
- var popover_less_y = x => () => x
1541
+ // EXTERNAL MODULE: external "../shared"
1542
+ var shared_ = __webpack_require__(5166);
1543
+ // EXTERNAL MODULE: external "vue"
1544
+ var external_vue_ = __webpack_require__(5286);
1545
+ ;// external "vue-types"
1546
+ var x = (y) => {
1547
+ var x = {}; __webpack_require__.d(x, y); return x
1548
+ }
1549
+ var y = (x) => (() => (x))
1550
+ const external_vue_types_namespaceObject = x({ ["array"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.array), ["object"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.object) });
1551
+ ;// external "../config-provider"
1552
+ var config_provider_x = (y) => {
1553
+ var x = {}; __webpack_require__.d(x, y); return x
1554
+ }
1555
+ var config_provider_y = (x) => (() => (x))
1556
+ 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) });
1557
+ // EXTERNAL MODULE: ../../packages/directives/src/index.ts + 8 modules
1558
+ var src = __webpack_require__(4923);
1559
+ ;// external "../icon"
1560
+ var icon_x = (y) => {
1561
+ var x = {}; __webpack_require__.d(x, y); return x
1562
+ }
1563
+ var icon_y = (x) => (() => (x))
1564
+ const icon_namespaceObject = icon_x({ ["AngleRight"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleRight), ["AngleUp"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp), ["Close"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close), ["Error"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error), ["Spinner"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Spinner) });
1565
+ ;// external "../popover"
1566
+ var popover_x = (y) => {
1567
+ var x = {}; __webpack_require__.d(x, y); return x
1568
+ }
1569
+ var popover_y = (x) => (() => (x))
1570
+ const popover_namespaceObject = popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"]) });
1571
+ ;// external "../popover/popover.less"
1572
+ var popover_less_x = (y) => {
1573
+ var x = {}; __webpack_require__.d(x, y); return x
1574
+ }
1575
+ var popover_less_y = (x) => (() => (x))
79
1576
  const popover_less_namespaceObject = popover_less_x({ });
80
- ;// CONCATENATED MODULE: external "../select"
81
- var select_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
82
- var select_y = x => () => x
83
- const select_namespaceObject = select_x({ ["useHover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__.useHover });
84
- ;// CONCATENATED MODULE: external "../tag"
85
- var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
86
- var tag_y = x => () => x
87
- const tag_namespaceObject = tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__["default"] });
88
- ;// CONCATENATED MODULE: external "../tag/tag.less"
89
- var tag_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
90
- var tag_less_y = x => () => x
1577
+ ;// external "../select"
1578
+ var select_x = (y) => {
1579
+ var x = {}; __webpack_require__.d(x, y); return x
1580
+ }
1581
+ var select_y = (x) => (() => (x))
1582
+ const select_namespaceObject = select_x({ ["useHover"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__.useHover) });
1583
+ ;// external "../tag"
1584
+ var tag_x = (y) => {
1585
+ var x = {}; __webpack_require__.d(x, y); return x
1586
+ }
1587
+ var tag_y = (x) => (() => (x))
1588
+ const tag_namespaceObject = tag_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__["default"]) });
1589
+ ;// external "../tag/tag.less"
1590
+ var tag_less_x = (y) => {
1591
+ var x = {}; __webpack_require__.d(x, y); return x
1592
+ }
1593
+ var tag_less_y = (x) => (() => (x))
91
1594
  const tag_less_namespaceObject = tag_less_x({ });
92
- ;// CONCATENATED MODULE: external "../tag-input"
93
- var tag_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
94
- var tag_input_y = x => () => x
95
- const tag_input_namespaceObject = tag_input_x({ ["useTagsOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__.useTagsOverflow });
96
- ;// CONCATENATED MODULE: external "../checkbox"
97
- var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
98
- var checkbox_y = x => () => x
99
- const checkbox_namespaceObject = checkbox_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"] });
100
- ;// CONCATENATED MODULE: external "../checkbox/checkbox.less"
101
- var checkbox_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
102
- var checkbox_less_y = x => () => x
1595
+ ;// external "../tag-input"
1596
+ var tag_input_x = (y) => {
1597
+ var x = {}; __webpack_require__.d(x, y); return x
1598
+ }
1599
+ var tag_input_y = (x) => (() => (x))
1600
+ const tag_input_namespaceObject = tag_input_x({ ["useTagsOverflow"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__.useTagsOverflow) });
1601
+ ;// external "../checkbox"
1602
+ var checkbox_x = (y) => {
1603
+ var x = {}; __webpack_require__.d(x, y); return x
1604
+ }
1605
+ var checkbox_y = (x) => (() => (x))
1606
+ const checkbox_namespaceObject = checkbox_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"]) });
1607
+ ;// external "../checkbox/checkbox.less"
1608
+ var checkbox_less_x = (y) => {
1609
+ var x = {}; __webpack_require__.d(x, y); return x
1610
+ }
1611
+ var checkbox_less_y = (x) => (() => (x))
103
1612
  const checkbox_less_namespaceObject = checkbox_less_x({ });
104
- ;// CONCATENATED MODULE: ../../packages/cascader/src/cascader-panel.tsx
1613
+ ;// ../../packages/cascader/src/cascader-panel.tsx
105
1614
 
106
1615
  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; } } }; }
107
1616
  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); }
@@ -142,17 +1651,17 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
142
1651
  * CascaderPanel 组件
143
1652
  * 用于展示级联选择器的面板,支持多选、单选、远程加载等功能。
144
1653
  */
145
- /* harmony default export */ const cascader_panel = ((0,external_vue_namespaceObject.defineComponent)({
1654
+ /* harmony default export */ const cascader_panel = ((0,external_vue_.defineComponent)({
146
1655
  name: 'CascaderPanel',
147
1656
  props: {
148
- width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def('auto'),
149
- height: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def(216),
150
- store: shared_namespaceObject.PropTypes.object.def({}),
151
- separator: shared_namespaceObject.PropTypes.string.def(''),
152
- suggestions: shared_namespaceObject.PropTypes.arrayOf((0,external_vue_types_namespaceObject.object)()),
153
- isFiltering: shared_namespaceObject.PropTypes.bool.def(false),
154
- searchKey: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def(''),
155
- modelValue: shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.oneOfType([(0,external_vue_types_namespaceObject.array)(), String, Number]))
1657
+ width: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def('auto'),
1658
+ height: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def(216),
1659
+ store: shared_.PropTypes.object.def({}),
1660
+ separator: shared_.PropTypes.string.def(''),
1661
+ suggestions: shared_.PropTypes.arrayOf((0,external_vue_types_namespaceObject.object)()),
1662
+ isFiltering: shared_.PropTypes.bool.def(false),
1663
+ searchKey: shared_.PropTypes.oneOfType([shared_.PropTypes.string, shared_.PropTypes.number]).def(''),
1664
+ modelValue: shared_.PropTypes.arrayOf(shared_.PropTypes.oneOfType([(0,external_vue_types_namespaceObject.array)(), String, Number]))
156
1665
  },
157
1666
  emits: ['update:modelValue'],
158
1667
  setup: function setup(props, _ref) {
@@ -161,11 +1670,11 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
161
1670
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
162
1671
  resolveClassName = _usePrefix.resolveClassName;
163
1672
  var store = props.store;
164
- var menus = (0,external_vue_namespaceObject.reactive)({
1673
+ var menus = (0,external_vue_.reactive)({
165
1674
  list: [props.store.getNodes()]
166
1675
  });
167
- var activePath = (0,external_vue_namespaceObject.ref)([]);
168
- var checkValue = (0,external_vue_namespaceObject.ref)([]);
1676
+ var activePath = (0,external_vue_.ref)([]);
1677
+ var checkValue = (0,external_vue_.ref)([]);
169
1678
  /**
170
1679
  * 根据传入的值计算尺寸
171
1680
  * @param value - 数字或字符串类型的尺寸值
@@ -318,7 +1827,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
318
1827
  // 查找当前级别中选中的或已勾选的节点
319
1828
  var selectedNode = document.querySelector(".".concat(resolveClassName('cascader-panel'), ":nth-child(").concat(level + 1, ") .").concat(resolveClassName('cascader-node.is-selected'), ", .").concat(resolveClassName('cascader-node.is-checked')));
320
1829
  if (selectedNode) {
321
- (0,external_vue_namespaceObject.nextTick)(function () {
1830
+ (0,external_vue_.nextTick)(function () {
322
1831
  selectedNode.scrollIntoView();
323
1832
  });
324
1833
  }
@@ -345,10 +1854,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
345
1854
  var multiple = node.config.multiple;
346
1855
  if (multiple) {
347
1856
  return checkValue.some(function (val) {
348
- return (0,shared_namespaceObject.arrayEqual)(val, node.path);
1857
+ return (0,shared_.arrayEqual)(val, node.path);
349
1858
  });
350
1859
  }
351
- return (0,shared_namespaceObject.arrayEqual)(checkValue, node.path);
1860
+ return (0,shared_.arrayEqual)(checkValue, node.path);
352
1861
  };
353
1862
  /** 多选节点checkbox点击的回调 */
354
1863
  var checkNode = function checkNode(node, value) {
@@ -361,14 +1870,14 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
361
1870
  * @returns 图标组件
362
1871
  */
363
1872
  var iconRender = function iconRender(node) {
364
- return node.loading ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Spinner, {
1873
+ return node.loading ? (0,external_vue_.createVNode)(icon_namespaceObject.Spinner, {
365
1874
  "class": resolveClassName('icon-spinner')
366
- }, null) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, {
1875
+ }, null) : (0,external_vue_.createVNode)(icon_namespaceObject.AngleRight, {
367
1876
  "class": resolveClassName('icon-angle-right')
368
1877
  }, null);
369
1878
  };
370
1879
  // 监听 modelValue 的变化,更新选中值
371
- (0,external_vue_namespaceObject.watch)(function () {
1880
+ (0,external_vue_.watch)(function () {
372
1881
  return props.modelValue;
373
1882
  }, function (value) {
374
1883
  updateCheckValue(value);
@@ -376,7 +1885,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
376
1885
  immediate: true
377
1886
  });
378
1887
  // 监听 store 的变化,更新菜单列表
379
- (0,external_vue_namespaceObject.watch)(function () {
1888
+ (0,external_vue_.watch)(function () {
380
1889
  return props.store;
381
1890
  }, function (value) {
382
1891
  menus.list = [value.getNodes()];
@@ -405,14 +1914,14 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
405
1914
  var _this = this;
406
1915
  var emptyWidth = parseInt(this.panelWidth, 10) > 200 ? this.panelWidth : "".concat(200, "px");
407
1916
  var searchPanelRender = function searchPanelRender() {
408
- return _this.suggestions.length ? (0,external_vue_namespaceObject.createVNode)("ul", {
1917
+ return _this.suggestions.length ? (0,external_vue_.createVNode)("ul", {
409
1918
  "style": {
410
1919
  height: _this.panelHeight,
411
1920
  width: _this.panelWidth
412
1921
  },
413
1922
  "class": [_this.resolveClassName('cascader-panel'), _this.resolveClassName('scroll-y')]
414
1923
  }, [_this.suggestions.map(function (node) {
415
- return (0,external_vue_namespaceObject.createVNode)("li", (0,external_vue_namespaceObject.mergeProps)({
1924
+ return (0,external_vue_.createVNode)("li", (0,external_vue_.mergeProps)({
416
1925
  "class": [_this.resolveClassName('cascader-node'), {
417
1926
  'is-selected': _this.isNodeInPath(node)
418
1927
  }, {
@@ -421,17 +1930,17 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
421
1930
  'is-checked': _this.isCheckedNode(node, _this.checkValue)
422
1931
  }]
423
1932
  }, _this.searchPanelEvents(node)), [node.pathNames.join(_this.separator)]);
424
- })]) : (0,external_vue_namespaceObject.createVNode)("div", {
1933
+ })]) : (0,external_vue_.createVNode)("div", {
425
1934
  "style": {
426
1935
  width: emptyWidth
427
1936
  },
428
1937
  "class": _this.resolveClassName('cascader-search-empty')
429
- }, [(0,external_vue_namespaceObject.createVNode)("span", null, [_this.noDataText])]);
1938
+ }, [(0,external_vue_.createVNode)("span", null, [_this.noDataText])]);
430
1939
  };
431
- return (0,external_vue_namespaceObject.createVNode)("div", {
1940
+ return (0,external_vue_.createVNode)("div", {
432
1941
  "class": this.resolveClassName('cascader-panel-wrapper')
433
1942
  }, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu) {
434
- return (0,external_vue_namespaceObject.createVNode)("ul", {
1943
+ return (0,external_vue_.createVNode)("ul", {
435
1944
  "style": {
436
1945
  height: _this.panelHeight,
437
1946
  width: _this.panelWidth
@@ -439,7 +1948,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
439
1948
  "class": [_this.resolveClassName('cascader-panel'), _this.resolveClassName('scroll-y')]
440
1949
  }, [menu.length ? menu.map(function (node) {
441
1950
  var _this$$slots$default, _this$$slots;
442
- return (0,external_vue_namespaceObject.createVNode)("li", (0,external_vue_namespaceObject.mergeProps)({
1951
+ return (0,external_vue_.createVNode)("li", (0,external_vue_.mergeProps)({
443
1952
  "class": [_this.resolveClassName('cascader-node'), {
444
1953
  'is-selected': _this.isNodeInPath(node)
445
1954
  }, {
@@ -447,7 +1956,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
447
1956
  }, {
448
1957
  'is-checked': !node.config.multiple && _this.isCheckedNode(node, _this.checkValue)
449
1958
  }]
450
- }, Object.assign(_this.nodeEvent(node), node.config.multiple ? {} : {})), [node.config.multiple && (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
1959
+ }, Object.assign(_this.nodeEvent(node), node.config.multiple ? {} : {})), [node.config.multiple && (0,external_vue_.createVNode)(checkbox_namespaceObject["default"], {
451
1960
  "style": "margin-right: 5px",
452
1961
  "modelValue": node.checked,
453
1962
  "onUpdate:modelValue": function onUpdateModelValue($event) {
@@ -462,48 +1971,21 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
462
1971
  node: node,
463
1972
  data: node.data
464
1973
  }), !node.isLeaf ? _this.iconRender(node) : '']);
465
- }) : (0,external_vue_namespaceObject.createVNode)("div", {
1974
+ }) : (0,external_vue_.createVNode)("div", {
466
1975
  "class": _this.resolveClassName('cascader-panel-empty-wrapper')
467
1976
  }, [_this.noDataText])]);
468
1977
  })]);
469
1978
  }
470
1979
  }));
471
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
1980
+ ;// ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
472
1981
  function _classCallCheck(instance, Constructor) {
473
1982
  if (!(instance instanceof Constructor)) {
474
1983
  throw new TypeError("Cannot call a class as a function");
475
1984
  }
476
1985
  }
477
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
478
- function _typeof(o) {
479
- "@babel/helpers - typeof";
480
-
481
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
482
- return typeof o;
483
- } : function (o) {
484
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
485
- }, _typeof(o);
486
- }
487
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
488
-
489
- function toPrimitive(t, r) {
490
- if ("object" != _typeof(t) || !t) return t;
491
- var e = t[Symbol.toPrimitive];
492
- if (void 0 !== e) {
493
- var i = e.call(t, r || "default");
494
- if ("object" != _typeof(i)) return i;
495
- throw new TypeError("@@toPrimitive must return a primitive value.");
496
- }
497
- return ("string" === r ? String : Number)(t);
498
- }
499
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
500
-
501
-
502
- function toPropertyKey(t) {
503
- var i = toPrimitive(t, "string");
504
- return "symbol" == _typeof(i) ? i : String(i);
505
- }
506
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
1986
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
1987
+ var toPropertyKey = __webpack_require__(205);
1988
+ ;// ../../node_modules/@babel/runtime/helpers/esm/createClass.js
507
1989
 
508
1990
  function _defineProperties(target, props) {
509
1991
  for (var i = 0; i < props.length; i++) {
@@ -511,7 +1993,7 @@ function _defineProperties(target, props) {
511
1993
  descriptor.enumerable = descriptor.enumerable || false;
512
1994
  descriptor.configurable = true;
513
1995
  if ("value" in descriptor) descriptor.writable = true;
514
- Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
1996
+ Object.defineProperty(target, (0,toPropertyKey["default"])(descriptor.key), descriptor);
515
1997
  }
516
1998
  }
517
1999
  function _createClass(Constructor, protoProps, staticProps) {
@@ -522,7 +2004,7 @@ function _createClass(Constructor, protoProps, staticProps) {
522
2004
  });
523
2005
  return Constructor;
524
2006
  }
525
- ;// CONCATENATED MODULE: ../../packages/cascader/src/node.ts
2007
+ ;// ../../packages/cascader/src/node.ts
526
2008
 
527
2009
 
528
2010
  /*
@@ -635,7 +2117,7 @@ var Node = /*#__PURE__*/function () {
635
2117
  }, {
636
2118
  key: "broadcast",
637
2119
  value: function broadcast(event, checkStatus) {
638
- var handlerName = "onParent".concat((0,shared_namespaceObject.capitalize)(event));
2120
+ var handlerName = "onParent".concat((0,shared_.capitalize)(event));
639
2121
  this.children.forEach(function (child) {
640
2122
  if (child) {
641
2123
  var _child$handlerName;
@@ -650,7 +2132,7 @@ var Node = /*#__PURE__*/function () {
650
2132
  key: "emit",
651
2133
  value: function emit(event) {
652
2134
  var parent = this.parent;
653
- var handlerName = "onChild".concat((0,shared_namespaceObject.capitalize)(event));
2135
+ var handlerName = "onChild".concat((0,shared_.capitalize)(event));
654
2136
  if (parent) {
655
2137
  var _parent$handlerName;
656
2138
  (_parent$handlerName = parent[handlerName]) === null || _parent$handlerName === void 0 || _parent$handlerName.call(parent);
@@ -719,7 +2201,7 @@ var Node = /*#__PURE__*/function () {
719
2201
  return Node;
720
2202
  }();
721
2203
  /* harmony default export */ const src_node = (Node);
722
- ;// CONCATENATED MODULE: ../../packages/cascader/src/store.ts
2204
+ ;// ../../packages/cascader/src/store.ts
723
2205
 
724
2206
 
725
2207
  /*
@@ -790,7 +2272,7 @@ var Store = /*#__PURE__*/function () {
790
2272
  key: "removeTag",
791
2273
  value: function removeTag(tag) {
792
2274
  this.getFlattedNodes().find(function (node) {
793
- if ((0,shared_namespaceObject.arrayEqual)(tag, node.path)) {
2275
+ if ((0,shared_.arrayEqual)(tag, node.path)) {
794
2276
  node.setNodeCheck(false);
795
2277
  return true;
796
2278
  }
@@ -812,7 +2294,7 @@ var Store = /*#__PURE__*/function () {
812
2294
  this.getFlattedNodes().forEach(function (node) {
813
2295
  node.setNodeCheck(false);
814
2296
  var checkedNode = nodes.find(function (nodeValue) {
815
- return (0,shared_namespaceObject.arrayEqual)(node.path, nodeValue);
2297
+ return (0,shared_.arrayEqual)(node.path, nodeValue);
816
2298
  });
817
2299
  if (checkedNode) {
818
2300
  var currentNode = _this2.getNodeByValue(checkedNode);
@@ -842,7 +2324,7 @@ var Store = /*#__PURE__*/function () {
842
2324
  value: function getNodeByValue(value) {
843
2325
  var _nodes$;
844
2326
  var nodes = this.getFlattedNodes().filter(function (node) {
845
- return (0,shared_namespaceObject.arrayEqual)(node.path, value);
2327
+ return (0,shared_.arrayEqual)(node.path, value);
846
2328
  });
847
2329
  return (_nodes$ = nodes[0]) !== null && _nodes$ !== void 0 ? _nodes$ : null;
848
2330
  }
@@ -873,7 +2355,7 @@ var Store = /*#__PURE__*/function () {
873
2355
  return Store;
874
2356
  }();
875
2357
  /* harmony default export */ const src_store = (Store);
876
- ;// CONCATENATED MODULE: ../../packages/cascader/src/cascader.tsx
2358
+ ;// ../../packages/cascader/src/cascader.tsx
877
2359
 
878
2360
  /*
879
2361
  * Tencent is pleased to support the open source community by making
@@ -918,36 +2400,36 @@ var Store = /*#__PURE__*/function () {
918
2400
  * Cascader 组件
919
2401
  * 用于展示级联选择器,支持多选、单选、搜索、远程加载等功能。
920
2402
  */
921
- /* harmony default export */ const cascader = ((0,external_vue_namespaceObject.defineComponent)({
2403
+ /* harmony default export */ const cascader = ((0,external_vue_.defineComponent)({
922
2404
  name: 'Cascader',
923
2405
  directives: {
924
- bkTooltips: directives_namespaceObject.bkTooltips
2406
+ bkTooltips: src.bkTooltips
925
2407
  },
926
2408
  props: {
927
- modelValue: shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.oneOfType([(0,external_vue_types_namespaceObject.array)(), String, Number])),
928
- list: shared_namespaceObject.PropTypes.array.def([]),
929
- placeholder: shared_namespaceObject.PropTypes.string.def(''),
930
- behavior: shared_namespaceObject.PropTypes.string.def('normal'),
931
- filterable: shared_namespaceObject.PropTypes.bool.def(false),
932
- multiple: shared_namespaceObject.PropTypes.bool.def(false),
933
- disabled: shared_namespaceObject.PropTypes.bool.def(false),
934
- clearable: shared_namespaceObject.PropTypes.bool.def(true),
935
- trigger: shared_namespaceObject.PropTypes.string.def('click'),
936
- checkAnyLevel: shared_namespaceObject.PropTypes.bool.def(false),
937
- isRemote: shared_namespaceObject.PropTypes.bool.def(false),
938
- remoteMethod: shared_namespaceObject.PropTypes.func,
939
- showCompleteName: shared_namespaceObject.PropTypes.bool.def(true),
940
- idKey: shared_namespaceObject.PropTypes.string.def('id'),
941
- nameKey: shared_namespaceObject.PropTypes.string.def('name'),
942
- childrenKey: shared_namespaceObject.PropTypes.string.def('children'),
943
- separator: shared_namespaceObject.PropTypes.string.def('/'),
944
- limitOneLine: shared_namespaceObject.PropTypes.bool.def(false),
945
- extCls: shared_namespaceObject.PropTypes.string.def(''),
946
- filterMethod: shared_namespaceObject.PropTypes.func,
947
- scrollHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def(216),
948
- scrollWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def('auto'),
949
- customTextFillback: shared_namespaceObject.PropTypes.func,
950
- customTagsFillback: shared_namespaceObject.PropTypes.func,
2409
+ modelValue: shared_.PropTypes.arrayOf(shared_.PropTypes.oneOfType([(0,external_vue_types_namespaceObject.array)(), String, Number])),
2410
+ list: shared_.PropTypes.array.def([]),
2411
+ placeholder: shared_.PropTypes.string.def(''),
2412
+ behavior: shared_.PropTypes.string.def('normal'),
2413
+ filterable: shared_.PropTypes.bool.def(false),
2414
+ multiple: shared_.PropTypes.bool.def(false),
2415
+ disabled: shared_.PropTypes.bool.def(false),
2416
+ clearable: shared_.PropTypes.bool.def(true),
2417
+ trigger: shared_.PropTypes.string.def('click'),
2418
+ checkAnyLevel: shared_.PropTypes.bool.def(false),
2419
+ isRemote: shared_.PropTypes.bool.def(false),
2420
+ remoteMethod: shared_.PropTypes.func,
2421
+ showCompleteName: shared_.PropTypes.bool.def(true),
2422
+ idKey: shared_.PropTypes.string.def('id'),
2423
+ nameKey: shared_.PropTypes.string.def('name'),
2424
+ childrenKey: shared_.PropTypes.string.def('children'),
2425
+ separator: shared_.PropTypes.string.def('/'),
2426
+ limitOneLine: shared_.PropTypes.bool.def(false),
2427
+ extCls: shared_.PropTypes.string.def(''),
2428
+ filterMethod: shared_.PropTypes.func,
2429
+ scrollHeight: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def(216),
2430
+ scrollWidth: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def('auto'),
2431
+ customTextFillback: shared_.PropTypes.func,
2432
+ customTagsFillback: shared_.PropTypes.func,
951
2433
  collapseTags: {
952
2434
  type: Boolean,
953
2435
  "default": true
@@ -970,29 +2452,29 @@ var Store = /*#__PURE__*/function () {
970
2452
  isHover = _useHover.isHover,
971
2453
  setHover = _useHover.setHover,
972
2454
  cancelHover = _useHover.cancelHover;
973
- var store = (0,external_vue_namespaceObject.ref)(new src_store(props));
2455
+ var store = (0,external_vue_.ref)(new src_store(props));
974
2456
  // 定义selectedText变量用于记录当前选择的值的文本
975
- var selectedText = (0,external_vue_namespaceObject.ref)('');
2457
+ var selectedText = (0,external_vue_.ref)('');
976
2458
  // 定义selectedTags变量用于记录多选模式下已选的tag
977
- var selectedTags = (0,external_vue_namespaceObject.ref)([]);
978
- var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
2459
+ var selectedTags = (0,external_vue_.ref)([]);
2460
+ var _toRefs = (0,external_vue_.toRefs)(props),
979
2461
  modelValue = _toRefs.modelValue;
980
2462
  // 定义cascaderPanel 引用
981
- var cascaderPanel = (0,external_vue_namespaceObject.ref)();
2463
+ var cascaderPanel = (0,external_vue_.ref)();
982
2464
  // 定义searchKey变量,支持搜索时,搜索框绑定变量
983
- var searchKey = (0,external_vue_namespaceObject.ref)('');
2465
+ var searchKey = (0,external_vue_.ref)('');
984
2466
  // 定义suggestions变量,搜索功能打开时,面板给出的列表
985
- var suggestions = (0,external_vue_namespaceObject.ref)([]);
2467
+ var suggestions = (0,external_vue_.ref)([]);
986
2468
  // 定义isFiltering变量,记录是否正在搜索,过滤
987
- var isFiltering = (0,external_vue_namespaceObject.ref)(false);
2469
+ var isFiltering = (0,external_vue_.ref)(false);
988
2470
  // 定义isEdit变量,记录是否处于编辑状态
989
- var isEdit = (0,external_vue_namespaceObject.ref)(false);
2471
+ var isEdit = (0,external_vue_.ref)(false);
990
2472
  // 定义isFocus变量,记录是否处于焦点状态
991
- var isFocus = (0,external_vue_namespaceObject.ref)(false);
2473
+ var isFocus = (0,external_vue_.ref)(false);
992
2474
  // 定义isShowPanel变量,用于标致面板显示
993
- var isShowPanel = (0,external_vue_namespaceObject.ref)(false);
2475
+ var isShowPanel = (0,external_vue_.ref)(false);
994
2476
  // 用computed定义checkedValue变量,用于监听modelValue的变化
995
- var checkedValue = (0,external_vue_namespaceObject.computed)({
2477
+ var checkedValue = (0,external_vue_.computed)({
996
2478
  get: function get() {
997
2479
  return modelValue.value;
998
2480
  },
@@ -1001,15 +2483,15 @@ var Store = /*#__PURE__*/function () {
1001
2483
  }
1002
2484
  });
1003
2485
  // 定义popover变量
1004
- var popover = (0,external_vue_namespaceObject.ref)(null);
2486
+ var popover = (0,external_vue_.ref)(null);
1005
2487
  // 定义bkCascaderRef和inputRef变量
1006
- var bkCascaderRef = (0,external_vue_namespaceObject.ref)(null);
1007
- var inputRef = (0,external_vue_namespaceObject.ref)(null);
2488
+ var bkCascaderRef = (0,external_vue_.ref)(null);
2489
+ var inputRef = (0,external_vue_.ref)(null);
1008
2490
  // 用computed定义placeholder变量,用于处理props中的placeholder属性
1009
- var placeholder = (0,external_vue_namespaceObject.computed)(function () {
2491
+ var placeholder = (0,external_vue_.computed)(function () {
1010
2492
  return props.placeholder ? props.placeholder : t.value.pleaseSelect;
1011
2493
  });
1012
- var displayText = (0,external_vue_namespaceObject.computed)(function () {
2494
+ var displayText = (0,external_vue_.computed)(function () {
1013
2495
  if (props.customTextFillback) {
1014
2496
  return props.customTextFillback(props.modelValue, store.value.getFlattedNodes());
1015
2497
  }
@@ -1110,7 +2592,7 @@ var Store = /*#__PURE__*/function () {
1110
2592
  isEdit.value = val.isShow;
1111
2593
  // popover激活后,focus相应事件
1112
2594
  isFocus.value = val.isShow;
1113
- (0,external_vue_namespaceObject.nextTick)(function () {
2595
+ (0,external_vue_.nextTick)(function () {
1114
2596
  var _inputRef$value2;
1115
2597
  val && ((_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.focus());
1116
2598
  if (val.isShow) {
@@ -1125,7 +2607,7 @@ var Store = /*#__PURE__*/function () {
1125
2607
  }
1126
2608
  };
1127
2609
  // 搜索框输入的处理函数
1128
- var searchInputHandler = (0,shared_namespaceObject.debounce)(200, function (e) {
2610
+ var searchInputHandler = (0,shared_.debounce)(200, function (e) {
1129
2611
  var target = e.target;
1130
2612
  searchKey.value = target.value;
1131
2613
  if (searchKey.value === '') {
@@ -1158,28 +2640,28 @@ var Store = /*#__PURE__*/function () {
1158
2640
  emit('focus');
1159
2641
  };
1160
2642
  // 监听modelValue的变化
1161
- (0,external_vue_namespaceObject.watch)(function () {
2643
+ (0,external_vue_.watch)(function () {
1162
2644
  return props.modelValue;
1163
2645
  }, modelValueChangeHandler, {
1164
2646
  immediate: true
1165
2647
  });
1166
2648
  // 监听list的变化
1167
- (0,external_vue_namespaceObject.watch)(function () {
2649
+ (0,external_vue_.watch)(function () {
1168
2650
  return props.list;
1169
2651
  }, listChangeHandler, {
1170
2652
  deep: true,
1171
2653
  immediate: true
1172
2654
  });
1173
2655
  // 定义overflowTagIndex变量,用于处理tag的折叠
1174
- var tagList = (0,external_vue_namespaceObject.computed)(function () {
2656
+ var tagList = (0,external_vue_.computed)(function () {
1175
2657
  return props.customTagsFillback ? props.customTagsFillback(props.modelValue, store.value.getFlattedNodes()) : selectedTags.value.map(function (item) {
1176
2658
  return item.text;
1177
2659
  });
1178
2660
  });
1179
- var isCollapse = (0,external_vue_namespaceObject.computed)(function () {
2661
+ var isCollapse = (0,external_vue_.computed)(function () {
1180
2662
  return props.collapseTags ? props.collapseTags && isFocus.value : props.collapseTags;
1181
2663
  });
1182
- var isEditMode = (0,external_vue_namespaceObject.computed)(function () {
2664
+ var isEditMode = (0,external_vue_.computed)(function () {
1183
2665
  return props.collapseTags ? props.collapseTags && isEdit.value : props.collapseTags;
1184
2666
  });
1185
2667
  // 如果使用了trigger插槽,则不存在bkCascaderRef,做兼容处理
@@ -1229,13 +2711,13 @@ var Store = /*#__PURE__*/function () {
1229
2711
  var suffixIcon = function suffixIcon() {
1230
2712
  if (_this.clearable && _this.isHover && !_this.disabled) {
1231
2713
  // 当可清空、鼠标悬浮且未禁用时,渲染清空图标
1232
- return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
2714
+ return (0,external_vue_.createVNode)(icon_namespaceObject.Close, {
1233
2715
  "class": _this.resolveClassName('icon-clear-icon'),
1234
2716
  "onClick": _this.handleClear
1235
2717
  }, null);
1236
2718
  }
1237
2719
  // 否则渲染展开/收起图标
1238
- return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleUp, {
2720
+ return (0,external_vue_.createVNode)(icon_namespaceObject.AngleUp, {
1239
2721
  "class": [_this.resolveClassName('icon-angle-up'), _this.isShowPanel ? 'active' : '']
1240
2722
  }, null);
1241
2723
  };
@@ -1252,47 +2734,47 @@ var Store = /*#__PURE__*/function () {
1252
2734
  var renderTags = function renderTags() {
1253
2735
  if (_this.limitOneLine) {
1254
2736
  // 如果limitOneLine为true,则只显示一行
1255
- return (0,external_vue_namespaceObject.createVNode)("span", {
2737
+ return (0,external_vue_.createVNode)("span", {
1256
2738
  "class": "cascader-selected-text"
1257
2739
  }, [_this.displayText]);
1258
2740
  }
1259
- return (0,external_vue_namespaceObject.createVNode)("div", {
2741
+ return (0,external_vue_.createVNode)("div", {
1260
2742
  "class": "cascader-tag-list"
1261
2743
  }, [_this.tagList.map(function (tag, index) {
1262
2744
  var isOverflow = !_this.isCollapse && _this.overflowTagIndex !== null && index >= _this.overflowTagIndex;
1263
2745
  // 根据tag是否超出显示范围,来决定是否渲染
1264
- return (0,external_vue_namespaceObject.createVNode)("span", {
2746
+ return (0,external_vue_.createVNode)("span", {
1265
2747
  "key": tag,
1266
2748
  "style": {
1267
2749
  display: isOverflow ? 'none' : ''
1268
2750
  },
1269
2751
  "class": "tag-item"
1270
- }, [(0,external_vue_namespaceObject.createVNode)("span", {
2752
+ }, [(0,external_vue_.createVNode)("span", {
1271
2753
  "class": "tag-item-name"
1272
- }, [tag]), (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
2754
+ }, [tag]), (0,external_vue_.createVNode)(icon_namespaceObject.Error, {
1273
2755
  "class": _this.resolveClassName('icon-clear-icon'),
1274
2756
  "onClick": function onClick(e) {
1275
2757
  e.stopPropagation();
1276
2758
  _this.removeTag(_this.modelValue, index, e);
1277
2759
  }
1278
2760
  }, null)]);
1279
- }), _this.overflowTagIndex !== null && !_this.isCollapse && (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
2761
+ }), _this.overflowTagIndex !== null && !_this.isCollapse && (0,external_vue_.withDirectives)((0,external_vue_.createVNode)(tag_namespaceObject["default"], {
1280
2762
  "style": "margin-top: 0"
1281
2763
  }, {
1282
2764
  "default": function _default() {
1283
- return [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selectedTags.length - _this.overflowTagIndex];
2765
+ return [(0,external_vue_.createTextVNode)("+"), _this.selectedTags.length - _this.overflowTagIndex];
1284
2766
  }
1285
- }), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), collapseTooltip.join(', ')]])]);
2767
+ }), [[(0,external_vue_.resolveDirective)("bk-tooltips"), collapseTooltip.join(', ')]])]);
1286
2768
  };
1287
2769
  var textRender = function textRender() {
1288
2770
  return (
1289
2771
  // 多选时, text被tagRender填充,不需要进行text渲染
1290
- _this.multiple ? null : (0,external_vue_namespaceObject.createVNode)("span", null, [_this.displayText])
2772
+ _this.multiple ? null : (0,external_vue_.createVNode)("span", null, [_this.displayText])
1291
2773
  );
1292
2774
  };
1293
2775
  // 定义popoverRender函数,用于渲染弹出框
1294
2776
  var popoverRender = function popoverRender() {
1295
- return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
2777
+ return (0,external_vue_.createVNode)(popover_namespaceObject["default"], {
1296
2778
  "ref": "popover",
1297
2779
  "class": _this.resolveClassName('cascader-popover-wrapper'),
1298
2780
  "arrow": false,
@@ -1310,9 +2792,9 @@ var Store = /*#__PURE__*/function () {
1310
2792
  return _this.$slots.trigger ? _this.$slots.trigger({
1311
2793
  selected: _this.modelValue,
1312
2794
  isShow: _this.isShowPanel
1313
- }) : (0,external_vue_namespaceObject.createVNode)("div", {
2795
+ }) : (0,external_vue_.createVNode)("div", {
1314
2796
  "class": [_this.resolveClassName('cascader-name'), _this.resolveClassName('scroll-y')]
1315
- }, [_this.multiple && _this.selectedTags.length > 0 && renderTags(), _this.filterable ? (_this.isCollapse || _this.selectedTags.length === 0) && (0,external_vue_namespaceObject.createVNode)("input", {
2797
+ }, [_this.multiple && _this.selectedTags.length > 0 && renderTags(), _this.filterable ? (_this.isCollapse || _this.selectedTags.length === 0) && (0,external_vue_.createVNode)("input", {
1316
2798
  "ref": "inputRef",
1317
2799
  "class": [_this.resolveClassName('cascader-search-input'), {
1318
2800
  'is-disabled': _this.disabled
@@ -1326,9 +2808,9 @@ var Store = /*#__PURE__*/function () {
1326
2808
  }, null) : textRender()]);
1327
2809
  },
1328
2810
  content: function content() {
1329
- return (0,external_vue_namespaceObject.createVNode)("div", {
2811
+ return (0,external_vue_.createVNode)("div", {
1330
2812
  "class": _this.resolveClassName('cascader-popover')
1331
- }, [(0,external_vue_namespaceObject.createVNode)(cascader_panel, {
2813
+ }, [(0,external_vue_.createVNode)(cascader_panel, {
1332
2814
  "ref": "cascaderPanel",
1333
2815
  "width": _this.scrollWidth,
1334
2816
  "height": _this.scrollHeight,
@@ -1343,7 +2825,7 @@ var Store = /*#__PURE__*/function () {
1343
2825
  "suggestions": _this.suggestions
1344
2826
  }, {
1345
2827
  "default": function _default(scope) {
1346
- return _this.$slots["default"] ? _this.$slots["default"](scope) : (0,external_vue_namespaceObject.createVNode)("span", {
2828
+ return _this.$slots["default"] ? _this.$slots["default"](scope) : (0,external_vue_.createVNode)("span", {
1347
2829
  "class": _this.resolveClassName('cascader-node-name')
1348
2830
  }, [scope.node.name]);
1349
2831
  }
@@ -1351,9 +2833,9 @@ var Store = /*#__PURE__*/function () {
1351
2833
  }
1352
2834
  });
1353
2835
  };
1354
- return (0,external_vue_namespaceObject.createVNode)("div", {
2836
+ return (0,external_vue_.createVNode)("div", {
1355
2837
  "class": [this.resolveClassName('cascader-wrapper'), this.floatMode ? 'float-mode' : '']
1356
- }, [this.$slots.trigger ? popoverRender() : (0,external_vue_namespaceObject.createVNode)("div", {
2838
+ }, [this.$slots.trigger ? popoverRender() : (0,external_vue_.createVNode)("div", {
1357
2839
  "ref": "bkCascaderRef",
1358
2840
  "class": [this.resolveClassName('cascader'), this.extCls, {
1359
2841
  'is-unselected': this.modelValue.length === 0,
@@ -1370,7 +2852,7 @@ var Store = /*#__PURE__*/function () {
1370
2852
  }, [suffixIcon(), popoverRender()])]);
1371
2853
  }
1372
2854
  }));
1373
- ;// CONCATENATED MODULE: ../../packages/cascader/src/index.ts
2855
+ ;// ../../packages/cascader/src/index.ts
1374
2856
  /*
1375
2857
  * Tencent is pleased to support the open source community by making
1376
2858
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -1399,10 +2881,10 @@ var Store = /*#__PURE__*/function () {
1399
2881
 
1400
2882
 
1401
2883
 
1402
- var BkCascader = (0,shared_namespaceObject.withInstallProps)(cascader, {
2884
+ var BkCascader = (0,shared_.withInstallProps)(cascader, {
1403
2885
  CascaderPanel: cascader_panel
1404
2886
  });
1405
- /* harmony default export */ const src = (BkCascader);
2887
+ /* harmony default export */ const cascader_src = (BkCascader);
1406
2888
 
1407
2889
  var __webpack_exports__BkCascader = __webpack_exports__.BkCascader;
1408
2890
  var __webpack_exports__BkCascaderPanel = __webpack_exports__.BkCascaderPanel;