@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.js CHANGED
@@ -17276,6 +17276,50 @@
17276
17276
  };
17277
17277
  }
17278
17278
 
17279
+ function useScrollEdgeDetector(getOptions) {
17280
+ let lastEdgeScrollTop = 0;
17281
+ let scrollTopFired = false;
17282
+ let scrollBottomFired = false;
17283
+ const detectScrollEdges = event => {
17284
+ const options = getOptions();
17285
+ if (!options.onScrollToTop && !options.onScrollToBottom) return;
17286
+ const target = event.target;
17287
+ if (!target) return;
17288
+ const {
17289
+ scrollTop,
17290
+ scrollHeight,
17291
+ clientHeight
17292
+ } = target;
17293
+ const scrollDirection = scrollTop > lastEdgeScrollTop ? "down" : "up";
17294
+ const nearTop = scrollTop <= options.scrollThreshold;
17295
+ const nearBottom = scrollHeight - (scrollTop + clientHeight) <= options.scrollThreshold;
17296
+ if (scrollTop > options.scrollThreshold) {
17297
+ scrollTopFired = false;
17298
+ }
17299
+ if (scrollHeight - (scrollTop + clientHeight) > options.scrollThreshold) {
17300
+ scrollBottomFired = false;
17301
+ }
17302
+ if (nearTop && scrollDirection === "up" && !scrollTopFired) {
17303
+ scrollTopFired = true;
17304
+ options.onScrollToTop?.();
17305
+ }
17306
+ if (nearBottom && scrollDirection === "down" && !scrollBottomFired) {
17307
+ scrollBottomFired = true;
17308
+ options.onScrollToBottom?.();
17309
+ }
17310
+ lastEdgeScrollTop = scrollTop;
17311
+ };
17312
+ const resetScrollEdgeState = () => {
17313
+ lastEdgeScrollTop = 0;
17314
+ scrollTopFired = false;
17315
+ scrollBottomFired = false;
17316
+ };
17317
+ return {
17318
+ detectScrollEdges,
17319
+ resetScrollEdgeState
17320
+ };
17321
+ }
17322
+
17279
17323
  const commonVars$a = {
17280
17324
  railInsetHorizontalBottom: "auto 2px 4px 2px",
17281
17325
  railInsetHorizontalTop: "4px 2px auto 2px",
@@ -17421,6 +17465,12 @@
17421
17465
  onScroll: Function,
17422
17466
  onWheel: Function,
17423
17467
  onResize: Function,
17468
+ onScrollToTop: Function,
17469
+ onScrollToBottom: Function,
17470
+ scrollThreshold: {
17471
+ type: Number,
17472
+ default: 5
17473
+ },
17424
17474
  internalOnUpdateScrollLeft: Function,
17425
17475
  internalHoistYRail: Boolean,
17426
17476
  yPlacement: {
@@ -17468,6 +17518,9 @@
17468
17518
  let memoMouseY = 0;
17469
17519
  let previousScrollHeight = 0;
17470
17520
  let previousScrollTop = 0;
17521
+ const { detectScrollEdges, resetScrollEdgeState } = useScrollEdgeDetector(
17522
+ () => props
17523
+ );
17471
17524
  const isIos = useIsIos();
17472
17525
  const themeRef = useTheme(
17473
17526
  "SafeTopScrollbar",
@@ -17720,6 +17773,7 @@
17720
17773
  previousScrollTop = container.scrollTop;
17721
17774
  }
17722
17775
  syncScrollState();
17776
+ detectScrollEdges(e);
17723
17777
  }
17724
17778
  function syncScrollState() {
17725
17779
  const { value: container } = mergedContainerRef;
@@ -18021,7 +18075,8 @@
18021
18075
  handleMouseEnterWrapper,
18022
18076
  handleMouseLeaveWrapper,
18023
18077
  getScrollState,
18024
- adjustScrollTop
18078
+ adjustScrollTop,
18079
+ resetScrollEdgeState
18025
18080
  };
18026
18081
  return {
18027
18082
  ...exposedMethods,
@@ -18348,6 +18403,12 @@
18348
18403
  onScroll: Function,
18349
18404
  onWheel: Function,
18350
18405
  onResize: Function,
18406
+ onScrollToTop: Function,
18407
+ onScrollToBottom: Function,
18408
+ scrollThreshold: {
18409
+ type: Number,
18410
+ default: 5
18411
+ },
18351
18412
  internalOnUpdateScrollLeft: Function,
18352
18413
  internalHoistYRail: Boolean,
18353
18414
  yPlacement: {
@@ -18389,6 +18450,9 @@
18389
18450
  let memoXLeft = 0;
18390
18451
  let memoMouseX = 0;
18391
18452
  let memoMouseY = 0;
18453
+ const { detectScrollEdges, resetScrollEdgeState } = useScrollEdgeDetector(
18454
+ () => props
18455
+ );
18392
18456
  const isIos = useIsIos();
18393
18457
  const themeRef = useTheme(
18394
18458
  "Scrollbar",
@@ -18623,6 +18687,7 @@
18623
18687
  if (onScroll)
18624
18688
  onScroll(e);
18625
18689
  syncScrollState();
18690
+ detectScrollEdges(e);
18626
18691
  }
18627
18692
  function syncScrollState() {
18628
18693
  const { value: container } = mergedContainerRef;
@@ -18895,7 +18960,8 @@
18895
18960
  sync,
18896
18961
  syncUnifiedContainer,
18897
18962
  handleMouseEnterWrapper,
18898
- handleMouseLeaveWrapper
18963
+ handleMouseLeaveWrapper,
18964
+ resetScrollEdgeState
18899
18965
  };
18900
18966
  return {
18901
18967
  ...exposedMethods,
@@ -22441,6 +22507,7 @@
22441
22507
  },
22442
22508
  dashed: Boolean,
22443
22509
  renderIcon: Function,
22510
+ iconProps: Object,
22444
22511
  iconPlacement: {
22445
22512
  type: String,
22446
22513
  default: "left"
@@ -22919,7 +22986,7 @@
22919
22986
  /* @__PURE__ */ vue.h(FadeInExpandTransition, { width: true }, {
22920
22987
  default: () => resolveWrappedSlot(
22921
22988
  this.$slots.icon,
22922
- (children2) => (this.loading || this.renderIcon || children2) && /* @__PURE__ */ vue.h(
22989
+ (children2) => (this.loading || children2 || this.renderIcon || this.iconProps) && /* @__PURE__ */ vue.h(
22923
22990
  "span",
22924
22991
  {
22925
22992
  class: `${mergedClsPrefix}-button__icon`,
@@ -22943,7 +23010,7 @@
22943
23010
  class: `${mergedClsPrefix}-icon-slot`,
22944
23011
  role: "none"
22945
23012
  },
22946
- this.renderIcon ? this.renderIcon() : children2
23013
+ children2 || (this.renderIcon ? this.renderIcon() : this.iconProps ? /* @__PURE__ */ vue.h(UIcon$1, { ...this.iconProps }) : null)
22947
23014
  )
22948
23015
  })
22949
23016
  )
@@ -51970,6 +52037,9 @@
51970
52037
  trigger: String,
51971
52038
  xScrollable: Boolean,
51972
52039
  onScroll: Function,
52040
+ onScrollToTop: Function,
52041
+ onScrollToBottom: Function,
52042
+ scrollThreshold: Number,
51973
52043
  size: Number
51974
52044
  };
51975
52045
  const SafeTopScrollbar = vue.defineComponent({
@@ -51993,6 +52063,9 @@
51993
52063
  },
51994
52064
  adjustScrollTop: (heightDiff) => {
51995
52065
  scrollbarInstRef.value?.adjustScrollTop(heightDiff);
52066
+ },
52067
+ resetScrollEdgeState: () => {
52068
+ scrollbarInstRef.value?.resetScrollEdgeState();
51996
52069
  }
51997
52070
  };
51998
52071
  return {
@@ -95212,9 +95285,6 @@ img.ProseMirror-separator {
95212
95285
  });
95213
95286
  const attachmentFileList = vue.ref([]);
95214
95287
  const uploadedAttachmentsMap = vue.ref(/* @__PURE__ */ new Map());
95215
- const lastScrollTop = vue.ref(0);
95216
- const scrollTopFired = vue.ref(false);
95217
- const scrollBottomFired = vue.ref(false);
95218
95288
  const editingMessage = vue.ref(null);
95219
95289
  const unreadMessagesCount = vue.computed(() => {
95220
95290
  if (!messagesRef.value)
@@ -95237,9 +95307,9 @@ img.ProseMirror-separator {
95237
95307
  const unreadBeforeRead = unreadCountsBeforeReadRef.value[newChat.id] || 0;
95238
95308
  unreadCountOnOpen.value = unreadBeforeRead;
95239
95309
  lastMessageId.value = null;
95240
- lastScrollTop.value = 0;
95241
- scrollTopFired.value = false;
95242
- scrollBottomFired.value = false;
95310
+ const scrollbarInst = messagesBodyRef.value;
95311
+ if (scrollbarInst && "resetScrollEdgeState" in scrollbarInst)
95312
+ scrollbarInst.resetScrollEdgeState();
95243
95313
  shouldScrollOnLoad.value = true;
95244
95314
  attachmentFileList.value = [];
95245
95315
  uploadedAttachmentsMap.value.clear();
@@ -95304,31 +95374,6 @@ img.ProseMirror-separator {
95304
95374
  const showUnreadNotification = vue.computed(() => {
95305
95375
  return hasUnreadMessages.value && showNotificationManually.value;
95306
95376
  });
95307
- const handleMessagesScroll = (e) => {
95308
- const target = e.target;
95309
- if (!target)
95310
- return;
95311
- const { scrollTop, scrollHeight, clientHeight } = target;
95312
- const threshold = 5;
95313
- const scrollDirection = scrollTop > lastScrollTop.value ? "down" : "up";
95314
- const nearTop = scrollTop <= threshold;
95315
- const nearBottom = scrollHeight - (scrollTop + clientHeight) <= threshold;
95316
- if (scrollTop > threshold) {
95317
- scrollTopFired.value = false;
95318
- }
95319
- if (scrollHeight - (scrollTop + clientHeight) > threshold) {
95320
- scrollBottomFired.value = false;
95321
- }
95322
- if (nearTop && scrollDirection === "up" && !scrollTopFired.value) {
95323
- scrollTopFired.value = true;
95324
- onMessagesScrollToTop?.value?.();
95325
- }
95326
- if (nearBottom && scrollDirection === "down" && !scrollBottomFired.value) {
95327
- scrollBottomFired.value = true;
95328
- onMessagesScrollToBottom?.value?.();
95329
- }
95330
- lastScrollTop.value = scrollTop;
95331
- };
95332
95377
  function scrollToBottom() {
95333
95378
  const element = messagesBodyRef.value;
95334
95379
  if (!element)
@@ -95572,7 +95617,8 @@ img.ProseMirror-separator {
95572
95617
  handleFooterUpdateValue,
95573
95618
  handleFooterSend,
95574
95619
  cancelEditingMessage,
95575
- handleMessagesScroll,
95620
+ onMessagesScrollToTop,
95621
+ onMessagesScrollToBottom,
95576
95622
  scrollToBottom
95577
95623
  };
95578
95624
  },
@@ -95593,7 +95639,8 @@ img.ProseMirror-separator {
95593
95639
  {
95594
95640
  ref: "messagesBodyRef",
95595
95641
  class: `${mergedClsPrefix}-chat-main__body`,
95596
- onScroll: this.handleMessagesScroll
95642
+ onScrollToTop: () => this.onMessagesScrollToTop?.(),
95643
+ onScrollToBottom: () => this.onMessagesScrollToBottom?.()
95597
95644
  },
95598
95645
  {
95599
95646
  default: () => /* @__PURE__ */ vue.h(
@@ -95651,6 +95698,9 @@ img.ProseMirror-separator {
95651
95698
  trigger: String,
95652
95699
  xScrollable: Boolean,
95653
95700
  onScroll: Function,
95701
+ onScrollToTop: Function,
95702
+ onScrollToBottom: Function,
95703
+ scrollThreshold: Number,
95654
95704
  contentClass: String,
95655
95705
  contentStyle: [Object, String],
95656
95706
  size: Number,
@@ -95674,6 +95724,9 @@ img.ProseMirror-separator {
95674
95724
  },
95675
95725
  scrollBy: (...args) => {
95676
95726
  scrollbarInstRef.value?.scrollBy(args[0], args[1]);
95727
+ },
95728
+ resetScrollEdgeState: () => {
95729
+ scrollbarInstRef.value?.resetScrollEdgeState();
95677
95730
  }
95678
95731
  };
95679
95732
  return {
@@ -106915,6 +106968,12 @@ img.ProseMirror-separator {
106915
106968
  "onUpdate:expandedRowKeys": [Function, Array],
106916
106969
  onUpdateExpandedRowKeys: [Function, Array],
106917
106970
  onScroll: Function,
106971
+ onScrollToTop: Function,
106972
+ onScrollToBottom: Function,
106973
+ scrollThreshold: {
106974
+ type: Number,
106975
+ default: 5
106976
+ },
106918
106977
  // deprecated
106919
106978
  onPageChange: [Function, Array],
106920
106979
  onPageSizeChange: [Function, Array],
@@ -111309,6 +111368,10 @@ img.ProseMirror-separator {
111309
111368
  const leftActiveFixedChildrenColKeysRef = vue.ref([]);
111310
111369
  const rightActiveFixedColKeyRef = vue.ref(null);
111311
111370
  const rightActiveFixedChildrenColKeysRef = vue.ref([]);
111371
+ const {
111372
+ detectScrollEdges,
111373
+ resetScrollEdgeState
111374
+ } = useScrollEdgeDetector(() => props);
111312
111375
  const styleScrollXRef = vue.computed(() => {
111313
111376
  return formatLength(props.scrollX);
111314
111377
  });
@@ -111453,6 +111516,7 @@ img.ProseMirror-separator {
111453
111516
  }
111454
111517
  function handleTableBodyScroll(event) {
111455
111518
  props.onScroll?.(event);
111519
+ detectScrollEdges(event);
111456
111520
  if (scrollPartRef.value !== "head") {
111457
111521
  beforeNextFrameOnce(syncScrollState);
111458
111522
  } else {
@@ -111512,7 +111576,8 @@ img.ProseMirror-separator {
111512
111576
  syncScrollState,
111513
111577
  handleTableBodyScroll,
111514
111578
  handleTableHeaderScroll,
111515
- setHeaderScrollLeft
111579
+ setHeaderScrollLeft,
111580
+ resetScrollEdgeState
111516
111581
  };
111517
111582
  }
111518
111583
 
@@ -112223,6 +112288,7 @@ img.ProseMirror-separator {
112223
112288
  handleTableHeaderScroll,
112224
112289
  syncScrollState,
112225
112290
  setHeaderScrollLeft,
112291
+ resetScrollEdgeState,
112226
112292
  leftActiveFixedColKeyRef,
112227
112293
  leftActiveFixedChildrenColKeysRef,
112228
112294
  rightActiveFixedColKeyRef,
@@ -112707,6 +112773,7 @@ img.ProseMirror-separator {
112707
112773
  scrollTo: (arg0, arg1) => {
112708
112774
  mainTableInstRef.value?.scrollTo(arg0, arg1);
112709
112775
  },
112776
+ resetScrollEdgeState,
112710
112777
  getData: () => {
112711
112778
  const originalData = props.data || [];
112712
112779
  const totalRowData = autoSummaryRef.value && rawPaginatedDataRef.value ? autoSummaryRef.value(rawPaginatedDataRef.value) : null;
@@ -118927,11 +118994,14 @@ img.ProseMirror-separator {
118927
118994
  }
118928
118995
  }
118929
118996
  function handleClear() {
118930
- doUpdateValue(null, { doConfirm: false });
118931
118997
  doUpdateShow(false);
118932
118998
  inputInstRef.value?.deactivate?.();
118933
118999
  doClear();
118934
119000
  }
119001
+ function handleSelectionClear() {
119002
+ handleClear();
119003
+ doUpdateValue(null, { doConfirm: false });
119004
+ }
118935
119005
  function handlePanelClear() {
118936
119006
  inputInstRef.value?.deactivate?.();
118937
119007
  doClear();
@@ -119392,6 +119462,7 @@ img.ProseMirror-separator {
119392
119462
  handleClickOutside,
119393
119463
  handleKeydown,
119394
119464
  handleClear,
119465
+ handleSelectionClear,
119395
119466
  handlePanelClear,
119396
119467
  handleTriggerClick,
119397
119468
  handleInputActivate,
@@ -119526,7 +119597,7 @@ img.ProseMirror-separator {
119526
119597
  onFocus: this.handleInputFocus,
119527
119598
  onBlur: this.handleInputBlur,
119528
119599
  onClick: this.handleTriggerClick,
119529
- onClear: this.handleClear
119600
+ onClear: this.handleSelectionClear
119530
119601
  },
119531
119602
  {
119532
119603
  arrow: () => this.$slots.arrow?.()
@@ -121040,7 +121111,6 @@ img.ProseMirror-separator {
121040
121111
  }
121041
121112
  }
121042
121113
  function handleClear() {
121043
- doUpdateValue(null);
121044
121114
  doUpdateShow(false);
121045
121115
  singleInputValueRef.value = "";
121046
121116
  rangeStartInputValueRef.value = "";
@@ -121052,6 +121122,10 @@ img.ProseMirror-separator {
121052
121122
  hoverDateRef.value = null;
121053
121123
  }
121054
121124
  }
121125
+ function handleSelectionClear() {
121126
+ handleClear();
121127
+ doUpdateValue(null);
121128
+ }
121055
121129
  function handleSelect(value) {
121056
121130
  doUpdateValue(value);
121057
121131
  doUpdateShow(false);
@@ -121368,6 +121442,7 @@ img.ProseMirror-separator {
121368
121442
  handleInputBlur,
121369
121443
  handleClickOutside,
121370
121444
  handleClear,
121445
+ handleSelectionClear,
121371
121446
  handleSelect,
121372
121447
  handleKeydown,
121373
121448
  handleInputUpdateValue,
@@ -121457,7 +121532,7 @@ img.ProseMirror-separator {
121457
121532
  onFocus: this.handleInputFocus,
121458
121533
  onBlur: this.handleInputBlur,
121459
121534
  onClick: this.handleTriggerClick,
121460
- onClear: this.handleClear
121535
+ onClear: this.handleSelectionClear
121461
121536
  },
121462
121537
  {
121463
121538
  arrow: () => this.$slots.arrow?.()
@@ -155023,7 +155098,7 @@ ${icon.label}`.toLowerCase()
155023
155098
  });
155024
155099
  }
155025
155100
 
155026
- var version = "2.4.4";
155101
+ var version = "2.4.6";
155027
155102
 
155028
155103
  function create({
155029
155104
  componentPrefix = "U",