@blueking/date-picker 3.0.5 → 3.0.7

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.
@@ -8601,28 +8601,21 @@ ${$(r2)}`), n2;
8601
8601
  mounted: function mounted(el, binding) {
8602
8602
  if (binding.value) {
8603
8603
  createInstance(el, binding);
8604
- if (!binding.value.loading) {
8605
- var _instance$vm;
8606
- var instance2 = el[INSTANCE_KEY];
8607
- if (instance2 !== null && instance2 !== void 0 && (_instance$vm = instance2.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) {
8608
- instance2.vm.$el.parentNode.style.display = "none";
8609
- }
8610
- }
8611
8604
  }
8612
8605
  },
8613
8606
  updated: function updated(el, binding) {
8614
- var _instance$vm2;
8607
+ var _instance$vm;
8615
8608
  var instance2 = el[INSTANCE_KEY];
8616
8609
  var value = binding.value;
8617
8610
  updateOptions(value, instance2.options);
8618
- if (instance2 !== null && instance2 !== void 0 && (_instance$vm2 = instance2.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) {
8611
+ if (instance2 !== null && instance2 !== void 0 && (_instance$vm = instance2.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) {
8619
8612
  instance2.vm.$el.parentNode.style.display = value.loading ? "" : "none";
8620
8613
  }
8621
8614
  },
8622
8615
  unmounted: function unmounted(el) {
8623
- var _instance$vm3, _instance$instance;
8616
+ var _instance$vm2, _instance$instance;
8624
8617
  var instance2 = el[INSTANCE_KEY];
8625
- el === null || el === void 0 || el.removeChild(instance2 === null || instance2 === void 0 || (_instance$vm3 = instance2.vm) === null || _instance$vm3 === void 0 || (_instance$vm3 = _instance$vm3.$el) === null || _instance$vm3 === void 0 ? void 0 : _instance$vm3.parentNode);
8618
+ el === null || el === void 0 || el.removeChild(instance2 === null || instance2 === void 0 || (_instance$vm2 = instance2.vm) === null || _instance$vm2 === void 0 || (_instance$vm2 = _instance$vm2.$el) === null || _instance$vm2 === void 0 ? void 0 : _instance$vm2.parentNode);
8626
8619
  instance2 === null || instance2 === void 0 || (_instance$instance = instance2.instance) === null || _instance$instance === void 0 || _instance$instance.unmount();
8627
8620
  el[INSTANCE_KEY] = null;
8628
8621
  }
@@ -9537,7 +9530,7 @@ ${$(r2)}`), n2;
9537
9530
  __webpack_require__$a.d(x3, y2);
9538
9531
  return x3;
9539
9532
  };
9540
- 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 });
9533
+ 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 });
9541
9534
  function _createForOfIteratorHelper(o2, allowArrayLike) {
9542
9535
  var it = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"];
9543
9536
  if (!it) {
@@ -9819,6 +9812,7 @@ ${$(r2)}`), n2;
9819
9812
  var refContent = (0, external_vue_namespaceObject2.ref)(null);
9820
9813
  var refTimer = (0, external_vue_namespaceObject2.ref)(null);
9821
9814
  var handleClick = function handleClick2(evt) {
9815
+ evt.stopPropagation();
9822
9816
  emit("click", evt);
9823
9817
  };
9824
9818
  var resetPointerEvent = function resetPointerEvent2() {
@@ -9919,7 +9913,7 @@ ${$(r2)}`), n2;
9919
9913
  /**
9920
9914
  * 弹出内容绑定元素
9921
9915
  */
9922
- boundary: shared_namespaceObject2.PropTypes.oneOfType([shared_namespaceObject2.PropTypes.string.def("parent"), shared_namespaceObject2.PropTypes.instanceOf(HTMLElement)]).def("body"),
9916
+ boundary: shared_namespaceObject2.PropTypes.oneOfType([shared_namespaceObject2.PropTypes.string.def("parent"), shared_namespaceObject2.PropTypes.instanceOf(HTMLElement)]),
9923
9917
  zIndex: shared_namespaceObject2.PropTypes.number.def(void 0),
9924
9918
  disableTeleport: shared_namespaceObject2.PropTypes.bool.def(false),
9925
9919
  /**
@@ -11815,23 +11809,6 @@ ${$(r2)}`), n2;
11815
11809
  }, {});
11816
11810
  var contentClass = "".concat(customThemeCls);
11817
11811
  var cleanup = null;
11818
- var clearAllTimers = function clearAllTimers2() {
11819
- if (popHideTimerId) {
11820
- clearTimeout(popHideTimerId);
11821
- popHideTimerId = void 0;
11822
- }
11823
- if (popShowTimerId) {
11824
- clearTimeout(popShowTimerId);
11825
- popShowTimerId = void 0;
11826
- }
11827
- };
11828
- var wrappedCleanup = function wrappedCleanup2() {
11829
- clearAllTimers();
11830
- if (cleanup) {
11831
- cleanup();
11832
- cleanup = null;
11833
- }
11834
- };
11835
11812
  var getRoundPixelVal = function getRoundPixelVal2(val) {
11836
11813
  var dpr = window.devicePixelRatio || 1;
11837
11814
  return Math.round(val * dpr) / dpr || 0;
@@ -11880,28 +11857,7 @@ ${$(r2)}`), n2;
11880
11857
  }
11881
11858
  };
11882
11859
  var createPopInstance = function createPopInstance2() {
11883
- var retryCount = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
11884
11860
  var _resolvePopElements = resolvePopElements(), elReference = _resolvePopElements.elReference, elContent = _resolvePopElements.elContent;
11885
- if (!elReference || !elContent) {
11886
- if (retryCount >= 10) {
11887
- console.warn("[Popover] Failed to create popover instance: elements not found after retries");
11888
- return;
11889
- }
11890
- (0, external_vue_namespaceObject2.nextTick)(function() {
11891
- createPopInstance2(retryCount + 1);
11892
- });
11893
- return;
11894
- }
11895
- if (!elReference.isConnected || !elContent.isConnected) {
11896
- if (retryCount >= 10) {
11897
- console.warn("[Popover] Failed to create popover instance: elements not connected to DOM after retries");
11898
- return;
11899
- }
11900
- (0, external_vue_namespaceObject2.nextTick)(function() {
11901
- createPopInstance2(retryCount + 1);
11902
- });
11903
- return;
11904
- }
11905
11861
  cleanup = autoUpdate(elReference, elContent, function() {
11906
11862
  if (localIsShow.value) {
11907
11863
  updatePopover(null, props2);
@@ -11946,9 +11902,6 @@ ${$(r2)}`), n2;
11946
11902
  var showPopover = function showPopover2() {
11947
11903
  var delay = resolvePopoverDelay()[0];
11948
11904
  popShowTimerId = setTimeout(function() {
11949
- if (!refContent.value) {
11950
- return;
11951
- }
11952
11905
  if (!props2.disabled) {
11953
11906
  localIsShow.value = true;
11954
11907
  }
@@ -11957,9 +11910,6 @@ ${$(r2)}`), n2;
11957
11910
  var hidePopover = function hidePopover2() {
11958
11911
  var delay = resolvePopoverDelay()[1];
11959
11912
  popHideTimerId = setTimeout(function() {
11960
- if (!refContent.value) {
11961
- return;
11962
- }
11963
11913
  popShowTimerId && clearTimeout(popShowTimerId);
11964
11914
  localIsShow.value = false;
11965
11915
  }, delay);
@@ -11967,30 +11917,20 @@ ${$(r2)}`), n2;
11967
11917
  var handlePopoverShow = function handlePopoverShow2() {
11968
11918
  var _refContent$value2;
11969
11919
  var elContent = resolveTargetElement((_refContent$value2 = refContent.value) === null || _refContent$value2 === void 0 ? void 0 : _refContent$value2.$el);
11970
- if (!elContent) {
11971
- return;
11972
- }
11973
11920
  elContent.style.setProperty("display", "block");
11974
11921
  elContent.style.setProperty("z-index", "".concat(props2.zIndex ? props2.zIndex : shared_namespaceObject2.bkZIndexManager.getPopperIndex()));
11975
11922
  updatePopover();
11976
- if (ctx !== null && ctx !== void 0 && ctx.emit) {
11977
- ctx.emit(EMIT_EVENTS.CONTENT_AfterShow, {
11978
- isShow: true
11979
- });
11980
- }
11923
+ ctx.emit(EMIT_EVENTS.CONTENT_AfterShow, {
11924
+ isShow: true
11925
+ });
11981
11926
  };
11982
11927
  var handlePopoverHide = function handlePopoverHide2() {
11983
11928
  var _refContent$value3;
11984
11929
  var elContent = resolveTargetElement((_refContent$value3 = refContent.value) === null || _refContent$value3 === void 0 ? void 0 : _refContent$value3.$el);
11985
- if (!elContent) {
11986
- return;
11987
- }
11988
11930
  elContent.style.setProperty("display", "none");
11989
- if (ctx !== null && ctx !== void 0 && ctx.emit) {
11990
- ctx.emit(EMIT_EVENTS.CONTENT_AfterHidden, {
11991
- isShow: false
11992
- });
11993
- }
11931
+ ctx.emit(EMIT_EVENTS.CONTENT_AfterHidden, {
11932
+ isShow: false
11933
+ });
11994
11934
  };
11995
11935
  var triggerPopover = function triggerPopover2() {
11996
11936
  if (!localIsShow.value) {
@@ -12019,14 +11959,10 @@ ${$(r2)}`), n2;
12019
11959
  emitPopContentMouseLeave(e);
12020
11960
  };
12021
11961
  var emitPopContentMouseEnter = function emitPopContentMouseEnter2(e) {
12022
- if (ctx !== null && ctx !== void 0 && ctx.emit) {
12023
- ctx.emit(EMIT_EVENTS.CONTENT_MOUSEENTER, e);
12024
- }
11962
+ ctx.emit(EMIT_EVENTS.CONTENT_MOUSEENTER, e);
12025
11963
  };
12026
11964
  var emitPopContentMouseLeave = function emitPopContentMouseLeave2(e) {
12027
- if (ctx !== null && ctx !== void 0 && ctx.emit) {
12028
- ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE, e);
12029
- }
11965
+ ctx.emit(EMIT_EVENTS.CONTENT_MOUSELEAVE, e);
12030
11966
  };
12031
11967
  var resolveTriggerEvents = function resolveTriggerEvents2() {
12032
11968
  var _triggerEvents$props$;
@@ -12078,13 +12014,13 @@ ${$(r2)}`), n2;
12078
12014
  getFullscreenRoot: getFullscreenRoot2,
12079
12015
  stopHide,
12080
12016
  localIsShow,
12081
- cleanup: wrappedCleanup
12017
+ cleanup
12082
12018
  };
12083
12019
  };
12084
- var popContainerId2 = "id_".concat(esm_browser_v42());
12020
+ var popContainerId2 = null;
12021
+ var parentNodeReferId = null;
12085
12022
  const use_popper_id = function(props2) {
12086
12023
  var prefix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "#";
12087
- var parentNodeReferId = "id_".concat(esm_browser_v42());
12088
12024
  var getPrefixId = function getPrefixId2(root3) {
12089
12025
  var resolvedBoundary = null;
12090
12026
  var resolveBoundary = function resolveBoundary2(fn) {
@@ -12093,7 +12029,8 @@ ${$(r2)}`), n2;
12093
12029
  }
12094
12030
  };
12095
12031
  var resolveParentBoundary = function resolveParentBoundary2() {
12096
- if (/^parent$/i.test(props2.boundary) || !props2.boundary) {
12032
+ if (/^parent$/i.test(props2.boundary)) {
12033
+ resolvedBoundary = "".concat(prefix).concat(popContainerId2);
12097
12034
  var _ref = root3 || {}, parentNode = _ref.parentNode;
12098
12035
  if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
12099
12036
  parentNode.parentNode.setAttribute("data-pnode-id", parentNodeReferId);
@@ -12102,53 +12039,42 @@ ${$(r2)}`), n2;
12102
12039
  }
12103
12040
  };
12104
12041
  var resolveCommonBoundary = function resolveCommonBoundary2() {
12105
- if (typeof props2.boundary === "string" && /^body$/i.test(props2.boundary)) {
12106
- resolvedBoundary = "".concat(prefix).concat(popContainerId2);
12107
- return;
12108
- }
12109
- if (props2.boundary === document.body) {
12110
- resolvedBoundary = "".concat(prefix).concat(popContainerId2);
12111
- return;
12112
- }
12113
- if (typeof props2.boundary === "string") {
12114
- resolvedBoundary = props2.boundary;
12115
- return;
12116
- }
12117
- if (utils_isElement(props2.boundary)) {
12118
- resolvedBoundary = props2.boundary;
12119
- return;
12042
+ if (!/^body$/i.test(props2.boundary)) {
12043
+ if (typeof props2.boundary === "string") {
12044
+ if (!isAvailableId(props2.boundary)) {
12045
+ resolvedBoundary = "body";
12046
+ return;
12047
+ }
12048
+ resolvedBoundary = props2.boundary;
12049
+ return;
12050
+ }
12051
+ if (utils_isElement(props2.boundary)) {
12052
+ resolvedBoundary = props2.boundary;
12053
+ return;
12054
+ }
12120
12055
  }
12121
12056
  };
12122
12057
  resolveBoundary(resolveParentBoundary);
12123
12058
  resolveBoundary(resolveCommonBoundary);
12124
12059
  resolveBoundary(function() {
12125
- resolvedBoundary = "".concat(prefix).concat(popContainerId2);
12060
+ resolvedBoundary = typeof props2.boundary === "string" ? props2.boundary : "".concat(prefix).concat(popContainerId2);
12126
12061
  });
12127
12062
  return resolvedBoundary;
12128
12063
  };
12129
- if (!isAvailableId("#".concat(popContainerId2))) {
12064
+ if (popContainerId2 === null || !isAvailableId("#".concat(popContainerId2))) {
12065
+ popContainerId2 = "id_".concat(esm_browser_v42());
12130
12066
  var popContainer = document.createElement("div");
12131
12067
  popContainer.setAttribute("id", popContainerId2);
12132
12068
  popContainer.setAttribute("data-popper-id", popContainerId2);
12133
12069
  document.body.append(popContainer);
12134
12070
  }
12135
- var clearParentNodeId = function clearParentNodeId2(root3) {
12136
- if (/^parent$/i.test(props2.boundary)) {
12137
- var _ref2 = root3 || {}, parentNode = _ref2.parentNode;
12138
- if (parentNode !== null && parentNode !== void 0 && parentNode.parentNode) {
12139
- var attr = parentNode.parentNode.getAttribute("data-pnode-id");
12140
- if (attr === parentNodeReferId) {
12141
- parentNode.parentNode.removeAttribute("data-pnode-id");
12142
- }
12143
- }
12144
- }
12145
- };
12071
+ if (parentNodeReferId === null) {
12072
+ parentNodeReferId = "id_".concat(esm_browser_v42());
12073
+ }
12146
12074
  return {
12147
12075
  popContainerId: popContainerId2,
12148
12076
  prefixId: getPrefixId(),
12149
- getPrefixId,
12150
- parentNodeReferId,
12151
- clearParentNodeId
12077
+ getPrefixId
12152
12078
  };
12153
12079
  };
12154
12080
  const use_popover_init = function(props2, ctx, _ref) {
@@ -12183,18 +12109,7 @@ ${$(r2)}`), n2;
12183
12109
  }
12184
12110
  };
12185
12111
  var addEventToPopTargetEl = function addEventToPopTargetEl2() {
12186
- var retryCount = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
12187
12112
  var _resolvePopElements = resolvePopElements(), elReference = _resolvePopElements.elReference, elContent = _resolvePopElements.elContent;
12188
- if (!elReference) {
12189
- if (retryCount >= 10) {
12190
- console.warn("[Popover] Failed to add events: reference element not found after retries");
12191
- return;
12192
- }
12193
- (0, external_vue_namespaceObject2.nextTick)(function() {
12194
- addEventToPopTargetEl2(retryCount + 1);
12195
- });
12196
- return;
12197
- }
12198
12113
  storeEvents = resolveTriggerEvents();
12199
12114
  storeEvents.forEach(function(storeEvent) {
12200
12115
  if (Array.isArray(storeEvent)) {
@@ -12202,16 +12117,11 @@ ${$(r2)}`), n2;
12202
12117
  } else {
12203
12118
  var content2 = storeEvent.content, reference3 = storeEvent.reference;
12204
12119
  addEventToTargetEl(elReference, reference3);
12205
- if (elContent) {
12206
- addEventToTargetEl(elContent, content2);
12207
- }
12120
+ addEventToTargetEl(elContent, content2);
12208
12121
  }
12209
12122
  });
12210
12123
  };
12211
12124
  var addEventToTargetEl = function addEventToTargetEl2(target, evets) {
12212
- if (!target) {
12213
- return;
12214
- }
12215
12125
  evets.forEach(function(_ref2) {
12216
12126
  var _ref3 = _slicedToArray2(_ref2, 2), event = _ref3[0], listener = _ref3[1];
12217
12127
  if (event && typeof listener === "function") {
@@ -12263,14 +12173,12 @@ ${$(r2)}`), n2;
12263
12173
  if (isFullscreen.value) {
12264
12174
  var _fullScreenTarget$val;
12265
12175
  var _ref10 = elReference || root3 || {}, parentNode = _ref10.parentNode;
12266
- var fullscreenBoundary = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
12267
- boundary.value = fullscreenBoundary || "body";
12176
+ boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
12268
12177
  return;
12269
12178
  }
12270
- var resolvedBoundary = getPrefixId(root3 || elReference);
12271
- boundary.value = resolvedBoundary || "body";
12179
+ boundary.value = getPrefixId(root3 || elReference);
12272
12180
  };
12273
- var _usePopperId = use_popper_id(props2, "#"), getPrefixId = _usePopperId.getPrefixId, clearParentNodeId = _usePopperId.clearParentNodeId;
12181
+ var _usePopperId = use_popper_id(props2, "#"), getPrefixId = _usePopperId.getPrefixId;
12274
12182
  var setFullscreenTag = function setFullscreenTag2() {
12275
12183
  var _fullScreenTarget$val2;
12276
12184
  fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 || _fullScreenTarget$val2.setAttribute("data-fllsrn-id", fullscreenReferId);
@@ -12282,7 +12190,7 @@ ${$(r2)}`), n2;
12282
12190
  element === null || element === void 0 || element.removeAttribute("data-fllsrn-id");
12283
12191
  });
12284
12192
  };
12285
- var boundary = (0, external_vue_namespaceObject2.ref)("body");
12193
+ var boundary = (0, external_vue_namespaceObject2.ref)();
12286
12194
  var beforeInstanceUnmount = function beforeInstanceUnmount2() {
12287
12195
  removeEventListener();
12288
12196
  };
@@ -12304,39 +12212,25 @@ ${$(r2)}`), n2;
12304
12212
  if (props2.disabled) {
12305
12213
  return;
12306
12214
  }
12215
+ initPopInstance();
12307
12216
  if (isElementFullScreen()) {
12308
12217
  var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
12309
12218
  var target = getFullscreenRoot2(query);
12310
12219
  updateFullscreen(target);
12311
12220
  }
12312
12221
  updateBoundary();
12313
- initPopInstance();
12314
12222
  document.body.addEventListener("fullscreenchange", handleFullscreenChange);
12315
- document.addEventListener("click", handleClickOutside);
12316
12223
  };
12317
12224
  var onUnmountedFn = function onUnmountedFn2() {
12318
12225
  beforeInstanceUnmount();
12319
- var _resolvePopElements4 = resolvePopElements(), root3 = _resolvePopElements4.root;
12320
- clearParentNodeId(root3);
12321
12226
  document.body.removeEventListener("fullscreenchange", handleFullscreenChange);
12322
- document.removeEventListener("click", handleClickOutside);
12323
- };
12324
- var isClickInside = function isClickInside2(target) {
12325
- var _refContent$value$$el, _refContent$value, _refContent$value$con;
12326
- 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;
12327
12227
  };
12328
- var handleClickOutside = function handleClickOutside2(e) {
12329
- var target = e.target;
12330
- if (isClickInside(target)) {
12331
- e.preventDefault();
12332
- e.stopPropagation();
12333
- e.stopImmediatePropagation();
12334
- return;
12335
- }
12228
+ var handleClickOutside = function handleClickOutside2(_e) {
12229
+ var hideIgnoreReference = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
12336
12230
  var commonFunc = function commonFunc2() {
12337
12231
  ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
12338
12232
  isShow: localIsShow.value,
12339
- event: e
12233
+ event: _e
12340
12234
  });
12341
12235
  var needExec = props2.disableOutsideClick || props2.always || props2.disabled || props2.trigger === "manual";
12342
12236
  if (!props2.forceClickoutside && needExec) {
@@ -12346,7 +12240,7 @@ ${$(r2)}`), n2;
12346
12240
  hideFn();
12347
12241
  }
12348
12242
  };
12349
- if (props2.hideIgnoreReference) {
12243
+ if (hideIgnoreReference) {
12350
12244
  setTimeout(function() {
12351
12245
  if (ReferenceClickSharedState[uniqKey]) {
12352
12246
  ReferenceClickSharedState[uniqKey] = false;
@@ -12407,7 +12301,7 @@ ${$(r2)}`), n2;
12407
12301
  refContent,
12408
12302
  refArrow,
12409
12303
  refRoot
12410
- }), 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;
12304
+ }), 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;
12411
12305
  if (!props2.always && !props2.disabled) {
12412
12306
  (0, external_vue_namespaceObject2.watch)(function() {
12413
12307
  return props2.isShow;
@@ -12426,6 +12320,7 @@ ${$(r2)}`), n2;
12426
12320
  initPopInstance();
12427
12321
  }
12428
12322
  });
12323
+ updateBoundary();
12429
12324
  (0, external_vue_namespaceObject2.onMounted)(onMountedFn);
12430
12325
  (0, external_vue_namespaceObject2.onBeforeUnmount)(onUnmountedFn);
12431
12326
  var isRenderModeShow = (0, external_vue_namespaceObject2.computed)(function() {
@@ -12472,6 +12367,7 @@ ${$(r2)}`), n2;
12472
12367
  isRenderModeShow,
12473
12368
  transBoundary,
12474
12369
  handleClickContent,
12370
+ handleClickOutside,
12475
12371
  updatePopover,
12476
12372
  resetPopover,
12477
12373
  hide: hide2,
@@ -12518,7 +12414,7 @@ ${$(r2)}`), n2;
12518
12414
  "to": _this.boundary
12519
12415
  }, {
12520
12416
  "default": function _default2() {
12521
- return [(0, external_vue_namespaceObject2.createVNode)(content, {
12417
+ return [(0, external_vue_namespaceObject2.withDirectives)((0, external_vue_namespaceObject2.createVNode)(content, {
12522
12418
  "ref": "refContent",
12523
12419
  "width": _this.width,
12524
12420
  "height": _this.height,
@@ -12543,7 +12439,9 @@ ${$(r2)}`), n2;
12543
12439
  }
12544
12440
  }) : "";
12545
12441
  }
12546
- })];
12442
+ }), [[(0, external_vue_namespaceObject2.resolveDirective)("clickoutside"), function(e) {
12443
+ return _this.handleClickOutside(e, _this.hideIgnoreReference);
12444
+ }]])];
12547
12445
  }
12548
12446
  })];
12549
12447
  }
@@ -13464,7 +13362,6 @@ ${$(r2)}`), n2;
13464
13362
  return arrow2;
13465
13363
  }
13466
13364
  function createPopperInstance(el, popper2) {
13467
- if (!tooltips_nodeList.get(el)) return;
13468
13365
  var _nodeList$get = tooltips_nodeList.get(el), opts = _nodeList$get.opts;
13469
13366
  var placement = opts.placement, distance = opts.distance, sameWidth = opts.sameWidth;
13470
13367
  var popperInstance = (0, core_namespaceObject2.createPopper)(el, popper2, {
@@ -13498,7 +13395,6 @@ ${$(r2)}`), n2;
13498
13395
  return popperInstance;
13499
13396
  }
13500
13397
  function show(el) {
13501
- if (!tooltips_nodeList.get(el)) return;
13502
13398
  var _nodeList$get2 = tooltips_nodeList.get(el), popper2 = _nodeList$get2.popper, opts = _nodeList$get2.opts;
13503
13399
  var disabled = opts.disabled, content = opts.content, hasArrow = opts.arrow, onShow = opts.onShow, boundary = opts.boundary, _opts$modifiers = opts.modifiers, modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
13504
13400
  if (disabled) return;
@@ -18040,7 +17936,7 @@ ${$(r2)}`), n2;
18040
17936
  __webpack_require__$4.d(x3, y2);
18041
17937
  return x3;
18042
17938
  };
18043
- const external_vue_namespaceObject2 = external_vue_x2({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.nextTick, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.provide, ["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, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.withDirectives });
17939
+ const external_vue_namespaceObject2 = external_vue_x2({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.createVNode, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.nextTick, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.provide, ["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, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue____namespace.withDirectives });
18044
17940
  var selectKey = Symbol("BkSelect");
18045
17941
  var optionGroupKey = Symbol("BkOptionGroup");
18046
17942
  function useHover() {
@@ -18075,6 +17971,32 @@ ${$(r2)}`), n2;
18075
17971
  unregister
18076
17972
  };
18077
17973
  }
17974
+ function useDebouncedRef(value) {
17975
+ var delay = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 200;
17976
+ var timeout;
17977
+ var innerValue = value;
17978
+ return (0, external_vue_namespaceObject2.customRef)(function(track, trigger) {
17979
+ return {
17980
+ get: function get2() {
17981
+ track();
17982
+ return innerValue;
17983
+ },
17984
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
17985
+ set: function set2(newValue) {
17986
+ clearTimeout(timeout);
17987
+ if (newValue === void 0 || newValue === "") {
17988
+ innerValue = newValue;
17989
+ trigger();
17990
+ } else {
17991
+ timeout = setTimeout(function() {
17992
+ innerValue = newValue;
17993
+ trigger();
17994
+ }, delay);
17995
+ }
17996
+ }
17997
+ };
17998
+ });
17999
+ }
18078
18000
  function usePopover(config, triggerRef) {
18079
18001
  var popoverMinWidth = config.popoverMinWidth;
18080
18002
  var observerIns = null;
@@ -18112,8 +18034,8 @@ ${$(r2)}`), n2;
18112
18034
  };
18113
18035
  }
18114
18036
  function useRemoteSearch(method, callBack) {
18115
- var customOptionName = (0, external_vue_namespaceObject2.ref)("");
18116
- var searchValue = (0, external_vue_namespaceObject2.ref)("");
18037
+ var customOptionName = useDebouncedRef("");
18038
+ var searchValue = useDebouncedRef("");
18117
18039
  var curSearchValue = (0, external_vue_namespaceObject2.computed)(function() {
18118
18040
  return searchValue.value || customOptionName.value;
18119
18041
  });
@@ -18440,8 +18362,8 @@ ${$(r2)}`), n2;
18440
18362
  label: shared_namespaceObject2.PropTypes.string.def(""),
18441
18363
  disabled: shared_namespaceObject2.PropTypes.bool.def(false),
18442
18364
  collapsible: shared_namespaceObject2.PropTypes.bool.def(false),
18443
- collapse: shared_namespaceObject2.PropTypes.bool.def(false),
18444
- visible: shared_namespaceObject2.PropTypes.bool.def(true)
18365
+ collapse: shared_namespaceObject2.PropTypes.bool.def(false)
18366
+ // 是否折叠初始状态
18445
18367
  },
18446
18368
  setup: function setup(props2, _ref) {
18447
18369
  var emit = _ref.emit;
@@ -18449,8 +18371,8 @@ ${$(r2)}`), n2;
18449
18371
  var proxy = instance2.proxy;
18450
18372
  var select = (0, external_vue_namespaceObject2.inject)(selectKey, null);
18451
18373
  var states = (0, external_vue_namespaceObject2.reactive)({
18452
- groupCollapse: props2.collapse
18453
- // visible: props.visible,
18374
+ groupCollapse: props2.collapse,
18375
+ visible: true
18454
18376
  });
18455
18377
  var optionsMap = (0, external_vue_namespaceObject2.ref)(/* @__PURE__ */ new Map());
18456
18378
  var _useRegistry = useRegistry(optionsMap), register = _useRegistry.register, unregister = _useRegistry.unregister;
@@ -18459,9 +18381,6 @@ ${$(r2)}`), n2;
18459
18381
  return option.visible;
18460
18382
  }).length, ")");
18461
18383
  });
18462
- var isVisible = (0, external_vue_namespaceObject2.computed)(function() {
18463
- return props2.visible && !select.isSearchEmpty;
18464
- });
18465
18384
  var handleToggleCollapse = function handleToggleCollapse2() {
18466
18385
  if (!props2.collapsible || props2.disabled) return;
18467
18386
  states.groupCollapse = !states.groupCollapse;
@@ -18481,7 +18400,6 @@ ${$(r2)}`), n2;
18481
18400
  var _usePrefix = (0, config_provider_namespaceObject2.usePrefix)(), resolveClassName2 = _usePrefix.resolveClassName;
18482
18401
  return optionGroup_objectSpread(optionGroup_objectSpread({}, (0, external_vue_namespaceObject2.toRefs)(states)), {}, {
18483
18402
  groupLabel,
18484
- isVisible,
18485
18403
  handleToggleCollapse,
18486
18404
  resolveClassName: resolveClassName2
18487
18405
  });
@@ -18507,7 +18425,7 @@ ${$(r2)}`), n2;
18507
18425
  "class": "default-group-label-title"
18508
18426
  }, [this.groupLabel])])]), (0, external_vue_namespaceObject2.withDirectives)((0, external_vue_namespaceObject2.createVNode)("ul", {
18509
18427
  "class": this.resolveClassName("option-group-content")
18510
- }, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), [[external_vue_namespaceObject2.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject2.vShow, this.isVisible]]);
18428
+ }, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), [[external_vue_namespaceObject2.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject2.vShow, this.visible]]);
18511
18429
  }
18512
18430
  });
18513
18431
  function _createForOfIteratorHelper(o2, allowArrayLike) {
@@ -18813,7 +18731,6 @@ ${$(r2)}`), n2;
18813
18731
  return arrow2;
18814
18732
  }
18815
18733
  function createPopperInstance(el, popper2) {
18816
- if (!tooltips_nodeList.get(el)) return;
18817
18734
  var _nodeList$get = tooltips_nodeList.get(el), opts = _nodeList$get.opts;
18818
18735
  var placement = opts.placement, distance = opts.distance, sameWidth = opts.sameWidth;
18819
18736
  var popperInstance = (0, core_namespaceObject2.createPopper)(el, popper2, {
@@ -18847,7 +18764,6 @@ ${$(r2)}`), n2;
18847
18764
  return popperInstance;
18848
18765
  }
18849
18766
  function show(el) {
18850
- if (!tooltips_nodeList.get(el)) return;
18851
18767
  var _nodeList$get2 = tooltips_nodeList.get(el), popper2 = _nodeList$get2.popper, opts = _nodeList$get2.opts;
18852
18768
  var disabled = opts.disabled, content = opts.content, hasArrow = opts.arrow, onShow = opts.onShow, boundary = opts.boundary, _opts$modifiers = opts.modifiers, modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
18853
18769
  if (disabled) return;
@@ -20076,7 +19992,6 @@ ${$(r2)}`), n2;
20076
19992
  value.value = modelValue.value;
20077
19993
  });
20078
19994
  (0, external_vue_namespaceObject2.watch)([selected, collapseTags], function() {
20079
- tagsRefs.value = [];
20080
19995
  calcOverflow();
20081
19996
  }, {
20082
19997
  flush: "post"
@@ -20511,8 +20426,7 @@ ${$(r2)}`), n2;
20511
20426
  return false;
20512
20427
  });
20513
20428
  var isShowSelectContent = (0, external_vue_namespaceObject2.computed)(function() {
20514
- if (customContent.value) return true;
20515
- return !(searchLoading.value || isOptionsEmpty.value || isSearchEmpty.value);
20429
+ return !(searchLoading.value || isOptionsEmpty.value || isSearchEmpty.value) || customContent.value;
20516
20430
  });
20517
20431
  var isShowSelectAll = (0, external_vue_namespaceObject2.computed)(function() {
20518
20432
  return multiple.value && showSelectAll.value && (!curSearchValue.value || !filterable.value);
@@ -20973,7 +20887,6 @@ ${$(r2)}`), n2;
20973
20887
  selectedStyle,
20974
20888
  curSearchValue,
20975
20889
  highlightKeyword,
20976
- isSearchEmpty,
20977
20890
  register,
20978
20891
  unregister,
20979
20892
  registerGroup,
@@ -20992,9 +20905,6 @@ ${$(r2)}`), n2;
20992
20905
  var _virtualRenderRef$val;
20993
20906
  (_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || _virtualRenderRef$val.scrollTo(0, 1);
20994
20907
  };
20995
- var handleExtensionClick = function handleExtensionClick2(e) {
20996
- e.stopPropagation();
20997
- };
20998
20908
  return {
20999
20909
  t: t2,
21000
20910
  selected,
@@ -21059,8 +20969,7 @@ ${$(r2)}`), n2;
21059
20969
  isEnableVirtualRender,
21060
20970
  preloadItemCount,
21061
20971
  virtualRenderRef,
21062
- setSelected,
21063
- handleExtensionClick
20972
+ setSelected
21064
20973
  };
21065
20974
  },
21066
20975
  render: function render() {
@@ -21289,7 +21198,7 @@ ${$(r2)}`), n2;
21289
21198
  "theme": "primary"
21290
21199
  }, null), (0, external_vue_namespaceObject2.createVNode)("span", null, [_this.curContentText])]), (0, external_vue_namespaceObject2.createVNode)("div", {
21291
21200
  "class": _this.resolveClassName("select-content")
21292
- }, [(0, external_vue_namespaceObject2.withDirectives)((0, external_vue_namespaceObject2.createVNode)("div", {
21201
+ }, [(0, external_vue_namespaceObject2.createVNode)("div", {
21293
21202
  "ref": "scrollContainerRef",
21294
21203
  "style": {
21295
21204
  maxHeight: "".concat(_this.scrollHeight, "px"),
@@ -21307,9 +21216,8 @@ ${$(r2)}`), n2;
21307
21216
  "mode": "spin",
21308
21217
  "size": "mini",
21309
21218
  "theme": "primary"
21310
- }, null), (0, external_vue_namespaceObject2.createVNode)("span", null, [_this.localLoadingText])])])]), [[external_vue_namespaceObject2.vShow, _this.isShowSelectContent]]), ((_this$$slots18 = _this.$slots) === null || _this$$slots18 === void 0 ? void 0 : _this$$slots18.extension) && (0, external_vue_namespaceObject2.createVNode)("div", {
21311
- "class": _this.resolveClassName("select-extension"),
21312
- "onClick": _this.handleExtensionClick
21219
+ }, null), (0, external_vue_namespaceObject2.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots18 = _this.$slots) === null || _this$$slots18 === void 0 ? void 0 : _this$$slots18.extension) && (0, external_vue_namespaceObject2.createVNode)("div", {
21220
+ "class": _this.resolveClassName("select-extension")
21313
21221
  }, [(_this$$slots19 = _this.$slots) === null || _this$$slots19 === void 0 ? void 0 : _this$$slots19.extension()])])]);
21314
21222
  };
21315
21223
  return (0, external_vue_namespaceObject2.createVNode)("div", {
@@ -22659,7 +22567,6 @@ ${$(r2)}`), n2;
22659
22567
  return arrow2;
22660
22568
  }
22661
22569
  function createPopperInstance(el, popper2) {
22662
- if (!tooltips_nodeList.get(el)) return;
22663
22570
  var _nodeList$get = tooltips_nodeList.get(el), opts = _nodeList$get.opts;
22664
22571
  var placement = opts.placement, distance = opts.distance, sameWidth = opts.sameWidth;
22665
22572
  var popperInstance = (0, core_namespaceObject2.createPopper)(el, popper2, {
@@ -22693,7 +22600,6 @@ ${$(r2)}`), n2;
22693
22600
  return popperInstance;
22694
22601
  }
22695
22602
  function show(el) {
22696
- if (!tooltips_nodeList.get(el)) return;
22697
22603
  var _nodeList$get2 = tooltips_nodeList.get(el), popper2 = _nodeList$get2.popper, opts = _nodeList$get2.opts;
22698
22604
  var disabled = opts.disabled, content = opts.content, hasArrow = opts.arrow, onShow = opts.onShow, boundary = opts.boundary, _opts$modifiers = opts.modifiers, modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
22699
22605
  if (disabled) return;
@@ -24310,7 +24216,6 @@ ${$(r2)}`), n2;
24310
24216
  return arrow2;
24311
24217
  }
24312
24218
  function createPopperInstance(el, popper2) {
24313
- if (!tooltips_nodeList.get(el)) return;
24314
24219
  var _nodeList$get = tooltips_nodeList.get(el), opts = _nodeList$get.opts;
24315
24220
  var placement = opts.placement, distance = opts.distance, sameWidth = opts.sameWidth;
24316
24221
  var popperInstance = (0, core_namespaceObject2.createPopper)(el, popper2, {
@@ -24344,7 +24249,6 @@ ${$(r2)}`), n2;
24344
24249
  return popperInstance;
24345
24250
  }
24346
24251
  function show(el) {
24347
- if (!tooltips_nodeList.get(el)) return;
24348
24252
  var _nodeList$get2 = tooltips_nodeList.get(el), popper2 = _nodeList$get2.popper, opts = _nodeList$get2.opts;
24349
24253
  var disabled = opts.disabled, content = opts.content, hasArrow = opts.arrow, onShow = opts.onShow, boundary = opts.boundary, _opts$modifiers = opts.modifiers, modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
24350
24254
  if (disabled) return;
@@ -26343,7 +26247,7 @@ ${$(r2)}`), n2;
26343
26247
  const [, endNum, endUnit, endDiffUnit] = end2.match(commonDateRegexp) || [];
26344
26248
  if (startDiffUnit) {
26345
26249
  if (end2 === NowConstant) return DateMode.NATURAL;
26346
- if (startNum && +endNum == -1) {
26250
+ if (startNum && +endNum === -1) {
26347
26251
  if (startUnit === startDiffUnit && endUnit === endDiffUnit && startUnit === endUnit) return DateMode.NATURAL;
26348
26252
  }
26349
26253
  }
@@ -26506,7 +26410,7 @@ ${$(r2)}`), n2;
26506
26410
  }
26507
26411
  remainingFormat = format.slice(lastEndIndex).trim().replace(/^[:\-\\/]/, "");
26508
26412
  const commonPrefix = startDate.format(commonFormat.trim());
26509
- if (!remainingFormat || remainingFormat == format) {
26413
+ if (!remainingFormat || remainingFormat === format) {
26510
26414
  return `${startDate.format(format)} ~ ${endDate.format(format)}`;
26511
26415
  }
26512
26416
  const formattedStart = startDate.format(remainingFormat);
@@ -26616,7 +26520,7 @@ ${$(r2)}`), n2;
26616
26520
  const endDate = transformValue2Dayjs(end2, "end", timezone);
26617
26521
  return [startDate, endDate];
26618
26522
  };
26619
- const inputVal2Dayjs = (val, format, defaultDate) => {
26523
+ const inputVal2Dayjs = (val, format, defaultDate, timezone) => {
26620
26524
  let date;
26621
26525
  if (commonDateRegexp.test(val)) {
26622
26526
  date = transformValue2Dayjs(val);
@@ -26638,11 +26542,11 @@ ${$(r2)}`), n2;
26638
26542
  validate = validate && M2 < 12;
26639
26543
  const y2 = d2[1];
26640
26544
  validate = validate && y2.length < 5;
26641
- date = validate ? dayjs(new Date(+y2, M2, +day, +h2, +m2, +s2, +ms)) : defaultDate;
26545
+ date = validate ? dayjs(new Date(+y2, M2, +day, +h2, +m2, +s2, +ms)).tz(timezone || dayjs.tz.guess(), true) : defaultDate;
26642
26546
  }
26643
26547
  }
26644
26548
  if (!date) {
26645
- date = dayjs(val);
26549
+ date = dayjs(dayjs(val).valueOf()).tz(timezone || dayjs.tz.guess(), true);
26646
26550
  }
26647
26551
  return date;
26648
26552
  };
@@ -26655,7 +26559,7 @@ ${$(r2)}`), n2;
26655
26559
  try {
26656
26560
  new Intl.DateTimeFormat("en-US", { timeZone });
26657
26561
  return true;
26658
- } catch (e) {
26562
+ } catch {
26659
26563
  return false;
26660
26564
  }
26661
26565
  };
@@ -27013,7 +26917,7 @@ ${$(r2)}`), n2;
27013
26917
  const weekList = lang === "en" ? ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] : ["日", "一", "二", "三", "四", "五", "六"];
27014
26918
  const panelDateList = __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef([]);
27015
26919
  const today = dayjs();
27016
- const curPanelDate = __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef(props2.modelValue || today);
26920
+ const curPanelDate = __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef(props2.modelValue && props2.modelValue.isValid() ? props2.modelValue : today);
27017
26921
  const { validateDayjs } = useValidate();
27018
26922
  __WEBPACK_EXTERNAL_MODULE_vue__.watch(
27019
26923
  curPanelDate,
@@ -27284,7 +27188,7 @@ ${$(r2)}`), n2;
27284
27188
  handleIsNowChange(type);
27285
27189
  return;
27286
27190
  }
27287
- let date = inputVal2Dayjs(val, format.value, editDate);
27191
+ let date = inputVal2Dayjs(val, format.value, editDate, timezoneInfo.value.label);
27288
27192
  if (date.isValid()) {
27289
27193
  if (!(editDate == null ? void 0 : editDate.isSame(date))) {
27290
27194
  curNow.value = val === NowConstant;