bkui-vue 0.0.3-beta.2 → 0.0.3-beta.2-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +48 -48
- package/dist/index.esm.js +10567 -10537
- package/dist/index.umd.js +48 -48
- 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 +380 -437
- 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/index.d.ts +156 -223
- package/lib/config-provider/index.js +19 -19
- 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 +345 -302
- 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.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +25 -26
- 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 +229 -230
- 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 +130 -156
- package/lib/loading/index.js +23 -25
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +0 -4
- 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 +251 -246
- package/lib/modal/index.js +24 -24
- 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/index.js +62 -64
- package/lib/sideslider/index.d.ts +237 -226
- package/lib/sideslider/index.js +227 -227
- 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 +161 -132
- package/lib/table/plugins/use-pagination.d.ts +3 -2
- package/lib/table/table.css +12 -5
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.less +15 -5
- package/lib/table/table.variable.css +12 -5
- package/lib/table/use-attributes.d.ts +40 -1
- package/lib/table/use-common.d.ts +68 -34
- package/lib/table-column/index.d.ts +206 -242
- 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 +334 -293
- 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 +1 -1
package/lib/popover/index.js
CHANGED
@@ -213,38 +213,38 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
213
213
|
}
|
214
214
|
}));
|
215
215
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
216
|
-
function _typeof(
|
216
|
+
function _typeof(o) {
|
217
217
|
"@babel/helpers - typeof";
|
218
218
|
|
219
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
220
|
-
return typeof
|
221
|
-
} : function (
|
222
|
-
return
|
223
|
-
}, _typeof(
|
219
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
220
|
+
return typeof o;
|
221
|
+
} : function (o) {
|
222
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
223
|
+
}, _typeof(o);
|
224
224
|
}
|
225
225
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
226
226
|
|
227
|
-
function
|
228
|
-
if (
|
229
|
-
var
|
230
|
-
if (
|
231
|
-
var
|
232
|
-
if (
|
227
|
+
function toPrimitive(t, r) {
|
228
|
+
if ("object" != _typeof(t) || !t) return t;
|
229
|
+
var e = t[Symbol.toPrimitive];
|
230
|
+
if (void 0 !== e) {
|
231
|
+
var i = e.call(t, r || "default");
|
232
|
+
if ("object" != _typeof(i)) return i;
|
233
233
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
234
234
|
}
|
235
|
-
return (
|
235
|
+
return ("string" === r ? String : Number)(t);
|
236
236
|
}
|
237
237
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
238
238
|
|
239
239
|
|
240
|
-
function
|
241
|
-
var
|
242
|
-
return _typeof(
|
240
|
+
function toPropertyKey(t) {
|
241
|
+
var i = toPrimitive(t, "string");
|
242
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
243
243
|
}
|
244
244
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
245
245
|
|
246
246
|
function _defineProperty(obj, key, value) {
|
247
|
-
key =
|
247
|
+
key = toPropertyKey(key);
|
248
248
|
if (key in obj) {
|
249
249
|
Object.defineProperty(obj, key, {
|
250
250
|
value: value,
|
@@ -259,7 +259,6 @@ function _defineProperty(obj, key, value) {
|
|
259
259
|
}
|
260
260
|
;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
|
261
261
|
|
262
|
-
var _EMIT_EVENT_TYPES;
|
263
262
|
/* eslint-disable @typescript-eslint/naming-convention */
|
264
263
|
/*
|
265
264
|
* Tencent is pleased to support the open source community by making
|
@@ -304,7 +303,7 @@ var EVENT_COMMON_FN = function EVENT_COMMON_FN(e) {
|
|
304
303
|
var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
|
305
304
|
return true;
|
306
305
|
};
|
307
|
-
var EMIT_EVENT_TYPES = (
|
306
|
+
var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN);
|
308
307
|
;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
|
309
308
|
|
310
309
|
/*
|
@@ -378,7 +377,7 @@ var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPE
|
|
378
377
|
if (props.eventDelay === 0) {
|
379
378
|
return;
|
380
379
|
}
|
381
|
-
(_refContent$value = refContent.value) === null || _refContent$value === void 0
|
380
|
+
(_refContent$value = refContent.value) === null || _refContent$value === void 0 || _refContent$value.style.setProperty('pointer-events', val);
|
382
381
|
};
|
383
382
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
384
383
|
resolveClassName = _usePrefix.resolveClassName;
|
@@ -595,31 +594,31 @@ function _arrayWithHoles(arr) {
|
|
595
594
|
if (Array.isArray(arr)) return arr;
|
596
595
|
}
|
597
596
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
598
|
-
function _iterableToArrayLimit(
|
599
|
-
var
|
600
|
-
if (null !=
|
601
|
-
var
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
597
|
+
function _iterableToArrayLimit(r, l) {
|
598
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
599
|
+
if (null != t) {
|
600
|
+
var e,
|
601
|
+
n,
|
602
|
+
i,
|
603
|
+
u,
|
604
|
+
a = [],
|
605
|
+
f = !0,
|
606
|
+
o = !1;
|
608
607
|
try {
|
609
|
-
if (
|
610
|
-
if (Object(
|
611
|
-
|
612
|
-
} else for (; !(
|
613
|
-
} catch (
|
614
|
-
|
608
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
609
|
+
if (Object(t) !== t) return;
|
610
|
+
f = !1;
|
611
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
612
|
+
} catch (r) {
|
613
|
+
o = !0, n = r;
|
615
614
|
} finally {
|
616
615
|
try {
|
617
|
-
if (!
|
616
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
618
617
|
} finally {
|
619
|
-
if (
|
618
|
+
if (o) throw n;
|
620
619
|
}
|
621
620
|
}
|
622
|
-
return
|
621
|
+
return a;
|
623
622
|
}
|
624
623
|
}
|
625
624
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -655,6 +654,11 @@ var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
655
654
|
var isElement_y = x => () => x
|
656
655
|
const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
|
657
656
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
657
|
+
/**
|
658
|
+
* Custom positioning reference element.
|
659
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
660
|
+
*/
|
661
|
+
|
658
662
|
const sides = ['top', 'right', 'bottom', 'left'];
|
659
663
|
const alignments = ['start', 'end'];
|
660
664
|
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
@@ -842,7 +846,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
842
846
|
|
843
847
|
/**
|
844
848
|
* Computes the `x` and `y` coordinates that will place the floating element
|
845
|
-
* next to a reference element
|
849
|
+
* next to a given reference element.
|
846
850
|
*
|
847
851
|
* This export does not have any `platform` interface logic. You will need to
|
848
852
|
* write one for the platform you are using Floating UI with.
|
@@ -920,7 +924,6 @@ const computePosition = async (reference, floating, config) => {
|
|
920
924
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
921
925
|
}
|
922
926
|
i = -1;
|
923
|
-
continue;
|
924
927
|
}
|
925
928
|
}
|
926
929
|
return {
|
@@ -983,6 +986,7 @@ async function detectOverflow(state, options) {
|
|
983
986
|
y: 1
|
984
987
|
};
|
985
988
|
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
989
|
+
elements,
|
986
990
|
rect,
|
987
991
|
offsetParent,
|
988
992
|
strategy
|
@@ -1010,7 +1014,8 @@ const arrow = options => ({
|
|
1010
1014
|
placement,
|
1011
1015
|
rects,
|
1012
1016
|
platform,
|
1013
|
-
elements
|
1017
|
+
elements,
|
1018
|
+
middlewareData
|
1014
1019
|
} = state;
|
1015
1020
|
// Since `element` is required, we don't Partial<> the type.
|
1016
1021
|
const {
|
@@ -1058,16 +1063,20 @@ const arrow = options => ({
|
|
1058
1063
|
|
1059
1064
|
// If the reference is small enough that the arrow's padding causes it to
|
1060
1065
|
// to point to nothing for an aligned placement, adjust the offset of the
|
1061
|
-
// floating element itself.
|
1062
|
-
//
|
1063
|
-
const shouldAddOffset = floating_ui_utils_getAlignment(placement) != null && center
|
1064
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? min$1
|
1066
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
1067
|
+
// a single reset is performed when this is true.
|
1068
|
+
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;
|
1069
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
1065
1070
|
return {
|
1066
|
-
[axis]: coords[axis]
|
1071
|
+
[axis]: coords[axis] + alignmentOffset,
|
1067
1072
|
data: {
|
1068
1073
|
[axis]: offset,
|
1069
|
-
centerOffset: center - offset
|
1070
|
-
|
1074
|
+
centerOffset: center - offset - alignmentOffset,
|
1075
|
+
...(shouldAddOffset && {
|
1076
|
+
alignmentOffset
|
1077
|
+
})
|
1078
|
+
},
|
1079
|
+
reset: shouldAddOffset
|
1071
1080
|
};
|
1072
1081
|
}
|
1073
1082
|
});
|
@@ -1189,7 +1198,7 @@ const flip = function (options) {
|
|
1189
1198
|
name: 'flip',
|
1190
1199
|
options,
|
1191
1200
|
async fn(state) {
|
1192
|
-
var _middlewareData$flip;
|
1201
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
1193
1202
|
const {
|
1194
1203
|
placement,
|
1195
1204
|
middlewareData,
|
@@ -1207,6 +1216,14 @@ const flip = function (options) {
|
|
1207
1216
|
flipAlignment = true,
|
1208
1217
|
...detectOverflowOptions
|
1209
1218
|
} = floating_ui_utils_evaluate(options, state);
|
1219
|
+
|
1220
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
1221
|
+
// added, we should skip any logic now since `flip()` has already done its
|
1222
|
+
// work.
|
1223
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
1224
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1225
|
+
return {};
|
1226
|
+
}
|
1210
1227
|
const side = floating_ui_utils_getSide(placement);
|
1211
1228
|
const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
|
1212
1229
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
@@ -1484,6 +1501,7 @@ const inline = function (options) {
|
|
1484
1501
|
|
1485
1502
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
1486
1503
|
// Derivable.
|
1504
|
+
|
1487
1505
|
async function convertValueToCoords(state, options) {
|
1488
1506
|
const {
|
1489
1507
|
placement,
|
@@ -1497,8 +1515,6 @@ async function convertValueToCoords(state, options) {
|
|
1497
1515
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
1498
1516
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
1499
1517
|
const rawValue = floating_ui_utils_evaluate(options, state);
|
1500
|
-
|
1501
|
-
// eslint-disable-next-line prefer-const
|
1502
1518
|
let {
|
1503
1519
|
mainAxis,
|
1504
1520
|
crossAxis,
|
@@ -1540,15 +1556,27 @@ const offset = function (options) {
|
|
1540
1556
|
name: 'offset',
|
1541
1557
|
options,
|
1542
1558
|
async fn(state) {
|
1559
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
1543
1560
|
const {
|
1544
1561
|
x,
|
1545
|
-
y
|
1562
|
+
y,
|
1563
|
+
placement,
|
1564
|
+
middlewareData
|
1546
1565
|
} = state;
|
1547
1566
|
const diffCoords = await convertValueToCoords(state, options);
|
1567
|
+
|
1568
|
+
// If the placement is the same and the arrow caused an alignment offset
|
1569
|
+
// then we don't need to change the positioning coordinates.
|
1570
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1571
|
+
return {};
|
1572
|
+
}
|
1548
1573
|
return {
|
1549
1574
|
x: x + diffCoords.x,
|
1550
1575
|
y: y + diffCoords.y,
|
1551
|
-
data:
|
1576
|
+
data: {
|
1577
|
+
...diffCoords,
|
1578
|
+
placement
|
1579
|
+
}
|
1552
1580
|
};
|
1553
1581
|
}
|
1554
1582
|
};
|
@@ -1780,7 +1808,7 @@ const size = function (options) {
|
|
1780
1808
|
|
1781
1809
|
|
1782
1810
|
|
1783
|
-
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/
|
1811
|
+
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
1784
1812
|
function getNodeName(node) {
|
1785
1813
|
if (isNode(node)) {
|
1786
1814
|
return (node.nodeName || '').toLowerCase();
|
@@ -1792,7 +1820,7 @@ function getNodeName(node) {
|
|
1792
1820
|
}
|
1793
1821
|
function getWindow(node) {
|
1794
1822
|
var _node$ownerDocument;
|
1795
|
-
return (node == null
|
1823
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
1796
1824
|
}
|
1797
1825
|
function getDocumentElement(node) {
|
1798
1826
|
var _ref;
|
@@ -1833,6 +1861,17 @@ function isContainingBlock(element) {
|
|
1833
1861
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1834
1862
|
return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
1835
1863
|
}
|
1864
|
+
function getContainingBlock(element) {
|
1865
|
+
let currentNode = getParentNode(element);
|
1866
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1867
|
+
if (isContainingBlock(currentNode)) {
|
1868
|
+
return currentNode;
|
1869
|
+
} else {
|
1870
|
+
currentNode = getParentNode(currentNode);
|
1871
|
+
}
|
1872
|
+
}
|
1873
|
+
return null;
|
1874
|
+
}
|
1836
1875
|
function isWebKit() {
|
1837
1876
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
1838
1877
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
@@ -1880,18 +1919,21 @@ function getNearestOverflowAncestor(node) {
|
|
1880
1919
|
}
|
1881
1920
|
return getNearestOverflowAncestor(parentNode);
|
1882
1921
|
}
|
1883
|
-
function getOverflowAncestors(node, list) {
|
1922
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
1884
1923
|
var _node$ownerDocument2;
|
1885
1924
|
if (list === void 0) {
|
1886
1925
|
list = [];
|
1887
1926
|
}
|
1927
|
+
if (traverseIframes === void 0) {
|
1928
|
+
traverseIframes = true;
|
1929
|
+
}
|
1888
1930
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
1889
1931
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
1890
1932
|
const win = getWindow(scrollableAncestor);
|
1891
1933
|
if (isBody) {
|
1892
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
1934
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
1893
1935
|
}
|
1894
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
1936
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
1895
1937
|
}
|
1896
1938
|
|
1897
1939
|
|
@@ -2171,7 +2213,7 @@ function getClippingElementAncestors(element, cache) {
|
|
2171
2213
|
if (cachedResult) {
|
2172
2214
|
return cachedResult;
|
2173
2215
|
}
|
2174
|
-
let result = getOverflowAncestors(element).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
|
2216
|
+
let result = getOverflowAncestors(element, [], false).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
|
2175
2217
|
let currentContainingBlockComputedStyle = null;
|
2176
2218
|
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
2177
2219
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
@@ -2226,7 +2268,14 @@ function getClippingRect(_ref) {
|
|
2226
2268
|
}
|
2227
2269
|
|
2228
2270
|
function getDimensions(element) {
|
2229
|
-
|
2271
|
+
const {
|
2272
|
+
width,
|
2273
|
+
height
|
2274
|
+
} = getCssDimensions(element);
|
2275
|
+
return {
|
2276
|
+
width,
|
2277
|
+
height
|
2278
|
+
};
|
2230
2279
|
}
|
2231
2280
|
|
2232
2281
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
@@ -2268,17 +2317,6 @@ function getTrueOffsetParent(element, polyfill) {
|
|
2268
2317
|
}
|
2269
2318
|
return element.offsetParent;
|
2270
2319
|
}
|
2271
|
-
function getContainingBlock(element) {
|
2272
|
-
let currentNode = getParentNode(element);
|
2273
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
2274
|
-
if (isContainingBlock(currentNode)) {
|
2275
|
-
return currentNode;
|
2276
|
-
} else {
|
2277
|
-
currentNode = getParentNode(currentNode);
|
2278
|
-
}
|
2279
|
-
}
|
2280
|
-
return null;
|
2281
|
-
}
|
2282
2320
|
|
2283
2321
|
// Gets the closest ancestor positioned element. Handles some edge cases,
|
2284
2322
|
// such as table ancestors and cross browser bugs.
|
@@ -2483,10 +2521,66 @@ function autoUpdate(reference, floating, update, options) {
|
|
2483
2521
|
};
|
2484
2522
|
}
|
2485
2523
|
|
2524
|
+
/**
|
2525
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
2526
|
+
* that has the most space available automatically, without needing to specify a
|
2527
|
+
* preferred placement. Alternative to `flip`.
|
2528
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
2529
|
+
*/
|
2530
|
+
const floating_ui_dom_autoPlacement = autoPlacement;
|
2531
|
+
|
2532
|
+
/**
|
2533
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
2534
|
+
* keep it in view when it will overflow the clipping boundary.
|
2535
|
+
* @see https://floating-ui.com/docs/shift
|
2536
|
+
*/
|
2537
|
+
const floating_ui_dom_shift = shift;
|
2538
|
+
|
2539
|
+
/**
|
2540
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
2541
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
2542
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
2543
|
+
* @see https://floating-ui.com/docs/flip
|
2544
|
+
*/
|
2545
|
+
const floating_ui_dom_flip = flip;
|
2546
|
+
|
2547
|
+
/**
|
2548
|
+
* Provides data that allows you to change the size of the floating element —
|
2549
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
2550
|
+
* width of the reference element.
|
2551
|
+
* @see https://floating-ui.com/docs/size
|
2552
|
+
*/
|
2553
|
+
const floating_ui_dom_size = (/* unused pure expression or super */ null && (size$1));
|
2554
|
+
|
2555
|
+
/**
|
2556
|
+
* Provides data to hide the floating element in applicable situations, such as
|
2557
|
+
* when it is not in the same clipping context as the reference element.
|
2558
|
+
* @see https://floating-ui.com/docs/hide
|
2559
|
+
*/
|
2560
|
+
const floating_ui_dom_hide = hide;
|
2561
|
+
|
2562
|
+
/**
|
2563
|
+
* Provides data to position an inner element of the floating element so that it
|
2564
|
+
* appears centered to the reference element.
|
2565
|
+
* @see https://floating-ui.com/docs/arrow
|
2566
|
+
*/
|
2567
|
+
const floating_ui_dom_arrow = arrow;
|
2568
|
+
|
2569
|
+
/**
|
2570
|
+
* Provides improved positioning for inline reference elements that can span
|
2571
|
+
* over multiple lines, such as hyperlinks or range selections.
|
2572
|
+
* @see https://floating-ui.com/docs/inline
|
2573
|
+
*/
|
2574
|
+
const floating_ui_dom_inline = inline;
|
2575
|
+
|
2576
|
+
/**
|
2577
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
2578
|
+
*/
|
2579
|
+
const floating_ui_dom_limitShift = (/* unused pure expression or super */ null && (limitShift$1));
|
2580
|
+
|
2486
2581
|
/**
|
2487
2582
|
* Computes the `x` and `y` coordinates that will place the floating element
|
2488
|
-
* next to a reference element
|
2489
|
-
* strategy.
|
2583
|
+
* next to a given reference element.
|
2490
2584
|
*/
|
2491
2585
|
const floating_ui_dom_computePosition = (reference, floating, options) => {
|
2492
2586
|
// This caches the expensive `getClippingElementAncestors` function so that
|
@@ -2664,8 +2758,8 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
2664
2758
|
;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
|
2665
2759
|
|
2666
2760
|
|
2667
|
-
function ownKeys(
|
2668
|
-
function _objectSpread(
|
2761
|
+
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; }
|
2762
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2669
2763
|
/*
|
2670
2764
|
* Tencent is pleased to support the open source community by making
|
2671
2765
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2818,7 +2912,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2818
2912
|
};
|
2819
2913
|
var resolvePopOptions = function resolvePopOptions(elArrow, props) {
|
2820
2914
|
var modifiers = resolveModifiers();
|
2821
|
-
var middleware = [offset(modifiers.offset || props.offset),
|
2915
|
+
var middleware = [offset(modifiers.offset || props.offset), floating_ui_dom_shift({
|
2822
2916
|
padding: props.padding
|
2823
2917
|
})];
|
2824
2918
|
var options = {
|
@@ -2826,17 +2920,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2826
2920
|
middleware: middleware
|
2827
2921
|
};
|
2828
2922
|
if (props.arrow) {
|
2829
|
-
middleware.push(
|
2923
|
+
middleware.push(floating_ui_dom_arrow({
|
2830
2924
|
element: elArrow
|
2831
2925
|
}));
|
2832
2926
|
}
|
2833
2927
|
if (isAutoPlacementAvailable()) {
|
2834
|
-
middleware.push(
|
2928
|
+
middleware.push(floating_ui_dom_autoPlacement());
|
2835
2929
|
}
|
2836
|
-
middleware.unshift(
|
2837
|
-
middleware.push(
|
2930
|
+
middleware.unshift(floating_ui_dom_inline());
|
2931
|
+
middleware.push(floating_ui_dom_flip());
|
2838
2932
|
if (isHideMiddlewareAvailable()) {
|
2839
|
-
options.middleware.push(
|
2933
|
+
options.middleware.push(floating_ui_dom_hide());
|
2840
2934
|
}
|
2841
2935
|
/**
|
2842
2936
|
* 如果是全屏元素或者指定的虚拟元素
|
@@ -3271,7 +3365,7 @@ var parentNodeReferId = null;
|
|
3271
3365
|
getFullscreenRoot = _useFloating.getFullscreenRoot,
|
3272
3366
|
stopHide = _useFloating.stopHide;
|
3273
3367
|
var resetPopover = function resetPopover() {
|
3274
|
-
cleanup === null || cleanup === void 0
|
3368
|
+
cleanup === null || cleanup === void 0 || cleanup();
|
3275
3369
|
createPopInstance();
|
3276
3370
|
};
|
3277
3371
|
var showFn = function showFn() {
|
@@ -3347,13 +3441,13 @@ var parentNodeReferId = null;
|
|
3347
3441
|
getPrefixId = _usePopperId.getPrefixId;
|
3348
3442
|
var setFullscreenTag = function setFullscreenTag() {
|
3349
3443
|
var _fullScreenTarget$val;
|
3350
|
-
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0
|
3444
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val = fullScreenTarget.value) === null || _fullScreenTarget$val === void 0 || _fullScreenTarget$val.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3351
3445
|
};
|
3352
3446
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3353
3447
|
var _fullScreenTarget$val2, _fullScreenTarget$val3;
|
3354
3448
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3355
3449
|
((_fullScreenTarget$val2 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val3 = fullScreenTarget.value) === null || _fullScreenTarget$val3 === void 0 ? void 0 : _fullScreenTarget$val3.querySelectorAll(query)) !== null && _fullScreenTarget$val2 !== void 0 ? _fullScreenTarget$val2 : []).forEach(function (element) {
|
3356
|
-
element === null || element === void 0
|
3450
|
+
element === null || element === void 0 || element.removeAttribute('data-fllsrn-id');
|
3357
3451
|
});
|
3358
3452
|
};
|
3359
3453
|
var boundary = (0,external_vue_namespaceObject.ref)();
|
@@ -3637,8 +3731,8 @@ function _isSlot(s) {
|
|
3637
3731
|
;// CONCATENATED MODULE: ../../packages/popover/src/plugin-popover.tsx
|
3638
3732
|
|
3639
3733
|
|
3640
|
-
function plugin_popover_ownKeys(
|
3641
|
-
function plugin_popover_objectSpread(
|
3734
|
+
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; }
|
3735
|
+
function plugin_popover_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? plugin_popover_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : plugin_popover_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
3642
3736
|
/*
|
3643
3737
|
* Tencent is pleased to support the open source community by making
|
3644
3738
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3701,36 +3795,36 @@ function createPopoverComponent(options) {
|
|
3701
3795
|
var refReference = (0,external_vue_namespaceObject.ref)();
|
3702
3796
|
var show = function show() {
|
3703
3797
|
var _refReference$value, _refReference$value$s;
|
3704
|
-
(_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0
|
3798
|
+
(_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0 || _refReference$value$s.call(_refReference$value);
|
3705
3799
|
};
|
3706
3800
|
var hide = function hide() {
|
3707
3801
|
var _refReference$value2, _refReference$value2$;
|
3708
|
-
(_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0
|
3802
|
+
(_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 || _refReference$value2$.call(_refReference$value2);
|
3709
3803
|
};
|
3710
3804
|
var stopHide = function stopHide() {
|
3711
3805
|
var _refReference$value3, _refReference$value3$;
|
3712
|
-
(_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0
|
3806
|
+
(_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 || _refReference$value3$.call(_refReference$value3);
|
3713
3807
|
};
|
3714
3808
|
var updateTarget = function updateTarget(target) {
|
3715
3809
|
var _refReference$value4, _refReference$value4$;
|
3716
3810
|
refProps.target = target;
|
3717
|
-
(_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0
|
3811
|
+
(_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 || _refReference$value4$.call(_refReference$value4);
|
3718
3812
|
};
|
3719
3813
|
var handleContentMouseenter = function handleContentMouseenter() {
|
3720
3814
|
var _resolvedOptions$onCo;
|
3721
|
-
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0
|
3815
|
+
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 || _resolvedOptions$onCo.call(resolvedOptions);
|
3722
3816
|
};
|
3723
3817
|
var handleContentMouseleave = function handleContentMouseleave() {
|
3724
3818
|
var _resolvedOptions$onCo2;
|
3725
|
-
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0
|
3819
|
+
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 || _resolvedOptions$onCo2.call(resolvedOptions);
|
3726
3820
|
};
|
3727
3821
|
var handlePopoverHidden = function handlePopoverHidden() {
|
3728
3822
|
var _resolvedOptions$onHi;
|
3729
|
-
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0
|
3823
|
+
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 || _resolvedOptions$onHi.call(resolvedOptions);
|
3730
3824
|
};
|
3731
3825
|
var handlePopoverShow = function handlePopoverShow() {
|
3732
3826
|
var _resolvedOptions$onSh;
|
3733
|
-
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0
|
3827
|
+
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 || _resolvedOptions$onSh.call(resolvedOptions);
|
3734
3828
|
};
|
3735
3829
|
expose({
|
3736
3830
|
show: show,
|
@@ -3780,15 +3874,15 @@ function createPopoverComponent(options) {
|
|
3780
3874
|
}
|
3781
3875
|
function show() {
|
3782
3876
|
var _$PopoverInstanceVm;
|
3783
|
-
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0
|
3877
|
+
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 || _$PopoverInstanceVm.show();
|
3784
3878
|
}
|
3785
3879
|
function update(e) {
|
3786
3880
|
var _$PopoverInstanceVm2;
|
3787
|
-
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0
|
3881
|
+
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 || _$PopoverInstanceVm2.updateTarget(e);
|
3788
3882
|
}
|
3789
3883
|
function hide() {
|
3790
3884
|
var _$PopoverInstanceVm3;
|
3791
|
-
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0
|
3885
|
+
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 || _$PopoverInstanceVm3.hide();
|
3792
3886
|
}
|
3793
3887
|
return {
|
3794
3888
|
close: close,
|