bkui-vue 2.0.1-beta.99 → 2.0.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +133 -159
- package/dist/index.esm.js +26188 -29904
- package/dist/index.umd.js +133 -159
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -261
- package/lib/affix/index.js +30 -22
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.variable.css +1 -261
- package/lib/alert/index.js +30 -22
- package/lib/animate-number/index.js +14 -10
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.variable.css +4 -394
- package/lib/backtop/index.js +32 -22
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -261
- package/lib/badge/index.js +24 -18
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -396
- package/lib/breadcrumb/index.js +31 -23
- package/lib/button/button.css +143 -273
- package/lib/button/button.variable.css +1 -261
- package/lib/button/index.d.ts +2 -1
- package/lib/button/index.js +36 -26
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -395
- package/lib/card/index.js +47 -33
- package/lib/cascader/cascader.css +27 -153
- package/lib/cascader/cascader.d.ts +2 -2
- package/lib/cascader/cascader.less +5 -0
- package/lib/cascader/cascader.variable.css +28 -414
- package/lib/cascader/index.d.ts +6 -6
- package/lib/cascader/index.js +1609 -859
- package/lib/checkbox/checkbox.css +10 -140
- package/lib/checkbox/checkbox.variable.css +1 -261
- package/lib/checkbox/index.js +44 -34
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -261
- package/lib/code-diff/index.js +83 -79
- package/lib/collapse/collapse.css +1 -131
- package/lib/collapse/collapse.variable.css +1 -261
- package/lib/collapse/index.js +39 -33
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -261
- package/lib/collapse-transition/index.js +20 -14
- package/lib/color-picker/color-picker.css +0 -130
- package/lib/color-picker/color-picker.variable.css +1 -261
- package/lib/color-picker/index.js +1646 -440
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -261
- package/lib/config-provider/index.js +34 -26
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -391
- package/lib/container/index.js +27 -21
- package/lib/date-picker/date-picker.css +17 -147
- package/lib/date-picker/date-picker.variable.css +1 -261
- package/lib/date-picker/index.d.ts +2 -1
- package/lib/date-picker/index.js +1992 -554
- package/lib/dialog/dialog.css +8 -138
- package/lib/dialog/dialog.variable.css +9 -399
- package/lib/dialog/index.js +101 -87
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +495 -378
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.variable.css +1 -261
- package/lib/divider/index.js +21 -15
- package/lib/dropdown/dropdown.css +0 -130
- package/lib/dropdown/dropdown.variable.css +1 -391
- package/lib/dropdown/index.js +43 -31
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.variable.css +1 -261
- package/lib/exception/index.js +55 -49
- package/lib/fixed-navbar/fixed-navbar.css +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -261
- package/lib/fixed-navbar/index.js +20 -14
- package/lib/form/form.css +0 -130
- package/lib/form/form.variable.css +1 -261
- package/lib/form/index.js +1623 -198
- package/lib/icon/angle-double-down-line.js +14 -12
- package/lib/icon/angle-double-left-line.js +14 -12
- package/lib/icon/angle-double-left.js +14 -12
- package/lib/icon/angle-double-right-line.js +14 -12
- package/lib/icon/angle-double-right.js +14 -12
- package/lib/icon/angle-double-up-line.js +14 -12
- package/lib/icon/angle-down-fill.js +14 -12
- package/lib/icon/angle-down-line.js +14 -12
- package/lib/icon/angle-down.js +14 -12
- package/lib/icon/angle-left.js +14 -12
- package/lib/icon/angle-right.js +14 -12
- package/lib/icon/angle-up-fill.js +14 -12
- package/lib/icon/angle-up.js +14 -12
- package/lib/icon/archive-fill.js +14 -12
- package/lib/icon/arrows-left.js +14 -12
- package/lib/icon/arrows-right.js +14 -12
- package/lib/icon/assistant.js +14 -12
- package/lib/icon/audio-fill.js +14 -12
- package/lib/icon/bk.js +14 -12
- package/lib/icon/circle.js +14 -12
- package/lib/icon/close-line.js +14 -12
- package/lib/icon/close.js +14 -12
- package/lib/icon/code.js +14 -12
- package/lib/icon/cog-shape.js +14 -12
- package/lib/icon/collapse-left.js +14 -12
- package/lib/icon/copy-shape.js +14 -12
- package/lib/icon/copy.js +14 -12
- package/lib/icon/data-shape.js +14 -12
- package/lib/icon/del.js +14 -12
- package/lib/icon/doc-fill.js +14 -12
- package/lib/icon/done.js +14 -12
- package/lib/icon/down-shape.js +14 -12
- package/lib/icon/down-small.js +14 -12
- package/lib/icon/edit-line.js +14 -12
- package/lib/icon/ellipsis.js +14 -12
- package/lib/icon/enlarge-line.js +14 -12
- package/lib/icon/error.js +14 -12
- package/lib/icon/excel-fill.js +14 -12
- package/lib/icon/exclamation-circle-shape.js +14 -12
- package/lib/icon/eye.js +14 -12
- package/lib/icon/filliscreen-line.js +14 -12
- package/lib/icon/fix-line.js +14 -12
- package/lib/icon/fix-shape.js +14 -12
- package/lib/icon/folder-open.js +14 -12
- package/lib/icon/folder-shape-open.js +14 -12
- package/lib/icon/folder-shape.js +14 -12
- package/lib/icon/folder.js +14 -12
- package/lib/icon/funnel.js +14 -12
- package/lib/icon/grag-fill.js +14 -12
- package/lib/icon/help-document-fill.js +14 -12
- package/lib/icon/help-fill.js +14 -12
- package/lib/icon/help.js +14 -12
- package/lib/icon/image-fill.js +14 -12
- package/lib/icon/img-error.js +14 -12
- package/lib/icon/img-placehoulder.js +14 -12
- package/lib/icon/info-line.js +14 -12
- package/lib/icon/info.js +14 -12
- package/lib/icon/left-shape.js +14 -12
- package/lib/icon/left-turn-line.js +14 -12
- package/lib/icon/loading.js +14 -12
- package/lib/icon/narrow-line.js +14 -12
- package/lib/icon/original.js +14 -12
- package/lib/icon/pdf-fill.js +14 -12
- package/lib/icon/play-shape.js +14 -12
- package/lib/icon/plus.js +14 -12
- package/lib/icon/ppt-fill.js +14 -12
- package/lib/icon/qq.js +14 -12
- package/lib/icon/right-shape.js +14 -12
- package/lib/icon/right-turn-line.js +14 -12
- package/lib/icon/search.js +14 -12
- package/lib/icon/share.js +14 -12
- package/lib/icon/spinner.js +14 -12
- package/lib/icon/success.js +14 -12
- package/lib/icon/switcher-loading.js +14 -12
- package/lib/icon/text-all.js +14 -12
- package/lib/icon/text-file.js +14 -12
- package/lib/icon/text-fill.js +14 -12
- package/lib/icon/transfer.js +14 -12
- package/lib/icon/tree-application-shape.js +14 -12
- package/lib/icon/unfull-screen.js +14 -12
- package/lib/icon/unvisible.js +14 -12
- package/lib/icon/up-shape.js +14 -12
- package/lib/icon/upload.js +14 -12
- package/lib/icon/video-fill.js +14 -12
- package/lib/icon/warn.js +14 -12
- package/lib/icon/weixin-pro.js +14 -12
- package/lib/icon/weixin.js +14 -12
- package/lib/image/image-viewer.css +0 -130
- package/lib/image/image-viewer.variable.css +1 -261
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -391
- package/lib/image/index.js +1502 -182
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +101 -87
- package/lib/info-box/info-box.css +4 -134
- package/lib/info-box/info-box.variable.css +1 -261
- package/lib/input/index.js +1342 -42
- package/lib/input/input.css +75 -205
- package/lib/input/input.variable.css +76 -466
- package/lib/link/index.js +26 -18
- package/lib/link/link.css +16 -146
- package/lib/link/link.variable.css +1 -261
- package/lib/loading/index.js +25 -19
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.variable.css +17 -407
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.js +40 -32
- package/lib/menu/menu.css +20 -150
- package/lib/menu/menu.variable.css +21 -411
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -261
- package/lib/message/index.js +47 -41
- package/lib/message/message.css +21 -151
- package/lib/message/message.variable.css +1 -261
- package/lib/modal/index.js +42 -29
- package/lib/modal/modal.css +4 -134
- package/lib/modal/modal.variable.css +5 -395
- package/lib/navigation/index.js +27 -19
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.variable.css +1 -261
- package/lib/notify/index.js +37 -27
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -261
- package/lib/overflow-title/components/overflow-title.d.ts +20 -0
- package/lib/overflow-title/index.d.ts +40 -0
- package/lib/overflow-title/index.js +43 -30
- package/lib/overflow-title/overflow-title.css +3 -0
- package/lib/overflow-title/overflow-title.less +4 -0
- package/lib/overflow-title/overflow-title.variable.css +3 -0
- package/lib/overflow-title/props.d.ts +10 -0
- package/lib/pagination/index.d.ts +3 -3
- package/lib/pagination/index.js +62 -46
- package/lib/pagination/pagination.css +1 -131
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/pagination/pagination.variable.css +1 -261
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +35 -21266
- package/lib/plugins/index.js +7 -5
- package/lib/pop-confirm/index.d.ts +8 -0
- package/lib/pop-confirm/index.js +64 -40
- package/lib/pop-confirm/pop-confirm.css +0 -130
- package/lib/pop-confirm/pop-confirm.d.ts +4 -0
- package/lib/pop-confirm/pop-confirm.variable.css +1 -261
- package/lib/pop-confirm/props.d.ts +3 -0
- package/lib/popover/index.d.ts +49 -3
- package/lib/popover/index.js +1323 -17381
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.d.ts +23 -1
- package/lib/popover/popover.variable.css +1 -261
- package/lib/popover/props.d.ts +16 -0
- package/lib/popover/use-popover-init.d.ts +1 -2
- package/lib/popover/utils.d.ts +1 -1
- package/lib/popover2/index.js +14 -10
- package/lib/process/index.js +78 -74
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -261
- package/lib/progress/index.js +26 -20
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.variable.css +5 -395
- package/lib/radio/index.js +39 -31
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.variable.css +1 -261
- package/lib/rate/index.js +25 -19
- package/lib/rate/rate.css +0 -130
- package/lib/rate/rate.variable.css +1 -261
- package/lib/resize-layout/index.js +30 -22
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.variable.css +1 -261
- package/lib/scrollbar/css/scrollbar.css +0 -130
- package/lib/scrollbar/css/scrollbar.variable.css +1 -261
- package/lib/scrollbar/index.js +25 -25
- package/lib/search-select/index.d.ts +6 -0
- package/lib/search-select/index.js +1514 -238
- package/lib/search-select/input.d.ts +1 -0
- package/lib/search-select/search-select.css +78 -208
- package/lib/search-select/search-select.d.ts +2 -0
- package/lib/search-select/search-select.less +39 -39
- package/lib/search-select/search-select.variable.css +79 -469
- package/lib/search-select/selected.d.ts +2 -0
- package/lib/select/index.d.ts +78 -7
- package/lib/select/index.js +1460 -181
- package/lib/select/select.css +42 -169
- package/lib/select/select.d.ts +32 -2
- package/lib/select/select.less +4 -0
- package/lib/select/select.variable.css +43 -430
- package/lib/shared/index.js +57 -49
- package/lib/sideslider/index.js +89 -79
- package/lib/sideslider/sideslider.css +1 -131
- package/lib/sideslider/sideslider.variable.css +1 -261
- package/lib/slider/index.js +85 -75
- package/lib/slider/slider.css +5 -135
- package/lib/slider/slider.variable.css +1 -261
- package/lib/steps/index.js +78 -72
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.variable.css +1 -261
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -261
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -261
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -261
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -261
- package/lib/styles/themes/themes.less +130 -299
- package/lib/swiper/index.js +24 -18
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -261
- package/lib/switcher/index.js +30 -22
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.variable.css +18 -408
- package/lib/tab/index.js +1324 -43
- package/lib/tab/tab.css +26 -156
- package/lib/tab/tab.variable.css +1 -261
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/index.d.ts +7 -7
- package/lib/table/index.js +1543 -17458
- package/lib/table/plugins/head-filter.css +0 -130
- package/lib/table/plugins/head-filter.variable.css +1 -261
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -261
- package/lib/table/plugins/settings.css +0 -130
- package/lib/table/plugins/settings.variable.css +1 -261
- package/lib/table/table.css +189 -319
- package/lib/table/table.d.ts +2 -2
- package/lib/table/table.variable.css +190 -580
- package/lib/table-column/index.d.ts +3 -3
- package/lib/table-column/index.js +17 -17995
- package/lib/tag/index.js +36 -26
- package/lib/tag/tag.css +5 -135
- package/lib/tag/tag.variable.css +1 -261
- package/lib/tag-input/index.d.ts +52 -10
- package/lib/tag-input/index.js +1453 -17423
- package/lib/tag-input/tag-input.css +21 -148
- package/lib/tag-input/tag-input.d.ts +24 -4
- package/lib/tag-input/tag-input.less +4 -0
- package/lib/tag-input/tag-input.variable.css +4 -261
- package/lib/tag-input/tag-props.d.ts +11 -1
- package/lib/tag-input/tag-render.d.ts +2 -2
- package/lib/time-picker/index.js +13 -9
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -261
- package/lib/timeline/index.js +21 -15
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -261
- package/lib/transfer/index.d.ts +3 -3
- package/lib/transfer/index.js +56 -40
- package/lib/transfer/transfer.css +19 -149
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/transfer/transfer.variable.css +1 -261
- package/lib/tree/index.d.ts +3 -3
- package/lib/tree/index.js +107 -17342
- package/lib/tree/tree.css +10 -140
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.variable.css +11 -401
- package/lib/upload/index.js +584 -572
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.variable.css +28 -418
- package/lib/virtual-render/index.d.ts +3 -3
- package/lib/virtual-render/index.js +59 -17306
- package/lib/virtual-render/virtual-render.css +0 -130
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/lib/virtual-render/virtual-render.variable.css +1 -391
- package/package.json +1 -1
- package/lib/styles/themes/themes.css +0 -130
- package/lib/styles/themes/themes.variable.css +0 -130
package/lib/select/index.js
CHANGED
@@ -7,7 +7,10 @@ import "../checkbox/checkbox.less";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
|
10
|
-
import * as
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
12
|
+
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
13
|
+
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
11
14
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__ from "../input";
|
12
15
|
import "../input/input.less";
|
13
16
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__ from "../loading";
|
@@ -23,10 +26,356 @@ import "../tag/tag.less";
|
|
23
26
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
24
27
|
/******/ var __webpack_modules__ = ({
|
25
28
|
|
26
|
-
/***/
|
29
|
+
/***/ 1043:
|
30
|
+
/***/ ((module) => {
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Copyright (c) 2015, Facebook, Inc.
|
34
|
+
* All rights reserved.
|
35
|
+
*
|
36
|
+
* This source code is licensed under the BSD-style license found in the
|
37
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
38
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
39
|
+
*
|
40
|
+
* @providesModule ExecutionEnvironment
|
41
|
+
*/
|
42
|
+
|
43
|
+
/*jslint evil: true */
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
var canUseDOM = !!(
|
48
|
+
typeof window !== 'undefined' &&
|
49
|
+
window.document &&
|
50
|
+
window.document.createElement
|
51
|
+
);
|
52
|
+
|
53
|
+
/**
|
54
|
+
* Simple, lightweight module assisting with the detection and context of
|
55
|
+
* Worker. Helps avoid circular dependencies and allows code to reason about
|
56
|
+
* whether or not they are in a Worker, even if they never include the main
|
57
|
+
* `ReactWorker` dependency.
|
58
|
+
*/
|
59
|
+
var ExecutionEnvironment = {
|
60
|
+
|
61
|
+
canUseDOM: canUseDOM,
|
62
|
+
|
63
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
64
|
+
|
65
|
+
canUseEventListeners:
|
66
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
67
|
+
|
68
|
+
canUseViewport: canUseDOM && !!window.screen,
|
69
|
+
|
70
|
+
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
71
|
+
|
72
|
+
};
|
73
|
+
|
74
|
+
module.exports = ExecutionEnvironment;
|
75
|
+
|
76
|
+
|
77
|
+
/***/ }),
|
78
|
+
|
79
|
+
/***/ 2586:
|
27
80
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
28
81
|
|
29
|
-
|
82
|
+
/**
|
83
|
+
* Copyright 2013-2015, Facebook, Inc.
|
84
|
+
* All rights reserved.
|
85
|
+
*
|
86
|
+
* This source code is licensed under the BSD-style license found in the
|
87
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
88
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
89
|
+
*
|
90
|
+
* @providesModule isEventSupported
|
91
|
+
*/
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
var ExecutionEnvironment = __webpack_require__(1043);
|
96
|
+
|
97
|
+
var useHasFeature;
|
98
|
+
if (ExecutionEnvironment.canUseDOM) {
|
99
|
+
useHasFeature =
|
100
|
+
document.implementation &&
|
101
|
+
document.implementation.hasFeature &&
|
102
|
+
// always returns true in newer browsers as per the standard.
|
103
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
104
|
+
document.implementation.hasFeature('', '') !== true;
|
105
|
+
}
|
106
|
+
|
107
|
+
/**
|
108
|
+
* Checks if an event is supported in the current execution environment.
|
109
|
+
*
|
110
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
111
|
+
* `reset`, `load`, `error`, and `select`.
|
112
|
+
*
|
113
|
+
* Borrows from Modernizr.
|
114
|
+
*
|
115
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
116
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
117
|
+
* @return {boolean} True if the event is supported.
|
118
|
+
* @internal
|
119
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
120
|
+
*/
|
121
|
+
function isEventSupported(eventNameSuffix, capture) {
|
122
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
123
|
+
capture && !('addEventListener' in document)) {
|
124
|
+
return false;
|
125
|
+
}
|
126
|
+
|
127
|
+
var eventName = 'on' + eventNameSuffix;
|
128
|
+
var isSupported = eventName in document;
|
129
|
+
|
130
|
+
if (!isSupported) {
|
131
|
+
var element = document.createElement('div');
|
132
|
+
element.setAttribute(eventName, 'return;');
|
133
|
+
isSupported = typeof element[eventName] === 'function';
|
134
|
+
}
|
135
|
+
|
136
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
137
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
138
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
139
|
+
}
|
140
|
+
|
141
|
+
return isSupported;
|
142
|
+
}
|
143
|
+
|
144
|
+
module.exports = isEventSupported;
|
145
|
+
|
146
|
+
|
147
|
+
/***/ }),
|
148
|
+
|
149
|
+
/***/ 4319:
|
150
|
+
/***/ ((module) => {
|
151
|
+
|
152
|
+
function _typeof(o) {
|
153
|
+
"@babel/helpers - typeof";
|
154
|
+
|
155
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
156
|
+
return typeof o;
|
157
|
+
} : function (o) {
|
158
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
159
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
160
|
+
}
|
161
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
162
|
+
|
163
|
+
/***/ }),
|
164
|
+
|
165
|
+
/***/ 5022:
|
166
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
167
|
+
|
168
|
+
/**
|
169
|
+
* Copyright (c) 2015, Facebook, Inc.
|
170
|
+
* All rights reserved.
|
171
|
+
*
|
172
|
+
* This source code is licensed under the BSD-style license found in the
|
173
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
174
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
175
|
+
*
|
176
|
+
* @providesModule normalizeWheel
|
177
|
+
* @typechecks
|
178
|
+
*/
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
183
|
+
|
184
|
+
var isEventSupported = __webpack_require__(2586);
|
185
|
+
|
186
|
+
|
187
|
+
// Reasonable defaults
|
188
|
+
var PIXEL_STEP = 10;
|
189
|
+
var LINE_HEIGHT = 40;
|
190
|
+
var PAGE_HEIGHT = 800;
|
191
|
+
|
192
|
+
/**
|
193
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
194
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
195
|
+
* your questions.
|
196
|
+
*
|
197
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
198
|
+
* like your bestest friend. * hugs *
|
199
|
+
*
|
200
|
+
* As of today, there are 4 DOM event types you can listen to:
|
201
|
+
*
|
202
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
203
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
204
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
205
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
206
|
+
*
|
207
|
+
* So what to do? The is the best:
|
208
|
+
*
|
209
|
+
* normalizeWheel.getEventType();
|
210
|
+
*
|
211
|
+
* In your event callback, use this code to get sane interpretation of the
|
212
|
+
* deltas. This code will return an object with properties:
|
213
|
+
*
|
214
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
215
|
+
* spinY -- " - y plane
|
216
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
217
|
+
* pixelY -- " - y plane
|
218
|
+
*
|
219
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
220
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
221
|
+
* significantly on different platforms and browsers, forgetting that you can
|
222
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
223
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
224
|
+
* linear speed or acceleration.
|
225
|
+
*
|
226
|
+
* This code does its best to normalize the deltas for you:
|
227
|
+
*
|
228
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
229
|
+
* dragged). This is super useful for zoom support where you want to
|
230
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
231
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
232
|
+
* resolve a single slow step on a wheel to 1.
|
233
|
+
*
|
234
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
235
|
+
* get the crazy differences between browsers, but at least it'll be in
|
236
|
+
* pixels!
|
237
|
+
*
|
238
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
239
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
240
|
+
* This matches the newer 'wheel' event.
|
241
|
+
*
|
242
|
+
* Why are there spinX, spinY (or pixels)?
|
243
|
+
*
|
244
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
245
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
246
|
+
*
|
247
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
248
|
+
*
|
249
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
250
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
251
|
+
* you know.
|
252
|
+
*
|
253
|
+
* Implementation info:
|
254
|
+
*
|
255
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
256
|
+
* average mouse:
|
257
|
+
*
|
258
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
259
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
260
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
261
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
262
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
263
|
+
*
|
264
|
+
* On the trackpad:
|
265
|
+
*
|
266
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
267
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
268
|
+
*
|
269
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
270
|
+
* also missing delta values.
|
271
|
+
*
|
272
|
+
* The 'wheel' event is more standard:
|
273
|
+
*
|
274
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
275
|
+
*
|
276
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
277
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
278
|
+
* backward compatibility with older events. Those other values help us
|
279
|
+
* better normalize spin speed. Example of what the browsers provide:
|
280
|
+
*
|
281
|
+
* | event.wheelDelta | event.detail
|
282
|
+
* ------------------+------------------+--------------
|
283
|
+
* Safari v5/OS X | -120 | 0
|
284
|
+
* Safari v5/Win7 | -120 | 0
|
285
|
+
* Chrome v17/OS X | -120 | 0
|
286
|
+
* Chrome v17/Win7 | -120 | 0
|
287
|
+
* IE9/Win7 | -120 | undefined
|
288
|
+
* Firefox v4/OS X | undefined | 1
|
289
|
+
* Firefox v4/Win7 | undefined | 3
|
290
|
+
*
|
291
|
+
*/
|
292
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
293
|
+
var sX = 0, sY = 0, // spinX, spinY
|
294
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
295
|
+
|
296
|
+
// Legacy
|
297
|
+
if ('detail' in event) { sY = event.detail; }
|
298
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
299
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
300
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
301
|
+
|
302
|
+
// side scrolling on FF with DOMMouseScroll
|
303
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
304
|
+
sX = sY;
|
305
|
+
sY = 0;
|
306
|
+
}
|
307
|
+
|
308
|
+
pX = sX * PIXEL_STEP;
|
309
|
+
pY = sY * PIXEL_STEP;
|
310
|
+
|
311
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
312
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
313
|
+
|
314
|
+
if ((pX || pY) && event.deltaMode) {
|
315
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
316
|
+
pX *= LINE_HEIGHT;
|
317
|
+
pY *= LINE_HEIGHT;
|
318
|
+
} else { // delta in PAGE units
|
319
|
+
pX *= PAGE_HEIGHT;
|
320
|
+
pY *= PAGE_HEIGHT;
|
321
|
+
}
|
322
|
+
}
|
323
|
+
|
324
|
+
// Fall-back if spin cannot be determined
|
325
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
326
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
327
|
+
|
328
|
+
return { spinX : sX,
|
329
|
+
spinY : sY,
|
330
|
+
pixelX : pX,
|
331
|
+
pixelY : pY };
|
332
|
+
}
|
333
|
+
|
334
|
+
|
335
|
+
/**
|
336
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
337
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
338
|
+
* 'wheel' event, making spin speed determination impossible.
|
339
|
+
*/
|
340
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
341
|
+
return (UserAgent_DEPRECATED.firefox())
|
342
|
+
? 'DOMMouseScroll'
|
343
|
+
: (isEventSupported('wheel'))
|
344
|
+
? 'wheel'
|
345
|
+
: 'mousewheel';
|
346
|
+
};
|
347
|
+
|
348
|
+
module.exports = normalizeWheel;
|
349
|
+
|
350
|
+
|
351
|
+
/***/ }),
|
352
|
+
|
353
|
+
/***/ 5799:
|
354
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
355
|
+
|
356
|
+
// TODO(Babel 8): Remove this file.
|
357
|
+
|
358
|
+
var runtime = __webpack_require__(7048)();
|
359
|
+
module.exports = runtime;
|
360
|
+
|
361
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
362
|
+
try {
|
363
|
+
regeneratorRuntime = runtime;
|
364
|
+
} catch (accidentalStrictMode) {
|
365
|
+
if (typeof globalThis === "object") {
|
366
|
+
globalThis.regeneratorRuntime = runtime;
|
367
|
+
} else {
|
368
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
369
|
+
}
|
370
|
+
}
|
371
|
+
|
372
|
+
|
373
|
+
/***/ }),
|
374
|
+
|
375
|
+
/***/ 7048:
|
376
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
377
|
+
|
378
|
+
var _typeof = (__webpack_require__(4319)["default"]);
|
30
379
|
function _regeneratorRuntime() {
|
31
380
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
32
381
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
@@ -333,41 +682,300 @@ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.e
|
|
333
682
|
|
334
683
|
/***/ }),
|
335
684
|
|
336
|
-
/***/
|
685
|
+
/***/ 7416:
|
337
686
|
/***/ ((module) => {
|
338
687
|
|
339
|
-
|
340
|
-
|
688
|
+
/**
|
689
|
+
* Copyright 2004-present Facebook. All Rights Reserved.
|
690
|
+
*
|
691
|
+
* @providesModule UserAgent_DEPRECATED
|
692
|
+
*/
|
341
693
|
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
694
|
+
/**
|
695
|
+
* Provides entirely client-side User Agent and OS detection. You should prefer
|
696
|
+
* the non-deprecated UserAgent module when possible, which exposes our
|
697
|
+
* authoritative server-side PHP-based detection to the client.
|
698
|
+
*
|
699
|
+
* Usage is straightforward:
|
700
|
+
*
|
701
|
+
* if (UserAgent_DEPRECATED.ie()) {
|
702
|
+
* // IE
|
703
|
+
* }
|
704
|
+
*
|
705
|
+
* You can also do version checks:
|
706
|
+
*
|
707
|
+
* if (UserAgent_DEPRECATED.ie() >= 7) {
|
708
|
+
* // IE7 or better
|
709
|
+
* }
|
710
|
+
*
|
711
|
+
* The browser functions will return NaN if the browser does not match, so
|
712
|
+
* you can also do version compares the other way:
|
713
|
+
*
|
714
|
+
* if (UserAgent_DEPRECATED.ie() < 7) {
|
715
|
+
* // IE6 or worse
|
716
|
+
* }
|
717
|
+
*
|
718
|
+
* Note that the version is a float and may include a minor version number,
|
719
|
+
* so you should always use range operators to perform comparisons, not
|
720
|
+
* strict equality.
|
721
|
+
*
|
722
|
+
* **Note:** You should **strongly** prefer capability detection to browser
|
723
|
+
* version detection where it's reasonable:
|
724
|
+
*
|
725
|
+
* http://www.quirksmode.org/js/support.html
|
726
|
+
*
|
727
|
+
* Further, we have a large number of mature wrapper functions and classes
|
728
|
+
* which abstract away many browser irregularities. Check the documentation,
|
729
|
+
* grep for things, or ask on javascript@lists.facebook.com before writing yet
|
730
|
+
* another copy of "event || window.event".
|
731
|
+
*
|
732
|
+
*/
|
349
733
|
|
350
|
-
|
734
|
+
var _populated = false;
|
351
735
|
|
352
|
-
|
353
|
-
|
736
|
+
// Browsers
|
737
|
+
var _ie, _firefox, _opera, _webkit, _chrome;
|
354
738
|
|
355
|
-
//
|
739
|
+
// Actual IE browser for compatibility mode
|
740
|
+
var _ie_real_version;
|
356
741
|
|
357
|
-
|
358
|
-
|
742
|
+
// Platforms
|
743
|
+
var _osx, _windows, _linux, _android;
|
359
744
|
|
360
|
-
//
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
745
|
+
// Architectures
|
746
|
+
var _win64;
|
747
|
+
|
748
|
+
// Devices
|
749
|
+
var _iphone, _ipad, _native;
|
750
|
+
|
751
|
+
var _mobile;
|
752
|
+
|
753
|
+
function _populate() {
|
754
|
+
if (_populated) {
|
755
|
+
return;
|
756
|
+
}
|
757
|
+
|
758
|
+
_populated = true;
|
759
|
+
|
760
|
+
// To work around buggy JS libraries that can't handle multi-digit
|
761
|
+
// version numbers, Opera 10's user agent string claims it's Opera
|
762
|
+
// 9, then later includes a Version/X.Y field:
|
763
|
+
//
|
764
|
+
// Opera/9.80 (foo) Presto/2.2.15 Version/10.10
|
765
|
+
var uas = navigator.userAgent;
|
766
|
+
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);
|
767
|
+
var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
|
768
|
+
|
769
|
+
_iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
|
770
|
+
_ipad = /\b(iP[ao]d)/.exec(uas);
|
771
|
+
_android = /Android/i.exec(uas);
|
772
|
+
_native = /FBAN\/\w+;/i.exec(uas);
|
773
|
+
_mobile = /Mobile/i.exec(uas);
|
774
|
+
|
775
|
+
// Note that the IE team blog would have you believe you should be checking
|
776
|
+
// for 'Win64; x64'. But MSDN then reveals that you can actually be coming
|
777
|
+
// from either x64 or ia64; so ultimately, you should just check for Win64
|
778
|
+
// as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
|
779
|
+
// Windows will send 'WOW64' instead.
|
780
|
+
_win64 = !!(/Win64/.exec(uas));
|
781
|
+
|
782
|
+
if (agent) {
|
783
|
+
_ie = agent[1] ? parseFloat(agent[1]) : (
|
784
|
+
agent[5] ? parseFloat(agent[5]) : NaN);
|
785
|
+
// IE compatibility mode
|
786
|
+
if (_ie && document && document.documentMode) {
|
787
|
+
_ie = document.documentMode;
|
788
|
+
}
|
789
|
+
// grab the "true" ie version from the trident token if available
|
790
|
+
var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
|
791
|
+
_ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
|
792
|
+
|
793
|
+
_firefox = agent[2] ? parseFloat(agent[2]) : NaN;
|
794
|
+
_opera = agent[3] ? parseFloat(agent[3]) : NaN;
|
795
|
+
_webkit = agent[4] ? parseFloat(agent[4]) : NaN;
|
796
|
+
if (_webkit) {
|
797
|
+
// We do not add the regexp to the above test, because it will always
|
798
|
+
// match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
|
799
|
+
// the userAgent string.
|
800
|
+
agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
|
801
|
+
_chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
|
802
|
+
} else {
|
803
|
+
_chrome = NaN;
|
804
|
+
}
|
366
805
|
} else {
|
367
|
-
|
806
|
+
_ie = _firefox = _opera = _chrome = _webkit = NaN;
|
807
|
+
}
|
808
|
+
|
809
|
+
if (os) {
|
810
|
+
if (os[1]) {
|
811
|
+
// Detect OS X version. If no version number matches, set _osx to true.
|
812
|
+
// Version examples: 10, 10_6_1, 10.7
|
813
|
+
// Parses version number as a float, taking only first two sets of
|
814
|
+
// digits. If only one set of digits is found, returns just the major
|
815
|
+
// version number.
|
816
|
+
var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
|
817
|
+
|
818
|
+
_osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
|
819
|
+
} else {
|
820
|
+
_osx = false;
|
821
|
+
}
|
822
|
+
_windows = !!os[2];
|
823
|
+
_linux = !!os[3];
|
824
|
+
} else {
|
825
|
+
_osx = _windows = _linux = false;
|
368
826
|
}
|
369
827
|
}
|
370
828
|
|
829
|
+
var UserAgent_DEPRECATED = {
|
830
|
+
|
831
|
+
/**
|
832
|
+
* Check if the UA is Internet Explorer.
|
833
|
+
*
|
834
|
+
*
|
835
|
+
* @return float|NaN Version number (if match) or NaN.
|
836
|
+
*/
|
837
|
+
ie: function() {
|
838
|
+
return _populate() || _ie;
|
839
|
+
},
|
840
|
+
|
841
|
+
/**
|
842
|
+
* Check if we're in Internet Explorer compatibility mode.
|
843
|
+
*
|
844
|
+
* @return bool true if in compatibility mode, false if
|
845
|
+
* not compatibility mode or not ie
|
846
|
+
*/
|
847
|
+
ieCompatibilityMode: function() {
|
848
|
+
return _populate() || (_ie_real_version > _ie);
|
849
|
+
},
|
850
|
+
|
851
|
+
|
852
|
+
/**
|
853
|
+
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
854
|
+
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
855
|
+
* this when we don't need it -- tracked by #601957.
|
856
|
+
*/
|
857
|
+
ie64: function() {
|
858
|
+
return UserAgent_DEPRECATED.ie() && _win64;
|
859
|
+
},
|
860
|
+
|
861
|
+
/**
|
862
|
+
* Check if the UA is Firefox.
|
863
|
+
*
|
864
|
+
*
|
865
|
+
* @return float|NaN Version number (if match) or NaN.
|
866
|
+
*/
|
867
|
+
firefox: function() {
|
868
|
+
return _populate() || _firefox;
|
869
|
+
},
|
870
|
+
|
871
|
+
|
872
|
+
/**
|
873
|
+
* Check if the UA is Opera.
|
874
|
+
*
|
875
|
+
*
|
876
|
+
* @return float|NaN Version number (if match) or NaN.
|
877
|
+
*/
|
878
|
+
opera: function() {
|
879
|
+
return _populate() || _opera;
|
880
|
+
},
|
881
|
+
|
882
|
+
|
883
|
+
/**
|
884
|
+
* Check if the UA is WebKit.
|
885
|
+
*
|
886
|
+
*
|
887
|
+
* @return float|NaN Version number (if match) or NaN.
|
888
|
+
*/
|
889
|
+
webkit: function() {
|
890
|
+
return _populate() || _webkit;
|
891
|
+
},
|
892
|
+
|
893
|
+
/**
|
894
|
+
* For Push
|
895
|
+
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
896
|
+
*/
|
897
|
+
safari: function() {
|
898
|
+
return UserAgent_DEPRECATED.webkit();
|
899
|
+
},
|
900
|
+
|
901
|
+
/**
|
902
|
+
* Check if the UA is a Chrome browser.
|
903
|
+
*
|
904
|
+
*
|
905
|
+
* @return float|NaN Version number (if match) or NaN.
|
906
|
+
*/
|
907
|
+
chrome : function() {
|
908
|
+
return _populate() || _chrome;
|
909
|
+
},
|
910
|
+
|
911
|
+
|
912
|
+
/**
|
913
|
+
* Check if the user is running Windows.
|
914
|
+
*
|
915
|
+
* @return bool `true' if the user's OS is Windows.
|
916
|
+
*/
|
917
|
+
windows: function() {
|
918
|
+
return _populate() || _windows;
|
919
|
+
},
|
920
|
+
|
921
|
+
|
922
|
+
/**
|
923
|
+
* Check if the user is running Mac OS X.
|
924
|
+
*
|
925
|
+
* @return float|bool Returns a float if a version number is detected,
|
926
|
+
* otherwise true/false.
|
927
|
+
*/
|
928
|
+
osx: function() {
|
929
|
+
return _populate() || _osx;
|
930
|
+
},
|
931
|
+
|
932
|
+
/**
|
933
|
+
* Check if the user is running Linux.
|
934
|
+
*
|
935
|
+
* @return bool `true' if the user's OS is some flavor of Linux.
|
936
|
+
*/
|
937
|
+
linux: function() {
|
938
|
+
return _populate() || _linux;
|
939
|
+
},
|
940
|
+
|
941
|
+
/**
|
942
|
+
* Check if the user is running on an iPhone or iPod platform.
|
943
|
+
*
|
944
|
+
* @return bool `true' if the user is running some flavor of the
|
945
|
+
* iPhone OS.
|
946
|
+
*/
|
947
|
+
iphone: function() {
|
948
|
+
return _populate() || _iphone;
|
949
|
+
},
|
950
|
+
|
951
|
+
mobile: function() {
|
952
|
+
return _populate() || (_iphone || _ipad || _android || _mobile);
|
953
|
+
},
|
954
|
+
|
955
|
+
nativeApp: function() {
|
956
|
+
// webviews inside of the native apps
|
957
|
+
return _populate() || _native;
|
958
|
+
},
|
959
|
+
|
960
|
+
android: function() {
|
961
|
+
return _populate() || _android;
|
962
|
+
},
|
963
|
+
|
964
|
+
ipad: function() {
|
965
|
+
return _populate() || _ipad;
|
966
|
+
}
|
967
|
+
};
|
968
|
+
|
969
|
+
module.exports = UserAgent_DEPRECATED;
|
970
|
+
|
971
|
+
|
972
|
+
/***/ }),
|
973
|
+
|
974
|
+
/***/ 8283:
|
975
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
976
|
+
|
977
|
+
module.exports = __webpack_require__(5022);
|
978
|
+
|
371
979
|
|
372
980
|
/***/ })
|
373
981
|
|
@@ -429,91 +1037,23 @@ try {
|
|
429
1037
|
/******/
|
430
1038
|
/************************************************************************/
|
431
1039
|
var __webpack_exports__ = {};
|
432
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
433
|
-
(() => {
|
434
1040
|
|
435
1041
|
// EXPORTS
|
436
1042
|
__webpack_require__.d(__webpack_exports__, {
|
437
1043
|
BkOption: () => (/* reexport */ src_option),
|
438
1044
|
BkOptionGroup: () => (/* reexport */ optionGroup),
|
439
1045
|
BkSelect: () => (/* binding */ BkSelect),
|
440
|
-
"default": () => (/* binding */ src)
|
1046
|
+
"default": () => (/* binding */ src),
|
1047
|
+
useHover: () => (/* reexport */ useHover)
|
441
1048
|
});
|
442
1049
|
|
443
|
-
;//
|
444
|
-
var x = y => {
|
445
|
-
var
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
452
|
-
return typeof o;
|
453
|
-
} : function (o) {
|
454
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
455
|
-
}, _typeof(o);
|
456
|
-
}
|
457
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
458
|
-
|
459
|
-
function toPrimitive(t, r) {
|
460
|
-
if ("object" != _typeof(t) || !t) return t;
|
461
|
-
var e = t[Symbol.toPrimitive];
|
462
|
-
if (void 0 !== e) {
|
463
|
-
var i = e.call(t, r || "default");
|
464
|
-
if ("object" != _typeof(i)) return i;
|
465
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
466
|
-
}
|
467
|
-
return ("string" === r ? String : Number)(t);
|
468
|
-
}
|
469
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
470
|
-
|
471
|
-
|
472
|
-
function toPropertyKey(t) {
|
473
|
-
var i = toPrimitive(t, "string");
|
474
|
-
return "symbol" == _typeof(i) ? i : String(i);
|
475
|
-
}
|
476
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
477
|
-
|
478
|
-
function _defineProperty(obj, key, value) {
|
479
|
-
key = toPropertyKey(key);
|
480
|
-
if (key in obj) {
|
481
|
-
Object.defineProperty(obj, key, {
|
482
|
-
value: value,
|
483
|
-
enumerable: true,
|
484
|
-
configurable: true,
|
485
|
-
writable: true
|
486
|
-
});
|
487
|
-
} else {
|
488
|
-
obj[key] = value;
|
489
|
-
}
|
490
|
-
return obj;
|
491
|
-
}
|
492
|
-
;// CONCATENATED MODULE: external "vue"
|
493
|
-
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
494
|
-
var external_vue_y = x => () => x
|
495
|
-
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
496
|
-
;// CONCATENATED MODULE: external "../checkbox"
|
497
|
-
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
498
|
-
var checkbox_y = x => () => x
|
499
|
-
const checkbox_namespaceObject = checkbox_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"] });
|
500
|
-
;// CONCATENATED MODULE: external "../checkbox/checkbox.less"
|
501
|
-
var checkbox_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
502
|
-
var checkbox_less_y = x => () => x
|
503
|
-
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
504
|
-
;// CONCATENATED MODULE: external "../config-provider"
|
505
|
-
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
506
|
-
var config_provider_y = x => () => x
|
507
|
-
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 });
|
508
|
-
;// CONCATENATED MODULE: external "../icon"
|
509
|
-
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
510
|
-
var icon_y = x => () => x
|
511
|
-
const icon_namespaceObject = icon_x({ ["AngleDown"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleDown, ["AngleUpFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUpFill, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search, ["TextAll"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextAll });
|
512
|
-
;// CONCATENATED MODULE: external "lodash/isEqual"
|
513
|
-
var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
514
|
-
var isEqual_y = x => () => x
|
515
|
-
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"] });
|
516
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
1050
|
+
;// external "../shared"
|
1051
|
+
var x = (y) => {
|
1052
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1053
|
+
}
|
1054
|
+
var y = (x) => (() => (x))
|
1055
|
+
const shared_namespaceObject = x({ ["InputBehaviorType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.InputBehaviorType), ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["RenderType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType), ["SelectedType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedType), ["SelectedTypeEnum"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SelectedTypeEnum), ["SizeEnum"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.SizeEnum), ["TagThemeType"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.TagThemeType), ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["classes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes), ["observerResize"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.observerResize), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["useFormItem"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem), ["withInstallProps"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps) });
|
1056
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
517
1057
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
518
1058
|
try {
|
519
1059
|
var info = gen[key](arg);
|
@@ -545,9 +1085,15 @@ function _asyncToGenerator(fn) {
|
|
545
1085
|
};
|
546
1086
|
}
|
547
1087
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
548
|
-
var regenerator = __webpack_require__(
|
1088
|
+
var regenerator = __webpack_require__(5799);
|
549
1089
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
550
|
-
;//
|
1090
|
+
;// external "vue"
|
1091
|
+
var external_vue_x = (y) => {
|
1092
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1093
|
+
}
|
1094
|
+
var external_vue_y = (x) => (() => (x))
|
1095
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createTextVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["customRef"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.customRef), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["getCurrentInstance"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["inject"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.inject), ["mergeProps"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.mergeProps), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onBeforeMount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount), ["onBeforeUnmount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["provide"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.provide), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["toRef"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRef), ["toRefs"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRefs), ["vModelText"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vModelText), ["vShow"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vShow), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
1096
|
+
;// ../../packages/select/src/common.ts
|
551
1097
|
|
552
1098
|
|
553
1099
|
/*
|
@@ -730,7 +1276,82 @@ function isInViewPort(el, client) {
|
|
730
1276
|
clientBottom = _client$getBoundingCl.bottom;
|
731
1277
|
return elTop >= clientTop && elBottom <= clientBottom;
|
732
1278
|
}
|
733
|
-
;//
|
1279
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
1280
|
+
function _typeof(o) {
|
1281
|
+
"@babel/helpers - typeof";
|
1282
|
+
|
1283
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
1284
|
+
return typeof o;
|
1285
|
+
} : function (o) {
|
1286
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
1287
|
+
}, _typeof(o);
|
1288
|
+
}
|
1289
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
1290
|
+
|
1291
|
+
function toPrimitive(t, r) {
|
1292
|
+
if ("object" != _typeof(t) || !t) return t;
|
1293
|
+
var e = t[Symbol.toPrimitive];
|
1294
|
+
if (void 0 !== e) {
|
1295
|
+
var i = e.call(t, r || "default");
|
1296
|
+
if ("object" != _typeof(i)) return i;
|
1297
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
1298
|
+
}
|
1299
|
+
return ("string" === r ? String : Number)(t);
|
1300
|
+
}
|
1301
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1302
|
+
|
1303
|
+
|
1304
|
+
function toPropertyKey(t) {
|
1305
|
+
var i = toPrimitive(t, "string");
|
1306
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
1307
|
+
}
|
1308
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1309
|
+
|
1310
|
+
function _defineProperty(obj, key, value) {
|
1311
|
+
key = toPropertyKey(key);
|
1312
|
+
if (key in obj) {
|
1313
|
+
Object.defineProperty(obj, key, {
|
1314
|
+
value: value,
|
1315
|
+
enumerable: true,
|
1316
|
+
configurable: true,
|
1317
|
+
writable: true
|
1318
|
+
});
|
1319
|
+
} else {
|
1320
|
+
obj[key] = value;
|
1321
|
+
}
|
1322
|
+
return obj;
|
1323
|
+
}
|
1324
|
+
;// external "../checkbox"
|
1325
|
+
var checkbox_x = (y) => {
|
1326
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1327
|
+
}
|
1328
|
+
var checkbox_y = (x) => (() => (x))
|
1329
|
+
const checkbox_namespaceObject = checkbox_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"]) });
|
1330
|
+
;// external "../checkbox/checkbox.less"
|
1331
|
+
var checkbox_less_x = (y) => {
|
1332
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1333
|
+
}
|
1334
|
+
var checkbox_less_y = (x) => (() => (x))
|
1335
|
+
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
1336
|
+
;// external "../config-provider"
|
1337
|
+
var config_provider_x = (y) => {
|
1338
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1339
|
+
}
|
1340
|
+
var config_provider_y = (x) => (() => (x))
|
1341
|
+
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) });
|
1342
|
+
;// external "../icon"
|
1343
|
+
var icon_x = (y) => {
|
1344
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1345
|
+
}
|
1346
|
+
var icon_y = (x) => (() => (x))
|
1347
|
+
const icon_namespaceObject = icon_x({ ["AngleDown"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleDown), ["AngleUpFill"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUpFill), ["Close"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close), ["Done"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done), ["Search"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search), ["TextAll"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextAll) });
|
1348
|
+
;// external "lodash/isEqual"
|
1349
|
+
var isEqual_x = (y) => {
|
1350
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1351
|
+
}
|
1352
|
+
var isEqual_y = (x) => (() => (x))
|
1353
|
+
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"]) });
|
1354
|
+
;// ../../packages/select/src/option.tsx
|
734
1355
|
|
735
1356
|
|
736
1357
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -915,22 +1536,22 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
915
1536
|
}, null)]), [[external_vue_namespaceObject.vShow, this.visible]]);
|
916
1537
|
}
|
917
1538
|
}));
|
918
|
-
;//
|
1539
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
919
1540
|
function _arrayLikeToArray(arr, len) {
|
920
1541
|
if (len == null || len > arr.length) len = arr.length;
|
921
1542
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
922
1543
|
return arr2;
|
923
1544
|
}
|
924
|
-
;//
|
1545
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
925
1546
|
|
926
1547
|
function _arrayWithoutHoles(arr) {
|
927
1548
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
928
1549
|
}
|
929
|
-
;//
|
1550
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
930
1551
|
function _iterableToArray(iter) {
|
931
1552
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
932
1553
|
}
|
933
|
-
;//
|
1554
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
934
1555
|
|
935
1556
|
function _unsupportedIterableToArray(o, minLen) {
|
936
1557
|
if (!o) return;
|
@@ -940,11 +1561,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
940
1561
|
if (n === "Map" || n === "Set") return Array.from(o);
|
941
1562
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
942
1563
|
}
|
943
|
-
;//
|
1564
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
944
1565
|
function _nonIterableSpread() {
|
945
1566
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
946
1567
|
}
|
947
|
-
;//
|
1568
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
948
1569
|
|
949
1570
|
|
950
1571
|
|
@@ -952,7 +1573,7 @@ function _nonIterableSpread() {
|
|
952
1573
|
function _toConsumableArray(arr) {
|
953
1574
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
954
1575
|
}
|
955
|
-
;//
|
1576
|
+
;// ../../packages/select/src/optionGroup.tsx
|
956
1577
|
|
957
1578
|
|
958
1579
|
|
@@ -1062,47 +1683,691 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1062
1683
|
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), [[external_vue_namespaceObject.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject.vShow, this.visible]]);
|
1063
1684
|
}
|
1064
1685
|
}));
|
1065
|
-
;//
|
1066
|
-
var
|
1067
|
-
var
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1686
|
+
;// ../../packages/directives/src/clickoutside.ts
|
1687
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = clickoutside_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; } } }; }
|
1688
|
+
function clickoutside_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return clickoutside_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 clickoutside_arrayLikeToArray(o, minLen); }
|
1689
|
+
function clickoutside_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; }
|
1690
|
+
/*
|
1691
|
+
* Tencent is pleased to support the open source community by making
|
1692
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1693
|
+
*
|
1694
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1695
|
+
*
|
1696
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1697
|
+
*
|
1698
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1699
|
+
*
|
1700
|
+
* ---------------------------------------------------
|
1701
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1702
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1703
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1704
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1705
|
+
*
|
1706
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1707
|
+
* the Software.
|
1708
|
+
*
|
1709
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1710
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1711
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1712
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1713
|
+
* IN THE SOFTWARE.
|
1714
|
+
*/
|
1715
|
+
var isElement = function isElement(e) {
|
1716
|
+
if (typeof Element === 'undefined') return false;
|
1717
|
+
return e instanceof Element;
|
1718
|
+
};
|
1719
|
+
var nodeList = new Map();
|
1720
|
+
var startClick;
|
1721
|
+
document.addEventListener('mousedown', function (e) {
|
1722
|
+
return startClick = e;
|
1723
|
+
});
|
1724
|
+
document.addEventListener('mouseup', function (e) {
|
1725
|
+
var _iterator = _createForOfIteratorHelper(nodeList.values()),
|
1726
|
+
_step;
|
1727
|
+
try {
|
1728
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
1729
|
+
var handlers = _step.value;
|
1730
|
+
var _iterator2 = _createForOfIteratorHelper(handlers),
|
1731
|
+
_step2;
|
1732
|
+
try {
|
1733
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
1734
|
+
var documentHandler = _step2.value.documentHandler;
|
1735
|
+
documentHandler(e, startClick);
|
1736
|
+
}
|
1737
|
+
} catch (err) {
|
1738
|
+
_iterator2.e(err);
|
1739
|
+
} finally {
|
1740
|
+
_iterator2.f();
|
1741
|
+
}
|
1742
|
+
}
|
1743
|
+
} catch (err) {
|
1744
|
+
_iterator.e(err);
|
1745
|
+
} finally {
|
1746
|
+
_iterator.f();
|
1747
|
+
}
|
1748
|
+
});
|
1749
|
+
function createDocumentHandler(el, binding) {
|
1750
|
+
var excludes = [];
|
1751
|
+
if (Array.isArray(binding.arg)) {
|
1752
|
+
excludes = binding.arg;
|
1753
|
+
} else if (isElement(binding.arg)) {
|
1754
|
+
excludes.push(binding.arg);
|
1755
|
+
}
|
1756
|
+
return function (mouseup, mousedown) {
|
1757
|
+
var popperRef = binding.instance.popperRef;
|
1758
|
+
var mouseUpTarget = mouseup.target;
|
1759
|
+
var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
|
1760
|
+
var isBound = !binding || !binding.instance;
|
1761
|
+
var isTargetExists = !mouseUpTarget || !mouseDownTarget;
|
1762
|
+
var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
|
1763
|
+
var isSelf = el === mouseUpTarget;
|
1764
|
+
var isTargetExcluded = excludes.length && excludes.some(function (item) {
|
1765
|
+
return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
|
1766
|
+
}) || excludes.length && excludes.includes(mouseDownTarget);
|
1767
|
+
var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
|
1768
|
+
if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
|
1769
|
+
return;
|
1770
|
+
}
|
1771
|
+
binding.value(mouseup, mousedown);
|
1772
|
+
};
|
1773
|
+
}
|
1774
|
+
var ClickOutside = {
|
1775
|
+
beforeMount: function beforeMount(el, binding) {
|
1776
|
+
if (!nodeList.has(el)) {
|
1777
|
+
nodeList.set(el, []);
|
1778
|
+
}
|
1779
|
+
nodeList.get(el).push({
|
1780
|
+
documentHandler: createDocumentHandler(el, binding),
|
1781
|
+
bindingFn: binding.value
|
1782
|
+
});
|
1783
|
+
},
|
1784
|
+
updated: function updated(el, binding) {
|
1785
|
+
if (!nodeList.has(el)) {
|
1786
|
+
nodeList.set(el, []);
|
1787
|
+
}
|
1788
|
+
var handlers = nodeList.get(el);
|
1789
|
+
var oldHandlerIndex = handlers.findIndex(function (item) {
|
1790
|
+
return item.bindingFn === binding.oldValue;
|
1791
|
+
});
|
1792
|
+
var newHandler = {
|
1793
|
+
documentHandler: createDocumentHandler(el, binding),
|
1794
|
+
bindingFn: binding.value
|
1795
|
+
};
|
1796
|
+
if (oldHandlerIndex >= 0) {
|
1797
|
+
// replace the old handler to the new handler
|
1798
|
+
handlers.splice(oldHandlerIndex, 1, newHandler);
|
1799
|
+
} else {
|
1800
|
+
handlers.push(newHandler);
|
1801
|
+
}
|
1802
|
+
},
|
1803
|
+
unmounted: function unmounted(el) {
|
1804
|
+
// remove all listeners when a component unmounted
|
1805
|
+
nodeList["delete"](el);
|
1806
|
+
}
|
1807
|
+
};
|
1808
|
+
ClickOutside.install = function (app) {
|
1809
|
+
app.directive('bkTooltips', ClickOutside);
|
1810
|
+
};
|
1811
|
+
/* harmony default export */ const clickoutside = (ClickOutside);
|
1812
|
+
;// external "../plugin-popover"
|
1813
|
+
var plugin_popover_x = (y) => {
|
1814
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1815
|
+
}
|
1816
|
+
var plugin_popover_y = (x) => (() => (x))
|
1817
|
+
const plugin_popover_namespaceObject = plugin_popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
|
1818
|
+
;// ../../packages/directives/src/ellipsis.ts
|
1819
|
+
|
1820
|
+
/*
|
1821
|
+
* Tencent is pleased to support the open source community by making
|
1822
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1823
|
+
*
|
1824
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1825
|
+
*
|
1826
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1827
|
+
*
|
1828
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1829
|
+
*
|
1830
|
+
* ---------------------------------------------------
|
1831
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1832
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1833
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1834
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1835
|
+
*
|
1836
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1837
|
+
* the Software.
|
1838
|
+
*
|
1839
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1840
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1841
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1842
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1843
|
+
* IN THE SOFTWARE.
|
1844
|
+
*/
|
1845
|
+
|
1846
|
+
var resolveOptions = function resolveOptions(el, binding) {
|
1847
|
+
var options = {
|
1848
|
+
content: '',
|
1849
|
+
target: el
|
1850
|
+
};
|
1851
|
+
if (_typeof(binding) === 'object') {
|
1852
|
+
Object.assign(options, binding);
|
1853
|
+
if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
|
1854
|
+
Object.assign(options, binding.popoverOption);
|
1855
|
+
}
|
1856
|
+
} else {
|
1857
|
+
options.content = binding;
|
1858
|
+
}
|
1859
|
+
return options;
|
1860
|
+
};
|
1861
|
+
var createInstance = function createInstance(el, binding) {
|
1862
|
+
var instance = null;
|
1863
|
+
var createTimer = null;
|
1864
|
+
var hidePopTimer = null;
|
1865
|
+
var options = resolveOptions(el, binding);
|
1866
|
+
var disabled = options.disabled;
|
1867
|
+
if (disabled || instance) {
|
1868
|
+
return;
|
1869
|
+
}
|
1870
|
+
var handleContentEnter = function handleContentEnter() {
|
1871
|
+
hidePopTimer && clearTimeout(hidePopTimer);
|
1872
|
+
hidePopTimer = null;
|
1873
|
+
};
|
1874
|
+
var handleContentLeave = function handleContentLeave() {
|
1875
|
+
var _instance, _instance2;
|
1876
|
+
if (createTimer) {
|
1877
|
+
clearTimeout(createTimer);
|
1878
|
+
}
|
1879
|
+
(_instance = instance) === null || _instance === void 0 || _instance.hide();
|
1880
|
+
(_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
|
1881
|
+
instance = null;
|
1882
|
+
};
|
1883
|
+
var handleMouseEnter = function handleMouseEnter() {
|
1884
|
+
handleContentLeave();
|
1885
|
+
createTimer && clearTimeout(createTimer);
|
1886
|
+
createTimer = setTimeout(function () {
|
1887
|
+
var targetOptions = resolveOptions(el, binding);
|
1888
|
+
targetOptions.isShow = true;
|
1889
|
+
targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
|
1890
|
+
targetOptions.allowHtml = true;
|
1891
|
+
Object.assign(targetOptions, {
|
1892
|
+
onContentMouseenter: handleContentEnter,
|
1893
|
+
onContentMouseleave: handleContentLeave
|
1894
|
+
});
|
1895
|
+
instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
|
1896
|
+
}, 300);
|
1897
|
+
};
|
1898
|
+
var handleMouseLeave = function handleMouseLeave() {
|
1899
|
+
hidePopTimer = setTimeout(function () {
|
1900
|
+
var _instance3, _instance4;
|
1901
|
+
if (createTimer) {
|
1902
|
+
clearTimeout(createTimer);
|
1903
|
+
}
|
1904
|
+
(_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
|
1905
|
+
(_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
|
1906
|
+
instance = null;
|
1907
|
+
}, 120);
|
1908
|
+
};
|
1909
|
+
el.addEventListener('mouseenter', handleMouseEnter);
|
1910
|
+
el.addEventListener('mouseleave', handleMouseLeave);
|
1911
|
+
var destroyInstance = function destroyInstance(element) {
|
1912
|
+
var _ref, _ref2;
|
1913
|
+
handleMouseLeave();
|
1914
|
+
(_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
|
1915
|
+
(_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
|
1916
|
+
};
|
1917
|
+
return {
|
1918
|
+
destroyInstance: destroyInstance,
|
1919
|
+
instance: instance
|
1920
|
+
};
|
1921
|
+
};
|
1922
|
+
var ellipsis = {
|
1923
|
+
mounted: function mounted(el, binding) {
|
1924
|
+
createInstance(el, binding);
|
1925
|
+
}
|
1926
|
+
};
|
1927
|
+
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
1928
|
+
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
1929
|
+
var normalize_wheel = __webpack_require__(8283);
|
1930
|
+
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
1931
|
+
;// ../../packages/directives/src/mousewheel.ts
|
1932
|
+
/*
|
1933
|
+
* Tencent is pleased to support the open source community by making
|
1934
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1935
|
+
*
|
1936
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1937
|
+
*
|
1938
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1939
|
+
*
|
1940
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1941
|
+
*
|
1942
|
+
* ---------------------------------------------------
|
1943
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1944
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1945
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1946
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1947
|
+
*
|
1948
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1949
|
+
* the Software.
|
1950
|
+
*
|
1951
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1952
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1953
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1954
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1955
|
+
* IN THE SOFTWARE.
|
1956
|
+
*/
|
1957
|
+
|
1958
|
+
var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
1959
|
+
var mousewheelHandler = function mousewheelHandler(element, callback) {
|
1960
|
+
if (element !== null && element !== void 0 && element.addEventListener) {
|
1961
|
+
element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
|
1962
|
+
var normalized = normalize_wheel_default()(e);
|
1963
|
+
callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
|
1964
|
+
});
|
1965
|
+
}
|
1966
|
+
};
|
1967
|
+
var mousewheel = {
|
1968
|
+
beforeMount: function beforeMount(el, binding) {
|
1969
|
+
mousewheelHandler(el, binding.value);
|
1970
|
+
}
|
1971
|
+
};
|
1972
|
+
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
1973
|
+
;// external "@popperjs/core"
|
1974
|
+
var core_x = (y) => {
|
1975
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1976
|
+
}
|
1977
|
+
var core_y = (x) => (() => (x))
|
1978
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
1979
|
+
;// ../../packages/directives/src/tooltips.ts
|
1980
|
+
|
1981
|
+
|
1982
|
+
|
1983
|
+
function tooltips_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
1984
|
+
function tooltips_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? tooltips_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : tooltips_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1985
|
+
/*
|
1986
|
+
* Tencent is pleased to support the open source community by making
|
1987
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1988
|
+
*
|
1989
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1990
|
+
*
|
1991
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1992
|
+
*
|
1993
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1994
|
+
*
|
1995
|
+
* ---------------------------------------------------
|
1996
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1997
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1998
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1999
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2000
|
+
*
|
2001
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2002
|
+
* the Software.
|
2003
|
+
*
|
2004
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2005
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2006
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2007
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2008
|
+
* IN THE SOFTWARE.
|
2009
|
+
*/
|
2010
|
+
|
2011
|
+
|
2012
|
+
|
2013
|
+
var tooltips_nodeList = new WeakMap();
|
2014
|
+
var tooltips = {
|
2015
|
+
beforeMount: function beforeMount(el, binding) {
|
2016
|
+
var opts = getOpts(binding);
|
2017
|
+
var trigger = opts.trigger,
|
2018
|
+
showOnInit = opts.showOnInit;
|
2019
|
+
var popper = renderContent(opts);
|
2020
|
+
var delayTimeout = null;
|
2021
|
+
if (showOnInit) {
|
2022
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
2023
|
+
show(el);
|
2024
|
+
});
|
2025
|
+
}
|
2026
|
+
if (trigger === 'hover') {
|
2027
|
+
var hideTimeout = null;
|
2028
|
+
el.addEventListener('mouseenter', function () {
|
2029
|
+
delayTimeout = setTimeout(function () {
|
2030
|
+
show(el);
|
2031
|
+
clearTimeout(hideTimeout);
|
2032
|
+
clearTimeout(delayTimeout);
|
2033
|
+
}, opts.delay);
|
2034
|
+
});
|
2035
|
+
popper.addEventListener('mouseenter', function () {
|
2036
|
+
clearTimeout(hideTimeout);
|
2037
|
+
});
|
2038
|
+
el.addEventListener('mouseleave', function () {
|
2039
|
+
clearTimeout(delayTimeout);
|
2040
|
+
hideTimeout = setTimeout(function () {
|
2041
|
+
hide(el);
|
2042
|
+
}, 100);
|
2043
|
+
});
|
2044
|
+
el.addEventListener('click', function () {
|
2045
|
+
hide(el);
|
2046
|
+
});
|
2047
|
+
popper.addEventListener('mouseleave', function () {
|
2048
|
+
clearTimeout(delayTimeout);
|
2049
|
+
hideTimeout = setTimeout(function () {
|
2050
|
+
hide(el);
|
2051
|
+
}, 100);
|
2052
|
+
});
|
2053
|
+
} else if (trigger === 'click') {
|
2054
|
+
document.body.addEventListener('click', function (event) {
|
2055
|
+
if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
|
2056
|
+
delayTimeout = setTimeout(function () {
|
2057
|
+
show(el);
|
2058
|
+
clearTimeout(delayTimeout);
|
2059
|
+
}, opts.delay);
|
2060
|
+
} else if (popper.hasAttribute('data-show')) {
|
2061
|
+
hide(el);
|
2062
|
+
}
|
2063
|
+
});
|
2064
|
+
}
|
2065
|
+
tooltips_nodeList.set(el, {
|
2066
|
+
opts: opts,
|
2067
|
+
popper: popper,
|
2068
|
+
popperInstance: null
|
2069
|
+
});
|
2070
|
+
},
|
2071
|
+
updated: function updated(el, binding) {
|
2072
|
+
if (tooltips_nodeList.get(el)) {
|
2073
|
+
tooltips_nodeList.get(el).opts = getOpts(binding);
|
2074
|
+
}
|
2075
|
+
},
|
2076
|
+
unmounted: function unmounted(el) {
|
2077
|
+
hide(el);
|
2078
|
+
tooltips_nodeList["delete"](el);
|
2079
|
+
}
|
2080
|
+
};
|
2081
|
+
/**
|
2082
|
+
* 初始化配置
|
2083
|
+
* @returns tooltips配置
|
2084
|
+
*/
|
2085
|
+
function initOptions() {
|
2086
|
+
var defaultOpts = {
|
2087
|
+
arrow: true,
|
2088
|
+
disabled: false,
|
2089
|
+
trigger: 'hover',
|
2090
|
+
theme: 'dark',
|
2091
|
+
content: '',
|
2092
|
+
showOnInit: false,
|
2093
|
+
placement: 'top',
|
2094
|
+
distance: 8,
|
2095
|
+
extCls: '',
|
2096
|
+
sameWidth: false,
|
2097
|
+
delay: 0,
|
2098
|
+
onShow: function onShow() {},
|
2099
|
+
onHide: function onHide() {}
|
2100
|
+
};
|
2101
|
+
return defaultOpts;
|
2102
|
+
}
|
2103
|
+
/**
|
2104
|
+
* 获取配置
|
2105
|
+
* @returns tooltips配置
|
2106
|
+
*/
|
2107
|
+
function getOpts(binding) {
|
2108
|
+
var opts = initOptions();
|
2109
|
+
if (_typeof(binding.value) === 'object') {
|
2110
|
+
Object.assign(opts, binding.value);
|
2111
|
+
} else {
|
2112
|
+
opts.content = binding.value;
|
2113
|
+
}
|
2114
|
+
return opts;
|
2115
|
+
}
|
2116
|
+
/**
|
2117
|
+
* 创建tooltips DOM
|
2118
|
+
* @param opts
|
2119
|
+
* @returns
|
2120
|
+
*/
|
2121
|
+
function renderContext(value, content) {
|
2122
|
+
if (typeof value === 'string') {
|
2123
|
+
content.innerText = value;
|
2124
|
+
} else {
|
2125
|
+
// 如果 content 是 Vue 组件的实例,则挂载它
|
2126
|
+
var container = document.createElement('div');
|
2127
|
+
var vnode = (0,external_vue_namespaceObject.h)(value);
|
2128
|
+
(0,external_vue_namespaceObject.render)(vnode, container);
|
2129
|
+
content.innerHTML = container.innerHTML;
|
2130
|
+
}
|
2131
|
+
}
|
2132
|
+
function renderContent(opts) {
|
2133
|
+
var value = opts.content,
|
2134
|
+
hasArrow = opts.arrow,
|
2135
|
+
theme = opts.theme,
|
2136
|
+
extCls = opts.extCls;
|
2137
|
+
var isLight = theme === 'light';
|
2138
|
+
var zIndex = shared_namespaceObject.bkZIndexManager.getPopperIndex();
|
2139
|
+
var content = document.createElement('div');
|
2140
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
2141
|
+
content.className = "".concat((0,shared_namespaceObject.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
|
2142
|
+
content.innerText = value;
|
2143
|
+
content.style.zIndex = String(zIndex);
|
2144
|
+
renderContext(value, content);
|
2145
|
+
if (hasArrow) {
|
2146
|
+
var arrow = renderArrow();
|
2147
|
+
content.appendChild(arrow);
|
2148
|
+
}
|
2149
|
+
return content;
|
2150
|
+
}
|
2151
|
+
/**
|
2152
|
+
* 渲染箭头dom
|
2153
|
+
* @returns arrow DOM
|
2154
|
+
*/
|
2155
|
+
function renderArrow() {
|
2156
|
+
var arrow = document.createElement('div');
|
2157
|
+
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
2158
|
+
arrow.className = (0,shared_namespaceObject.resolveClassName)('popper-arrow', prefix);
|
2159
|
+
arrow.setAttribute('data-popper-arrow', '');
|
2160
|
+
return arrow;
|
2161
|
+
}
|
2162
|
+
/**
|
2163
|
+
* 创建popper实例
|
2164
|
+
* @param el
|
2165
|
+
* @param popper
|
2166
|
+
* @returns popper实例
|
2167
|
+
*/
|
2168
|
+
function createPopperInstance(el, popper) {
|
2169
|
+
var _nodeList$get = tooltips_nodeList.get(el),
|
2170
|
+
opts = _nodeList$get.opts;
|
2171
|
+
var placement = opts.placement,
|
2172
|
+
distance = opts.distance,
|
2173
|
+
sameWidth = opts.sameWidth;
|
2174
|
+
var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
|
2175
|
+
placement: placement,
|
2176
|
+
modifiers: [{
|
2177
|
+
name: 'offset',
|
2178
|
+
options: {
|
2179
|
+
offset: [0, distance]
|
2180
|
+
}
|
2181
|
+
}, {
|
2182
|
+
name: 'arrow',
|
2183
|
+
options: {
|
2184
|
+
padding: 5
|
2185
|
+
}
|
2186
|
+
}].concat(_toConsumableArray(sameWidth ? [{
|
2187
|
+
name: 'sameWidth',
|
2188
|
+
enabled: true,
|
2189
|
+
phase: 'beforeWrite',
|
2190
|
+
requires: ['computeStyles'],
|
2191
|
+
fn: function fn(_ref) {
|
2192
|
+
var state = _ref.state;
|
2193
|
+
state.styles.popper.width = "".concat(state.rects.reference.width, "px");
|
2194
|
+
},
|
2195
|
+
effect: function effect(_ref2) {
|
2196
|
+
var state = _ref2.state;
|
2197
|
+
state.elements.popper.style.overflowWrap = 'break-word';
|
2198
|
+
state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
|
2199
|
+
}
|
2200
|
+
}] : []))
|
2201
|
+
});
|
2202
|
+
return popperInstance;
|
2203
|
+
}
|
2204
|
+
/**
|
2205
|
+
* 显示
|
2206
|
+
* @param el
|
2207
|
+
*/
|
2208
|
+
function show(el) {
|
2209
|
+
var _nodeList$get2 = tooltips_nodeList.get(el),
|
2210
|
+
popper = _nodeList$get2.popper,
|
2211
|
+
opts = _nodeList$get2.opts;
|
2212
|
+
var disabled = opts.disabled,
|
2213
|
+
content = opts.content,
|
2214
|
+
hasArrow = opts.arrow,
|
2215
|
+
onShow = opts.onShow,
|
2216
|
+
boundary = opts.boundary,
|
2217
|
+
_opts$modifiers = opts.modifiers,
|
2218
|
+
modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
|
2219
|
+
if (disabled) return;
|
2220
|
+
renderContext(content, popper);
|
2221
|
+
if (hasArrow) {
|
2222
|
+
var arrow = renderArrow();
|
2223
|
+
popper.appendChild(arrow);
|
2224
|
+
}
|
2225
|
+
var container = document.body;
|
2226
|
+
if (boundary) {
|
2227
|
+
if (boundary === 'parent') {
|
2228
|
+
container = el.parentElement;
|
2229
|
+
} else if (boundary instanceof HTMLElement) {
|
2230
|
+
container = boundary;
|
2231
|
+
}
|
2232
|
+
}
|
2233
|
+
container.appendChild(popper);
|
2234
|
+
var popperInstance = createPopperInstance(el, popper);
|
2235
|
+
onShow();
|
2236
|
+
// Make the tooltip visible
|
2237
|
+
popper.setAttribute('data-show', '');
|
2238
|
+
// Enable the event listeners
|
2239
|
+
popperInstance.setOptions(function (options) {
|
2240
|
+
return tooltips_objectSpread(tooltips_objectSpread({}, options), {}, {
|
2241
|
+
modifiers: [].concat(_toConsumableArray(options.modifiers), _toConsumableArray(modifiers), [{
|
2242
|
+
name: 'eventListeners',
|
2243
|
+
enabled: true
|
2244
|
+
}])
|
2245
|
+
});
|
2246
|
+
});
|
2247
|
+
// Update its position
|
2248
|
+
popperInstance.forceUpdate();
|
2249
|
+
tooltips_nodeList.get(el).popperInstance = popperInstance;
|
2250
|
+
}
|
2251
|
+
/**
|
2252
|
+
* 隐藏
|
2253
|
+
* @param el
|
2254
|
+
*/
|
2255
|
+
function hide(el) {
|
2256
|
+
if (!tooltips_nodeList.get(el)) return;
|
2257
|
+
var _nodeList$get3 = tooltips_nodeList.get(el),
|
2258
|
+
popper = _nodeList$get3.popper,
|
2259
|
+
popperInstance = _nodeList$get3.popperInstance,
|
2260
|
+
opts = _nodeList$get3.opts;
|
2261
|
+
var onHide = opts.onHide;
|
2262
|
+
if (popper && document.body.contains(popper)) {
|
2263
|
+
var _popper$parentNode;
|
2264
|
+
popper.removeAttribute('data-show');
|
2265
|
+
popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
|
2266
|
+
popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
|
2267
|
+
onHide();
|
2268
|
+
}
|
2269
|
+
}
|
2270
|
+
/* harmony default export */ const src_tooltips = (tooltips);
|
2271
|
+
;// external "../loading"
|
2272
|
+
var external_loading_x = (y) => {
|
2273
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2274
|
+
}
|
2275
|
+
var external_loading_y = (x) => (() => (x))
|
2276
|
+
const external_loading_namespaceObject = external_loading_x({ });
|
2277
|
+
;// external "../overflow-title"
|
2278
|
+
var external_overflow_title_x = (y) => {
|
2279
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2280
|
+
}
|
2281
|
+
var external_overflow_title_y = (x) => (() => (x))
|
2282
|
+
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
2283
|
+
;// ../../packages/directives/src/index.ts
|
2284
|
+
/*
|
2285
|
+
* Tencent is pleased to support the open source community by making
|
2286
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2287
|
+
*
|
2288
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
2289
|
+
*
|
2290
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2291
|
+
*
|
2292
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
2293
|
+
*
|
2294
|
+
* ---------------------------------------------------
|
2295
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
2296
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
2297
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
2298
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2299
|
+
*
|
2300
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2301
|
+
* the Software.
|
2302
|
+
*
|
2303
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2304
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2305
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2306
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2307
|
+
* IN THE SOFTWARE.
|
2308
|
+
*/
|
2309
|
+
|
2310
|
+
|
2311
|
+
|
2312
|
+
|
2313
|
+
|
2314
|
+
|
2315
|
+
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
2316
|
+
;// external "../input"
|
2317
|
+
var input_x = (y) => {
|
2318
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2319
|
+
}
|
2320
|
+
var input_y = (x) => (() => (x))
|
2321
|
+
const input_namespaceObject = input_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__["default"]) });
|
2322
|
+
;// external "../input/input.less"
|
2323
|
+
var input_less_x = (y) => {
|
2324
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2325
|
+
}
|
2326
|
+
var input_less_y = (x) => (() => (x))
|
1076
2327
|
const input_less_namespaceObject = input_less_x({ });
|
1077
|
-
;//
|
1078
|
-
var loading_x = y => {
|
1079
|
-
var
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
2328
|
+
;// external "../loading"
|
2329
|
+
var loading_x = (y) => {
|
2330
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2331
|
+
}
|
2332
|
+
var loading_y = (x) => (() => (x))
|
2333
|
+
const loading_namespaceObject = loading_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__["default"]) });
|
2334
|
+
;// external "../loading/loading.less"
|
2335
|
+
var loading_less_x = (y) => {
|
2336
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2337
|
+
}
|
2338
|
+
var loading_less_y = (x) => (() => (x))
|
1084
2339
|
const loading_less_namespaceObject = loading_less_x({ });
|
1085
|
-
;//
|
1086
|
-
var popover_x = y => {
|
1087
|
-
var
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
2340
|
+
;// external "../popover"
|
2341
|
+
var popover_x = (y) => {
|
2342
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2343
|
+
}
|
2344
|
+
var popover_y = (x) => (() => (x))
|
2345
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"]) });
|
2346
|
+
;// external "../popover/popover.less"
|
2347
|
+
var popover_less_x = (y) => {
|
2348
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2349
|
+
}
|
2350
|
+
var popover_less_y = (x) => (() => (x))
|
1092
2351
|
const popover_less_namespaceObject = popover_less_x({ });
|
1093
|
-
;//
|
1094
|
-
var virtual_render_x = y => {
|
1095
|
-
var
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
2352
|
+
;// external "../virtual-render"
|
2353
|
+
var virtual_render_x = (y) => {
|
2354
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2355
|
+
}
|
2356
|
+
var virtual_render_y = (x) => (() => (x))
|
2357
|
+
const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__["default"]) });
|
2358
|
+
;// external "../virtual-render/virtual-render.less"
|
2359
|
+
var virtual_render_less_x = (y) => {
|
2360
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2361
|
+
}
|
2362
|
+
var virtual_render_less_y = (x) => (() => (x))
|
1100
2363
|
const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
1101
|
-
;//
|
1102
|
-
var merge_x = y => {
|
1103
|
-
var
|
1104
|
-
|
1105
|
-
|
2364
|
+
;// external "lodash/merge"
|
2365
|
+
var merge_x = (y) => {
|
2366
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
2367
|
+
}
|
2368
|
+
var merge_y = (x) => (() => (x))
|
2369
|
+
const merge_namespaceObject = merge_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"]) });
|
2370
|
+
;// ../../packages/select/src/pinyin/dict.js
|
1106
2371
|
/*
|
1107
2372
|
* Tencent is pleased to support the open source community by making
|
1108
2373
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2000,7 +3265,7 @@ const EXCEPTIONS = {
|
|
2000
3265
|
EXCEPTIONS,
|
2001
3266
|
});
|
2002
3267
|
|
2003
|
-
;//
|
3268
|
+
;// ../../packages/select/src/pinyin/core.js
|
2004
3269
|
/*
|
2005
3270
|
* Tencent is pleased to support the open source community by making
|
2006
3271
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2167,7 +3432,7 @@ function parse(str) {
|
|
2167
3432
|
},
|
2168
3433
|
});
|
2169
3434
|
|
2170
|
-
;//
|
3435
|
+
;// ../../packages/select/src/pinyin/patchers/56l.js
|
2171
3436
|
/*
|
2172
3437
|
* Tencent is pleased to support the open source community by making
|
2173
3438
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2260,7 +3525,7 @@ function shouldPatch(toToken) {
|
|
2260
3525
|
shouldPatch,
|
2261
3526
|
});
|
2262
3527
|
|
2263
|
-
;//
|
3528
|
+
;// ../../packages/select/src/pinyin/index.js
|
2264
3529
|
/*
|
2265
3530
|
* Tencent is pleased to support the open source community by making
|
2266
3531
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2300,23 +3565,31 @@ if (core.isSupported() && _56l.shouldPatch(core.genToken)) {
|
|
2300
3565
|
|
2301
3566
|
/* harmony default export */ const pinyin = (core);
|
2302
3567
|
|
2303
|
-
;//
|
2304
|
-
var overflow_title_x = y => {
|
2305
|
-
var
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
|
2311
|
-
|
2312
|
-
|
2313
|
-
var
|
3568
|
+
;// external "../overflow-title"
|
3569
|
+
var overflow_title_x = (y) => {
|
3570
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3571
|
+
}
|
3572
|
+
var overflow_title_y = (x) => (() => (x))
|
3573
|
+
const overflow_title_namespaceObject = overflow_title_x({ ["OverflowTitle"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__.OverflowTitle) });
|
3574
|
+
;// external "../tag"
|
3575
|
+
var tag_x = (y) => {
|
3576
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3577
|
+
}
|
3578
|
+
var tag_y = (x) => (() => (x))
|
3579
|
+
const tag_namespaceObject = tag_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__["default"]) });
|
3580
|
+
;// external "../tag/tag.less"
|
3581
|
+
var tag_less_x = (y) => {
|
3582
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3583
|
+
}
|
3584
|
+
var tag_less_y = (x) => (() => (x))
|
2314
3585
|
const tag_less_namespaceObject = tag_less_x({ });
|
2315
|
-
;//
|
2316
|
-
var debounce_x = y => {
|
2317
|
-
var
|
2318
|
-
|
2319
|
-
|
3586
|
+
;// external "lodash/debounce"
|
3587
|
+
var debounce_x = (y) => {
|
3588
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
3589
|
+
}
|
3590
|
+
var debounce_y = (x) => (() => (x))
|
3591
|
+
const debounce_namespaceObject = debounce_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"]) });
|
3592
|
+
;// ../../packages/select/src/selectTagInput.tsx
|
2320
3593
|
|
2321
3594
|
|
2322
3595
|
/*
|
@@ -2356,7 +3629,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2356
3629
|
/* harmony default export */ const selectTagInput = ((0,external_vue_namespaceObject.defineComponent)({
|
2357
3630
|
name: 'SelectTagInput',
|
2358
3631
|
directives: {
|
2359
|
-
bkTooltips:
|
3632
|
+
bkTooltips: src_tooltips
|
2360
3633
|
},
|
2361
3634
|
props: {
|
2362
3635
|
selected: {
|
@@ -2419,6 +3692,8 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2419
3692
|
};
|
2420
3693
|
var handleKeydown = function handleKeydown(e) {
|
2421
3694
|
switch (e.code) {
|
3695
|
+
// 主键盘及数字小键盘的 Enter
|
3696
|
+
case 'NumpadEnter':
|
2422
3697
|
case 'Enter':
|
2423
3698
|
{
|
2424
3699
|
emit('enter', e.target.value, e);
|
@@ -2565,12 +3840,12 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2565
3840
|
}, null)]), (_this$$slots5 = this.$slots) === null || _this$$slots5 === void 0 || (_this$$slots5$suffix = _this$$slots5.suffix) === null || _this$$slots5$suffix === void 0 ? void 0 : _this$$slots5$suffix.call(_this$$slots5)]);
|
2566
3841
|
}
|
2567
3842
|
}));
|
2568
|
-
;//
|
3843
|
+
;// ../../packages/select/src/select.tsx
|
2569
3844
|
|
2570
3845
|
|
2571
3846
|
|
2572
3847
|
|
2573
|
-
function
|
3848
|
+
function select_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = select_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; } } }; }
|
2574
3849
|
function select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return select_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 select_arrayLikeToArray(o, minLen); }
|
2575
3850
|
function select_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; }
|
2576
3851
|
function select_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -2624,7 +3899,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2624
3899
|
/* harmony default export */ const src_select = ((0,external_vue_namespaceObject.defineComponent)({
|
2625
3900
|
name: 'Select',
|
2626
3901
|
directives: {
|
2627
|
-
clickoutside:
|
3902
|
+
clickoutside: clickoutside
|
2628
3903
|
},
|
2629
3904
|
props: {
|
2630
3905
|
modelValue: shared_namespaceObject.PropTypes.any,
|
@@ -2759,7 +4034,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2759
4034
|
});
|
2760
4035
|
var localSelectAllText = (0,external_vue_namespaceObject.computed)(function () {
|
2761
4036
|
if (props.selectAllText === undefined) {
|
2762
|
-
return t.value.
|
4037
|
+
return t.value.selectAll;
|
2763
4038
|
}
|
2764
4039
|
return props.selectAllText;
|
2765
4040
|
});
|
@@ -2921,7 +4196,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2921
4196
|
reference: selectTagInputRef.value,
|
2922
4197
|
offset: 4,
|
2923
4198
|
popoverDelay: 0,
|
2924
|
-
renderType: shared_namespaceObject.RenderType.AUTO
|
4199
|
+
renderType: shared_namespaceObject.RenderType.AUTO,
|
4200
|
+
referenceCls: resolveClassName('select-popover-reference')
|
2925
4201
|
}, popoverOptions.value);
|
2926
4202
|
});
|
2927
4203
|
var _useRegistry = useRegistry(optionsMap),
|
@@ -3285,7 +4561,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3285
4561
|
// 处理options value为对象类型,引用类型变更后,回显不对问题
|
3286
4562
|
var tmpValue = value;
|
3287
4563
|
if (_typeof(tmpValue) === 'object') {
|
3288
|
-
var _iterator =
|
4564
|
+
var _iterator = select_createForOfIteratorHelper(optionsMap.value.keys()),
|
3289
4565
|
_step;
|
3290
4566
|
try {
|
3291
4567
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
@@ -3374,6 +4650,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3374
4650
|
break;
|
3375
4651
|
}
|
3376
4652
|
// 选择选项
|
4653
|
+
case 'NumpadEnter':
|
3377
4654
|
case 'Enter':
|
3378
4655
|
{
|
3379
4656
|
var value = e.target.value;
|
@@ -3538,7 +4815,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3538
4815
|
"class": _this.resolveClassName('select-checkbox'),
|
3539
4816
|
"indeterminate": !_this.isAllSelected && !!_this.selected.length && !_this.isAll,
|
3540
4817
|
"modelValue": _this.isAllSelected
|
3541
|
-
}, null), _this.
|
4818
|
+
}, null), _this.localSelectAllText]);
|
3542
4819
|
};
|
3543
4820
|
// 全部icon支持自定义
|
3544
4821
|
var renderAllIcon = function renderAllIcon() {
|
@@ -3664,6 +4941,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3664
4941
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
3665
4942
|
"id": item[_this.idKey],
|
3666
4943
|
"key": item[_this.idKey],
|
4944
|
+
"disabled": !!item.disabled,
|
3667
4945
|
"name": item[_this.displayKey]
|
3668
4946
|
}, typeof optionRender === 'function' ? {
|
3669
4947
|
"default": function _default() {
|
@@ -3681,6 +4959,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3681
4959
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
3682
4960
|
"id": item[_this.idKey],
|
3683
4961
|
"key": item[_this.idKey],
|
4962
|
+
"disabled": !!item.disabled,
|
3684
4963
|
"name": item[_this.displayKey]
|
3685
4964
|
}, typeof optionRender === 'function' ? {
|
3686
4965
|
"default": function _default() {
|
@@ -3758,7 +5037,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3758
5037
|
})]);
|
3759
5038
|
}
|
3760
5039
|
}));
|
3761
|
-
;//
|
5040
|
+
;// ../../packages/select/src/index.ts
|
3762
5041
|
/*
|
3763
5042
|
* Tencent is pleased to support the open source community by making
|
3764
5043
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3788,16 +5067,16 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3788
5067
|
|
3789
5068
|
|
3790
5069
|
|
5070
|
+
|
3791
5071
|
var BkSelect = (0,shared_namespaceObject.withInstallProps)(src_select, {
|
3792
5072
|
Option: src_option,
|
3793
5073
|
Group: optionGroup
|
3794
5074
|
});
|
3795
5075
|
/* harmony default export */ const src = (BkSelect);
|
3796
5076
|
|
3797
|
-
})();
|
3798
|
-
|
3799
5077
|
var __webpack_exports__BkOption = __webpack_exports__.BkOption;
|
3800
5078
|
var __webpack_exports__BkOptionGroup = __webpack_exports__.BkOptionGroup;
|
3801
5079
|
var __webpack_exports__BkSelect = __webpack_exports__.BkSelect;
|
3802
5080
|
var __webpack_exports__default = __webpack_exports__["default"];
|
3803
|
-
|
5081
|
+
var __webpack_exports__useHover = __webpack_exports__.useHover;
|
5082
|
+
export { __webpack_exports__BkOption as BkOption, __webpack_exports__BkOptionGroup as BkOptionGroup, __webpack_exports__BkSelect as BkSelect, __webpack_exports__default as default, __webpack_exports__useHover as useHover };
|