bkui-vue 0.0.3-beta.6 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.cjs.js +47 -47
- package/dist/index.esm.js +10444 -10431
- package/dist/index.umd.js +47 -47
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +35 -34
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +82 -132
- package/lib/alert/index.js +43 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +7 -7
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +23 -22
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +120 -153
- package/lib/badge/index.js +40 -39
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -47
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +60 -53
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +129 -158
- package/lib/card/index.js +62 -57
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +338 -320
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +119 -161
- package/lib/checkbox/index.js +77 -78
- package/lib/code-diff/code-diff.css +0 -1
- package/lib/code-diff/code-diff.d.ts +1 -0
- package/lib/code-diff/code-diff.less +1 -1
- package/lib/code-diff/code-diff.variable.css +0 -1
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +532 -452
- package/lib/collapse/index.d.ts +144 -168
- package/lib/collapse/index.js +67 -66
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +10 -10
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +128 -154
- package/lib/color-picker/index.js +74 -76
- package/lib/components.js +63 -504
- package/lib/config-provider/index.d.ts +159 -226
- package/lib/config-provider/index.js +49 -45
- package/lib/config-provider/use-global-config.d.ts +2 -2
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +47 -46
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +3 -3
- package/lib/date-picker/index.d.ts +384 -351
- package/lib/date-picker/index.js +164 -170
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/index.d.ts +355 -309
- package/lib/dialog/index.js +291 -279
- package/lib/directives/index.js +51 -51
- package/lib/dist.index.js +5 -61
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +16 -15
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +56 -49
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +37 -37
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +16 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +83 -83
- package/lib/hooks.js +8 -48
- package/lib/icon/angle-double-down-line.js +23 -23
- package/lib/icon/angle-double-left-line.js +23 -23
- package/lib/icon/angle-double-left.js +23 -23
- package/lib/icon/angle-double-right-line.js +23 -23
- package/lib/icon/angle-double-right.js +23 -23
- package/lib/icon/angle-double-up-line.js +23 -23
- package/lib/icon/angle-down-fill.js +23 -23
- package/lib/icon/angle-down-line.js +23 -23
- package/lib/icon/angle-down.js +23 -23
- package/lib/icon/angle-left.js +23 -23
- package/lib/icon/angle-right.js +23 -23
- package/lib/icon/angle-up-fill.js +23 -23
- package/lib/icon/angle-up.js +23 -23
- package/lib/icon/archive-fill.js +23 -23
- package/lib/icon/arrows-left.js +23 -23
- package/lib/icon/arrows-right.js +23 -23
- package/lib/icon/assistant.js +23 -23
- package/lib/icon/audio-fill.js +23 -23
- package/lib/icon/bk.js +23 -23
- package/lib/icon/circle.js +23 -23
- package/lib/icon/close-line.js +23 -23
- package/lib/icon/close.js +23 -23
- package/lib/icon/code.js +23 -23
- package/lib/icon/cog-shape.js +23 -23
- package/lib/icon/collapse-left.js +23 -23
- package/lib/icon/copy-shape.js +23 -23
- package/lib/icon/copy.js +23 -23
- package/lib/icon/data-shape.js +23 -23
- package/lib/icon/del.js +23 -23
- package/lib/icon/doc-fill.js +23 -23
- package/lib/icon/done.js +23 -23
- package/lib/icon/down-shape.js +23 -23
- package/lib/icon/down-small.js +23 -23
- package/lib/icon/edit-line.js +23 -23
- package/lib/icon/ellipsis.js +23 -23
- package/lib/icon/enlarge-line.js +23 -23
- package/lib/icon/error.js +23 -23
- package/lib/icon/excel-fill.js +23 -23
- package/lib/icon/exclamation-circle-shape.js +23 -23
- package/lib/icon/eye.js +23 -23
- package/lib/icon/filliscreen-line.js +23 -23
- package/lib/icon/fix-line.js +23 -23
- package/lib/icon/fix-shape.js +23 -23
- package/lib/icon/folder-open.js +23 -23
- package/lib/icon/folder-shape-open.js +23 -23
- package/lib/icon/folder-shape.js +23 -23
- package/lib/icon/folder.js +23 -23
- package/lib/icon/funnel.js +23 -23
- package/lib/icon/grag-fill.js +23 -23
- package/lib/icon/help-document-fill.js +23 -23
- package/lib/icon/help-fill.js +23 -23
- package/lib/icon/help.js +23 -23
- package/lib/icon/image-fill.js +29 -29
- package/lib/icon/img-error.js +29 -29
- package/lib/icon/img-placehoulder.js +29 -29
- package/lib/icon/index.js +485 -485
- package/lib/icon/info-line.js +29 -29
- package/lib/icon/info.js +29 -29
- package/lib/icon/left-shape.js +29 -29
- package/lib/icon/left-turn-line.js +29 -29
- package/lib/icon/loading.js +29 -29
- package/lib/icon/narrow-line.js +29 -29
- package/lib/icon/original.js +29 -29
- package/lib/icon/pdf-fill.js +29 -29
- package/lib/icon/play-shape.js +29 -29
- package/lib/icon/plus.js +29 -29
- package/lib/icon/ppt-fill.js +29 -29
- package/lib/icon/qq.js +29 -29
- package/lib/icon/right-shape.js +29 -29
- package/lib/icon/right-turn-line.js +29 -29
- package/lib/icon/search.js +29 -29
- package/lib/icon/share.js +29 -29
- package/lib/icon/spinner.js +29 -29
- package/lib/icon/success.js +29 -29
- package/lib/icon/switcher-loading.js +29 -29
- package/lib/icon/text-file.js +29 -29
- package/lib/icon/text-fill.js +29 -29
- package/lib/icon/transfer.js +29 -29
- package/lib/icon/tree-application-shape.js +29 -29
- package/lib/icon/unfull-screen.js +29 -29
- package/lib/icon/unvisible.js +29 -29
- package/lib/icon/up-shape.js +29 -29
- package/lib/icon/upload.js +29 -29
- package/lib/icon/video-fill.js +29 -29
- package/lib/icon/warn.js +29 -29
- package/lib/icon/weixin-pro.js +29 -29
- package/lib/icon/weixin.js +29 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +62 -62
- package/lib/index.js +8 -72
- package/lib/info-box/index.js +296 -284
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +316 -317
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +16 -15
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +49 -50
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +2 -4
- package/lib/menu/index.d.ts +51 -112
- package/lib/menu/index.js +49 -48
- package/lib/message/index.js +69 -70
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +261 -249
- package/lib/modal/index.js +535 -75
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +17 -16
- package/lib/notify/index.js +56 -57
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +314 -242
- package/lib/overflow-title/index.js +32 -25
- package/lib/pagination/index.d.ts +194 -205
- package/lib/pagination/index.js +116 -109
- package/lib/plugin-popover/index.js +247 -153
- package/lib/plugins/index.js +2 -2
- package/lib/pop-confirm/index.d.ts +126 -159
- package/lib/pop-confirm/index.js +43 -31
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +374 -330
- package/lib/popover/index.js +251 -156
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +5 -5
- package/lib/preset.d.ts +2 -287
- package/lib/preset.js +16 -58
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +253 -254
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +48 -47
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +83 -135
- package/lib/radio/index.js +80 -81
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +43 -43
- package/lib/resize-layout/index.d.ts +156 -185
- package/lib/resize-layout/index.js +48 -48
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/search-select/index.d.ts +292 -327
- package/lib/search-select/index.js +310 -293
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +3 -3
- package/lib/search-select/selected.d.ts +2 -2
- package/lib/select/index.d.ts +1234 -1135
- package/lib/select/index.js +427 -392
- package/lib/select/select.d.ts +121 -161
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/helper.d.ts +4 -0
- package/lib/shared/index.js +235 -217
- package/lib/sideslider/index.d.ts +247 -233
- package/lib/sideslider/index.js +264 -263
- package/lib/slider/index.d.ts +204 -204
- package/lib/slider/index.js +245 -233
- package/lib/steps/index.d.ts +114 -150
- package/lib/steps/index.js +257 -257
- package/lib/styles/index.d.ts +0 -1
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +35 -34
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +52 -53
- package/lib/tab/index.d.ts +199 -211
- package/lib/tab/index.js +78 -79
- package/lib/table/components/table-column.d.ts +2 -2
- package/lib/table/index.d.ts +605 -593
- package/lib/table/index.js +275 -237
- package/lib/table/plugins/use-pagination.d.ts +1 -1
- package/lib/table/table.d.ts +1 -1
- package/lib/table/use-common.d.ts +67 -34
- package/lib/table-column/index.d.ts +207 -243
- package/lib/table-column/index.js +61 -62
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +41 -40
- package/lib/tag-input/index.d.ts +690 -498
- package/lib/tag-input/index.js +135 -129
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +442 -385
- package/lib/time-picker/index.js +10 -9
- package/lib/timeline/index.d.ts +50 -109
- package/lib/timeline/index.js +20 -20
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +52 -38
- package/lib/tree/index.d.ts +322 -288
- package/lib/tree/index.js +129 -113
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +281 -254
- package/lib/upload/index.js +313 -302
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +337 -242
- package/lib/virtual-render/index.js +66 -65
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +10 -14
- package/lib/version-log/index.d.ts +0 -298
- package/lib/version-log/index.js +0 -9045
- package/lib/version-log/version-log.css +0 -224
- package/lib/version-log/version-log.d.ts +0 -203
- package/lib/version-log/version-log.less +0 -239
- package/lib/version-log/version-log.variable.css +0 -350
package/lib/popover/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import "./popover.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
5
6
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
|
6
7
|
/******/ // The require scope
|
@@ -29,15 +30,15 @@ var __webpack_exports__ = {};
|
|
29
30
|
|
30
31
|
// EXPORTS
|
31
32
|
__webpack_require__.d(__webpack_exports__, {
|
32
|
-
|
33
|
-
|
34
|
-
|
33
|
+
$bkPopover: () => (/* reexport */ createPopoverComponent),
|
34
|
+
PopoverProps: () => (/* reexport */ PopoverProps),
|
35
|
+
"default": () => (/* binding */ src)
|
35
36
|
});
|
36
37
|
|
37
38
|
;// CONCATENATED MODULE: external "../shared"
|
38
39
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
39
40
|
var y = x => () => x
|
40
|
-
const
|
41
|
+
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, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
41
42
|
;// CONCATENATED MODULE: external "vue"
|
42
43
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
43
44
|
var external_vue_y = x => () => x
|
@@ -169,9 +170,9 @@ ClickOutside.install = function (app) {
|
|
169
170
|
};
|
170
171
|
/* harmony default export */ const clickoutside = (ClickOutside);
|
171
172
|
;// CONCATENATED MODULE: external "../config-provider"
|
172
|
-
var
|
173
|
-
var
|
174
|
-
const
|
173
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
174
|
+
var config_provider_y = x => () => x
|
175
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
175
176
|
;// CONCATENATED MODULE: ../../packages/popover/src/arrow.tsx
|
176
177
|
|
177
178
|
/*
|
@@ -204,7 +205,7 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
204
205
|
/* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
|
205
206
|
name: 'PopArrow',
|
206
207
|
render: function render() {
|
207
|
-
var _usePrefix = (0,
|
208
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
208
209
|
resolveClassName = _usePrefix.resolveClassName;
|
209
210
|
var arrowClassName = resolveClassName('pop2-arrow');
|
210
211
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -213,38 +214,38 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
213
214
|
}
|
214
215
|
}));
|
215
216
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
216
|
-
function _typeof(
|
217
|
+
function _typeof(o) {
|
217
218
|
"@babel/helpers - typeof";
|
218
219
|
|
219
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
220
|
-
return typeof
|
221
|
-
} : function (
|
222
|
-
return
|
223
|
-
}, _typeof(
|
220
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
221
|
+
return typeof o;
|
222
|
+
} : function (o) {
|
223
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
224
|
+
}, _typeof(o);
|
224
225
|
}
|
225
226
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
226
227
|
|
227
|
-
function
|
228
|
-
if (
|
229
|
-
var
|
230
|
-
if (
|
231
|
-
var
|
232
|
-
if (
|
228
|
+
function toPrimitive(t, r) {
|
229
|
+
if ("object" != _typeof(t) || !t) return t;
|
230
|
+
var e = t[Symbol.toPrimitive];
|
231
|
+
if (void 0 !== e) {
|
232
|
+
var i = e.call(t, r || "default");
|
233
|
+
if ("object" != _typeof(i)) return i;
|
233
234
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
234
235
|
}
|
235
|
-
return (
|
236
|
+
return ("string" === r ? String : Number)(t);
|
236
237
|
}
|
237
238
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
238
239
|
|
239
240
|
|
240
|
-
function
|
241
|
-
var
|
242
|
-
return _typeof(
|
241
|
+
function toPropertyKey(t) {
|
242
|
+
var i = toPrimitive(t, "string");
|
243
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
243
244
|
}
|
244
245
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
245
246
|
|
246
247
|
function _defineProperty(obj, key, value) {
|
247
|
-
key =
|
248
|
+
key = toPropertyKey(key);
|
248
249
|
if (key in obj) {
|
249
250
|
Object.defineProperty(obj, key, {
|
250
251
|
value: value,
|
@@ -259,7 +260,6 @@ function _defineProperty(obj, key, value) {
|
|
259
260
|
}
|
260
261
|
;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
|
261
262
|
|
262
|
-
var _EMIT_EVENT_TYPES;
|
263
263
|
/* eslint-disable @typescript-eslint/naming-convention */
|
264
264
|
/*
|
265
265
|
* Tencent is pleased to support the open source community by making
|
@@ -304,7 +304,7 @@ var EVENT_COMMON_FN = function EVENT_COMMON_FN(e) {
|
|
304
304
|
var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
|
305
305
|
return true;
|
306
306
|
};
|
307
|
-
var EMIT_EVENT_TYPES = (
|
307
|
+
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);
|
308
308
|
;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
|
309
309
|
|
310
310
|
/*
|
@@ -338,13 +338,13 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
338
338
|
/* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
|
339
339
|
name: 'PopContent',
|
340
340
|
props: {
|
341
|
-
width:
|
342
|
-
height:
|
343
|
-
maxHeight:
|
344
|
-
maxWidth:
|
345
|
-
extCls:
|
346
|
-
visible:
|
347
|
-
eventDelay:
|
341
|
+
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
342
|
+
height: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
343
|
+
maxHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
344
|
+
maxWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
345
|
+
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
346
|
+
visible: shared_namespaceObject.PropTypes.bool.def(false),
|
347
|
+
eventDelay: shared_namespaceObject.PropTypes.number.def(0)
|
348
348
|
},
|
349
349
|
setup: function setup(props) {
|
350
350
|
var resolveValToPix = function resolveValToPix(val) {
|
@@ -378,9 +378,9 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
378
378
|
if (props.eventDelay === 0) {
|
379
379
|
return;
|
380
380
|
}
|
381
|
-
(_refContent$value = refContent.value) === null || _refContent$value === void 0
|
381
|
+
(_refContent$value = refContent.value) === null || _refContent$value === void 0 || _refContent$value.style.setProperty('pointer-events', val);
|
382
382
|
};
|
383
|
-
var _usePrefix = (0,
|
383
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
384
384
|
resolveClassName = _usePrefix.resolveClassName;
|
385
385
|
return {
|
386
386
|
style: style,
|
@@ -431,91 +431,91 @@ var EventProps = {
|
|
431
431
|
onAfterShow: function onAfterShow() {}
|
432
432
|
};
|
433
433
|
var PopoverProps = {
|
434
|
-
isShow:
|
435
|
-
always:
|
436
|
-
disabled:
|
437
|
-
width:
|
438
|
-
height:
|
439
|
-
maxWidth:
|
440
|
-
maxHeight:
|
434
|
+
isShow: shared_namespaceObject.PropTypes.bool.def(false),
|
435
|
+
always: shared_namespaceObject.PropTypes.bool.def(false),
|
436
|
+
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
437
|
+
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
438
|
+
height: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
439
|
+
maxWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
440
|
+
maxHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
441
441
|
content: (0,external_vue_types_namespaceObject.toType)('IContent', {}).def(''),
|
442
|
-
target:
|
443
|
-
allowHtml:
|
442
|
+
target: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.instanceOf(HTMLElement), shared_namespaceObject.PropTypes.instanceOf(PointerEvent)]),
|
443
|
+
allowHtml: shared_namespaceObject.PropTypes.bool.def(false),
|
444
444
|
/**
|
445
445
|
* 组件显示位置
|
446
446
|
*/
|
447
447
|
// placement: placementType().def(PlacementEnum.TOP),
|
448
|
-
placement: (0,
|
448
|
+
placement: (0,shared_namespaceObject.placementType)().def(shared_namespaceObject.PlacementEnum.TOP_START),
|
449
449
|
// 'dark', 'light'
|
450
|
-
theme:
|
450
|
+
theme: shared_namespaceObject.PropTypes.string.def('dark'),
|
451
451
|
/**
|
452
452
|
* 触发方式
|
453
453
|
* 支持 click hover manual
|
454
454
|
* manual: 通过isShow控制显示、隐藏
|
455
455
|
*/
|
456
456
|
// trigger: triggerType(),
|
457
|
-
trigger: (0,
|
457
|
+
trigger: (0,shared_namespaceObject.triggerType)(),
|
458
458
|
/**
|
459
459
|
* content 渲染方式
|
460
460
|
*/
|
461
|
-
renderType: (0,
|
461
|
+
renderType: (0,shared_namespaceObject.renderType)(),
|
462
462
|
// 是否显示箭头
|
463
|
-
arrow:
|
464
|
-
padding:
|
465
|
-
offset:
|
466
|
-
mainAxis:
|
467
|
-
crossAxis:
|
468
|
-
alignmentAxis:
|
463
|
+
arrow: shared_namespaceObject.PropTypes.bool.def(true),
|
464
|
+
padding: shared_namespaceObject.PropTypes.number.def(5),
|
465
|
+
offset: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.shape({
|
466
|
+
mainAxis: shared_namespaceObject.PropTypes.number,
|
467
|
+
crossAxis: shared_namespaceObject.PropTypes.number,
|
468
|
+
alignmentAxis: shared_namespaceObject.PropTypes.number
|
469
469
|
})]).def(6),
|
470
470
|
/**
|
471
471
|
* 弹出内容绑定元素
|
472
472
|
*/
|
473
|
-
boundary:
|
474
|
-
zIndex:
|
475
|
-
disableTeleport:
|
473
|
+
boundary: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('parent'), shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]),
|
474
|
+
zIndex: shared_namespaceObject.PropTypes.number.def(undefined),
|
475
|
+
disableTeleport: shared_namespaceObject.PropTypes.bool.def(false),
|
476
476
|
/**
|
477
477
|
* chooses the placement that has the most space available automatically
|
478
478
|
*/
|
479
|
-
autoPlacement:
|
479
|
+
autoPlacement: shared_namespaceObject.PropTypes.bool.def(false),
|
480
480
|
/**
|
481
481
|
* 当有滚动条,滚动出可是范围时自动隐藏pop
|
482
482
|
*/
|
483
|
-
autoVisibility:
|
483
|
+
autoVisibility: shared_namespaceObject.PropTypes.bool.def(true),
|
484
484
|
/**
|
485
485
|
* 是否禁用clickoutside
|
486
486
|
*/
|
487
|
-
disableOutsideClick:
|
487
|
+
disableOutsideClick: shared_namespaceObject.PropTypes.bool.def(false),
|
488
488
|
/**
|
489
489
|
* 是否禁用样式的transform更新位移
|
490
490
|
*/
|
491
|
-
disableTransform:
|
491
|
+
disableTransform: shared_namespaceObject.PropTypes.bool.def(false),
|
492
492
|
/**
|
493
493
|
* 自定义 reference
|
494
494
|
*/
|
495
|
-
reference:
|
495
|
+
reference: shared_namespaceObject.PropTypes.any,
|
496
496
|
/**
|
497
497
|
* 兼容v1版本遗留配置
|
498
498
|
* 不建议使用
|
499
499
|
*/
|
500
|
-
modifiers:
|
500
|
+
modifiers: shared_namespaceObject.PropTypes.array.def([]),
|
501
501
|
/**
|
502
502
|
* popover显示和隐藏的延时时间
|
503
503
|
*/
|
504
|
-
popoverDelay:
|
504
|
+
popoverDelay: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.number)]).def(100),
|
505
505
|
/**
|
506
506
|
* 配置自定义样式类名,传入的类会被加在组件最外层的 DOM
|
507
507
|
*/
|
508
|
-
extCls:
|
508
|
+
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
509
509
|
/**
|
510
510
|
* 自定义Content组件渲染,point-event延迟渲染时间
|
511
511
|
* 避免子组件point-event渲染时触发popover鼠标事件
|
512
512
|
* 如果设置为0,则不启用此设置
|
513
513
|
*/
|
514
|
-
componentEventDelay:
|
514
|
+
componentEventDelay: shared_namespaceObject.PropTypes.number.def(0),
|
515
515
|
/**
|
516
516
|
* 或略其他判定条件,强制监听clickoutside & 执行hide
|
517
517
|
*/
|
518
|
-
forceClickoutside:
|
518
|
+
forceClickoutside: shared_namespaceObject.PropTypes.bool.def(false)
|
519
519
|
};
|
520
520
|
;// CONCATENATED MODULE: ../../packages/popover/src/reference.tsx
|
521
521
|
/*
|
@@ -582,8 +582,8 @@ var PopoverProps = {
|
|
582
582
|
|
583
583
|
/* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
|
584
584
|
props: {
|
585
|
-
"class":
|
586
|
-
mode:
|
585
|
+
"class": shared_namespaceObject.PropTypes.string.def(''),
|
586
|
+
mode: shared_namespaceObject.PropTypes.string.def('')
|
587
587
|
},
|
588
588
|
render: function render() {
|
589
589
|
var _this$$slots$default, _this$$slots;
|
@@ -595,31 +595,31 @@ function _arrayWithHoles(arr) {
|
|
595
595
|
if (Array.isArray(arr)) return arr;
|
596
596
|
}
|
597
597
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
598
|
-
function _iterableToArrayLimit(
|
599
|
-
var
|
600
|
-
if (null !=
|
601
|
-
var
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
598
|
+
function _iterableToArrayLimit(r, l) {
|
599
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
600
|
+
if (null != t) {
|
601
|
+
var e,
|
602
|
+
n,
|
603
|
+
i,
|
604
|
+
u,
|
605
|
+
a = [],
|
606
|
+
f = !0,
|
607
|
+
o = !1;
|
608
608
|
try {
|
609
|
-
if (
|
610
|
-
if (Object(
|
611
|
-
|
612
|
-
} else for (; !(
|
613
|
-
} catch (
|
614
|
-
|
609
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
610
|
+
if (Object(t) !== t) return;
|
611
|
+
f = !1;
|
612
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
613
|
+
} catch (r) {
|
614
|
+
o = !0, n = r;
|
615
615
|
} finally {
|
616
616
|
try {
|
617
|
-
if (!
|
617
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
618
618
|
} finally {
|
619
|
-
if (
|
619
|
+
if (o) throw n;
|
620
620
|
}
|
621
621
|
}
|
622
|
-
return
|
622
|
+
return a;
|
623
623
|
}
|
624
624
|
}
|
625
625
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -655,6 +655,11 @@ var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
655
655
|
var isElement_y = x => () => x
|
656
656
|
const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
|
657
657
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
658
|
+
/**
|
659
|
+
* Custom positioning reference element.
|
660
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
661
|
+
*/
|
662
|
+
|
658
663
|
const sides = ['top', 'right', 'bottom', 'left'];
|
659
664
|
const alignments = ['start', 'end'];
|
660
665
|
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
@@ -842,7 +847,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
842
847
|
|
843
848
|
/**
|
844
849
|
* Computes the `x` and `y` coordinates that will place the floating element
|
845
|
-
* next to a reference element
|
850
|
+
* next to a given reference element.
|
846
851
|
*
|
847
852
|
* This export does not have any `platform` interface logic. You will need to
|
848
853
|
* write one for the platform you are using Floating UI with.
|
@@ -920,7 +925,6 @@ const computePosition = async (reference, floating, config) => {
|
|
920
925
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
921
926
|
}
|
922
927
|
i = -1;
|
923
|
-
continue;
|
924
928
|
}
|
925
929
|
}
|
926
930
|
return {
|
@@ -983,6 +987,7 @@ async function detectOverflow(state, options) {
|
|
983
987
|
y: 1
|
984
988
|
};
|
985
989
|
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
990
|
+
elements,
|
986
991
|
rect,
|
987
992
|
offsetParent,
|
988
993
|
strategy
|
@@ -1010,7 +1015,8 @@ const arrow = options => ({
|
|
1010
1015
|
placement,
|
1011
1016
|
rects,
|
1012
1017
|
platform,
|
1013
|
-
elements
|
1018
|
+
elements,
|
1019
|
+
middlewareData
|
1014
1020
|
} = state;
|
1015
1021
|
// Since `element` is required, we don't Partial<> the type.
|
1016
1022
|
const {
|
@@ -1058,16 +1064,20 @@ const arrow = options => ({
|
|
1058
1064
|
|
1059
1065
|
// If the reference is small enough that the arrow's padding causes it to
|
1060
1066
|
// to point to nothing for an aligned placement, adjust the offset of the
|
1061
|
-
// floating element itself.
|
1062
|
-
//
|
1063
|
-
const shouldAddOffset = floating_ui_utils_getAlignment(placement) != null && center
|
1064
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? min$1
|
1067
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
1068
|
+
// a single reset is performed when this is true.
|
1069
|
+
const shouldAddOffset = !middlewareData.arrow && floating_ui_utils_getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
1070
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
1065
1071
|
return {
|
1066
|
-
[axis]: coords[axis]
|
1072
|
+
[axis]: coords[axis] + alignmentOffset,
|
1067
1073
|
data: {
|
1068
1074
|
[axis]: offset,
|
1069
|
-
centerOffset: center - offset
|
1070
|
-
|
1075
|
+
centerOffset: center - offset - alignmentOffset,
|
1076
|
+
...(shouldAddOffset && {
|
1077
|
+
alignmentOffset
|
1078
|
+
})
|
1079
|
+
},
|
1080
|
+
reset: shouldAddOffset
|
1071
1081
|
};
|
1072
1082
|
}
|
1073
1083
|
});
|
@@ -1189,7 +1199,7 @@ const flip = function (options) {
|
|
1189
1199
|
name: 'flip',
|
1190
1200
|
options,
|
1191
1201
|
async fn(state) {
|
1192
|
-
var _middlewareData$flip;
|
1202
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
1193
1203
|
const {
|
1194
1204
|
placement,
|
1195
1205
|
middlewareData,
|
@@ -1207,6 +1217,14 @@ const flip = function (options) {
|
|
1207
1217
|
flipAlignment = true,
|
1208
1218
|
...detectOverflowOptions
|
1209
1219
|
} = floating_ui_utils_evaluate(options, state);
|
1220
|
+
|
1221
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
1222
|
+
// added, we should skip any logic now since `flip()` has already done its
|
1223
|
+
// work.
|
1224
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
1225
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1226
|
+
return {};
|
1227
|
+
}
|
1210
1228
|
const side = floating_ui_utils_getSide(placement);
|
1211
1229
|
const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
|
1212
1230
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
@@ -1484,6 +1502,7 @@ const inline = function (options) {
|
|
1484
1502
|
|
1485
1503
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
1486
1504
|
// Derivable.
|
1505
|
+
|
1487
1506
|
async function convertValueToCoords(state, options) {
|
1488
1507
|
const {
|
1489
1508
|
placement,
|
@@ -1497,8 +1516,6 @@ async function convertValueToCoords(state, options) {
|
|
1497
1516
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
1498
1517
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
1499
1518
|
const rawValue = floating_ui_utils_evaluate(options, state);
|
1500
|
-
|
1501
|
-
// eslint-disable-next-line prefer-const
|
1502
1519
|
let {
|
1503
1520
|
mainAxis,
|
1504
1521
|
crossAxis,
|
@@ -1540,15 +1557,27 @@ const offset = function (options) {
|
|
1540
1557
|
name: 'offset',
|
1541
1558
|
options,
|
1542
1559
|
async fn(state) {
|
1560
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
1543
1561
|
const {
|
1544
1562
|
x,
|
1545
|
-
y
|
1563
|
+
y,
|
1564
|
+
placement,
|
1565
|
+
middlewareData
|
1546
1566
|
} = state;
|
1547
1567
|
const diffCoords = await convertValueToCoords(state, options);
|
1568
|
+
|
1569
|
+
// If the placement is the same and the arrow caused an alignment offset
|
1570
|
+
// then we don't need to change the positioning coordinates.
|
1571
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1572
|
+
return {};
|
1573
|
+
}
|
1548
1574
|
return {
|
1549
1575
|
x: x + diffCoords.x,
|
1550
1576
|
y: y + diffCoords.y,
|
1551
|
-
data:
|
1577
|
+
data: {
|
1578
|
+
...diffCoords,
|
1579
|
+
placement
|
1580
|
+
}
|
1552
1581
|
};
|
1553
1582
|
}
|
1554
1583
|
};
|
@@ -1780,7 +1809,7 @@ const size = function (options) {
|
|
1780
1809
|
|
1781
1810
|
|
1782
1811
|
|
1783
|
-
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/
|
1812
|
+
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
1784
1813
|
function getNodeName(node) {
|
1785
1814
|
if (isNode(node)) {
|
1786
1815
|
return (node.nodeName || '').toLowerCase();
|
@@ -1792,7 +1821,7 @@ function getNodeName(node) {
|
|
1792
1821
|
}
|
1793
1822
|
function getWindow(node) {
|
1794
1823
|
var _node$ownerDocument;
|
1795
|
-
return (node == null
|
1824
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
1796
1825
|
}
|
1797
1826
|
function getDocumentElement(node) {
|
1798
1827
|
var _ref;
|
@@ -1833,6 +1862,17 @@ function isContainingBlock(element) {
|
|
1833
1862
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1834
1863
|
return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
1835
1864
|
}
|
1865
|
+
function getContainingBlock(element) {
|
1866
|
+
let currentNode = getParentNode(element);
|
1867
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1868
|
+
if (isContainingBlock(currentNode)) {
|
1869
|
+
return currentNode;
|
1870
|
+
} else {
|
1871
|
+
currentNode = getParentNode(currentNode);
|
1872
|
+
}
|
1873
|
+
}
|
1874
|
+
return null;
|
1875
|
+
}
|
1836
1876
|
function isWebKit() {
|
1837
1877
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
1838
1878
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
@@ -1880,18 +1920,21 @@ function getNearestOverflowAncestor(node) {
|
|
1880
1920
|
}
|
1881
1921
|
return getNearestOverflowAncestor(parentNode);
|
1882
1922
|
}
|
1883
|
-
function getOverflowAncestors(node, list) {
|
1923
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
1884
1924
|
var _node$ownerDocument2;
|
1885
1925
|
if (list === void 0) {
|
1886
1926
|
list = [];
|
1887
1927
|
}
|
1928
|
+
if (traverseIframes === void 0) {
|
1929
|
+
traverseIframes = true;
|
1930
|
+
}
|
1888
1931
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
1889
1932
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
1890
1933
|
const win = getWindow(scrollableAncestor);
|
1891
1934
|
if (isBody) {
|
1892
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
1935
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
1893
1936
|
}
|
1894
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
1937
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
1895
1938
|
}
|
1896
1939
|
|
1897
1940
|
|
@@ -2171,7 +2214,7 @@ function getClippingElementAncestors(element, cache) {
|
|
2171
2214
|
if (cachedResult) {
|
2172
2215
|
return cachedResult;
|
2173
2216
|
}
|
2174
|
-
let result = getOverflowAncestors(element).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
|
2217
|
+
let result = getOverflowAncestors(element, [], false).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
|
2175
2218
|
let currentContainingBlockComputedStyle = null;
|
2176
2219
|
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
2177
2220
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
@@ -2226,7 +2269,14 @@ function getClippingRect(_ref) {
|
|
2226
2269
|
}
|
2227
2270
|
|
2228
2271
|
function getDimensions(element) {
|
2229
|
-
|
2272
|
+
const {
|
2273
|
+
width,
|
2274
|
+
height
|
2275
|
+
} = getCssDimensions(element);
|
2276
|
+
return {
|
2277
|
+
width,
|
2278
|
+
height
|
2279
|
+
};
|
2230
2280
|
}
|
2231
2281
|
|
2232
2282
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
@@ -2268,17 +2318,6 @@ function getTrueOffsetParent(element, polyfill) {
|
|
2268
2318
|
}
|
2269
2319
|
return element.offsetParent;
|
2270
2320
|
}
|
2271
|
-
function getContainingBlock(element) {
|
2272
|
-
let currentNode = getParentNode(element);
|
2273
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
2274
|
-
if (isContainingBlock(currentNode)) {
|
2275
|
-
return currentNode;
|
2276
|
-
} else {
|
2277
|
-
currentNode = getParentNode(currentNode);
|
2278
|
-
}
|
2279
|
-
}
|
2280
|
-
return null;
|
2281
|
-
}
|
2282
2321
|
|
2283
2322
|
// Gets the closest ancestor positioned element. Handles some edge cases,
|
2284
2323
|
// such as table ancestors and cross browser bugs.
|
@@ -2483,10 +2522,66 @@ function autoUpdate(reference, floating, update, options) {
|
|
2483
2522
|
};
|
2484
2523
|
}
|
2485
2524
|
|
2525
|
+
/**
|
2526
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
2527
|
+
* that has the most space available automatically, without needing to specify a
|
2528
|
+
* preferred placement. Alternative to `flip`.
|
2529
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
2530
|
+
*/
|
2531
|
+
const floating_ui_dom_autoPlacement = autoPlacement;
|
2532
|
+
|
2533
|
+
/**
|
2534
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
2535
|
+
* keep it in view when it will overflow the clipping boundary.
|
2536
|
+
* @see https://floating-ui.com/docs/shift
|
2537
|
+
*/
|
2538
|
+
const floating_ui_dom_shift = shift;
|
2539
|
+
|
2540
|
+
/**
|
2541
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
2542
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
2543
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
2544
|
+
* @see https://floating-ui.com/docs/flip
|
2545
|
+
*/
|
2546
|
+
const floating_ui_dom_flip = flip;
|
2547
|
+
|
2548
|
+
/**
|
2549
|
+
* Provides data that allows you to change the size of the floating element —
|
2550
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
2551
|
+
* width of the reference element.
|
2552
|
+
* @see https://floating-ui.com/docs/size
|
2553
|
+
*/
|
2554
|
+
const floating_ui_dom_size = (/* unused pure expression or super */ null && (size$1));
|
2555
|
+
|
2556
|
+
/**
|
2557
|
+
* Provides data to hide the floating element in applicable situations, such as
|
2558
|
+
* when it is not in the same clipping context as the reference element.
|
2559
|
+
* @see https://floating-ui.com/docs/hide
|
2560
|
+
*/
|
2561
|
+
const floating_ui_dom_hide = hide;
|
2562
|
+
|
2563
|
+
/**
|
2564
|
+
* Provides data to position an inner element of the floating element so that it
|
2565
|
+
* appears centered to the reference element.
|
2566
|
+
* @see https://floating-ui.com/docs/arrow
|
2567
|
+
*/
|
2568
|
+
const floating_ui_dom_arrow = arrow;
|
2569
|
+
|
2570
|
+
/**
|
2571
|
+
* Provides improved positioning for inline reference elements that can span
|
2572
|
+
* over multiple lines, such as hyperlinks or range selections.
|
2573
|
+
* @see https://floating-ui.com/docs/inline
|
2574
|
+
*/
|
2575
|
+
const floating_ui_dom_inline = inline;
|
2576
|
+
|
2577
|
+
/**
|
2578
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
2579
|
+
*/
|
2580
|
+
const floating_ui_dom_limitShift = (/* unused pure expression or super */ null && (limitShift$1));
|
2581
|
+
|
2486
2582
|
/**
|
2487
2583
|
* Computes the `x` and `y` coordinates that will place the floating element
|
2488
|
-
* next to a reference element
|
2489
|
-
* strategy.
|
2584
|
+
* next to a given reference element.
|
2490
2585
|
*/
|
2491
2586
|
const floating_ui_dom_computePosition = (reference, floating, options) => {
|
2492
2587
|
// This caches the expensive `getClippingElementAncestors` function so that
|
@@ -2664,8 +2759,8 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
2664
2759
|
;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
|
2665
2760
|
|
2666
2761
|
|
2667
|
-
function ownKeys(
|
2668
|
-
function _objectSpread(
|
2762
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
2763
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2669
2764
|
/*
|
2670
2765
|
* Tencent is pleased to support the open source community by making
|
2671
2766
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2818,7 +2913,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2818
2913
|
};
|
2819
2914
|
var resolvePopOptions = function resolvePopOptions(elArrow, props) {
|
2820
2915
|
var modifiers = resolveModifiers();
|
2821
|
-
var middleware = [offset(modifiers.offset || props.offset),
|
2916
|
+
var middleware = [offset(modifiers.offset || props.offset), floating_ui_dom_shift({
|
2822
2917
|
padding: props.padding
|
2823
2918
|
})];
|
2824
2919
|
var options = {
|
@@ -2826,17 +2921,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2826
2921
|
middleware: middleware
|
2827
2922
|
};
|
2828
2923
|
if (props.arrow) {
|
2829
|
-
middleware.push(
|
2924
|
+
middleware.push(floating_ui_dom_arrow({
|
2830
2925
|
element: elArrow
|
2831
2926
|
}));
|
2832
2927
|
}
|
2833
2928
|
if (isAutoPlacementAvailable()) {
|
2834
|
-
middleware.push(
|
2929
|
+
middleware.push(floating_ui_dom_autoPlacement());
|
2835
2930
|
}
|
2836
|
-
middleware.unshift(
|
2837
|
-
middleware.push(
|
2931
|
+
middleware.unshift(floating_ui_dom_inline());
|
2932
|
+
middleware.push(floating_ui_dom_flip());
|
2838
2933
|
if (isHideMiddlewareAvailable()) {
|
2839
|
-
options.middleware.push(
|
2934
|
+
options.middleware.push(floating_ui_dom_hide());
|
2840
2935
|
}
|
2841
2936
|
/**
|
2842
2937
|
* 如果是全屏元素或者指定的虚拟元素
|
@@ -3011,7 +3106,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
3011
3106
|
var _refContent$value2;
|
3012
3107
|
var elContent = resolveTargetElement((_refContent$value2 = refContent.value) === null || _refContent$value2 === void 0 ? void 0 : _refContent$value2.$el);
|
3013
3108
|
elContent.style.setProperty('display', 'block');
|
3014
|
-
elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex :
|
3109
|
+
elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex : shared_namespaceObject.bkZIndexManager.getPopperIndex()));
|
3015
3110
|
updatePopover();
|
3016
3111
|
ctx.emit(EMIT_EVENTS.CONTENT_AfterShow, {
|
3017
3112
|
isShow: true
|
@@ -3271,7 +3366,7 @@ var parentNodeReferId = null;
|
|
3271
3366
|
getFullscreenRoot = _useFloating.getFullscreenRoot,
|
3272
3367
|
stopHide = _useFloating.stopHide;
|
3273
3368
|
var resetPopover = function resetPopover() {
|
3274
|
-
cleanup === null || cleanup === void 0
|
3369
|
+
cleanup === null || cleanup === void 0 || cleanup();
|
3275
3370
|
createPopInstance();
|
3276
3371
|
};
|
3277
3372
|
var showFn = function showFn() {
|
@@ -3347,13 +3442,13 @@ var parentNodeReferId = null;
|
|
3347
3442
|
getPrefixId = _usePopperId.getPrefixId;
|
3348
3443
|
var setFullscreenTag = function setFullscreenTag() {
|
3349
3444
|
var _fullScreenTarget$val;
|
3350
|
-
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0
|
3445
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0 || _fullScreenTarget$val.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3351
3446
|
};
|
3352
3447
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3353
3448
|
var _fullScreenTarget$val2, _fullScreenTarget$val3;
|
3354
3449
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3355
3450
|
((_fullScreenTarget$val2 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val3 = fullScreenTarget.value) === null || _fullScreenTarget$val3 === void 0 ? void 0 : _fullScreenTarget$val3.querySelectorAll(query)) !== null && _fullScreenTarget$val2 !== void 0 ? _fullScreenTarget$val2 : []).forEach(function (element) {
|
3356
|
-
element === null || element === void 0
|
3451
|
+
element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
|
3357
3452
|
});
|
3358
3453
|
};
|
3359
3454
|
var boundary = (0,external_vue_namespaceObject.ref)();
|
@@ -3539,7 +3634,7 @@ function _isSlot(s) {
|
|
3539
3634
|
hideFn();
|
3540
3635
|
};
|
3541
3636
|
var contentIsShow = (0,external_vue_namespaceObject.computed)(function () {
|
3542
|
-
if (props.renderType ===
|
3637
|
+
if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
|
3543
3638
|
return true;
|
3544
3639
|
}
|
3545
3640
|
return localIsShow.value;
|
@@ -3637,8 +3732,8 @@ function _isSlot(s) {
|
|
3637
3732
|
;// CONCATENATED MODULE: ../../packages/popover/src/plugin-popover.tsx
|
3638
3733
|
|
3639
3734
|
|
3640
|
-
function plugin_popover_ownKeys(
|
3641
|
-
function plugin_popover_objectSpread(
|
3735
|
+
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; }
|
3736
|
+
function plugin_popover_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? plugin_popover_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : plugin_popover_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
3642
3737
|
/*
|
3643
3738
|
* Tencent is pleased to support the open source community by making
|
3644
3739
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3701,36 +3796,36 @@ function createPopoverComponent(options) {
|
|
3701
3796
|
var refReference = (0,external_vue_namespaceObject.ref)();
|
3702
3797
|
var show = function show() {
|
3703
3798
|
var _refReference$value, _refReference$value$s;
|
3704
|
-
(_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0
|
3799
|
+
(_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0 || _refReference$value$s.call(_refReference$value);
|
3705
3800
|
};
|
3706
3801
|
var hide = function hide() {
|
3707
3802
|
var _refReference$value2, _refReference$value2$;
|
3708
|
-
(_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0
|
3803
|
+
(_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 || _refReference$value2$.call(_refReference$value2);
|
3709
3804
|
};
|
3710
3805
|
var stopHide = function stopHide() {
|
3711
3806
|
var _refReference$value3, _refReference$value3$;
|
3712
|
-
(_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0
|
3807
|
+
(_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 || _refReference$value3$.call(_refReference$value3);
|
3713
3808
|
};
|
3714
3809
|
var updateTarget = function updateTarget(target) {
|
3715
3810
|
var _refReference$value4, _refReference$value4$;
|
3716
3811
|
refProps.target = target;
|
3717
|
-
(_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0
|
3812
|
+
(_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 || _refReference$value4$.call(_refReference$value4);
|
3718
3813
|
};
|
3719
3814
|
var handleContentMouseenter = function handleContentMouseenter() {
|
3720
3815
|
var _resolvedOptions$onCo;
|
3721
|
-
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0
|
3816
|
+
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 || _resolvedOptions$onCo.call(resolvedOptions);
|
3722
3817
|
};
|
3723
3818
|
var handleContentMouseleave = function handleContentMouseleave() {
|
3724
3819
|
var _resolvedOptions$onCo2;
|
3725
|
-
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0
|
3820
|
+
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 || _resolvedOptions$onCo2.call(resolvedOptions);
|
3726
3821
|
};
|
3727
3822
|
var handlePopoverHidden = function handlePopoverHidden() {
|
3728
3823
|
var _resolvedOptions$onHi;
|
3729
|
-
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0
|
3824
|
+
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 || _resolvedOptions$onHi.call(resolvedOptions);
|
3730
3825
|
};
|
3731
3826
|
var handlePopoverShow = function handlePopoverShow() {
|
3732
3827
|
var _resolvedOptions$onSh;
|
3733
|
-
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0
|
3828
|
+
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 || _resolvedOptions$onSh.call(resolvedOptions);
|
3734
3829
|
};
|
3735
3830
|
expose({
|
3736
3831
|
show: show,
|
@@ -3780,15 +3875,15 @@ function createPopoverComponent(options) {
|
|
3780
3875
|
}
|
3781
3876
|
function show() {
|
3782
3877
|
var _$PopoverInstanceVm;
|
3783
|
-
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0
|
3878
|
+
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.show();
|
3784
3879
|
}
|
3785
3880
|
function update(e) {
|
3786
3881
|
var _$PopoverInstanceVm2;
|
3787
|
-
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0
|
3882
|
+
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.updateTarget(e);
|
3788
3883
|
}
|
3789
3884
|
function hide() {
|
3790
3885
|
var _$PopoverInstanceVm3;
|
3791
|
-
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0
|
3886
|
+
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.hide();
|
3792
3887
|
}
|
3793
3888
|
return {
|
3794
3889
|
close: close,
|
@@ -3831,11 +3926,11 @@ function createPopoverComponent(options) {
|
|
3831
3926
|
*/
|
3832
3927
|
|
3833
3928
|
|
3834
|
-
var BkPopover = (0,
|
3929
|
+
var BkPopover = (0,shared_namespaceObject.withInstall)(popover);
|
3835
3930
|
/* harmony default export */ const src = (BkPopover);
|
3836
3931
|
|
3837
3932
|
|
3838
|
-
var __webpack_exports__$bkPopover = __webpack_exports__
|
3839
|
-
var __webpack_exports__PopoverProps = __webpack_exports__.
|
3840
|
-
var __webpack_exports__default = __webpack_exports__
|
3933
|
+
var __webpack_exports__$bkPopover = __webpack_exports__.$bkPopover;
|
3934
|
+
var __webpack_exports__PopoverProps = __webpack_exports__.PopoverProps;
|
3935
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
3841
3936
|
export { __webpack_exports__$bkPopover as $bkPopover, __webpack_exports__PopoverProps as PopoverProps, __webpack_exports__default as default };
|