bkui-vue 2.0.1 → 2.0.2-beta.2

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