@blueking/bk-user-selector 0.1.1-beta.1 → 0.1.1-beta.3
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/package.json +2 -1
- package/vue2/index.es.min.js +60 -163
- package/vue2/index.iife.min.js +88 -168
- package/vue2/index.umd.min.js +60 -163
- package/vue3/index.es.min.js +2 -3
- package/vue3/index.iife.min.js +60 -163
- package/vue3/index.umd.min.js +2 -3
package/vue2/index.iife.min.js
CHANGED
|
@@ -2655,7 +2655,30 @@ var lesscodeCustomComponentLibrary = function(exports) {
|
|
|
2655
2655
|
function onErrorCaptured(hook, target = currentInstance) {
|
|
2656
2656
|
injectHook("ec", hook, target);
|
|
2657
2657
|
}
|
|
2658
|
+
const DIRECTIVES = "directives";
|
|
2658
2659
|
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
2660
|
+
function resolveDirective(name) {
|
|
2661
|
+
return resolveAsset(DIRECTIVES, name);
|
|
2662
|
+
}
|
|
2663
|
+
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
2664
|
+
const instance = currentRenderingInstance || currentInstance;
|
|
2665
|
+
if (instance) {
|
|
2666
|
+
const Component = instance.type;
|
|
2667
|
+
const res = (
|
|
2668
|
+
// local registration
|
|
2669
|
+
// check instance[type] first which is resolved for options API
|
|
2670
|
+
resolve(instance[type] || Component[type], name) || // global registration
|
|
2671
|
+
resolve(instance.appContext[type], name)
|
|
2672
|
+
);
|
|
2673
|
+
if (!res && maybeSelfReference) {
|
|
2674
|
+
return Component;
|
|
2675
|
+
}
|
|
2676
|
+
return res;
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
function resolve(registry, name) {
|
|
2680
|
+
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize$1(camelize(name))]);
|
|
2681
|
+
}
|
|
2659
2682
|
function renderList(source, renderItem, cache, index) {
|
|
2660
2683
|
let ret;
|
|
2661
2684
|
const cached = cache;
|
|
@@ -7875,10 +7898,10 @@ var lesscodeCustomComponentLibrary = function(exports) {
|
|
|
7875
7898
|
var pending;
|
|
7876
7899
|
return function() {
|
|
7877
7900
|
if (!pending) {
|
|
7878
|
-
pending = new Promise(function(
|
|
7901
|
+
pending = new Promise(function(resolve2) {
|
|
7879
7902
|
Promise.resolve().then(function() {
|
|
7880
7903
|
pending = void 0;
|
|
7881
|
-
|
|
7904
|
+
resolve2(fn());
|
|
7882
7905
|
});
|
|
7883
7906
|
});
|
|
7884
7907
|
}
|
|
@@ -7993,9 +8016,9 @@ var lesscodeCustomComponentLibrary = function(exports) {
|
|
|
7993
8016
|
// Async and optimistically optimized update – it will not be executed if
|
|
7994
8017
|
// not necessary (debounced to run at most once-per-tick)
|
|
7995
8018
|
update: debounce$4(function() {
|
|
7996
|
-
return new Promise(function(
|
|
8019
|
+
return new Promise(function(resolve2) {
|
|
7997
8020
|
instance.forceUpdate();
|
|
7998
|
-
|
|
8021
|
+
resolve2(state);
|
|
7999
8022
|
});
|
|
8000
8023
|
}),
|
|
8001
8024
|
destroy: function destroy() {
|
|
@@ -12410,28 +12433,21 @@ ${$(r2)}`), n2;
|
|
|
12410
12433
|
mounted: function mounted(el, binding) {
|
|
12411
12434
|
if (binding.value) {
|
|
12412
12435
|
createInstance(el, binding);
|
|
12413
|
-
if (!binding.value.loading) {
|
|
12414
|
-
var _instance$vm;
|
|
12415
|
-
var instance = el[INSTANCE_KEY];
|
|
12416
|
-
if (instance !== null && instance !== void 0 && (_instance$vm = instance.vm) !== null && _instance$vm !== void 0 && (_instance$vm = _instance$vm.$el) !== null && _instance$vm !== void 0 && (_instance$vm = _instance$vm.parentNode) !== null && _instance$vm !== void 0 && _instance$vm.style) {
|
|
12417
|
-
instance.vm.$el.parentNode.style.display = "none";
|
|
12418
|
-
}
|
|
12419
|
-
}
|
|
12420
12436
|
}
|
|
12421
12437
|
},
|
|
12422
12438
|
updated: function updated(el, binding) {
|
|
12423
|
-
var _instance$
|
|
12439
|
+
var _instance$vm;
|
|
12424
12440
|
var instance = el[INSTANCE_KEY];
|
|
12425
12441
|
var value = binding.value;
|
|
12426
12442
|
updateOptions(value, instance.options);
|
|
12427
|
-
if (instance !== null && instance !== void 0 && (_instance$
|
|
12443
|
+
if (instance !== null && instance !== void 0 && (_instance$vm = instance.vm) !== null && _instance$vm !== void 0 && (_instance$vm = _instance$vm.$el) !== null && _instance$vm !== void 0 && (_instance$vm = _instance$vm.parentNode) !== null && _instance$vm !== void 0 && _instance$vm.style) {
|
|
12428
12444
|
instance.vm.$el.parentNode.style.display = value.loading ? "" : "none";
|
|
12429
12445
|
}
|
|
12430
12446
|
},
|
|
12431
12447
|
unmounted: function unmounted(el) {
|
|
12432
|
-
var _instance$
|
|
12448
|
+
var _instance$vm2, _instance$instance;
|
|
12433
12449
|
var instance = el[INSTANCE_KEY];
|
|
12434
|
-
el === null || el === void 0 || el.removeChild(instance === null || instance === void 0 || (_instance$
|
|
12450
|
+
el === null || el === void 0 || el.removeChild(instance === null || instance === void 0 || (_instance$vm2 = instance.vm) === null || _instance$vm2 === void 0 || (_instance$vm2 = _instance$vm2.$el) === null || _instance$vm2 === void 0 ? void 0 : _instance$vm2.parentNode);
|
|
12435
12451
|
instance === null || instance === void 0 || (_instance$instance = instance.instance) === null || _instance$instance === void 0 || _instance$instance.unmount();
|
|
12436
12452
|
el[INSTANCE_KEY] = null;
|
|
12437
12453
|
}
|
|
@@ -12897,7 +12913,7 @@ ${$(r2)}`), n2;
|
|
|
12897
12913
|
__webpack_require__$1.d(x3, y2);
|
|
12898
12914
|
return x3;
|
|
12899
12915
|
};
|
|
12900
|
-
const external_vue_namespaceObject2 = external_vue_x2({ ["Fragment"]: () => Fragment, ["Teleport"]: () => Teleport, ["Text"]: () => Text$1, ["computed"]: () => computed, ["createApp"]: () => createApp, ["createVNode"]: () => createVNode, ["defineComponent"]: () => defineComponent, ["h"]: () => h$1, ["isVNode"]: () => isVNode, ["mergeProps"]: () => mergeProps, ["nextTick"]: () => nextTick, ["onBeforeUnmount"]: () => onBeforeUnmount, ["onMounted"]: () => onMounted, ["reactive"]: () => reactive, ["ref"]: () => ref, ["render"]: () => render, ["toRefs"]: () => toRefs, ["watch"]: () => watch });
|
|
12916
|
+
const external_vue_namespaceObject2 = external_vue_x2({ ["Fragment"]: () => Fragment, ["Teleport"]: () => Teleport, ["Text"]: () => Text$1, ["computed"]: () => computed, ["createApp"]: () => createApp, ["createVNode"]: () => createVNode, ["defineComponent"]: () => defineComponent, ["h"]: () => h$1, ["isVNode"]: () => isVNode, ["mergeProps"]: () => mergeProps, ["nextTick"]: () => nextTick, ["onBeforeUnmount"]: () => onBeforeUnmount, ["onMounted"]: () => onMounted, ["reactive"]: () => reactive, ["ref"]: () => ref, ["render"]: () => render, ["resolveDirective"]: () => resolveDirective, ["toRefs"]: () => toRefs, ["watch"]: () => watch, ["withDirectives"]: () => withDirectives });
|
|
12901
12917
|
function _createForOfIteratorHelper(o2, allowArrayLike) {
|
|
12902
12918
|
var it = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"];
|
|
12903
12919
|
if (!it) {
|
|
@@ -13179,6 +13195,7 @@ ${$(r2)}`), n2;
|
|
|
13179
13195
|
var refContent = (0, external_vue_namespaceObject2.ref)(null);
|
|
13180
13196
|
var refTimer = (0, external_vue_namespaceObject2.ref)(null);
|
|
13181
13197
|
var handleClick = function handleClick2(evt) {
|
|
13198
|
+
evt.stopPropagation();
|
|
13182
13199
|
emit2("click", evt);
|
|
13183
13200
|
};
|
|
13184
13201
|
var resetPointerEvent = function resetPointerEvent2() {
|
|
@@ -13279,7 +13296,7 @@ ${$(r2)}`), n2;
|
|
|
13279
13296
|
/**
|
|
13280
13297
|
* 弹出内容绑定元素
|
|
13281
13298
|
*/
|
|
13282
|
-
boundary: shared_namespaceObject2.PropTypes.oneOfType([shared_namespaceObject2.PropTypes.string.def("parent"), shared_namespaceObject2.PropTypes.instanceOf(HTMLElement)])
|
|
13299
|
+
boundary: shared_namespaceObject2.PropTypes.oneOfType([shared_namespaceObject2.PropTypes.string.def("parent"), shared_namespaceObject2.PropTypes.instanceOf(HTMLElement)]),
|
|
13283
13300
|
zIndex: shared_namespaceObject2.PropTypes.number.def(void 0),
|
|
13284
13301
|
disableTeleport: shared_namespaceObject2.PropTypes.bool.def(false),
|
|
13285
13302
|
/**
|
|
@@ -15175,23 +15192,6 @@ ${$(r2)}`), n2;
|
|
|
15175
15192
|
}, {});
|
|
15176
15193
|
var contentClass = "".concat(customThemeCls);
|
|
15177
15194
|
var cleanup = null;
|
|
15178
|
-
var clearAllTimers = function clearAllTimers2() {
|
|
15179
|
-
if (popHideTimerId) {
|
|
15180
|
-
clearTimeout(popHideTimerId);
|
|
15181
|
-
popHideTimerId = void 0;
|
|
15182
|
-
}
|
|
15183
|
-
if (popShowTimerId) {
|
|
15184
|
-
clearTimeout(popShowTimerId);
|
|
15185
|
-
popShowTimerId = void 0;
|
|
15186
|
-
}
|
|
15187
|
-
};
|
|
15188
|
-
var wrappedCleanup = function wrappedCleanup2() {
|
|
15189
|
-
clearAllTimers();
|
|
15190
|
-
if (cleanup) {
|
|
15191
|
-
cleanup();
|
|
15192
|
-
cleanup = null;
|
|
15193
|
-
}
|
|
15194
|
-
};
|
|
15195
15195
|
var getRoundPixelVal = function getRoundPixelVal2(val) {
|
|
15196
15196
|
var dpr = window.devicePixelRatio || 1;
|
|
15197
15197
|
return Math.round(val * dpr) / dpr || 0;
|
|
@@ -15240,28 +15240,7 @@ ${$(r2)}`), n2;
|
|
|
15240
15240
|
}
|
|
15241
15241
|
};
|
|
15242
15242
|
var createPopInstance = function createPopInstance2() {
|
|
15243
|
-
var retryCount = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
15244
15243
|
var _resolvePopElements = resolvePopElements(), elReference = _resolvePopElements.elReference, elContent = _resolvePopElements.elContent;
|
|
15245
|
-
if (!elReference || !elContent) {
|
|
15246
|
-
if (retryCount >= 10) {
|
|
15247
|
-
console.warn("[Popover] Failed to create popover instance: elements not found after retries");
|
|
15248
|
-
return;
|
|
15249
|
-
}
|
|
15250
|
-
(0, external_vue_namespaceObject2.nextTick)(function() {
|
|
15251
|
-
createPopInstance2(retryCount + 1);
|
|
15252
|
-
});
|
|
15253
|
-
return;
|
|
15254
|
-
}
|
|
15255
|
-
if (!elReference.isConnected || !elContent.isConnected) {
|
|
15256
|
-
if (retryCount >= 10) {
|
|
15257
|
-
console.warn("[Popover] Failed to create popover instance: elements not connected to DOM after retries");
|
|
15258
|
-
return;
|
|
15259
|
-
}
|
|
15260
|
-
(0, external_vue_namespaceObject2.nextTick)(function() {
|
|
15261
|
-
createPopInstance2(retryCount + 1);
|
|
15262
|
-
});
|
|
15263
|
-
return;
|
|
15264
|
-
}
|
|
15265
15244
|
cleanup = autoUpdate(elReference, elContent, function() {
|
|
15266
15245
|
if (localIsShow.value) {
|
|
15267
15246
|
updatePopover(null, props);
|
|
@@ -15306,9 +15285,6 @@ ${$(r2)}`), n2;
|
|
|
15306
15285
|
var showPopover = function showPopover2() {
|
|
15307
15286
|
var delay = resolvePopoverDelay()[0];
|
|
15308
15287
|
popShowTimerId = setTimeout(function() {
|
|
15309
|
-
if (!refContent.value) {
|
|
15310
|
-
return;
|
|
15311
|
-
}
|
|
15312
15288
|
if (!props.disabled) {
|
|
15313
15289
|
localIsShow.value = true;
|
|
15314
15290
|
}
|
|
@@ -15317,9 +15293,6 @@ ${$(r2)}`), n2;
|
|
|
15317
15293
|
var hidePopover = function hidePopover2() {
|
|
15318
15294
|
var delay = resolvePopoverDelay()[1];
|
|
15319
15295
|
popHideTimerId = setTimeout(function() {
|
|
15320
|
-
if (!refContent.value) {
|
|
15321
|
-
return;
|
|
15322
|
-
}
|
|
15323
15296
|
popShowTimerId && clearTimeout(popShowTimerId);
|
|
15324
15297
|
localIsShow.value = false;
|
|
15325
15298
|
}, delay);
|
|
@@ -15327,30 +15300,20 @@ ${$(r2)}`), n2;
|
|
|
15327
15300
|
var handlePopoverShow = function handlePopoverShow2() {
|
|
15328
15301
|
var _refContent$value2;
|
|
15329
15302
|
var elContent = resolveTargetElement((_refContent$value2 = refContent.value) === null || _refContent$value2 === void 0 ? void 0 : _refContent$value2.$el);
|
|
15330
|
-
if (!elContent) {
|
|
15331
|
-
return;
|
|
15332
|
-
}
|
|
15333
15303
|
elContent.style.setProperty("display", "block");
|
|
15334
15304
|
elContent.style.setProperty("z-index", "".concat(props.zIndex ? props.zIndex : shared_namespaceObject2.bkZIndexManager.getPopperIndex()));
|
|
15335
15305
|
updatePopover();
|
|
15336
|
-
|
|
15337
|
-
|
|
15338
|
-
|
|
15339
|
-
});
|
|
15340
|
-
}
|
|
15306
|
+
ctx.emit(EMIT_EVENTS.CONTENT_AfterShow, {
|
|
15307
|
+
isShow: true
|
|
15308
|
+
});
|
|
15341
15309
|
};
|
|
15342
15310
|
var handlePopoverHide = function handlePopoverHide2() {
|
|
15343
15311
|
var _refContent$value3;
|
|
15344
15312
|
var elContent = resolveTargetElement((_refContent$value3 = refContent.value) === null || _refContent$value3 === void 0 ? void 0 : _refContent$value3.$el);
|
|
15345
|
-
if (!elContent) {
|
|
15346
|
-
return;
|
|
15347
|
-
}
|
|
15348
15313
|
elContent.style.setProperty("display", "none");
|
|
15349
|
-
|
|
15350
|
-
|
|
15351
|
-
|
|
15352
|
-
});
|
|
15353
|
-
}
|
|
15314
|
+
ctx.emit(EMIT_EVENTS.CONTENT_AfterHidden, {
|
|
15315
|
+
isShow: false
|
|
15316
|
+
});
|
|
15354
15317
|
};
|
|
15355
15318
|
var triggerPopover = function triggerPopover2() {
|
|
15356
15319
|
if (!localIsShow.value) {
|
|
@@ -15379,14 +15342,10 @@ ${$(r2)}`), n2;
|
|
|
15379
15342
|
emitPopContentMouseLeave(e);
|
|
15380
15343
|
};
|
|
15381
15344
|
var emitPopContentMouseEnter = function emitPopContentMouseEnter2(e) {
|
|
15382
|
-
|
|
15383
|
-
ctx.emit(EMIT_EVENTS.CONTENT_MOUSEENTER, e);
|
|
15384
|
-
}
|
|
15345
|
+
ctx.emit(EMIT_EVENTS.CONTENT_MOUSEENTER, e);
|
|
15385
15346
|
};
|
|
15386
15347
|
var emitPopContentMouseLeave = function emitPopContentMouseLeave2(e) {
|
|
15387
|
-
|
|
15388
|
-
ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE, e);
|
|
15389
|
-
}
|
|
15348
|
+
ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE, e);
|
|
15390
15349
|
};
|
|
15391
15350
|
var resolveTriggerEvents = function resolveTriggerEvents2() {
|
|
15392
15351
|
var _triggerEvents$props$;
|
|
@@ -15438,13 +15397,13 @@ ${$(r2)}`), n2;
|
|
|
15438
15397
|
getFullscreenRoot: getFullscreenRoot2,
|
|
15439
15398
|
stopHide,
|
|
15440
15399
|
localIsShow,
|
|
15441
|
-
cleanup
|
|
15400
|
+
cleanup
|
|
15442
15401
|
};
|
|
15443
15402
|
};
|
|
15444
|
-
var popContainerId2 =
|
|
15403
|
+
var popContainerId2 = null;
|
|
15404
|
+
var parentNodeReferId = null;
|
|
15445
15405
|
const use_popper_id = function(props) {
|
|
15446
15406
|
var prefix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "#";
|
|
15447
|
-
var parentNodeReferId = "id_".concat(esm_browser_v42());
|
|
15448
15407
|
var getPrefixId = function getPrefixId2(root3) {
|
|
15449
15408
|
var resolvedBoundary = null;
|
|
15450
15409
|
var resolveBoundary = function resolveBoundary2(fn) {
|
|
@@ -15453,7 +15412,8 @@ ${$(r2)}`), n2;
|
|
|
15453
15412
|
}
|
|
15454
15413
|
};
|
|
15455
15414
|
var resolveParentBoundary = function resolveParentBoundary2() {
|
|
15456
|
-
if (/^parent$/i.test(props.boundary)
|
|
15415
|
+
if (/^parent$/i.test(props.boundary)) {
|
|
15416
|
+
resolvedBoundary = "".concat(prefix).concat(popContainerId2);
|
|
15457
15417
|
var _ref = root3 || {}, parentNode = _ref.parentNode;
|
|
15458
15418
|
if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
|
|
15459
15419
|
parentNode.parentNode.setAttribute("data-pnode-id", parentNodeReferId);
|
|
@@ -15462,53 +15422,42 @@ ${$(r2)}`), n2;
|
|
|
15462
15422
|
}
|
|
15463
15423
|
};
|
|
15464
15424
|
var resolveCommonBoundary = function resolveCommonBoundary2() {
|
|
15465
|
-
if (
|
|
15466
|
-
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
|
|
15473
|
-
|
|
15474
|
-
|
|
15475
|
-
|
|
15476
|
-
|
|
15477
|
-
|
|
15478
|
-
resolvedBoundary = props.boundary;
|
|
15479
|
-
return;
|
|
15425
|
+
if (!/^body$/i.test(props.boundary)) {
|
|
15426
|
+
if (typeof props.boundary === "string") {
|
|
15427
|
+
if (!isAvailableId(props.boundary)) {
|
|
15428
|
+
resolvedBoundary = "body";
|
|
15429
|
+
return;
|
|
15430
|
+
}
|
|
15431
|
+
resolvedBoundary = props.boundary;
|
|
15432
|
+
return;
|
|
15433
|
+
}
|
|
15434
|
+
if (utils_isElement(props.boundary)) {
|
|
15435
|
+
resolvedBoundary = props.boundary;
|
|
15436
|
+
return;
|
|
15437
|
+
}
|
|
15480
15438
|
}
|
|
15481
15439
|
};
|
|
15482
15440
|
resolveBoundary(resolveParentBoundary);
|
|
15483
15441
|
resolveBoundary(resolveCommonBoundary);
|
|
15484
15442
|
resolveBoundary(function() {
|
|
15485
|
-
resolvedBoundary = "".concat(prefix).concat(popContainerId2);
|
|
15443
|
+
resolvedBoundary = typeof props.boundary === "string" ? props.boundary : "".concat(prefix).concat(popContainerId2);
|
|
15486
15444
|
});
|
|
15487
15445
|
return resolvedBoundary;
|
|
15488
15446
|
};
|
|
15489
|
-
if (!isAvailableId("#".concat(popContainerId2))) {
|
|
15447
|
+
if (popContainerId2 === null || !isAvailableId("#".concat(popContainerId2))) {
|
|
15448
|
+
popContainerId2 = "id_".concat(esm_browser_v42());
|
|
15490
15449
|
var popContainer = document.createElement("div");
|
|
15491
15450
|
popContainer.setAttribute("id", popContainerId2);
|
|
15492
15451
|
popContainer.setAttribute("data-popper-id", popContainerId2);
|
|
15493
15452
|
document.body.append(popContainer);
|
|
15494
15453
|
}
|
|
15495
|
-
|
|
15496
|
-
|
|
15497
|
-
|
|
15498
|
-
if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
|
|
15499
|
-
var attr = parentNode.parentNode.getAttribute("data-pnode-id");
|
|
15500
|
-
if (attr === parentNodeReferId) {
|
|
15501
|
-
parentNode.parentNode.removeAttribute("data-pnode-id");
|
|
15502
|
-
}
|
|
15503
|
-
}
|
|
15504
|
-
}
|
|
15505
|
-
};
|
|
15454
|
+
if (parentNodeReferId === null) {
|
|
15455
|
+
parentNodeReferId = "id_".concat(esm_browser_v42());
|
|
15456
|
+
}
|
|
15506
15457
|
return {
|
|
15507
15458
|
popContainerId: popContainerId2,
|
|
15508
15459
|
prefixId: getPrefixId(),
|
|
15509
|
-
getPrefixId
|
|
15510
|
-
parentNodeReferId,
|
|
15511
|
-
clearParentNodeId
|
|
15460
|
+
getPrefixId
|
|
15512
15461
|
};
|
|
15513
15462
|
};
|
|
15514
15463
|
const use_popover_init = function(props, ctx, _ref) {
|
|
@@ -15543,18 +15492,7 @@ ${$(r2)}`), n2;
|
|
|
15543
15492
|
}
|
|
15544
15493
|
};
|
|
15545
15494
|
var addEventToPopTargetEl = function addEventToPopTargetEl2() {
|
|
15546
|
-
var retryCount = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
15547
15495
|
var _resolvePopElements = resolvePopElements(), elReference = _resolvePopElements.elReference, elContent = _resolvePopElements.elContent;
|
|
15548
|
-
if (!elReference) {
|
|
15549
|
-
if (retryCount >= 10) {
|
|
15550
|
-
console.warn("[Popover] Failed to add events: reference element not found after retries");
|
|
15551
|
-
return;
|
|
15552
|
-
}
|
|
15553
|
-
(0, external_vue_namespaceObject2.nextTick)(function() {
|
|
15554
|
-
addEventToPopTargetEl2(retryCount + 1);
|
|
15555
|
-
});
|
|
15556
|
-
return;
|
|
15557
|
-
}
|
|
15558
15496
|
storeEvents = resolveTriggerEvents();
|
|
15559
15497
|
storeEvents.forEach(function(storeEvent) {
|
|
15560
15498
|
if (Array.isArray(storeEvent)) {
|
|
@@ -15562,16 +15500,11 @@ ${$(r2)}`), n2;
|
|
|
15562
15500
|
} else {
|
|
15563
15501
|
var content2 = storeEvent.content, reference3 = storeEvent.reference;
|
|
15564
15502
|
addEventToTargetEl(elReference, reference3);
|
|
15565
|
-
|
|
15566
|
-
addEventToTargetEl(elContent, content2);
|
|
15567
|
-
}
|
|
15503
|
+
addEventToTargetEl(elContent, content2);
|
|
15568
15504
|
}
|
|
15569
15505
|
});
|
|
15570
15506
|
};
|
|
15571
15507
|
var addEventToTargetEl = function addEventToTargetEl2(target, evets) {
|
|
15572
|
-
if (!target) {
|
|
15573
|
-
return;
|
|
15574
|
-
}
|
|
15575
15508
|
evets.forEach(function(_ref2) {
|
|
15576
15509
|
var _ref3 = _slicedToArray(_ref2, 2), event = _ref3[0], listener = _ref3[1];
|
|
15577
15510
|
if (event && typeof listener === "function") {
|
|
@@ -15623,14 +15556,12 @@ ${$(r2)}`), n2;
|
|
|
15623
15556
|
if (isFullscreen.value) {
|
|
15624
15557
|
var _fullScreenTarget$val;
|
|
15625
15558
|
var _ref10 = elReference || root3 || {}, parentNode = _ref10.parentNode;
|
|
15626
|
-
|
|
15627
|
-
boundary.value = fullscreenBoundary || "body";
|
|
15559
|
+
boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
|
|
15628
15560
|
return;
|
|
15629
15561
|
}
|
|
15630
|
-
|
|
15631
|
-
boundary.value = resolvedBoundary || "body";
|
|
15562
|
+
boundary.value = getPrefixId(root3 || elReference);
|
|
15632
15563
|
};
|
|
15633
|
-
var _usePopperId = use_popper_id(props, "#"), getPrefixId = _usePopperId.getPrefixId
|
|
15564
|
+
var _usePopperId = use_popper_id(props, "#"), getPrefixId = _usePopperId.getPrefixId;
|
|
15634
15565
|
var setFullscreenTag = function setFullscreenTag2() {
|
|
15635
15566
|
var _fullScreenTarget$val2;
|
|
15636
15567
|
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute("data-fllsrn-id", fullscreenReferId);
|
|
@@ -15642,7 +15573,7 @@ ${$(r2)}`), n2;
|
|
|
15642
15573
|
element === null || element === void 0 || element.removeAttribute("data-fllsrn-id");
|
|
15643
15574
|
});
|
|
15644
15575
|
};
|
|
15645
|
-
var boundary = (0, external_vue_namespaceObject2.ref)(
|
|
15576
|
+
var boundary = (0, external_vue_namespaceObject2.ref)();
|
|
15646
15577
|
var beforeInstanceUnmount = function beforeInstanceUnmount2() {
|
|
15647
15578
|
removeEventListener2();
|
|
15648
15579
|
};
|
|
@@ -15664,39 +15595,25 @@ ${$(r2)}`), n2;
|
|
|
15664
15595
|
if (props.disabled) {
|
|
15665
15596
|
return;
|
|
15666
15597
|
}
|
|
15598
|
+
initPopInstance();
|
|
15667
15599
|
if (isElementFullScreen()) {
|
|
15668
15600
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
|
15669
15601
|
var target = getFullscreenRoot2(query);
|
|
15670
15602
|
updateFullscreen(target);
|
|
15671
15603
|
}
|
|
15672
15604
|
updateBoundary();
|
|
15673
|
-
initPopInstance();
|
|
15674
15605
|
document.body.addEventListener("fullscreenchange", handleFullscreenChange);
|
|
15675
|
-
document.addEventListener("click", handleClickOutside);
|
|
15676
15606
|
};
|
|
15677
15607
|
var onUnmountedFn = function onUnmountedFn2() {
|
|
15678
15608
|
beforeInstanceUnmount();
|
|
15679
|
-
var _resolvePopElements4 = resolvePopElements(), root3 = _resolvePopElements4.root;
|
|
15680
|
-
clearParentNodeId(root3);
|
|
15681
15609
|
document.body.removeEventListener("fullscreenchange", handleFullscreenChange);
|
|
15682
|
-
document.removeEventListener("click", handleClickOutside);
|
|
15683
15610
|
};
|
|
15684
|
-
var
|
|
15685
|
-
var
|
|
15686
|
-
return (_refContent$value$$el = (_refContent$value = refContent.value) === null || _refContent$value === void 0 || (_refContent$value = _refContent$value.$el) === null || _refContent$value === void 0 || (_refContent$value$con = _refContent$value.contains) === null || _refContent$value$con === void 0 ? void 0 : _refContent$value$con.call(_refContent$value, target)) !== null && _refContent$value$$el !== void 0 ? _refContent$value$$el : false;
|
|
15687
|
-
};
|
|
15688
|
-
var handleClickOutside = function handleClickOutside2(e) {
|
|
15689
|
-
var target = e.target;
|
|
15690
|
-
if (isClickInside(target)) {
|
|
15691
|
-
e.preventDefault();
|
|
15692
|
-
e.stopPropagation();
|
|
15693
|
-
e.stopImmediatePropagation();
|
|
15694
|
-
return;
|
|
15695
|
-
}
|
|
15611
|
+
var handleClickOutside = function handleClickOutside2(_e) {
|
|
15612
|
+
var hideIgnoreReference = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
15696
15613
|
var commonFunc = function commonFunc2() {
|
|
15697
15614
|
ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
|
|
15698
15615
|
isShow: localIsShow.value,
|
|
15699
|
-
event:
|
|
15616
|
+
event: _e
|
|
15700
15617
|
});
|
|
15701
15618
|
var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === "manual";
|
|
15702
15619
|
if (!props.forceClickoutside && needExec) {
|
|
@@ -15706,7 +15623,7 @@ ${$(r2)}`), n2;
|
|
|
15706
15623
|
hideFn();
|
|
15707
15624
|
}
|
|
15708
15625
|
};
|
|
15709
|
-
if (
|
|
15626
|
+
if (hideIgnoreReference) {
|
|
15710
15627
|
setTimeout(function() {
|
|
15711
15628
|
if (ReferenceClickSharedState[uniqKey]) {
|
|
15712
15629
|
ReferenceClickSharedState[uniqKey] = false;
|
|
@@ -15767,7 +15684,7 @@ ${$(r2)}`), n2;
|
|
|
15767
15684
|
refContent,
|
|
15768
15685
|
refArrow,
|
|
15769
15686
|
refRoot
|
|
15770
|
-
}), onMountedFn = _usePopoverInit.onMountedFn, onUnmountedFn = _usePopoverInit.onUnmountedFn, beforeInstanceUnmount = _usePopoverInit.beforeInstanceUnmount, initPopInstance = _usePopoverInit.initPopInstance, showFn = _usePopoverInit.showFn, hideFn = _usePopoverInit.hideFn, showPopover = _usePopoverInit.showPopover, hidePopover = _usePopoverInit.hidePopover, updatePopover = _usePopoverInit.updatePopover, resetPopover = _usePopoverInit.resetPopover, stopHide = _usePopoverInit.stopHide, localIsShow = _usePopoverInit.localIsShow, boundary = _usePopoverInit.boundary, uniqKey = _usePopoverInit.uniqKey;
|
|
15687
|
+
}), onMountedFn = _usePopoverInit.onMountedFn, onUnmountedFn = _usePopoverInit.onUnmountedFn, handleClickOutside = _usePopoverInit.handleClickOutside, beforeInstanceUnmount = _usePopoverInit.beforeInstanceUnmount, updateBoundary = _usePopoverInit.updateBoundary, initPopInstance = _usePopoverInit.initPopInstance, showFn = _usePopoverInit.showFn, hideFn = _usePopoverInit.hideFn, showPopover = _usePopoverInit.showPopover, hidePopover = _usePopoverInit.hidePopover, updatePopover = _usePopoverInit.updatePopover, resetPopover = _usePopoverInit.resetPopover, stopHide = _usePopoverInit.stopHide, localIsShow = _usePopoverInit.localIsShow, boundary = _usePopoverInit.boundary, uniqKey = _usePopoverInit.uniqKey;
|
|
15771
15688
|
if (!props.always && !props.disabled) {
|
|
15772
15689
|
(0, external_vue_namespaceObject2.watch)(function() {
|
|
15773
15690
|
return props.isShow;
|
|
@@ -15786,6 +15703,7 @@ ${$(r2)}`), n2;
|
|
|
15786
15703
|
initPopInstance();
|
|
15787
15704
|
}
|
|
15788
15705
|
});
|
|
15706
|
+
updateBoundary();
|
|
15789
15707
|
(0, external_vue_namespaceObject2.onMounted)(onMountedFn);
|
|
15790
15708
|
(0, external_vue_namespaceObject2.onBeforeUnmount)(onUnmountedFn);
|
|
15791
15709
|
var isRenderModeShow = (0, external_vue_namespaceObject2.computed)(function() {
|
|
@@ -15832,6 +15750,7 @@ ${$(r2)}`), n2;
|
|
|
15832
15750
|
isRenderModeShow,
|
|
15833
15751
|
transBoundary,
|
|
15834
15752
|
handleClickContent,
|
|
15753
|
+
handleClickOutside,
|
|
15835
15754
|
updatePopover,
|
|
15836
15755
|
resetPopover,
|
|
15837
15756
|
hide: hide2,
|
|
@@ -15878,7 +15797,7 @@ ${$(r2)}`), n2;
|
|
|
15878
15797
|
"to": _this.boundary
|
|
15879
15798
|
}, {
|
|
15880
15799
|
"default": function _default2() {
|
|
15881
|
-
return [(0, external_vue_namespaceObject2.createVNode)(content, {
|
|
15800
|
+
return [(0, external_vue_namespaceObject2.withDirectives)((0, external_vue_namespaceObject2.createVNode)(content, {
|
|
15882
15801
|
"ref": "refContent",
|
|
15883
15802
|
"width": _this.width,
|
|
15884
15803
|
"height": _this.height,
|
|
@@ -15903,7 +15822,9 @@ ${$(r2)}`), n2;
|
|
|
15903
15822
|
}
|
|
15904
15823
|
}) : "";
|
|
15905
15824
|
}
|
|
15906
|
-
})
|
|
15825
|
+
}), [[(0, external_vue_namespaceObject2.resolveDirective)("clickoutside"), function(e) {
|
|
15826
|
+
return _this.handleClickOutside(e, _this.hideIgnoreReference);
|
|
15827
|
+
}]])];
|
|
15907
15828
|
}
|
|
15908
15829
|
})];
|
|
15909
15830
|
}
|
|
@@ -19026,7 +18947,7 @@ ${$(r2)}`), n2;
|
|
|
19026
18947
|
return `__jsonp_callback_${timestamp}_${random2}`;
|
|
19027
18948
|
};
|
|
19028
18949
|
const jsonpRequest = (requestUrl, options = {}) => {
|
|
19029
|
-
return new Promise((
|
|
18950
|
+
return new Promise((resolve2, reject) => {
|
|
19030
18951
|
const url = unref(requestUrl);
|
|
19031
18952
|
const { timeout = 1e3 * 60 * 2, params } = options;
|
|
19032
18953
|
const callbackName = generateCallbackName();
|
|
@@ -19046,7 +18967,7 @@ ${$(r2)}`), n2;
|
|
|
19046
18967
|
};
|
|
19047
18968
|
window[callbackName] = (data2) => {
|
|
19048
18969
|
cleanup();
|
|
19049
|
-
|
|
18970
|
+
resolve2(data2.data || data2);
|
|
19050
18971
|
};
|
|
19051
18972
|
timeoutId = setTimeout(() => {
|
|
19052
18973
|
cleanup();
|
|
@@ -19365,8 +19286,7 @@ ${$(r2)}`), n2;
|
|
|
19365
19286
|
"zh-CN": zhCN
|
|
19366
19287
|
};
|
|
19367
19288
|
const getPath = (obj, path, variables) => {
|
|
19368
|
-
const
|
|
19369
|
-
const pathStack = /^\w/.test(safePath) ? safePath.split(".") : [safePath];
|
|
19289
|
+
const pathStack = /^\w/.test(path) ? path.split(".") : [path];
|
|
19370
19290
|
const { length } = pathStack;
|
|
19371
19291
|
let target = obj;
|
|
19372
19292
|
let i2 = 0;
|
|
@@ -19639,7 +19559,7 @@ ${$(r2)}`), n2;
|
|
|
19639
19559
|
const debouncedSearch = debounce(performSearch, SEARCH_DEBOUNCE_DELAY);
|
|
19640
19560
|
const handleSearchInput = (value) => {
|
|
19641
19561
|
loading2.value = true;
|
|
19642
|
-
searchQuery.value =
|
|
19562
|
+
searchQuery.value = value.trim();
|
|
19643
19563
|
debouncedSearch(searchQuery.value);
|
|
19644
19564
|
};
|
|
19645
19565
|
const clearSearch = () => {
|