bkui-vue 2.0.2-beta.47 → 2.0.2-beta.49
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 +42 -47
- package/dist/index.esm.js +7009 -7201
- package/dist/index.umd.js +45 -50
- package/lib/affix/index.js +14 -12
- package/lib/alert/index.js +14 -12
- package/lib/animate-number/index.js +12 -11
- package/lib/backtop/index.js +11 -10
- package/lib/badge/index.js +14 -12
- package/lib/breadcrumb/index.js +14 -12
- package/lib/button/index.js +14 -12
- package/lib/card/index.js +14 -12
- package/lib/cascader/index.js +101 -94
- package/lib/checkbox/index.js +35 -37
- package/lib/code-diff/index.js +674 -1170
- package/lib/collapse/index.js +42 -44
- package/lib/collapse-transition/index.js +4 -3
- package/lib/color-picker/index.js +60 -59
- package/lib/config-provider/index.js +14 -12
- package/lib/container/index.js +25 -21
- package/lib/date-picker/index.js +51 -58
- package/lib/dialog/index.js +441 -43
- package/lib/directives/index.js +34 -37
- package/lib/divider/index.js +3 -2
- package/lib/dropdown/index.js +21 -17
- package/lib/exception/index.js +17 -14
- package/lib/fixed-navbar/index.js +3 -2
- package/lib/form/index.js +34 -37
- package/lib/icon/angle-double-down-line.js +36 -29
- package/lib/icon/angle-double-left-line.js +36 -29
- package/lib/icon/angle-double-left.js +36 -29
- package/lib/icon/angle-double-right-line.js +36 -29
- package/lib/icon/angle-double-right.js +36 -29
- package/lib/icon/angle-double-up-line.js +36 -29
- package/lib/icon/angle-down-fill.js +36 -29
- package/lib/icon/angle-down-line.js +36 -29
- package/lib/icon/angle-down.js +36 -29
- package/lib/icon/angle-left.js +36 -29
- package/lib/icon/angle-right.js +36 -29
- package/lib/icon/angle-up-fill.js +36 -29
- package/lib/icon/angle-up.js +36 -29
- package/lib/icon/archive-fill.js +36 -29
- package/lib/icon/arrows-left.js +36 -29
- package/lib/icon/arrows-right.js +36 -29
- package/lib/icon/assistant.js +36 -29
- package/lib/icon/audio-fill.js +36 -29
- package/lib/icon/bk.js +36 -29
- package/lib/icon/circle.js +36 -29
- package/lib/icon/close-line.js +36 -29
- package/lib/icon/close.js +36 -29
- package/lib/icon/code.js +36 -29
- package/lib/icon/cog-shape.js +36 -29
- package/lib/icon/collapse-left.js +36 -29
- package/lib/icon/copy-shape.js +36 -29
- package/lib/icon/copy.js +36 -29
- package/lib/icon/data-shape.js +36 -29
- package/lib/icon/del.js +36 -29
- package/lib/icon/doc-fill.js +36 -29
- package/lib/icon/done.js +36 -29
- package/lib/icon/down-shape.js +36 -29
- package/lib/icon/down-small.js +36 -29
- package/lib/icon/edit-line.js +36 -29
- package/lib/icon/ellipsis.js +36 -29
- package/lib/icon/enlarge-line.js +36 -29
- package/lib/icon/error.js +36 -29
- package/lib/icon/excel-fill.js +36 -29
- package/lib/icon/exclamation-circle-shape.js +36 -29
- package/lib/icon/eye.js +36 -29
- package/lib/icon/filliscreen-line.js +36 -29
- package/lib/icon/fix-line.js +36 -29
- package/lib/icon/fix-shape.js +36 -29
- package/lib/icon/folder-open.js +36 -29
- package/lib/icon/folder-shape-open.js +36 -29
- package/lib/icon/folder-shape.js +36 -29
- package/lib/icon/folder.js +36 -29
- package/lib/icon/funnel.js +36 -29
- package/lib/icon/grag-fill.js +36 -29
- package/lib/icon/help-document-fill.js +36 -29
- package/lib/icon/help-fill.js +36 -29
- package/lib/icon/help.js +36 -29
- package/lib/icon/image-fill.js +36 -29
- package/lib/icon/img-error.js +36 -29
- package/lib/icon/img-placehoulder.js +36 -29
- package/lib/icon/info-line.js +36 -29
- package/lib/icon/info.js +36 -29
- package/lib/icon/left-shape.js +36 -29
- package/lib/icon/left-turn-line.js +36 -29
- package/lib/icon/loading.js +36 -29
- package/lib/icon/narrow-line.js +36 -29
- package/lib/icon/original.js +36 -29
- package/lib/icon/pdf-fill.js +36 -29
- package/lib/icon/play-shape.js +36 -29
- package/lib/icon/plus.js +36 -29
- package/lib/icon/ppt-fill.js +36 -29
- package/lib/icon/qq.js +36 -29
- package/lib/icon/right-shape.js +36 -29
- package/lib/icon/right-turn-line.js +36 -29
- package/lib/icon/search.js +36 -29
- package/lib/icon/share.js +36 -29
- package/lib/icon/spinner.js +36 -29
- package/lib/icon/success.js +36 -29
- package/lib/icon/switcher-loading.js +36 -29
- package/lib/icon/text-all.js +36 -29
- package/lib/icon/text-file.js +36 -29
- package/lib/icon/text-fill.js +36 -29
- package/lib/icon/transfer.js +36 -29
- package/lib/icon/tree-application-shape.js +36 -29
- package/lib/icon/unfull-screen.js +36 -29
- package/lib/icon/unvisible.js +36 -29
- package/lib/icon/up-shape.js +36 -29
- package/lib/icon/upload.js +36 -29
- package/lib/icon/video-fill.js +36 -29
- package/lib/icon/warn.js +36 -29
- package/lib/icon/weixin-pro.js +36 -29
- package/lib/icon/weixin.js +36 -29
- package/lib/image/index.js +47 -49
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +461 -62
- package/lib/input/index.js +60 -62
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +25 -22
- package/lib/menu/index.js +34 -36
- package/lib/message/index.js +31 -34
- package/lib/modal/index.js +14 -12
- package/lib/navigation/index.js +9 -7
- package/lib/notify/index.js +14 -12
- package/lib/overflow-title/index.js +10 -9
- package/lib/pagination/index.js +29 -32
- package/lib/pop-confirm/index.js +5 -4
- package/lib/popover/index.js +136 -209
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +452 -59
- package/lib/progress/index.js +19 -16
- package/lib/radio/index.js +34 -37
- package/lib/rate/index.js +14 -12
- package/lib/resize-layout/index.js +20 -18
- package/lib/scrollbar/index.js +58 -51
- package/lib/search-select/index.js +595 -222
- package/lib/select/index.js +463 -111
- package/lib/shared/index.js +95 -83
- package/lib/sideslider/index.js +441 -43
- package/lib/slider/index.js +446 -49
- package/lib/steps/index.js +458 -60
- package/lib/swiper/index.js +17 -15
- package/lib/switcher/index.js +14 -12
- package/lib/tab/index.js +40 -42
- package/lib/table/index.js +501 -152
- package/lib/tag/index.js +14 -12
- package/lib/tag-input/index.js +41 -47
- package/lib/timeline/index.js +0 -1
- package/lib/transfer/index.js +17 -22
- package/lib/tree/index.js +66 -73
- package/lib/upload/index.js +487 -136
- package/lib/virtual-render/index.js +51 -47
- package/package.json +1 -2
package/lib/popover/index.js
CHANGED
@@ -692,11 +692,11 @@ const shared_namespaceObject = x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_M
|
|
692
692
|
;// CONCATENATED MODULE: external "vue"
|
693
693
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
694
694
|
var external_vue_y = x => () => x
|
695
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
695
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Text"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Text, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
696
696
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
697
|
-
function _createForOfIteratorHelper(
|
698
|
-
function _unsupportedIterableToArray(
|
699
|
-
function _arrayLikeToArray(
|
697
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
698
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
699
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
700
700
|
/*
|
701
701
|
* Tencent is pleased to support the open source community by making
|
702
702
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -829,7 +829,6 @@ function _typeof(o) {
|
|
829
829
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
830
830
|
}, _typeof(o);
|
831
831
|
}
|
832
|
-
|
833
832
|
;// CONCATENATED MODULE: external "../popover"
|
834
833
|
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
835
834
|
var popover_y = x => () => x
|
@@ -1001,68 +1000,66 @@ function toPrimitive(t, r) {
|
|
1001
1000
|
}
|
1002
1001
|
return ("string" === r ? String : Number)(t);
|
1003
1002
|
}
|
1004
|
-
|
1005
1003
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
1006
1004
|
|
1007
1005
|
|
1008
1006
|
function toPropertyKey(t) {
|
1009
1007
|
var i = toPrimitive(t, "string");
|
1010
|
-
return "symbol" == _typeof(i) ? i : i
|
1008
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
1011
1009
|
}
|
1012
|
-
|
1013
1010
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1014
1011
|
|
1015
|
-
function _defineProperty(
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1012
|
+
function _defineProperty(obj, key, value) {
|
1013
|
+
key = toPropertyKey(key);
|
1014
|
+
if (key in obj) {
|
1015
|
+
Object.defineProperty(obj, key, {
|
1016
|
+
value: value,
|
1017
|
+
enumerable: true,
|
1018
|
+
configurable: true,
|
1019
|
+
writable: true
|
1020
|
+
});
|
1021
|
+
} else {
|
1022
|
+
obj[key] = value;
|
1023
|
+
}
|
1024
|
+
return obj;
|
1022
1025
|
}
|
1023
|
-
|
1024
1026
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1025
|
-
function arrayLikeToArray_arrayLikeToArray(
|
1026
|
-
(
|
1027
|
-
for (var
|
1028
|
-
return
|
1027
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
1028
|
+
if (len == null || len > arr.length) len = arr.length;
|
1029
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1030
|
+
return arr2;
|
1029
1031
|
}
|
1030
|
-
|
1031
1032
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1032
1033
|
|
1033
|
-
function _arrayWithoutHoles(
|
1034
|
-
if (Array.isArray(
|
1034
|
+
function _arrayWithoutHoles(arr) {
|
1035
|
+
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
1035
1036
|
}
|
1036
|
-
|
1037
1037
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1038
|
-
function _iterableToArray(
|
1039
|
-
if (
|
1038
|
+
function _iterableToArray(iter) {
|
1039
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1040
1040
|
}
|
1041
|
-
|
1042
1041
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1043
1042
|
|
1044
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(
|
1045
|
-
if (
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1043
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
1044
|
+
if (!o) return;
|
1045
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1046
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1047
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1048
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
1049
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1050
1050
|
}
|
1051
|
-
|
1052
1051
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1053
1052
|
function _nonIterableSpread() {
|
1054
1053
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1055
1054
|
}
|
1056
|
-
|
1057
1055
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1058
1056
|
|
1059
1057
|
|
1060
1058
|
|
1061
1059
|
|
1062
|
-
function _toConsumableArray(
|
1063
|
-
return _arrayWithoutHoles(
|
1060
|
+
function _toConsumableArray(arr) {
|
1061
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1064
1062
|
}
|
1065
|
-
|
1066
1063
|
;// CONCATENATED MODULE: external "@popperjs/core"
|
1067
1064
|
var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1068
1065
|
var core_y = x => () => x
|
@@ -1429,7 +1426,8 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
1429
1426
|
* IN THE SOFTWARE.
|
1430
1427
|
*/
|
1431
1428
|
|
1432
|
-
|
1429
|
+
|
1430
|
+
/* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
|
1433
1431
|
name: 'PopArrow',
|
1434
1432
|
render: function render() {
|
1435
1433
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
@@ -1515,7 +1513,8 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
1515
1513
|
*/
|
1516
1514
|
|
1517
1515
|
|
1518
|
-
|
1516
|
+
|
1517
|
+
/* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
|
1519
1518
|
name: 'PopContent',
|
1520
1519
|
props: {
|
1521
1520
|
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
@@ -1535,7 +1534,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
1535
1534
|
}
|
1536
1535
|
return val;
|
1537
1536
|
};
|
1538
|
-
var style = computed(function () {
|
1537
|
+
var style = (0,external_vue_namespaceObject.computed)(function () {
|
1539
1538
|
return {
|
1540
1539
|
width: resolveValToPix(props.width),
|
1541
1540
|
height: resolveValToPix(props.height),
|
@@ -1543,8 +1542,8 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
1543
1542
|
maxWidth: resolveValToPix(props.maxWidth)
|
1544
1543
|
};
|
1545
1544
|
});
|
1546
|
-
var refContent = ref(null);
|
1547
|
-
var refTimer = ref(null);
|
1545
|
+
var refContent = (0,external_vue_namespaceObject.ref)(null);
|
1546
|
+
var refTimer = (0,external_vue_namespaceObject.ref)(null);
|
1548
1547
|
var handleClick = function handleClick(evt) {
|
1549
1548
|
evt.stopPropagation();
|
1550
1549
|
emit('click', evt);
|
@@ -1568,7 +1567,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
1568
1567
|
};
|
1569
1568
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1570
1569
|
resolveClassName = _usePrefix.resolveClassName;
|
1571
|
-
var contentClassName = computed(function () {
|
1570
|
+
var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
|
1572
1571
|
return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
|
1573
1572
|
});
|
1574
1573
|
return {
|
@@ -1592,8 +1591,8 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
1592
1591
|
_this$$slots3;
|
1593
1592
|
var resolveContentStyle = function resolveContentStyle(slot) {
|
1594
1593
|
var _slot$;
|
1595
|
-
if (Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
1596
|
-
nextTick(function () {
|
1594
|
+
if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
1595
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
1597
1596
|
_this.setContentPointerEvent('none');
|
1598
1597
|
_this.resetPointerEvent();
|
1599
1598
|
});
|
@@ -1778,7 +1777,8 @@ var PopoverProps = {
|
|
1778
1777
|
* IN THE SOFTWARE.
|
1779
1778
|
*/
|
1780
1779
|
|
1781
|
-
|
1780
|
+
|
1781
|
+
/* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
|
1782
1782
|
props: {
|
1783
1783
|
"class": shared_namespaceObject.PropTypes.string.def(''),
|
1784
1784
|
mode: shared_namespaceObject.PropTypes.string.def('')
|
@@ -1789,10 +1789,9 @@ var PopoverProps = {
|
|
1789
1789
|
}
|
1790
1790
|
}));
|
1791
1791
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
1792
|
-
function _arrayWithHoles(
|
1793
|
-
if (Array.isArray(
|
1792
|
+
function _arrayWithHoles(arr) {
|
1793
|
+
if (Array.isArray(arr)) return arr;
|
1794
1794
|
}
|
1795
|
-
|
1796
1795
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
1797
1796
|
function _iterableToArrayLimit(r, l) {
|
1798
1797
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
@@ -1821,21 +1820,18 @@ function _iterableToArrayLimit(r, l) {
|
|
1821
1820
|
return a;
|
1822
1821
|
}
|
1823
1822
|
}
|
1824
|
-
|
1825
1823
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
1826
1824
|
function _nonIterableRest() {
|
1827
1825
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1828
1826
|
}
|
1829
|
-
|
1830
1827
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
1831
1828
|
|
1832
1829
|
|
1833
1830
|
|
1834
1831
|
|
1835
|
-
function _slicedToArray(
|
1836
|
-
return _arrayWithHoles(
|
1832
|
+
function _slicedToArray(arr, i) {
|
1833
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
1837
1834
|
}
|
1838
|
-
|
1839
1835
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
1840
1836
|
/**
|
1841
1837
|
* Custom positioning reference element.
|
@@ -1881,9 +1877,8 @@ function floating_ui_utils_getOppositeAxis(axis) {
|
|
1881
1877
|
function getAxisLength(axis) {
|
1882
1878
|
return axis === 'y' ? 'height' : 'width';
|
1883
1879
|
}
|
1884
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
1885
1880
|
function floating_ui_utils_getSideAxis(placement) {
|
1886
|
-
return
|
1881
|
+
return ['top', 'bottom'].includes(floating_ui_utils_getSide(placement)) ? 'y' : 'x';
|
1887
1882
|
}
|
1888
1883
|
function getAlignmentAxis(placement) {
|
1889
1884
|
return floating_ui_utils_getOppositeAxis(floating_ui_utils_getSideAxis(placement));
|
@@ -1908,19 +1903,19 @@ function getExpandedPlacements(placement) {
|
|
1908
1903
|
function getOppositeAlignmentPlacement(placement) {
|
1909
1904
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
1910
1905
|
}
|
1911
|
-
const lrPlacement = ['left', 'right'];
|
1912
|
-
const rlPlacement = ['right', 'left'];
|
1913
|
-
const tbPlacement = ['top', 'bottom'];
|
1914
|
-
const btPlacement = ['bottom', 'top'];
|
1915
1906
|
function getSideList(side, isStart, rtl) {
|
1907
|
+
const lr = ['left', 'right'];
|
1908
|
+
const rl = ['right', 'left'];
|
1909
|
+
const tb = ['top', 'bottom'];
|
1910
|
+
const bt = ['bottom', 'top'];
|
1916
1911
|
switch (side) {
|
1917
1912
|
case 'top':
|
1918
1913
|
case 'bottom':
|
1919
|
-
if (rtl) return isStart ?
|
1920
|
-
return isStart ?
|
1914
|
+
if (rtl) return isStart ? rl : lr;
|
1915
|
+
return isStart ? lr : rl;
|
1921
1916
|
case 'left':
|
1922
1917
|
case 'right':
|
1923
|
-
return isStart ?
|
1918
|
+
return isStart ? tb : bt;
|
1924
1919
|
default:
|
1925
1920
|
return [];
|
1926
1921
|
}
|
@@ -1957,21 +1952,12 @@ function getPaddingObject(padding) {
|
|
1957
1952
|
};
|
1958
1953
|
}
|
1959
1954
|
function rectToClientRect(rect) {
|
1960
|
-
const {
|
1961
|
-
x,
|
1962
|
-
y,
|
1963
|
-
width,
|
1964
|
-
height
|
1965
|
-
} = rect;
|
1966
1955
|
return {
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
bottom: y + height,
|
1973
|
-
x,
|
1974
|
-
y
|
1956
|
+
...rect,
|
1957
|
+
top: rect.y,
|
1958
|
+
left: rect.x,
|
1959
|
+
right: rect.x + rect.width,
|
1960
|
+
bottom: rect.y + rect.height
|
1975
1961
|
};
|
1976
1962
|
}
|
1977
1963
|
|
@@ -2166,10 +2152,9 @@ async function detectOverflow(state, options) {
|
|
2166
2152
|
strategy
|
2167
2153
|
}));
|
2168
2154
|
const rect = elementContext === 'floating' ? {
|
2155
|
+
...rects.floating,
|
2169
2156
|
x,
|
2170
|
-
y
|
2171
|
-
width: rects.floating.width,
|
2172
|
-
height: rects.floating.height
|
2157
|
+
y
|
2173
2158
|
} : rects.reference;
|
2174
2159
|
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
2175
2160
|
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
@@ -2419,12 +2404,10 @@ const flip = function (options) {
|
|
2419
2404
|
return {};
|
2420
2405
|
}
|
2421
2406
|
const side = floating_ui_utils_getSide(placement);
|
2422
|
-
const initialSideAxis = floating_ui_utils_getSideAxis(initialPlacement);
|
2423
2407
|
const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
|
2424
2408
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
2425
2409
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
2426
|
-
|
2427
|
-
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
2410
|
+
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
|
2428
2411
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
2429
2412
|
}
|
2430
2413
|
const placements = [initialPlacement, ...fallbackPlacements];
|
@@ -2449,22 +2432,16 @@ const flip = function (options) {
|
|
2449
2432
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
2450
2433
|
const nextPlacement = placements[nextIndex];
|
2451
2434
|
if (nextPlacement) {
|
2452
|
-
|
2453
|
-
|
2454
|
-
|
2455
|
-
|
2456
|
-
|
2457
|
-
|
2458
|
-
|
2459
|
-
|
2460
|
-
|
2461
|
-
|
2462
|
-
},
|
2463
|
-
reset: {
|
2464
|
-
placement: nextPlacement
|
2465
|
-
}
|
2466
|
-
};
|
2467
|
-
}
|
2435
|
+
// Try next placement and re-run the lifecycle.
|
2436
|
+
return {
|
2437
|
+
data: {
|
2438
|
+
index: nextIndex,
|
2439
|
+
overflows: overflowsData
|
2440
|
+
},
|
2441
|
+
reset: {
|
2442
|
+
placement: nextPlacement
|
2443
|
+
}
|
2444
|
+
};
|
2468
2445
|
}
|
2469
2446
|
|
2470
2447
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
@@ -2476,17 +2453,8 @@ const flip = function (options) {
|
|
2476
2453
|
switch (fallbackStrategy) {
|
2477
2454
|
case 'bestFit':
|
2478
2455
|
{
|
2479
|
-
var _overflowsData$
|
2480
|
-
const placement = (_overflowsData$
|
2481
|
-
if (hasFallbackAxisSideDirection) {
|
2482
|
-
const currentSideAxis = floating_ui_utils_getSideAxis(d.placement);
|
2483
|
-
return currentSideAxis === initialSideAxis ||
|
2484
|
-
// Create a bias to the `y` side axis due to horizontal
|
2485
|
-
// reading directions favoring greater width.
|
2486
|
-
currentSideAxis === 'y';
|
2487
|
-
}
|
2488
|
-
return true;
|
2489
|
-
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
2456
|
+
var _overflowsData$map$so;
|
2457
|
+
const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
|
2490
2458
|
if (placement) {
|
2491
2459
|
resetPlacement = placement;
|
2492
2460
|
}
|
@@ -2710,8 +2678,6 @@ const inline = function (options) {
|
|
2710
2678
|
};
|
2711
2679
|
};
|
2712
2680
|
|
2713
|
-
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
2714
|
-
|
2715
2681
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
2716
2682
|
// Derivable.
|
2717
2683
|
|
@@ -2725,11 +2691,9 @@ async function convertValueToCoords(state, options) {
|
|
2725
2691
|
const side = floating_ui_utils_getSide(placement);
|
2726
2692
|
const alignment = floating_ui_utils_getAlignment(placement);
|
2727
2693
|
const isVertical = floating_ui_utils_getSideAxis(placement) === 'y';
|
2728
|
-
const mainAxisMulti =
|
2694
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
2729
2695
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
2730
2696
|
const rawValue = floating_ui_utils_evaluate(options, state);
|
2731
|
-
|
2732
|
-
// eslint-disable-next-line prefer-const
|
2733
2697
|
let {
|
2734
2698
|
mainAxis,
|
2735
2699
|
crossAxis,
|
@@ -2739,9 +2703,10 @@ async function convertValueToCoords(state, options) {
|
|
2739
2703
|
crossAxis: 0,
|
2740
2704
|
alignmentAxis: null
|
2741
2705
|
} : {
|
2742
|
-
mainAxis:
|
2743
|
-
crossAxis:
|
2744
|
-
alignmentAxis:
|
2706
|
+
mainAxis: 0,
|
2707
|
+
crossAxis: 0,
|
2708
|
+
alignmentAxis: null,
|
2709
|
+
...rawValue
|
2745
2710
|
};
|
2746
2711
|
if (alignment && typeof alignmentAxis === 'number') {
|
2747
2712
|
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
@@ -2863,11 +2828,7 @@ const shift = function (options) {
|
|
2863
2828
|
...limitedCoords,
|
2864
2829
|
data: {
|
2865
2830
|
x: limitedCoords.x - x,
|
2866
|
-
y: limitedCoords.y - y
|
2867
|
-
enabled: {
|
2868
|
-
[mainAxis]: checkMainAxis,
|
2869
|
-
[crossAxis]: checkCrossAxis
|
2870
|
-
}
|
2831
|
+
y: limitedCoords.y - y
|
2871
2832
|
}
|
2872
2833
|
};
|
2873
2834
|
}
|
@@ -2925,7 +2886,7 @@ const limitShift = function (options) {
|
|
2925
2886
|
if (checkCrossAxis) {
|
2926
2887
|
var _middlewareData$offse, _middlewareData$offse2;
|
2927
2888
|
const len = mainAxis === 'y' ? 'width' : 'height';
|
2928
|
-
const isOriginSide =
|
2889
|
+
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
2929
2890
|
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
2930
2891
|
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
2931
2892
|
if (crossAxisCoord < limitMin) {
|
@@ -2956,7 +2917,6 @@ const size = function (options) {
|
|
2956
2917
|
name: 'size',
|
2957
2918
|
options,
|
2958
2919
|
async fn(state) {
|
2959
|
-
var _state$middlewareData, _state$middlewareData2;
|
2960
2920
|
const {
|
2961
2921
|
placement,
|
2962
2922
|
rects,
|
@@ -2984,18 +2944,17 @@ const size = function (options) {
|
|
2984
2944
|
widthSide = side;
|
2985
2945
|
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
2986
2946
|
}
|
2987
|
-
const
|
2988
|
-
const
|
2989
|
-
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
2990
|
-
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
2947
|
+
const overflowAvailableHeight = height - overflow[heightSide];
|
2948
|
+
const overflowAvailableWidth = width - overflow[widthSide];
|
2991
2949
|
const noShift = !state.middlewareData.shift;
|
2992
2950
|
let availableHeight = overflowAvailableHeight;
|
2993
2951
|
let availableWidth = overflowAvailableWidth;
|
2994
|
-
if (
|
2995
|
-
|
2996
|
-
|
2997
|
-
|
2998
|
-
|
2952
|
+
if (isYAxis) {
|
2953
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
2954
|
+
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
2955
|
+
} else {
|
2956
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
2957
|
+
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
2999
2958
|
}
|
3000
2959
|
if (noShift && !alignment) {
|
3001
2960
|
const xMin = max(overflow.left, 0);
|
@@ -3029,9 +2988,6 @@ const size = function (options) {
|
|
3029
2988
|
|
3030
2989
|
|
3031
2990
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
3032
|
-
function hasWindow() {
|
3033
|
-
return typeof window !== 'undefined';
|
3034
|
-
}
|
3035
2991
|
function getNodeName(node) {
|
3036
2992
|
if (isNode(node)) {
|
3037
2993
|
return (node.nodeName || '').toLowerCase();
|
@@ -3050,30 +3006,21 @@ function getDocumentElement(node) {
|
|
3050
3006
|
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
3051
3007
|
}
|
3052
3008
|
function isNode(value) {
|
3053
|
-
if (!hasWindow()) {
|
3054
|
-
return false;
|
3055
|
-
}
|
3056
3009
|
return value instanceof Node || value instanceof getWindow(value).Node;
|
3057
3010
|
}
|
3058
3011
|
function floating_ui_utils_dom_isElement(value) {
|
3059
|
-
if (!hasWindow()) {
|
3060
|
-
return false;
|
3061
|
-
}
|
3062
3012
|
return value instanceof Element || value instanceof getWindow(value).Element;
|
3063
3013
|
}
|
3064
3014
|
function isHTMLElement(value) {
|
3065
|
-
if (!hasWindow()) {
|
3066
|
-
return false;
|
3067
|
-
}
|
3068
3015
|
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
3069
3016
|
}
|
3070
3017
|
function isShadowRoot(value) {
|
3071
|
-
|
3018
|
+
// Browsers without `ShadowRoot` support.
|
3019
|
+
if (typeof ShadowRoot === 'undefined') {
|
3072
3020
|
return false;
|
3073
3021
|
}
|
3074
3022
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
3075
3023
|
}
|
3076
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
3077
3024
|
function isOverflowElement(element) {
|
3078
3025
|
const {
|
3079
3026
|
overflow,
|
@@ -3081,42 +3028,26 @@ function isOverflowElement(element) {
|
|
3081
3028
|
overflowY,
|
3082
3029
|
display
|
3083
3030
|
} = getComputedStyle(element);
|
3084
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
3031
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
3085
3032
|
}
|
3086
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
3087
3033
|
function isTableElement(element) {
|
3088
|
-
return
|
3089
|
-
}
|
3090
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
3091
|
-
function isTopLayer(element) {
|
3092
|
-
return topLayerSelectors.some(selector => {
|
3093
|
-
try {
|
3094
|
-
return element.matches(selector);
|
3095
|
-
} catch (_e) {
|
3096
|
-
return false;
|
3097
|
-
}
|
3098
|
-
});
|
3034
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
3099
3035
|
}
|
3100
|
-
|
3101
|
-
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
3102
|
-
const containValues = ['paint', 'layout', 'strict', 'content'];
|
3103
|
-
function isContainingBlock(elementOrCss) {
|
3036
|
+
function isContainingBlock(element) {
|
3104
3037
|
const webkit = isWebKit();
|
3105
|
-
const css =
|
3038
|
+
const css = getComputedStyle(element);
|
3106
3039
|
|
3107
3040
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
3108
|
-
|
3109
|
-
return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));
|
3041
|
+
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));
|
3110
3042
|
}
|
3111
3043
|
function getContainingBlock(element) {
|
3112
3044
|
let currentNode = getParentNode(element);
|
3113
3045
|
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
3114
3046
|
if (isContainingBlock(currentNode)) {
|
3115
3047
|
return currentNode;
|
3116
|
-
} else
|
3117
|
-
|
3048
|
+
} else {
|
3049
|
+
currentNode = getParentNode(currentNode);
|
3118
3050
|
}
|
3119
|
-
currentNode = getParentNode(currentNode);
|
3120
3051
|
}
|
3121
3052
|
return null;
|
3122
3053
|
}
|
@@ -3124,9 +3055,8 @@ function isWebKit() {
|
|
3124
3055
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
3125
3056
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
3126
3057
|
}
|
3127
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
3128
3058
|
function isLastTraversableNode(node) {
|
3129
|
-
return
|
3059
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
3130
3060
|
}
|
3131
3061
|
function getComputedStyle(element) {
|
3132
3062
|
return getWindow(element).getComputedStyle(element);
|
@@ -3139,8 +3069,8 @@ function getNodeScroll(element) {
|
|
3139
3069
|
};
|
3140
3070
|
}
|
3141
3071
|
return {
|
3142
|
-
scrollLeft: element.
|
3143
|
-
scrollTop: element.
|
3072
|
+
scrollLeft: element.pageXOffset,
|
3073
|
+
scrollTop: element.pageYOffset
|
3144
3074
|
};
|
3145
3075
|
}
|
3146
3076
|
function getParentNode(node) {
|
@@ -3180,14 +3110,10 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
3180
3110
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
3181
3111
|
const win = getWindow(scrollableAncestor);
|
3182
3112
|
if (isBody) {
|
3183
|
-
|
3184
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
3113
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
3185
3114
|
}
|
3186
3115
|
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
3187
3116
|
}
|
3188
|
-
function getFrameElement(win) {
|
3189
|
-
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
3190
|
-
}
|
3191
3117
|
|
3192
3118
|
|
3193
3119
|
|
@@ -4127,9 +4053,9 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
4127
4053
|
var resolvePopElements = function resolvePopElements() {
|
4128
4054
|
var _refContent$value, _refArrow$value, _refRoot$value;
|
4129
4055
|
var elReference = resolveReferElement();
|
4130
|
-
var elContent =
|
4131
|
-
var elArrow = props.arrow ?
|
4132
|
-
var root =
|
4056
|
+
var elContent = resolveTargetElement((_refContent$value = refContent.value) === null || _refContent$value === void 0 ? void 0 : _refContent$value.$el);
|
4057
|
+
var elArrow = props.arrow ? resolveTargetElement((_refArrow$value = refArrow.value) === null || _refArrow$value === void 0 ? void 0 : _refArrow$value.$el) : null;
|
4058
|
+
var root = resolveTargetElement((_refRoot$value = refRoot.value) === null || _refRoot$value === void 0 ? void 0 : _refRoot$value.$el);
|
4133
4059
|
var _contentAsHTMLElement = contentAsHTMLElement(props.content),
|
4134
4060
|
isElement = _contentAsHTMLElement.isElement,
|
4135
4061
|
content = _contentAsHTMLElement.content;
|
@@ -4145,7 +4071,7 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
4145
4071
|
};
|
4146
4072
|
var resolveReferElement = function resolveReferElement() {
|
4147
4073
|
var _refReference$value;
|
4148
|
-
return
|
4074
|
+
return resolveTargetElement(props.target) || resolveTargetElement((_refReference$value = refReference.value) === null || _refReference$value === void 0 ? void 0 : _refReference$value.$el);
|
4149
4075
|
};
|
4150
4076
|
var resolveModifiers = function resolveModifiers() {
|
4151
4077
|
var resolveResult = {};
|
@@ -4218,12 +4144,12 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
4218
4144
|
// }
|
4219
4145
|
return options;
|
4220
4146
|
};
|
4221
|
-
var
|
4147
|
+
var resolveTargetElement = function resolveTargetElement(target) {
|
4222
4148
|
if (target instanceof HTMLElement) {
|
4223
4149
|
return target;
|
4224
4150
|
}
|
4225
4151
|
if (target instanceof Text) {
|
4226
|
-
return
|
4152
|
+
return resolveTargetElement(target.nextElementSibling);
|
4227
4153
|
}
|
4228
4154
|
if (typeof (target === null || target === void 0 ? void 0 : target.getBoundingClientRect) === 'function') {
|
4229
4155
|
return target;
|
@@ -4236,7 +4162,7 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
4236
4162
|
return null;
|
4237
4163
|
}
|
4238
4164
|
if (target instanceof PointerEvent) {
|
4239
|
-
return
|
4165
|
+
return resolveTargetElement(target.target);
|
4240
4166
|
}
|
4241
4167
|
return null;
|
4242
4168
|
};
|
@@ -4371,7 +4297,7 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
4371
4297
|
};
|
4372
4298
|
var handlePopoverShow = function handlePopoverShow() {
|
4373
4299
|
var _refContent$value2;
|
4374
|
-
var elContent =
|
4300
|
+
var elContent = resolveTargetElement((_refContent$value2 = refContent.value) === null || _refContent$value2 === void 0 ? void 0 : _refContent$value2.$el);
|
4375
4301
|
elContent.style.setProperty('display', 'block');
|
4376
4302
|
elContent.style.setProperty('z-index', "".concat(props.zIndex ? props.zIndex : shared_namespaceObject.bkZIndexManager.getPopperIndex()));
|
4377
4303
|
updatePopover();
|
@@ -4381,7 +4307,7 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
4381
4307
|
};
|
4382
4308
|
var handlePopoverHide = function handlePopoverHide() {
|
4383
4309
|
var _refContent$value3;
|
4384
|
-
var elContent =
|
4310
|
+
var elContent = resolveTargetElement((_refContent$value3 = refContent.value) === null || _refContent$value3 === void 0 ? void 0 : _refContent$value3.$el);
|
4385
4311
|
elContent.style.setProperty('display', 'none');
|
4386
4312
|
ctx.emit(EMIT_EVENTS.CONTENT_AfterHidden, {
|
4387
4313
|
isShow: false
|
@@ -4477,7 +4403,7 @@ function use_floating_objectSpread(e) { for (var r = 1; r < arguments.length; r+
|
|
4477
4403
|
triggerPopover: triggerPopover,
|
4478
4404
|
resolvePopElements: resolvePopElements,
|
4479
4405
|
isElementFullScreen: isElementFullScreen,
|
4480
|
-
resolveTargetElement:
|
4406
|
+
resolveTargetElement: resolveTargetElement,
|
4481
4407
|
createPopInstance: createPopInstance,
|
4482
4408
|
updateFullscreenTarget: updateFullscreenTarget,
|
4483
4409
|
getFullscreenRoot: getFullscreenRoot,
|
@@ -4734,8 +4660,8 @@ var parentNodeReferId = null;
|
|
4734
4660
|
root = _resolvePopElements3.root;
|
4735
4661
|
if (isFullscreen.value) {
|
4736
4662
|
var _fullScreenTarget$val;
|
4737
|
-
var
|
4738
|
-
parentNode =
|
4663
|
+
var _ref10 = elReference || root || {},
|
4664
|
+
parentNode = _ref10.parentNode;
|
4739
4665
|
boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
|
4740
4666
|
return;
|
4741
4667
|
}
|
@@ -4873,10 +4799,11 @@ var parentNodeReferId = null;
|
|
4873
4799
|
|
4874
4800
|
|
4875
4801
|
|
4802
|
+
|
4876
4803
|
function _isSlot(s) {
|
4877
4804
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
4878
4805
|
}
|
4879
|
-
/* harmony default export */ const popover = (defineComponent({
|
4806
|
+
/* harmony default export */ const popover = ((0,external_vue_namespaceObject.defineComponent)({
|
4880
4807
|
name: 'Popover',
|
4881
4808
|
components: {
|
4882
4809
|
Content: content,
|
@@ -4889,13 +4816,13 @@ function _isSlot(s) {
|
|
4889
4816
|
props: PopoverProps,
|
4890
4817
|
emits: EMIT_EVENT_TYPES,
|
4891
4818
|
setup: function setup(props, ctx) {
|
4892
|
-
var _toRefs = toRefs(props),
|
4819
|
+
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
4893
4820
|
reference = _toRefs.reference;
|
4894
|
-
var refDefaultReference = ref();
|
4895
|
-
var refContent = ref();
|
4896
|
-
var refArrow = ref();
|
4897
|
-
var refRoot = ref();
|
4898
|
-
var refReference = computed(function () {
|
4821
|
+
var refDefaultReference = (0,external_vue_namespaceObject.ref)();
|
4822
|
+
var refContent = (0,external_vue_namespaceObject.ref)();
|
4823
|
+
var refArrow = (0,external_vue_namespaceObject.ref)();
|
4824
|
+
var refRoot = (0,external_vue_namespaceObject.ref)();
|
4825
|
+
var refReference = (0,external_vue_namespaceObject.computed)(function () {
|
4899
4826
|
return reference.value || refDefaultReference.value;
|
4900
4827
|
});
|
4901
4828
|
var _usePopoverInit = use_popover_init(props, ctx, {
|
@@ -4921,7 +4848,7 @@ function _isSlot(s) {
|
|
4921
4848
|
boundary = _usePopoverInit.boundary,
|
4922
4849
|
uniqKey = _usePopoverInit.uniqKey;
|
4923
4850
|
if (!props.always && !props.disabled) {
|
4924
|
-
watch(function () {
|
4851
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
4925
4852
|
return props.isShow;
|
4926
4853
|
}, function () {
|
4927
4854
|
props.isShow ? showPopover() : hidePopover();
|
@@ -4929,7 +4856,7 @@ function _isSlot(s) {
|
|
4929
4856
|
immediate: true
|
4930
4857
|
});
|
4931
4858
|
}
|
4932
|
-
watch(function () {
|
4859
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
4933
4860
|
return [props.disabled];
|
4934
4861
|
}, function (val) {
|
4935
4862
|
if (val[0]) {
|
@@ -4939,15 +4866,15 @@ function _isSlot(s) {
|
|
4939
4866
|
}
|
4940
4867
|
});
|
4941
4868
|
updateBoundary();
|
4942
|
-
onMounted(onMountedFn);
|
4943
|
-
onBeforeUnmount(onUnmountedFn);
|
4944
|
-
var isRenderModeShow = computed(function () {
|
4869
|
+
(0,external_vue_namespaceObject.onMounted)(onMountedFn);
|
4870
|
+
(0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
|
4871
|
+
var isRenderModeShow = (0,external_vue_namespaceObject.computed)(function () {
|
4945
4872
|
return props.renderDirective === 'show';
|
4946
4873
|
});
|
4947
|
-
var transBoundary = computed(function () {
|
4874
|
+
var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
|
4948
4875
|
return isRenderModeShow.value || localIsShow.value && !props.disableTeleport;
|
4949
4876
|
});
|
4950
|
-
var contentIsShow = computed(function () {
|
4877
|
+
var contentIsShow = (0,external_vue_namespaceObject.computed)(function () {
|
4951
4878
|
if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
|
4952
4879
|
return true;
|
4953
4880
|
}
|
@@ -5013,7 +4940,7 @@ function _isSlot(s) {
|
|
5013
4940
|
_this$$slots4;
|
5014
4941
|
var renderReferSlot = function renderReferSlot(slot) {
|
5015
4942
|
var _slot$;
|
5016
|
-
if (Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
4943
|
+
if (external_vue_namespaceObject.Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
5017
4944
|
return (0,external_vue_namespaceObject.createVNode)("span", null, [slot]);
|
5018
4945
|
}
|
5019
4946
|
return slot;
|
@@ -5038,7 +4965,7 @@ function _isSlot(s) {
|
|
5038
4965
|
"default": function _default() {
|
5039
4966
|
return [_slot2];
|
5040
4967
|
}
|
5041
|
-
}), (0,external_vue_namespaceObject.createVNode)(Teleport, {
|
4968
|
+
}), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
|
5042
4969
|
"disabled": !_this.transBoundary,
|
5043
4970
|
"to": _this.boundary
|
5044
4971
|
}, {
|