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
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
2
|
-
import * as
|
3
|
-
import * as
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
|
6
6
|
/******/ // The require scope
|
@@ -29,42 +29,42 @@ var __webpack_exports__ = {};
|
|
29
29
|
|
30
30
|
// EXPORTS
|
31
31
|
__webpack_require__.d(__webpack_exports__, {
|
32
|
-
|
32
|
+
"default": () => (/* binding */ src)
|
33
33
|
});
|
34
34
|
|
35
35
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
36
|
-
function _typeof(
|
36
|
+
function _typeof(o) {
|
37
37
|
"@babel/helpers - typeof";
|
38
38
|
|
39
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
40
|
-
return typeof
|
41
|
-
} : function (
|
42
|
-
return
|
43
|
-
}, _typeof(
|
39
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
40
|
+
return typeof o;
|
41
|
+
} : function (o) {
|
42
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
43
|
+
}, _typeof(o);
|
44
44
|
}
|
45
45
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
46
46
|
|
47
|
-
function
|
48
|
-
if (
|
49
|
-
var
|
50
|
-
if (
|
51
|
-
var
|
52
|
-
if (
|
47
|
+
function toPrimitive(t, r) {
|
48
|
+
if ("object" != _typeof(t) || !t) return t;
|
49
|
+
var e = t[Symbol.toPrimitive];
|
50
|
+
if (void 0 !== e) {
|
51
|
+
var i = e.call(t, r || "default");
|
52
|
+
if ("object" != _typeof(i)) return i;
|
53
53
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
54
54
|
}
|
55
|
-
return (
|
55
|
+
return ("string" === r ? String : Number)(t);
|
56
56
|
}
|
57
57
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
58
58
|
|
59
59
|
|
60
|
-
function
|
61
|
-
var
|
62
|
-
return _typeof(
|
60
|
+
function toPropertyKey(t) {
|
61
|
+
var i = toPrimitive(t, "string");
|
62
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
63
63
|
}
|
64
64
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
65
65
|
|
66
66
|
function _defineProperty(obj, key, value) {
|
67
|
-
key =
|
67
|
+
key = toPropertyKey(key);
|
68
68
|
if (key in obj) {
|
69
69
|
Object.defineProperty(obj, key, {
|
70
70
|
value: value,
|
@@ -82,9 +82,9 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
82
82
|
var y = x => () => x
|
83
83
|
const external_vue_namespaceObject = 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, ["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, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
84
84
|
;// CONCATENATED MODULE: external "../shared"
|
85
|
-
var
|
86
|
-
var
|
87
|
-
const
|
85
|
+
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
86
|
+
var shared_y = x => () => x
|
87
|
+
const shared_namespaceObject = shared_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 });
|
88
88
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
89
89
|
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; } } }; }
|
90
90
|
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); }
|
@@ -212,9 +212,9 @@ ClickOutside.install = function (app) {
|
|
212
212
|
};
|
213
213
|
/* harmony default export */ const clickoutside = (ClickOutside);
|
214
214
|
;// CONCATENATED MODULE: external "../config-provider"
|
215
|
-
var
|
216
|
-
var
|
217
|
-
const
|
215
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
216
|
+
var config_provider_y = x => () => x
|
217
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
218
218
|
;// CONCATENATED MODULE: ../../packages/popover/src/arrow.tsx
|
219
219
|
|
220
220
|
/*
|
@@ -247,7 +247,7 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
247
247
|
/* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
|
248
248
|
name: 'PopArrow',
|
249
249
|
render: function render() {
|
250
|
-
var _usePrefix = (0,
|
250
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
251
251
|
resolveClassName = _usePrefix.resolveClassName;
|
252
252
|
var arrowClassName = resolveClassName('pop2-arrow');
|
253
253
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -257,7 +257,6 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
257
257
|
}));
|
258
258
|
;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
|
259
259
|
|
260
|
-
var _EMIT_EVENT_TYPES;
|
261
260
|
/* eslint-disable @typescript-eslint/naming-convention */
|
262
261
|
/*
|
263
262
|
* Tencent is pleased to support the open source community by making
|
@@ -302,7 +301,7 @@ var EVENT_COMMON_FN = function EVENT_COMMON_FN(e) {
|
|
302
301
|
var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
|
303
302
|
return true;
|
304
303
|
};
|
305
|
-
var EMIT_EVENT_TYPES = (
|
304
|
+
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);
|
306
305
|
;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
|
307
306
|
|
308
307
|
/*
|
@@ -336,13 +335,13 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
336
335
|
/* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
|
337
336
|
name: 'PopContent',
|
338
337
|
props: {
|
339
|
-
width:
|
340
|
-
height:
|
341
|
-
maxHeight:
|
342
|
-
maxWidth:
|
343
|
-
extCls:
|
344
|
-
visible:
|
345
|
-
eventDelay:
|
338
|
+
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
339
|
+
height: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
340
|
+
maxHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
341
|
+
maxWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
342
|
+
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
343
|
+
visible: shared_namespaceObject.PropTypes.bool.def(false),
|
344
|
+
eventDelay: shared_namespaceObject.PropTypes.number.def(0)
|
346
345
|
},
|
347
346
|
setup: function setup(props) {
|
348
347
|
var resolveValToPix = function resolveValToPix(val) {
|
@@ -376,9 +375,9 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
376
375
|
if (props.eventDelay === 0) {
|
377
376
|
return;
|
378
377
|
}
|
379
|
-
(_refContent$value = refContent.value) === null || _refContent$value === void 0
|
378
|
+
(_refContent$value = refContent.value) === null || _refContent$value === void 0 || _refContent$value.style.setProperty('pointer-events', val);
|
380
379
|
};
|
381
|
-
var _usePrefix = (0,
|
380
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
382
381
|
resolveClassName = _usePrefix.resolveClassName;
|
383
382
|
return {
|
384
383
|
style: style,
|
@@ -429,91 +428,91 @@ var EventProps = {
|
|
429
428
|
onAfterShow: function onAfterShow() {}
|
430
429
|
};
|
431
430
|
var PopoverProps = {
|
432
|
-
isShow:
|
433
|
-
always:
|
434
|
-
disabled:
|
435
|
-
width:
|
436
|
-
height:
|
437
|
-
maxWidth:
|
438
|
-
maxHeight:
|
431
|
+
isShow: shared_namespaceObject.PropTypes.bool.def(false),
|
432
|
+
always: shared_namespaceObject.PropTypes.bool.def(false),
|
433
|
+
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
434
|
+
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
435
|
+
height: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
436
|
+
maxWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
437
|
+
maxHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
439
438
|
content: (0,external_vue_types_namespaceObject.toType)('IContent', {}).def(''),
|
440
|
-
target:
|
441
|
-
allowHtml:
|
439
|
+
target: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.instanceOf(HTMLElement), shared_namespaceObject.PropTypes.instanceOf(PointerEvent)]),
|
440
|
+
allowHtml: shared_namespaceObject.PropTypes.bool.def(false),
|
442
441
|
/**
|
443
442
|
* 组件显示位置
|
444
443
|
*/
|
445
444
|
// placement: placementType().def(PlacementEnum.TOP),
|
446
|
-
placement: (0,
|
445
|
+
placement: (0,shared_namespaceObject.placementType)().def(shared_namespaceObject.PlacementEnum.TOP_START),
|
447
446
|
// 'dark', 'light'
|
448
|
-
theme:
|
447
|
+
theme: shared_namespaceObject.PropTypes.string.def('dark'),
|
449
448
|
/**
|
450
449
|
* 触发方式
|
451
450
|
* 支持 click hover manual
|
452
451
|
* manual: 通过isShow控制显示、隐藏
|
453
452
|
*/
|
454
453
|
// trigger: triggerType(),
|
455
|
-
trigger: (0,
|
454
|
+
trigger: (0,shared_namespaceObject.triggerType)(),
|
456
455
|
/**
|
457
456
|
* content 渲染方式
|
458
457
|
*/
|
459
|
-
renderType: (0,
|
458
|
+
renderType: (0,shared_namespaceObject.renderType)(),
|
460
459
|
// 是否显示箭头
|
461
|
-
arrow:
|
462
|
-
padding:
|
463
|
-
offset:
|
464
|
-
mainAxis:
|
465
|
-
crossAxis:
|
466
|
-
alignmentAxis:
|
460
|
+
arrow: shared_namespaceObject.PropTypes.bool.def(true),
|
461
|
+
padding: shared_namespaceObject.PropTypes.number.def(5),
|
462
|
+
offset: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.shape({
|
463
|
+
mainAxis: shared_namespaceObject.PropTypes.number,
|
464
|
+
crossAxis: shared_namespaceObject.PropTypes.number,
|
465
|
+
alignmentAxis: shared_namespaceObject.PropTypes.number
|
467
466
|
})]).def(6),
|
468
467
|
/**
|
469
468
|
* 弹出内容绑定元素
|
470
469
|
*/
|
471
|
-
boundary:
|
472
|
-
zIndex:
|
473
|
-
disableTeleport:
|
470
|
+
boundary: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('parent'), shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]),
|
471
|
+
zIndex: shared_namespaceObject.PropTypes.number.def(undefined),
|
472
|
+
disableTeleport: shared_namespaceObject.PropTypes.bool.def(false),
|
474
473
|
/**
|
475
474
|
* chooses the placement that has the most space available automatically
|
476
475
|
*/
|
477
|
-
autoPlacement:
|
476
|
+
autoPlacement: shared_namespaceObject.PropTypes.bool.def(false),
|
478
477
|
/**
|
479
478
|
* 当有滚动条,滚动出可是范围时自动隐藏pop
|
480
479
|
*/
|
481
|
-
autoVisibility:
|
480
|
+
autoVisibility: shared_namespaceObject.PropTypes.bool.def(true),
|
482
481
|
/**
|
483
482
|
* 是否禁用clickoutside
|
484
483
|
*/
|
485
|
-
disableOutsideClick:
|
484
|
+
disableOutsideClick: shared_namespaceObject.PropTypes.bool.def(false),
|
486
485
|
/**
|
487
486
|
* 是否禁用样式的transform更新位移
|
488
487
|
*/
|
489
|
-
disableTransform:
|
488
|
+
disableTransform: shared_namespaceObject.PropTypes.bool.def(false),
|
490
489
|
/**
|
491
490
|
* 自定义 reference
|
492
491
|
*/
|
493
|
-
reference:
|
492
|
+
reference: shared_namespaceObject.PropTypes.any,
|
494
493
|
/**
|
495
494
|
* 兼容v1版本遗留配置
|
496
495
|
* 不建议使用
|
497
496
|
*/
|
498
|
-
modifiers:
|
497
|
+
modifiers: shared_namespaceObject.PropTypes.array.def([]),
|
499
498
|
/**
|
500
499
|
* popover显示和隐藏的延时时间
|
501
500
|
*/
|
502
|
-
popoverDelay:
|
501
|
+
popoverDelay: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.number)]).def(100),
|
503
502
|
/**
|
504
503
|
* 配置自定义样式类名,传入的类会被加在组件最外层的 DOM
|
505
504
|
*/
|
506
|
-
extCls:
|
505
|
+
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
507
506
|
/**
|
508
507
|
* 自定义Content组件渲染,point-event延迟渲染时间
|
509
508
|
* 避免子组件point-event渲染时触发popover鼠标事件
|
510
509
|
* 如果设置为0,则不启用此设置
|
511
510
|
*/
|
512
|
-
componentEventDelay:
|
511
|
+
componentEventDelay: shared_namespaceObject.PropTypes.number.def(0),
|
513
512
|
/**
|
514
513
|
* 或略其他判定条件,强制监听clickoutside & 执行hide
|
515
514
|
*/
|
516
|
-
forceClickoutside:
|
515
|
+
forceClickoutside: shared_namespaceObject.PropTypes.bool.def(false)
|
517
516
|
};
|
518
517
|
;// CONCATENATED MODULE: ../../packages/popover/src/reference.tsx
|
519
518
|
/*
|
@@ -580,8 +579,8 @@ var PopoverProps = {
|
|
580
579
|
|
581
580
|
/* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
|
582
581
|
props: {
|
583
|
-
"class":
|
584
|
-
mode:
|
582
|
+
"class": shared_namespaceObject.PropTypes.string.def(''),
|
583
|
+
mode: shared_namespaceObject.PropTypes.string.def('')
|
585
584
|
},
|
586
585
|
render: function render() {
|
587
586
|
var _this$$slots$default, _this$$slots;
|
@@ -593,31 +592,31 @@ function _arrayWithHoles(arr) {
|
|
593
592
|
if (Array.isArray(arr)) return arr;
|
594
593
|
}
|
595
594
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
596
|
-
function _iterableToArrayLimit(
|
597
|
-
var
|
598
|
-
if (null !=
|
599
|
-
var
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
595
|
+
function _iterableToArrayLimit(r, l) {
|
596
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
597
|
+
if (null != t) {
|
598
|
+
var e,
|
599
|
+
n,
|
600
|
+
i,
|
601
|
+
u,
|
602
|
+
a = [],
|
603
|
+
f = !0,
|
604
|
+
o = !1;
|
606
605
|
try {
|
607
|
-
if (
|
608
|
-
if (Object(
|
609
|
-
|
610
|
-
} else for (; !(
|
611
|
-
} catch (
|
612
|
-
|
606
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
607
|
+
if (Object(t) !== t) return;
|
608
|
+
f = !1;
|
609
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
610
|
+
} catch (r) {
|
611
|
+
o = !0, n = r;
|
613
612
|
} finally {
|
614
613
|
try {
|
615
|
-
if (!
|
614
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
616
615
|
} finally {
|
617
|
-
if (
|
616
|
+
if (o) throw n;
|
618
617
|
}
|
619
618
|
}
|
620
|
-
return
|
619
|
+
return a;
|
621
620
|
}
|
622
621
|
}
|
623
622
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -653,6 +652,11 @@ var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
653
652
|
var isElement_y = x => () => x
|
654
653
|
const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
|
655
654
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
655
|
+
/**
|
656
|
+
* Custom positioning reference element.
|
657
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
658
|
+
*/
|
659
|
+
|
656
660
|
const sides = ['top', 'right', 'bottom', 'left'];
|
657
661
|
const alignments = ['start', 'end'];
|
658
662
|
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
@@ -840,7 +844,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
840
844
|
|
841
845
|
/**
|
842
846
|
* Computes the `x` and `y` coordinates that will place the floating element
|
843
|
-
* next to a reference element
|
847
|
+
* next to a given reference element.
|
844
848
|
*
|
845
849
|
* This export does not have any `platform` interface logic. You will need to
|
846
850
|
* write one for the platform you are using Floating UI with.
|
@@ -918,7 +922,6 @@ const computePosition = async (reference, floating, config) => {
|
|
918
922
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
919
923
|
}
|
920
924
|
i = -1;
|
921
|
-
continue;
|
922
925
|
}
|
923
926
|
}
|
924
927
|
return {
|
@@ -981,6 +984,7 @@ async function detectOverflow(state, options) {
|
|
981
984
|
y: 1
|
982
985
|
};
|
983
986
|
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
987
|
+
elements,
|
984
988
|
rect,
|
985
989
|
offsetParent,
|
986
990
|
strategy
|
@@ -1008,7 +1012,8 @@ const arrow = options => ({
|
|
1008
1012
|
placement,
|
1009
1013
|
rects,
|
1010
1014
|
platform,
|
1011
|
-
elements
|
1015
|
+
elements,
|
1016
|
+
middlewareData
|
1012
1017
|
} = state;
|
1013
1018
|
// Since `element` is required, we don't Partial<> the type.
|
1014
1019
|
const {
|
@@ -1056,16 +1061,20 @@ const arrow = options => ({
|
|
1056
1061
|
|
1057
1062
|
// If the reference is small enough that the arrow's padding causes it to
|
1058
1063
|
// to point to nothing for an aligned placement, adjust the offset of the
|
1059
|
-
// floating element itself.
|
1060
|
-
//
|
1061
|
-
const shouldAddOffset = floating_ui_utils_getAlignment(placement) != null && center
|
1062
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? min$1
|
1064
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
1065
|
+
// a single reset is performed when this is true.
|
1066
|
+
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;
|
1067
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
1063
1068
|
return {
|
1064
|
-
[axis]: coords[axis]
|
1069
|
+
[axis]: coords[axis] + alignmentOffset,
|
1065
1070
|
data: {
|
1066
1071
|
[axis]: offset,
|
1067
|
-
centerOffset: center - offset
|
1068
|
-
|
1072
|
+
centerOffset: center - offset - alignmentOffset,
|
1073
|
+
...(shouldAddOffset && {
|
1074
|
+
alignmentOffset
|
1075
|
+
})
|
1076
|
+
},
|
1077
|
+
reset: shouldAddOffset
|
1069
1078
|
};
|
1070
1079
|
}
|
1071
1080
|
});
|
@@ -1187,7 +1196,7 @@ const flip = function (options) {
|
|
1187
1196
|
name: 'flip',
|
1188
1197
|
options,
|
1189
1198
|
async fn(state) {
|
1190
|
-
var _middlewareData$flip;
|
1199
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
1191
1200
|
const {
|
1192
1201
|
placement,
|
1193
1202
|
middlewareData,
|
@@ -1205,6 +1214,14 @@ const flip = function (options) {
|
|
1205
1214
|
flipAlignment = true,
|
1206
1215
|
...detectOverflowOptions
|
1207
1216
|
} = floating_ui_utils_evaluate(options, state);
|
1217
|
+
|
1218
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
1219
|
+
// added, we should skip any logic now since `flip()` has already done its
|
1220
|
+
// work.
|
1221
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
1222
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1223
|
+
return {};
|
1224
|
+
}
|
1208
1225
|
const side = floating_ui_utils_getSide(placement);
|
1209
1226
|
const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
|
1210
1227
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
@@ -1482,6 +1499,7 @@ const inline = function (options) {
|
|
1482
1499
|
|
1483
1500
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
1484
1501
|
// Derivable.
|
1502
|
+
|
1485
1503
|
async function convertValueToCoords(state, options) {
|
1486
1504
|
const {
|
1487
1505
|
placement,
|
@@ -1495,8 +1513,6 @@ async function convertValueToCoords(state, options) {
|
|
1495
1513
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
1496
1514
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
1497
1515
|
const rawValue = floating_ui_utils_evaluate(options, state);
|
1498
|
-
|
1499
|
-
// eslint-disable-next-line prefer-const
|
1500
1516
|
let {
|
1501
1517
|
mainAxis,
|
1502
1518
|
crossAxis,
|
@@ -1538,15 +1554,27 @@ const offset = function (options) {
|
|
1538
1554
|
name: 'offset',
|
1539
1555
|
options,
|
1540
1556
|
async fn(state) {
|
1557
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
1541
1558
|
const {
|
1542
1559
|
x,
|
1543
|
-
y
|
1560
|
+
y,
|
1561
|
+
placement,
|
1562
|
+
middlewareData
|
1544
1563
|
} = state;
|
1545
1564
|
const diffCoords = await convertValueToCoords(state, options);
|
1565
|
+
|
1566
|
+
// If the placement is the same and the arrow caused an alignment offset
|
1567
|
+
// then we don't need to change the positioning coordinates.
|
1568
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1569
|
+
return {};
|
1570
|
+
}
|
1546
1571
|
return {
|
1547
1572
|
x: x + diffCoords.x,
|
1548
1573
|
y: y + diffCoords.y,
|
1549
|
-
data:
|
1574
|
+
data: {
|
1575
|
+
...diffCoords,
|
1576
|
+
placement
|
1577
|
+
}
|
1550
1578
|
};
|
1551
1579
|
}
|
1552
1580
|
};
|
@@ -1778,7 +1806,7 @@ const size = function (options) {
|
|
1778
1806
|
|
1779
1807
|
|
1780
1808
|
|
1781
|
-
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/
|
1809
|
+
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
1782
1810
|
function getNodeName(node) {
|
1783
1811
|
if (isNode(node)) {
|
1784
1812
|
return (node.nodeName || '').toLowerCase();
|
@@ -1790,7 +1818,7 @@ function getNodeName(node) {
|
|
1790
1818
|
}
|
1791
1819
|
function getWindow(node) {
|
1792
1820
|
var _node$ownerDocument;
|
1793
|
-
return (node == null
|
1821
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
1794
1822
|
}
|
1795
1823
|
function getDocumentElement(node) {
|
1796
1824
|
var _ref;
|
@@ -1831,6 +1859,17 @@ function isContainingBlock(element) {
|
|
1831
1859
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1832
1860
|
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));
|
1833
1861
|
}
|
1862
|
+
function getContainingBlock(element) {
|
1863
|
+
let currentNode = getParentNode(element);
|
1864
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1865
|
+
if (isContainingBlock(currentNode)) {
|
1866
|
+
return currentNode;
|
1867
|
+
} else {
|
1868
|
+
currentNode = getParentNode(currentNode);
|
1869
|
+
}
|
1870
|
+
}
|
1871
|
+
return null;
|
1872
|
+
}
|
1834
1873
|
function isWebKit() {
|
1835
1874
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
1836
1875
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
@@ -1878,18 +1917,21 @@ function getNearestOverflowAncestor(node) {
|
|
1878
1917
|
}
|
1879
1918
|
return getNearestOverflowAncestor(parentNode);
|
1880
1919
|
}
|
1881
|
-
function getOverflowAncestors(node, list) {
|
1920
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
1882
1921
|
var _node$ownerDocument2;
|
1883
1922
|
if (list === void 0) {
|
1884
1923
|
list = [];
|
1885
1924
|
}
|
1925
|
+
if (traverseIframes === void 0) {
|
1926
|
+
traverseIframes = true;
|
1927
|
+
}
|
1886
1928
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
1887
1929
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
1888
1930
|
const win = getWindow(scrollableAncestor);
|
1889
1931
|
if (isBody) {
|
1890
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
1932
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
1891
1933
|
}
|
1892
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
1934
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
1893
1935
|
}
|
1894
1936
|
|
1895
1937
|
|
@@ -2169,7 +2211,7 @@ function getClippingElementAncestors(element, cache) {
|
|
2169
2211
|
if (cachedResult) {
|
2170
2212
|
return cachedResult;
|
2171
2213
|
}
|
2172
|
-
let result = getOverflowAncestors(element).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
|
2214
|
+
let result = getOverflowAncestors(element, [], false).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
|
2173
2215
|
let currentContainingBlockComputedStyle = null;
|
2174
2216
|
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
2175
2217
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
@@ -2224,7 +2266,14 @@ function getClippingRect(_ref) {
|
|
2224
2266
|
}
|
2225
2267
|
|
2226
2268
|
function getDimensions(element) {
|
2227
|
-
|
2269
|
+
const {
|
2270
|
+
width,
|
2271
|
+
height
|
2272
|
+
} = getCssDimensions(element);
|
2273
|
+
return {
|
2274
|
+
width,
|
2275
|
+
height
|
2276
|
+
};
|
2228
2277
|
}
|
2229
2278
|
|
2230
2279
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
@@ -2266,17 +2315,6 @@ function getTrueOffsetParent(element, polyfill) {
|
|
2266
2315
|
}
|
2267
2316
|
return element.offsetParent;
|
2268
2317
|
}
|
2269
|
-
function getContainingBlock(element) {
|
2270
|
-
let currentNode = getParentNode(element);
|
2271
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
2272
|
-
if (isContainingBlock(currentNode)) {
|
2273
|
-
return currentNode;
|
2274
|
-
} else {
|
2275
|
-
currentNode = getParentNode(currentNode);
|
2276
|
-
}
|
2277
|
-
}
|
2278
|
-
return null;
|
2279
|
-
}
|
2280
2318
|
|
2281
2319
|
// Gets the closest ancestor positioned element. Handles some edge cases,
|
2282
2320
|
// such as table ancestors and cross browser bugs.
|
@@ -2481,10 +2519,66 @@ function autoUpdate(reference, floating, update, options) {
|
|
2481
2519
|
};
|
2482
2520
|
}
|
2483
2521
|
|
2522
|
+
/**
|
2523
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
2524
|
+
* that has the most space available automatically, without needing to specify a
|
2525
|
+
* preferred placement. Alternative to `flip`.
|
2526
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
2527
|
+
*/
|
2528
|
+
const floating_ui_dom_autoPlacement = autoPlacement;
|
2529
|
+
|
2530
|
+
/**
|
2531
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
2532
|
+
* keep it in view when it will overflow the clipping boundary.
|
2533
|
+
* @see https://floating-ui.com/docs/shift
|
2534
|
+
*/
|
2535
|
+
const floating_ui_dom_shift = shift;
|
2536
|
+
|
2537
|
+
/**
|
2538
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
2539
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
2540
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
2541
|
+
* @see https://floating-ui.com/docs/flip
|
2542
|
+
*/
|
2543
|
+
const floating_ui_dom_flip = flip;
|
2544
|
+
|
2545
|
+
/**
|
2546
|
+
* Provides data that allows you to change the size of the floating element —
|
2547
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
2548
|
+
* width of the reference element.
|
2549
|
+
* @see https://floating-ui.com/docs/size
|
2550
|
+
*/
|
2551
|
+
const floating_ui_dom_size = (/* unused pure expression or super */ null && (size$1));
|
2552
|
+
|
2553
|
+
/**
|
2554
|
+
* Provides data to hide the floating element in applicable situations, such as
|
2555
|
+
* when it is not in the same clipping context as the reference element.
|
2556
|
+
* @see https://floating-ui.com/docs/hide
|
2557
|
+
*/
|
2558
|
+
const floating_ui_dom_hide = hide;
|
2559
|
+
|
2560
|
+
/**
|
2561
|
+
* Provides data to position an inner element of the floating element so that it
|
2562
|
+
* appears centered to the reference element.
|
2563
|
+
* @see https://floating-ui.com/docs/arrow
|
2564
|
+
*/
|
2565
|
+
const floating_ui_dom_arrow = arrow;
|
2566
|
+
|
2567
|
+
/**
|
2568
|
+
* Provides improved positioning for inline reference elements that can span
|
2569
|
+
* over multiple lines, such as hyperlinks or range selections.
|
2570
|
+
* @see https://floating-ui.com/docs/inline
|
2571
|
+
*/
|
2572
|
+
const floating_ui_dom_inline = inline;
|
2573
|
+
|
2574
|
+
/**
|
2575
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
2576
|
+
*/
|
2577
|
+
const floating_ui_dom_limitShift = (/* unused pure expression or super */ null && (limitShift$1));
|
2578
|
+
|
2484
2579
|
/**
|
2485
2580
|
* Computes the `x` and `y` coordinates that will place the floating element
|
2486
|
-
* next to a reference element
|
2487
|
-
* strategy.
|
2581
|
+
* next to a given reference element.
|
2488
2582
|
*/
|
2489
2583
|
const floating_ui_dom_computePosition = (reference, floating, options) => {
|
2490
2584
|
// This caches the expensive `getClippingElementAncestors` function so that
|
@@ -2662,8 +2756,8 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
2662
2756
|
;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
|
2663
2757
|
|
2664
2758
|
|
2665
|
-
function ownKeys(
|
2666
|
-
function _objectSpread(
|
2759
|
+
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; }
|
2760
|
+
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; }
|
2667
2761
|
/*
|
2668
2762
|
* Tencent is pleased to support the open source community by making
|
2669
2763
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2816,7 +2910,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2816
2910
|
};
|
2817
2911
|
var resolvePopOptions = function resolvePopOptions(elArrow, props) {
|
2818
2912
|
var modifiers = resolveModifiers();
|
2819
|
-
var middleware = [offset(modifiers.offset || props.offset),
|
2913
|
+
var middleware = [offset(modifiers.offset || props.offset), floating_ui_dom_shift({
|
2820
2914
|
padding: props.padding
|
2821
2915
|
})];
|
2822
2916
|
var options = {
|
@@ -2824,17 +2918,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2824
2918
|
middleware: middleware
|
2825
2919
|
};
|
2826
2920
|
if (props.arrow) {
|
2827
|
-
middleware.push(
|
2921
|
+
middleware.push(floating_ui_dom_arrow({
|
2828
2922
|
element: elArrow
|
2829
2923
|
}));
|
2830
2924
|
}
|
2831
2925
|
if (isAutoPlacementAvailable()) {
|
2832
|
-
middleware.push(
|
2926
|
+
middleware.push(floating_ui_dom_autoPlacement());
|
2833
2927
|
}
|
2834
|
-
middleware.unshift(
|
2835
|
-
middleware.push(
|
2928
|
+
middleware.unshift(floating_ui_dom_inline());
|
2929
|
+
middleware.push(floating_ui_dom_flip());
|
2836
2930
|
if (isHideMiddlewareAvailable()) {
|
2837
|
-
options.middleware.push(
|
2931
|
+
options.middleware.push(floating_ui_dom_hide());
|
2838
2932
|
}
|
2839
2933
|
/**
|
2840
2934
|
* 如果是全屏元素或者指定的虚拟元素
|
@@ -3009,7 +3103,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
3009
3103
|
var _refContent$value2;
|
3010
3104
|
var elContent = resolveTargetElement((_refContent$value2 = refContent.value) === null || _refContent$value2 === void 0 ? void 0 : _refContent$value2.$el);
|
3011
3105
|
elContent.style.setProperty('display', 'block');
|
3012
|
-
elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex :
|
3106
|
+
elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex : shared_namespaceObject.bkZIndexManager.getPopperIndex()));
|
3013
3107
|
updatePopover();
|
3014
3108
|
ctx.emit(EMIT_EVENTS.CONTENT_AfterShow, {
|
3015
3109
|
isShow: true
|
@@ -3269,7 +3363,7 @@ var parentNodeReferId = null;
|
|
3269
3363
|
getFullscreenRoot = _useFloating.getFullscreenRoot,
|
3270
3364
|
stopHide = _useFloating.stopHide;
|
3271
3365
|
var resetPopover = function resetPopover() {
|
3272
|
-
cleanup === null || cleanup === void 0
|
3366
|
+
cleanup === null || cleanup === void 0 || cleanup();
|
3273
3367
|
createPopInstance();
|
3274
3368
|
};
|
3275
3369
|
var showFn = function showFn() {
|
@@ -3345,13 +3439,13 @@ var parentNodeReferId = null;
|
|
3345
3439
|
getPrefixId = _usePopperId.getPrefixId;
|
3346
3440
|
var setFullscreenTag = function setFullscreenTag() {
|
3347
3441
|
var _fullScreenTarget$val;
|
3348
|
-
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0
|
3442
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0 || _fullScreenTarget$val.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3349
3443
|
};
|
3350
3444
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3351
3445
|
var _fullScreenTarget$val2, _fullScreenTarget$val3;
|
3352
3446
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3353
3447
|
((_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) {
|
3354
|
-
element === null || element === void 0
|
3448
|
+
element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
|
3355
3449
|
});
|
3356
3450
|
};
|
3357
3451
|
var boundary = (0,external_vue_namespaceObject.ref)();
|
@@ -3537,7 +3631,7 @@ function _isSlot(s) {
|
|
3537
3631
|
hideFn();
|
3538
3632
|
};
|
3539
3633
|
var contentIsShow = (0,external_vue_namespaceObject.computed)(function () {
|
3540
|
-
if (props.renderType ===
|
3634
|
+
if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
|
3541
3635
|
return true;
|
3542
3636
|
}
|
3543
3637
|
return localIsShow.value;
|
@@ -3635,8 +3729,8 @@ function _isSlot(s) {
|
|
3635
3729
|
;// CONCATENATED MODULE: ../../packages/popover/src/plugin-popover.tsx
|
3636
3730
|
|
3637
3731
|
|
3638
|
-
function plugin_popover_ownKeys(
|
3639
|
-
function plugin_popover_objectSpread(
|
3732
|
+
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; }
|
3733
|
+
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; }
|
3640
3734
|
/*
|
3641
3735
|
* Tencent is pleased to support the open source community by making
|
3642
3736
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3699,36 +3793,36 @@ function createPopoverComponent(options) {
|
|
3699
3793
|
var refReference = (0,external_vue_namespaceObject.ref)();
|
3700
3794
|
var show = function show() {
|
3701
3795
|
var _refReference$value, _refReference$value$s;
|
3702
|
-
(_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0
|
3796
|
+
(_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);
|
3703
3797
|
};
|
3704
3798
|
var hide = function hide() {
|
3705
3799
|
var _refReference$value2, _refReference$value2$;
|
3706
|
-
(_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0
|
3800
|
+
(_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 || _refReference$value2$.call(_refReference$value2);
|
3707
3801
|
};
|
3708
3802
|
var stopHide = function stopHide() {
|
3709
3803
|
var _refReference$value3, _refReference$value3$;
|
3710
|
-
(_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0
|
3804
|
+
(_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 || _refReference$value3$.call(_refReference$value3);
|
3711
3805
|
};
|
3712
3806
|
var updateTarget = function updateTarget(target) {
|
3713
3807
|
var _refReference$value4, _refReference$value4$;
|
3714
3808
|
refProps.target = target;
|
3715
|
-
(_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0
|
3809
|
+
(_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 || _refReference$value4$.call(_refReference$value4);
|
3716
3810
|
};
|
3717
3811
|
var handleContentMouseenter = function handleContentMouseenter() {
|
3718
3812
|
var _resolvedOptions$onCo;
|
3719
|
-
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0
|
3813
|
+
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 || _resolvedOptions$onCo.call(resolvedOptions);
|
3720
3814
|
};
|
3721
3815
|
var handleContentMouseleave = function handleContentMouseleave() {
|
3722
3816
|
var _resolvedOptions$onCo2;
|
3723
|
-
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0
|
3817
|
+
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 || _resolvedOptions$onCo2.call(resolvedOptions);
|
3724
3818
|
};
|
3725
3819
|
var handlePopoverHidden = function handlePopoverHidden() {
|
3726
3820
|
var _resolvedOptions$onHi;
|
3727
|
-
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0
|
3821
|
+
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 || _resolvedOptions$onHi.call(resolvedOptions);
|
3728
3822
|
};
|
3729
3823
|
var handlePopoverShow = function handlePopoverShow() {
|
3730
3824
|
var _resolvedOptions$onSh;
|
3731
|
-
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0
|
3825
|
+
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 || _resolvedOptions$onSh.call(resolvedOptions);
|
3732
3826
|
};
|
3733
3827
|
expose({
|
3734
3828
|
show: show,
|
@@ -3778,15 +3872,15 @@ function createPopoverComponent(options) {
|
|
3778
3872
|
}
|
3779
3873
|
function show() {
|
3780
3874
|
var _$PopoverInstanceVm;
|
3781
|
-
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0
|
3875
|
+
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.show();
|
3782
3876
|
}
|
3783
3877
|
function update(e) {
|
3784
3878
|
var _$PopoverInstanceVm2;
|
3785
|
-
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0
|
3879
|
+
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.updateTarget(e);
|
3786
3880
|
}
|
3787
3881
|
function hide() {
|
3788
3882
|
var _$PopoverInstanceVm3;
|
3789
|
-
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0
|
3883
|
+
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.hide();
|
3790
3884
|
}
|
3791
3885
|
return {
|
3792
3886
|
close: close,
|
@@ -3829,5 +3923,5 @@ function createPopoverComponent(options) {
|
|
3829
3923
|
*/
|
3830
3924
|
|
3831
3925
|
/* harmony default export */ const src = (createPopoverComponent);
|
3832
|
-
var __webpack_exports__default = __webpack_exports__
|
3926
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
3833
3927
|
export { __webpack_exports__default as default };
|