@uzum-tech/ui 2.4.4 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +115 -41
- package/dist/index.mjs +115 -41
- package/dist/index.prod.js +3 -3
- package/dist/index.prod.mjs +3 -3
- package/es/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +21 -0
- package/es/_internal/safe-top-scrollbar/src/SafeTopScrollbar.mjs +14 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +21 -0
- package/es/_internal/scrollbar/src/Scrollbar.mjs +14 -1
- package/es/_internal/select-menu/src/SelectMenuParts/List.d.ts +2 -0
- package/es/_utils/composable/use-scroll-edge-detector.d.ts +9 -0
- package/es/_utils/composable/use-scroll-edge-detector.mjs +44 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/es/chat/src/Chat.d.ts +12 -24
- package/es/chat/src/ChatMainArea.d.ts +4 -7
- package/es/chat/src/ChatMainArea.mjs +12 -37
- package/es/chat/src/interface.d.ts +2 -0
- package/es/components.d.ts +88 -31
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/DataTable.mjs +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +7 -0
- package/es/data-table/src/interface.mjs +6 -0
- package/es/data-table/src/use-scroll.d.ts +1 -0
- package/es/data-table/src/use-scroll.mjs +8 -1
- package/es/date-picker/src/DatePicker.d.ts +11 -0
- package/es/date-picker/src/DatePicker.mjs +8 -4
- package/es/date-picker-v2/src/DatePickerV2.d.ts +1 -0
- package/es/date-picker-v2/src/DatePickerV2.mjs +6 -2
- package/es/date-picker-v2/src/composables/useCalendarScroll.d.ts +96 -0
- package/es/date-picker-v2/src/panel/CalendarPanel.d.ts +96 -0
- package/es/date-picker-v2/src/panel/CalendarRangePanel.d.ts +96 -0
- package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +2 -0
- package/es/infinite-scroll/src/InfiniteScroll.d.ts +2 -0
- package/es/input/src/Input.d.ts +2 -0
- package/es/kanban/src/Kanban.d.ts +1 -1
- package/es/layout/src/Layout.d.ts +4 -0
- package/es/layout/src/LayoutContent.d.ts +2 -0
- package/es/layout/src/LayoutSider.d.ts +2 -0
- package/es/legacy-transfer/src/TransferList.d.ts +2 -0
- package/es/log/src/Log.d.ts +2 -0
- package/es/modal/src/BodyWrapper.d.ts +2 -0
- package/es/modal-fullscreen/src/ModalFull.d.ts +2 -0
- package/es/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +13 -0
- package/es/safe-top-scrollbar/src/SafeTopScrollbar.mjs +7 -0
- package/es/scrollbar/src/Scrollbar.d.ts +13 -0
- package/es/scrollbar/src/Scrollbar.mjs +7 -0
- package/es/time-picker/src/TimePicker.d.ts +8 -0
- package/es/transfer/src/TransferList.d.ts +2 -0
- package/es/tree/src/Tree.d.ts +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +2 -0
- package/lib/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +21 -0
- package/lib/_internal/safe-top-scrollbar/src/SafeTopScrollbar.js +9 -2
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +21 -0
- package/lib/_internal/scrollbar/src/Scrollbar.js +9 -2
- package/lib/_internal/select-menu/src/SelectMenuParts/List.d.ts +2 -0
- package/lib/_utils/composable/use-scroll-edge-detector.d.ts +9 -0
- package/lib/_utils/composable/use-scroll-edge-detector.js +42 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/lib/chat/src/Chat.d.ts +12 -24
- package/lib/chat/src/ChatMainArea.d.ts +4 -7
- package/lib/chat/src/ChatMainArea.js +6 -36
- package/lib/chat/src/interface.d.ts +2 -0
- package/lib/components.d.ts +88 -31
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/DataTable.js +2 -1
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +7 -0
- package/lib/data-table/src/interface.js +4 -1
- package/lib/data-table/src/use-scroll.d.ts +1 -0
- package/lib/data-table/src/use-scroll.js +5 -1
- package/lib/date-picker/src/DatePicker.d.ts +11 -0
- package/lib/date-picker/src/DatePicker.js +6 -2
- package/lib/date-picker-v2/src/DatePickerV2.d.ts +1 -0
- package/lib/date-picker-v2/src/DatePickerV2.js +6 -2
- package/lib/date-picker-v2/src/composables/useCalendarScroll.d.ts +96 -0
- package/lib/date-picker-v2/src/panel/CalendarPanel.d.ts +96 -0
- package/lib/date-picker-v2/src/panel/CalendarRangePanel.d.ts +96 -0
- package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +2 -0
- package/lib/infinite-scroll/src/InfiniteScroll.d.ts +2 -0
- package/lib/input/src/Input.d.ts +2 -0
- package/lib/kanban/src/Kanban.d.ts +1 -1
- package/lib/layout/src/Layout.d.ts +4 -0
- package/lib/layout/src/LayoutContent.d.ts +2 -0
- package/lib/layout/src/LayoutSider.d.ts +2 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +2 -0
- package/lib/log/src/Log.d.ts +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +2 -0
- package/lib/modal-fullscreen/src/ModalFull.d.ts +2 -0
- package/lib/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +13 -0
- package/lib/safe-top-scrollbar/src/SafeTopScrollbar.js +5 -1
- package/lib/scrollbar/src/Scrollbar.d.ts +13 -0
- package/lib/scrollbar/src/Scrollbar.js +5 -1
- package/lib/time-picker/src/TimePicker.d.ts +8 -0
- package/lib/transfer/src/TransferList.d.ts +2 -0
- package/lib/tree/src/Tree.d.ts +2 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +2 -0
- package/package.json +1 -1
- package/web-types.json +61 -1
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,
|
|
@@ -51966,6 +52032,9 @@ const safeTopScrollbarProps = {
|
|
|
51966
52032
|
trigger: String,
|
|
51967
52033
|
xScrollable: Boolean,
|
|
51968
52034
|
onScroll: Function,
|
|
52035
|
+
onScrollToTop: Function,
|
|
52036
|
+
onScrollToBottom: Function,
|
|
52037
|
+
scrollThreshold: Number,
|
|
51969
52038
|
size: Number
|
|
51970
52039
|
};
|
|
51971
52040
|
const SafeTopScrollbar = defineComponent({
|
|
@@ -51989,6 +52058,9 @@ const SafeTopScrollbar = defineComponent({
|
|
|
51989
52058
|
},
|
|
51990
52059
|
adjustScrollTop: (heightDiff) => {
|
|
51991
52060
|
scrollbarInstRef.value?.adjustScrollTop(heightDiff);
|
|
52061
|
+
},
|
|
52062
|
+
resetScrollEdgeState: () => {
|
|
52063
|
+
scrollbarInstRef.value?.resetScrollEdgeState();
|
|
51992
52064
|
}
|
|
51993
52065
|
};
|
|
51994
52066
|
return {
|
|
@@ -95208,9 +95280,6 @@ var _UChatMainArea = defineComponent({
|
|
|
95208
95280
|
});
|
|
95209
95281
|
const attachmentFileList = ref([]);
|
|
95210
95282
|
const uploadedAttachmentsMap = ref(/* @__PURE__ */ new Map());
|
|
95211
|
-
const lastScrollTop = ref(0);
|
|
95212
|
-
const scrollTopFired = ref(false);
|
|
95213
|
-
const scrollBottomFired = ref(false);
|
|
95214
95283
|
const editingMessage = ref(null);
|
|
95215
95284
|
const unreadMessagesCount = computed(() => {
|
|
95216
95285
|
if (!messagesRef.value)
|
|
@@ -95233,9 +95302,9 @@ var _UChatMainArea = defineComponent({
|
|
|
95233
95302
|
const unreadBeforeRead = unreadCountsBeforeReadRef.value[newChat.id] || 0;
|
|
95234
95303
|
unreadCountOnOpen.value = unreadBeforeRead;
|
|
95235
95304
|
lastMessageId.value = null;
|
|
95236
|
-
|
|
95237
|
-
|
|
95238
|
-
|
|
95305
|
+
const scrollbarInst = messagesBodyRef.value;
|
|
95306
|
+
if (scrollbarInst && "resetScrollEdgeState" in scrollbarInst)
|
|
95307
|
+
scrollbarInst.resetScrollEdgeState();
|
|
95239
95308
|
shouldScrollOnLoad.value = true;
|
|
95240
95309
|
attachmentFileList.value = [];
|
|
95241
95310
|
uploadedAttachmentsMap.value.clear();
|
|
@@ -95300,31 +95369,6 @@ var _UChatMainArea = defineComponent({
|
|
|
95300
95369
|
const showUnreadNotification = computed(() => {
|
|
95301
95370
|
return hasUnreadMessages.value && showNotificationManually.value;
|
|
95302
95371
|
});
|
|
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
95372
|
function scrollToBottom() {
|
|
95329
95373
|
const element = messagesBodyRef.value;
|
|
95330
95374
|
if (!element)
|
|
@@ -95568,7 +95612,8 @@ var _UChatMainArea = defineComponent({
|
|
|
95568
95612
|
handleFooterUpdateValue,
|
|
95569
95613
|
handleFooterSend,
|
|
95570
95614
|
cancelEditingMessage,
|
|
95571
|
-
|
|
95615
|
+
onMessagesScrollToTop,
|
|
95616
|
+
onMessagesScrollToBottom,
|
|
95572
95617
|
scrollToBottom
|
|
95573
95618
|
};
|
|
95574
95619
|
},
|
|
@@ -95589,7 +95634,8 @@ var _UChatMainArea = defineComponent({
|
|
|
95589
95634
|
{
|
|
95590
95635
|
ref: "messagesBodyRef",
|
|
95591
95636
|
class: `${mergedClsPrefix}-chat-main__body`,
|
|
95592
|
-
|
|
95637
|
+
onScrollToTop: () => this.onMessagesScrollToTop?.(),
|
|
95638
|
+
onScrollToBottom: () => this.onMessagesScrollToBottom?.()
|
|
95593
95639
|
},
|
|
95594
95640
|
{
|
|
95595
95641
|
default: () => /* @__PURE__ */ h$1(
|
|
@@ -95647,6 +95693,9 @@ const scrollbarProps = {
|
|
|
95647
95693
|
trigger: String,
|
|
95648
95694
|
xScrollable: Boolean,
|
|
95649
95695
|
onScroll: Function,
|
|
95696
|
+
onScrollToTop: Function,
|
|
95697
|
+
onScrollToBottom: Function,
|
|
95698
|
+
scrollThreshold: Number,
|
|
95650
95699
|
contentClass: String,
|
|
95651
95700
|
contentStyle: [Object, String],
|
|
95652
95701
|
size: Number,
|
|
@@ -95670,6 +95719,9 @@ const Scrollbar = defineComponent({
|
|
|
95670
95719
|
},
|
|
95671
95720
|
scrollBy: (...args) => {
|
|
95672
95721
|
scrollbarInstRef.value?.scrollBy(args[0], args[1]);
|
|
95722
|
+
},
|
|
95723
|
+
resetScrollEdgeState: () => {
|
|
95724
|
+
scrollbarInstRef.value?.resetScrollEdgeState();
|
|
95673
95725
|
}
|
|
95674
95726
|
};
|
|
95675
95727
|
return {
|
|
@@ -106911,6 +106963,12 @@ const dataTableProps = {
|
|
|
106911
106963
|
"onUpdate:expandedRowKeys": [Function, Array],
|
|
106912
106964
|
onUpdateExpandedRowKeys: [Function, Array],
|
|
106913
106965
|
onScroll: Function,
|
|
106966
|
+
onScrollToTop: Function,
|
|
106967
|
+
onScrollToBottom: Function,
|
|
106968
|
+
scrollThreshold: {
|
|
106969
|
+
type: Number,
|
|
106970
|
+
default: 5
|
|
106971
|
+
},
|
|
106914
106972
|
// deprecated
|
|
106915
106973
|
onPageChange: [Function, Array],
|
|
106916
106974
|
onPageSizeChange: [Function, Array],
|
|
@@ -111305,6 +111363,10 @@ function useScroll(props, {
|
|
|
111305
111363
|
const leftActiveFixedChildrenColKeysRef = ref([]);
|
|
111306
111364
|
const rightActiveFixedColKeyRef = ref(null);
|
|
111307
111365
|
const rightActiveFixedChildrenColKeysRef = ref([]);
|
|
111366
|
+
const {
|
|
111367
|
+
detectScrollEdges,
|
|
111368
|
+
resetScrollEdgeState
|
|
111369
|
+
} = useScrollEdgeDetector(() => props);
|
|
111308
111370
|
const styleScrollXRef = computed(() => {
|
|
111309
111371
|
return formatLength(props.scrollX);
|
|
111310
111372
|
});
|
|
@@ -111449,6 +111511,7 @@ function useScroll(props, {
|
|
|
111449
111511
|
}
|
|
111450
111512
|
function handleTableBodyScroll(event) {
|
|
111451
111513
|
props.onScroll?.(event);
|
|
111514
|
+
detectScrollEdges(event);
|
|
111452
111515
|
if (scrollPartRef.value !== "head") {
|
|
111453
111516
|
beforeNextFrameOnce(syncScrollState);
|
|
111454
111517
|
} else {
|
|
@@ -111508,7 +111571,8 @@ function useScroll(props, {
|
|
|
111508
111571
|
syncScrollState,
|
|
111509
111572
|
handleTableBodyScroll,
|
|
111510
111573
|
handleTableHeaderScroll,
|
|
111511
|
-
setHeaderScrollLeft
|
|
111574
|
+
setHeaderScrollLeft,
|
|
111575
|
+
resetScrollEdgeState
|
|
111512
111576
|
};
|
|
111513
111577
|
}
|
|
111514
111578
|
|
|
@@ -112219,6 +112283,7 @@ var _UDataTable = defineComponent({
|
|
|
112219
112283
|
handleTableHeaderScroll,
|
|
112220
112284
|
syncScrollState,
|
|
112221
112285
|
setHeaderScrollLeft,
|
|
112286
|
+
resetScrollEdgeState,
|
|
112222
112287
|
leftActiveFixedColKeyRef,
|
|
112223
112288
|
leftActiveFixedChildrenColKeysRef,
|
|
112224
112289
|
rightActiveFixedColKeyRef,
|
|
@@ -112703,6 +112768,7 @@ var _UDataTable = defineComponent({
|
|
|
112703
112768
|
scrollTo: (arg0, arg1) => {
|
|
112704
112769
|
mainTableInstRef.value?.scrollTo(arg0, arg1);
|
|
112705
112770
|
},
|
|
112771
|
+
resetScrollEdgeState,
|
|
112706
112772
|
getData: () => {
|
|
112707
112773
|
const originalData = props.data || [];
|
|
112708
112774
|
const totalRowData = autoSummaryRef.value && rawPaginatedDataRef.value ? autoSummaryRef.value(rawPaginatedDataRef.value) : null;
|
|
@@ -118923,11 +118989,14 @@ var _UDatePicker = defineComponent({
|
|
|
118923
118989
|
}
|
|
118924
118990
|
}
|
|
118925
118991
|
function handleClear() {
|
|
118926
|
-
doUpdateValue(null, { doConfirm: false });
|
|
118927
118992
|
doUpdateShow(false);
|
|
118928
118993
|
inputInstRef.value?.deactivate?.();
|
|
118929
118994
|
doClear();
|
|
118930
118995
|
}
|
|
118996
|
+
function handleSelectionClear() {
|
|
118997
|
+
handleClear();
|
|
118998
|
+
doUpdateValue(null, { doConfirm: false });
|
|
118999
|
+
}
|
|
118931
119000
|
function handlePanelClear() {
|
|
118932
119001
|
inputInstRef.value?.deactivate?.();
|
|
118933
119002
|
doClear();
|
|
@@ -119388,6 +119457,7 @@ var _UDatePicker = defineComponent({
|
|
|
119388
119457
|
handleClickOutside,
|
|
119389
119458
|
handleKeydown,
|
|
119390
119459
|
handleClear,
|
|
119460
|
+
handleSelectionClear,
|
|
119391
119461
|
handlePanelClear,
|
|
119392
119462
|
handleTriggerClick,
|
|
119393
119463
|
handleInputActivate,
|
|
@@ -119522,7 +119592,7 @@ var _UDatePicker = defineComponent({
|
|
|
119522
119592
|
onFocus: this.handleInputFocus,
|
|
119523
119593
|
onBlur: this.handleInputBlur,
|
|
119524
119594
|
onClick: this.handleTriggerClick,
|
|
119525
|
-
onClear: this.
|
|
119595
|
+
onClear: this.handleSelectionClear
|
|
119526
119596
|
},
|
|
119527
119597
|
{
|
|
119528
119598
|
arrow: () => this.$slots.arrow?.()
|
|
@@ -121036,7 +121106,6 @@ var _UDatePickerV2 = defineComponent({
|
|
|
121036
121106
|
}
|
|
121037
121107
|
}
|
|
121038
121108
|
function handleClear() {
|
|
121039
|
-
doUpdateValue(null);
|
|
121040
121109
|
doUpdateShow(false);
|
|
121041
121110
|
singleInputValueRef.value = "";
|
|
121042
121111
|
rangeStartInputValueRef.value = "";
|
|
@@ -121048,6 +121117,10 @@ var _UDatePickerV2 = defineComponent({
|
|
|
121048
121117
|
hoverDateRef.value = null;
|
|
121049
121118
|
}
|
|
121050
121119
|
}
|
|
121120
|
+
function handleSelectionClear() {
|
|
121121
|
+
handleClear();
|
|
121122
|
+
doUpdateValue(null);
|
|
121123
|
+
}
|
|
121051
121124
|
function handleSelect(value) {
|
|
121052
121125
|
doUpdateValue(value);
|
|
121053
121126
|
doUpdateShow(false);
|
|
@@ -121364,6 +121437,7 @@ var _UDatePickerV2 = defineComponent({
|
|
|
121364
121437
|
handleInputBlur,
|
|
121365
121438
|
handleClickOutside,
|
|
121366
121439
|
handleClear,
|
|
121440
|
+
handleSelectionClear,
|
|
121367
121441
|
handleSelect,
|
|
121368
121442
|
handleKeydown,
|
|
121369
121443
|
handleInputUpdateValue,
|
|
@@ -121453,7 +121527,7 @@ var _UDatePickerV2 = defineComponent({
|
|
|
121453
121527
|
onFocus: this.handleInputFocus,
|
|
121454
121528
|
onBlur: this.handleInputBlur,
|
|
121455
121529
|
onClick: this.handleTriggerClick,
|
|
121456
|
-
onClear: this.
|
|
121530
|
+
onClear: this.handleSelectionClear
|
|
121457
121531
|
},
|
|
121458
121532
|
{
|
|
121459
121533
|
arrow: () => this.$slots.arrow?.()
|
|
@@ -155019,7 +155093,7 @@ function useThemeVars() {
|
|
|
155019
155093
|
});
|
|
155020
155094
|
}
|
|
155021
155095
|
|
|
155022
|
-
var version = "2.4.
|
|
155096
|
+
var version = "2.4.5";
|
|
155023
155097
|
|
|
155024
155098
|
function create({
|
|
155025
155099
|
componentPrefix = "U",
|