bkui-vue 1.0.0 → 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 +10405 -10394
- package/dist/index.umd.js +47 -47
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- 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 +19 -19
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +82 -132
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/backtop/index.d.ts +69 -117
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +120 -153
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +19 -20
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +129 -158
- package/lib/card/index.js +20 -22
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +233 -234
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +119 -161
- package/lib/checkbox/index.js +39 -41
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +381 -438
- package/lib/collapse/index.d.ts +144 -168
- package/lib/collapse/index.js +21 -21
- package/lib/collapse-transition/index.d.ts +19 -94
- 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 +25 -28
- package/lib/config-provider/config-provider.d.ts +9 -0
- package/lib/config-provider/index.d.ts +168 -223
- package/lib/config-provider/index.js +19 -19
- package/lib/config-provider/token.d.ts +3 -0
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +19 -19
- 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 +92 -104
- 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 +227 -228
- package/lib/directives/index.js +27 -27
- package/lib/divider/index.d.ts +57 -111
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +17 -17
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +18 -19
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/form/form.css +3 -0
- package/lib/form/form.d.ts +1 -1
- package/lib/form/form.less +3 -0
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +29 -27
- package/lib/icon/angle-double-down-line.js +21 -21
- package/lib/icon/angle-double-left-line.js +21 -21
- package/lib/icon/angle-double-left.js +21 -21
- package/lib/icon/angle-double-right-line.js +21 -21
- package/lib/icon/angle-double-right.js +21 -21
- package/lib/icon/angle-double-up-line.js +21 -21
- package/lib/icon/angle-down-fill.js +21 -21
- package/lib/icon/angle-down-line.js +21 -21
- package/lib/icon/angle-down.js +21 -21
- package/lib/icon/angle-left.js +21 -21
- package/lib/icon/angle-right.js +21 -21
- package/lib/icon/angle-up-fill.js +21 -21
- package/lib/icon/angle-up.js +21 -21
- package/lib/icon/archive-fill.js +21 -21
- package/lib/icon/arrows-left.js +21 -21
- package/lib/icon/arrows-right.js +21 -21
- package/lib/icon/assistant.js +21 -21
- package/lib/icon/audio-fill.js +21 -21
- package/lib/icon/bk.js +21 -21
- package/lib/icon/circle.js +21 -21
- package/lib/icon/close-line.js +21 -21
- package/lib/icon/close.js +21 -21
- package/lib/icon/code.js +21 -21
- package/lib/icon/cog-shape.js +21 -21
- package/lib/icon/collapse-left.js +21 -21
- package/lib/icon/copy-shape.js +21 -21
- package/lib/icon/copy.js +21 -21
- package/lib/icon/data-shape.js +21 -21
- package/lib/icon/del.js +21 -21
- package/lib/icon/doc-fill.js +21 -21
- package/lib/icon/done.js +21 -21
- package/lib/icon/down-shape.js +21 -21
- package/lib/icon/down-small.js +21 -21
- package/lib/icon/edit-line.js +21 -21
- package/lib/icon/ellipsis.js +21 -21
- package/lib/icon/enlarge-line.js +21 -21
- package/lib/icon/error.js +21 -21
- package/lib/icon/excel-fill.js +21 -21
- package/lib/icon/exclamation-circle-shape.js +21 -21
- package/lib/icon/eye.js +21 -21
- package/lib/icon/filliscreen-line.js +21 -21
- package/lib/icon/fix-line.js +21 -21
- package/lib/icon/fix-shape.js +21 -21
- package/lib/icon/folder-open.js +21 -21
- package/lib/icon/folder-shape-open.js +21 -21
- package/lib/icon/folder-shape.js +21 -21
- package/lib/icon/folder.js +21 -21
- package/lib/icon/funnel.js +21 -21
- package/lib/icon/grag-fill.js +21 -21
- package/lib/icon/help-document-fill.js +21 -21
- package/lib/icon/help-fill.js +21 -21
- package/lib/icon/help.js +21 -21
- package/lib/icon/image-fill.js +22 -22
- package/lib/icon/img-error.js +22 -22
- package/lib/icon/img-placehoulder.js +22 -22
- package/lib/icon/index.js +192 -192
- package/lib/icon/info-line.js +22 -22
- package/lib/icon/info.js +22 -22
- package/lib/icon/left-shape.js +22 -22
- package/lib/icon/left-turn-line.js +22 -22
- package/lib/icon/loading.js +22 -22
- package/lib/icon/narrow-line.js +22 -22
- package/lib/icon/original.js +22 -22
- package/lib/icon/pdf-fill.js +22 -22
- package/lib/icon/play-shape.js +22 -22
- package/lib/icon/plus.js +22 -22
- package/lib/icon/ppt-fill.js +22 -22
- package/lib/icon/qq.js +22 -22
- package/lib/icon/right-shape.js +22 -22
- package/lib/icon/right-turn-line.js +22 -22
- package/lib/icon/search.js +22 -22
- package/lib/icon/share.js +22 -22
- package/lib/icon/spinner.js +22 -22
- package/lib/icon/success.js +22 -22
- package/lib/icon/switcher-loading.js +22 -22
- package/lib/icon/text-file.js +22 -22
- package/lib/icon/text-fill.js +22 -22
- package/lib/icon/transfer.js +22 -22
- package/lib/icon/tree-application-shape.js +22 -22
- package/lib/icon/unfull-screen.js +22 -22
- package/lib/icon/unvisible.js +22 -22
- package/lib/icon/up-shape.js +22 -22
- package/lib/icon/upload.js +22 -22
- package/lib/icon/video-fill.js +22 -22
- package/lib/icon/warn.js +22 -22
- package/lib/icon/weixin-pro.js +22 -22
- package/lib/icon/weixin.js +22 -22
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +19 -19
- package/lib/info-box/index.js +231 -232
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +256 -258
- package/lib/link/index.d.ts +73 -122
- package/lib/loading/index.d.ts +132 -158
- package/lib/loading/index.js +23 -25
- package/lib/loading/loading.d.ts +4 -4
- package/lib/locale/index.js +8 -12
- package/lib/locale/lang/en.d.ts +3 -0
- package/lib/menu/index.d.ts +51 -112
- package/lib/menu/index.js +25 -25
- package/lib/message/index.js +28 -30
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +261 -249
- package/lib/modal/index.js +492 -33
- package/lib/navigation/index.d.ts +152 -188
- package/lib/notify/index.js +22 -24
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +314 -242
- package/lib/overflow-title/index.js +1 -1
- package/lib/pagination/index.d.ts +194 -205
- package/lib/pagination/index.js +49 -56
- package/lib/plugin-popover/index.js +192 -98
- package/lib/pop-confirm/index.d.ts +126 -159
- package/lib/pop-confirm/index.js +0 -1
- 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 +192 -98
- package/lib/popover2/index.d.ts +8 -83
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +225 -226
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +19 -19
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +83 -135
- package/lib/radio/index.js +41 -43
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +19 -20
- package/lib/resize-layout/index.d.ts +156 -185
- package/lib/resize-layout/index.js +20 -21
- 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 +239 -240
- 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 +259 -262
- 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 +81 -63
- package/lib/sideslider/index.d.ts +247 -233
- package/lib/sideslider/index.js +241 -247
- package/lib/slider/index.d.ts +204 -204
- package/lib/slider/index.js +208 -209
- package/lib/steps/index.d.ts +114 -150
- package/lib/steps/index.js +227 -228
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +20 -22
- package/lib/tab/index.d.ts +199 -211
- package/lib/tab/index.js +23 -25
- package/lib/table/components/table-column.d.ts +2 -2
- package/lib/table/index.d.ts +605 -593
- package/lib/table/index.js +81 -95
- 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 +18 -19
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +690 -498
- package/lib/tag-input/index.js +54 -62
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +442 -385
- package/lib/timeline/index.d.ts +50 -109
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +191 -206
- package/lib/tree/index.d.ts +322 -288
- package/lib/tree/index.js +36 -39
- 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 +254 -257
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +337 -242
- package/lib/virtual-render/index.js +30 -30
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +6 -13
@@ -33,38 +33,38 @@ __webpack_require__.d(__webpack_exports__, {
|
|
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,
|
@@ -257,7 +257,6 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
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
|
/*
|
@@ -376,7 +375,7 @@ 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
380
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
382
381
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -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
|
* 如果是全屏元素或者指定的虚拟元素
|
@@ -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)();
|
@@ -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,
|