@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.
@@ -5740,28 +5740,21 @@ ${$(r2)}`), n2;
5740
5740
  mounted: function mounted(el, binding) {
5741
5741
  if (binding.value) {
5742
5742
  createInstance(el, binding);
5743
- if (!binding.value.loading) {
5744
- var _instance$vm;
5745
- var instance = el[INSTANCE_KEY];
5746
- 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) {
5747
- instance.vm.$el.parentNode.style.display = "none";
5748
- }
5749
- }
5750
5743
  }
5751
5744
  },
5752
5745
  updated: function updated(el, binding) {
5753
- var _instance$vm2;
5746
+ var _instance$vm;
5754
5747
  var instance = el[INSTANCE_KEY];
5755
5748
  var value = binding.value;
5756
5749
  updateOptions(value, instance.options);
5757
- if (instance !== null && instance !== void 0 && (_instance$vm2 = instance.vm) !== null && _instance$vm2 !== void 0 && (_instance$vm2 = _instance$vm2.$el) !== null && _instance$vm2 !== void 0 && (_instance$vm2 = _instance$vm2.parentNode) !== null && _instance$vm2 !== void 0 && _instance$vm2.style) {
5750
+ 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) {
5758
5751
  instance.vm.$el.parentNode.style.display = value.loading ? "" : "none";
5759
5752
  }
5760
5753
  },
5761
5754
  unmounted: function unmounted(el) {
5762
- var _instance$vm3, _instance$instance;
5755
+ var _instance$vm2, _instance$instance;
5763
5756
  var instance = el[INSTANCE_KEY];
5764
- el === null || el === void 0 || el.removeChild(instance === null || instance === void 0 || (_instance$vm3 = instance.vm) === null || _instance$vm3 === void 0 || (_instance$vm3 = _instance$vm3.$el) === null || _instance$vm3 === void 0 ? void 0 : _instance$vm3.parentNode);
5757
+ 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);
5765
5758
  instance === null || instance === void 0 || (_instance$instance = instance.instance) === null || _instance$instance === void 0 || _instance$instance.unmount();
5766
5759
  el[INSTANCE_KEY] = null;
5767
5760
  }
@@ -6227,7 +6220,7 @@ ${$(r2)}`), n2;
6227
6220
  __webpack_require__$1.d(x3, y2);
6228
6221
  return x3;
6229
6222
  };
6230
- const external_vue_namespaceObject2 = external_vue_x2({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.Teleport, ["Text"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.Text, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.render, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.watch });
6223
+ const external_vue_namespaceObject2 = external_vue_x2({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.Teleport, ["Text"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.Text, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.withDirectives });
6231
6224
  function _createForOfIteratorHelper(o2, allowArrayLike) {
6232
6225
  var it = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"];
6233
6226
  if (!it) {
@@ -6509,6 +6502,7 @@ ${$(r2)}`), n2;
6509
6502
  var refContent = (0, external_vue_namespaceObject2.ref)(null);
6510
6503
  var refTimer = (0, external_vue_namespaceObject2.ref)(null);
6511
6504
  var handleClick = function handleClick2(evt) {
6505
+ evt.stopPropagation();
6512
6506
  emit("click", evt);
6513
6507
  };
6514
6508
  var resetPointerEvent = function resetPointerEvent2() {
@@ -6609,7 +6603,7 @@ ${$(r2)}`), n2;
6609
6603
  /**
6610
6604
  * 弹出内容绑定元素
6611
6605
  */
6612
- boundary: shared_namespaceObject2.PropTypes.oneOfType([shared_namespaceObject2.PropTypes.string.def("parent"), shared_namespaceObject2.PropTypes.instanceOf(HTMLElement)]).def("body"),
6606
+ boundary: shared_namespaceObject2.PropTypes.oneOfType([shared_namespaceObject2.PropTypes.string.def("parent"), shared_namespaceObject2.PropTypes.instanceOf(HTMLElement)]),
6613
6607
  zIndex: shared_namespaceObject2.PropTypes.number.def(void 0),
6614
6608
  disableTeleport: shared_namespaceObject2.PropTypes.bool.def(false),
6615
6609
  /**
@@ -8505,23 +8499,6 @@ ${$(r2)}`), n2;
8505
8499
  }, {});
8506
8500
  var contentClass = "".concat(customThemeCls);
8507
8501
  var cleanup = null;
8508
- var clearAllTimers = function clearAllTimers2() {
8509
- if (popHideTimerId) {
8510
- clearTimeout(popHideTimerId);
8511
- popHideTimerId = void 0;
8512
- }
8513
- if (popShowTimerId) {
8514
- clearTimeout(popShowTimerId);
8515
- popShowTimerId = void 0;
8516
- }
8517
- };
8518
- var wrappedCleanup = function wrappedCleanup2() {
8519
- clearAllTimers();
8520
- if (cleanup) {
8521
- cleanup();
8522
- cleanup = null;
8523
- }
8524
- };
8525
8502
  var getRoundPixelVal = function getRoundPixelVal2(val) {
8526
8503
  var dpr = window.devicePixelRatio || 1;
8527
8504
  return Math.round(val * dpr) / dpr || 0;
@@ -8570,28 +8547,7 @@ ${$(r2)}`), n2;
8570
8547
  }
8571
8548
  };
8572
8549
  var createPopInstance = function createPopInstance2() {
8573
- var retryCount = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
8574
8550
  var _resolvePopElements = resolvePopElements(), elReference = _resolvePopElements.elReference, elContent = _resolvePopElements.elContent;
8575
- if (!elReference || !elContent) {
8576
- if (retryCount >= 10) {
8577
- console.warn("[Popover] Failed to create popover instance: elements not found after retries");
8578
- return;
8579
- }
8580
- (0, external_vue_namespaceObject2.nextTick)(function() {
8581
- createPopInstance2(retryCount + 1);
8582
- });
8583
- return;
8584
- }
8585
- if (!elReference.isConnected || !elContent.isConnected) {
8586
- if (retryCount >= 10) {
8587
- console.warn("[Popover] Failed to create popover instance: elements not connected to DOM after retries");
8588
- return;
8589
- }
8590
- (0, external_vue_namespaceObject2.nextTick)(function() {
8591
- createPopInstance2(retryCount + 1);
8592
- });
8593
- return;
8594
- }
8595
8551
  cleanup = autoUpdate(elReference, elContent, function() {
8596
8552
  if (localIsShow.value) {
8597
8553
  updatePopover(null, props);
@@ -8636,9 +8592,6 @@ ${$(r2)}`), n2;
8636
8592
  var showPopover = function showPopover2() {
8637
8593
  var delay = resolvePopoverDelay()[0];
8638
8594
  popShowTimerId = setTimeout(function() {
8639
- if (!refContent.value) {
8640
- return;
8641
- }
8642
8595
  if (!props.disabled) {
8643
8596
  localIsShow.value = true;
8644
8597
  }
@@ -8647,9 +8600,6 @@ ${$(r2)}`), n2;
8647
8600
  var hidePopover = function hidePopover2() {
8648
8601
  var delay = resolvePopoverDelay()[1];
8649
8602
  popHideTimerId = setTimeout(function() {
8650
- if (!refContent.value) {
8651
- return;
8652
- }
8653
8603
  popShowTimerId && clearTimeout(popShowTimerId);
8654
8604
  localIsShow.value = false;
8655
8605
  }, delay);
@@ -8657,30 +8607,20 @@ ${$(r2)}`), n2;
8657
8607
  var handlePopoverShow = function handlePopoverShow2() {
8658
8608
  var _refContent$value2;
8659
8609
  var elContent = resolveTargetElement((_refContent$value2 = refContent.value) === null || _refContent$value2 === void 0 ? void 0 : _refContent$value2.$el);
8660
- if (!elContent) {
8661
- return;
8662
- }
8663
8610
  elContent.style.setProperty("display", "block");
8664
8611
  elContent.style.setProperty("z-index", "".concat(props.zIndex ? props.zIndex : shared_namespaceObject2.bkZIndexManager.getPopperIndex()));
8665
8612
  updatePopover();
8666
- if (ctx !== null && ctx !== void 0 && ctx.emit) {
8667
- ctx.emit(EMIT_EVENTS.CONTENT_AfterShow, {
8668
- isShow: true
8669
- });
8670
- }
8613
+ ctx.emit(EMIT_EVENTS.CONTENT_AfterShow, {
8614
+ isShow: true
8615
+ });
8671
8616
  };
8672
8617
  var handlePopoverHide = function handlePopoverHide2() {
8673
8618
  var _refContent$value3;
8674
8619
  var elContent = resolveTargetElement((_refContent$value3 = refContent.value) === null || _refContent$value3 === void 0 ? void 0 : _refContent$value3.$el);
8675
- if (!elContent) {
8676
- return;
8677
- }
8678
8620
  elContent.style.setProperty("display", "none");
8679
- if (ctx !== null && ctx !== void 0 && ctx.emit) {
8680
- ctx.emit(EMIT_EVENTS.CONTENT_AfterHidden, {
8681
- isShow: false
8682
- });
8683
- }
8621
+ ctx.emit(EMIT_EVENTS.CONTENT_AfterHidden, {
8622
+ isShow: false
8623
+ });
8684
8624
  };
8685
8625
  var triggerPopover = function triggerPopover2() {
8686
8626
  if (!localIsShow.value) {
@@ -8709,14 +8649,10 @@ ${$(r2)}`), n2;
8709
8649
  emitPopContentMouseLeave(e);
8710
8650
  };
8711
8651
  var emitPopContentMouseEnter = function emitPopContentMouseEnter2(e) {
8712
- if (ctx !== null && ctx !== void 0 && ctx.emit) {
8713
- ctx.emit(EMIT_EVENTS.CONTENT_MOUSEENTER, e);
8714
- }
8652
+ ctx.emit(EMIT_EVENTS.CONTENT_MOUSEENTER, e);
8715
8653
  };
8716
8654
  var emitPopContentMouseLeave = function emitPopContentMouseLeave2(e) {
8717
- if (ctx !== null && ctx !== void 0 && ctx.emit) {
8718
- ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE, e);
8719
- }
8655
+ ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE, e);
8720
8656
  };
8721
8657
  var resolveTriggerEvents = function resolveTriggerEvents2() {
8722
8658
  var _triggerEvents$props$;
@@ -8768,13 +8704,13 @@ ${$(r2)}`), n2;
8768
8704
  getFullscreenRoot: getFullscreenRoot2,
8769
8705
  stopHide,
8770
8706
  localIsShow,
8771
- cleanup: wrappedCleanup
8707
+ cleanup
8772
8708
  };
8773
8709
  };
8774
- var popContainerId2 = "id_".concat(esm_browser_v42());
8710
+ var popContainerId2 = null;
8711
+ var parentNodeReferId = null;
8775
8712
  const use_popper_id = function(props) {
8776
8713
  var prefix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "#";
8777
- var parentNodeReferId = "id_".concat(esm_browser_v42());
8778
8714
  var getPrefixId = function getPrefixId2(root3) {
8779
8715
  var resolvedBoundary = null;
8780
8716
  var resolveBoundary = function resolveBoundary2(fn) {
@@ -8783,7 +8719,8 @@ ${$(r2)}`), n2;
8783
8719
  }
8784
8720
  };
8785
8721
  var resolveParentBoundary = function resolveParentBoundary2() {
8786
- if (/^parent$/i.test(props.boundary) || !props.boundary) {
8722
+ if (/^parent$/i.test(props.boundary)) {
8723
+ resolvedBoundary = "".concat(prefix).concat(popContainerId2);
8787
8724
  var _ref = root3 || {}, parentNode = _ref.parentNode;
8788
8725
  if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
8789
8726
  parentNode.parentNode.setAttribute("data-pnode-id", parentNodeReferId);
@@ -8792,53 +8729,42 @@ ${$(r2)}`), n2;
8792
8729
  }
8793
8730
  };
8794
8731
  var resolveCommonBoundary = function resolveCommonBoundary2() {
8795
- if (typeof props.boundary === "string" && /^body$/i.test(props.boundary)) {
8796
- resolvedBoundary = "".concat(prefix).concat(popContainerId2);
8797
- return;
8798
- }
8799
- if (props.boundary === document.body) {
8800
- resolvedBoundary = "".concat(prefix).concat(popContainerId2);
8801
- return;
8802
- }
8803
- if (typeof props.boundary === "string") {
8804
- resolvedBoundary = props.boundary;
8805
- return;
8806
- }
8807
- if (utils_isElement(props.boundary)) {
8808
- resolvedBoundary = props.boundary;
8809
- return;
8732
+ if (!/^body$/i.test(props.boundary)) {
8733
+ if (typeof props.boundary === "string") {
8734
+ if (!isAvailableId(props.boundary)) {
8735
+ resolvedBoundary = "body";
8736
+ return;
8737
+ }
8738
+ resolvedBoundary = props.boundary;
8739
+ return;
8740
+ }
8741
+ if (utils_isElement(props.boundary)) {
8742
+ resolvedBoundary = props.boundary;
8743
+ return;
8744
+ }
8810
8745
  }
8811
8746
  };
8812
8747
  resolveBoundary(resolveParentBoundary);
8813
8748
  resolveBoundary(resolveCommonBoundary);
8814
8749
  resolveBoundary(function() {
8815
- resolvedBoundary = "".concat(prefix).concat(popContainerId2);
8750
+ resolvedBoundary = typeof props.boundary === "string" ? props.boundary : "".concat(prefix).concat(popContainerId2);
8816
8751
  });
8817
8752
  return resolvedBoundary;
8818
8753
  };
8819
- if (!isAvailableId("#".concat(popContainerId2))) {
8754
+ if (popContainerId2 === null || !isAvailableId("#".concat(popContainerId2))) {
8755
+ popContainerId2 = "id_".concat(esm_browser_v42());
8820
8756
  var popContainer = document.createElement("div");
8821
8757
  popContainer.setAttribute("id", popContainerId2);
8822
8758
  popContainer.setAttribute("data-popper-id", popContainerId2);
8823
8759
  document.body.append(popContainer);
8824
8760
  }
8825
- var clearParentNodeId = function clearParentNodeId2(root3) {
8826
- if (/^parent$/i.test(props.boundary)) {
8827
- var _ref2 = root3 || {}, parentNode = _ref2.parentNode;
8828
- if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
8829
- var attr = parentNode.parentNode.getAttribute("data-pnode-id");
8830
- if (attr === parentNodeReferId) {
8831
- parentNode.parentNode.removeAttribute("data-pnode-id");
8832
- }
8833
- }
8834
- }
8835
- };
8761
+ if (parentNodeReferId === null) {
8762
+ parentNodeReferId = "id_".concat(esm_browser_v42());
8763
+ }
8836
8764
  return {
8837
8765
  popContainerId: popContainerId2,
8838
8766
  prefixId: getPrefixId(),
8839
- getPrefixId,
8840
- parentNodeReferId,
8841
- clearParentNodeId
8767
+ getPrefixId
8842
8768
  };
8843
8769
  };
8844
8770
  const use_popover_init = function(props, ctx, _ref) {
@@ -8873,18 +8799,7 @@ ${$(r2)}`), n2;
8873
8799
  }
8874
8800
  };
8875
8801
  var addEventToPopTargetEl = function addEventToPopTargetEl2() {
8876
- var retryCount = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
8877
8802
  var _resolvePopElements = resolvePopElements(), elReference = _resolvePopElements.elReference, elContent = _resolvePopElements.elContent;
8878
- if (!elReference) {
8879
- if (retryCount >= 10) {
8880
- console.warn("[Popover] Failed to add events: reference element not found after retries");
8881
- return;
8882
- }
8883
- (0, external_vue_namespaceObject2.nextTick)(function() {
8884
- addEventToPopTargetEl2(retryCount + 1);
8885
- });
8886
- return;
8887
- }
8888
8803
  storeEvents = resolveTriggerEvents();
8889
8804
  storeEvents.forEach(function(storeEvent) {
8890
8805
  if (Array.isArray(storeEvent)) {
@@ -8892,16 +8807,11 @@ ${$(r2)}`), n2;
8892
8807
  } else {
8893
8808
  var content2 = storeEvent.content, reference3 = storeEvent.reference;
8894
8809
  addEventToTargetEl(elReference, reference3);
8895
- if (elContent) {
8896
- addEventToTargetEl(elContent, content2);
8897
- }
8810
+ addEventToTargetEl(elContent, content2);
8898
8811
  }
8899
8812
  });
8900
8813
  };
8901
8814
  var addEventToTargetEl = function addEventToTargetEl2(target, evets) {
8902
- if (!target) {
8903
- return;
8904
- }
8905
8815
  evets.forEach(function(_ref2) {
8906
8816
  var _ref3 = _slicedToArray(_ref2, 2), event = _ref3[0], listener = _ref3[1];
8907
8817
  if (event && typeof listener === "function") {
@@ -8953,14 +8863,12 @@ ${$(r2)}`), n2;
8953
8863
  if (isFullscreen.value) {
8954
8864
  var _fullScreenTarget$val;
8955
8865
  var _ref10 = elReference || root3 || {}, parentNode = _ref10.parentNode;
8956
- var fullscreenBoundary = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
8957
- boundary.value = fullscreenBoundary || "body";
8866
+ boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
8958
8867
  return;
8959
8868
  }
8960
- var resolvedBoundary = getPrefixId(root3 || elReference);
8961
- boundary.value = resolvedBoundary || "body";
8869
+ boundary.value = getPrefixId(root3 || elReference);
8962
8870
  };
8963
- var _usePopperId = use_popper_id(props, "#"), getPrefixId = _usePopperId.getPrefixId, clearParentNodeId = _usePopperId.clearParentNodeId;
8871
+ var _usePopperId = use_popper_id(props, "#"), getPrefixId = _usePopperId.getPrefixId;
8964
8872
  var setFullscreenTag = function setFullscreenTag2() {
8965
8873
  var _fullScreenTarget$val2;
8966
8874
  fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute("data-fllsrn-id", fullscreenReferId);
@@ -8972,7 +8880,7 @@ ${$(r2)}`), n2;
8972
8880
  element === null || element === void 0 || element.removeAttribute("data-fllsrn-id");
8973
8881
  });
8974
8882
  };
8975
- var boundary = (0, external_vue_namespaceObject2.ref)("body");
8883
+ var boundary = (0, external_vue_namespaceObject2.ref)();
8976
8884
  var beforeInstanceUnmount = function beforeInstanceUnmount2() {
8977
8885
  removeEventListener();
8978
8886
  };
@@ -8994,39 +8902,25 @@ ${$(r2)}`), n2;
8994
8902
  if (props.disabled) {
8995
8903
  return;
8996
8904
  }
8905
+ initPopInstance();
8997
8906
  if (isElementFullScreen()) {
8998
8907
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
8999
8908
  var target = getFullscreenRoot2(query);
9000
8909
  updateFullscreen(target);
9001
8910
  }
9002
8911
  updateBoundary();
9003
- initPopInstance();
9004
8912
  document.body.addEventListener("fullscreenchange", handleFullscreenChange);
9005
- document.addEventListener("click", handleClickOutside);
9006
8913
  };
9007
8914
  var onUnmountedFn = function onUnmountedFn2() {
9008
8915
  beforeInstanceUnmount();
9009
- var _resolvePopElements4 = resolvePopElements(), root3 = _resolvePopElements4.root;
9010
- clearParentNodeId(root3);
9011
8916
  document.body.removeEventListener("fullscreenchange", handleFullscreenChange);
9012
- document.removeEventListener("click", handleClickOutside);
9013
- };
9014
- var isClickInside = function isClickInside2(target) {
9015
- var _refContent$value$$el, _refContent$value, _refContent$value$con;
9016
- 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;
9017
- };
9018
- var handleClickOutside = function handleClickOutside2(e) {
9019
- var target = e.target;
9020
- if (isClickInside(target)) {
9021
- e.preventDefault();
9022
- e.stopPropagation();
9023
- e.stopImmediatePropagation();
9024
- return;
9025
- }
8917
+ };
8918
+ var handleClickOutside = function handleClickOutside2(_e) {
8919
+ var hideIgnoreReference = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
9026
8920
  var commonFunc = function commonFunc2() {
9027
8921
  ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
9028
8922
  isShow: localIsShow.value,
9029
- event: e
8923
+ event: _e
9030
8924
  });
9031
8925
  var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === "manual";
9032
8926
  if (!props.forceClickoutside && needExec) {
@@ -9036,7 +8930,7 @@ ${$(r2)}`), n2;
9036
8930
  hideFn();
9037
8931
  }
9038
8932
  };
9039
- if (props.hideIgnoreReference) {
8933
+ if (hideIgnoreReference) {
9040
8934
  setTimeout(function() {
9041
8935
  if (ReferenceClickSharedState[uniqKey]) {
9042
8936
  ReferenceClickSharedState[uniqKey] = false;
@@ -9097,7 +8991,7 @@ ${$(r2)}`), n2;
9097
8991
  refContent,
9098
8992
  refArrow,
9099
8993
  refRoot
9100
- }), 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;
8994
+ }), 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;
9101
8995
  if (!props.always && !props.disabled) {
9102
8996
  (0, external_vue_namespaceObject2.watch)(function() {
9103
8997
  return props.isShow;
@@ -9116,6 +9010,7 @@ ${$(r2)}`), n2;
9116
9010
  initPopInstance();
9117
9011
  }
9118
9012
  });
9013
+ updateBoundary();
9119
9014
  (0, external_vue_namespaceObject2.onMounted)(onMountedFn);
9120
9015
  (0, external_vue_namespaceObject2.onBeforeUnmount)(onUnmountedFn);
9121
9016
  var isRenderModeShow = (0, external_vue_namespaceObject2.computed)(function() {
@@ -9162,6 +9057,7 @@ ${$(r2)}`), n2;
9162
9057
  isRenderModeShow,
9163
9058
  transBoundary,
9164
9059
  handleClickContent,
9060
+ handleClickOutside,
9165
9061
  updatePopover,
9166
9062
  resetPopover,
9167
9063
  hide: hide2,
@@ -9208,7 +9104,7 @@ ${$(r2)}`), n2;
9208
9104
  "to": _this.boundary
9209
9105
  }, {
9210
9106
  "default": function _default2() {
9211
- return [(0, external_vue_namespaceObject2.createVNode)(content, {
9107
+ return [(0, external_vue_namespaceObject2.withDirectives)((0, external_vue_namespaceObject2.createVNode)(content, {
9212
9108
  "ref": "refContent",
9213
9109
  "width": _this.width,
9214
9110
  "height": _this.height,
@@ -9233,7 +9129,9 @@ ${$(r2)}`), n2;
9233
9129
  }
9234
9130
  }) : "";
9235
9131
  }
9236
- })];
9132
+ }), [[(0, external_vue_namespaceObject2.resolveDirective)("clickoutside"), function(e) {
9133
+ return _this.handleClickOutside(e, _this.hideIgnoreReference);
9134
+ }]])];
9237
9135
  }
9238
9136
  })];
9239
9137
  }
@@ -12695,8 +12593,7 @@ ${$(r2)}`), n2;
12695
12593
  "zh-CN": zhCN
12696
12594
  };
12697
12595
  const getPath = (obj, path, variables) => {
12698
- const safePath = typeof path === "string" ? path : String(path ?? "");
12699
- const pathStack = /^\w/.test(safePath) ? safePath.split(".") : [safePath];
12596
+ const pathStack = /^\w/.test(path) ? path.split(".") : [path];
12700
12597
  const { length } = pathStack;
12701
12598
  let target = obj;
12702
12599
  let i2 = 0;
@@ -12969,7 +12866,7 @@ ${$(r2)}`), n2;
12969
12866
  const debouncedSearch = debounce(performSearch, SEARCH_DEBOUNCE_DELAY);
12970
12867
  const handleSearchInput = (value) => {
12971
12868
  loading2.value = true;
12972
- searchQuery.value = typeof value === "string" ? value.trim() : String(value ?? "").trim();
12869
+ searchQuery.value = value.trim();
12973
12870
  debouncedSearch(searchQuery.value);
12974
12871
  };
12975
12872
  const clearSearch = () => {
@@ -3126,8 +3126,7 @@ const languageMap = {
3126
3126
  "zh-CN": zhCN
3127
3127
  };
3128
3128
  const getPath = (obj, path, variables) => {
3129
- const safePath = typeof path === "string" ? path : String(path ?? "");
3130
- const pathStack = /^\w/.test(safePath) ? safePath.split(".") : [safePath];
3129
+ const pathStack = /^\w/.test(path) ? path.split(".") : [path];
3131
3130
  const { length } = pathStack;
3132
3131
  let target = obj;
3133
3132
  let i = 0;
@@ -3400,7 +3399,7 @@ const useUserSearch = (apiBaseUrl, tenantId, enableMultiTenantMode = true) => {
3400
3399
  const debouncedSearch = debounce(performSearch, SEARCH_DEBOUNCE_DELAY);
3401
3400
  const handleSearchInput = (value) => {
3402
3401
  loading.value = true;
3403
- searchQuery.value = typeof value === "string" ? value.trim() : String(value ?? "").trim();
3402
+ searchQuery.value = value.trim();
3404
3403
  debouncedSearch(searchQuery.value);
3405
3404
  };
3406
3405
  const clearSearch = () => {