bkui-vue 2.0.1 → 2.0.2-beta.10

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