@uzum-tech/ui 2.4.3 → 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 +274 -84
- package/dist/index.mjs +274 -84
- 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 +109 -31
- package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +2 -2
- package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.mjs +1 -1
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/DataTable.mjs +18 -13
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +160 -151
- package/es/data-table/src/interface.mjs +13 -7
- package/es/data-table/src/use-column-settings.mjs +4 -1
- package/es/data-table/src/use-resizable.d.ts +2 -0
- package/es/data-table/src/use-resizable.mjs +9 -1
- 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/locales/common/ruRU.mjs +1 -1
- 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/upload/src/Upload.d.ts +21 -0
- package/es/upload/src/Upload.mjs +7 -1
- package/es/upload/src/UploadFile.d.ts +6 -0
- package/es/upload/src/UploadFile.mjs +12 -8
- package/es/upload/src/UploadFileList.mjs +3 -2
- package/es/upload/src/UploadProgress.d.ts +6 -0
- package/es/upload/src/interface.d.ts +10 -1
- package/es/upload/src/styles/index.cssr.mjs +84 -1
- package/es/upload/src/useUploadActionsRender.mjs +10 -5
- package/es/upload/styles/light.d.ts +6 -0
- package/es/upload/styles/light.mjs +4 -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 +109 -31
- package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +2 -2
- package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.js +1 -1
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/DataTable.js +16 -14
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +160 -151
- package/lib/data-table/src/interface.js +11 -8
- package/lib/data-table/src/use-column-settings.js +6 -1
- package/lib/data-table/src/use-resizable.d.ts +2 -0
- package/lib/data-table/src/use-resizable.js +9 -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/locales/common/ruRU.js +1 -1
- 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/upload/src/Upload.d.ts +21 -0
- package/lib/upload/src/Upload.js +5 -2
- package/lib/upload/src/UploadFile.d.ts +6 -0
- package/lib/upload/src/UploadFile.js +19 -11
- package/lib/upload/src/UploadFileList.js +5 -1
- package/lib/upload/src/UploadProgress.d.ts +6 -0
- package/lib/upload/src/interface.d.ts +10 -1
- package/lib/upload/src/styles/index.cssr.js +84 -1
- package/lib/upload/src/useUploadActionsRender.js +17 -7
- package/lib/upload/styles/light.d.ts +6 -0
- package/lib/upload/styles/light.js +4 -1
- 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 +73 -10
package/dist/index.js
CHANGED
|
@@ -11554,7 +11554,7 @@
|
|
|
11554
11554
|
uncheckTableAll: "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435 \u0432 \u0442\u0430\u0431\u043B\u0438\u0446\u0435",
|
|
11555
11555
|
confirm: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",
|
|
11556
11556
|
clear: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",
|
|
11557
|
-
columnSettingsTitle: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\
|
|
11557
|
+
columnSettingsTitle: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0442\u0430\u0431\u043B\u0438\u0446\u044B",
|
|
11558
11558
|
columnSettingsButton: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0442\u0430\u0431\u043B\u0438\u0446\u044B",
|
|
11559
11559
|
columnSettingsSubtitle: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u043E\u043B\u043E\u043D\u043A\u0438 \u0438 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u0435 \u0438\u0445 \u043F\u043E\u0440\u044F\u0434\u043E\u043A",
|
|
11560
11560
|
columnSettingsSelectAll: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",
|
|
@@ -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,
|
|
@@ -51970,6 +52036,9 @@
|
|
|
51970
52036
|
trigger: String,
|
|
51971
52037
|
xScrollable: Boolean,
|
|
51972
52038
|
onScroll: Function,
|
|
52039
|
+
onScrollToTop: Function,
|
|
52040
|
+
onScrollToBottom: Function,
|
|
52041
|
+
scrollThreshold: Number,
|
|
51973
52042
|
size: Number
|
|
51974
52043
|
};
|
|
51975
52044
|
const SafeTopScrollbar = vue.defineComponent({
|
|
@@ -51993,6 +52062,9 @@
|
|
|
51993
52062
|
},
|
|
51994
52063
|
adjustScrollTop: (heightDiff) => {
|
|
51995
52064
|
scrollbarInstRef.value?.adjustScrollTop(heightDiff);
|
|
52065
|
+
},
|
|
52066
|
+
resetScrollEdgeState: () => {
|
|
52067
|
+
scrollbarInstRef.value?.resetScrollEdgeState();
|
|
51996
52068
|
}
|
|
51997
52069
|
};
|
|
51998
52070
|
return {
|
|
@@ -52345,6 +52417,7 @@
|
|
|
52345
52417
|
fontBodyMedium,
|
|
52346
52418
|
lineHeightBodyMedium,
|
|
52347
52419
|
borderRadiusLarge,
|
|
52420
|
+
borderRadiusSmall,
|
|
52348
52421
|
containerSecondary,
|
|
52349
52422
|
brandPrimary300,
|
|
52350
52423
|
brandPrimary500
|
|
@@ -52377,6 +52450,9 @@
|
|
|
52377
52450
|
widthSmall: "140px",
|
|
52378
52451
|
widthMedium: "auto",
|
|
52379
52452
|
widthLarge: "auto",
|
|
52453
|
+
previewCardWidth: "80px",
|
|
52454
|
+
previewCardHeight: "72px",
|
|
52455
|
+
previewCardBorderRadius: borderRadiusSmall,
|
|
52380
52456
|
containerSecondary,
|
|
52381
52457
|
brandPrimary300,
|
|
52382
52458
|
elementsQuaternary
|
|
@@ -52518,6 +52594,10 @@
|
|
|
52518
52594
|
grid-template-columns: repeat(auto-fill, 238px);
|
|
52519
52595
|
grid-gap: 8px;
|
|
52520
52596
|
margin-top: 0;
|
|
52597
|
+
`), cM("preview-card-grid", `
|
|
52598
|
+
display: grid;
|
|
52599
|
+
grid-template-columns: repeat(auto-fill, var(--u-upload-preview-card-width));
|
|
52600
|
+
grid-gap: 8px;
|
|
52521
52601
|
`), cB("upload-file", `
|
|
52522
52602
|
display: block;
|
|
52523
52603
|
box-sizing: border-box;
|
|
@@ -52536,6 +52616,11 @@
|
|
|
52536
52616
|
`), cE("action", `
|
|
52537
52617
|
opacity: 1;
|
|
52538
52618
|
z-index: 10;
|
|
52619
|
+
`)])]), cM("preview-card-type", [cB("upload-file-info", [cE("preview", `
|
|
52620
|
+
filter: blur(3px);
|
|
52621
|
+
`), cE("action", `
|
|
52622
|
+
opacity: 1;
|
|
52623
|
+
z-index: 10;
|
|
52539
52624
|
`)])])]), cM("text-type", `
|
|
52540
52625
|
border: var(--u-item-border-image-card);
|
|
52541
52626
|
margin-bottom: 12px;
|
|
@@ -52620,6 +52705,8 @@
|
|
|
52620
52705
|
background-color: var(--u-item-color-hover-error);
|
|
52621
52706
|
`), cB("upload-file-info", [cE("name", "color: var(--u-item-text-color-error);"), cE("thumbnail", "color: var(--u-item-text-color-error);")]), cM("image-card-type", `
|
|
52622
52707
|
border: var(--u-item-border-image-card-error);
|
|
52708
|
+
`), cM("preview-card-type", `
|
|
52709
|
+
border: var(--u-item-border-image-card-error);
|
|
52623
52710
|
`)]), cM("with-url", `
|
|
52624
52711
|
cursor: pointer;
|
|
52625
52712
|
`, [cB("upload-file-info", [cE("name", `
|
|
@@ -52776,7 +52863,79 @@
|
|
|
52776
52863
|
`), c$1(":nth-child(3)", `
|
|
52777
52864
|
font-size: 12px;
|
|
52778
52865
|
color: var(--u-item-text-color-success);
|
|
52779
|
-
`)])])
|
|
52866
|
+
`)])]), cM("preview-card-type", `
|
|
52867
|
+
position: relative;
|
|
52868
|
+
width: var(--u-upload-preview-card-width);
|
|
52869
|
+
height: var(--u-upload-preview-card-height);
|
|
52870
|
+
border: var(--u-item-border-image-card);
|
|
52871
|
+
border-radius: var(--u-upload-preview-card-border-radius);
|
|
52872
|
+
background-color: var(--u-upload-info-bg-color);
|
|
52873
|
+
overflow: hidden;
|
|
52874
|
+
transition: border-color .3s var(--u-bezier), background-color .3s var(--u-bezier);
|
|
52875
|
+
`, [cB("upload-file-overlay", `
|
|
52876
|
+
border-radius: inherit;
|
|
52877
|
+
`), cB("upload-file-info", `
|
|
52878
|
+
padding-top: 0;
|
|
52879
|
+
padding-bottom: 0;
|
|
52880
|
+
width: 100%;
|
|
52881
|
+
height: 100%;
|
|
52882
|
+
justify-content: center;
|
|
52883
|
+
`, [cE("thumbnail", `
|
|
52884
|
+
width: 100%;
|
|
52885
|
+
height: 100%;
|
|
52886
|
+
cursor: pointer;
|
|
52887
|
+
`, [cM("icon", `
|
|
52888
|
+
display: flex;
|
|
52889
|
+
align-items: flex-start;
|
|
52890
|
+
justify-content: center;
|
|
52891
|
+
background-color: transparent;
|
|
52892
|
+
border-radius: 0;
|
|
52893
|
+
margin-right: 0;
|
|
52894
|
+
width: 100%;
|
|
52895
|
+
height: 100%;
|
|
52896
|
+
`)]), cE("preview", `
|
|
52897
|
+
flex-shrink: 0;
|
|
52898
|
+
width: 56px;
|
|
52899
|
+
height: 67px;
|
|
52900
|
+
margin-top: 16px;
|
|
52901
|
+
border-radius: 7px;
|
|
52902
|
+
transition: filter .2s var(--u-bezier);
|
|
52903
|
+
`, [cB("upload-file-info__preview--ext", `
|
|
52904
|
+
font-size: 8px;
|
|
52905
|
+
line-height: 10px;
|
|
52906
|
+
font-weight: 700;
|
|
52907
|
+
top: 6px;
|
|
52908
|
+
left: 6px;
|
|
52909
|
+
`), cB("upload-file-info__preview--content", `
|
|
52910
|
+
top: 29px;
|
|
52911
|
+
left: 6px;
|
|
52912
|
+
width: 43px;
|
|
52913
|
+
height: 3px;
|
|
52914
|
+
border-radius: 2px;
|
|
52915
|
+
`, [c$1("&::before", `
|
|
52916
|
+
top: -6px;
|
|
52917
|
+
width: 43px;
|
|
52918
|
+
height: 3px;
|
|
52919
|
+
border-radius: 2px;
|
|
52920
|
+
`), c$1("&::after", `
|
|
52921
|
+
top: 6px;
|
|
52922
|
+
width: 24px;
|
|
52923
|
+
height: 3px;
|
|
52924
|
+
border-radius: 2px;
|
|
52925
|
+
`)])]), cE("action", `
|
|
52926
|
+
padding-top: 0;
|
|
52927
|
+
padding-bottom: 0;
|
|
52928
|
+
z-index: 2;
|
|
52929
|
+
`, [cB("button", `
|
|
52930
|
+
width: 24px;
|
|
52931
|
+
height: 24px;
|
|
52932
|
+
min-width: 24px;
|
|
52933
|
+
padding: 0;
|
|
52934
|
+
border-radius: 50%;
|
|
52935
|
+
box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.08);
|
|
52936
|
+
`, [cB("base-icon", `
|
|
52937
|
+
font-size: 16px;
|
|
52938
|
+
`)])])])])])]), cB("upload-file-input", `
|
|
52780
52939
|
display: block;
|
|
52781
52940
|
width: 0;
|
|
52782
52941
|
height: 0;
|
|
@@ -57472,8 +57631,13 @@
|
|
|
57472
57631
|
return i === -1 || i === name.length - 1 ? "" : name.slice(i + 1);
|
|
57473
57632
|
};
|
|
57474
57633
|
const isImageType = ["image", "image-card"].includes(listType);
|
|
57634
|
+
const isPreviewCardType = listType === "preview-card";
|
|
57475
57635
|
const fileExt = getExt(file.name);
|
|
57476
57636
|
const capitalizedExt = capitalizeFirstLetter(fileExt);
|
|
57637
|
+
const showRetry = showRetryButton && !disabled;
|
|
57638
|
+
const showDownload = showDownloadButton && !isPreviewCardType;
|
|
57639
|
+
const showRemoveOrCancel = (showRemoveButton || showCancelButton) && !disabled && !(isPreviewCardType && showRetry);
|
|
57640
|
+
const showPreview = showPreviewButton && !(isPreviewCardType && (showRetry || showRemoveOrCancel));
|
|
57477
57641
|
const fallbackIcon = vue.h(
|
|
57478
57642
|
"div",
|
|
57479
57643
|
{
|
|
@@ -57510,11 +57674,11 @@
|
|
|
57510
57674
|
{
|
|
57511
57675
|
class: [
|
|
57512
57676
|
`${clsPrefix}-upload-file-info__action`,
|
|
57513
|
-
`${clsPrefix}-upload-file--${isImageType ? "image-card" : "text"}-type`
|
|
57677
|
+
`${clsPrefix}-upload-file--${isImageType ? "image-card" : isPreviewCardType ? "preview-card" : "text"}-type`
|
|
57514
57678
|
]
|
|
57515
57679
|
},
|
|
57516
57680
|
[
|
|
57517
|
-
|
|
57681
|
+
showPreview && vue.h(
|
|
57518
57682
|
Button,
|
|
57519
57683
|
{
|
|
57520
57684
|
key: "preview",
|
|
@@ -57529,7 +57693,7 @@
|
|
|
57529
57693
|
icon: () => vue.h(UBaseIcon, { clsPrefix }, { default: () => vue.h(EyeIcon) })
|
|
57530
57694
|
}
|
|
57531
57695
|
),
|
|
57532
|
-
|
|
57696
|
+
showRemoveOrCancel && vue.h(
|
|
57533
57697
|
Button,
|
|
57534
57698
|
{
|
|
57535
57699
|
key: "cancelOrTrash",
|
|
@@ -57558,7 +57722,7 @@
|
|
|
57558
57722
|
)
|
|
57559
57723
|
}
|
|
57560
57724
|
),
|
|
57561
|
-
|
|
57725
|
+
showRetry && vue.h(
|
|
57562
57726
|
Button,
|
|
57563
57727
|
{
|
|
57564
57728
|
key: "retry",
|
|
@@ -57573,7 +57737,7 @@
|
|
|
57573
57737
|
icon: () => vue.h(UBaseIcon, { clsPrefix }, { default: () => vue.h(RetryIcon) })
|
|
57574
57738
|
}
|
|
57575
57739
|
),
|
|
57576
|
-
|
|
57740
|
+
showDownload && vue.h(
|
|
57577
57741
|
Button,
|
|
57578
57742
|
{
|
|
57579
57743
|
key: "download",
|
|
@@ -57596,7 +57760,8 @@
|
|
|
57596
57760
|
const buttonThemeOverrides = {
|
|
57597
57761
|
paddingMedium: "0 3px",
|
|
57598
57762
|
heightMedium: "24px",
|
|
57599
|
-
iconSizeMedium: "18px"
|
|
57763
|
+
iconSizeMedium: "18px",
|
|
57764
|
+
textColor: "#101010"
|
|
57600
57765
|
};
|
|
57601
57766
|
var UUploadFile = vue.defineComponent({
|
|
57602
57767
|
name: "UploadFile",
|
|
@@ -57672,7 +57837,7 @@
|
|
|
57672
57837
|
} = props;
|
|
57673
57838
|
if (!["finished"].includes(status))
|
|
57674
57839
|
return false;
|
|
57675
|
-
if (listType === "preview-list") {
|
|
57840
|
+
if (listType === "preview-list" || listType === "preview-card") {
|
|
57676
57841
|
return UUpload.isFilePreviewable(props.file);
|
|
57677
57842
|
}
|
|
57678
57843
|
return !!mergedThumbnailUrlRef.value && listType === "image-card";
|
|
@@ -57754,7 +57919,7 @@
|
|
|
57754
57919
|
} = UUpload;
|
|
57755
57920
|
if (onPreview) {
|
|
57756
57921
|
onPreview(props.file);
|
|
57757
|
-
} else if (props.listType === "preview-list") {
|
|
57922
|
+
} else if (props.listType === "preview-list" || props.listType === "preview-card") {
|
|
57758
57923
|
UUpload.openFilePreview(props.file);
|
|
57759
57924
|
} else if (props.listType === "image-card") {
|
|
57760
57925
|
const { value } = imageRef;
|
|
@@ -57828,10 +57993,11 @@
|
|
|
57828
57993
|
_USpin,
|
|
57829
57994
|
{
|
|
57830
57995
|
color: "tertiary",
|
|
57831
|
-
|
|
57996
|
+
size: listType === "preview-card" ? 24 : void 0,
|
|
57997
|
+
description: listType === "preview-card" ? void 0 : this.localeRef.uploading,
|
|
57832
57998
|
show: this.showProgress,
|
|
57833
57999
|
class: [
|
|
57834
|
-
!this.vertical && !imageCardTypes.includes(listType) && `${clsPrefix}-upload-file-loader--default`
|
|
58000
|
+
!this.vertical && !imageCardTypes.includes(listType) && listType !== "preview-card" && `${clsPrefix}-upload-file-loader--default`
|
|
57835
58001
|
]
|
|
57836
58002
|
},
|
|
57837
58003
|
{
|
|
@@ -57842,8 +58008,9 @@
|
|
|
57842
58008
|
`${clsPrefix}-upload-file`,
|
|
57843
58009
|
`${clsPrefix}-upload-file--${this.progressStatus}-status`,
|
|
57844
58010
|
file.url && file.status !== "error" && imageCardTypes.includes(listType) && `${clsPrefix}-upload-file--with-url`,
|
|
57845
|
-
`${clsPrefix}-upload-file--${listType === "image" || listType === "image-card" ? "image-card" : "text"}-type`,
|
|
57846
|
-
listType === "preview-list" && `${clsPrefix}-upload-file--preview-list-type
|
|
58011
|
+
listType !== "preview-card" && `${clsPrefix}-upload-file--${listType === "image" || listType === "image-card" ? "image-card" : "text"}-type`,
|
|
58012
|
+
listType === "preview-list" && `${clsPrefix}-upload-file--preview-list-type`,
|
|
58013
|
+
listType === "preview-card" && `${clsPrefix}-upload-file--preview-card-type`
|
|
57847
58014
|
]
|
|
57848
58015
|
},
|
|
57849
58016
|
/* @__PURE__ */ vue.h(
|
|
@@ -57854,8 +58021,8 @@
|
|
|
57854
58021
|
imageCardTypes.includes(listType) && `${clsPrefix}-upload-file-info--vertical`
|
|
57855
58022
|
]
|
|
57856
58023
|
},
|
|
57857
|
-
icon,
|
|
57858
|
-
/* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-upload-file-info__name` }, /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-title"] ? this.$slots["upload-file-title"]({ file }) : file.name), /* @__PURE__ */ vue.h("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-subtitle"] ? this.$slots["upload-file-subtitle"]({ file }) : ""))),
|
|
58024
|
+
listType === "preview-card" ? vue.cloneVNode(icon, { onClick: this.handlePreviewClick }) : icon,
|
|
58025
|
+
listType !== "preview-card" && /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-upload-file-info__name` }, /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-title"] ? this.$slots["upload-file-title"]({ file }) : file.name), /* @__PURE__ */ vue.h("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-subtitle"] ? this.$slots["upload-file-subtitle"]({ file }) : ""))),
|
|
57859
58026
|
actionsNode
|
|
57860
58027
|
),
|
|
57861
58028
|
this.showProgress && /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-upload-file-overlay` })
|
|
@@ -58022,6 +58189,9 @@
|
|
|
58022
58189
|
const isPreviewListTypeRef = vue.computed(
|
|
58023
58190
|
() => listTypeRef.value === "preview-list"
|
|
58024
58191
|
);
|
|
58192
|
+
const isPreviewCardTypeRef = vue.computed(
|
|
58193
|
+
() => listTypeRef.value === "preview-card"
|
|
58194
|
+
);
|
|
58025
58195
|
const renderFileList = () => mergedFileListRef.value.map((file) => /* @__PURE__ */ vue.h(
|
|
58026
58196
|
UUploadFile,
|
|
58027
58197
|
{
|
|
@@ -58059,6 +58229,7 @@
|
|
|
58059
58229
|
class: [
|
|
58060
58230
|
`${mergedClsPrefix}-upload-file-list`,
|
|
58061
58231
|
isImageCardTypeRef.value && `${mergedClsPrefix}-upload-file-list--grid`,
|
|
58232
|
+
isPreviewCardTypeRef.value && `${mergedClsPrefix}-upload-file-list--preview-card-grid`,
|
|
58062
58233
|
fileListClassRef.value,
|
|
58063
58234
|
abstract ? themeClassRef?.value : void 0
|
|
58064
58235
|
],
|
|
@@ -58068,7 +58239,7 @@
|
|
|
58068
58239
|
]
|
|
58069
58240
|
},
|
|
58070
58241
|
renderUploadFileList(),
|
|
58071
|
-
isPreviewListTypeRef.value && renderPreview(),
|
|
58242
|
+
(isPreviewListTypeRef.value || isPreviewCardTypeRef.value) && renderPreview(),
|
|
58072
58243
|
showTriggerRef.value && !maxReachedRef.value && isImageCardTypeRef.value && /* @__PURE__ */ vue.h(_UUploadTrigger, null, slots)
|
|
58073
58244
|
);
|
|
58074
58245
|
};
|
|
@@ -58627,6 +58798,9 @@
|
|
|
58627
58798
|
containerSecondary,
|
|
58628
58799
|
brandPrimary300,
|
|
58629
58800
|
elementsQuaternary,
|
|
58801
|
+
previewCardWidth,
|
|
58802
|
+
previewCardHeight,
|
|
58803
|
+
previewCardBorderRadius,
|
|
58630
58804
|
[createKey$1("width", size)]: width
|
|
58631
58805
|
}
|
|
58632
58806
|
} = themeRef.value;
|
|
@@ -58658,7 +58832,10 @@
|
|
|
58658
58832
|
"--u-upload-dragger-width": width,
|
|
58659
58833
|
"--u-upload-info-bg-color": containerSecondary,
|
|
58660
58834
|
"--u-upload-preview-color": brandPrimary300,
|
|
58661
|
-
"--u-upload-empty-border-color": elementsQuaternary
|
|
58835
|
+
"--u-upload-empty-border-color": elementsQuaternary,
|
|
58836
|
+
"--u-upload-preview-card-width": previewCardWidth,
|
|
58837
|
+
"--u-upload-preview-card-height": previewCardHeight,
|
|
58838
|
+
"--u-upload-preview-card-border-radius": previewCardBorderRadius
|
|
58662
58839
|
};
|
|
58663
58840
|
});
|
|
58664
58841
|
const themeClassHandle = inlineThemeDisabled ? useThemeClass(
|
|
@@ -95107,9 +95284,6 @@ img.ProseMirror-separator {
|
|
|
95107
95284
|
});
|
|
95108
95285
|
const attachmentFileList = vue.ref([]);
|
|
95109
95286
|
const uploadedAttachmentsMap = vue.ref(/* @__PURE__ */ new Map());
|
|
95110
|
-
const lastScrollTop = vue.ref(0);
|
|
95111
|
-
const scrollTopFired = vue.ref(false);
|
|
95112
|
-
const scrollBottomFired = vue.ref(false);
|
|
95113
95287
|
const editingMessage = vue.ref(null);
|
|
95114
95288
|
const unreadMessagesCount = vue.computed(() => {
|
|
95115
95289
|
if (!messagesRef.value)
|
|
@@ -95132,9 +95306,9 @@ img.ProseMirror-separator {
|
|
|
95132
95306
|
const unreadBeforeRead = unreadCountsBeforeReadRef.value[newChat.id] || 0;
|
|
95133
95307
|
unreadCountOnOpen.value = unreadBeforeRead;
|
|
95134
95308
|
lastMessageId.value = null;
|
|
95135
|
-
|
|
95136
|
-
|
|
95137
|
-
|
|
95309
|
+
const scrollbarInst = messagesBodyRef.value;
|
|
95310
|
+
if (scrollbarInst && "resetScrollEdgeState" in scrollbarInst)
|
|
95311
|
+
scrollbarInst.resetScrollEdgeState();
|
|
95138
95312
|
shouldScrollOnLoad.value = true;
|
|
95139
95313
|
attachmentFileList.value = [];
|
|
95140
95314
|
uploadedAttachmentsMap.value.clear();
|
|
@@ -95199,31 +95373,6 @@ img.ProseMirror-separator {
|
|
|
95199
95373
|
const showUnreadNotification = vue.computed(() => {
|
|
95200
95374
|
return hasUnreadMessages.value && showNotificationManually.value;
|
|
95201
95375
|
});
|
|
95202
|
-
const handleMessagesScroll = (e) => {
|
|
95203
|
-
const target = e.target;
|
|
95204
|
-
if (!target)
|
|
95205
|
-
return;
|
|
95206
|
-
const { scrollTop, scrollHeight, clientHeight } = target;
|
|
95207
|
-
const threshold = 5;
|
|
95208
|
-
const scrollDirection = scrollTop > lastScrollTop.value ? "down" : "up";
|
|
95209
|
-
const nearTop = scrollTop <= threshold;
|
|
95210
|
-
const nearBottom = scrollHeight - (scrollTop + clientHeight) <= threshold;
|
|
95211
|
-
if (scrollTop > threshold) {
|
|
95212
|
-
scrollTopFired.value = false;
|
|
95213
|
-
}
|
|
95214
|
-
if (scrollHeight - (scrollTop + clientHeight) > threshold) {
|
|
95215
|
-
scrollBottomFired.value = false;
|
|
95216
|
-
}
|
|
95217
|
-
if (nearTop && scrollDirection === "up" && !scrollTopFired.value) {
|
|
95218
|
-
scrollTopFired.value = true;
|
|
95219
|
-
onMessagesScrollToTop?.value?.();
|
|
95220
|
-
}
|
|
95221
|
-
if (nearBottom && scrollDirection === "down" && !scrollBottomFired.value) {
|
|
95222
|
-
scrollBottomFired.value = true;
|
|
95223
|
-
onMessagesScrollToBottom?.value?.();
|
|
95224
|
-
}
|
|
95225
|
-
lastScrollTop.value = scrollTop;
|
|
95226
|
-
};
|
|
95227
95376
|
function scrollToBottom() {
|
|
95228
95377
|
const element = messagesBodyRef.value;
|
|
95229
95378
|
if (!element)
|
|
@@ -95467,7 +95616,8 @@ img.ProseMirror-separator {
|
|
|
95467
95616
|
handleFooterUpdateValue,
|
|
95468
95617
|
handleFooterSend,
|
|
95469
95618
|
cancelEditingMessage,
|
|
95470
|
-
|
|
95619
|
+
onMessagesScrollToTop,
|
|
95620
|
+
onMessagesScrollToBottom,
|
|
95471
95621
|
scrollToBottom
|
|
95472
95622
|
};
|
|
95473
95623
|
},
|
|
@@ -95488,7 +95638,8 @@ img.ProseMirror-separator {
|
|
|
95488
95638
|
{
|
|
95489
95639
|
ref: "messagesBodyRef",
|
|
95490
95640
|
class: `${mergedClsPrefix}-chat-main__body`,
|
|
95491
|
-
|
|
95641
|
+
onScrollToTop: () => this.onMessagesScrollToTop?.(),
|
|
95642
|
+
onScrollToBottom: () => this.onMessagesScrollToBottom?.()
|
|
95492
95643
|
},
|
|
95493
95644
|
{
|
|
95494
95645
|
default: () => /* @__PURE__ */ vue.h(
|
|
@@ -95546,6 +95697,9 @@ img.ProseMirror-separator {
|
|
|
95546
95697
|
trigger: String,
|
|
95547
95698
|
xScrollable: Boolean,
|
|
95548
95699
|
onScroll: Function,
|
|
95700
|
+
onScrollToTop: Function,
|
|
95701
|
+
onScrollToBottom: Function,
|
|
95702
|
+
scrollThreshold: Number,
|
|
95549
95703
|
contentClass: String,
|
|
95550
95704
|
contentStyle: [Object, String],
|
|
95551
95705
|
size: Number,
|
|
@@ -95569,6 +95723,9 @@ img.ProseMirror-separator {
|
|
|
95569
95723
|
},
|
|
95570
95724
|
scrollBy: (...args) => {
|
|
95571
95725
|
scrollbarInstRef.value?.scrollBy(args[0], args[1]);
|
|
95726
|
+
},
|
|
95727
|
+
resetScrollEdgeState: () => {
|
|
95728
|
+
scrollbarInstRef.value?.resetScrollEdgeState();
|
|
95572
95729
|
}
|
|
95573
95730
|
};
|
|
95574
95731
|
return {
|
|
@@ -106488,7 +106645,7 @@ img.ProseMirror-separator {
|
|
|
106488
106645
|
{
|
|
106489
106646
|
class: `${mergedClsPrefixRef.value}-data-table-column-settings__item-title`
|
|
106490
106647
|
},
|
|
106491
|
-
() => row.title
|
|
106648
|
+
() => typeof row.title === "function" ? row.title() : row.title
|
|
106492
106649
|
)
|
|
106493
106650
|
]
|
|
106494
106651
|
);
|
|
@@ -106677,12 +106834,6 @@ img.ProseMirror-separator {
|
|
|
106677
106834
|
}
|
|
106678
106835
|
});
|
|
106679
106836
|
|
|
106680
|
-
var TableColumnType = /* @__PURE__ */(TableColumnType2 => {
|
|
106681
|
-
TableColumnType2["SELECTION"] = "selection";
|
|
106682
|
-
TableColumnType2["EXPAND"] = "expand";
|
|
106683
|
-
TableColumnType2["DRAGGABLE"] = "draggable";
|
|
106684
|
-
return TableColumnType2;
|
|
106685
|
-
})(TableColumnType || {});
|
|
106686
106837
|
const dataTableProps = {
|
|
106687
106838
|
...useTheme.props,
|
|
106688
106839
|
onUnstableColumnResize: Function,
|
|
@@ -106816,6 +106967,12 @@ img.ProseMirror-separator {
|
|
|
106816
106967
|
"onUpdate:expandedRowKeys": [Function, Array],
|
|
106817
106968
|
onUpdateExpandedRowKeys: [Function, Array],
|
|
106818
106969
|
onScroll: Function,
|
|
106970
|
+
onScrollToTop: Function,
|
|
106971
|
+
onScrollToBottom: Function,
|
|
106972
|
+
scrollThreshold: {
|
|
106973
|
+
type: Number,
|
|
106974
|
+
default: 5
|
|
106975
|
+
},
|
|
106819
106976
|
// deprecated
|
|
106820
106977
|
onPageChange: [Function, Array],
|
|
106821
106978
|
onPageSizeChange: [Function, Array],
|
|
@@ -106824,6 +106981,12 @@ img.ProseMirror-separator {
|
|
|
106824
106981
|
onCheckedRowKeysChange: [Function, Array]
|
|
106825
106982
|
};
|
|
106826
106983
|
const dataTableInjectionKey = createInjectionKey("u-data-table");
|
|
106984
|
+
var TableColumnType = /* @__PURE__ */(TableColumnType2 => {
|
|
106985
|
+
TableColumnType2["SELECTION"] = "selection";
|
|
106986
|
+
TableColumnType2["EXPAND"] = "expand";
|
|
106987
|
+
TableColumnType2["DRAGGABLE"] = "draggable";
|
|
106988
|
+
return TableColumnType2;
|
|
106989
|
+
})(TableColumnType || {});
|
|
106827
106990
|
|
|
106828
106991
|
function renderBodyEmpty(deps) {
|
|
106829
106992
|
const {
|
|
@@ -110663,7 +110826,10 @@ img.ProseMirror-separator {
|
|
|
110663
110826
|
return column.visible !== false;
|
|
110664
110827
|
}
|
|
110665
110828
|
function toColumnTitle(column) {
|
|
110666
|
-
|
|
110829
|
+
if (column.settingsTitle !== void 0) return column.settingsTitle;
|
|
110830
|
+
const title = column.title;
|
|
110831
|
+
if (typeof title === "function") return () => title(column);
|
|
110832
|
+
return title ?? String(column.key);
|
|
110667
110833
|
}
|
|
110668
110834
|
function calcColumnsScrollX(columns, getResizableWidth) {
|
|
110669
110835
|
let total = 0;
|
|
@@ -110922,26 +111088,34 @@ img.ProseMirror-separator {
|
|
|
110922
111088
|
|
|
110923
111089
|
function useResizable() {
|
|
110924
111090
|
const resizableWidthsRef = vue.ref({});
|
|
111091
|
+
const preferredWidthsRef = vue.ref({});
|
|
110925
111092
|
function getResizableWidth(key) {
|
|
110926
111093
|
return resizableWidthsRef.value[key];
|
|
110927
111094
|
}
|
|
110928
111095
|
function doUpdateResizableWidth(column, width) {
|
|
110929
111096
|
if ("key" in column) {
|
|
111097
|
+
preferredWidthsRef.value[column.key] = width;
|
|
110930
111098
|
resizableWidthsRef.value[column.key] = width;
|
|
110931
111099
|
}
|
|
110932
111100
|
}
|
|
110933
111101
|
function setResizableWidths(widths) {
|
|
110934
111102
|
resizableWidthsRef.value = widths;
|
|
110935
111103
|
}
|
|
111104
|
+
function setPreferredWidths(widths) {
|
|
111105
|
+
preferredWidthsRef.value = widths;
|
|
111106
|
+
}
|
|
110936
111107
|
function clearResizableWidth() {
|
|
111108
|
+
preferredWidthsRef.value = {};
|
|
110937
111109
|
resizableWidthsRef.value = {};
|
|
110938
111110
|
}
|
|
110939
111111
|
return {
|
|
110940
111112
|
getResizableWidth,
|
|
110941
111113
|
doUpdateResizableWidth,
|
|
110942
111114
|
setResizableWidths,
|
|
111115
|
+
setPreferredWidths,
|
|
110943
111116
|
clearResizableWidth,
|
|
110944
|
-
resizableWidthsRef
|
|
111117
|
+
resizableWidthsRef,
|
|
111118
|
+
preferredWidthsRef
|
|
110945
111119
|
};
|
|
110946
111120
|
}
|
|
110947
111121
|
|
|
@@ -111193,6 +111367,10 @@ img.ProseMirror-separator {
|
|
|
111193
111367
|
const leftActiveFixedChildrenColKeysRef = vue.ref([]);
|
|
111194
111368
|
const rightActiveFixedColKeyRef = vue.ref(null);
|
|
111195
111369
|
const rightActiveFixedChildrenColKeysRef = vue.ref([]);
|
|
111370
|
+
const {
|
|
111371
|
+
detectScrollEdges,
|
|
111372
|
+
resetScrollEdgeState
|
|
111373
|
+
} = useScrollEdgeDetector(() => props);
|
|
111196
111374
|
const styleScrollXRef = vue.computed(() => {
|
|
111197
111375
|
return formatLength(props.scrollX);
|
|
111198
111376
|
});
|
|
@@ -111337,6 +111515,7 @@ img.ProseMirror-separator {
|
|
|
111337
111515
|
}
|
|
111338
111516
|
function handleTableBodyScroll(event) {
|
|
111339
111517
|
props.onScroll?.(event);
|
|
111518
|
+
detectScrollEdges(event);
|
|
111340
111519
|
if (scrollPartRef.value !== "head") {
|
|
111341
111520
|
beforeNextFrameOnce(syncScrollState);
|
|
111342
111521
|
} else {
|
|
@@ -111396,7 +111575,8 @@ img.ProseMirror-separator {
|
|
|
111396
111575
|
syncScrollState,
|
|
111397
111576
|
handleTableBodyScroll,
|
|
111398
111577
|
handleTableHeaderScroll,
|
|
111399
|
-
setHeaderScrollLeft
|
|
111578
|
+
setHeaderScrollLeft,
|
|
111579
|
+
resetScrollEdgeState
|
|
111400
111580
|
};
|
|
111401
111581
|
}
|
|
111402
111582
|
|
|
@@ -111987,15 +112167,15 @@ img.ProseMirror-separator {
|
|
|
111987
112167
|
clearResizableWidth,
|
|
111988
112168
|
doUpdateResizableWidth,
|
|
111989
112169
|
setResizableWidths,
|
|
111990
|
-
|
|
112170
|
+
setPreferredWidths,
|
|
112171
|
+
resizableWidthsRef,
|
|
112172
|
+
preferredWidthsRef
|
|
111991
112173
|
} = useResizable();
|
|
111992
112174
|
if (props.localStorageKey && props.resizableStorage !== false) {
|
|
111993
112175
|
const storedWidths = loadTableState(props.localStorageKey)?.columnWidths;
|
|
111994
112176
|
if (storedWidths && Object.keys(storedWidths).length > 0) {
|
|
111995
|
-
|
|
111996
|
-
|
|
111997
|
-
...storedWidths
|
|
111998
|
-
};
|
|
112177
|
+
setPreferredWidths({ ...storedWidths });
|
|
112178
|
+
setResizableWidths({ ...storedWidths });
|
|
111999
112179
|
}
|
|
112000
112180
|
}
|
|
112001
112181
|
const {
|
|
@@ -112107,6 +112287,7 @@ img.ProseMirror-separator {
|
|
|
112107
112287
|
handleTableHeaderScroll,
|
|
112108
112288
|
syncScrollState,
|
|
112109
112289
|
setHeaderScrollLeft,
|
|
112290
|
+
resetScrollEdgeState,
|
|
112110
112291
|
leftActiveFixedColKeyRef,
|
|
112111
112292
|
leftActiveFixedChildrenColKeysRef,
|
|
112112
112293
|
rightActiveFixedColKeyRef,
|
|
@@ -112154,7 +112335,7 @@ img.ProseMirror-separator {
|
|
|
112154
112335
|
vue.watch(
|
|
112155
112336
|
() => props.localStorageKey ? {
|
|
112156
112337
|
key: props.localStorageKey,
|
|
112157
|
-
columnWidths:
|
|
112338
|
+
columnWidths: preferredWidthsRef.value,
|
|
112158
112339
|
columnsConfig: columnsConfigRef.value,
|
|
112159
112340
|
page: mergedPaginationRef.value?.page,
|
|
112160
112341
|
pageSize: mergedPaginationRef.value?.pageSize,
|
|
@@ -112229,23 +112410,23 @@ img.ProseMirror-separator {
|
|
|
112229
112410
|
systemMaxWidth: props.resizableMaxWidth
|
|
112230
112411
|
};
|
|
112231
112412
|
});
|
|
112232
|
-
function buildNonFixedModeWidthMap(
|
|
112413
|
+
function buildNonFixedModeWidthMap(preferredWidths, resizableColumns) {
|
|
112233
112414
|
const { systemMinWidth, systemMaxWidth } = widthConstraintSignalRef.value;
|
|
112234
112415
|
return {
|
|
112235
112416
|
keys: resizableColumns.map((column) => column.key),
|
|
112236
112417
|
widthMap: sanitizeColumnWidthMap(resizableColumns, {
|
|
112237
112418
|
systemMinWidth,
|
|
112238
112419
|
systemMaxWidth,
|
|
112239
|
-
source:
|
|
112420
|
+
source: preferredWidths
|
|
112240
112421
|
})
|
|
112241
112422
|
};
|
|
112242
112423
|
}
|
|
112243
|
-
function buildFixedModeWidthMap(visibleLeafColumns,
|
|
112424
|
+
function buildFixedModeWidthMap(visibleLeafColumns, sourceWidths) {
|
|
112244
112425
|
const { systemMinWidth, systemMaxWidth } = widthConstraintSignalRef.value;
|
|
112245
112426
|
const preferredWidths = sanitizeColumnWidthMap(visibleLeafColumns, {
|
|
112246
112427
|
systemMinWidth,
|
|
112247
112428
|
systemMaxWidth,
|
|
112248
|
-
source:
|
|
112429
|
+
source: sourceWidths
|
|
112249
112430
|
});
|
|
112250
112431
|
const containerWidth = containerWidthSignalRef.value;
|
|
112251
112432
|
if (containerWidth === void 0) {
|
|
@@ -112271,16 +112452,16 @@ img.ProseMirror-separator {
|
|
|
112271
112452
|
}
|
|
112272
112453
|
function reconcileResizableWidths(_reason) {
|
|
112273
112454
|
const visibleLeafColumns = visibleLeafColumnsSignalRef.value;
|
|
112274
|
-
const
|
|
112455
|
+
const preferredWidths = preferredWidthsRef.value;
|
|
112275
112456
|
if (!visibleLeafColumns.length || !resizableColumnPresentRef.value) {
|
|
112276
|
-
if (Object.keys(
|
|
112277
|
-
|
|
112457
|
+
if (Object.keys(resizableWidthsRef.value).length) {
|
|
112458
|
+
setResizableWidths({});
|
|
112278
112459
|
}
|
|
112279
112460
|
return;
|
|
112280
112461
|
}
|
|
112281
112462
|
if (modeSignalRef.value !== "fixed") {
|
|
112282
112463
|
const { widthMap, keys } = buildNonFixedModeWidthMap(
|
|
112283
|
-
|
|
112464
|
+
preferredWidths,
|
|
112284
112465
|
resizableColumnsSignalRef.value
|
|
112285
112466
|
);
|
|
112286
112467
|
syncResizableWidths(widthMap, keys);
|
|
@@ -112289,7 +112470,7 @@ img.ProseMirror-separator {
|
|
|
112289
112470
|
const visibleLeafKeys = visibleLeafColumns.map((column) => column.key);
|
|
112290
112471
|
const nextWidths = buildFixedModeWidthMap(
|
|
112291
112472
|
visibleLeafColumns,
|
|
112292
|
-
|
|
112473
|
+
preferredWidths
|
|
112293
112474
|
);
|
|
112294
112475
|
syncResizableWidths(nextWidths, visibleLeafKeys);
|
|
112295
112476
|
}
|
|
@@ -112320,7 +112501,7 @@ img.ProseMirror-separator {
|
|
|
112320
112501
|
}
|
|
112321
112502
|
);
|
|
112322
112503
|
vue.watch(
|
|
112323
|
-
() =>
|
|
112504
|
+
() => preferredWidthsRef.value,
|
|
112324
112505
|
() => {
|
|
112325
112506
|
reconcileResizableWidths();
|
|
112326
112507
|
},
|
|
@@ -112591,6 +112772,7 @@ img.ProseMirror-separator {
|
|
|
112591
112772
|
scrollTo: (arg0, arg1) => {
|
|
112592
112773
|
mainTableInstRef.value?.scrollTo(arg0, arg1);
|
|
112593
112774
|
},
|
|
112775
|
+
resetScrollEdgeState,
|
|
112594
112776
|
getData: () => {
|
|
112595
112777
|
const originalData = props.data || [];
|
|
112596
112778
|
const totalRowData = autoSummaryRef.value && rawPaginatedDataRef.value ? autoSummaryRef.value(rawPaginatedDataRef.value) : null;
|
|
@@ -118811,11 +118993,14 @@ img.ProseMirror-separator {
|
|
|
118811
118993
|
}
|
|
118812
118994
|
}
|
|
118813
118995
|
function handleClear() {
|
|
118814
|
-
doUpdateValue(null, { doConfirm: false });
|
|
118815
118996
|
doUpdateShow(false);
|
|
118816
118997
|
inputInstRef.value?.deactivate?.();
|
|
118817
118998
|
doClear();
|
|
118818
118999
|
}
|
|
119000
|
+
function handleSelectionClear() {
|
|
119001
|
+
handleClear();
|
|
119002
|
+
doUpdateValue(null, { doConfirm: false });
|
|
119003
|
+
}
|
|
118819
119004
|
function handlePanelClear() {
|
|
118820
119005
|
inputInstRef.value?.deactivate?.();
|
|
118821
119006
|
doClear();
|
|
@@ -119276,6 +119461,7 @@ img.ProseMirror-separator {
|
|
|
119276
119461
|
handleClickOutside,
|
|
119277
119462
|
handleKeydown,
|
|
119278
119463
|
handleClear,
|
|
119464
|
+
handleSelectionClear,
|
|
119279
119465
|
handlePanelClear,
|
|
119280
119466
|
handleTriggerClick,
|
|
119281
119467
|
handleInputActivate,
|
|
@@ -119410,7 +119596,7 @@ img.ProseMirror-separator {
|
|
|
119410
119596
|
onFocus: this.handleInputFocus,
|
|
119411
119597
|
onBlur: this.handleInputBlur,
|
|
119412
119598
|
onClick: this.handleTriggerClick,
|
|
119413
|
-
onClear: this.
|
|
119599
|
+
onClear: this.handleSelectionClear
|
|
119414
119600
|
},
|
|
119415
119601
|
{
|
|
119416
119602
|
arrow: () => this.$slots.arrow?.()
|
|
@@ -120924,7 +121110,6 @@ img.ProseMirror-separator {
|
|
|
120924
121110
|
}
|
|
120925
121111
|
}
|
|
120926
121112
|
function handleClear() {
|
|
120927
|
-
doUpdateValue(null);
|
|
120928
121113
|
doUpdateShow(false);
|
|
120929
121114
|
singleInputValueRef.value = "";
|
|
120930
121115
|
rangeStartInputValueRef.value = "";
|
|
@@ -120936,6 +121121,10 @@ img.ProseMirror-separator {
|
|
|
120936
121121
|
hoverDateRef.value = null;
|
|
120937
121122
|
}
|
|
120938
121123
|
}
|
|
121124
|
+
function handleSelectionClear() {
|
|
121125
|
+
handleClear();
|
|
121126
|
+
doUpdateValue(null);
|
|
121127
|
+
}
|
|
120939
121128
|
function handleSelect(value) {
|
|
120940
121129
|
doUpdateValue(value);
|
|
120941
121130
|
doUpdateShow(false);
|
|
@@ -121252,6 +121441,7 @@ img.ProseMirror-separator {
|
|
|
121252
121441
|
handleInputBlur,
|
|
121253
121442
|
handleClickOutside,
|
|
121254
121443
|
handleClear,
|
|
121444
|
+
handleSelectionClear,
|
|
121255
121445
|
handleSelect,
|
|
121256
121446
|
handleKeydown,
|
|
121257
121447
|
handleInputUpdateValue,
|
|
@@ -121341,7 +121531,7 @@ img.ProseMirror-separator {
|
|
|
121341
121531
|
onFocus: this.handleInputFocus,
|
|
121342
121532
|
onBlur: this.handleInputBlur,
|
|
121343
121533
|
onClick: this.handleTriggerClick,
|
|
121344
|
-
onClear: this.
|
|
121534
|
+
onClear: this.handleSelectionClear
|
|
121345
121535
|
},
|
|
121346
121536
|
{
|
|
121347
121537
|
arrow: () => this.$slots.arrow?.()
|
|
@@ -154907,7 +155097,7 @@ ${icon.label}`.toLowerCase()
|
|
|
154907
155097
|
});
|
|
154908
155098
|
}
|
|
154909
155099
|
|
|
154910
|
-
var version = "2.4.
|
|
155100
|
+
var version = "2.4.5";
|
|
154911
155101
|
|
|
154912
155102
|
function create({
|
|
154913
155103
|
componentPrefix = "U",
|