bkui-vue 2.0.2-beta.6 → 2.0.2-beta.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License.txt +1 -2
- package/dist/cli.css +1 -0
- package/dist/index.cjs.js +133 -132
- package/dist/index.esm.js +17093 -15160
- package/dist/index.umd.js +133 -132
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/ja-jp.esm.js +2 -0
- package/dist/locale/ja-jp.esm.js.map +1 -0
- package/dist/locale/ja-jp.umd.js +2 -0
- package/dist/locale/ja-jp.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +1 -0
- package/lib/affix/index.js +24 -32
- package/lib/alert/alert.variable.css +1 -0
- package/lib/alert/index.js +24 -32
- package/lib/animate-number/index.js +12 -16
- package/lib/backtop/backtop.variable.css +1 -0
- package/lib/backtop/index.js +24 -34
- package/lib/badge/badge.variable.css +1 -0
- package/lib/badge/index.js +20 -26
- package/lib/breadcrumb/breadcrumb.variable.css +1 -0
- package/lib/breadcrumb/index.js +26 -34
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.variable.css +1 -0
- package/lib/button/index.js +29 -39
- package/lib/card/card.variable.css +1 -0
- package/lib/card/index.js +35 -49
- package/lib/cascader/cascader.css +26 -24
- package/lib/cascader/cascader.d.ts +311 -0
- package/lib/cascader/cascader.less +78 -76
- package/lib/cascader/cascader.variable.css +27 -24
- package/lib/cascader/index.d.ts +610 -0
- package/lib/cascader/index.js +810 -748
- package/lib/checkbox/checkbox.variable.css +1 -0
- package/lib/checkbox/index.js +39 -49
- package/lib/code-diff/code-diff.variable.css +1 -0
- package/lib/code-diff/index.js +81 -85
- package/lib/collapse/collapse.variable.css +1 -0
- package/lib/collapse/index.js +36 -42
- package/lib/collapse-transition/collapse-transition.variable.css +1 -0
- package/lib/collapse-transition/index.js +16 -22
- package/lib/color-picker/color-picker.variable.css +1 -0
- package/lib/color-picker/index.js +637 -656
- package/lib/components.js +1 -1
- package/lib/config-provider/config-provider.variable.css +1 -0
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.js +32 -40
- package/lib/container/container.variable.css +1 -0
- package/lib/container/index.js +26 -32
- package/lib/date-picker/date-picker.d.ts +2 -1
- package/lib/date-picker/date-picker.variable.css +1 -0
- package/lib/date-picker/index.d.ts +6 -2
- package/lib/date-picker/index.js +713 -738
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +5 -17
- package/lib/dialog/dialog.css +20 -1
- package/lib/dialog/dialog.variable.css +21 -1
- package/lib/dialog/index.js +100 -137
- package/lib/directives/index.js +518 -529
- package/lib/dist.index.js +1 -1
- package/lib/divider/divider.variable.css +1 -0
- package/lib/divider/index.js +18 -24
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +45 -52
- package/lib/exception/exception.variable.css +1 -0
- package/lib/exception/index.js +51 -57
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
- package/lib/fixed-navbar/index.js +16 -22
- package/lib/form/form-item.d.ts +19 -0
- package/lib/form/form.css +16 -4
- package/lib/form/form.less +24 -6
- package/lib/form/form.variable.css +17 -4
- package/lib/form/index.d.ts +13 -0
- package/lib/form/index.js +662 -685
- package/lib/hooks.js +1 -1
- package/lib/icon/angle-double-down-line.js +13 -15
- package/lib/icon/angle-double-left-line.js +13 -15
- package/lib/icon/angle-double-left.js +13 -15
- package/lib/icon/angle-double-right-line.js +13 -15
- package/lib/icon/angle-double-right.js +13 -15
- package/lib/icon/angle-double-up-line.js +13 -15
- package/lib/icon/angle-down-fill.js +13 -15
- package/lib/icon/angle-down-line.js +13 -15
- package/lib/icon/angle-down.js +13 -15
- package/lib/icon/angle-left.js +13 -15
- package/lib/icon/angle-right.js +13 -15
- package/lib/icon/angle-up-fill.js +13 -15
- package/lib/icon/angle-up.js +13 -15
- package/lib/icon/archive-fill.js +13 -15
- package/lib/icon/arrows-left.js +13 -15
- package/lib/icon/arrows-right.js +13 -15
- package/lib/icon/assistant.js +13 -15
- package/lib/icon/audio-fill.js +13 -15
- package/lib/icon/bk.js +13 -15
- package/lib/icon/circle.js +13 -15
- package/lib/icon/close-line.js +13 -15
- package/lib/icon/close.js +13 -15
- package/lib/icon/code.js +13 -15
- package/lib/icon/cog-shape.js +13 -15
- package/lib/icon/collapse-left.js +13 -15
- package/lib/icon/copy-shape.js +13 -15
- package/lib/icon/copy.js +13 -15
- package/lib/icon/data-shape.js +13 -15
- package/lib/icon/del.js +13 -15
- package/lib/icon/doc-fill.js +13 -15
- package/lib/icon/done.js +13 -15
- package/lib/icon/down-shape.js +13 -15
- package/lib/icon/down-small.js +13 -15
- package/lib/icon/edit-line.js +13 -15
- package/lib/icon/ellipsis.js +13 -15
- package/lib/icon/enlarge-line.js +13 -15
- package/lib/icon/error.js +13 -15
- package/lib/icon/excel-fill.js +13 -15
- package/lib/icon/exclamation-circle-shape.js +13 -15
- package/lib/icon/eye.js +13 -15
- package/lib/icon/filliscreen-line.js +13 -15
- package/lib/icon/fix-line.js +13 -15
- package/lib/icon/fix-shape.js +13 -15
- package/lib/icon/folder-open.js +13 -15
- package/lib/icon/folder-shape-open.js +13 -15
- package/lib/icon/folder-shape.js +13 -15
- package/lib/icon/folder.js +13 -15
- package/lib/icon/funnel.js +13 -15
- package/lib/icon/grag-fill.js +13 -15
- package/lib/icon/help-document-fill.js +13 -15
- package/lib/icon/help-fill.js +13 -15
- package/lib/icon/help.js +13 -15
- package/lib/icon/image-fill.js +13 -15
- package/lib/icon/img-error.js +13 -15
- package/lib/icon/img-placehoulder.js +13 -15
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +13 -15
- package/lib/icon/info.js +13 -15
- package/lib/icon/left-shape.js +13 -15
- package/lib/icon/left-turn-line.js +13 -15
- package/lib/icon/loading.js +13 -15
- package/lib/icon/narrow-line.js +13 -15
- package/lib/icon/original.js +13 -15
- package/lib/icon/pdf-fill.js +13 -15
- package/lib/icon/play-shape.js +13 -15
- package/lib/icon/plus.js +13 -15
- package/lib/icon/ppt-fill.js +13 -15
- package/lib/icon/qq.js +13 -15
- package/lib/icon/right-shape.js +13 -15
- package/lib/icon/right-turn-line.js +13 -15
- package/lib/icon/search.js +13 -15
- package/lib/icon/share.js +13 -15
- package/lib/icon/spinner.js +13 -15
- package/lib/icon/success.js +13 -15
- package/lib/icon/switcher-loading.js +13 -15
- package/lib/icon/text-all.js +13 -15
- package/lib/icon/text-file.js +13 -15
- package/lib/icon/text-fill.js +13 -15
- package/lib/icon/transfer.js +13 -15
- package/lib/icon/tree-application-shape.js +13 -15
- package/lib/icon/unfull-screen.js +13 -15
- package/lib/icon/unvisible.js +13 -15
- package/lib/icon/up-shape.js +13 -15
- package/lib/icon/upload.js +13 -15
- package/lib/icon/video-fill.js +13 -15
- package/lib/icon/warn.js +13 -15
- package/lib/icon/weixin-pro.js +13 -15
- package/lib/icon/weixin.js +13 -15
- package/lib/image/image-viewer.variable.css +1 -0
- package/lib/image/image.variable.css +1 -0
- package/lib/image/index.js +333 -352
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +109 -108
- package/lib/info-box/info-box.css +20 -1
- package/lib/info-box/info-box.d.ts +1 -0
- package/lib/info-box/info-box.less +28 -2
- package/lib/info-box/info-box.variable.css +22 -2
- package/lib/input/index.d.ts +39 -20
- package/lib/input/index.js +363 -358
- package/lib/input/input.d.ts +30 -16
- package/lib/input/input.variable.css +1 -0
- package/lib/link/index.js +20 -28
- package/lib/link/link.variable.css +1 -0
- package/lib/loading/index.js +22 -28
- package/lib/loading/loading.variable.css +1 -0
- package/lib/locale/index.d.ts +1 -0
- package/lib/locale/index.js +175 -7
- package/lib/locale/lang/ja-jp.d.ts +3 -0
- package/lib/menu/index.js +44 -49
- package/lib/menu/menu.variable.css +1 -0
- package/lib/menu/submenu.variable.css +1 -0
- package/lib/message/index.js +45 -51
- package/lib/message/message.variable.css +1 -0
- package/lib/modal/index.js +43 -45
- package/lib/modal/modal.css +20 -1
- package/lib/modal/modal.variable.css +21 -1
- package/lib/navigation/index.js +22 -30
- package/lib/navigation/navigation.variable.css +1 -0
- package/lib/notify/index.js +30 -40
- package/lib/notify/notify.variable.css +1 -0
- package/lib/overflow-title/index.js +32 -44
- package/lib/pagination/index.js +68 -76
- package/lib/pagination/pagination.css +1 -0
- package/lib/pagination/pagination.less +1 -0
- package/lib/pagination/pagination.variable.css +2 -0
- package/lib/pop-confirm/index.d.ts +584 -0
- package/lib/pop-confirm/index.js +43 -55
- package/lib/pop-confirm/pop-confirm.d.ts +292 -0
- package/lib/pop-confirm/pop-confirm.variable.css +1 -0
- package/lib/pop-confirm/props.d.ts +146 -0
- package/lib/popover/index.js +363 -382
- package/lib/popover/popover.variable.css +1 -0
- package/lib/popover2/index.js +12 -16
- package/lib/preset.js +1 -1
- package/lib/process/index.js +76 -80
- package/lib/process/process.d.ts +1 -1
- package/lib/process/process.variable.css +1 -0
- package/lib/progress/index.js +24 -30
- package/lib/progress/progress.variable.css +1 -0
- package/lib/radio/index.js +36 -44
- package/lib/radio/radio.variable.css +1 -0
- package/lib/rate/index.js +22 -28
- package/lib/rate/rate.variable.css +1 -0
- package/lib/resize-layout/index.js +24 -32
- package/lib/resize-layout/resize-layout.variable.css +1 -0
- package/lib/scrollbar/css/scrollbar.variable.css +1 -0
- package/lib/scrollbar/index.js +31 -31
- package/lib/search-select/index.d.ts +21 -3
- package/lib/search-select/index.js +558 -543
- package/lib/search-select/input.d.ts +3 -0
- package/lib/search-select/search-select.d.ts +7 -1
- package/lib/search-select/search-select.variable.css +1 -0
- package/lib/search-select/selected.d.ts +6 -0
- package/lib/select/index.d.ts +22 -3
- package/lib/select/index.js +560 -597
- package/lib/select/select.d.ts +11 -1
- package/lib/select/select.variable.css +1 -0
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +59 -67
- package/lib/shared/z-index-manager.d.ts +1 -1
- package/lib/sideslider/index.js +84 -92
- package/lib/sideslider/sideslider.variable.css +1 -0
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +80 -89
- package/lib/slider/slider-button.d.ts +1 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/slider/slider.variable.css +1 -0
- package/lib/steps/index.js +74 -80
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.variable.css +1 -0
- package/lib/styles/mixins/animate.variable.css +1 -0
- package/lib/styles/mixins/popper.variable.css +1 -0
- package/lib/styles/mixins/scroll.variable.css +1 -0
- package/lib/styles/reset.variable.css +1 -0
- package/lib/styles/themes/themes.less +3 -0
- package/lib/swiper/index.js +20 -26
- package/lib/swiper/swiper.variable.css +1 -0
- package/lib/switcher/index.js +24 -32
- package/lib/switcher/switcher.variable.css +1 -0
- package/lib/tab/index.d.ts +12 -0
- package/lib/tab/index.js +341 -352
- package/lib/tab/props.d.ts +3 -0
- package/lib/tab/tab.d.ts +6 -0
- package/lib/tab/tab.variable.css +1 -0
- package/lib/table/index.js +630 -691
- package/lib/table/plugins/head-filter.variable.css +1 -0
- package/lib/table/plugins/head-sort.variable.css +1 -0
- package/lib/table/plugins/settings.variable.css +1 -0
- package/lib/table/table.css +1 -0
- package/lib/table/table.variable.css +2 -0
- package/lib/table-column/index.js +10 -14
- package/lib/tag/index.js +28 -38
- package/lib/tag/tag.variable.css +1 -0
- package/lib/tag-input/index.d.ts +3 -0
- package/lib/tag-input/index.js +2190 -851
- package/lib/tag-input/tag-input.d.ts +1 -0
- package/lib/tag-input/tag-input.variable.css +1 -0
- package/lib/time-picker/index.js +10 -14
- package/lib/time-picker/time-picker.variable.css +1 -0
- package/lib/timeline/index.js +1368 -25
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.variable.css +1 -0
- package/lib/transfer/index.d.ts +1 -24
- package/lib/transfer/index.js +61 -67
- package/lib/transfer/props.d.ts +0 -5
- package/lib/transfer/transfer.css +26 -8
- package/lib/transfer/transfer.d.ts +1 -12
- package/lib/transfer/transfer.less +18 -8
- package/lib/transfer/transfer.variable.css +27 -8
- package/lib/tree/constant.d.ts +2 -0
- package/lib/tree/index.d.ts +48 -0
- package/lib/tree/index.js +297 -171
- package/lib/tree/props.d.ts +20 -0
- package/lib/tree/tree.css +46 -0
- package/lib/tree/tree.d.ts +22 -0
- package/lib/tree/tree.less +57 -2
- package/lib/tree/tree.variable.css +47 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/upload/index.js +570 -582
- package/lib/upload/upload.variable.css +1 -0
- package/lib/virtual-render/index.js +50 -62
- package/lib/virtual-render/virtual-render.variable.css +1 -0
- package/lib/volar.components.d.ts +2 -1
- package/package.json +13 -2
- package/dist/style.css +0 -1
package/lib/cascader/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import "../styles/reset.css";
|
2
2
|
import "./cascader.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
6
5
|
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
@@ -14,185 +14,12 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__ from "../se
|
|
14
14
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
|
15
15
|
import "../tag/tag.less";
|
16
16
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__ from "../tag-input";
|
17
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
|
17
18
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
18
19
|
import "../checkbox/checkbox.less";
|
19
20
|
/******/ var __webpack_modules__ = ({
|
20
21
|
|
21
|
-
/***/
|
22
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
23
|
-
|
24
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
25
|
-
/* harmony export */ "default": () => (/* binding */ toPropertyKey)
|
26
|
-
/* harmony export */ });
|
27
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7545);
|
28
|
-
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
29
|
-
|
30
|
-
|
31
|
-
function toPropertyKey(t) {
|
32
|
-
var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
|
33
|
-
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
|
34
|
-
}
|
35
|
-
|
36
|
-
/***/ }),
|
37
|
-
|
38
|
-
/***/ 592:
|
39
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
40
|
-
|
41
|
-
var x = (y) => {
|
42
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
43
|
-
}
|
44
|
-
var y = (x) => (() => (x))
|
45
|
-
module.exports = x({ ["$bkPopover"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover), ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"]) });
|
46
|
-
|
47
|
-
/***/ }),
|
48
|
-
|
49
|
-
/***/ 1043:
|
50
|
-
/***/ ((module) => {
|
51
|
-
|
52
|
-
/**
|
53
|
-
* Copyright (c) 2015, Facebook, Inc.
|
54
|
-
* All rights reserved.
|
55
|
-
*
|
56
|
-
* This source code is licensed under the BSD-style license found in the
|
57
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
58
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
59
|
-
*
|
60
|
-
* @providesModule ExecutionEnvironment
|
61
|
-
*/
|
62
|
-
|
63
|
-
/*jslint evil: true */
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
var canUseDOM = !!(
|
68
|
-
typeof window !== 'undefined' &&
|
69
|
-
window.document &&
|
70
|
-
window.document.createElement
|
71
|
-
);
|
72
|
-
|
73
|
-
/**
|
74
|
-
* Simple, lightweight module assisting with the detection and context of
|
75
|
-
* Worker. Helps avoid circular dependencies and allows code to reason about
|
76
|
-
* whether or not they are in a Worker, even if they never include the main
|
77
|
-
* `ReactWorker` dependency.
|
78
|
-
*/
|
79
|
-
var ExecutionEnvironment = {
|
80
|
-
|
81
|
-
canUseDOM: canUseDOM,
|
82
|
-
|
83
|
-
canUseWorkers: typeof Worker !== 'undefined',
|
84
|
-
|
85
|
-
canUseEventListeners:
|
86
|
-
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
87
|
-
|
88
|
-
canUseViewport: canUseDOM && !!window.screen,
|
89
|
-
|
90
|
-
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
91
|
-
|
92
|
-
};
|
93
|
-
|
94
|
-
module.exports = ExecutionEnvironment;
|
95
|
-
|
96
|
-
|
97
|
-
/***/ }),
|
98
|
-
|
99
|
-
/***/ 2586:
|
100
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
101
|
-
|
102
|
-
/**
|
103
|
-
* Copyright 2013-2015, Facebook, Inc.
|
104
|
-
* All rights reserved.
|
105
|
-
*
|
106
|
-
* This source code is licensed under the BSD-style license found in the
|
107
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
108
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
109
|
-
*
|
110
|
-
* @providesModule isEventSupported
|
111
|
-
*/
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
var ExecutionEnvironment = __webpack_require__(1043);
|
116
|
-
|
117
|
-
var useHasFeature;
|
118
|
-
if (ExecutionEnvironment.canUseDOM) {
|
119
|
-
useHasFeature =
|
120
|
-
document.implementation &&
|
121
|
-
document.implementation.hasFeature &&
|
122
|
-
// always returns true in newer browsers as per the standard.
|
123
|
-
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
124
|
-
document.implementation.hasFeature('', '') !== true;
|
125
|
-
}
|
126
|
-
|
127
|
-
/**
|
128
|
-
* Checks if an event is supported in the current execution environment.
|
129
|
-
*
|
130
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
131
|
-
* `reset`, `load`, `error`, and `select`.
|
132
|
-
*
|
133
|
-
* Borrows from Modernizr.
|
134
|
-
*
|
135
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
136
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
137
|
-
* @return {boolean} True if the event is supported.
|
138
|
-
* @internal
|
139
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
140
|
-
*/
|
141
|
-
function isEventSupported(eventNameSuffix, capture) {
|
142
|
-
if (!ExecutionEnvironment.canUseDOM ||
|
143
|
-
capture && !('addEventListener' in document)) {
|
144
|
-
return false;
|
145
|
-
}
|
146
|
-
|
147
|
-
var eventName = 'on' + eventNameSuffix;
|
148
|
-
var isSupported = eventName in document;
|
149
|
-
|
150
|
-
if (!isSupported) {
|
151
|
-
var element = document.createElement('div');
|
152
|
-
element.setAttribute(eventName, 'return;');
|
153
|
-
isSupported = typeof element[eventName] === 'function';
|
154
|
-
}
|
155
|
-
|
156
|
-
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
157
|
-
// This is the only way to test support for the `wheel` event in IE9+.
|
158
|
-
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
159
|
-
}
|
160
|
-
|
161
|
-
return isSupported;
|
162
|
-
}
|
163
|
-
|
164
|
-
module.exports = isEventSupported;
|
165
|
-
|
166
|
-
|
167
|
-
/***/ }),
|
168
|
-
|
169
|
-
/***/ 2880:
|
170
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
171
|
-
|
172
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
173
|
-
/* harmony export */ "default": () => (/* binding */ _nonIterableSpread)
|
174
|
-
/* harmony export */ });
|
175
|
-
function _nonIterableSpread() {
|
176
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
177
|
-
}
|
178
|
-
|
179
|
-
/***/ }),
|
180
|
-
|
181
|
-
/***/ 3492:
|
182
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
183
|
-
|
184
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
185
|
-
/* harmony export */ "default": () => (/* binding */ _arrayWithoutHoles)
|
186
|
-
/* harmony export */ });
|
187
|
-
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6284);
|
188
|
-
|
189
|
-
function _arrayWithoutHoles(arr) {
|
190
|
-
if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
|
191
|
-
}
|
192
|
-
|
193
|
-
/***/ }),
|
194
|
-
|
195
|
-
/***/ 4193:
|
22
|
+
/***/ 668:
|
196
23
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
197
24
|
|
198
25
|
|
@@ -203,7 +30,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
203
30
|
|
204
31
|
// UNUSED EXPORTS: bkEllipsis, bkEllipsisInstance, bkLoading, clickoutside, mousewheel, overflowTitle
|
205
32
|
|
206
|
-
;// ../../packages/directives/src/clickoutside.ts
|
33
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
207
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; } } }; }
|
208
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); }
|
209
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; }
|
@@ -211,7 +38,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
211
38
|
* Tencent is pleased to support the open source community by making
|
212
39
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
213
40
|
*
|
214
|
-
* Copyright (C)
|
41
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
215
42
|
*
|
216
43
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
217
44
|
*
|
@@ -330,16 +157,16 @@ ClickOutside.install = function (app) {
|
|
330
157
|
};
|
331
158
|
/* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
|
332
159
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
333
|
-
var esm_typeof = __webpack_require__(
|
160
|
+
var esm_typeof = __webpack_require__(6522);
|
334
161
|
// EXTERNAL MODULE: external "../popover"
|
335
|
-
var popover_ = __webpack_require__(
|
336
|
-
;// ../../packages/directives/src/ellipsis.ts
|
162
|
+
var popover_ = __webpack_require__(563);
|
163
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
|
337
164
|
|
338
165
|
/*
|
339
166
|
* Tencent is pleased to support the open source community by making
|
340
167
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
341
168
|
*
|
342
|
-
* Copyright (C)
|
169
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
343
170
|
*
|
344
171
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
345
172
|
*
|
@@ -444,14 +271,14 @@ var ellipsis = {
|
|
444
271
|
};
|
445
272
|
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
446
273
|
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
447
|
-
var normalize_wheel = __webpack_require__(
|
274
|
+
var normalize_wheel = __webpack_require__(2439);
|
448
275
|
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
449
|
-
;// ../../packages/directives/src/mousewheel.ts
|
276
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
|
450
277
|
/*
|
451
278
|
* Tencent is pleased to support the open source community by making
|
452
279
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
453
280
|
*
|
454
|
-
* Copyright (C)
|
281
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
455
282
|
*
|
456
283
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
457
284
|
*
|
@@ -489,20 +316,18 @@ var mousewheel = {
|
|
489
316
|
};
|
490
317
|
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
491
318
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
492
|
-
var defineProperty = __webpack_require__(
|
319
|
+
var defineProperty = __webpack_require__(6666);
|
493
320
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
494
|
-
var toConsumableArray = __webpack_require__(
|
321
|
+
var toConsumableArray = __webpack_require__(7930);
|
495
322
|
// EXTERNAL MODULE: external "vue"
|
496
|
-
var external_vue_ = __webpack_require__(
|
323
|
+
var external_vue_ = __webpack_require__(6609);
|
497
324
|
// EXTERNAL MODULE: external "../shared"
|
498
|
-
var shared_ = __webpack_require__(
|
499
|
-
;// external "@popperjs/core"
|
500
|
-
var x = (y)
|
501
|
-
|
502
|
-
}
|
503
|
-
|
504
|
-
const core_namespaceObject = x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
505
|
-
;// ../../packages/directives/src/tooltips.ts
|
325
|
+
var shared_ = __webpack_require__(9253);
|
326
|
+
;// CONCATENATED MODULE: external "@popperjs/core"
|
327
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
328
|
+
var y = x => () => x
|
329
|
+
const core_namespaceObject = x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
|
330
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
|
506
331
|
|
507
332
|
|
508
333
|
|
@@ -512,7 +337,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
512
337
|
* Tencent is pleased to support the open source community by making
|
513
338
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
514
339
|
*
|
515
|
-
* Copyright (C)
|
340
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
516
341
|
*
|
517
342
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
518
343
|
*
|
@@ -567,9 +392,6 @@ var tooltips = {
|
|
567
392
|
hide(el);
|
568
393
|
}, 100);
|
569
394
|
});
|
570
|
-
el.addEventListener('click', function () {
|
571
|
-
hide(el);
|
572
|
-
});
|
573
395
|
popper.addEventListener('mouseleave', function () {
|
574
396
|
clearTimeout(delayTimeout);
|
575
397
|
hideTimeout = setTimeout(function () {
|
@@ -583,7 +405,7 @@ var tooltips = {
|
|
583
405
|
show(el);
|
584
406
|
clearTimeout(delayTimeout);
|
585
407
|
}, opts.delay);
|
586
|
-
} else if (popper.hasAttribute('data-show')) {
|
408
|
+
} else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
|
587
409
|
hide(el);
|
588
410
|
}
|
589
411
|
});
|
@@ -794,24 +616,20 @@ function hide(el) {
|
|
794
616
|
}
|
795
617
|
}
|
796
618
|
/* harmony default export */ const src_tooltips = (tooltips);
|
797
|
-
;// external "../loading"
|
798
|
-
var external_loading_x = (y)
|
799
|
-
|
800
|
-
}
|
801
|
-
var external_loading_y = (x) => (() => (x))
|
619
|
+
;// CONCATENATED MODULE: external "../loading"
|
620
|
+
var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
621
|
+
var external_loading_y = x => () => x
|
802
622
|
const external_loading_namespaceObject = external_loading_x({ });
|
803
|
-
;// external "../overflow-title"
|
804
|
-
var external_overflow_title_x = (y)
|
805
|
-
|
806
|
-
}
|
807
|
-
var external_overflow_title_y = (x) => (() => (x))
|
623
|
+
;// CONCATENATED MODULE: external "../overflow-title"
|
624
|
+
var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
625
|
+
var external_overflow_title_y = x => () => x
|
808
626
|
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
809
|
-
;// ../../packages/directives/src/index.ts
|
627
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
|
810
628
|
/*
|
811
629
|
* Tencent is pleased to support the open source community by making
|
812
630
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
813
631
|
*
|
814
|
-
* Copyright (C)
|
632
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
815
633
|
*
|
816
634
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
817
635
|
*
|
@@ -842,45 +660,16 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
842
660
|
|
843
661
|
/***/ }),
|
844
662
|
|
845
|
-
/***/
|
846
|
-
/***/ ((
|
847
|
-
|
848
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
849
|
-
/* harmony export */ "default": () => (/* binding */ _iterableToArray)
|
850
|
-
/* harmony export */ });
|
851
|
-
function _iterableToArray(iter) {
|
852
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
853
|
-
}
|
854
|
-
|
855
|
-
/***/ }),
|
856
|
-
|
857
|
-
/***/ 4586:
|
858
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
663
|
+
/***/ 2439:
|
664
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
859
665
|
|
860
|
-
|
861
|
-
/* harmony export */ "default": () => (/* binding */ _defineProperty)
|
862
|
-
/* harmony export */ });
|
863
|
-
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(205);
|
666
|
+
module.exports = __webpack_require__(2527);
|
864
667
|
|
865
|
-
function _defineProperty(obj, key, value) {
|
866
|
-
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
|
867
|
-
if (key in obj) {
|
868
|
-
Object.defineProperty(obj, key, {
|
869
|
-
value: value,
|
870
|
-
enumerable: true,
|
871
|
-
configurable: true,
|
872
|
-
writable: true
|
873
|
-
});
|
874
|
-
} else {
|
875
|
-
obj[key] = value;
|
876
|
-
}
|
877
|
-
return obj;
|
878
|
-
}
|
879
668
|
|
880
669
|
/***/ }),
|
881
670
|
|
882
|
-
/***/
|
883
|
-
/***/ ((module
|
671
|
+
/***/ 7430:
|
672
|
+
/***/ ((module) => {
|
884
673
|
|
885
674
|
/**
|
886
675
|
* Copyright (c) 2015, Facebook, Inc.
|
@@ -890,38 +679,447 @@ function _defineProperty(obj, key, value) {
|
|
890
679
|
* LICENSE file in the root directory of this source tree. An additional grant
|
891
680
|
* of patent rights can be found in the PATENTS file in the same directory.
|
892
681
|
*
|
893
|
-
* @providesModule
|
894
|
-
* @typechecks
|
682
|
+
* @providesModule ExecutionEnvironment
|
895
683
|
*/
|
896
684
|
|
685
|
+
/*jslint evil: true */
|
686
|
+
|
687
|
+
|
688
|
+
|
689
|
+
var canUseDOM = !!(
|
690
|
+
typeof window !== 'undefined' &&
|
691
|
+
window.document &&
|
692
|
+
window.document.createElement
|
693
|
+
);
|
694
|
+
|
695
|
+
/**
|
696
|
+
* Simple, lightweight module assisting with the detection and context of
|
697
|
+
* Worker. Helps avoid circular dependencies and allows code to reason about
|
698
|
+
* whether or not they are in a Worker, even if they never include the main
|
699
|
+
* `ReactWorker` dependency.
|
700
|
+
*/
|
701
|
+
var ExecutionEnvironment = {
|
897
702
|
|
703
|
+
canUseDOM: canUseDOM,
|
898
704
|
|
899
|
-
|
705
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
900
706
|
|
901
|
-
|
707
|
+
canUseEventListeners:
|
708
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
902
709
|
|
710
|
+
canUseViewport: canUseDOM && !!window.screen,
|
903
711
|
|
904
|
-
//
|
905
|
-
|
906
|
-
|
907
|
-
|
712
|
+
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
713
|
+
|
714
|
+
};
|
715
|
+
|
716
|
+
module.exports = ExecutionEnvironment;
|
717
|
+
|
718
|
+
|
719
|
+
/***/ }),
|
720
|
+
|
721
|
+
/***/ 6377:
|
722
|
+
/***/ ((module) => {
|
908
723
|
|
909
724
|
/**
|
910
|
-
*
|
911
|
-
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
912
|
-
* your questions.
|
725
|
+
* Copyright 2004-present Facebook. All Rights Reserved.
|
913
726
|
*
|
914
|
-
*
|
915
|
-
|
727
|
+
* @providesModule UserAgent_DEPRECATED
|
728
|
+
*/
|
729
|
+
|
730
|
+
/**
|
731
|
+
* Provides entirely client-side User Agent and OS detection. You should prefer
|
732
|
+
* the non-deprecated UserAgent module when possible, which exposes our
|
733
|
+
* authoritative server-side PHP-based detection to the client.
|
916
734
|
*
|
917
|
-
*
|
735
|
+
* Usage is straightforward:
|
918
736
|
*
|
919
|
-
*
|
920
|
-
*
|
921
|
-
*
|
922
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
737
|
+
* if (UserAgent_DEPRECATED.ie()) {
|
738
|
+
* // IE
|
739
|
+
* }
|
923
740
|
*
|
924
|
-
*
|
741
|
+
* You can also do version checks:
|
742
|
+
*
|
743
|
+
* if (UserAgent_DEPRECATED.ie() >= 7) {
|
744
|
+
* // IE7 or better
|
745
|
+
* }
|
746
|
+
*
|
747
|
+
* The browser functions will return NaN if the browser does not match, so
|
748
|
+
* you can also do version compares the other way:
|
749
|
+
*
|
750
|
+
* if (UserAgent_DEPRECATED.ie() < 7) {
|
751
|
+
* // IE6 or worse
|
752
|
+
* }
|
753
|
+
*
|
754
|
+
* Note that the version is a float and may include a minor version number,
|
755
|
+
* so you should always use range operators to perform comparisons, not
|
756
|
+
* strict equality.
|
757
|
+
*
|
758
|
+
* **Note:** You should **strongly** prefer capability detection to browser
|
759
|
+
* version detection where it's reasonable:
|
760
|
+
*
|
761
|
+
* http://www.quirksmode.org/js/support.html
|
762
|
+
*
|
763
|
+
* Further, we have a large number of mature wrapper functions and classes
|
764
|
+
* which abstract away many browser irregularities. Check the documentation,
|
765
|
+
* grep for things, or ask on javascript@lists.facebook.com before writing yet
|
766
|
+
* another copy of "event || window.event".
|
767
|
+
*
|
768
|
+
*/
|
769
|
+
|
770
|
+
var _populated = false;
|
771
|
+
|
772
|
+
// Browsers
|
773
|
+
var _ie, _firefox, _opera, _webkit, _chrome;
|
774
|
+
|
775
|
+
// Actual IE browser for compatibility mode
|
776
|
+
var _ie_real_version;
|
777
|
+
|
778
|
+
// Platforms
|
779
|
+
var _osx, _windows, _linux, _android;
|
780
|
+
|
781
|
+
// Architectures
|
782
|
+
var _win64;
|
783
|
+
|
784
|
+
// Devices
|
785
|
+
var _iphone, _ipad, _native;
|
786
|
+
|
787
|
+
var _mobile;
|
788
|
+
|
789
|
+
function _populate() {
|
790
|
+
if (_populated) {
|
791
|
+
return;
|
792
|
+
}
|
793
|
+
|
794
|
+
_populated = true;
|
795
|
+
|
796
|
+
// To work around buggy JS libraries that can't handle multi-digit
|
797
|
+
// version numbers, Opera 10's user agent string claims it's Opera
|
798
|
+
// 9, then later includes a Version/X.Y field:
|
799
|
+
//
|
800
|
+
// Opera/9.80 (foo) Presto/2.2.15 Version/10.10
|
801
|
+
var uas = navigator.userAgent;
|
802
|
+
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);
|
803
|
+
var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
|
804
|
+
|
805
|
+
_iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
|
806
|
+
_ipad = /\b(iP[ao]d)/.exec(uas);
|
807
|
+
_android = /Android/i.exec(uas);
|
808
|
+
_native = /FBAN\/\w+;/i.exec(uas);
|
809
|
+
_mobile = /Mobile/i.exec(uas);
|
810
|
+
|
811
|
+
// Note that the IE team blog would have you believe you should be checking
|
812
|
+
// for 'Win64; x64'. But MSDN then reveals that you can actually be coming
|
813
|
+
// from either x64 or ia64; so ultimately, you should just check for Win64
|
814
|
+
// as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
|
815
|
+
// Windows will send 'WOW64' instead.
|
816
|
+
_win64 = !!(/Win64/.exec(uas));
|
817
|
+
|
818
|
+
if (agent) {
|
819
|
+
_ie = agent[1] ? parseFloat(agent[1]) : (
|
820
|
+
agent[5] ? parseFloat(agent[5]) : NaN);
|
821
|
+
// IE compatibility mode
|
822
|
+
if (_ie && document && document.documentMode) {
|
823
|
+
_ie = document.documentMode;
|
824
|
+
}
|
825
|
+
// grab the "true" ie version from the trident token if available
|
826
|
+
var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
|
827
|
+
_ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
|
828
|
+
|
829
|
+
_firefox = agent[2] ? parseFloat(agent[2]) : NaN;
|
830
|
+
_opera = agent[3] ? parseFloat(agent[3]) : NaN;
|
831
|
+
_webkit = agent[4] ? parseFloat(agent[4]) : NaN;
|
832
|
+
if (_webkit) {
|
833
|
+
// We do not add the regexp to the above test, because it will always
|
834
|
+
// match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
|
835
|
+
// the userAgent string.
|
836
|
+
agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
|
837
|
+
_chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
|
838
|
+
} else {
|
839
|
+
_chrome = NaN;
|
840
|
+
}
|
841
|
+
} else {
|
842
|
+
_ie = _firefox = _opera = _chrome = _webkit = NaN;
|
843
|
+
}
|
844
|
+
|
845
|
+
if (os) {
|
846
|
+
if (os[1]) {
|
847
|
+
// Detect OS X version. If no version number matches, set _osx to true.
|
848
|
+
// Version examples: 10, 10_6_1, 10.7
|
849
|
+
// Parses version number as a float, taking only first two sets of
|
850
|
+
// digits. If only one set of digits is found, returns just the major
|
851
|
+
// version number.
|
852
|
+
var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
|
853
|
+
|
854
|
+
_osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
|
855
|
+
} else {
|
856
|
+
_osx = false;
|
857
|
+
}
|
858
|
+
_windows = !!os[2];
|
859
|
+
_linux = !!os[3];
|
860
|
+
} else {
|
861
|
+
_osx = _windows = _linux = false;
|
862
|
+
}
|
863
|
+
}
|
864
|
+
|
865
|
+
var UserAgent_DEPRECATED = {
|
866
|
+
|
867
|
+
/**
|
868
|
+
* Check if the UA is Internet Explorer.
|
869
|
+
*
|
870
|
+
*
|
871
|
+
* @return float|NaN Version number (if match) or NaN.
|
872
|
+
*/
|
873
|
+
ie: function() {
|
874
|
+
return _populate() || _ie;
|
875
|
+
},
|
876
|
+
|
877
|
+
/**
|
878
|
+
* Check if we're in Internet Explorer compatibility mode.
|
879
|
+
*
|
880
|
+
* @return bool true if in compatibility mode, false if
|
881
|
+
* not compatibility mode or not ie
|
882
|
+
*/
|
883
|
+
ieCompatibilityMode: function() {
|
884
|
+
return _populate() || (_ie_real_version > _ie);
|
885
|
+
},
|
886
|
+
|
887
|
+
|
888
|
+
/**
|
889
|
+
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
890
|
+
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
891
|
+
* this when we don't need it -- tracked by #601957.
|
892
|
+
*/
|
893
|
+
ie64: function() {
|
894
|
+
return UserAgent_DEPRECATED.ie() && _win64;
|
895
|
+
},
|
896
|
+
|
897
|
+
/**
|
898
|
+
* Check if the UA is Firefox.
|
899
|
+
*
|
900
|
+
*
|
901
|
+
* @return float|NaN Version number (if match) or NaN.
|
902
|
+
*/
|
903
|
+
firefox: function() {
|
904
|
+
return _populate() || _firefox;
|
905
|
+
},
|
906
|
+
|
907
|
+
|
908
|
+
/**
|
909
|
+
* Check if the UA is Opera.
|
910
|
+
*
|
911
|
+
*
|
912
|
+
* @return float|NaN Version number (if match) or NaN.
|
913
|
+
*/
|
914
|
+
opera: function() {
|
915
|
+
return _populate() || _opera;
|
916
|
+
},
|
917
|
+
|
918
|
+
|
919
|
+
/**
|
920
|
+
* Check if the UA is WebKit.
|
921
|
+
*
|
922
|
+
*
|
923
|
+
* @return float|NaN Version number (if match) or NaN.
|
924
|
+
*/
|
925
|
+
webkit: function() {
|
926
|
+
return _populate() || _webkit;
|
927
|
+
},
|
928
|
+
|
929
|
+
/**
|
930
|
+
* For Push
|
931
|
+
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
932
|
+
*/
|
933
|
+
safari: function() {
|
934
|
+
return UserAgent_DEPRECATED.webkit();
|
935
|
+
},
|
936
|
+
|
937
|
+
/**
|
938
|
+
* Check if the UA is a Chrome browser.
|
939
|
+
*
|
940
|
+
*
|
941
|
+
* @return float|NaN Version number (if match) or NaN.
|
942
|
+
*/
|
943
|
+
chrome : function() {
|
944
|
+
return _populate() || _chrome;
|
945
|
+
},
|
946
|
+
|
947
|
+
|
948
|
+
/**
|
949
|
+
* Check if the user is running Windows.
|
950
|
+
*
|
951
|
+
* @return bool `true' if the user's OS is Windows.
|
952
|
+
*/
|
953
|
+
windows: function() {
|
954
|
+
return _populate() || _windows;
|
955
|
+
},
|
956
|
+
|
957
|
+
|
958
|
+
/**
|
959
|
+
* Check if the user is running Mac OS X.
|
960
|
+
*
|
961
|
+
* @return float|bool Returns a float if a version number is detected,
|
962
|
+
* otherwise true/false.
|
963
|
+
*/
|
964
|
+
osx: function() {
|
965
|
+
return _populate() || _osx;
|
966
|
+
},
|
967
|
+
|
968
|
+
/**
|
969
|
+
* Check if the user is running Linux.
|
970
|
+
*
|
971
|
+
* @return bool `true' if the user's OS is some flavor of Linux.
|
972
|
+
*/
|
973
|
+
linux: function() {
|
974
|
+
return _populate() || _linux;
|
975
|
+
},
|
976
|
+
|
977
|
+
/**
|
978
|
+
* Check if the user is running on an iPhone or iPod platform.
|
979
|
+
*
|
980
|
+
* @return bool `true' if the user is running some flavor of the
|
981
|
+
* iPhone OS.
|
982
|
+
*/
|
983
|
+
iphone: function() {
|
984
|
+
return _populate() || _iphone;
|
985
|
+
},
|
986
|
+
|
987
|
+
mobile: function() {
|
988
|
+
return _populate() || (_iphone || _ipad || _android || _mobile);
|
989
|
+
},
|
990
|
+
|
991
|
+
nativeApp: function() {
|
992
|
+
// webviews inside of the native apps
|
993
|
+
return _populate() || _native;
|
994
|
+
},
|
995
|
+
|
996
|
+
android: function() {
|
997
|
+
return _populate() || _android;
|
998
|
+
},
|
999
|
+
|
1000
|
+
ipad: function() {
|
1001
|
+
return _populate() || _ipad;
|
1002
|
+
}
|
1003
|
+
};
|
1004
|
+
|
1005
|
+
module.exports = UserAgent_DEPRECATED;
|
1006
|
+
|
1007
|
+
|
1008
|
+
/***/ }),
|
1009
|
+
|
1010
|
+
/***/ 3541:
|
1011
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1012
|
+
|
1013
|
+
/**
|
1014
|
+
* Copyright 2013-2015, Facebook, Inc.
|
1015
|
+
* All rights reserved.
|
1016
|
+
*
|
1017
|
+
* This source code is licensed under the BSD-style license found in the
|
1018
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
1019
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
1020
|
+
*
|
1021
|
+
* @providesModule isEventSupported
|
1022
|
+
*/
|
1023
|
+
|
1024
|
+
|
1025
|
+
|
1026
|
+
var ExecutionEnvironment = __webpack_require__(7430);
|
1027
|
+
|
1028
|
+
var useHasFeature;
|
1029
|
+
if (ExecutionEnvironment.canUseDOM) {
|
1030
|
+
useHasFeature =
|
1031
|
+
document.implementation &&
|
1032
|
+
document.implementation.hasFeature &&
|
1033
|
+
// always returns true in newer browsers as per the standard.
|
1034
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
1035
|
+
document.implementation.hasFeature('', '') !== true;
|
1036
|
+
}
|
1037
|
+
|
1038
|
+
/**
|
1039
|
+
* Checks if an event is supported in the current execution environment.
|
1040
|
+
*
|
1041
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
1042
|
+
* `reset`, `load`, `error`, and `select`.
|
1043
|
+
*
|
1044
|
+
* Borrows from Modernizr.
|
1045
|
+
*
|
1046
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
1047
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
1048
|
+
* @return {boolean} True if the event is supported.
|
1049
|
+
* @internal
|
1050
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
1051
|
+
*/
|
1052
|
+
function isEventSupported(eventNameSuffix, capture) {
|
1053
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
1054
|
+
capture && !('addEventListener' in document)) {
|
1055
|
+
return false;
|
1056
|
+
}
|
1057
|
+
|
1058
|
+
var eventName = 'on' + eventNameSuffix;
|
1059
|
+
var isSupported = eventName in document;
|
1060
|
+
|
1061
|
+
if (!isSupported) {
|
1062
|
+
var element = document.createElement('div');
|
1063
|
+
element.setAttribute(eventName, 'return;');
|
1064
|
+
isSupported = typeof element[eventName] === 'function';
|
1065
|
+
}
|
1066
|
+
|
1067
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
1068
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
1069
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
return isSupported;
|
1073
|
+
}
|
1074
|
+
|
1075
|
+
module.exports = isEventSupported;
|
1076
|
+
|
1077
|
+
|
1078
|
+
/***/ }),
|
1079
|
+
|
1080
|
+
/***/ 2527:
|
1081
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1082
|
+
|
1083
|
+
/**
|
1084
|
+
* Copyright (c) 2015, Facebook, Inc.
|
1085
|
+
* All rights reserved.
|
1086
|
+
*
|
1087
|
+
* This source code is licensed under the BSD-style license found in the
|
1088
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
1089
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
1090
|
+
*
|
1091
|
+
* @providesModule normalizeWheel
|
1092
|
+
* @typechecks
|
1093
|
+
*/
|
1094
|
+
|
1095
|
+
|
1096
|
+
|
1097
|
+
var UserAgent_DEPRECATED = __webpack_require__(6377);
|
1098
|
+
|
1099
|
+
var isEventSupported = __webpack_require__(3541);
|
1100
|
+
|
1101
|
+
|
1102
|
+
// Reasonable defaults
|
1103
|
+
var PIXEL_STEP = 10;
|
1104
|
+
var LINE_HEIGHT = 40;
|
1105
|
+
var PAGE_HEIGHT = 800;
|
1106
|
+
|
1107
|
+
/**
|
1108
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
1109
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
1110
|
+
* your questions.
|
1111
|
+
*
|
1112
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
1113
|
+
* like your bestest friend. * hugs *
|
1114
|
+
*
|
1115
|
+
* As of today, there are 4 DOM event types you can listen to:
|
1116
|
+
*
|
1117
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
1118
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
1119
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
1120
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
1121
|
+
*
|
1122
|
+
* So what to do? The is the best:
|
925
1123
|
*
|
926
1124
|
* normalizeWheel.getEventType();
|
927
1125
|
*
|
@@ -1060,410 +1258,144 @@ normalizeWheel.getEventType = function() /*string*/ {
|
|
1060
1258
|
: (isEventSupported('wheel'))
|
1061
1259
|
? 'wheel'
|
1062
1260
|
: 'mousewheel';
|
1063
|
-
};
|
1064
|
-
|
1065
|
-
module.exports = normalizeWheel;
|
1066
|
-
|
1067
|
-
|
1068
|
-
/***/ }),
|
1069
|
-
|
1070
|
-
/***/ 5153:
|
1071
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1072
|
-
|
1073
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1074
|
-
/* harmony export */ "default": () => (/* binding */ _toConsumableArray)
|
1075
|
-
/* harmony export */ });
|
1076
|
-
/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3492);
|
1077
|
-
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4430);
|
1078
|
-
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7985);
|
1079
|
-
/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2880);
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
function _toConsumableArray(arr) {
|
1085
|
-
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"])();
|
1086
|
-
}
|
1087
|
-
|
1088
|
-
/***/ }),
|
1089
|
-
|
1090
|
-
/***/ 5166:
|
1091
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1092
|
-
|
1093
|
-
var x = (y) => {
|
1094
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
1095
|
-
}
|
1096
|
-
var y = (x) => (() => (x))
|
1097
|
-
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) });
|
1098
|
-
|
1099
|
-
/***/ }),
|
1100
|
-
|
1101
|
-
/***/ 5286:
|
1102
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1103
|
-
|
1104
|
-
var x = (y) => {
|
1105
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
1106
|
-
}
|
1107
|
-
var y = (x) => (() => (x))
|
1108
|
-
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) });
|
1109
|
-
|
1110
|
-
/***/ }),
|
1111
|
-
|
1112
|
-
/***/ 6284:
|
1113
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1114
|
-
|
1115
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1116
|
-
/* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
|
1117
|
-
/* harmony export */ });
|
1118
|
-
function _arrayLikeToArray(arr, len) {
|
1119
|
-
if (len == null || len > arr.length) len = arr.length;
|
1120
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1121
|
-
return arr2;
|
1122
|
-
}
|
1123
|
-
|
1124
|
-
/***/ }),
|
1125
|
-
|
1126
|
-
/***/ 7416:
|
1127
|
-
/***/ ((module) => {
|
1128
|
-
|
1129
|
-
/**
|
1130
|
-
* Copyright 2004-present Facebook. All Rights Reserved.
|
1131
|
-
*
|
1132
|
-
* @providesModule UserAgent_DEPRECATED
|
1133
|
-
*/
|
1134
|
-
|
1135
|
-
/**
|
1136
|
-
* Provides entirely client-side User Agent and OS detection. You should prefer
|
1137
|
-
* the non-deprecated UserAgent module when possible, which exposes our
|
1138
|
-
* authoritative server-side PHP-based detection to the client.
|
1139
|
-
*
|
1140
|
-
* Usage is straightforward:
|
1141
|
-
*
|
1142
|
-
* if (UserAgent_DEPRECATED.ie()) {
|
1143
|
-
* // IE
|
1144
|
-
* }
|
1145
|
-
*
|
1146
|
-
* You can also do version checks:
|
1147
|
-
*
|
1148
|
-
* if (UserAgent_DEPRECATED.ie() >= 7) {
|
1149
|
-
* // IE7 or better
|
1150
|
-
* }
|
1151
|
-
*
|
1152
|
-
* The browser functions will return NaN if the browser does not match, so
|
1153
|
-
* you can also do version compares the other way:
|
1154
|
-
*
|
1155
|
-
* if (UserAgent_DEPRECATED.ie() < 7) {
|
1156
|
-
* // IE6 or worse
|
1157
|
-
* }
|
1158
|
-
*
|
1159
|
-
* Note that the version is a float and may include a minor version number,
|
1160
|
-
* so you should always use range operators to perform comparisons, not
|
1161
|
-
* strict equality.
|
1162
|
-
*
|
1163
|
-
* **Note:** You should **strongly** prefer capability detection to browser
|
1164
|
-
* version detection where it's reasonable:
|
1165
|
-
*
|
1166
|
-
* http://www.quirksmode.org/js/support.html
|
1167
|
-
*
|
1168
|
-
* Further, we have a large number of mature wrapper functions and classes
|
1169
|
-
* which abstract away many browser irregularities. Check the documentation,
|
1170
|
-
* grep for things, or ask on javascript@lists.facebook.com before writing yet
|
1171
|
-
* another copy of "event || window.event".
|
1172
|
-
*
|
1173
|
-
*/
|
1174
|
-
|
1175
|
-
var _populated = false;
|
1176
|
-
|
1177
|
-
// Browsers
|
1178
|
-
var _ie, _firefox, _opera, _webkit, _chrome;
|
1179
|
-
|
1180
|
-
// Actual IE browser for compatibility mode
|
1181
|
-
var _ie_real_version;
|
1182
|
-
|
1183
|
-
// Platforms
|
1184
|
-
var _osx, _windows, _linux, _android;
|
1185
|
-
|
1186
|
-
// Architectures
|
1187
|
-
var _win64;
|
1188
|
-
|
1189
|
-
// Devices
|
1190
|
-
var _iphone, _ipad, _native;
|
1191
|
-
|
1192
|
-
var _mobile;
|
1193
|
-
|
1194
|
-
function _populate() {
|
1195
|
-
if (_populated) {
|
1196
|
-
return;
|
1197
|
-
}
|
1198
|
-
|
1199
|
-
_populated = true;
|
1200
|
-
|
1201
|
-
// To work around buggy JS libraries that can't handle multi-digit
|
1202
|
-
// version numbers, Opera 10's user agent string claims it's Opera
|
1203
|
-
// 9, then later includes a Version/X.Y field:
|
1204
|
-
//
|
1205
|
-
// Opera/9.80 (foo) Presto/2.2.15 Version/10.10
|
1206
|
-
var uas = navigator.userAgent;
|
1207
|
-
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);
|
1208
|
-
var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
|
1209
|
-
|
1210
|
-
_iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
|
1211
|
-
_ipad = /\b(iP[ao]d)/.exec(uas);
|
1212
|
-
_android = /Android/i.exec(uas);
|
1213
|
-
_native = /FBAN\/\w+;/i.exec(uas);
|
1214
|
-
_mobile = /Mobile/i.exec(uas);
|
1215
|
-
|
1216
|
-
// Note that the IE team blog would have you believe you should be checking
|
1217
|
-
// for 'Win64; x64'. But MSDN then reveals that you can actually be coming
|
1218
|
-
// from either x64 or ia64; so ultimately, you should just check for Win64
|
1219
|
-
// as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
|
1220
|
-
// Windows will send 'WOW64' instead.
|
1221
|
-
_win64 = !!(/Win64/.exec(uas));
|
1222
|
-
|
1223
|
-
if (agent) {
|
1224
|
-
_ie = agent[1] ? parseFloat(agent[1]) : (
|
1225
|
-
agent[5] ? parseFloat(agent[5]) : NaN);
|
1226
|
-
// IE compatibility mode
|
1227
|
-
if (_ie && document && document.documentMode) {
|
1228
|
-
_ie = document.documentMode;
|
1229
|
-
}
|
1230
|
-
// grab the "true" ie version from the trident token if available
|
1231
|
-
var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
|
1232
|
-
_ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
|
1233
|
-
|
1234
|
-
_firefox = agent[2] ? parseFloat(agent[2]) : NaN;
|
1235
|
-
_opera = agent[3] ? parseFloat(agent[3]) : NaN;
|
1236
|
-
_webkit = agent[4] ? parseFloat(agent[4]) : NaN;
|
1237
|
-
if (_webkit) {
|
1238
|
-
// We do not add the regexp to the above test, because it will always
|
1239
|
-
// match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
|
1240
|
-
// the userAgent string.
|
1241
|
-
agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
|
1242
|
-
_chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
|
1243
|
-
} else {
|
1244
|
-
_chrome = NaN;
|
1245
|
-
}
|
1246
|
-
} else {
|
1247
|
-
_ie = _firefox = _opera = _chrome = _webkit = NaN;
|
1248
|
-
}
|
1249
|
-
|
1250
|
-
if (os) {
|
1251
|
-
if (os[1]) {
|
1252
|
-
// Detect OS X version. If no version number matches, set _osx to true.
|
1253
|
-
// Version examples: 10, 10_6_1, 10.7
|
1254
|
-
// Parses version number as a float, taking only first two sets of
|
1255
|
-
// digits. If only one set of digits is found, returns just the major
|
1256
|
-
// version number.
|
1257
|
-
var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
|
1258
|
-
|
1259
|
-
_osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
|
1260
|
-
} else {
|
1261
|
-
_osx = false;
|
1262
|
-
}
|
1263
|
-
_windows = !!os[2];
|
1264
|
-
_linux = !!os[3];
|
1265
|
-
} else {
|
1266
|
-
_osx = _windows = _linux = false;
|
1267
|
-
}
|
1268
|
-
}
|
1269
|
-
|
1270
|
-
var UserAgent_DEPRECATED = {
|
1271
|
-
|
1272
|
-
/**
|
1273
|
-
* Check if the UA is Internet Explorer.
|
1274
|
-
*
|
1275
|
-
*
|
1276
|
-
* @return float|NaN Version number (if match) or NaN.
|
1277
|
-
*/
|
1278
|
-
ie: function() {
|
1279
|
-
return _populate() || _ie;
|
1280
|
-
},
|
1261
|
+
};
|
1281
1262
|
|
1282
|
-
|
1283
|
-
* Check if we're in Internet Explorer compatibility mode.
|
1284
|
-
*
|
1285
|
-
* @return bool true if in compatibility mode, false if
|
1286
|
-
* not compatibility mode or not ie
|
1287
|
-
*/
|
1288
|
-
ieCompatibilityMode: function() {
|
1289
|
-
return _populate() || (_ie_real_version > _ie);
|
1290
|
-
},
|
1263
|
+
module.exports = normalizeWheel;
|
1291
1264
|
|
1292
1265
|
|
1293
|
-
|
1294
|
-
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
1295
|
-
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
1296
|
-
* this when we don't need it -- tracked by #601957.
|
1297
|
-
*/
|
1298
|
-
ie64: function() {
|
1299
|
-
return UserAgent_DEPRECATED.ie() && _win64;
|
1300
|
-
},
|
1266
|
+
/***/ }),
|
1301
1267
|
|
1302
|
-
|
1303
|
-
|
1304
|
-
*
|
1305
|
-
*
|
1306
|
-
* @return float|NaN Version number (if match) or NaN.
|
1307
|
-
*/
|
1308
|
-
firefox: function() {
|
1309
|
-
return _populate() || _firefox;
|
1310
|
-
},
|
1268
|
+
/***/ 563:
|
1269
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1311
1270
|
|
1271
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1272
|
+
var y = x => () => x
|
1273
|
+
module.exports = x({ ["$bkPopover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
1312
1274
|
|
1313
|
-
|
1314
|
-
* Check if the UA is Opera.
|
1315
|
-
*
|
1316
|
-
*
|
1317
|
-
* @return float|NaN Version number (if match) or NaN.
|
1318
|
-
*/
|
1319
|
-
opera: function() {
|
1320
|
-
return _populate() || _opera;
|
1321
|
-
},
|
1275
|
+
/***/ }),
|
1322
1276
|
|
1277
|
+
/***/ 9253:
|
1278
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1323
1279
|
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
*
|
1328
|
-
* @return float|NaN Version number (if match) or NaN.
|
1329
|
-
*/
|
1330
|
-
webkit: function() {
|
1331
|
-
return _populate() || _webkit;
|
1332
|
-
},
|
1280
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1281
|
+
var y = x => () => x
|
1282
|
+
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 });
|
1333
1283
|
|
1334
|
-
|
1335
|
-
* For Push
|
1336
|
-
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
1337
|
-
*/
|
1338
|
-
safari: function() {
|
1339
|
-
return UserAgent_DEPRECATED.webkit();
|
1340
|
-
},
|
1284
|
+
/***/ }),
|
1341
1285
|
|
1342
|
-
|
1343
|
-
|
1344
|
-
*
|
1345
|
-
*
|
1346
|
-
* @return float|NaN Version number (if match) or NaN.
|
1347
|
-
*/
|
1348
|
-
chrome : function() {
|
1349
|
-
return _populate() || _chrome;
|
1350
|
-
},
|
1286
|
+
/***/ 6609:
|
1287
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
1351
1288
|
|
1289
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1290
|
+
var y = x => () => x
|
1291
|
+
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 });
|
1352
1292
|
|
1353
|
-
|
1354
|
-
* Check if the user is running Windows.
|
1355
|
-
*
|
1356
|
-
* @return bool `true' if the user's OS is Windows.
|
1357
|
-
*/
|
1358
|
-
windows: function() {
|
1359
|
-
return _populate() || _windows;
|
1360
|
-
},
|
1293
|
+
/***/ }),
|
1361
1294
|
|
1295
|
+
/***/ 926:
|
1296
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1362
1297
|
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
},
|
1298
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1299
|
+
/* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
|
1300
|
+
/* harmony export */ });
|
1301
|
+
function _arrayLikeToArray(arr, len) {
|
1302
|
+
if (len == null || len > arr.length) len = arr.length;
|
1303
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1304
|
+
return arr2;
|
1305
|
+
}
|
1372
1306
|
|
1373
|
-
|
1374
|
-
* Check if the user is running Linux.
|
1375
|
-
*
|
1376
|
-
* @return bool `true' if the user's OS is some flavor of Linux.
|
1377
|
-
*/
|
1378
|
-
linux: function() {
|
1379
|
-
return _populate() || _linux;
|
1380
|
-
},
|
1307
|
+
/***/ }),
|
1381
1308
|
|
1382
|
-
|
1383
|
-
|
1384
|
-
*
|
1385
|
-
* @return bool `true' if the user is running some flavor of the
|
1386
|
-
* iPhone OS.
|
1387
|
-
*/
|
1388
|
-
iphone: function() {
|
1389
|
-
return _populate() || _iphone;
|
1390
|
-
},
|
1309
|
+
/***/ 74:
|
1310
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1391
1311
|
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1312
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1313
|
+
/* harmony export */ "default": () => (/* binding */ _arrayWithoutHoles)
|
1314
|
+
/* harmony export */ });
|
1315
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
1395
1316
|
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
},
|
1317
|
+
function _arrayWithoutHoles(arr) {
|
1318
|
+
if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
|
1319
|
+
}
|
1400
1320
|
|
1401
|
-
|
1402
|
-
return _populate() || _android;
|
1403
|
-
},
|
1321
|
+
/***/ }),
|
1404
1322
|
|
1405
|
-
|
1406
|
-
|
1407
|
-
}
|
1408
|
-
};
|
1323
|
+
/***/ 6666:
|
1324
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1409
1325
|
|
1410
|
-
|
1326
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1327
|
+
/* harmony export */ "default": () => (/* binding */ _defineProperty)
|
1328
|
+
/* harmony export */ });
|
1329
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3795);
|
1411
1330
|
|
1331
|
+
function _defineProperty(obj, key, value) {
|
1332
|
+
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
|
1333
|
+
if (key in obj) {
|
1334
|
+
Object.defineProperty(obj, key, {
|
1335
|
+
value: value,
|
1336
|
+
enumerable: true,
|
1337
|
+
configurable: true,
|
1338
|
+
writable: true
|
1339
|
+
});
|
1340
|
+
} else {
|
1341
|
+
obj[key] = value;
|
1342
|
+
}
|
1343
|
+
return obj;
|
1344
|
+
}
|
1412
1345
|
|
1413
1346
|
/***/ }),
|
1414
1347
|
|
1415
|
-
/***/
|
1348
|
+
/***/ 1079:
|
1416
1349
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1417
1350
|
|
1418
1351
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1419
|
-
/* harmony export */ "default": () => (/* binding */
|
1352
|
+
/* harmony export */ "default": () => (/* binding */ _iterableToArray)
|
1420
1353
|
/* harmony export */ });
|
1421
|
-
function
|
1422
|
-
"
|
1423
|
-
|
1424
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
1425
|
-
return typeof o;
|
1426
|
-
} : function (o) {
|
1427
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
1428
|
-
}, _typeof(o);
|
1354
|
+
function _iterableToArray(iter) {
|
1355
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1429
1356
|
}
|
1430
1357
|
|
1431
1358
|
/***/ }),
|
1432
1359
|
|
1433
|
-
/***/
|
1360
|
+
/***/ 6098:
|
1434
1361
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1435
1362
|
|
1436
1363
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1437
|
-
/* harmony export */ "default": () => (/* binding */
|
1364
|
+
/* harmony export */ "default": () => (/* binding */ _nonIterableSpread)
|
1438
1365
|
/* harmony export */ });
|
1439
|
-
|
1440
|
-
|
1441
|
-
function _unsupportedIterableToArray(o, minLen) {
|
1442
|
-
if (!o) return;
|
1443
|
-
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
1444
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1445
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1446
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
1447
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
1366
|
+
function _nonIterableSpread() {
|
1367
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1448
1368
|
}
|
1449
1369
|
|
1450
1370
|
/***/ }),
|
1451
1371
|
|
1452
|
-
/***/
|
1453
|
-
/***/ ((
|
1372
|
+
/***/ 7930:
|
1373
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1374
|
+
|
1375
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1376
|
+
/* harmony export */ "default": () => (/* binding */ _toConsumableArray)
|
1377
|
+
/* harmony export */ });
|
1378
|
+
/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74);
|
1379
|
+
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1079);
|
1380
|
+
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9147);
|
1381
|
+
/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6098);
|
1454
1382
|
|
1455
|
-
module.exports = __webpack_require__(5022);
|
1456
1383
|
|
1457
1384
|
|
1385
|
+
|
1386
|
+
function _toConsumableArray(arr) {
|
1387
|
+
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"])();
|
1388
|
+
}
|
1389
|
+
|
1458
1390
|
/***/ }),
|
1459
1391
|
|
1460
|
-
/***/
|
1392
|
+
/***/ 9745:
|
1461
1393
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1462
1394
|
|
1463
1395
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1464
1396
|
/* harmony export */ "default": () => (/* binding */ toPrimitive)
|
1465
1397
|
/* harmony export */ });
|
1466
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
1398
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6522);
|
1467
1399
|
|
1468
1400
|
function toPrimitive(t, r) {
|
1469
1401
|
if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
|
@@ -1476,6 +1408,60 @@ function toPrimitive(t, r) {
|
|
1476
1408
|
return ("string" === r ? String : Number)(t);
|
1477
1409
|
}
|
1478
1410
|
|
1411
|
+
/***/ }),
|
1412
|
+
|
1413
|
+
/***/ 3795:
|
1414
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1415
|
+
|
1416
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1417
|
+
/* harmony export */ "default": () => (/* binding */ toPropertyKey)
|
1418
|
+
/* harmony export */ });
|
1419
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6522);
|
1420
|
+
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9745);
|
1421
|
+
|
1422
|
+
|
1423
|
+
function toPropertyKey(t) {
|
1424
|
+
var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
|
1425
|
+
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
|
1426
|
+
}
|
1427
|
+
|
1428
|
+
/***/ }),
|
1429
|
+
|
1430
|
+
/***/ 6522:
|
1431
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1432
|
+
|
1433
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1434
|
+
/* harmony export */ "default": () => (/* binding */ _typeof)
|
1435
|
+
/* harmony export */ });
|
1436
|
+
function _typeof(o) {
|
1437
|
+
"@babel/helpers - typeof";
|
1438
|
+
|
1439
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
1440
|
+
return typeof o;
|
1441
|
+
} : function (o) {
|
1442
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
1443
|
+
}, _typeof(o);
|
1444
|
+
}
|
1445
|
+
|
1446
|
+
/***/ }),
|
1447
|
+
|
1448
|
+
/***/ 9147:
|
1449
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1450
|
+
|
1451
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1452
|
+
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
1453
|
+
/* harmony export */ });
|
1454
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
1455
|
+
|
1456
|
+
function _unsupportedIterableToArray(o, minLen) {
|
1457
|
+
if (!o) return;
|
1458
|
+
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
1459
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1460
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1461
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
1462
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
1463
|
+
}
|
1464
|
+
|
1479
1465
|
/***/ })
|
1480
1466
|
|
1481
1467
|
/******/ });
|
@@ -1536,6 +1522,8 @@ function toPrimitive(t, r) {
|
|
1536
1522
|
/******/
|
1537
1523
|
/************************************************************************/
|
1538
1524
|
var __webpack_exports__ = {};
|
1525
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
1526
|
+
(() => {
|
1539
1527
|
|
1540
1528
|
// EXPORTS
|
1541
1529
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -1545,74 +1533,58 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1545
1533
|
});
|
1546
1534
|
|
1547
1535
|
// EXTERNAL MODULE: external "../shared"
|
1548
|
-
var shared_ = __webpack_require__(
|
1536
|
+
var shared_ = __webpack_require__(9253);
|
1549
1537
|
// EXTERNAL MODULE: external "vue"
|
1550
|
-
var external_vue_ = __webpack_require__(
|
1551
|
-
;// external "vue-types"
|
1552
|
-
var x = (y)
|
1553
|
-
|
1554
|
-
}
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
1560
|
-
}
|
1561
|
-
var config_provider_y = (x) => (() => (x))
|
1562
|
-
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) });
|
1538
|
+
var external_vue_ = __webpack_require__(6609);
|
1539
|
+
;// CONCATENATED MODULE: external "vue-types"
|
1540
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1541
|
+
var y = x => () => x
|
1542
|
+
const external_vue_types_namespaceObject = x({ ["array"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.array, ["object"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.object });
|
1543
|
+
;// CONCATENATED MODULE: external "../config-provider"
|
1544
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1545
|
+
var config_provider_y = x => () => x
|
1546
|
+
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 });
|
1563
1547
|
// EXTERNAL MODULE: ../../packages/directives/src/index.ts + 7 modules
|
1564
|
-
var src = __webpack_require__(
|
1565
|
-
;// external "../icon"
|
1566
|
-
var icon_x = (y)
|
1567
|
-
|
1568
|
-
}
|
1569
|
-
var icon_y = (x) => (() => (x))
|
1570
|
-
const icon_namespaceObject = icon_x({ ["AngleRight"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleRight), ["AngleUp"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp), ["Close"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close), ["Error"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error), ["Spinner"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Spinner) });
|
1548
|
+
var src = __webpack_require__(668);
|
1549
|
+
;// CONCATENATED MODULE: external "../icon"
|
1550
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1551
|
+
var icon_y = x => () => x
|
1552
|
+
const icon_namespaceObject = icon_x({ ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleRight, ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Spinner });
|
1571
1553
|
// EXTERNAL MODULE: external "../popover"
|
1572
|
-
var popover_ = __webpack_require__(
|
1573
|
-
;// external "../popover/popover.less"
|
1574
|
-
var popover_less_x = (y)
|
1575
|
-
|
1576
|
-
}
|
1577
|
-
var popover_less_y = (x) => (() => (x))
|
1554
|
+
var popover_ = __webpack_require__(563);
|
1555
|
+
;// CONCATENATED MODULE: external "../popover/popover.less"
|
1556
|
+
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1557
|
+
var popover_less_y = x => () => x
|
1578
1558
|
const popover_less_namespaceObject = popover_less_x({ });
|
1579
|
-
;// external "../select"
|
1580
|
-
var select_x = (y)
|
1581
|
-
|
1582
|
-
}
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
}
|
1589
|
-
var
|
1590
|
-
const tag_namespaceObject = tag_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__["default"]) });
|
1591
|
-
;// external "../tag/tag.less"
|
1592
|
-
var tag_less_x = (y) => {
|
1593
|
-
var x = {}; __webpack_require__.d(x, y); return x
|
1594
|
-
}
|
1595
|
-
var tag_less_y = (x) => (() => (x))
|
1559
|
+
;// CONCATENATED MODULE: external "../select"
|
1560
|
+
var select_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1561
|
+
var select_y = x => () => x
|
1562
|
+
const select_namespaceObject = select_x({ ["useHover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__.useHover });
|
1563
|
+
;// CONCATENATED MODULE: external "../tag"
|
1564
|
+
var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1565
|
+
var tag_y = x => () => x
|
1566
|
+
const tag_namespaceObject = tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__["default"] });
|
1567
|
+
;// CONCATENATED MODULE: external "../tag/tag.less"
|
1568
|
+
var tag_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1569
|
+
var tag_less_y = x => () => x
|
1596
1570
|
const tag_less_namespaceObject = tag_less_x({ });
|
1597
|
-
;// external "../tag-input"
|
1598
|
-
var tag_input_x = (y)
|
1599
|
-
|
1600
|
-
}
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
}
|
1607
|
-
var checkbox_y =
|
1608
|
-
const checkbox_namespaceObject = checkbox_x({ ["default"]: () =>
|
1609
|
-
;// external "../checkbox/checkbox.less"
|
1610
|
-
var checkbox_less_x = (y)
|
1611
|
-
|
1612
|
-
}
|
1613
|
-
var checkbox_less_y = (x) => (() => (x))
|
1571
|
+
;// CONCATENATED MODULE: external "../tag-input"
|
1572
|
+
var tag_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1573
|
+
var tag_input_y = x => () => x
|
1574
|
+
const tag_input_namespaceObject = tag_input_x({ ["useTagsOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__.useTagsOverflow });
|
1575
|
+
;// CONCATENATED MODULE: external "lodash/merge"
|
1576
|
+
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1577
|
+
var merge_y = x => () => x
|
1578
|
+
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
1579
|
+
;// CONCATENATED MODULE: external "../checkbox"
|
1580
|
+
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1581
|
+
var checkbox_y = x => () => x
|
1582
|
+
const checkbox_namespaceObject = checkbox_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"] });
|
1583
|
+
;// CONCATENATED MODULE: external "../checkbox/checkbox.less"
|
1584
|
+
var checkbox_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1585
|
+
var checkbox_less_y = x => () => x
|
1614
1586
|
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
1615
|
-
;// ../../packages/cascader/src/cascader-panel.tsx
|
1587
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/cascader-panel.tsx
|
1616
1588
|
|
1617
1589
|
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; } } }; }
|
1618
1590
|
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); }
|
@@ -1621,7 +1593,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1621
1593
|
* Tencent is pleased to support the open source community by making
|
1622
1594
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1623
1595
|
*
|
1624
|
-
* Copyright (C)
|
1596
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
1625
1597
|
*
|
1626
1598
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1627
1599
|
*
|
@@ -1671,7 +1643,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1671
1643
|
var t = (0,config_provider_namespaceObject.useLocale)('cascader');
|
1672
1644
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1673
1645
|
resolveClassName = _usePrefix.resolveClassName;
|
1674
|
-
var
|
1646
|
+
var _toRefs = (0,external_vue_.toRefs)(props),
|
1647
|
+
store = _toRefs.store;
|
1675
1648
|
var menus = (0,external_vue_.reactive)({
|
1676
1649
|
list: [props.store.getNodes()]
|
1677
1650
|
});
|
@@ -1695,7 +1668,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1695
1668
|
* @param value - 选中的值数组
|
1696
1669
|
*/
|
1697
1670
|
var updateCheckValue = function updateCheckValue(value) {
|
1698
|
-
if (value.length === 0) {
|
1671
|
+
if (!value || value.length === 0) {
|
1699
1672
|
menus.list = menus.list.slice(0, 1);
|
1700
1673
|
activePath.value = [];
|
1701
1674
|
}
|
@@ -1707,31 +1680,63 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1707
1680
|
* @param value - 节点ID数组
|
1708
1681
|
*/
|
1709
1682
|
var expandByNodeList = function expandByNodeList(value) {
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1683
|
+
// 判断是否为初始加载
|
1684
|
+
var isInitialLoad = checkValue.value.length === 0;
|
1685
|
+
// 如果是初始加载或单选情况,按原来的逻辑处理
|
1686
|
+
if (isInitialLoad || !store.value.config.multiple) {
|
1687
|
+
var targetList = [];
|
1688
|
+
// 处理多选情况
|
1689
|
+
if (store.value.config.multiple) {
|
1690
|
+
var _iterator = _createForOfIteratorHelper(value),
|
1691
|
+
_step;
|
1692
|
+
try {
|
1693
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
1694
|
+
var subArray = _step.value;
|
1695
|
+
if (subArray.length > targetList.length) {
|
1696
|
+
targetList = subArray;
|
1697
|
+
}
|
1720
1698
|
}
|
1699
|
+
} catch (err) {
|
1700
|
+
_iterator.e(err);
|
1701
|
+
} finally {
|
1702
|
+
_iterator.f();
|
1721
1703
|
}
|
1722
|
-
}
|
1723
|
-
|
1724
|
-
|
1725
|
-
_iterator.f();
|
1704
|
+
} else {
|
1705
|
+
// 单选情况
|
1706
|
+
targetList = value;
|
1726
1707
|
}
|
1727
|
-
|
1728
|
-
targetList
|
1708
|
+
// 执行展开操作
|
1709
|
+
targetList.forEach(function (id) {
|
1710
|
+
var node = store.value.getNodeById(id);
|
1711
|
+
if (node) {
|
1712
|
+
// 只展开,不需要重复触发
|
1713
|
+
var expandNode = function expandNode(node) {
|
1714
|
+
var _node$children;
|
1715
|
+
if (!node || node !== null && node !== void 0 && node.isDisabled) return;
|
1716
|
+
var level = node.level;
|
1717
|
+
// 确保面板只更新到当前节点层级
|
1718
|
+
menus.list = menus.list.slice(0, level);
|
1719
|
+
activePath.value = activePath.value.slice(0, level - 1);
|
1720
|
+
// 如果节点有子节点,直接添加到面板
|
1721
|
+
if ((_node$children = node.children) !== null && _node$children !== void 0 && _node$children.length) {
|
1722
|
+
if (menus.list.length === level) {
|
1723
|
+
menus.list.push(node.children);
|
1724
|
+
activePath.value.push(node);
|
1725
|
+
}
|
1726
|
+
}
|
1727
|
+
};
|
1728
|
+
// 展开节点的所有父节点
|
1729
|
+
var expandParents = function expandParents(node) {
|
1730
|
+
if (node.parent) {
|
1731
|
+
expandParents(node.parent);
|
1732
|
+
}
|
1733
|
+
expandNode(node);
|
1734
|
+
};
|
1735
|
+
expandParents(node);
|
1736
|
+
}
|
1737
|
+
});
|
1729
1738
|
}
|
1730
|
-
//
|
1731
|
-
targetList.forEach(function (id) {
|
1732
|
-
var node = store.getNodeById(id);
|
1733
|
-
nodeExpandHandler(node);
|
1734
|
-
});
|
1739
|
+
// 用户交互过程中的选择由nodeExpandHandler单独处理,这里不干预
|
1735
1740
|
};
|
1736
1741
|
/** 节点选中回调
|
1737
1742
|
* 根据单选、多选配置checkValue
|
@@ -1743,7 +1748,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1743
1748
|
}
|
1744
1749
|
if (node.config.multiple) {
|
1745
1750
|
// 如果checkAnyLevel,返回所有check的节点; 否则只check 叶子节点
|
1746
|
-
var targets = store.config.checkAnyLevel ? store.getCheckedNodes() : store.getCheckedLeafNodes();
|
1751
|
+
var targets = store.value.config.checkAnyLevel ? store.value.getCheckedNodes() : store.value.getCheckedLeafNodes();
|
1747
1752
|
checkValue.value = targets.map(function (node) {
|
1748
1753
|
return node.path;
|
1749
1754
|
}); // 如果任意级别可选,当前节点即为所选内容
|
@@ -1754,27 +1759,27 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1754
1759
|
};
|
1755
1760
|
/** node点击展开回调 */
|
1756
1761
|
var nodeExpandHandler = function nodeExpandHandler(node) {
|
1757
|
-
var _node$
|
1762
|
+
var _node$children2;
|
1758
1763
|
if (!node || node !== null && node !== void 0 && node.isDisabled) return;
|
1759
1764
|
menus.list = menus.list.slice(0, node.level);
|
1760
1765
|
activePath.value = activePath.value.slice(0, node.level - 1);
|
1761
1766
|
/** 如果所点击的node具有children元素,则直接展开
|
1762
1767
|
* 否则判断是否开启了远程加载,进行远程加载列表
|
1763
1768
|
*/
|
1764
|
-
if ((_node$
|
1769
|
+
if ((_node$children2 = node.children) !== null && _node$children2 !== void 0 && _node$children2.length) {
|
1765
1770
|
menus.list.push(node.children);
|
1766
1771
|
activePath.value.push(node);
|
1767
1772
|
return;
|
1768
1773
|
}
|
1769
|
-
if (store.config.isRemote && !node.isLeaf) {
|
1774
|
+
if (store.value.config.isRemote && !node.isLeaf) {
|
1770
1775
|
node.loading = true;
|
1771
1776
|
var updateNodes = function updateNodes(nodeData) {
|
1772
|
-
store.appendNodes(nodeData, node || null);
|
1777
|
+
store.value.appendNodes(nodeData, node || null);
|
1773
1778
|
menus.list.push(node.children);
|
1774
1779
|
activePath.value.push(node);
|
1775
1780
|
node.loading = false;
|
1776
1781
|
};
|
1777
|
-
store.config.remoteMethod(node, updateNodes);
|
1782
|
+
store.value.config.remoteMethod(node, updateNodes);
|
1778
1783
|
}
|
1779
1784
|
};
|
1780
1785
|
/**
|
@@ -1835,6 +1840,17 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1835
1840
|
}
|
1836
1841
|
});
|
1837
1842
|
};
|
1843
|
+
// 监听store.config.multiple属性的变化,当切换单选/多选模式时需要重新初始化面板
|
1844
|
+
(0,external_vue_.watch)(function () {
|
1845
|
+
return store.value.config.multiple;
|
1846
|
+
}, function (newVal, oldVal) {
|
1847
|
+
if (newVal !== oldVal) {
|
1848
|
+
// 当multiple属性变化时,重置面板状态
|
1849
|
+
menus.list = [store.value.getNodes()];
|
1850
|
+
activePath.value = [];
|
1851
|
+
checkValue.value = [];
|
1852
|
+
}
|
1853
|
+
});
|
1838
1854
|
var noDataText = t.value.noData;
|
1839
1855
|
var emptyText = t.value.emptyText;
|
1840
1856
|
/**
|
@@ -1941,15 +1957,20 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1941
1957
|
};
|
1942
1958
|
return (0,external_vue_.createVNode)("div", {
|
1943
1959
|
"class": this.resolveClassName('cascader-panel-wrapper')
|
1944
|
-
}, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu) {
|
1960
|
+
}, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu, index) {
|
1961
|
+
var _this$$slots$panel, _this$$slots;
|
1945
1962
|
return (0,external_vue_.createVNode)("ul", {
|
1946
1963
|
"style": {
|
1947
1964
|
height: _this.panelHeight,
|
1948
1965
|
width: _this.panelWidth
|
1949
1966
|
},
|
1950
1967
|
"class": [_this.resolveClassName('cascader-panel'), _this.resolveClassName('scroll-y')]
|
1951
|
-
}, [
|
1952
|
-
|
1968
|
+
}, [(_this$$slots$panel = (_this$$slots = _this.$slots).panel) === null || _this$$slots$panel === void 0 ? void 0 : _this$$slots$panel.call(_this$$slots, {
|
1969
|
+
nodes: menu,
|
1970
|
+
level: index,
|
1971
|
+
activePath: _this.activePath
|
1972
|
+
}), menu.length ? menu.map(function (node) {
|
1973
|
+
var _this$$slots$default, _this$$slots2;
|
1953
1974
|
return (0,external_vue_.createVNode)("li", (0,external_vue_.mergeProps)({
|
1954
1975
|
"class": [_this.resolveClassName('cascader-node'), {
|
1955
1976
|
'is-selected': _this.isNodeInPath(node)
|
@@ -1969,7 +1990,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1969
1990
|
"onChange": function onChange(val) {
|
1970
1991
|
return _this.checkNode(node, !!val);
|
1971
1992
|
}
|
1972
|
-
}, null), (_this$$slots$default = (_this$$
|
1993
|
+
}, null), (_this$$slots$default = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots2, {
|
1973
1994
|
node: node,
|
1974
1995
|
data: node.data
|
1975
1996
|
}), !node.isLeaf ? _this.iconRender(node) : '']);
|
@@ -1979,15 +2000,15 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1979
2000
|
})]);
|
1980
2001
|
}
|
1981
2002
|
}));
|
1982
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
2003
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
1983
2004
|
function _classCallCheck(instance, Constructor) {
|
1984
2005
|
if (!(instance instanceof Constructor)) {
|
1985
2006
|
throw new TypeError("Cannot call a class as a function");
|
1986
2007
|
}
|
1987
2008
|
}
|
1988
2009
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1989
|
-
var toPropertyKey = __webpack_require__(
|
1990
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
2010
|
+
var toPropertyKey = __webpack_require__(3795);
|
2011
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
1991
2012
|
|
1992
2013
|
function _defineProperties(target, props) {
|
1993
2014
|
for (var i = 0; i < props.length; i++) {
|
@@ -2006,14 +2027,14 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
2006
2027
|
});
|
2007
2028
|
return Constructor;
|
2008
2029
|
}
|
2009
|
-
;// ../../packages/cascader/src/node.ts
|
2030
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/node.ts
|
2010
2031
|
|
2011
2032
|
|
2012
2033
|
/*
|
2013
2034
|
* Tencent is pleased to support the open source community by making
|
2014
2035
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2015
2036
|
*
|
2016
|
-
* Copyright (C)
|
2037
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
2017
2038
|
*
|
2018
2039
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2019
2040
|
*
|
@@ -2203,14 +2224,14 @@ var Node = /*#__PURE__*/function () {
|
|
2203
2224
|
return Node;
|
2204
2225
|
}();
|
2205
2226
|
/* harmony default export */ const src_node = (Node);
|
2206
|
-
;// ../../packages/cascader/src/store.ts
|
2227
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/store.ts
|
2207
2228
|
|
2208
2229
|
|
2209
2230
|
/*
|
2210
2231
|
* Tencent is pleased to support the open source community by making
|
2211
2232
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2212
2233
|
*
|
2213
|
-
* Copyright (C)
|
2234
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
2214
2235
|
*
|
2215
2236
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2216
2237
|
*
|
@@ -2357,13 +2378,13 @@ var Store = /*#__PURE__*/function () {
|
|
2357
2378
|
return Store;
|
2358
2379
|
}();
|
2359
2380
|
/* harmony default export */ const src_store = (Store);
|
2360
|
-
;// ../../packages/cascader/src/cascader.tsx
|
2381
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/cascader.tsx
|
2361
2382
|
|
2362
2383
|
/*
|
2363
2384
|
* Tencent is pleased to support the open source community by making
|
2364
2385
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2365
2386
|
*
|
2366
|
-
* Copyright (C)
|
2387
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
2367
2388
|
*
|
2368
2389
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2369
2390
|
*
|
@@ -2398,6 +2419,7 @@ var Store = /*#__PURE__*/function () {
|
|
2398
2419
|
|
2399
2420
|
|
2400
2421
|
|
2422
|
+
|
2401
2423
|
/**
|
2402
2424
|
* Cascader 组件
|
2403
2425
|
* 用于展示级联选择器,支持多选、单选、搜索、远程加载等功能。
|
@@ -2426,12 +2448,14 @@ var Store = /*#__PURE__*/function () {
|
|
2426
2448
|
childrenKey: shared_.PropTypes.string.def('children'),
|
2427
2449
|
separator: shared_.PropTypes.string.def('/'),
|
2428
2450
|
limitOneLine: shared_.PropTypes.bool.def(false),
|
2451
|
+
popoverOptions: Object,
|
2429
2452
|
extCls: shared_.PropTypes.string.def(''),
|
2430
2453
|
filterMethod: shared_.PropTypes.func,
|
2431
2454
|
scrollHeight: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def(216),
|
2432
2455
|
scrollWidth: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def('auto'),
|
2433
2456
|
customTextFillback: shared_.PropTypes.func,
|
2434
2457
|
customTagsFillback: shared_.PropTypes.func,
|
2458
|
+
changeEmitsNodes: shared_.PropTypes.bool.def(false),
|
2435
2459
|
collapseTags: {
|
2436
2460
|
type: Boolean,
|
2437
2461
|
"default": true
|
@@ -2447,14 +2471,15 @@ var Store = /*#__PURE__*/function () {
|
|
2447
2471
|
var emit = _ref.emit,
|
2448
2472
|
slots = _ref.slots;
|
2449
2473
|
var t = (0,config_provider_namespaceObject.useLocale)('cascader');
|
2450
|
-
var separator = props.separator
|
2451
|
-
multiple = props.multiple;
|
2474
|
+
var separator = props.separator;
|
2452
2475
|
// 用useHover自定义hook来处理鼠标hover状态
|
2453
2476
|
var _useHover = (0,select_namespaceObject.useHover)(),
|
2454
2477
|
isHover = _useHover.isHover,
|
2455
2478
|
setHover = _useHover.setHover,
|
2456
2479
|
cancelHover = _useHover.cancelHover;
|
2457
2480
|
var store = (0,external_vue_.ref)(new src_store(props));
|
2481
|
+
// 用于处理在 removeTag 时, popOver panel 触发 clickOutside 消失的问题
|
2482
|
+
var isAlways = (0,external_vue_.ref)(false);
|
2458
2483
|
// 定义selectedText变量用于记录当前选择的值的文本
|
2459
2484
|
var selectedText = (0,external_vue_.ref)('');
|
2460
2485
|
// 定义selectedTags变量用于记录多选模式下已选的tag
|
@@ -2491,7 +2516,8 @@ var Store = /*#__PURE__*/function () {
|
|
2491
2516
|
var inputRef = (0,external_vue_.ref)(null);
|
2492
2517
|
// 用computed定义placeholder变量,用于处理props中的placeholder属性
|
2493
2518
|
var placeholder = (0,external_vue_.computed)(function () {
|
2494
|
-
|
2519
|
+
var placeholder = props.placeholder ? props.placeholder : t.value.pleaseSelect;
|
2520
|
+
return modelValue.value.length === 0 ? placeholder : '';
|
2495
2521
|
});
|
2496
2522
|
var displayText = (0,external_vue_.computed)(function () {
|
2497
2523
|
if (props.customTextFillback) {
|
@@ -2519,7 +2545,7 @@ var Store = /*#__PURE__*/function () {
|
|
2519
2545
|
// 更新选中
|
2520
2546
|
var updateValue = function updateValue(val) {
|
2521
2547
|
// 更新多选情况下的选中标签
|
2522
|
-
if (multiple) {
|
2548
|
+
if (props.multiple) {
|
2523
2549
|
store.value.setNodesCheck(val); // 同步节点选中的状态
|
2524
2550
|
selectedTags.value = store.value.getCheckedNodes().filter(function (node) {
|
2525
2551
|
return store.value.config.checkAnyLevel || node.isLeaf;
|
@@ -2556,18 +2582,25 @@ var Store = /*#__PURE__*/function () {
|
|
2556
2582
|
};
|
2557
2583
|
// 移除tag
|
2558
2584
|
var removeTag = function removeTag(value, index, e) {
|
2585
|
+
isAlways.value = true;
|
2559
2586
|
e.stopPropagation();
|
2560
2587
|
var current = JSON.parse(JSON.stringify(value));
|
2561
2588
|
var tag = current.splice(index, 1)[0];
|
2562
2589
|
isEdit.value = true; // 删除时也在编辑态,触发overflowTagIndex的计算
|
2563
2590
|
store.value.removeTag(tag);
|
2564
2591
|
updateValue(current);
|
2565
|
-
emit('update:modelValue', store.value.getCheckedNodes()
|
2592
|
+
emit('update:modelValue', store.value.getCheckedNodes()
|
2593
|
+
// a. 开启 checkAnyLevel 后,不过滤任何节点
|
2594
|
+
// b. 关闭 checkAnyLevel 后,只返回叶子节点,避免父节点在子节点全部选中后,同时出现在 modelValue 中
|
2595
|
+
.filter(function (node) {
|
2596
|
+
return store.value.config.checkAnyLevel || node.isLeaf;
|
2597
|
+
}).map(function (node) {
|
2566
2598
|
return node.path;
|
2567
2599
|
}));
|
2568
2600
|
// 计算过后,关闭编辑状态
|
2569
2601
|
setTimeout(function () {
|
2570
2602
|
isEdit.value = isFocus.value;
|
2603
|
+
isAlways.value = false;
|
2571
2604
|
});
|
2572
2605
|
};
|
2573
2606
|
// modelValue的监听函数
|
@@ -2576,7 +2609,8 @@ var Store = /*#__PURE__*/function () {
|
|
2576
2609
|
updateValue(value);
|
2577
2610
|
// 派发相关事件
|
2578
2611
|
emit('update:modelValue', value);
|
2579
|
-
|
2612
|
+
var emitValue = props.changeEmitsNodes ? store.value.getNodeByValue(value) : value;
|
2613
|
+
oldValue !== undefined && emit('change', emitValue); // oldValue = undefined代表初始化,init不派发change事件
|
2580
2614
|
// 如果有过滤搜索,选择后,自动focus到input
|
2581
2615
|
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
2582
2616
|
// 选择后过滤条件清除,面板初始化渲染
|
@@ -2595,10 +2629,9 @@ var Store = /*#__PURE__*/function () {
|
|
2595
2629
|
// popover激活后,focus相应事件
|
2596
2630
|
isFocus.value = val.isShow;
|
2597
2631
|
(0,external_vue_.nextTick)(function () {
|
2598
|
-
var _inputRef$value2;
|
2599
|
-
val && ((_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.focus());
|
2600
2632
|
if (val.isShow) {
|
2601
|
-
var _cascaderPanel$value;
|
2633
|
+
var _inputRef$value2, _cascaderPanel$value;
|
2634
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.focus();
|
2602
2635
|
(_cascaderPanel$value = cascaderPanel.value) === null || _cascaderPanel$value === void 0 || _cascaderPanel$value.scrollToSelected(); // 滚动到选中的节点
|
2603
2636
|
}
|
2604
2637
|
});
|
@@ -2654,6 +2687,22 @@ var Store = /*#__PURE__*/function () {
|
|
2654
2687
|
deep: true,
|
2655
2688
|
immediate: true
|
2656
2689
|
});
|
2690
|
+
// 监听multiple属性的变化,当切换单选/多选模式时需要重新初始化组件
|
2691
|
+
(0,external_vue_.watch)(function () {
|
2692
|
+
return props.multiple;
|
2693
|
+
}, function (newVal, oldVal) {
|
2694
|
+
if (newVal !== oldVal) {
|
2695
|
+
// 重新初始化store
|
2696
|
+
store.value = new src_store(props);
|
2697
|
+
// 重置selectedTags和selectedText状态
|
2698
|
+
selectedTags.value = [];
|
2699
|
+
selectedText.value = '';
|
2700
|
+
// 更新组件状态
|
2701
|
+
updateValue(props.modelValue);
|
2702
|
+
}
|
2703
|
+
}, {
|
2704
|
+
immediate: true
|
2705
|
+
});
|
2657
2706
|
// 定义overflowTagIndex变量,用于处理tag的折叠
|
2658
2707
|
var tagList = (0,external_vue_.computed)(function () {
|
2659
2708
|
return props.customTagsFillback ? props.customTagsFillback(props.modelValue, store.value.getFlattedNodes()) : selectedTags.value.map(function (item) {
|
@@ -2681,6 +2730,7 @@ var Store = /*#__PURE__*/function () {
|
|
2681
2730
|
overflowTagIndex: overflowTagIndex,
|
2682
2731
|
isCollapse: isCollapse,
|
2683
2732
|
isFocus: isFocus,
|
2733
|
+
isAlways: isAlways,
|
2684
2734
|
store: store,
|
2685
2735
|
updateValue: updateValue,
|
2686
2736
|
selectedText: selectedText,
|
@@ -2711,7 +2761,8 @@ var Store = /*#__PURE__*/function () {
|
|
2711
2761
|
var _this = this;
|
2712
2762
|
// 定义suffixIcon函数,用于根据不同情况渲染后缀图标
|
2713
2763
|
var suffixIcon = function suffixIcon() {
|
2714
|
-
|
2764
|
+
var _this$modelValue;
|
2765
|
+
if (_this.clearable && _this.isHover && !_this.disabled && ((_this$modelValue = _this.modelValue) === null || _this$modelValue === void 0 ? void 0 : _this$modelValue.length) > 0) {
|
2715
2766
|
// 当可清空、鼠标悬浮且未禁用时,渲染清空图标
|
2716
2767
|
return (0,external_vue_.createVNode)(icon_namespaceObject.Close, {
|
2717
2768
|
"class": _this.resolveClassName('icon-clear-icon'),
|
@@ -2774,22 +2825,27 @@ var Store = /*#__PURE__*/function () {
|
|
2774
2825
|
_this.multiple ? null : (0,external_vue_.createVNode)("span", null, [_this.displayText])
|
2775
2826
|
);
|
2776
2827
|
};
|
2828
|
+
/** popover 基础配置 */
|
2829
|
+
var basePopoverOptions = (0,merge_namespaceObject["default"])({
|
2830
|
+
always: this.isAlways,
|
2831
|
+
arrow: false,
|
2832
|
+
boundary: 'body',
|
2833
|
+
disabled: this.disabled,
|
2834
|
+
hideIgnoreReference: true,
|
2835
|
+
offset: 4,
|
2836
|
+
placement: 'bottom-start',
|
2837
|
+
referenceCls: this.resolveClassName('cascader-popover-reference'),
|
2838
|
+
theme: "light ".concat(this.resolveClassName('cascader-popover')),
|
2839
|
+
trigger: 'click'
|
2840
|
+
}, this.popoverOptions);
|
2777
2841
|
// 定义popoverRender函数,用于渲染弹出框
|
2778
2842
|
var popoverRender = function popoverRender() {
|
2779
|
-
return (0,external_vue_.createVNode)(popover_["default"], {
|
2843
|
+
return (0,external_vue_.createVNode)(popover_["default"], (0,external_vue_.mergeProps)({
|
2780
2844
|
"ref": "popover",
|
2781
2845
|
"class": _this.resolveClassName('cascader-popover-wrapper'),
|
2782
|
-
"arrow": false,
|
2783
|
-
"boundary": "body",
|
2784
|
-
"disabled": _this.disabled,
|
2785
|
-
"offset": 4,
|
2786
|
-
"placement": "bottom-start",
|
2787
|
-
"referenceCls": _this.resolveClassName('cascader-popover-reference'),
|
2788
|
-
"theme": "light ".concat(_this.resolveClassName('cascader-popover')),
|
2789
|
-
"trigger": "click",
|
2790
2846
|
"onAfterHidden": _this.popoverChangeEmitter,
|
2791
2847
|
"onAfterShow": _this.popoverChangeEmitter
|
2792
|
-
}, {
|
2848
|
+
}, basePopoverOptions), {
|
2793
2849
|
"default": function _default() {
|
2794
2850
|
return _this.$slots.trigger ? _this.$slots.trigger({
|
2795
2851
|
selected: _this.modelValue,
|
@@ -2810,6 +2866,7 @@ var Store = /*#__PURE__*/function () {
|
|
2810
2866
|
}, null) : textRender()]);
|
2811
2867
|
},
|
2812
2868
|
content: function content() {
|
2869
|
+
var _this$$slots$extensio, _this$$slots;
|
2813
2870
|
return (0,external_vue_.createVNode)("div", {
|
2814
2871
|
"class": _this.resolveClassName('cascader-popover')
|
2815
2872
|
}, [(0,external_vue_.createVNode)(cascader_panel, {
|
@@ -2830,8 +2887,11 @@ var Store = /*#__PURE__*/function () {
|
|
2830
2887
|
return _this.$slots["default"] ? _this.$slots["default"](scope) : (0,external_vue_.createVNode)("span", {
|
2831
2888
|
"class": _this.resolveClassName('cascader-node-name')
|
2832
2889
|
}, [scope.node.name]);
|
2890
|
+
},
|
2891
|
+
panel: function panel(scope) {
|
2892
|
+
return _this.$slots.panel ? _this.$slots.panel(scope) : null;
|
2833
2893
|
}
|
2834
|
-
})]);
|
2894
|
+
}), (_this$$slots$extensio = (_this$$slots = _this.$slots).extension) === null || _this$$slots$extensio === void 0 ? void 0 : _this$$slots$extensio.call(_this$$slots)]);
|
2835
2895
|
}
|
2836
2896
|
});
|
2837
2897
|
};
|
@@ -2840,7 +2900,7 @@ var Store = /*#__PURE__*/function () {
|
|
2840
2900
|
}, [this.$slots.trigger ? popoverRender() : (0,external_vue_.createVNode)("div", {
|
2841
2901
|
"ref": "bkCascaderRef",
|
2842
2902
|
"class": [this.resolveClassName('cascader'), this.extCls, {
|
2843
|
-
'is-unselected': this.modelValue.length === 0,
|
2903
|
+
'is-unselected': !this.modelValue || this.modelValue.length === 0,
|
2844
2904
|
'is-hover': this.isHover,
|
2845
2905
|
'is-filterable': this.filterable,
|
2846
2906
|
'is-focus': this.isFocus,
|
@@ -2854,12 +2914,12 @@ var Store = /*#__PURE__*/function () {
|
|
2854
2914
|
}, [suffixIcon(), popoverRender()])]);
|
2855
2915
|
}
|
2856
2916
|
}));
|
2857
|
-
;// ../../packages/cascader/src/index.ts
|
2917
|
+
;// CONCATENATED MODULE: ../../packages/cascader/src/index.ts
|
2858
2918
|
/*
|
2859
2919
|
* Tencent is pleased to support the open source community by making
|
2860
2920
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2861
2921
|
*
|
2862
|
-
* Copyright (C)
|
2922
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
2863
2923
|
*
|
2864
2924
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2865
2925
|
*
|
@@ -2888,6 +2948,8 @@ var BkCascader = (0,shared_.withInstallProps)(cascader, {
|
|
2888
2948
|
});
|
2889
2949
|
/* harmony default export */ const cascader_src = (BkCascader);
|
2890
2950
|
|
2951
|
+
})();
|
2952
|
+
|
2891
2953
|
var __webpack_exports__BkCascader = __webpack_exports__.BkCascader;
|
2892
2954
|
var __webpack_exports__BkCascaderPanel = __webpack_exports__.BkCascaderPanel;
|
2893
2955
|
var __webpack_exports__default = __webpack_exports__["default"];
|