@uzum-tech/ui 2.4.4 → 2.4.6

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.
Files changed (114) hide show
  1. package/dist/index.js +118 -43
  2. package/dist/index.mjs +118 -43
  3. package/dist/index.prod.js +3 -3
  4. package/dist/index.prod.mjs +3 -3
  5. package/es/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +21 -0
  6. package/es/_internal/safe-top-scrollbar/src/SafeTopScrollbar.mjs +14 -1
  7. package/es/_internal/scrollbar/src/Scrollbar.d.ts +21 -0
  8. package/es/_internal/scrollbar/src/Scrollbar.mjs +14 -1
  9. package/es/_internal/select-menu/src/SelectMenuParts/List.d.ts +2 -0
  10. package/es/_utils/composable/use-scroll-edge-detector.d.ts +9 -0
  11. package/es/_utils/composable/use-scroll-edge-detector.mjs +44 -0
  12. package/es/button/src/Button.d.ts +4 -0
  13. package/es/button/src/Button.mjs +4 -2
  14. package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
  15. package/es/chat/src/Chat.d.ts +12 -24
  16. package/es/chat/src/ChatMainArea.d.ts +4 -7
  17. package/es/chat/src/ChatMainArea.mjs +12 -37
  18. package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +1 -1
  19. package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +1 -1
  20. package/es/chat/src/interface.d.ts +2 -0
  21. package/es/components.d.ts +92 -32
  22. package/es/data-table/src/DataTable.d.ts +14 -0
  23. package/es/data-table/src/DataTable.mjs +2 -0
  24. package/es/data-table/src/TableParts/Body.d.ts +2 -0
  25. package/es/data-table/src/interface.d.ts +7 -0
  26. package/es/data-table/src/interface.mjs +6 -0
  27. package/es/data-table/src/use-scroll.d.ts +1 -0
  28. package/es/data-table/src/use-scroll.mjs +8 -1
  29. package/es/date-picker/src/DatePicker.d.ts +11 -0
  30. package/es/date-picker/src/DatePicker.mjs +8 -4
  31. package/es/date-picker-v2/src/DatePickerV2.d.ts +1 -0
  32. package/es/date-picker-v2/src/DatePickerV2.mjs +6 -2
  33. package/es/date-picker-v2/src/composables/useCalendarScroll.d.ts +96 -0
  34. package/es/date-picker-v2/src/panel/CalendarPanel.d.ts +96 -0
  35. package/es/date-picker-v2/src/panel/CalendarRangePanel.d.ts +96 -0
  36. package/es/dialog/src/DialogProvider.d.ts +1 -1579
  37. package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +2 -0
  38. package/es/infinite-scroll/src/InfiniteScroll.d.ts +2 -0
  39. package/es/input/src/Input.d.ts +2 -0
  40. package/es/kanban/src/Kanban.d.ts +1 -1
  41. package/es/layout/src/Layout.d.ts +4 -0
  42. package/es/layout/src/LayoutContent.d.ts +2 -0
  43. package/es/layout/src/LayoutSider.d.ts +2 -0
  44. package/es/legacy-transfer/src/TransferList.d.ts +2 -0
  45. package/es/log/src/Log.d.ts +2 -0
  46. package/es/modal/src/BodyWrapper.d.ts +2 -0
  47. package/es/modal-fullscreen/src/ModalFull.d.ts +2 -0
  48. package/es/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +13 -0
  49. package/es/safe-top-scrollbar/src/SafeTopScrollbar.mjs +7 -0
  50. package/es/scrollbar/src/Scrollbar.d.ts +13 -0
  51. package/es/scrollbar/src/Scrollbar.mjs +7 -0
  52. package/es/time-picker/src/TimePicker.d.ts +8 -0
  53. package/es/transfer/src/TransferList.d.ts +2 -0
  54. package/es/tree/src/Tree.d.ts +2 -0
  55. package/es/typography/src/text.d.ts +1 -1
  56. package/es/version.d.ts +1 -1
  57. package/es/version.mjs +1 -1
  58. package/es/virtual-list/src/VirtualList.d.ts +2 -0
  59. package/lib/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +21 -0
  60. package/lib/_internal/safe-top-scrollbar/src/SafeTopScrollbar.js +9 -2
  61. package/lib/_internal/scrollbar/src/Scrollbar.d.ts +21 -0
  62. package/lib/_internal/scrollbar/src/Scrollbar.js +9 -2
  63. package/lib/_internal/select-menu/src/SelectMenuParts/List.d.ts +2 -0
  64. package/lib/_utils/composable/use-scroll-edge-detector.d.ts +9 -0
  65. package/lib/_utils/composable/use-scroll-edge-detector.js +42 -0
  66. package/lib/button/src/Button.d.ts +4 -0
  67. package/lib/button/src/Button.js +8 -3
  68. package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
  69. package/lib/chat/src/Chat.d.ts +12 -24
  70. package/lib/chat/src/ChatMainArea.d.ts +4 -7
  71. package/lib/chat/src/ChatMainArea.js +6 -36
  72. package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +1 -1
  73. package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +1 -1
  74. package/lib/chat/src/interface.d.ts +2 -0
  75. package/lib/components.d.ts +92 -32
  76. package/lib/data-table/src/DataTable.d.ts +14 -0
  77. package/lib/data-table/src/DataTable.js +2 -1
  78. package/lib/data-table/src/TableParts/Body.d.ts +2 -0
  79. package/lib/data-table/src/interface.d.ts +7 -0
  80. package/lib/data-table/src/interface.js +4 -1
  81. package/lib/data-table/src/use-scroll.d.ts +1 -0
  82. package/lib/data-table/src/use-scroll.js +5 -1
  83. package/lib/date-picker/src/DatePicker.d.ts +11 -0
  84. package/lib/date-picker/src/DatePicker.js +6 -2
  85. package/lib/date-picker-v2/src/DatePickerV2.d.ts +1 -0
  86. package/lib/date-picker-v2/src/DatePickerV2.js +6 -2
  87. package/lib/date-picker-v2/src/composables/useCalendarScroll.d.ts +96 -0
  88. package/lib/date-picker-v2/src/panel/CalendarPanel.d.ts +96 -0
  89. package/lib/date-picker-v2/src/panel/CalendarRangePanel.d.ts +96 -0
  90. package/lib/dialog/src/DialogProvider.d.ts +1 -1579
  91. package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +2 -0
  92. package/lib/infinite-scroll/src/InfiniteScroll.d.ts +2 -0
  93. package/lib/input/src/Input.d.ts +2 -0
  94. package/lib/kanban/src/Kanban.d.ts +1 -1
  95. package/lib/layout/src/Layout.d.ts +4 -0
  96. package/lib/layout/src/LayoutContent.d.ts +2 -0
  97. package/lib/layout/src/LayoutSider.d.ts +2 -0
  98. package/lib/legacy-transfer/src/TransferList.d.ts +2 -0
  99. package/lib/log/src/Log.d.ts +2 -0
  100. package/lib/modal/src/BodyWrapper.d.ts +2 -0
  101. package/lib/modal-fullscreen/src/ModalFull.d.ts +2 -0
  102. package/lib/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +13 -0
  103. package/lib/safe-top-scrollbar/src/SafeTopScrollbar.js +5 -1
  104. package/lib/scrollbar/src/Scrollbar.d.ts +13 -0
  105. package/lib/scrollbar/src/Scrollbar.js +5 -1
  106. package/lib/time-picker/src/TimePicker.d.ts +8 -0
  107. package/lib/transfer/src/TransferList.d.ts +2 -0
  108. package/lib/tree/src/Tree.d.ts +2 -0
  109. package/lib/typography/src/text.d.ts +1 -1
  110. package/lib/version.d.ts +1 -1
  111. package/lib/version.js +1 -1
  112. package/lib/virtual-list/src/VirtualList.d.ts +2 -0
  113. package/package.json +1 -1
  114. package/web-types.json +72 -2
package/dist/index.mjs CHANGED
@@ -17272,6 +17272,50 @@ function useRadio(props) {
17272
17272
  };
17273
17273
  }
17274
17274
 
17275
+ function useScrollEdgeDetector(getOptions) {
17276
+ let lastEdgeScrollTop = 0;
17277
+ let scrollTopFired = false;
17278
+ let scrollBottomFired = false;
17279
+ const detectScrollEdges = event => {
17280
+ const options = getOptions();
17281
+ if (!options.onScrollToTop && !options.onScrollToBottom) return;
17282
+ const target = event.target;
17283
+ if (!target) return;
17284
+ const {
17285
+ scrollTop,
17286
+ scrollHeight,
17287
+ clientHeight
17288
+ } = target;
17289
+ const scrollDirection = scrollTop > lastEdgeScrollTop ? "down" : "up";
17290
+ const nearTop = scrollTop <= options.scrollThreshold;
17291
+ const nearBottom = scrollHeight - (scrollTop + clientHeight) <= options.scrollThreshold;
17292
+ if (scrollTop > options.scrollThreshold) {
17293
+ scrollTopFired = false;
17294
+ }
17295
+ if (scrollHeight - (scrollTop + clientHeight) > options.scrollThreshold) {
17296
+ scrollBottomFired = false;
17297
+ }
17298
+ if (nearTop && scrollDirection === "up" && !scrollTopFired) {
17299
+ scrollTopFired = true;
17300
+ options.onScrollToTop?.();
17301
+ }
17302
+ if (nearBottom && scrollDirection === "down" && !scrollBottomFired) {
17303
+ scrollBottomFired = true;
17304
+ options.onScrollToBottom?.();
17305
+ }
17306
+ lastEdgeScrollTop = scrollTop;
17307
+ };
17308
+ const resetScrollEdgeState = () => {
17309
+ lastEdgeScrollTop = 0;
17310
+ scrollTopFired = false;
17311
+ scrollBottomFired = false;
17312
+ };
17313
+ return {
17314
+ detectScrollEdges,
17315
+ resetScrollEdgeState
17316
+ };
17317
+ }
17318
+
17275
17319
  const commonVars$a = {
17276
17320
  railInsetHorizontalBottom: "auto 2px 4px 2px",
17277
17321
  railInsetHorizontalTop: "4px 2px auto 2px",
@@ -17417,6 +17461,12 @@ const safeTopscrollbarProps = {
17417
17461
  onScroll: Function,
17418
17462
  onWheel: Function,
17419
17463
  onResize: Function,
17464
+ onScrollToTop: Function,
17465
+ onScrollToBottom: Function,
17466
+ scrollThreshold: {
17467
+ type: Number,
17468
+ default: 5
17469
+ },
17420
17470
  internalOnUpdateScrollLeft: Function,
17421
17471
  internalHoistYRail: Boolean,
17422
17472
  yPlacement: {
@@ -17464,6 +17514,9 @@ const SafeTopScrollbar$1 = defineComponent({
17464
17514
  let memoMouseY = 0;
17465
17515
  let previousScrollHeight = 0;
17466
17516
  let previousScrollTop = 0;
17517
+ const { detectScrollEdges, resetScrollEdgeState } = useScrollEdgeDetector(
17518
+ () => props
17519
+ );
17467
17520
  const isIos = useIsIos();
17468
17521
  const themeRef = useTheme(
17469
17522
  "SafeTopScrollbar",
@@ -17716,6 +17769,7 @@ const SafeTopScrollbar$1 = defineComponent({
17716
17769
  previousScrollTop = container.scrollTop;
17717
17770
  }
17718
17771
  syncScrollState();
17772
+ detectScrollEdges(e);
17719
17773
  }
17720
17774
  function syncScrollState() {
17721
17775
  const { value: container } = mergedContainerRef;
@@ -18017,7 +18071,8 @@ const SafeTopScrollbar$1 = defineComponent({
18017
18071
  handleMouseEnterWrapper,
18018
18072
  handleMouseLeaveWrapper,
18019
18073
  getScrollState,
18020
- adjustScrollTop
18074
+ adjustScrollTop,
18075
+ resetScrollEdgeState
18021
18076
  };
18022
18077
  return {
18023
18078
  ...exposedMethods,
@@ -18344,6 +18399,12 @@ const scrollbarProps$1 = {
18344
18399
  onScroll: Function,
18345
18400
  onWheel: Function,
18346
18401
  onResize: Function,
18402
+ onScrollToTop: Function,
18403
+ onScrollToBottom: Function,
18404
+ scrollThreshold: {
18405
+ type: Number,
18406
+ default: 5
18407
+ },
18347
18408
  internalOnUpdateScrollLeft: Function,
18348
18409
  internalHoistYRail: Boolean,
18349
18410
  yPlacement: {
@@ -18385,6 +18446,9 @@ const Scrollbar$1 = defineComponent({
18385
18446
  let memoXLeft = 0;
18386
18447
  let memoMouseX = 0;
18387
18448
  let memoMouseY = 0;
18449
+ const { detectScrollEdges, resetScrollEdgeState } = useScrollEdgeDetector(
18450
+ () => props
18451
+ );
18388
18452
  const isIos = useIsIos();
18389
18453
  const themeRef = useTheme(
18390
18454
  "Scrollbar",
@@ -18619,6 +18683,7 @@ const Scrollbar$1 = defineComponent({
18619
18683
  if (onScroll)
18620
18684
  onScroll(e);
18621
18685
  syncScrollState();
18686
+ detectScrollEdges(e);
18622
18687
  }
18623
18688
  function syncScrollState() {
18624
18689
  const { value: container } = mergedContainerRef;
@@ -18891,7 +18956,8 @@ const Scrollbar$1 = defineComponent({
18891
18956
  sync,
18892
18957
  syncUnifiedContainer,
18893
18958
  handleMouseEnterWrapper,
18894
- handleMouseLeaveWrapper
18959
+ handleMouseLeaveWrapper,
18960
+ resetScrollEdgeState
18895
18961
  };
18896
18962
  return {
18897
18963
  ...exposedMethods,
@@ -22437,6 +22503,7 @@ const buttonProps = {
22437
22503
  },
22438
22504
  dashed: Boolean,
22439
22505
  renderIcon: Function,
22506
+ iconProps: Object,
22440
22507
  iconPlacement: {
22441
22508
  type: String,
22442
22509
  default: "left"
@@ -22915,7 +22982,7 @@ const Button = defineComponent({
22915
22982
  /* @__PURE__ */ h$1(FadeInExpandTransition, { width: true }, {
22916
22983
  default: () => resolveWrappedSlot(
22917
22984
  this.$slots.icon,
22918
- (children2) => (this.loading || this.renderIcon || children2) && /* @__PURE__ */ h$1(
22985
+ (children2) => (this.loading || children2 || this.renderIcon || this.iconProps) && /* @__PURE__ */ h$1(
22919
22986
  "span",
22920
22987
  {
22921
22988
  class: `${mergedClsPrefix}-button__icon`,
@@ -22939,7 +23006,7 @@ const Button = defineComponent({
22939
23006
  class: `${mergedClsPrefix}-icon-slot`,
22940
23007
  role: "none"
22941
23008
  },
22942
- this.renderIcon ? this.renderIcon() : children2
23009
+ children2 || (this.renderIcon ? this.renderIcon() : this.iconProps ? /* @__PURE__ */ h$1(UIcon$1, { ...this.iconProps }) : null)
22943
23010
  )
22944
23011
  })
22945
23012
  )
@@ -51966,6 +52033,9 @@ const safeTopScrollbarProps = {
51966
52033
  trigger: String,
51967
52034
  xScrollable: Boolean,
51968
52035
  onScroll: Function,
52036
+ onScrollToTop: Function,
52037
+ onScrollToBottom: Function,
52038
+ scrollThreshold: Number,
51969
52039
  size: Number
51970
52040
  };
51971
52041
  const SafeTopScrollbar = defineComponent({
@@ -51989,6 +52059,9 @@ const SafeTopScrollbar = defineComponent({
51989
52059
  },
51990
52060
  adjustScrollTop: (heightDiff) => {
51991
52061
  scrollbarInstRef.value?.adjustScrollTop(heightDiff);
52062
+ },
52063
+ resetScrollEdgeState: () => {
52064
+ scrollbarInstRef.value?.resetScrollEdgeState();
51992
52065
  }
51993
52066
  };
51994
52067
  return {
@@ -95208,9 +95281,6 @@ var _UChatMainArea = defineComponent({
95208
95281
  });
95209
95282
  const attachmentFileList = ref([]);
95210
95283
  const uploadedAttachmentsMap = ref(/* @__PURE__ */ new Map());
95211
- const lastScrollTop = ref(0);
95212
- const scrollTopFired = ref(false);
95213
- const scrollBottomFired = ref(false);
95214
95284
  const editingMessage = ref(null);
95215
95285
  const unreadMessagesCount = computed(() => {
95216
95286
  if (!messagesRef.value)
@@ -95233,9 +95303,9 @@ var _UChatMainArea = defineComponent({
95233
95303
  const unreadBeforeRead = unreadCountsBeforeReadRef.value[newChat.id] || 0;
95234
95304
  unreadCountOnOpen.value = unreadBeforeRead;
95235
95305
  lastMessageId.value = null;
95236
- lastScrollTop.value = 0;
95237
- scrollTopFired.value = false;
95238
- scrollBottomFired.value = false;
95306
+ const scrollbarInst = messagesBodyRef.value;
95307
+ if (scrollbarInst && "resetScrollEdgeState" in scrollbarInst)
95308
+ scrollbarInst.resetScrollEdgeState();
95239
95309
  shouldScrollOnLoad.value = true;
95240
95310
  attachmentFileList.value = [];
95241
95311
  uploadedAttachmentsMap.value.clear();
@@ -95300,31 +95370,6 @@ var _UChatMainArea = defineComponent({
95300
95370
  const showUnreadNotification = computed(() => {
95301
95371
  return hasUnreadMessages.value && showNotificationManually.value;
95302
95372
  });
95303
- const handleMessagesScroll = (e) => {
95304
- const target = e.target;
95305
- if (!target)
95306
- return;
95307
- const { scrollTop, scrollHeight, clientHeight } = target;
95308
- const threshold = 5;
95309
- const scrollDirection = scrollTop > lastScrollTop.value ? "down" : "up";
95310
- const nearTop = scrollTop <= threshold;
95311
- const nearBottom = scrollHeight - (scrollTop + clientHeight) <= threshold;
95312
- if (scrollTop > threshold) {
95313
- scrollTopFired.value = false;
95314
- }
95315
- if (scrollHeight - (scrollTop + clientHeight) > threshold) {
95316
- scrollBottomFired.value = false;
95317
- }
95318
- if (nearTop && scrollDirection === "up" && !scrollTopFired.value) {
95319
- scrollTopFired.value = true;
95320
- onMessagesScrollToTop?.value?.();
95321
- }
95322
- if (nearBottom && scrollDirection === "down" && !scrollBottomFired.value) {
95323
- scrollBottomFired.value = true;
95324
- onMessagesScrollToBottom?.value?.();
95325
- }
95326
- lastScrollTop.value = scrollTop;
95327
- };
95328
95373
  function scrollToBottom() {
95329
95374
  const element = messagesBodyRef.value;
95330
95375
  if (!element)
@@ -95568,7 +95613,8 @@ var _UChatMainArea = defineComponent({
95568
95613
  handleFooterUpdateValue,
95569
95614
  handleFooterSend,
95570
95615
  cancelEditingMessage,
95571
- handleMessagesScroll,
95616
+ onMessagesScrollToTop,
95617
+ onMessagesScrollToBottom,
95572
95618
  scrollToBottom
95573
95619
  };
95574
95620
  },
@@ -95589,7 +95635,8 @@ var _UChatMainArea = defineComponent({
95589
95635
  {
95590
95636
  ref: "messagesBodyRef",
95591
95637
  class: `${mergedClsPrefix}-chat-main__body`,
95592
- onScroll: this.handleMessagesScroll
95638
+ onScrollToTop: () => this.onMessagesScrollToTop?.(),
95639
+ onScrollToBottom: () => this.onMessagesScrollToBottom?.()
95593
95640
  },
95594
95641
  {
95595
95642
  default: () => /* @__PURE__ */ h$1(
@@ -95647,6 +95694,9 @@ const scrollbarProps = {
95647
95694
  trigger: String,
95648
95695
  xScrollable: Boolean,
95649
95696
  onScroll: Function,
95697
+ onScrollToTop: Function,
95698
+ onScrollToBottom: Function,
95699
+ scrollThreshold: Number,
95650
95700
  contentClass: String,
95651
95701
  contentStyle: [Object, String],
95652
95702
  size: Number,
@@ -95670,6 +95720,9 @@ const Scrollbar = defineComponent({
95670
95720
  },
95671
95721
  scrollBy: (...args) => {
95672
95722
  scrollbarInstRef.value?.scrollBy(args[0], args[1]);
95723
+ },
95724
+ resetScrollEdgeState: () => {
95725
+ scrollbarInstRef.value?.resetScrollEdgeState();
95673
95726
  }
95674
95727
  };
95675
95728
  return {
@@ -106911,6 +106964,12 @@ const dataTableProps = {
106911
106964
  "onUpdate:expandedRowKeys": [Function, Array],
106912
106965
  onUpdateExpandedRowKeys: [Function, Array],
106913
106966
  onScroll: Function,
106967
+ onScrollToTop: Function,
106968
+ onScrollToBottom: Function,
106969
+ scrollThreshold: {
106970
+ type: Number,
106971
+ default: 5
106972
+ },
106914
106973
  // deprecated
106915
106974
  onPageChange: [Function, Array],
106916
106975
  onPageSizeChange: [Function, Array],
@@ -111305,6 +111364,10 @@ function useScroll(props, {
111305
111364
  const leftActiveFixedChildrenColKeysRef = ref([]);
111306
111365
  const rightActiveFixedColKeyRef = ref(null);
111307
111366
  const rightActiveFixedChildrenColKeysRef = ref([]);
111367
+ const {
111368
+ detectScrollEdges,
111369
+ resetScrollEdgeState
111370
+ } = useScrollEdgeDetector(() => props);
111308
111371
  const styleScrollXRef = computed(() => {
111309
111372
  return formatLength(props.scrollX);
111310
111373
  });
@@ -111449,6 +111512,7 @@ function useScroll(props, {
111449
111512
  }
111450
111513
  function handleTableBodyScroll(event) {
111451
111514
  props.onScroll?.(event);
111515
+ detectScrollEdges(event);
111452
111516
  if (scrollPartRef.value !== "head") {
111453
111517
  beforeNextFrameOnce(syncScrollState);
111454
111518
  } else {
@@ -111508,7 +111572,8 @@ function useScroll(props, {
111508
111572
  syncScrollState,
111509
111573
  handleTableBodyScroll,
111510
111574
  handleTableHeaderScroll,
111511
- setHeaderScrollLeft
111575
+ setHeaderScrollLeft,
111576
+ resetScrollEdgeState
111512
111577
  };
111513
111578
  }
111514
111579
 
@@ -112219,6 +112284,7 @@ var _UDataTable = defineComponent({
112219
112284
  handleTableHeaderScroll,
112220
112285
  syncScrollState,
112221
112286
  setHeaderScrollLeft,
112287
+ resetScrollEdgeState,
112222
112288
  leftActiveFixedColKeyRef,
112223
112289
  leftActiveFixedChildrenColKeysRef,
112224
112290
  rightActiveFixedColKeyRef,
@@ -112703,6 +112769,7 @@ var _UDataTable = defineComponent({
112703
112769
  scrollTo: (arg0, arg1) => {
112704
112770
  mainTableInstRef.value?.scrollTo(arg0, arg1);
112705
112771
  },
112772
+ resetScrollEdgeState,
112706
112773
  getData: () => {
112707
112774
  const originalData = props.data || [];
112708
112775
  const totalRowData = autoSummaryRef.value && rawPaginatedDataRef.value ? autoSummaryRef.value(rawPaginatedDataRef.value) : null;
@@ -118923,11 +118990,14 @@ var _UDatePicker = defineComponent({
118923
118990
  }
118924
118991
  }
118925
118992
  function handleClear() {
118926
- doUpdateValue(null, { doConfirm: false });
118927
118993
  doUpdateShow(false);
118928
118994
  inputInstRef.value?.deactivate?.();
118929
118995
  doClear();
118930
118996
  }
118997
+ function handleSelectionClear() {
118998
+ handleClear();
118999
+ doUpdateValue(null, { doConfirm: false });
119000
+ }
118931
119001
  function handlePanelClear() {
118932
119002
  inputInstRef.value?.deactivate?.();
118933
119003
  doClear();
@@ -119388,6 +119458,7 @@ var _UDatePicker = defineComponent({
119388
119458
  handleClickOutside,
119389
119459
  handleKeydown,
119390
119460
  handleClear,
119461
+ handleSelectionClear,
119391
119462
  handlePanelClear,
119392
119463
  handleTriggerClick,
119393
119464
  handleInputActivate,
@@ -119522,7 +119593,7 @@ var _UDatePicker = defineComponent({
119522
119593
  onFocus: this.handleInputFocus,
119523
119594
  onBlur: this.handleInputBlur,
119524
119595
  onClick: this.handleTriggerClick,
119525
- onClear: this.handleClear
119596
+ onClear: this.handleSelectionClear
119526
119597
  },
119527
119598
  {
119528
119599
  arrow: () => this.$slots.arrow?.()
@@ -121036,7 +121107,6 @@ var _UDatePickerV2 = defineComponent({
121036
121107
  }
121037
121108
  }
121038
121109
  function handleClear() {
121039
- doUpdateValue(null);
121040
121110
  doUpdateShow(false);
121041
121111
  singleInputValueRef.value = "";
121042
121112
  rangeStartInputValueRef.value = "";
@@ -121048,6 +121118,10 @@ var _UDatePickerV2 = defineComponent({
121048
121118
  hoverDateRef.value = null;
121049
121119
  }
121050
121120
  }
121121
+ function handleSelectionClear() {
121122
+ handleClear();
121123
+ doUpdateValue(null);
121124
+ }
121051
121125
  function handleSelect(value) {
121052
121126
  doUpdateValue(value);
121053
121127
  doUpdateShow(false);
@@ -121364,6 +121438,7 @@ var _UDatePickerV2 = defineComponent({
121364
121438
  handleInputBlur,
121365
121439
  handleClickOutside,
121366
121440
  handleClear,
121441
+ handleSelectionClear,
121367
121442
  handleSelect,
121368
121443
  handleKeydown,
121369
121444
  handleInputUpdateValue,
@@ -121453,7 +121528,7 @@ var _UDatePickerV2 = defineComponent({
121453
121528
  onFocus: this.handleInputFocus,
121454
121529
  onBlur: this.handleInputBlur,
121455
121530
  onClick: this.handleTriggerClick,
121456
- onClear: this.handleClear
121531
+ onClear: this.handleSelectionClear
121457
121532
  },
121458
121533
  {
121459
121534
  arrow: () => this.$slots.arrow?.()
@@ -155019,7 +155094,7 @@ function useThemeVars() {
155019
155094
  });
155020
155095
  }
155021
155096
 
155022
- var version = "2.4.4";
155097
+ var version = "2.4.6";
155023
155098
 
155024
155099
  function create({
155025
155100
  componentPrefix = "U",