bkui-vue 2.0.2-beta.8 → 2.0.2-beta.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License.txt +1 -2
- package/dist/cli.css +1 -0
- package/dist/index.cjs.js +166 -138
- package/dist/index.esm.js +24292 -18450
- package/dist/index.umd.js +166 -138
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/ja-jp.esm.js +2 -0
- package/dist/locale/ja-jp.esm.js.map +1 -0
- package/dist/locale/ja-jp.umd.js +2 -0
- package/dist/locale/ja-jp.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +2 -1
- package/lib/affix/index.js +24 -32
- package/lib/alert/alert.variable.css +2 -1
- package/lib/alert/index.js +38 -35
- package/lib/animate-number/index.js +12 -16
- package/lib/backtop/backtop.variable.css +2 -1
- package/lib/backtop/index.js +24 -34
- package/lib/badge/badge.variable.css +2 -1
- package/lib/badge/index.js +20 -26
- package/lib/breadcrumb/breadcrumb.variable.css +2 -1
- package/lib/breadcrumb/index.js +26 -34
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.variable.css +2 -1
- package/lib/button/index.js +29 -39
- package/lib/card/card.variable.css +2 -1
- package/lib/card/index.js +35 -49
- package/lib/cascader/cascader.css +26 -24
- package/lib/cascader/cascader.d.ts +315 -0
- package/lib/cascader/cascader.less +78 -76
- package/lib/cascader/cascader.variable.css +28 -25
- package/lib/cascader/index.d.ts +618 -0
- package/lib/cascader/index.js +749 -717
- package/lib/checkbox/checkbox.variable.css +2 -1
- package/lib/checkbox/index.js +39 -49
- package/lib/code-diff/code-diff.variable.css +2 -1
- package/lib/code-diff/index.js +81 -85
- package/lib/collapse/collapse.variable.css +2 -1
- package/lib/collapse/index.js +36 -42
- package/lib/collapse-transition/collapse-transition.variable.css +2 -1
- package/lib/collapse-transition/index.js +16 -22
- package/lib/color-picker/color-picker.variable.css +2 -1
- package/lib/color-picker/index.js +682 -689
- package/lib/components.js +1 -1
- package/lib/config-provider/config-provider.variable.css +2 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.js +32 -40
- package/lib/container/container.variable.css +2 -1
- package/lib/container/index.js +26 -32
- package/lib/date-picker/date-picker.d.ts +2 -1
- package/lib/date-picker/date-picker.variable.css +2 -1
- package/lib/date-picker/index.d.ts +6 -2
- package/lib/date-picker/index.js +717 -736
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +5 -17
- package/lib/dialog/dialog.css +20 -1
- package/lib/dialog/dialog.variable.css +22 -2
- package/lib/dialog/index.js +100 -137
- package/lib/directives/index.js +509 -518
- package/lib/dist.index.js +1 -1
- package/lib/divider/divider.variable.css +2 -1
- package/lib/divider/index.js +18 -24
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/dropdown.variable.css +2 -1
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +45 -52
- package/lib/exception/exception.variable.css +2 -1
- package/lib/exception/index.js +51 -57
- package/lib/fixed-navbar/fixed-navbar.variable.css +2 -1
- package/lib/fixed-navbar/index.js +16 -22
- package/lib/form/form-item.d.ts +19 -0
- package/lib/form/form.css +16 -4
- package/lib/form/form.less +24 -6
- package/lib/form/form.variable.css +18 -5
- package/lib/form/index.d.ts +13 -0
- package/lib/form/index.js +677 -708
- package/lib/hooks.js +1 -1
- package/lib/icon/angle-double-down-line.js +13 -15
- package/lib/icon/angle-double-left-line.js +13 -15
- package/lib/icon/angle-double-left.js +13 -15
- package/lib/icon/angle-double-right-line.js +13 -15
- package/lib/icon/angle-double-right.js +13 -15
- package/lib/icon/angle-double-up-line.js +13 -15
- package/lib/icon/angle-down-fill.js +13 -15
- package/lib/icon/angle-down-line.js +13 -15
- package/lib/icon/angle-down.js +13 -15
- package/lib/icon/angle-left.js +13 -15
- package/lib/icon/angle-right.js +13 -15
- package/lib/icon/angle-up-fill.js +13 -15
- package/lib/icon/angle-up.js +13 -15
- package/lib/icon/archive-fill.js +13 -15
- package/lib/icon/arrows-left.js +13 -15
- package/lib/icon/arrows-right.js +13 -15
- package/lib/icon/assistant.js +13 -15
- package/lib/icon/audio-fill.js +13 -15
- package/lib/icon/bk.js +13 -15
- package/lib/icon/circle.js +13 -15
- package/lib/icon/close-line.js +13 -15
- package/lib/icon/close.js +13 -15
- package/lib/icon/code.js +13 -15
- package/lib/icon/cog-shape.js +13 -15
- package/lib/icon/collapse-left.js +13 -15
- package/lib/icon/copy-shape.js +13 -15
- package/lib/icon/copy.js +13 -15
- package/lib/icon/data-shape.js +13 -15
- package/lib/icon/del.js +13 -15
- package/lib/icon/doc-fill.js +13 -15
- package/lib/icon/done.js +13 -15
- package/lib/icon/down-shape.js +13 -15
- package/lib/icon/down-small.js +13 -15
- package/lib/icon/edit-line.js +13 -15
- package/lib/icon/ellipsis.js +13 -15
- package/lib/icon/enlarge-line.js +13 -15
- package/lib/icon/error.js +13 -15
- package/lib/icon/excel-fill.js +13 -15
- package/lib/icon/exclamation-circle-shape.js +13 -15
- package/lib/icon/eye.js +13 -15
- package/lib/icon/filliscreen-line.js +13 -15
- package/lib/icon/fix-line.js +13 -15
- package/lib/icon/fix-shape.js +13 -15
- package/lib/icon/folder-open.js +13 -15
- package/lib/icon/folder-shape-open.js +13 -15
- package/lib/icon/folder-shape.js +13 -15
- package/lib/icon/folder.js +13 -15
- package/lib/icon/funnel.js +13 -15
- package/lib/icon/grag-fill.js +13 -15
- package/lib/icon/help-document-fill.js +13 -15
- package/lib/icon/help-fill.js +13 -15
- package/lib/icon/help.js +13 -15
- package/lib/icon/image-fill.js +13 -15
- package/lib/icon/img-error.js +13 -15
- package/lib/icon/img-placehoulder.js +13 -15
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +13 -15
- package/lib/icon/info.js +13 -15
- package/lib/icon/left-shape.js +13 -15
- package/lib/icon/left-turn-line.js +13 -15
- package/lib/icon/loading.js +13 -15
- package/lib/icon/narrow-line.js +13 -15
- package/lib/icon/original.js +13 -15
- package/lib/icon/pdf-fill.js +13 -15
- package/lib/icon/play-shape.js +13 -15
- package/lib/icon/plus.js +13 -15
- package/lib/icon/ppt-fill.js +13 -15
- package/lib/icon/qq.js +13 -15
- package/lib/icon/right-shape.js +13 -15
- package/lib/icon/right-turn-line.js +13 -15
- package/lib/icon/search.js +13 -15
- package/lib/icon/share.js +13 -15
- package/lib/icon/spinner.js +13 -15
- package/lib/icon/success.js +13 -15
- package/lib/icon/switcher-loading.js +13 -15
- package/lib/icon/text-all.js +13 -15
- package/lib/icon/text-file.js +13 -15
- package/lib/icon/text-fill.js +13 -15
- package/lib/icon/transfer.js +13 -15
- package/lib/icon/tree-application-shape.js +13 -15
- package/lib/icon/unfull-screen.js +13 -15
- package/lib/icon/unvisible.js +13 -15
- package/lib/icon/up-shape.js +13 -15
- package/lib/icon/upload.js +13 -15
- package/lib/icon/video-fill.js +13 -15
- package/lib/icon/warn.js +13 -15
- package/lib/icon/weixin-pro.js +13 -15
- package/lib/icon/weixin.js +13 -15
- package/lib/image/image-viewer.variable.css +2 -1
- package/lib/image/image.variable.css +2 -1
- package/lib/image/index.js +335 -352
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +109 -108
- package/lib/info-box/info-box.css +20 -1
- package/lib/info-box/info-box.d.ts +1 -0
- package/lib/info-box/info-box.less +28 -2
- package/lib/info-box/info-box.variable.css +23 -3
- package/lib/input/index.d.ts +39 -20
- package/lib/input/index.js +448 -444
- package/lib/input/input.css +6 -0
- package/lib/input/input.d.ts +33 -19
- package/lib/input/input.less +7 -0
- package/lib/input/input.variable.css +8 -1
- package/lib/link/index.js +20 -28
- package/lib/link/link.variable.css +2 -1
- package/lib/loading/index.js +34 -32
- package/lib/loading/loading.variable.css +2 -1
- package/lib/locale/index.d.ts +1 -0
- package/lib/locale/index.js +175 -7
- package/lib/locale/lang/ja-jp.d.ts +3 -0
- package/lib/menu/index.js +44 -49
- package/lib/menu/menu.css +5 -4
- package/lib/menu/menu.less +1 -0
- package/lib/menu/menu.variable.css +7 -5
- package/lib/menu/submenu.variable.css +2 -1
- package/lib/message/index.js +102 -74
- package/lib/message/message.variable.css +2 -1
- package/lib/message/messageConstructor.d.ts +1 -1
- package/lib/modal/index.js +43 -45
- package/lib/modal/modal.css +20 -1
- package/lib/modal/modal.variable.css +22 -2
- package/lib/navigation/index.js +22 -30
- package/lib/navigation/navigation.css +29 -29
- package/lib/navigation/navigation.less +29 -29
- package/lib/navigation/navigation.variable.css +31 -30
- package/lib/notify/index.js +69 -60
- package/lib/notify/notify.variable.css +2 -1
- package/lib/overflow-title/components/overflow-title.d.ts +6 -2
- package/lib/overflow-title/index.d.ts +12 -4
- package/lib/overflow-title/index.js +32 -44
- package/lib/overflow-title/props.d.ts +3 -1
- package/lib/pagination/index.js +68 -76
- package/lib/pagination/pagination.css +1 -0
- package/lib/pagination/pagination.less +1 -0
- package/lib/pagination/pagination.variable.css +3 -1
- package/lib/pop-confirm/index.d.ts +592 -0
- package/lib/pop-confirm/index.js +43 -55
- package/lib/pop-confirm/pop-confirm.d.ts +296 -0
- package/lib/pop-confirm/pop-confirm.variable.css +2 -1
- package/lib/pop-confirm/props.d.ts +148 -0
- package/lib/popover/index.d.ts +18 -10
- package/lib/popover/index.js +582 -459
- package/lib/popover/popover.d.ts +8 -4
- package/lib/popover/popover.variable.css +2 -1
- package/lib/popover/props.d.ts +3 -1
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -2
- package/lib/popover/use-popper-id.d.ts +3 -1
- package/lib/popover2/index.js +12 -16
- package/lib/preset.js +1 -1
- package/lib/process/index.js +76 -80
- package/lib/process/process.d.ts +1 -1
- package/lib/process/process.variable.css +2 -1
- package/lib/progress/index.js +24 -30
- package/lib/progress/progress.variable.css +2 -1
- package/lib/radio/index.js +36 -44
- package/lib/radio/radio.variable.css +2 -1
- package/lib/rate/index.js +22 -28
- package/lib/rate/rate.variable.css +2 -1
- package/lib/resize-layout/index.js +24 -32
- package/lib/resize-layout/resize-layout.css +1 -0
- package/lib/resize-layout/resize-layout.less +1 -0
- package/lib/resize-layout/resize-layout.variable.css +3 -1
- package/lib/scrollbar/css/scrollbar.variable.css +2 -1
- package/lib/scrollbar/index.js +31 -31
- package/lib/search-select/index.d.ts +39 -11
- package/lib/search-select/index.js +576 -547
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/search-select.d.ts +13 -4
- package/lib/search-select/search-select.variable.css +2 -1
- package/lib/search-select/selected.d.ts +10 -2
- package/lib/search-select/utils.d.ts +1 -0
- package/lib/select/common.d.ts +0 -1
- package/lib/select/index.d.ts +55 -11
- package/lib/select/index.js +570 -619
- package/lib/select/optionGroup.d.ts +12 -1
- package/lib/select/select.d.ts +20 -4
- package/lib/select/select.variable.css +2 -1
- package/lib/select/type.d.ts +1 -0
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +59 -67
- package/lib/shared/z-index-manager.d.ts +1 -1
- package/lib/sideslider/index.js +86 -94
- package/lib/sideslider/sideslider.variable.css +2 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +80 -89
- package/lib/slider/slider-button.d.ts +1 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/slider/slider.variable.css +2 -1
- package/lib/steps/index.js +85 -92
- package/lib/steps/steps.css +24 -11
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.less +28 -10
- package/lib/steps/steps.variable.css +26 -12
- package/lib/styles/mixins/animate.variable.css +2 -1
- package/lib/styles/mixins/popper.variable.css +2 -1
- package/lib/styles/mixins/scroll.variable.css +2 -1
- package/lib/styles/reset.variable.css +2 -1
- package/lib/styles/themes/themes.less +4 -1
- package/lib/swiper/index.js +20 -26
- package/lib/swiper/swiper.variable.css +2 -1
- package/lib/switcher/index.js +24 -32
- package/lib/switcher/switcher.variable.css +2 -1
- package/lib/tab/index.d.ts +12 -0
- package/lib/tab/index.js +344 -353
- package/lib/tab/props.d.ts +3 -0
- package/lib/tab/tab.d.ts +6 -0
- package/lib/tab/tab.variable.css +2 -1
- package/lib/table/index.js +632 -691
- package/lib/table/plugins/head-filter.variable.css +2 -1
- package/lib/table/plugins/head-sort.variable.css +2 -1
- package/lib/table/plugins/settings.variable.css +2 -1
- package/lib/table/table.css +1 -0
- package/lib/table/table.variable.css +3 -1
- package/lib/table-column/index.js +10 -14
- package/lib/tag/index.js +28 -38
- package/lib/tag/tag.variable.css +2 -1
- package/lib/tag-input/index.d.ts +79 -6
- package/lib/tag-input/index.js +2341 -791
- package/lib/tag-input/tag-input.css +31 -0
- package/lib/tag-input/tag-input.d.ts +35 -3
- package/lib/tag-input/tag-input.less +36 -0
- package/lib/tag-input/tag-input.variable.css +33 -1
- package/lib/tag-input/tag-props.d.ts +13 -1
- package/lib/tag-input/tag-render.d.ts +24 -2
- package/lib/time-picker/index.js +10 -14
- package/lib/time-picker/time-picker.variable.css +2 -1
- package/lib/timeline/index.js +1368 -25
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.variable.css +2 -1
- package/lib/transfer/index.d.ts +1 -24
- package/lib/transfer/index.js +61 -67
- package/lib/transfer/props.d.ts +0 -5
- package/lib/transfer/transfer.css +26 -8
- package/lib/transfer/transfer.d.ts +1 -12
- package/lib/transfer/transfer.less +18 -8
- package/lib/transfer/transfer.variable.css +28 -9
- package/lib/tree/constant.d.ts +2 -0
- package/lib/tree/index.d.ts +71 -11
- package/lib/tree/index.js +17743 -209
- package/lib/tree/props.d.ts +38 -3
- package/lib/tree/tree.css +46 -0
- package/lib/tree/tree.d.ts +33 -5
- package/lib/tree/tree.less +57 -2
- package/lib/tree/tree.variable.css +48 -1
- package/lib/tree/use-array-move.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-node-attribute.d.ts +3 -0
- package/lib/upload/index.js +570 -582
- package/lib/upload/upload.variable.css +2 -1
- package/lib/virtual-render/index.js +50 -62
- package/lib/virtual-render/virtual-render.variable.css +2 -1
- package/lib/volar.components.d.ts +2 -1
- package/package.json +13 -2
- package/dist/style.css +0 -1
package/lib/popover/index.js
CHANGED
|
@@ -12,7 +12,15 @@ import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/i
|
|
|
12
12
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__ from "lodash/random";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 2439:
|
|
16
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
17
|
+
|
|
18
|
+
module.exports = __webpack_require__(2527);
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/***/ }),
|
|
22
|
+
|
|
23
|
+
/***/ 7430:
|
|
16
24
|
/***/ ((module) => {
|
|
17
25
|
|
|
18
26
|
/**
|
|
@@ -62,265 +70,7 @@ module.exports = ExecutionEnvironment;
|
|
|
62
70
|
|
|
63
71
|
/***/ }),
|
|
64
72
|
|
|
65
|
-
/***/
|
|
66
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Copyright 2013-2015, Facebook, Inc.
|
|
70
|
-
* All rights reserved.
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the BSD-style license found in the
|
|
73
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
74
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
75
|
-
*
|
|
76
|
-
* @providesModule isEventSupported
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
var ExecutionEnvironment = __webpack_require__(1043);
|
|
82
|
-
|
|
83
|
-
var useHasFeature;
|
|
84
|
-
if (ExecutionEnvironment.canUseDOM) {
|
|
85
|
-
useHasFeature =
|
|
86
|
-
document.implementation &&
|
|
87
|
-
document.implementation.hasFeature &&
|
|
88
|
-
// always returns true in newer browsers as per the standard.
|
|
89
|
-
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
|
90
|
-
document.implementation.hasFeature('', '') !== true;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Checks if an event is supported in the current execution environment.
|
|
95
|
-
*
|
|
96
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
97
|
-
* `reset`, `load`, `error`, and `select`.
|
|
98
|
-
*
|
|
99
|
-
* Borrows from Modernizr.
|
|
100
|
-
*
|
|
101
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
102
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
|
103
|
-
* @return {boolean} True if the event is supported.
|
|
104
|
-
* @internal
|
|
105
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
106
|
-
*/
|
|
107
|
-
function isEventSupported(eventNameSuffix, capture) {
|
|
108
|
-
if (!ExecutionEnvironment.canUseDOM ||
|
|
109
|
-
capture && !('addEventListener' in document)) {
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
var eventName = 'on' + eventNameSuffix;
|
|
114
|
-
var isSupported = eventName in document;
|
|
115
|
-
|
|
116
|
-
if (!isSupported) {
|
|
117
|
-
var element = document.createElement('div');
|
|
118
|
-
element.setAttribute(eventName, 'return;');
|
|
119
|
-
isSupported = typeof element[eventName] === 'function';
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
|
123
|
-
// This is the only way to test support for the `wheel` event in IE9+.
|
|
124
|
-
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return isSupported;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
module.exports = isEventSupported;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/***/ }),
|
|
134
|
-
|
|
135
|
-
/***/ 5022:
|
|
136
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Copyright (c) 2015, Facebook, Inc.
|
|
140
|
-
* All rights reserved.
|
|
141
|
-
*
|
|
142
|
-
* This source code is licensed under the BSD-style license found in the
|
|
143
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
144
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
145
|
-
*
|
|
146
|
-
* @providesModule normalizeWheel
|
|
147
|
-
* @typechecks
|
|
148
|
-
*/
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
var UserAgent_DEPRECATED = __webpack_require__(7416);
|
|
153
|
-
|
|
154
|
-
var isEventSupported = __webpack_require__(2586);
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
// Reasonable defaults
|
|
158
|
-
var PIXEL_STEP = 10;
|
|
159
|
-
var LINE_HEIGHT = 40;
|
|
160
|
-
var PAGE_HEIGHT = 800;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
|
164
|
-
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
|
165
|
-
* your questions.
|
|
166
|
-
*
|
|
167
|
-
* If you need to react to the mouse wheel in a predictable way, this code is
|
|
168
|
-
* like your bestest friend. * hugs *
|
|
169
|
-
*
|
|
170
|
-
* As of today, there are 4 DOM event types you can listen to:
|
|
171
|
-
*
|
|
172
|
-
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
|
173
|
-
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
|
174
|
-
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
|
175
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
|
176
|
-
*
|
|
177
|
-
* So what to do? The is the best:
|
|
178
|
-
*
|
|
179
|
-
* normalizeWheel.getEventType();
|
|
180
|
-
*
|
|
181
|
-
* In your event callback, use this code to get sane interpretation of the
|
|
182
|
-
* deltas. This code will return an object with properties:
|
|
183
|
-
*
|
|
184
|
-
* spinX -- normalized spin speed (use for zoom) - x plane
|
|
185
|
-
* spinY -- " - y plane
|
|
186
|
-
* pixelX -- normalized distance (to pixels) - x plane
|
|
187
|
-
* pixelY -- " - y plane
|
|
188
|
-
*
|
|
189
|
-
* Wheel values are provided by the browser assuming you are using the wheel to
|
|
190
|
-
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
|
191
|
-
* significantly on different platforms and browsers, forgetting that you can
|
|
192
|
-
* scroll at different speeds. Some devices (like trackpads) emit more events
|
|
193
|
-
* at smaller increments with fine granularity, and some emit massive jumps with
|
|
194
|
-
* linear speed or acceleration.
|
|
195
|
-
*
|
|
196
|
-
* This code does its best to normalize the deltas for you:
|
|
197
|
-
*
|
|
198
|
-
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
|
199
|
-
* dragged). This is super useful for zoom support where you want to
|
|
200
|
-
* throw away the chunky scroll steps on the PC and make those equal to
|
|
201
|
-
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
|
202
|
-
* resolve a single slow step on a wheel to 1.
|
|
203
|
-
*
|
|
204
|
-
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
|
205
|
-
* get the crazy differences between browsers, but at least it'll be in
|
|
206
|
-
* pixels!
|
|
207
|
-
*
|
|
208
|
-
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
|
209
|
-
* should translate to positive value zooming IN, negative zooming OUT.
|
|
210
|
-
* This matches the newer 'wheel' event.
|
|
211
|
-
*
|
|
212
|
-
* Why are there spinX, spinY (or pixels)?
|
|
213
|
-
*
|
|
214
|
-
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
|
215
|
-
* with a mouse. It results in side-scrolling in the browser by default.
|
|
216
|
-
*
|
|
217
|
-
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
|
218
|
-
*
|
|
219
|
-
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
|
220
|
-
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
|
221
|
-
* you know.
|
|
222
|
-
*
|
|
223
|
-
* Implementation info:
|
|
224
|
-
*
|
|
225
|
-
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
|
226
|
-
* average mouse:
|
|
227
|
-
*
|
|
228
|
-
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
|
229
|
-
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
|
230
|
-
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
|
231
|
-
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
|
232
|
-
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
|
233
|
-
*
|
|
234
|
-
* On the trackpad:
|
|
235
|
-
*
|
|
236
|
-
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
|
237
|
-
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
|
238
|
-
*
|
|
239
|
-
* On other/older browsers.. it's more complicated as there can be multiple and
|
|
240
|
-
* also missing delta values.
|
|
241
|
-
*
|
|
242
|
-
* The 'wheel' event is more standard:
|
|
243
|
-
*
|
|
244
|
-
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
|
245
|
-
*
|
|
246
|
-
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
|
247
|
-
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
|
248
|
-
* backward compatibility with older events. Those other values help us
|
|
249
|
-
* better normalize spin speed. Example of what the browsers provide:
|
|
250
|
-
*
|
|
251
|
-
* | event.wheelDelta | event.detail
|
|
252
|
-
* ------------------+------------------+--------------
|
|
253
|
-
* Safari v5/OS X | -120 | 0
|
|
254
|
-
* Safari v5/Win7 | -120 | 0
|
|
255
|
-
* Chrome v17/OS X | -120 | 0
|
|
256
|
-
* Chrome v17/Win7 | -120 | 0
|
|
257
|
-
* IE9/Win7 | -120 | undefined
|
|
258
|
-
* Firefox v4/OS X | undefined | 1
|
|
259
|
-
* Firefox v4/Win7 | undefined | 3
|
|
260
|
-
*
|
|
261
|
-
*/
|
|
262
|
-
function normalizeWheel(/*object*/ event) /*object*/ {
|
|
263
|
-
var sX = 0, sY = 0, // spinX, spinY
|
|
264
|
-
pX = 0, pY = 0; // pixelX, pixelY
|
|
265
|
-
|
|
266
|
-
// Legacy
|
|
267
|
-
if ('detail' in event) { sY = event.detail; }
|
|
268
|
-
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
|
269
|
-
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
|
270
|
-
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
|
271
|
-
|
|
272
|
-
// side scrolling on FF with DOMMouseScroll
|
|
273
|
-
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
|
274
|
-
sX = sY;
|
|
275
|
-
sY = 0;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
pX = sX * PIXEL_STEP;
|
|
279
|
-
pY = sY * PIXEL_STEP;
|
|
280
|
-
|
|
281
|
-
if ('deltaY' in event) { pY = event.deltaY; }
|
|
282
|
-
if ('deltaX' in event) { pX = event.deltaX; }
|
|
283
|
-
|
|
284
|
-
if ((pX || pY) && event.deltaMode) {
|
|
285
|
-
if (event.deltaMode == 1) { // delta in LINE units
|
|
286
|
-
pX *= LINE_HEIGHT;
|
|
287
|
-
pY *= LINE_HEIGHT;
|
|
288
|
-
} else { // delta in PAGE units
|
|
289
|
-
pX *= PAGE_HEIGHT;
|
|
290
|
-
pY *= PAGE_HEIGHT;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
// Fall-back if spin cannot be determined
|
|
295
|
-
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
|
296
|
-
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
|
297
|
-
|
|
298
|
-
return { spinX : sX,
|
|
299
|
-
spinY : sY,
|
|
300
|
-
pixelX : pX,
|
|
301
|
-
pixelY : pY };
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* The best combination if you prefer spinX + spinY normalization. It favors
|
|
307
|
-
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
|
308
|
-
* 'wheel' event, making spin speed determination impossible.
|
|
309
|
-
*/
|
|
310
|
-
normalizeWheel.getEventType = function() /*string*/ {
|
|
311
|
-
return (UserAgent_DEPRECATED.firefox())
|
|
312
|
-
? 'DOMMouseScroll'
|
|
313
|
-
: (isEventSupported('wheel'))
|
|
314
|
-
? 'wheel'
|
|
315
|
-
: 'mousewheel';
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
module.exports = normalizeWheel;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
/***/ }),
|
|
322
|
-
|
|
323
|
-
/***/ 7416:
|
|
73
|
+
/***/ 6377:
|
|
324
74
|
/***/ ((module) => {
|
|
325
75
|
|
|
326
76
|
/**
|
|
@@ -576,43 +326,293 @@ var UserAgent_DEPRECATED = {
|
|
|
576
326
|
return _populate() || _linux;
|
|
577
327
|
},
|
|
578
328
|
|
|
579
|
-
/**
|
|
580
|
-
* Check if the user is running on an iPhone or iPod platform.
|
|
581
|
-
*
|
|
582
|
-
* @return bool `true' if the user is running some flavor of the
|
|
583
|
-
* iPhone OS.
|
|
584
|
-
*/
|
|
585
|
-
iphone: function() {
|
|
586
|
-
return _populate() || _iphone;
|
|
587
|
-
},
|
|
329
|
+
/**
|
|
330
|
+
* Check if the user is running on an iPhone or iPod platform.
|
|
331
|
+
*
|
|
332
|
+
* @return bool `true' if the user is running some flavor of the
|
|
333
|
+
* iPhone OS.
|
|
334
|
+
*/
|
|
335
|
+
iphone: function() {
|
|
336
|
+
return _populate() || _iphone;
|
|
337
|
+
},
|
|
338
|
+
|
|
339
|
+
mobile: function() {
|
|
340
|
+
return _populate() || (_iphone || _ipad || _android || _mobile);
|
|
341
|
+
},
|
|
342
|
+
|
|
343
|
+
nativeApp: function() {
|
|
344
|
+
// webviews inside of the native apps
|
|
345
|
+
return _populate() || _native;
|
|
346
|
+
},
|
|
347
|
+
|
|
348
|
+
android: function() {
|
|
349
|
+
return _populate() || _android;
|
|
350
|
+
},
|
|
351
|
+
|
|
352
|
+
ipad: function() {
|
|
353
|
+
return _populate() || _ipad;
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
module.exports = UserAgent_DEPRECATED;
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
/***/ }),
|
|
361
|
+
|
|
362
|
+
/***/ 3541:
|
|
363
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Copyright 2013-2015, Facebook, Inc.
|
|
367
|
+
* All rights reserved.
|
|
368
|
+
*
|
|
369
|
+
* This source code is licensed under the BSD-style license found in the
|
|
370
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
371
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
372
|
+
*
|
|
373
|
+
* @providesModule isEventSupported
|
|
374
|
+
*/
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
var ExecutionEnvironment = __webpack_require__(7430);
|
|
379
|
+
|
|
380
|
+
var useHasFeature;
|
|
381
|
+
if (ExecutionEnvironment.canUseDOM) {
|
|
382
|
+
useHasFeature =
|
|
383
|
+
document.implementation &&
|
|
384
|
+
document.implementation.hasFeature &&
|
|
385
|
+
// always returns true in newer browsers as per the standard.
|
|
386
|
+
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
|
387
|
+
document.implementation.hasFeature('', '') !== true;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Checks if an event is supported in the current execution environment.
|
|
392
|
+
*
|
|
393
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
394
|
+
* `reset`, `load`, `error`, and `select`.
|
|
395
|
+
*
|
|
396
|
+
* Borrows from Modernizr.
|
|
397
|
+
*
|
|
398
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
399
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
|
400
|
+
* @return {boolean} True if the event is supported.
|
|
401
|
+
* @internal
|
|
402
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
403
|
+
*/
|
|
404
|
+
function isEventSupported(eventNameSuffix, capture) {
|
|
405
|
+
if (!ExecutionEnvironment.canUseDOM ||
|
|
406
|
+
capture && !('addEventListener' in document)) {
|
|
407
|
+
return false;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
var eventName = 'on' + eventNameSuffix;
|
|
411
|
+
var isSupported = eventName in document;
|
|
412
|
+
|
|
413
|
+
if (!isSupported) {
|
|
414
|
+
var element = document.createElement('div');
|
|
415
|
+
element.setAttribute(eventName, 'return;');
|
|
416
|
+
isSupported = typeof element[eventName] === 'function';
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
|
420
|
+
// This is the only way to test support for the `wheel` event in IE9+.
|
|
421
|
+
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
return isSupported;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
module.exports = isEventSupported;
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
/***/ }),
|
|
431
|
+
|
|
432
|
+
/***/ 2527:
|
|
433
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Copyright (c) 2015, Facebook, Inc.
|
|
437
|
+
* All rights reserved.
|
|
438
|
+
*
|
|
439
|
+
* This source code is licensed under the BSD-style license found in the
|
|
440
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
441
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
442
|
+
*
|
|
443
|
+
* @providesModule normalizeWheel
|
|
444
|
+
* @typechecks
|
|
445
|
+
*/
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
var UserAgent_DEPRECATED = __webpack_require__(6377);
|
|
450
|
+
|
|
451
|
+
var isEventSupported = __webpack_require__(3541);
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
// Reasonable defaults
|
|
455
|
+
var PIXEL_STEP = 10;
|
|
456
|
+
var LINE_HEIGHT = 40;
|
|
457
|
+
var PAGE_HEIGHT = 800;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
|
461
|
+
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
|
462
|
+
* your questions.
|
|
463
|
+
*
|
|
464
|
+
* If you need to react to the mouse wheel in a predictable way, this code is
|
|
465
|
+
* like your bestest friend. * hugs *
|
|
466
|
+
*
|
|
467
|
+
* As of today, there are 4 DOM event types you can listen to:
|
|
468
|
+
*
|
|
469
|
+
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
|
470
|
+
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
|
471
|
+
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
|
472
|
+
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
|
473
|
+
*
|
|
474
|
+
* So what to do? The is the best:
|
|
475
|
+
*
|
|
476
|
+
* normalizeWheel.getEventType();
|
|
477
|
+
*
|
|
478
|
+
* In your event callback, use this code to get sane interpretation of the
|
|
479
|
+
* deltas. This code will return an object with properties:
|
|
480
|
+
*
|
|
481
|
+
* spinX -- normalized spin speed (use for zoom) - x plane
|
|
482
|
+
* spinY -- " - y plane
|
|
483
|
+
* pixelX -- normalized distance (to pixels) - x plane
|
|
484
|
+
* pixelY -- " - y plane
|
|
485
|
+
*
|
|
486
|
+
* Wheel values are provided by the browser assuming you are using the wheel to
|
|
487
|
+
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
|
488
|
+
* significantly on different platforms and browsers, forgetting that you can
|
|
489
|
+
* scroll at different speeds. Some devices (like trackpads) emit more events
|
|
490
|
+
* at smaller increments with fine granularity, and some emit massive jumps with
|
|
491
|
+
* linear speed or acceleration.
|
|
492
|
+
*
|
|
493
|
+
* This code does its best to normalize the deltas for you:
|
|
494
|
+
*
|
|
495
|
+
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
|
496
|
+
* dragged). This is super useful for zoom support where you want to
|
|
497
|
+
* throw away the chunky scroll steps on the PC and make those equal to
|
|
498
|
+
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
|
499
|
+
* resolve a single slow step on a wheel to 1.
|
|
500
|
+
*
|
|
501
|
+
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
|
502
|
+
* get the crazy differences between browsers, but at least it'll be in
|
|
503
|
+
* pixels!
|
|
504
|
+
*
|
|
505
|
+
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
|
506
|
+
* should translate to positive value zooming IN, negative zooming OUT.
|
|
507
|
+
* This matches the newer 'wheel' event.
|
|
508
|
+
*
|
|
509
|
+
* Why are there spinX, spinY (or pixels)?
|
|
510
|
+
*
|
|
511
|
+
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
|
512
|
+
* with a mouse. It results in side-scrolling in the browser by default.
|
|
513
|
+
*
|
|
514
|
+
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
|
515
|
+
*
|
|
516
|
+
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
|
517
|
+
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
|
518
|
+
* you know.
|
|
519
|
+
*
|
|
520
|
+
* Implementation info:
|
|
521
|
+
*
|
|
522
|
+
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
|
523
|
+
* average mouse:
|
|
524
|
+
*
|
|
525
|
+
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
|
526
|
+
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
|
527
|
+
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
|
528
|
+
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
|
529
|
+
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
|
530
|
+
*
|
|
531
|
+
* On the trackpad:
|
|
532
|
+
*
|
|
533
|
+
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
|
534
|
+
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
|
535
|
+
*
|
|
536
|
+
* On other/older browsers.. it's more complicated as there can be multiple and
|
|
537
|
+
* also missing delta values.
|
|
538
|
+
*
|
|
539
|
+
* The 'wheel' event is more standard:
|
|
540
|
+
*
|
|
541
|
+
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
|
542
|
+
*
|
|
543
|
+
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
|
544
|
+
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
|
545
|
+
* backward compatibility with older events. Those other values help us
|
|
546
|
+
* better normalize spin speed. Example of what the browsers provide:
|
|
547
|
+
*
|
|
548
|
+
* | event.wheelDelta | event.detail
|
|
549
|
+
* ------------------+------------------+--------------
|
|
550
|
+
* Safari v5/OS X | -120 | 0
|
|
551
|
+
* Safari v5/Win7 | -120 | 0
|
|
552
|
+
* Chrome v17/OS X | -120 | 0
|
|
553
|
+
* Chrome v17/Win7 | -120 | 0
|
|
554
|
+
* IE9/Win7 | -120 | undefined
|
|
555
|
+
* Firefox v4/OS X | undefined | 1
|
|
556
|
+
* Firefox v4/Win7 | undefined | 3
|
|
557
|
+
*
|
|
558
|
+
*/
|
|
559
|
+
function normalizeWheel(/*object*/ event) /*object*/ {
|
|
560
|
+
var sX = 0, sY = 0, // spinX, spinY
|
|
561
|
+
pX = 0, pY = 0; // pixelX, pixelY
|
|
588
562
|
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
563
|
+
// Legacy
|
|
564
|
+
if ('detail' in event) { sY = event.detail; }
|
|
565
|
+
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
|
566
|
+
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
|
567
|
+
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
|
592
568
|
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
569
|
+
// side scrolling on FF with DOMMouseScroll
|
|
570
|
+
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
|
571
|
+
sX = sY;
|
|
572
|
+
sY = 0;
|
|
573
|
+
}
|
|
597
574
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
},
|
|
575
|
+
pX = sX * PIXEL_STEP;
|
|
576
|
+
pY = sY * PIXEL_STEP;
|
|
601
577
|
|
|
602
|
-
|
|
603
|
-
|
|
578
|
+
if ('deltaY' in event) { pY = event.deltaY; }
|
|
579
|
+
if ('deltaX' in event) { pX = event.deltaX; }
|
|
580
|
+
|
|
581
|
+
if ((pX || pY) && event.deltaMode) {
|
|
582
|
+
if (event.deltaMode == 1) { // delta in LINE units
|
|
583
|
+
pX *= LINE_HEIGHT;
|
|
584
|
+
pY *= LINE_HEIGHT;
|
|
585
|
+
} else { // delta in PAGE units
|
|
586
|
+
pX *= PAGE_HEIGHT;
|
|
587
|
+
pY *= PAGE_HEIGHT;
|
|
588
|
+
}
|
|
604
589
|
}
|
|
605
|
-
};
|
|
606
590
|
|
|
607
|
-
|
|
591
|
+
// Fall-back if spin cannot be determined
|
|
592
|
+
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
|
593
|
+
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
|
608
594
|
|
|
595
|
+
return { spinX : sX,
|
|
596
|
+
spinY : sY,
|
|
597
|
+
pixelX : pX,
|
|
598
|
+
pixelY : pY };
|
|
599
|
+
}
|
|
609
600
|
|
|
610
|
-
/***/ }),
|
|
611
601
|
|
|
612
|
-
|
|
613
|
-
|
|
602
|
+
/**
|
|
603
|
+
* The best combination if you prefer spinX + spinY normalization. It favors
|
|
604
|
+
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
|
605
|
+
* 'wheel' event, making spin speed determination impossible.
|
|
606
|
+
*/
|
|
607
|
+
normalizeWheel.getEventType = function() /*string*/ {
|
|
608
|
+
return (UserAgent_DEPRECATED.firefox())
|
|
609
|
+
? 'DOMMouseScroll'
|
|
610
|
+
: (isEventSupported('wheel'))
|
|
611
|
+
? 'wheel'
|
|
612
|
+
: 'mousewheel';
|
|
613
|
+
};
|
|
614
614
|
|
|
615
|
-
module.exports =
|
|
615
|
+
module.exports = normalizeWheel;
|
|
616
616
|
|
|
617
617
|
|
|
618
618
|
/***/ })
|
|
@@ -675,6 +675,8 @@ module.exports = __webpack_require__(5022);
|
|
|
675
675
|
/******/
|
|
676
676
|
/************************************************************************/
|
|
677
677
|
var __webpack_exports__ = {};
|
|
678
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
679
|
+
(() => {
|
|
678
680
|
|
|
679
681
|
// EXPORTS
|
|
680
682
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -683,19 +685,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
683
685
|
"default": () => (/* binding */ src)
|
|
684
686
|
});
|
|
685
687
|
|
|
686
|
-
;// external "../shared"
|
|
687
|
-
var x = (y)
|
|
688
|
-
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
696
|
-
var external_vue_y = (x) => (() => (x))
|
|
697
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Fragment), ["Teleport"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Teleport), ["Text"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Text), ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createApp"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createApp), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["isVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.isVNode), ["mergeProps"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.mergeProps), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onBeforeUnmount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["toRefs"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRefs), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
|
698
|
-
;// ../../packages/directives/src/clickoutside.ts
|
|
688
|
+
;// CONCATENATED MODULE: external "../shared"
|
|
689
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
690
|
+
var y = x => () => x
|
|
691
|
+
const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
|
692
|
+
;// CONCATENATED MODULE: external "vue"
|
|
693
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
694
|
+
var external_vue_y = x => () => x
|
|
695
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Text"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Text, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
|
696
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
|
699
697
|
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; } } }; }
|
|
700
698
|
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); }
|
|
701
699
|
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; }
|
|
@@ -703,7 +701,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
703
701
|
* Tencent is pleased to support the open source community by making
|
|
704
702
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
705
703
|
*
|
|
706
|
-
* Copyright (C)
|
|
704
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
707
705
|
*
|
|
708
706
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
709
707
|
*
|
|
@@ -821,7 +819,7 @@ ClickOutside.install = function (app) {
|
|
|
821
819
|
app.directive('bkTooltips', ClickOutside);
|
|
822
820
|
};
|
|
823
821
|
/* harmony default export */ const clickoutside = (ClickOutside);
|
|
824
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
822
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
825
823
|
function _typeof(o) {
|
|
826
824
|
"@babel/helpers - typeof";
|
|
827
825
|
|
|
@@ -831,19 +829,17 @@ function _typeof(o) {
|
|
|
831
829
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
832
830
|
}, _typeof(o);
|
|
833
831
|
}
|
|
834
|
-
;// external "../popover"
|
|
835
|
-
var popover_x = (y)
|
|
836
|
-
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover) });
|
|
840
|
-
;// ../../packages/directives/src/ellipsis.ts
|
|
832
|
+
;// CONCATENATED MODULE: external "../popover"
|
|
833
|
+
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
834
|
+
var popover_y = x => () => x
|
|
835
|
+
const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover });
|
|
836
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
|
|
841
837
|
|
|
842
838
|
/*
|
|
843
839
|
* Tencent is pleased to support the open source community by making
|
|
844
840
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
845
841
|
*
|
|
846
|
-
* Copyright (C)
|
|
842
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
847
843
|
*
|
|
848
844
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
849
845
|
*
|
|
@@ -948,14 +944,14 @@ var ellipsis = {
|
|
|
948
944
|
};
|
|
949
945
|
/* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
|
|
950
946
|
// EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
|
|
951
|
-
var normalize_wheel = __webpack_require__(
|
|
947
|
+
var normalize_wheel = __webpack_require__(2439);
|
|
952
948
|
var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
|
|
953
|
-
;// ../../packages/directives/src/mousewheel.ts
|
|
949
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
|
|
954
950
|
/*
|
|
955
951
|
* Tencent is pleased to support the open source community by making
|
|
956
952
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
957
953
|
*
|
|
958
|
-
* Copyright (C)
|
|
954
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
959
955
|
*
|
|
960
956
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
961
957
|
*
|
|
@@ -992,7 +988,7 @@ var mousewheel = {
|
|
|
992
988
|
}
|
|
993
989
|
};
|
|
994
990
|
/* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
|
|
995
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
991
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
996
992
|
|
|
997
993
|
function toPrimitive(t, r) {
|
|
998
994
|
if ("object" != _typeof(t) || !t) return t;
|
|
@@ -1004,14 +1000,14 @@ function toPrimitive(t, r) {
|
|
|
1004
1000
|
}
|
|
1005
1001
|
return ("string" === r ? String : Number)(t);
|
|
1006
1002
|
}
|
|
1007
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
1003
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
1008
1004
|
|
|
1009
1005
|
|
|
1010
1006
|
function toPropertyKey(t) {
|
|
1011
1007
|
var i = toPrimitive(t, "string");
|
|
1012
1008
|
return "symbol" == _typeof(i) ? i : String(i);
|
|
1013
1009
|
}
|
|
1014
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
1010
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
1015
1011
|
|
|
1016
1012
|
function _defineProperty(obj, key, value) {
|
|
1017
1013
|
key = toPropertyKey(key);
|
|
@@ -1027,22 +1023,22 @@ function _defineProperty(obj, key, value) {
|
|
|
1027
1023
|
}
|
|
1028
1024
|
return obj;
|
|
1029
1025
|
}
|
|
1030
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
1026
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
1031
1027
|
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
1032
1028
|
if (len == null || len > arr.length) len = arr.length;
|
|
1033
1029
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
1034
1030
|
return arr2;
|
|
1035
1031
|
}
|
|
1036
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
1032
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
1037
1033
|
|
|
1038
1034
|
function _arrayWithoutHoles(arr) {
|
|
1039
1035
|
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
1040
1036
|
}
|
|
1041
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
1037
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
1042
1038
|
function _iterableToArray(iter) {
|
|
1043
1039
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1044
1040
|
}
|
|
1045
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
1041
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
1046
1042
|
|
|
1047
1043
|
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
1048
1044
|
if (!o) return;
|
|
@@ -1052,11 +1048,11 @@ function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
|
1052
1048
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1053
1049
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
1054
1050
|
}
|
|
1055
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
1051
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
1056
1052
|
function _nonIterableSpread() {
|
|
1057
1053
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1058
1054
|
}
|
|
1059
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
1055
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
1060
1056
|
|
|
1061
1057
|
|
|
1062
1058
|
|
|
@@ -1064,13 +1060,11 @@ function _nonIterableSpread() {
|
|
|
1064
1060
|
function _toConsumableArray(arr) {
|
|
1065
1061
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
1066
1062
|
}
|
|
1067
|
-
;// external "@popperjs/core"
|
|
1068
|
-
var core_x = (y)
|
|
1069
|
-
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
|
|
1073
|
-
;// ../../packages/directives/src/tooltips.ts
|
|
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
|
|
1074
1068
|
|
|
1075
1069
|
|
|
1076
1070
|
|
|
@@ -1080,7 +1074,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
1080
1074
|
* Tencent is pleased to support the open source community by making
|
|
1081
1075
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1082
1076
|
*
|
|
1083
|
-
* Copyright (C)
|
|
1077
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1084
1078
|
*
|
|
1085
1079
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1086
1080
|
*
|
|
@@ -1135,9 +1129,6 @@ var tooltips = {
|
|
|
1135
1129
|
hide(el);
|
|
1136
1130
|
}, 100);
|
|
1137
1131
|
});
|
|
1138
|
-
el.addEventListener('click', function () {
|
|
1139
|
-
hide(el);
|
|
1140
|
-
});
|
|
1141
1132
|
popper.addEventListener('mouseleave', function () {
|
|
1142
1133
|
clearTimeout(delayTimeout);
|
|
1143
1134
|
hideTimeout = setTimeout(function () {
|
|
@@ -1151,7 +1142,7 @@ var tooltips = {
|
|
|
1151
1142
|
show(el);
|
|
1152
1143
|
clearTimeout(delayTimeout);
|
|
1153
1144
|
}, opts.delay);
|
|
1154
|
-
} else if (popper.hasAttribute('data-show')) {
|
|
1145
|
+
} else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
|
|
1155
1146
|
hide(el);
|
|
1156
1147
|
}
|
|
1157
1148
|
});
|
|
@@ -1260,6 +1251,7 @@ function renderArrow() {
|
|
|
1260
1251
|
* @returns popper实例
|
|
1261
1252
|
*/
|
|
1262
1253
|
function createPopperInstance(el, popper) {
|
|
1254
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
1263
1255
|
var _nodeList$get = tooltips_nodeList.get(el),
|
|
1264
1256
|
opts = _nodeList$get.opts;
|
|
1265
1257
|
var placement = opts.placement,
|
|
@@ -1300,6 +1292,7 @@ function createPopperInstance(el, popper) {
|
|
|
1300
1292
|
* @param el
|
|
1301
1293
|
*/
|
|
1302
1294
|
function show(el) {
|
|
1295
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
1303
1296
|
var _nodeList$get2 = tooltips_nodeList.get(el),
|
|
1304
1297
|
popper = _nodeList$get2.popper,
|
|
1305
1298
|
opts = _nodeList$get2.opts;
|
|
@@ -1362,24 +1355,20 @@ function hide(el) {
|
|
|
1362
1355
|
}
|
|
1363
1356
|
}
|
|
1364
1357
|
/* harmony default export */ const src_tooltips = ((/* unused pure expression or super */ null && (tooltips)));
|
|
1365
|
-
;// external "../loading"
|
|
1366
|
-
var external_loading_x = (y)
|
|
1367
|
-
|
|
1368
|
-
}
|
|
1369
|
-
var external_loading_y = (x) => (() => (x))
|
|
1358
|
+
;// CONCATENATED MODULE: external "../loading"
|
|
1359
|
+
var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1360
|
+
var external_loading_y = x => () => x
|
|
1370
1361
|
const external_loading_namespaceObject = external_loading_x({ });
|
|
1371
|
-
;// external "../overflow-title"
|
|
1372
|
-
var external_overflow_title_x = (y)
|
|
1373
|
-
|
|
1374
|
-
}
|
|
1375
|
-
var external_overflow_title_y = (x) => (() => (x))
|
|
1362
|
+
;// CONCATENATED MODULE: external "../overflow-title"
|
|
1363
|
+
var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1364
|
+
var external_overflow_title_y = x => () => x
|
|
1376
1365
|
const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
1377
|
-
;// ../../packages/directives/src/index.ts
|
|
1366
|
+
;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
|
|
1378
1367
|
/*
|
|
1379
1368
|
* Tencent is pleased to support the open source community by making
|
|
1380
1369
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1381
1370
|
*
|
|
1382
|
-
* Copyright (C)
|
|
1371
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1383
1372
|
*
|
|
1384
1373
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1385
1374
|
*
|
|
@@ -1407,19 +1396,17 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
|
1407
1396
|
|
|
1408
1397
|
|
|
1409
1398
|
// export { createInstance as bkEllipsisInstance } from './ellipsis';
|
|
1410
|
-
;// external "../config-provider"
|
|
1411
|
-
var config_provider_x = (y)
|
|
1412
|
-
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
|
1416
|
-
;// ../../packages/popover/src/arrow.tsx
|
|
1399
|
+
;// CONCATENATED MODULE: external "../config-provider"
|
|
1400
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1401
|
+
var config_provider_y = x => () => x
|
|
1402
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
|
1403
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/arrow.tsx
|
|
1417
1404
|
|
|
1418
1405
|
/*
|
|
1419
1406
|
* Tencent is pleased to support the open source community by making
|
|
1420
1407
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1421
1408
|
*
|
|
1422
|
-
* Copyright (C)
|
|
1409
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1423
1410
|
*
|
|
1424
1411
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1425
1412
|
*
|
|
@@ -1453,14 +1440,14 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
|
1453
1440
|
}, null);
|
|
1454
1441
|
}
|
|
1455
1442
|
}));
|
|
1456
|
-
;// ../../packages/popover/src/const.tsx
|
|
1443
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
|
|
1457
1444
|
|
|
1458
1445
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
1459
1446
|
/*
|
|
1460
1447
|
* Tencent is pleased to support the open source community by making
|
|
1461
1448
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1462
1449
|
*
|
|
1463
|
-
* Copyright (C)
|
|
1450
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1464
1451
|
*
|
|
1465
1452
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1466
1453
|
*
|
|
@@ -1499,13 +1486,13 @@ var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
|
|
|
1499
1486
|
return true;
|
|
1500
1487
|
};
|
|
1501
1488
|
var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN);
|
|
1502
|
-
;// ../../packages/popover/src/content.tsx
|
|
1489
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
|
|
1503
1490
|
|
|
1504
1491
|
/*
|
|
1505
1492
|
* Tencent is pleased to support the open source community by making
|
|
1506
1493
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1507
1494
|
*
|
|
1508
|
-
* Copyright (C)
|
|
1495
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1509
1496
|
*
|
|
1510
1497
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1511
1498
|
*
|
|
@@ -1560,7 +1547,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
|
1560
1547
|
var refContent = (0,external_vue_namespaceObject.ref)(null);
|
|
1561
1548
|
var refTimer = (0,external_vue_namespaceObject.ref)(null);
|
|
1562
1549
|
var handleClick = function handleClick(evt) {
|
|
1563
|
-
evt.stopPropagation();
|
|
1550
|
+
// evt.stopPropagation();
|
|
1564
1551
|
emit('click', evt);
|
|
1565
1552
|
};
|
|
1566
1553
|
var resetPointerEvent = function resetPointerEvent() {
|
|
@@ -1623,13 +1610,11 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
|
1623
1610
|
}, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
|
|
1624
1611
|
}
|
|
1625
1612
|
}));
|
|
1626
|
-
;// external "vue-types"
|
|
1627
|
-
var external_vue_types_x = (y)
|
|
1628
|
-
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
|
|
1632
|
-
;// ../../packages/popover/src/props.ts
|
|
1613
|
+
;// CONCATENATED MODULE: external "vue-types"
|
|
1614
|
+
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1615
|
+
var external_vue_types_y = x => () => x
|
|
1616
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
|
1617
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/props.ts
|
|
1633
1618
|
|
|
1634
1619
|
|
|
1635
1620
|
var EventProps = {
|
|
@@ -1677,7 +1662,7 @@ var PopoverProps = {
|
|
|
1677
1662
|
/**
|
|
1678
1663
|
* 弹出内容绑定元素
|
|
1679
1664
|
*/
|
|
1680
|
-
boundary: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('parent'), shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]),
|
|
1665
|
+
boundary: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('parent'), shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]).def('body'),
|
|
1681
1666
|
zIndex: shared_namespaceObject.PropTypes.number.def(undefined),
|
|
1682
1667
|
disableTeleport: shared_namespaceObject.PropTypes.bool.def(false),
|
|
1683
1668
|
/**
|
|
@@ -1732,12 +1717,12 @@ var PopoverProps = {
|
|
|
1732
1717
|
*/
|
|
1733
1718
|
forceClickoutside: shared_namespaceObject.PropTypes.bool.def(false)
|
|
1734
1719
|
};
|
|
1735
|
-
;// ../../packages/popover/src/reference.tsx
|
|
1720
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/reference.tsx
|
|
1736
1721
|
/*
|
|
1737
1722
|
* Tencent is pleased to support the open source community by making
|
|
1738
1723
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1739
1724
|
*
|
|
1740
|
-
* Copyright (C)
|
|
1725
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1741
1726
|
*
|
|
1742
1727
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1743
1728
|
*
|
|
@@ -1766,13 +1751,13 @@ var PopoverProps = {
|
|
|
1766
1751
|
return (_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '';
|
|
1767
1752
|
}
|
|
1768
1753
|
}));
|
|
1769
|
-
;// ../../packages/popover/src/root.tsx
|
|
1754
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/root.tsx
|
|
1770
1755
|
|
|
1771
1756
|
/*
|
|
1772
1757
|
* Tencent is pleased to support the open source community by making
|
|
1773
1758
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1774
1759
|
*
|
|
1775
|
-
* Copyright (C)
|
|
1760
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1776
1761
|
*
|
|
1777
1762
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1778
1763
|
*
|
|
@@ -1805,11 +1790,11 @@ var PopoverProps = {
|
|
|
1805
1790
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]);
|
|
1806
1791
|
}
|
|
1807
1792
|
}));
|
|
1808
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
1793
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
1809
1794
|
function _arrayWithHoles(arr) {
|
|
1810
1795
|
if (Array.isArray(arr)) return arr;
|
|
1811
1796
|
}
|
|
1812
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
1797
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
1813
1798
|
function _iterableToArrayLimit(r, l) {
|
|
1814
1799
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
1815
1800
|
if (null != t) {
|
|
@@ -1837,11 +1822,11 @@ function _iterableToArrayLimit(r, l) {
|
|
|
1837
1822
|
return a;
|
|
1838
1823
|
}
|
|
1839
1824
|
}
|
|
1840
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
1825
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
1841
1826
|
function _nonIterableRest() {
|
|
1842
1827
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1843
1828
|
}
|
|
1844
|
-
;// ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
1829
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
1845
1830
|
|
|
1846
1831
|
|
|
1847
1832
|
|
|
@@ -1849,7 +1834,7 @@ function _nonIterableRest() {
|
|
|
1849
1834
|
function _slicedToArray(arr, i) {
|
|
1850
1835
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
1851
1836
|
}
|
|
1852
|
-
;// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
1837
|
+
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
1853
1838
|
/**
|
|
1854
1839
|
* Custom positioning reference element.
|
|
1855
1840
|
* @see https://floating-ui.com/docs/virtual-elements
|
|
@@ -1980,7 +1965,7 @@ function rectToClientRect(rect) {
|
|
|
1980
1965
|
|
|
1981
1966
|
|
|
1982
1967
|
|
|
1983
|
-
;// ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
1968
|
+
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
1984
1969
|
|
|
1985
1970
|
|
|
1986
1971
|
|
|
@@ -3004,7 +2989,7 @@ const size = function (options) {
|
|
|
3004
2989
|
|
|
3005
2990
|
|
|
3006
2991
|
|
|
3007
|
-
;// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2992
|
+
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
3008
2993
|
function getNodeName(node) {
|
|
3009
2994
|
if (isNode(node)) {
|
|
3010
2995
|
return (node.nodeName || '').toLowerCase();
|
|
@@ -3134,7 +3119,7 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
3134
3119
|
|
|
3135
3120
|
|
|
3136
3121
|
|
|
3137
|
-
;// ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
3122
|
+
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
3138
3123
|
|
|
3139
3124
|
|
|
3140
3125
|
|
|
@@ -3799,24 +3784,20 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
|
|
|
3799
3784
|
|
|
3800
3785
|
|
|
3801
3786
|
|
|
3802
|
-
;// external "lodash/isElement"
|
|
3803
|
-
var isElement_x = (y)
|
|
3804
|
-
|
|
3805
|
-
}
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
}
|
|
3812
|
-
var random_y = (x) => (() => (x))
|
|
3813
|
-
const random_namespaceObject = random_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__["default"]) });
|
|
3814
|
-
;// ../../node_modules/uuid/dist/esm-browser/native.js
|
|
3787
|
+
;// CONCATENATED MODULE: external "lodash/isElement"
|
|
3788
|
+
var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
3789
|
+
var isElement_y = x => () => x
|
|
3790
|
+
const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
|
|
3791
|
+
;// CONCATENATED MODULE: external "lodash/random"
|
|
3792
|
+
var random_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
3793
|
+
var random_y = x => () => x
|
|
3794
|
+
const random_namespaceObject = random_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__["default"] });
|
|
3795
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
|
3815
3796
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
3816
3797
|
/* harmony default export */ const esm_browser_native = ({
|
|
3817
3798
|
randomUUID
|
|
3818
3799
|
});
|
|
3819
|
-
;// ../../node_modules/uuid/dist/esm-browser/rng.js
|
|
3800
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/rng.js
|
|
3820
3801
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
3821
3802
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
3822
3803
|
// generators (like Math.random()).
|
|
@@ -3835,7 +3816,7 @@ function rng() {
|
|
|
3835
3816
|
|
|
3836
3817
|
return getRandomValues(rnds8);
|
|
3837
3818
|
}
|
|
3838
|
-
;// ../../node_modules/uuid/dist/esm-browser/stringify.js
|
|
3819
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/stringify.js
|
|
3839
3820
|
|
|
3840
3821
|
/**
|
|
3841
3822
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
@@ -3869,7 +3850,7 @@ function stringify(arr, offset = 0) {
|
|
|
3869
3850
|
}
|
|
3870
3851
|
|
|
3871
3852
|
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
|
3872
|
-
;// ../../node_modules/uuid/dist/esm-browser/v4.js
|
|
3853
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/v4.js
|
|
3873
3854
|
|
|
3874
3855
|
|
|
3875
3856
|
|
|
@@ -3899,12 +3880,12 @@ function v4(options, buf, offset) {
|
|
|
3899
3880
|
}
|
|
3900
3881
|
|
|
3901
3882
|
/* harmony default export */ const esm_browser_v4 = (v4);
|
|
3902
|
-
;// ../../packages/popover/src/utils.ts
|
|
3883
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/utils.ts
|
|
3903
3884
|
/*
|
|
3904
3885
|
* Tencent is pleased to support the open source community by making
|
|
3905
3886
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
3906
3887
|
*
|
|
3907
|
-
* Copyright (C)
|
|
3888
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
3908
3889
|
*
|
|
3909
3890
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
3910
3891
|
*
|
|
@@ -3969,7 +3950,7 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
|
3969
3950
|
var random = function random() {
|
|
3970
3951
|
return "".concat((0,random_namespaceObject["default"])(0, 999999), "_").concat(Date.now(), "_").concat((0,random_namespaceObject["default"])(0, 999999));
|
|
3971
3952
|
};
|
|
3972
|
-
;// ../../packages/popover/src/use-floating.tsx
|
|
3953
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
|
|
3973
3954
|
|
|
3974
3955
|
|
|
3975
3956
|
function use_floating_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; }
|
|
@@ -3978,7 +3959,7 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
|
3978
3959
|
* Tencent is pleased to support the open source community by making
|
|
3979
3960
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
3980
3961
|
*
|
|
3981
|
-
* Copyright (C)
|
|
3962
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
3982
3963
|
*
|
|
3983
3964
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
3984
3965
|
*
|
|
@@ -4195,6 +4176,25 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
|
4195
4176
|
}, {});
|
|
4196
4177
|
var contentClass = "".concat(customThemeCls);
|
|
4197
4178
|
var cleanup = null;
|
|
4179
|
+
// 清理所有定时器的函数
|
|
4180
|
+
var clearAllTimers = function clearAllTimers() {
|
|
4181
|
+
if (popHideTimerId) {
|
|
4182
|
+
clearTimeout(popHideTimerId);
|
|
4183
|
+
popHideTimerId = undefined;
|
|
4184
|
+
}
|
|
4185
|
+
if (popShowTimerId) {
|
|
4186
|
+
clearTimeout(popShowTimerId);
|
|
4187
|
+
popShowTimerId = undefined;
|
|
4188
|
+
}
|
|
4189
|
+
};
|
|
4190
|
+
// 包装 cleanup 函数,确保在清理时也清理定时器
|
|
4191
|
+
var wrappedCleanup = function wrappedCleanup() {
|
|
4192
|
+
clearAllTimers();
|
|
4193
|
+
if (cleanup) {
|
|
4194
|
+
cleanup();
|
|
4195
|
+
cleanup = null;
|
|
4196
|
+
}
|
|
4197
|
+
};
|
|
4198
4198
|
var getRoundPixelVal = function getRoundPixelVal(val) {
|
|
4199
4199
|
var dpr = window.devicePixelRatio || 1;
|
|
4200
4200
|
return Math.round(val * dpr) / dpr || 0;
|
|
@@ -4245,9 +4245,35 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
|
4245
4245
|
}
|
|
4246
4246
|
};
|
|
4247
4247
|
var createPopInstance = function createPopInstance() {
|
|
4248
|
+
var retryCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
4248
4249
|
var _resolvePopElements = resolvePopElements(),
|
|
4249
4250
|
elReference = _resolvePopElements.elReference,
|
|
4250
4251
|
elContent = _resolvePopElements.elContent;
|
|
4252
|
+
// 检查元素是否存在,如果不存在则延迟创建实例
|
|
4253
|
+
// 这通常发生在 renderDirective = 'show' 时,Content 通过 Teleport 渲染,可能还未完全挂载
|
|
4254
|
+
if (!elReference || !elContent) {
|
|
4255
|
+
// 限制重试次数,避免无限循环
|
|
4256
|
+
if (retryCount >= 10) {
|
|
4257
|
+
console.warn('[Popover] Failed to create popover instance: elements not found after retries');
|
|
4258
|
+
return;
|
|
4259
|
+
}
|
|
4260
|
+
// 使用 nextTick 等待 DOM 更新完成,特别是等待 Teleport 完成
|
|
4261
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
|
4262
|
+
createPopInstance(retryCount + 1);
|
|
4263
|
+
});
|
|
4264
|
+
return;
|
|
4265
|
+
}
|
|
4266
|
+
// 确保元素已经挂载到 DOM 中(对于 Teleport 渲染的元素很重要)
|
|
4267
|
+
if (!elReference.isConnected || !elContent.isConnected) {
|
|
4268
|
+
if (retryCount >= 10) {
|
|
4269
|
+
console.warn('[Popover] Failed to create popover instance: elements not connected to DOM after retries');
|
|
4270
|
+
return;
|
|
4271
|
+
}
|
|
4272
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
|
4273
|
+
createPopInstance(retryCount + 1);
|
|
4274
|
+
});
|
|
4275
|
+
return;
|
|
4276
|
+
}
|
|
4251
4277
|
cleanup = autoUpdate(elReference, elContent, function () {
|
|
4252
4278
|
if (localIsShow.value) {
|
|
4253
4279
|
updatePopover(null, props);
|
|
@@ -4300,6 +4326,10 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
|
4300
4326
|
var delay = resolvePopoverDelay()[0];
|
|
4301
4327
|
// 设置settimeout避免hidePopover导致显示问题
|
|
4302
4328
|
popShowTimerId = setTimeout(function () {
|
|
4329
|
+
// 检查组件是否仍然存在,避免在组件卸载后更新状态
|
|
4330
|
+
if (!refContent.value) {
|
|
4331
|
+
return;
|
|
4332
|
+
}
|
|
4303
4333
|
// if (popHideTimerId) {
|
|
4304
4334
|
// clearTimeout(popHideTimerId);
|
|
4305
4335
|
// }
|
|
@@ -4311,6 +4341,10 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
|
4311
4341
|
var hidePopover = function hidePopover() {
|
|
4312
4342
|
var delay = resolvePopoverDelay()[1];
|
|
4313
4343
|
popHideTimerId = setTimeout(function () {
|
|
4344
|
+
// 检查组件是否仍然存在,避免在组件卸载后更新状态
|
|
4345
|
+
if (!refContent.value) {
|
|
4346
|
+
return;
|
|
4347
|
+
}
|
|
4314
4348
|
popShowTimerId && clearTimeout(popShowTimerId);
|
|
4315
4349
|
isMouseenter = false;
|
|
4316
4350
|
localIsShow.value = false;
|
|
@@ -4319,20 +4353,34 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
|
4319
4353
|
var handlePopoverShow = function handlePopoverShow() {
|
|
4320
4354
|
var _refContent$value2;
|
|
4321
4355
|
var elContent = resolveTargetElement((_refContent$value2 = refContent.value) === null || _refContent$value2 === void 0 ? void 0 : _refContent$value2.$el);
|
|
4356
|
+
// 检查元素是否存在,避免在 null 上访问 style 属性
|
|
4357
|
+
if (!elContent) {
|
|
4358
|
+
return;
|
|
4359
|
+
}
|
|
4322
4360
|
elContent.style.setProperty('display', 'block');
|
|
4323
4361
|
elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex : shared_namespaceObject.bkZIndexManager.getPopperIndex()));
|
|
4324
4362
|
updatePopover();
|
|
4325
|
-
ctx
|
|
4326
|
-
|
|
4327
|
-
|
|
4363
|
+
// 检查 ctx 是否存在,避免在 null 上调用 emit
|
|
4364
|
+
if (ctx !== null && ctx !== void 0 && ctx.emit) {
|
|
4365
|
+
ctx.emit(EMIT_EVENTS.CONTENT_AfterShow, {
|
|
4366
|
+
isShow: true
|
|
4367
|
+
});
|
|
4368
|
+
}
|
|
4328
4369
|
};
|
|
4329
4370
|
var handlePopoverHide = function handlePopoverHide() {
|
|
4330
4371
|
var _refContent$value3;
|
|
4331
4372
|
var elContent = resolveTargetElement((_refContent$value3 = refContent.value) === null || _refContent$value3 === void 0 ? void 0 : _refContent$value3.$el);
|
|
4373
|
+
// 检查元素是否存在,避免在 null 上访问 style 属性
|
|
4374
|
+
if (!elContent) {
|
|
4375
|
+
return;
|
|
4376
|
+
}
|
|
4332
4377
|
elContent.style.setProperty('display', 'none');
|
|
4333
|
-
ctx
|
|
4334
|
-
|
|
4335
|
-
|
|
4378
|
+
// 检查 ctx 是否存在,避免在 null 上调用 emit
|
|
4379
|
+
if (ctx !== null && ctx !== void 0 && ctx.emit) {
|
|
4380
|
+
ctx.emit(EMIT_EVENTS.CONTENT_AfterHidden, {
|
|
4381
|
+
isShow: false
|
|
4382
|
+
});
|
|
4383
|
+
}
|
|
4336
4384
|
};
|
|
4337
4385
|
var triggerPopover = function triggerPopover() {
|
|
4338
4386
|
if (!localIsShow.value) {
|
|
@@ -4371,13 +4419,17 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
|
4371
4419
|
* 例如:鼠标移入内容区域,则取消弹出内容隐藏操作
|
|
4372
4420
|
*/
|
|
4373
4421
|
var emitPopContentMouseEnter = function emitPopContentMouseEnter(e) {
|
|
4374
|
-
ctx.emit
|
|
4422
|
+
if (ctx !== null && ctx !== void 0 && ctx.emit) {
|
|
4423
|
+
ctx.emit(EMIT_EVENTS.CONTENT_MOUSEENTER, e);
|
|
4424
|
+
}
|
|
4375
4425
|
};
|
|
4376
4426
|
/**
|
|
4377
4427
|
* 弹出内容鼠标移出事件
|
|
4378
4428
|
*/
|
|
4379
4429
|
var emitPopContentMouseLeave = function emitPopContentMouseLeave(e) {
|
|
4380
|
-
ctx.emit
|
|
4430
|
+
if (ctx !== null && ctx !== void 0 && ctx.emit) {
|
|
4431
|
+
ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE, e);
|
|
4432
|
+
}
|
|
4381
4433
|
};
|
|
4382
4434
|
var resolveTriggerEvents = function resolveTriggerEvents() {
|
|
4383
4435
|
var _triggerEvents$props$;
|
|
@@ -4430,15 +4482,15 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
|
4430
4482
|
getFullscreenRoot: getFullscreenRoot,
|
|
4431
4483
|
stopHide: stopHide,
|
|
4432
4484
|
localIsShow: localIsShow,
|
|
4433
|
-
cleanup:
|
|
4485
|
+
cleanup: wrappedCleanup
|
|
4434
4486
|
};
|
|
4435
4487
|
});
|
|
4436
|
-
;// ../../packages/popover/src/use-popper-id.ts
|
|
4488
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/use-popper-id.ts
|
|
4437
4489
|
/*
|
|
4438
4490
|
* Tencent is pleased to support the open source community by making
|
|
4439
4491
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
4440
4492
|
*
|
|
4441
|
-
* Copyright (C)
|
|
4493
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
4442
4494
|
*
|
|
4443
4495
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
4444
4496
|
*
|
|
@@ -4461,10 +4513,11 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
|
4461
4513
|
*/
|
|
4462
4514
|
|
|
4463
4515
|
|
|
4464
|
-
var popContainerId =
|
|
4465
|
-
var parentNodeReferId = null;
|
|
4516
|
+
var popContainerId = "id_".concat(esm_browser_v4());
|
|
4466
4517
|
/* harmony default export */ const use_popper_id = (function (props) {
|
|
4467
4518
|
var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#';
|
|
4519
|
+
// 为每个 popover 实例生成独立的 parentNodeReferId,避免嵌套时 ID 冲突
|
|
4520
|
+
var parentNodeReferId = "id_".concat(esm_browser_v4());
|
|
4468
4521
|
var getPrefixId = function getPrefixId(root) {
|
|
4469
4522
|
var resolvedBoundary = null;
|
|
4470
4523
|
var resolveBoundary = function resolveBoundary(fn) {
|
|
@@ -4473,8 +4526,7 @@ var parentNodeReferId = null;
|
|
|
4473
4526
|
}
|
|
4474
4527
|
};
|
|
4475
4528
|
var resolveParentBoundary = function resolveParentBoundary() {
|
|
4476
|
-
if (/^parent$/i.test(props.boundary)) {
|
|
4477
|
-
resolvedBoundary = "".concat(prefix).concat(popContainerId);
|
|
4529
|
+
if (/^parent$/i.test(props.boundary) || !props.boundary) {
|
|
4478
4530
|
var _ref = root || {},
|
|
4479
4531
|
parentNode = _ref.parentNode;
|
|
4480
4532
|
if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
|
|
@@ -4484,52 +4536,71 @@ var parentNodeReferId = null;
|
|
|
4484
4536
|
}
|
|
4485
4537
|
};
|
|
4486
4538
|
var resolveCommonBoundary = function resolveCommonBoundary() {
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4539
|
+
// 如果 boundary 是字符串 'body',使用动态创建的 popContainer
|
|
4540
|
+
if (typeof props.boundary === 'string' && /^body$/i.test(props.boundary)) {
|
|
4541
|
+
resolvedBoundary = "".concat(prefix).concat(popContainerId);
|
|
4542
|
+
return;
|
|
4543
|
+
}
|
|
4544
|
+
// 如果 boundary 是 document.body 对象,使用动态创建的 popContainer
|
|
4545
|
+
if (props.boundary === document.body) {
|
|
4546
|
+
resolvedBoundary = "".concat(prefix).concat(popContainerId);
|
|
4547
|
+
return;
|
|
4548
|
+
}
|
|
4549
|
+
// 处理其他字符串选择器,直接使用
|
|
4550
|
+
if (typeof props.boundary === 'string') {
|
|
4551
|
+
resolvedBoundary = props.boundary;
|
|
4552
|
+
return;
|
|
4553
|
+
}
|
|
4554
|
+
// 处理其他 HTMLElement 对象,直接使用
|
|
4555
|
+
if (utils_isElement(props.boundary)) {
|
|
4556
|
+
resolvedBoundary = props.boundary;
|
|
4557
|
+
return;
|
|
4501
4558
|
}
|
|
4502
4559
|
};
|
|
4503
4560
|
resolveBoundary(resolveParentBoundary);
|
|
4504
4561
|
resolveBoundary(resolveCommonBoundary);
|
|
4562
|
+
// 默认降级逻辑
|
|
4505
4563
|
resolveBoundary(function () {
|
|
4506
|
-
resolvedBoundary =
|
|
4564
|
+
resolvedBoundary = "".concat(prefix).concat(popContainerId);
|
|
4507
4565
|
});
|
|
4508
4566
|
return resolvedBoundary;
|
|
4509
4567
|
};
|
|
4510
|
-
|
|
4511
|
-
|
|
4568
|
+
// 确保全局 popContainer 容器存在
|
|
4569
|
+
if (!isAvailableId("#".concat(popContainerId))) {
|
|
4512
4570
|
var popContainer = document.createElement('div');
|
|
4513
4571
|
popContainer.setAttribute('id', popContainerId);
|
|
4514
4572
|
popContainer.setAttribute('data-popper-id', popContainerId);
|
|
4515
4573
|
document.body.append(popContainer);
|
|
4516
4574
|
}
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4575
|
+
// 清理父节点上的 data-pnode-id 属性
|
|
4576
|
+
var clearParentNodeId = function clearParentNodeId(root) {
|
|
4577
|
+
if (/^parent$/i.test(props.boundary)) {
|
|
4578
|
+
var _ref2 = root || {},
|
|
4579
|
+
parentNode = _ref2.parentNode;
|
|
4580
|
+
if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
|
|
4581
|
+
var attr = parentNode.parentNode.getAttribute('data-pnode-id');
|
|
4582
|
+
// 只清理当前实例设置的属性
|
|
4583
|
+
if (attr === parentNodeReferId) {
|
|
4584
|
+
parentNode.parentNode.removeAttribute('data-pnode-id');
|
|
4585
|
+
}
|
|
4586
|
+
}
|
|
4587
|
+
}
|
|
4588
|
+
};
|
|
4520
4589
|
return {
|
|
4521
4590
|
popContainerId: popContainerId,
|
|
4522
4591
|
prefixId: getPrefixId(),
|
|
4523
|
-
getPrefixId: getPrefixId
|
|
4592
|
+
getPrefixId: getPrefixId,
|
|
4593
|
+
parentNodeReferId: parentNodeReferId,
|
|
4594
|
+
clearParentNodeId: clearParentNodeId
|
|
4524
4595
|
};
|
|
4525
4596
|
});
|
|
4526
|
-
;// ../../packages/popover/src/use-popover-init.ts
|
|
4597
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/use-popover-init.ts
|
|
4527
4598
|
|
|
4528
4599
|
/*
|
|
4529
4600
|
* Tencent is pleased to support the open source community by making
|
|
4530
4601
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
4531
4602
|
*
|
|
4532
|
-
* Copyright (C)
|
|
4603
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
4533
4604
|
*
|
|
4534
4605
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
4535
4606
|
*
|
|
@@ -4602,9 +4673,23 @@ var parentNodeReferId = null;
|
|
|
4602
4673
|
}
|
|
4603
4674
|
};
|
|
4604
4675
|
var addEventToPopTargetEl = function addEventToPopTargetEl() {
|
|
4676
|
+
var retryCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
4605
4677
|
var _resolvePopElements = resolvePopElements(),
|
|
4606
4678
|
elReference = _resolvePopElements.elReference,
|
|
4607
4679
|
elContent = _resolvePopElements.elContent;
|
|
4680
|
+
// 检查元素是否存在,如果不存在则延迟执行
|
|
4681
|
+
// 这通常发生在 renderDirective = 'show' 时,Content 通过 Teleport 渲染,可能还未完全挂载
|
|
4682
|
+
if (!elReference) {
|
|
4683
|
+
if (retryCount >= 10) {
|
|
4684
|
+
console.warn('[Popover] Failed to add events: reference element not found after retries');
|
|
4685
|
+
return;
|
|
4686
|
+
}
|
|
4687
|
+
// 使用 nextTick 等待 DOM 更新完成
|
|
4688
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
|
4689
|
+
addEventToPopTargetEl(retryCount + 1);
|
|
4690
|
+
});
|
|
4691
|
+
return;
|
|
4692
|
+
}
|
|
4608
4693
|
storeEvents = resolveTriggerEvents();
|
|
4609
4694
|
storeEvents.forEach(function (storeEvent) {
|
|
4610
4695
|
if (Array.isArray(storeEvent)) {
|
|
@@ -4613,11 +4698,18 @@ var parentNodeReferId = null;
|
|
|
4613
4698
|
var content = storeEvent.content,
|
|
4614
4699
|
reference = storeEvent.reference;
|
|
4615
4700
|
addEventToTargetEl(elReference, reference);
|
|
4616
|
-
|
|
4701
|
+
// elContent 可能为 null(当 renderDirective = 'show' 且 Content 还未挂载时)
|
|
4702
|
+
if (elContent) {
|
|
4703
|
+
addEventToTargetEl(elContent, content);
|
|
4704
|
+
}
|
|
4617
4705
|
}
|
|
4618
4706
|
});
|
|
4619
4707
|
};
|
|
4620
4708
|
var addEventToTargetEl = function addEventToTargetEl(target, evets) {
|
|
4709
|
+
// 检查 target 是否存在,避免在 null 上调用 addEventListener
|
|
4710
|
+
if (!target) {
|
|
4711
|
+
return;
|
|
4712
|
+
}
|
|
4621
4713
|
evets.forEach(function (_ref2) {
|
|
4622
4714
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
4623
4715
|
event = _ref3[0],
|
|
@@ -4683,13 +4775,18 @@ var parentNodeReferId = null;
|
|
|
4683
4775
|
var _fullScreenTarget$val;
|
|
4684
4776
|
var _ref10 = elReference || root || {},
|
|
4685
4777
|
parentNode = _ref10.parentNode;
|
|
4686
|
-
|
|
4778
|
+
var fullscreenBoundary = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
|
|
4779
|
+
// 确保 boundary 始终有一个有效值,避免 Teleport 的 to 属性为 undefined
|
|
4780
|
+
boundary.value = fullscreenBoundary || 'body';
|
|
4687
4781
|
return;
|
|
4688
4782
|
}
|
|
4689
|
-
|
|
4783
|
+
var resolvedBoundary = getPrefixId(root || elReference);
|
|
4784
|
+
// 确保 boundary 始终有一个有效值,避免 Teleport 的 to 属性为 undefined
|
|
4785
|
+
boundary.value = resolvedBoundary || 'body';
|
|
4690
4786
|
};
|
|
4691
4787
|
var _usePopperId = use_popper_id(props, '#'),
|
|
4692
|
-
getPrefixId = _usePopperId.getPrefixId
|
|
4788
|
+
getPrefixId = _usePopperId.getPrefixId,
|
|
4789
|
+
clearParentNodeId = _usePopperId.clearParentNodeId;
|
|
4693
4790
|
var setFullscreenTag = function setFullscreenTag() {
|
|
4694
4791
|
var _fullScreenTarget$val2;
|
|
4695
4792
|
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
|
|
@@ -4701,7 +4798,8 @@ var parentNodeReferId = null;
|
|
|
4701
4798
|
element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
|
|
4702
4799
|
});
|
|
4703
4800
|
};
|
|
4704
|
-
|
|
4801
|
+
// 初始化 boundary 为 'body',避免 Teleport 的 to 属性为 undefined
|
|
4802
|
+
var boundary = (0,external_vue_namespaceObject.ref)('body');
|
|
4705
4803
|
var beforeInstanceUnmount = function beforeInstanceUnmount() {
|
|
4706
4804
|
removeEventListener();
|
|
4707
4805
|
};
|
|
@@ -4723,25 +4821,49 @@ var parentNodeReferId = null;
|
|
|
4723
4821
|
if (props.disabled) {
|
|
4724
4822
|
return;
|
|
4725
4823
|
}
|
|
4726
|
-
initPopInstance();
|
|
4727
4824
|
if (isElementFullScreen()) {
|
|
4728
4825
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
|
4729
4826
|
var target = getFullscreenRoot(query);
|
|
4730
4827
|
updateFullscreen(target);
|
|
4731
4828
|
}
|
|
4829
|
+
// 先更新 boundary,确保在初始化 popover 实例之前 boundary 已正确设置
|
|
4732
4830
|
updateBoundary();
|
|
4831
|
+
initPopInstance();
|
|
4733
4832
|
document.body.addEventListener('fullscreenchange', handleFullscreenChange);
|
|
4833
|
+
document.addEventListener('click', handleClickOutside);
|
|
4734
4834
|
};
|
|
4735
4835
|
var onUnmountedFn = function onUnmountedFn() {
|
|
4736
4836
|
beforeInstanceUnmount();
|
|
4837
|
+
// 清理父节点上的 data-pnode-id 属性
|
|
4838
|
+
var _resolvePopElements4 = resolvePopElements(),
|
|
4839
|
+
root = _resolvePopElements4.root;
|
|
4840
|
+
clearParentNodeId(root);
|
|
4737
4841
|
document.body.removeEventListener('fullscreenchange', handleFullscreenChange);
|
|
4842
|
+
document.removeEventListener('click', handleClickOutside);
|
|
4738
4843
|
};
|
|
4739
|
-
var
|
|
4844
|
+
var isClickInside = function isClickInside(target) {
|
|
4845
|
+
var _refContent$value$$el, _refContent$value, _refContent$value$con;
|
|
4846
|
+
return (_refContent$value$$el = (_refContent$value = refContent.value) === null || _refContent$value === void 0 || (_refContent$value = _refContent$value.$el) === null || _refContent$value === void 0 || (_refContent$value$con = _refContent$value.contains) === null || _refContent$value$con === void 0 ? void 0 : _refContent$value$con.call(_refContent$value, target)) !== null && _refContent$value$$el !== void 0 ? _refContent$value$$el : false;
|
|
4847
|
+
};
|
|
4848
|
+
/**
|
|
4849
|
+
* 处理点击外部区域的事件
|
|
4850
|
+
* @param e - 事件对象
|
|
4851
|
+
* @param hideIgnoreReference - 是否忽略隐藏参考元素
|
|
4852
|
+
* @returns
|
|
4853
|
+
*/
|
|
4854
|
+
var handleClickOutside = function handleClickOutside(e) {
|
|
4740
4855
|
var hideIgnoreReference = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
4856
|
+
var target = e.target;
|
|
4857
|
+
if (isClickInside(target)) {
|
|
4858
|
+
e.preventDefault();
|
|
4859
|
+
e.stopPropagation();
|
|
4860
|
+
e.stopImmediatePropagation();
|
|
4861
|
+
return;
|
|
4862
|
+
}
|
|
4741
4863
|
var commonFunc = function commonFunc() {
|
|
4742
4864
|
ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
|
|
4743
4865
|
isShow: localIsShow.value,
|
|
4744
|
-
event:
|
|
4866
|
+
event: e
|
|
4745
4867
|
});
|
|
4746
4868
|
var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual';
|
|
4747
4869
|
if (!props.forceClickoutside && needExec) {
|
|
@@ -4751,6 +4873,11 @@ var parentNodeReferId = null;
|
|
|
4751
4873
|
hideFn();
|
|
4752
4874
|
}
|
|
4753
4875
|
};
|
|
4876
|
+
/**
|
|
4877
|
+
* 如果需要忽略隐藏参考元素,则设置一个定时器,在定时器结束后检查是否需要隐藏 popover
|
|
4878
|
+
* @param hideIgnoreReference - 是否忽略隐藏参考元素
|
|
4879
|
+
* @returns
|
|
4880
|
+
*/
|
|
4754
4881
|
if (hideIgnoreReference) {
|
|
4755
4882
|
setTimeout(function () {
|
|
4756
4883
|
if (ReferenceClickSharedState[uniqKey]) {
|
|
@@ -4783,13 +4910,13 @@ var parentNodeReferId = null;
|
|
|
4783
4910
|
uniqKey: uniqKey
|
|
4784
4911
|
};
|
|
4785
4912
|
});
|
|
4786
|
-
;// ../../packages/popover/src/popover.tsx
|
|
4913
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/popover.tsx
|
|
4787
4914
|
|
|
4788
4915
|
/*
|
|
4789
4916
|
* Tencent is pleased to support the open source community by making
|
|
4790
4917
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
4791
4918
|
*
|
|
4792
|
-
* Copyright (C)
|
|
4919
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
4793
4920
|
*
|
|
4794
4921
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
4795
4922
|
*
|
|
@@ -4854,9 +4981,7 @@ function _isSlot(s) {
|
|
|
4854
4981
|
}),
|
|
4855
4982
|
onMountedFn = _usePopoverInit.onMountedFn,
|
|
4856
4983
|
onUnmountedFn = _usePopoverInit.onUnmountedFn,
|
|
4857
|
-
handleClickOutside = _usePopoverInit.handleClickOutside,
|
|
4858
4984
|
beforeInstanceUnmount = _usePopoverInit.beforeInstanceUnmount,
|
|
4859
|
-
updateBoundary = _usePopoverInit.updateBoundary,
|
|
4860
4985
|
initPopInstance = _usePopoverInit.initPopInstance,
|
|
4861
4986
|
showFn = _usePopoverInit.showFn,
|
|
4862
4987
|
hideFn = _usePopoverInit.hideFn,
|
|
@@ -4886,7 +5011,6 @@ function _isSlot(s) {
|
|
|
4886
5011
|
initPopInstance();
|
|
4887
5012
|
}
|
|
4888
5013
|
});
|
|
4889
|
-
updateBoundary();
|
|
4890
5014
|
(0,external_vue_namespaceObject.onMounted)(onMountedFn);
|
|
4891
5015
|
(0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
|
|
4892
5016
|
var isRenderModeShow = (0,external_vue_namespaceObject.computed)(function () {
|
|
@@ -4935,7 +5059,6 @@ function _isSlot(s) {
|
|
|
4935
5059
|
isRenderModeShow: isRenderModeShow,
|
|
4936
5060
|
transBoundary: transBoundary,
|
|
4937
5061
|
handleClickContent: handleClickContent,
|
|
4938
|
-
handleClickOutside: handleClickOutside,
|
|
4939
5062
|
updatePopover: updatePopover,
|
|
4940
5063
|
resetPopover: resetPopover,
|
|
4941
5064
|
hide: hide,
|
|
@@ -4991,7 +5114,7 @@ function _isSlot(s) {
|
|
|
4991
5114
|
"to": _this.boundary
|
|
4992
5115
|
}, {
|
|
4993
5116
|
"default": function _default() {
|
|
4994
|
-
return [(0,external_vue_namespaceObject.
|
|
5117
|
+
return [(0,external_vue_namespaceObject.createVNode)(content, {
|
|
4995
5118
|
"ref": "refContent",
|
|
4996
5119
|
"width": _this.width,
|
|
4997
5120
|
"height": _this.height,
|
|
@@ -5016,16 +5139,14 @@ function _isSlot(s) {
|
|
|
5016
5139
|
}
|
|
5017
5140
|
}) : '';
|
|
5018
5141
|
}
|
|
5019
|
-
})
|
|
5020
|
-
return _this.handleClickOutside(e, _this.hideIgnoreReference);
|
|
5021
|
-
}]])];
|
|
5142
|
+
})];
|
|
5022
5143
|
}
|
|
5023
5144
|
})];
|
|
5024
5145
|
}
|
|
5025
5146
|
});
|
|
5026
5147
|
}
|
|
5027
5148
|
}));
|
|
5028
|
-
;// ../../packages/popover/src/plugin-popover.tsx
|
|
5149
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/plugin-popover.tsx
|
|
5029
5150
|
|
|
5030
5151
|
|
|
5031
5152
|
function plugin_popover_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; }
|
|
@@ -5034,7 +5155,7 @@ function plugin_popover_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
|
5034
5155
|
* Tencent is pleased to support the open source community by making
|
|
5035
5156
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
5036
5157
|
*
|
|
5037
|
-
* Copyright (C)
|
|
5158
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
5038
5159
|
*
|
|
5039
5160
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
5040
5161
|
*
|
|
@@ -5211,12 +5332,12 @@ function createPopoverComponent(options) {
|
|
|
5211
5332
|
}
|
|
5212
5333
|
};
|
|
5213
5334
|
}
|
|
5214
|
-
;// ../../packages/popover/src/index.ts
|
|
5335
|
+
;// CONCATENATED MODULE: ../../packages/popover/src/index.ts
|
|
5215
5336
|
/**
|
|
5216
5337
|
* Tencent is pleased to support the open source community by making
|
|
5217
5338
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
5218
5339
|
*
|
|
5219
|
-
* Copyright (C)
|
|
5340
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
5220
5341
|
*
|
|
5221
5342
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
5222
5343
|
*
|
|
@@ -5243,6 +5364,8 @@ var BkPopover = (0,shared_namespaceObject.withInstall)(popover);
|
|
|
5243
5364
|
/* harmony default export */ const src = (BkPopover);
|
|
5244
5365
|
|
|
5245
5366
|
|
|
5367
|
+
})();
|
|
5368
|
+
|
|
5246
5369
|
var __webpack_exports__$bkPopover = __webpack_exports__.$bkPopover;
|
|
5247
5370
|
var __webpack_exports__PopoverProps = __webpack_exports__.PopoverProps;
|
|
5248
5371
|
var __webpack_exports__default = __webpack_exports__["default"];
|