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/directives/index.js
CHANGED
@@ -1,21 +1,30 @@
|
|
1
1
|
import "../styles/reset.css";
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
8
8
|
/******/ var __webpack_modules__ = ({
|
9
9
|
|
10
|
-
/***/
|
11
|
-
/***/ ((
|
10
|
+
/***/ 205:
|
11
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
12
12
|
|
13
|
-
|
13
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
14
|
+
/* harmony export */ "default": () => (/* binding */ toPropertyKey)
|
15
|
+
/* harmony export */ });
|
16
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7545);
|
17
|
+
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
|
14
18
|
|
15
19
|
|
20
|
+
function toPropertyKey(t) {
|
21
|
+
var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
|
22
|
+
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
|
23
|
+
}
|
24
|
+
|
16
25
|
/***/ }),
|
17
26
|
|
18
|
-
/***/
|
27
|
+
/***/ 1043:
|
19
28
|
/***/ ((module) => {
|
20
29
|
|
21
30
|
/**
|
@@ -65,7 +74,384 @@ module.exports = ExecutionEnvironment;
|
|
65
74
|
|
66
75
|
/***/ }),
|
67
76
|
|
68
|
-
/***/
|
77
|
+
/***/ 2586:
|
78
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Copyright 2013-2015, Facebook, Inc.
|
82
|
+
* All rights reserved.
|
83
|
+
*
|
84
|
+
* This source code is licensed under the BSD-style license found in the
|
85
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
86
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
87
|
+
*
|
88
|
+
* @providesModule isEventSupported
|
89
|
+
*/
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
var ExecutionEnvironment = __webpack_require__(1043);
|
94
|
+
|
95
|
+
var useHasFeature;
|
96
|
+
if (ExecutionEnvironment.canUseDOM) {
|
97
|
+
useHasFeature =
|
98
|
+
document.implementation &&
|
99
|
+
document.implementation.hasFeature &&
|
100
|
+
// always returns true in newer browsers as per the standard.
|
101
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
102
|
+
document.implementation.hasFeature('', '') !== true;
|
103
|
+
}
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Checks if an event is supported in the current execution environment.
|
107
|
+
*
|
108
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
109
|
+
* `reset`, `load`, `error`, and `select`.
|
110
|
+
*
|
111
|
+
* Borrows from Modernizr.
|
112
|
+
*
|
113
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
114
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
115
|
+
* @return {boolean} True if the event is supported.
|
116
|
+
* @internal
|
117
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
118
|
+
*/
|
119
|
+
function isEventSupported(eventNameSuffix, capture) {
|
120
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
121
|
+
capture && !('addEventListener' in document)) {
|
122
|
+
return false;
|
123
|
+
}
|
124
|
+
|
125
|
+
var eventName = 'on' + eventNameSuffix;
|
126
|
+
var isSupported = eventName in document;
|
127
|
+
|
128
|
+
if (!isSupported) {
|
129
|
+
var element = document.createElement('div');
|
130
|
+
element.setAttribute(eventName, 'return;');
|
131
|
+
isSupported = typeof element[eventName] === 'function';
|
132
|
+
}
|
133
|
+
|
134
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
135
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
136
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
137
|
+
}
|
138
|
+
|
139
|
+
return isSupported;
|
140
|
+
}
|
141
|
+
|
142
|
+
module.exports = isEventSupported;
|
143
|
+
|
144
|
+
|
145
|
+
/***/ }),
|
146
|
+
|
147
|
+
/***/ 2880:
|
148
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
149
|
+
|
150
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
151
|
+
/* harmony export */ "default": () => (/* binding */ _nonIterableSpread)
|
152
|
+
/* harmony export */ });
|
153
|
+
function _nonIterableSpread() {
|
154
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
155
|
+
}
|
156
|
+
|
157
|
+
/***/ }),
|
158
|
+
|
159
|
+
/***/ 3492:
|
160
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
161
|
+
|
162
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
163
|
+
/* harmony export */ "default": () => (/* binding */ _arrayWithoutHoles)
|
164
|
+
/* harmony export */ });
|
165
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6284);
|
166
|
+
|
167
|
+
function _arrayWithoutHoles(arr) {
|
168
|
+
if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
|
169
|
+
}
|
170
|
+
|
171
|
+
/***/ }),
|
172
|
+
|
173
|
+
/***/ 4430:
|
174
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
175
|
+
|
176
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
177
|
+
/* harmony export */ "default": () => (/* binding */ _iterableToArray)
|
178
|
+
/* harmony export */ });
|
179
|
+
function _iterableToArray(iter) {
|
180
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
181
|
+
}
|
182
|
+
|
183
|
+
/***/ }),
|
184
|
+
|
185
|
+
/***/ 4586:
|
186
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
187
|
+
|
188
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
189
|
+
/* harmony export */ "default": () => (/* binding */ _defineProperty)
|
190
|
+
/* harmony export */ });
|
191
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(205);
|
192
|
+
|
193
|
+
function _defineProperty(obj, key, value) {
|
194
|
+
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
|
195
|
+
if (key in obj) {
|
196
|
+
Object.defineProperty(obj, key, {
|
197
|
+
value: value,
|
198
|
+
enumerable: true,
|
199
|
+
configurable: true,
|
200
|
+
writable: true
|
201
|
+
});
|
202
|
+
} else {
|
203
|
+
obj[key] = value;
|
204
|
+
}
|
205
|
+
return obj;
|
206
|
+
}
|
207
|
+
|
208
|
+
/***/ }),
|
209
|
+
|
210
|
+
/***/ 5022:
|
211
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
212
|
+
|
213
|
+
/**
|
214
|
+
* Copyright (c) 2015, Facebook, Inc.
|
215
|
+
* All rights reserved.
|
216
|
+
*
|
217
|
+
* This source code is licensed under the BSD-style license found in the
|
218
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
219
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
220
|
+
*
|
221
|
+
* @providesModule normalizeWheel
|
222
|
+
* @typechecks
|
223
|
+
*/
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
228
|
+
|
229
|
+
var isEventSupported = __webpack_require__(2586);
|
230
|
+
|
231
|
+
|
232
|
+
// Reasonable defaults
|
233
|
+
var PIXEL_STEP = 10;
|
234
|
+
var LINE_HEIGHT = 40;
|
235
|
+
var PAGE_HEIGHT = 800;
|
236
|
+
|
237
|
+
/**
|
238
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
239
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
240
|
+
* your questions.
|
241
|
+
*
|
242
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
243
|
+
* like your bestest friend. * hugs *
|
244
|
+
*
|
245
|
+
* As of today, there are 4 DOM event types you can listen to:
|
246
|
+
*
|
247
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
248
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
249
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
250
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
251
|
+
*
|
252
|
+
* So what to do? The is the best:
|
253
|
+
*
|
254
|
+
* normalizeWheel.getEventType();
|
255
|
+
*
|
256
|
+
* In your event callback, use this code to get sane interpretation of the
|
257
|
+
* deltas. This code will return an object with properties:
|
258
|
+
*
|
259
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
260
|
+
* spinY -- " - y plane
|
261
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
262
|
+
* pixelY -- " - y plane
|
263
|
+
*
|
264
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
265
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
266
|
+
* significantly on different platforms and browsers, forgetting that you can
|
267
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
268
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
269
|
+
* linear speed or acceleration.
|
270
|
+
*
|
271
|
+
* This code does its best to normalize the deltas for you:
|
272
|
+
*
|
273
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
274
|
+
* dragged). This is super useful for zoom support where you want to
|
275
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
276
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
277
|
+
* resolve a single slow step on a wheel to 1.
|
278
|
+
*
|
279
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
280
|
+
* get the crazy differences between browsers, but at least it'll be in
|
281
|
+
* pixels!
|
282
|
+
*
|
283
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
284
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
285
|
+
* This matches the newer 'wheel' event.
|
286
|
+
*
|
287
|
+
* Why are there spinX, spinY (or pixels)?
|
288
|
+
*
|
289
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
290
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
291
|
+
*
|
292
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
293
|
+
*
|
294
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
295
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
296
|
+
* you know.
|
297
|
+
*
|
298
|
+
* Implementation info:
|
299
|
+
*
|
300
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
301
|
+
* average mouse:
|
302
|
+
*
|
303
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
304
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
305
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
306
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
307
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
308
|
+
*
|
309
|
+
* On the trackpad:
|
310
|
+
*
|
311
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
312
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
313
|
+
*
|
314
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
315
|
+
* also missing delta values.
|
316
|
+
*
|
317
|
+
* The 'wheel' event is more standard:
|
318
|
+
*
|
319
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
320
|
+
*
|
321
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
322
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
323
|
+
* backward compatibility with older events. Those other values help us
|
324
|
+
* better normalize spin speed. Example of what the browsers provide:
|
325
|
+
*
|
326
|
+
* | event.wheelDelta | event.detail
|
327
|
+
* ------------------+------------------+--------------
|
328
|
+
* Safari v5/OS X | -120 | 0
|
329
|
+
* Safari v5/Win7 | -120 | 0
|
330
|
+
* Chrome v17/OS X | -120 | 0
|
331
|
+
* Chrome v17/Win7 | -120 | 0
|
332
|
+
* IE9/Win7 | -120 | undefined
|
333
|
+
* Firefox v4/OS X | undefined | 1
|
334
|
+
* Firefox v4/Win7 | undefined | 3
|
335
|
+
*
|
336
|
+
*/
|
337
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
338
|
+
var sX = 0, sY = 0, // spinX, spinY
|
339
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
340
|
+
|
341
|
+
// Legacy
|
342
|
+
if ('detail' in event) { sY = event.detail; }
|
343
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
344
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
345
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
346
|
+
|
347
|
+
// side scrolling on FF with DOMMouseScroll
|
348
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
349
|
+
sX = sY;
|
350
|
+
sY = 0;
|
351
|
+
}
|
352
|
+
|
353
|
+
pX = sX * PIXEL_STEP;
|
354
|
+
pY = sY * PIXEL_STEP;
|
355
|
+
|
356
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
357
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
358
|
+
|
359
|
+
if ((pX || pY) && event.deltaMode) {
|
360
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
361
|
+
pX *= LINE_HEIGHT;
|
362
|
+
pY *= LINE_HEIGHT;
|
363
|
+
} else { // delta in PAGE units
|
364
|
+
pX *= PAGE_HEIGHT;
|
365
|
+
pY *= PAGE_HEIGHT;
|
366
|
+
}
|
367
|
+
}
|
368
|
+
|
369
|
+
// Fall-back if spin cannot be determined
|
370
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
371
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
372
|
+
|
373
|
+
return { spinX : sX,
|
374
|
+
spinY : sY,
|
375
|
+
pixelX : pX,
|
376
|
+
pixelY : pY };
|
377
|
+
}
|
378
|
+
|
379
|
+
|
380
|
+
/**
|
381
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
382
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
383
|
+
* 'wheel' event, making spin speed determination impossible.
|
384
|
+
*/
|
385
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
386
|
+
return (UserAgent_DEPRECATED.firefox())
|
387
|
+
? 'DOMMouseScroll'
|
388
|
+
: (isEventSupported('wheel'))
|
389
|
+
? 'wheel'
|
390
|
+
: 'mousewheel';
|
391
|
+
};
|
392
|
+
|
393
|
+
module.exports = normalizeWheel;
|
394
|
+
|
395
|
+
|
396
|
+
/***/ }),
|
397
|
+
|
398
|
+
/***/ 5153:
|
399
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
400
|
+
|
401
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
402
|
+
/* harmony export */ "default": () => (/* binding */ _toConsumableArray)
|
403
|
+
/* harmony export */ });
|
404
|
+
/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3492);
|
405
|
+
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4430);
|
406
|
+
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7985);
|
407
|
+
/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2880);
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
function _toConsumableArray(arr) {
|
413
|
+
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
414
|
+
}
|
415
|
+
|
416
|
+
/***/ }),
|
417
|
+
|
418
|
+
/***/ 5166:
|
419
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
420
|
+
|
421
|
+
var x = (y) => {
|
422
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
423
|
+
}
|
424
|
+
var y = (x) => (() => (x))
|
425
|
+
module.exports = x({ ["bkZIndexManager"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName) });
|
426
|
+
|
427
|
+
/***/ }),
|
428
|
+
|
429
|
+
/***/ 5286:
|
430
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
431
|
+
|
432
|
+
var x = (y) => {
|
433
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
434
|
+
}
|
435
|
+
var y = (x) => (() => (x))
|
436
|
+
module.exports = x({ ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render) });
|
437
|
+
|
438
|
+
/***/ }),
|
439
|
+
|
440
|
+
/***/ 6284:
|
441
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
442
|
+
|
443
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
444
|
+
/* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
|
445
|
+
/* harmony export */ });
|
446
|
+
function _arrayLikeToArray(arr, len) {
|
447
|
+
if (len == null || len > arr.length) len = arr.length;
|
448
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
449
|
+
return arr2;
|
450
|
+
}
|
451
|
+
|
452
|
+
/***/ }),
|
453
|
+
|
454
|
+
/***/ 7416:
|
69
455
|
/***/ ((module) => {
|
70
456
|
|
71
457
|
/**
|
@@ -347,269 +733,77 @@ var UserAgent_DEPRECATED = {
|
|
347
733
|
ipad: function() {
|
348
734
|
return _populate() || _ipad;
|
349
735
|
}
|
350
|
-
};
|
351
|
-
|
352
|
-
module.exports = UserAgent_DEPRECATED;
|
353
|
-
|
354
|
-
|
355
|
-
/***/ }),
|
356
|
-
|
357
|
-
/***/ 3541:
|
358
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
359
|
-
|
360
|
-
/**
|
361
|
-
* Copyright 2013-2015, Facebook, Inc.
|
362
|
-
* All rights reserved.
|
363
|
-
*
|
364
|
-
* This source code is licensed under the BSD-style license found in the
|
365
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
366
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
367
|
-
*
|
368
|
-
* @providesModule isEventSupported
|
369
|
-
*/
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
var ExecutionEnvironment = __webpack_require__(7430);
|
374
|
-
|
375
|
-
var useHasFeature;
|
376
|
-
if (ExecutionEnvironment.canUseDOM) {
|
377
|
-
useHasFeature =
|
378
|
-
document.implementation &&
|
379
|
-
document.implementation.hasFeature &&
|
380
|
-
// always returns true in newer browsers as per the standard.
|
381
|
-
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
382
|
-
document.implementation.hasFeature('', '') !== true;
|
383
|
-
}
|
384
|
-
|
385
|
-
/**
|
386
|
-
* Checks if an event is supported in the current execution environment.
|
387
|
-
*
|
388
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
389
|
-
* `reset`, `load`, `error`, and `select`.
|
390
|
-
*
|
391
|
-
* Borrows from Modernizr.
|
392
|
-
*
|
393
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
394
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
395
|
-
* @return {boolean} True if the event is supported.
|
396
|
-
* @internal
|
397
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
398
|
-
*/
|
399
|
-
function isEventSupported(eventNameSuffix, capture) {
|
400
|
-
if (!ExecutionEnvironment.canUseDOM ||
|
401
|
-
capture && !('addEventListener' in document)) {
|
402
|
-
return false;
|
403
|
-
}
|
404
|
-
|
405
|
-
var eventName = 'on' + eventNameSuffix;
|
406
|
-
var isSupported = eventName in document;
|
407
|
-
|
408
|
-
if (!isSupported) {
|
409
|
-
var element = document.createElement('div');
|
410
|
-
element.setAttribute(eventName, 'return;');
|
411
|
-
isSupported = typeof element[eventName] === 'function';
|
412
|
-
}
|
413
|
-
|
414
|
-
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
415
|
-
// This is the only way to test support for the `wheel` event in IE9+.
|
416
|
-
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
417
|
-
}
|
418
|
-
|
419
|
-
return isSupported;
|
420
|
-
}
|
736
|
+
};
|
421
737
|
|
422
|
-
module.exports =
|
738
|
+
module.exports = UserAgent_DEPRECATED;
|
423
739
|
|
424
740
|
|
425
741
|
/***/ }),
|
426
742
|
|
427
|
-
/***/
|
428
|
-
/***/ ((
|
429
|
-
|
430
|
-
/**
|
431
|
-
* Copyright (c) 2015, Facebook, Inc.
|
432
|
-
* All rights reserved.
|
433
|
-
*
|
434
|
-
* This source code is licensed under the BSD-style license found in the
|
435
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
436
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
437
|
-
*
|
438
|
-
* @providesModule normalizeWheel
|
439
|
-
* @typechecks
|
440
|
-
*/
|
743
|
+
/***/ 7545:
|
744
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
441
745
|
|
746
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
747
|
+
/* harmony export */ "default": () => (/* binding */ _typeof)
|
748
|
+
/* harmony export */ });
|
749
|
+
function _typeof(o) {
|
750
|
+
"@babel/helpers - typeof";
|
442
751
|
|
752
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
753
|
+
return typeof o;
|
754
|
+
} : function (o) {
|
755
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
756
|
+
}, _typeof(o);
|
757
|
+
}
|
443
758
|
|
444
|
-
|
759
|
+
/***/ }),
|
445
760
|
|
446
|
-
|
761
|
+
/***/ 7985:
|
762
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
447
763
|
|
764
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
765
|
+
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
766
|
+
/* harmony export */ });
|
767
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6284);
|
448
768
|
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
var
|
769
|
+
function _unsupportedIterableToArray(o, minLen) {
|
770
|
+
if (!o) return;
|
771
|
+
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
772
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
773
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
774
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
775
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
776
|
+
}
|
453
777
|
|
454
|
-
|
455
|
-
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
456
|
-
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
457
|
-
* your questions.
|
458
|
-
*
|
459
|
-
* If you need to react to the mouse wheel in a predictable way, this code is
|
460
|
-
* like your bestest friend. * hugs *
|
461
|
-
*
|
462
|
-
* As of today, there are 4 DOM event types you can listen to:
|
463
|
-
*
|
464
|
-
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
465
|
-
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
466
|
-
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
467
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
468
|
-
*
|
469
|
-
* So what to do? The is the best:
|
470
|
-
*
|
471
|
-
* normalizeWheel.getEventType();
|
472
|
-
*
|
473
|
-
* In your event callback, use this code to get sane interpretation of the
|
474
|
-
* deltas. This code will return an object with properties:
|
475
|
-
*
|
476
|
-
* spinX -- normalized spin speed (use for zoom) - x plane
|
477
|
-
* spinY -- " - y plane
|
478
|
-
* pixelX -- normalized distance (to pixels) - x plane
|
479
|
-
* pixelY -- " - y plane
|
480
|
-
*
|
481
|
-
* Wheel values are provided by the browser assuming you are using the wheel to
|
482
|
-
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
483
|
-
* significantly on different platforms and browsers, forgetting that you can
|
484
|
-
* scroll at different speeds. Some devices (like trackpads) emit more events
|
485
|
-
* at smaller increments with fine granularity, and some emit massive jumps with
|
486
|
-
* linear speed or acceleration.
|
487
|
-
*
|
488
|
-
* This code does its best to normalize the deltas for you:
|
489
|
-
*
|
490
|
-
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
491
|
-
* dragged). This is super useful for zoom support where you want to
|
492
|
-
* throw away the chunky scroll steps on the PC and make those equal to
|
493
|
-
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
494
|
-
* resolve a single slow step on a wheel to 1.
|
495
|
-
*
|
496
|
-
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
497
|
-
* get the crazy differences between browsers, but at least it'll be in
|
498
|
-
* pixels!
|
499
|
-
*
|
500
|
-
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
501
|
-
* should translate to positive value zooming IN, negative zooming OUT.
|
502
|
-
* This matches the newer 'wheel' event.
|
503
|
-
*
|
504
|
-
* Why are there spinX, spinY (or pixels)?
|
505
|
-
*
|
506
|
-
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
507
|
-
* with a mouse. It results in side-scrolling in the browser by default.
|
508
|
-
*
|
509
|
-
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
510
|
-
*
|
511
|
-
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
512
|
-
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
513
|
-
* you know.
|
514
|
-
*
|
515
|
-
* Implementation info:
|
516
|
-
*
|
517
|
-
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
518
|
-
* average mouse:
|
519
|
-
*
|
520
|
-
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
521
|
-
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
522
|
-
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
523
|
-
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
524
|
-
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
525
|
-
*
|
526
|
-
* On the trackpad:
|
527
|
-
*
|
528
|
-
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
529
|
-
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
530
|
-
*
|
531
|
-
* On other/older browsers.. it's more complicated as there can be multiple and
|
532
|
-
* also missing delta values.
|
533
|
-
*
|
534
|
-
* The 'wheel' event is more standard:
|
535
|
-
*
|
536
|
-
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
537
|
-
*
|
538
|
-
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
539
|
-
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
540
|
-
* backward compatibility with older events. Those other values help us
|
541
|
-
* better normalize spin speed. Example of what the browsers provide:
|
542
|
-
*
|
543
|
-
* | event.wheelDelta | event.detail
|
544
|
-
* ------------------+------------------+--------------
|
545
|
-
* Safari v5/OS X | -120 | 0
|
546
|
-
* Safari v5/Win7 | -120 | 0
|
547
|
-
* Chrome v17/OS X | -120 | 0
|
548
|
-
* Chrome v17/Win7 | -120 | 0
|
549
|
-
* IE9/Win7 | -120 | undefined
|
550
|
-
* Firefox v4/OS X | undefined | 1
|
551
|
-
* Firefox v4/Win7 | undefined | 3
|
552
|
-
*
|
553
|
-
*/
|
554
|
-
function normalizeWheel(/*object*/ event) /*object*/ {
|
555
|
-
var sX = 0, sY = 0, // spinX, spinY
|
556
|
-
pX = 0, pY = 0; // pixelX, pixelY
|
778
|
+
/***/ }),
|
557
779
|
|
558
|
-
|
559
|
-
|
560
|
-
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
561
|
-
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
562
|
-
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
780
|
+
/***/ 8283:
|
781
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
563
782
|
|
564
|
-
|
565
|
-
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
566
|
-
sX = sY;
|
567
|
-
sY = 0;
|
568
|
-
}
|
783
|
+
module.exports = __webpack_require__(5022);
|
569
784
|
|
570
|
-
pX = sX * PIXEL_STEP;
|
571
|
-
pY = sY * PIXEL_STEP;
|
572
785
|
|
573
|
-
|
574
|
-
if ('deltaX' in event) { pX = event.deltaX; }
|
786
|
+
/***/ }),
|
575
787
|
|
576
|
-
|
577
|
-
|
578
|
-
pX *= LINE_HEIGHT;
|
579
|
-
pY *= LINE_HEIGHT;
|
580
|
-
} else { // delta in PAGE units
|
581
|
-
pX *= PAGE_HEIGHT;
|
582
|
-
pY *= PAGE_HEIGHT;
|
583
|
-
}
|
584
|
-
}
|
788
|
+
/***/ 9824:
|
789
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
585
790
|
|
586
|
-
|
587
|
-
|
588
|
-
|
791
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
792
|
+
/* harmony export */ "default": () => (/* binding */ toPrimitive)
|
793
|
+
/* harmony export */ });
|
794
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7545);
|
589
795
|
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
796
|
+
function toPrimitive(t, r) {
|
797
|
+
if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
|
798
|
+
var e = t[Symbol.toPrimitive];
|
799
|
+
if (void 0 !== e) {
|
800
|
+
var i = e.call(t, r || "default");
|
801
|
+
if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
|
802
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
803
|
+
}
|
804
|
+
return ("string" === r ? String : Number)(t);
|
594
805
|
}
|
595
806
|
|
596
|
-
|
597
|
-
/**
|
598
|
-
* The best combination if you prefer spinX + spinY normalization. It favors
|
599
|
-
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
600
|
-
* 'wheel' event, making spin speed determination impossible.
|
601
|
-
*/
|
602
|
-
normalizeWheel.getEventType = function() /*string*/ {
|
603
|
-
return (UserAgent_DEPRECATED.firefox())
|
604
|
-
? 'DOMMouseScroll'
|
605
|
-
: (isEventSupported('wheel'))
|
606
|
-
? 'wheel'
|
607
|
-
: 'mousewheel';
|
608
|
-
};
|
609
|
-
|
610
|
-
module.exports = normalizeWheel;
|
611
|
-
|
612
|
-
|
613
807
|
/***/ })
|
614
808
|
|
615
809
|
/******/ });
|
@@ -670,8 +864,6 @@ module.exports = normalizeWheel;
|
|
670
864
|
/******/
|
671
865
|
/************************************************************************/
|
672
866
|
var __webpack_exports__ = {};
|
673
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
674
|
-
(() => {
|
675
867
|
|
676
868
|
// EXPORTS
|
677
869
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -684,7 +876,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
684
876
|
overflowTitle: () => (/* reexport */ external_overflow_title_namespaceObject.overflowTitle)
|
685
877
|
});
|
686
878
|
|
687
|
-
;//
|
879
|
+
;// ../../packages/directives/src/clickoutside.ts
|
688
880
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
689
881
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
690
882
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
@@ -810,21 +1002,15 @@ ClickOutside.install = function (app) {
|
|
810
1002
|
app.directive('bkTooltips', ClickOutside);
|
811
1003
|
};
|
812
1004
|
/* harmony default export */ const clickoutside = (ClickOutside);
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
}
|
823
|
-
;// CONCATENATED MODULE: external "../plugin-popover"
|
824
|
-
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
825
|
-
var y = x => () => x
|
826
|
-
const plugin_popover_namespaceObject = x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"] });
|
827
|
-
;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
|
1005
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
1006
|
+
var esm_typeof = __webpack_require__(7545);
|
1007
|
+
;// external "../plugin-popover"
|
1008
|
+
var x = (y) => {
|
1009
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1010
|
+
}
|
1011
|
+
var y = (x) => (() => (x))
|
1012
|
+
const plugin_popover_namespaceObject = x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
|
1013
|
+
;// ../../packages/directives/src/ellipsis.ts
|
828
1014
|
|
829
1015
|
/*
|
830
1016
|
* Tencent is pleased to support the open source community by making
|
@@ -857,7 +1043,7 @@ var resolveOptions = function resolveOptions(el, binding) {
|
|
857
1043
|
content: '',
|
858
1044
|
target: el
|
859
1045
|
};
|
860
|
-
if (
|
1046
|
+
if ((0,esm_typeof["default"])(binding) === 'object') {
|
861
1047
|
Object.assign(options, binding);
|
862
1048
|
if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
|
863
1049
|
Object.assign(options, binding.popoverOption);
|
@@ -893,10 +1079,9 @@ var createInstance = function createInstance(el, binding) {
|
|
893
1079
|
handleContentLeave();
|
894
1080
|
createTimer && clearTimeout(createTimer);
|
895
1081
|
createTimer = setTimeout(function () {
|
896
|
-
var _targetOptions$conten;
|
897
1082
|
var targetOptions = resolveOptions(el, binding);
|
898
1083
|
targetOptions.isShow = true;
|
899
|
-
targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() :
|
1084
|
+
targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
|
900
1085
|
targetOptions.allowHtml = true;
|
901
1086
|
Object.assign(targetOptions, {
|
902
1087
|
onContentMouseenter: handleContentEnter,
|
@@ -936,9 +1121,9 @@ var ellipsis = {
|
|
936
1121
|
};
|
937
1122
|
/* harmony default export */ const src_ellipsis = (ellipsis);
|
938
1123
|
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
939
|
-
var normalize_wheel = __webpack_require__(
|
1124
|
+
var normalize_wheel = __webpack_require__(8283);
|
940
1125
|
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
941
|
-
;//
|
1126
|
+
;// ../../packages/directives/src/mousewheel.ts
|
942
1127
|
/*
|
943
1128
|
* Tencent is pleased to support the open source community by making
|
944
1129
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -980,96 +1165,26 @@ var mousewheel = {
|
|
980
1165
|
}
|
981
1166
|
};
|
982
1167
|
/* harmony default export */ const src_mousewheel = (mousewheel);
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
}
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
function toPropertyKey(t) {
|
999
|
-
var i = toPrimitive(t, "string");
|
1000
|
-
return "symbol" == _typeof(i) ? i : String(i);
|
1001
|
-
}
|
1002
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1003
|
-
|
1004
|
-
function _defineProperty(obj, key, value) {
|
1005
|
-
key = toPropertyKey(key);
|
1006
|
-
if (key in obj) {
|
1007
|
-
Object.defineProperty(obj, key, {
|
1008
|
-
value: value,
|
1009
|
-
enumerable: true,
|
1010
|
-
configurable: true,
|
1011
|
-
writable: true
|
1012
|
-
});
|
1013
|
-
} else {
|
1014
|
-
obj[key] = value;
|
1015
|
-
}
|
1016
|
-
return obj;
|
1017
|
-
}
|
1018
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1019
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
1020
|
-
if (len == null || len > arr.length) len = arr.length;
|
1021
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1022
|
-
return arr2;
|
1023
|
-
}
|
1024
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1025
|
-
|
1026
|
-
function _arrayWithoutHoles(arr) {
|
1027
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
1028
|
-
}
|
1029
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1030
|
-
function _iterableToArray(iter) {
|
1031
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1032
|
-
}
|
1033
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1034
|
-
|
1035
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
1036
|
-
if (!o) return;
|
1037
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1038
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1039
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1040
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
1041
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1042
|
-
}
|
1043
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1044
|
-
function _nonIterableSpread() {
|
1045
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1046
|
-
}
|
1047
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
function _toConsumableArray(arr) {
|
1053
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1054
|
-
}
|
1055
|
-
;// CONCATENATED MODULE: external "vue"
|
1056
|
-
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1057
|
-
var external_vue_y = x => () => x
|
1058
|
-
const external_vue_namespaceObject = external_vue_x({ ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render });
|
1059
|
-
;// CONCATENATED MODULE: external "../shared"
|
1060
|
-
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1061
|
-
var shared_y = x => () => x
|
1062
|
-
const shared_namespaceObject = shared_x({ ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName });
|
1063
|
-
;// CONCATENATED MODULE: external "@popperjs/core"
|
1064
|
-
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1065
|
-
var core_y = x => () => x
|
1066
|
-
const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
|
1067
|
-
;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
|
1168
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1169
|
+
var defineProperty = __webpack_require__(4586);
|
1170
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1171
|
+
var toConsumableArray = __webpack_require__(5153);
|
1172
|
+
// EXTERNAL MODULE: external "vue"
|
1173
|
+
var external_vue_ = __webpack_require__(5286);
|
1174
|
+
// EXTERNAL MODULE: external "../shared"
|
1175
|
+
var shared_ = __webpack_require__(5166);
|
1176
|
+
;// external "@popperjs/core"
|
1177
|
+
var core_x = (y) => {
|
1178
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1179
|
+
}
|
1180
|
+
var core_y = (x) => (() => (x))
|
1181
|
+
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
1182
|
+
;// ../../packages/directives/src/tooltips.ts
|
1068
1183
|
|
1069
1184
|
|
1070
1185
|
|
1071
1186
|
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; }
|
1072
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
1187
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,defineProperty["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1073
1188
|
/*
|
1074
1189
|
* Tencent is pleased to support the open source community by making
|
1075
1190
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1107,7 +1222,7 @@ var tooltips = {
|
|
1107
1222
|
var popper = renderContent(opts);
|
1108
1223
|
var delayTimeout = null;
|
1109
1224
|
if (showOnInit) {
|
1110
|
-
(0,
|
1225
|
+
(0,external_vue_.nextTick)(function () {
|
1111
1226
|
show(el);
|
1112
1227
|
});
|
1113
1228
|
}
|
@@ -1194,7 +1309,7 @@ function initOptions() {
|
|
1194
1309
|
*/
|
1195
1310
|
function getOpts(binding) {
|
1196
1311
|
var opts = initOptions();
|
1197
|
-
if (
|
1312
|
+
if ((0,esm_typeof["default"])(binding.value) === 'object') {
|
1198
1313
|
Object.assign(opts, binding.value);
|
1199
1314
|
} else {
|
1200
1315
|
opts.content = binding.value;
|
@@ -1212,8 +1327,8 @@ function renderContext(value, content) {
|
|
1212
1327
|
} else {
|
1213
1328
|
// 如果 content 是 Vue 组件的实例,则挂载它
|
1214
1329
|
var container = document.createElement('div');
|
1215
|
-
var vnode = (0,
|
1216
|
-
(0,
|
1330
|
+
var vnode = (0,external_vue_.h)(value);
|
1331
|
+
(0,external_vue_.render)(vnode, container);
|
1217
1332
|
content.innerHTML = container.innerHTML;
|
1218
1333
|
}
|
1219
1334
|
}
|
@@ -1223,10 +1338,10 @@ function renderContent(opts) {
|
|
1223
1338
|
theme = opts.theme,
|
1224
1339
|
extCls = opts.extCls;
|
1225
1340
|
var isLight = theme === 'light';
|
1226
|
-
var zIndex =
|
1341
|
+
var zIndex = shared_.bkZIndexManager.getPopperIndex();
|
1227
1342
|
var content = document.createElement('div');
|
1228
1343
|
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
1229
|
-
content.className = "".concat((0,
|
1344
|
+
content.className = "".concat((0,shared_.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
|
1230
1345
|
content.innerText = value;
|
1231
1346
|
content.style.zIndex = String(zIndex);
|
1232
1347
|
renderContext(value, content);
|
@@ -1243,7 +1358,7 @@ function renderContent(opts) {
|
|
1243
1358
|
function renderArrow() {
|
1244
1359
|
var arrow = document.createElement('div');
|
1245
1360
|
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
1246
|
-
arrow.className = (0,
|
1361
|
+
arrow.className = (0,shared_.resolveClassName)('popper-arrow', prefix);
|
1247
1362
|
arrow.setAttribute('data-popper-arrow', '');
|
1248
1363
|
return arrow;
|
1249
1364
|
}
|
@@ -1271,7 +1386,7 @@ function createPopperInstance(el, popper) {
|
|
1271
1386
|
options: {
|
1272
1387
|
padding: 5
|
1273
1388
|
}
|
1274
|
-
}].concat(
|
1389
|
+
}].concat((0,toConsumableArray["default"])(sameWidth ? [{
|
1275
1390
|
name: 'sameWidth',
|
1276
1391
|
enabled: true,
|
1277
1392
|
phase: 'beforeWrite',
|
@@ -1326,7 +1441,7 @@ function show(el) {
|
|
1326
1441
|
// Enable the event listeners
|
1327
1442
|
popperInstance.setOptions(function (options) {
|
1328
1443
|
return _objectSpread(_objectSpread({}, options), {}, {
|
1329
|
-
modifiers: [].concat(
|
1444
|
+
modifiers: [].concat((0,toConsumableArray["default"])(options.modifiers), (0,toConsumableArray["default"])(modifiers), [{
|
1330
1445
|
name: 'eventListeners',
|
1331
1446
|
enabled: true
|
1332
1447
|
}])
|
@@ -1356,15 +1471,19 @@ function hide(el) {
|
|
1356
1471
|
}
|
1357
1472
|
}
|
1358
1473
|
/* harmony default export */ const src_tooltips = (tooltips);
|
1359
|
-
;//
|
1360
|
-
var external_loading_x = y => {
|
1361
|
-
var
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1474
|
+
;// external "../loading"
|
1475
|
+
var external_loading_x = (y) => {
|
1476
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1477
|
+
}
|
1478
|
+
var external_loading_y = (x) => (() => (x))
|
1479
|
+
const external_loading_namespaceObject = external_loading_x({ ["vBkloading"]: () => (__WEBPACK_EXTERNAL_MODULE__loading_4d683b23__.vBkloading) });
|
1480
|
+
;// external "../overflow-title"
|
1481
|
+
var external_overflow_title_x = (y) => {
|
1482
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
1483
|
+
}
|
1484
|
+
var external_overflow_title_y = (x) => (() => (x))
|
1485
|
+
const external_overflow_title_namespaceObject = external_overflow_title_x({ ["overflowTitle"]: () => (__WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__.overflowTitle) });
|
1486
|
+
;// ../../packages/directives/src/index.ts
|
1368
1487
|
/*
|
1369
1488
|
* Tencent is pleased to support the open source community by making
|
1370
1489
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1397,8 +1516,6 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ ["ov
|
|
1397
1516
|
|
1398
1517
|
|
1399
1518
|
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
1400
|
-
})();
|
1401
|
-
|
1402
1519
|
var __webpack_exports__bkEllipsis = __webpack_exports__.bkEllipsis;
|
1403
1520
|
var __webpack_exports__bkEllipsisInstance = __webpack_exports__.bkEllipsisInstance;
|
1404
1521
|
var __webpack_exports__bkLoading = __webpack_exports__.bkLoading;
|