@uzum-tech/ui 2.0.0-beta.7 → 2.0.0-beta.9
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 +268 -180
- package/dist/index.mjs +268 -180
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_internal/select-menu/src/SelectOption.mjs +12 -4
- package/es/_utils/wrap-component.mjs +3 -1
- package/es/auto-complete/src/AutoComplete.d.ts +70 -0
- package/es/auto-complete/styles/light.d.ts +7 -0
- package/es/carousel/src/Carousel.mjs +39 -13
- package/es/chat/src/Chat.d.ts +70 -0
- package/es/chat/src/ChatListItems.d.ts +84 -0
- package/es/chat/src/ChatMessages.d.ts +84 -0
- package/es/chat/src/ChatParts/MainArea.mjs +104 -112
- package/es/chat/src/ChatParts/Sidebar.d.ts +14 -0
- package/es/chat/src/styles/index.cssr.mjs +24 -10
- package/es/chat/styles/dark.d.ts +7 -0
- package/es/chat/styles/light.d.ts +7 -0
- package/es/chat/styles/light.mjs +1 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +7 -0
- package/es/color-picker/src/ColorPicker.d.ts +63 -0
- package/es/color-picker/styles/light.d.ts +7 -0
- package/es/components.d.ts +1042 -5
- package/es/data-table/src/DataTable.d.ts +56 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
- package/es/data-table/src/TableParts/Body.d.ts +28 -0
- package/es/data-table/src/TableParts/Header.d.ts +28 -0
- package/es/data-table/src/interface.d.ts +21 -0
- package/es/data-table/styles/light.d.ts +7 -0
- package/es/date-picker/src/DatePicker.d.ts +147 -0
- package/es/date-picker/src/panel/date.d.ts +42 -0
- package/es/date-picker/src/panel/daterange.d.ts +42 -0
- package/es/date-picker/src/panel/datetime.d.ts +42 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +42 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +168 -0
- package/es/date-picker/src/panel/panelMonthContent.d.ts +42 -0
- package/es/date-picker/src/panel/panelYear.d.ts +168 -0
- package/es/date-picker/src/panel/panelYearContent.d.ts +42 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +42 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +42 -0
- package/es/date-picker/styles/light.d.ts +14 -0
- package/es/date-picker-v2/src/DatePickerV2.d.ts +70 -0
- package/es/date-picker-v2/styles/dark.d.ts +7 -0
- package/es/date-picker-v2/styles/light.d.ts +7 -0
- package/es/dialog/src/DialogEnvironment.mjs +1 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +70 -0
- package/es/dynamic-input/src/InputPreset.d.ts +14 -0
- package/es/dynamic-input/src/PairPreset.d.ts +14 -0
- package/es/dynamic-input/styles/light.d.ts +7 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +70 -0
- package/es/dynamic-tags/styles/light.d.ts +7 -0
- package/es/input/src/Input.d.ts +77 -0
- package/es/input/src/Input.mjs +15 -0
- package/es/input/src/InputGroupLabel.d.ts +63 -0
- package/es/input/src/styles/input.cssr.mjs +1 -1
- package/es/input/styles/light.d.ts +7 -0
- package/es/input/styles/light.mjs +11 -0
- package/es/input-number/src/InputNumber.d.ts +70 -0
- package/es/input-number/styles/light.d.ts +7 -0
- package/es/input-otp/src/InputOtp.d.ts +70 -0
- package/es/input-otp/styles/light.d.ts +7 -0
- package/es/legacy-transfer/src/Transfer.d.ts +70 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +14 -0
- package/es/legacy-transfer/src/TransferList.d.ts +14 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +14 -0
- package/es/legacy-transfer/styles/light.d.ts +7 -0
- package/es/mapping-card/src/MappingCard.d.ts +9 -0
- package/es/mapping-card/src/MappingCardParts/Header.mjs +1 -1
- package/es/mapping-card/src/interface.d.ts +5 -0
- package/es/mapping-card/src/interface.mjs +4 -0
- package/es/mention/src/Mention.d.ts +70 -0
- package/es/mention/styles/light.d.ts +7 -0
- package/es/modal/src/BodyWrapper.d.ts +0 -3
- package/es/modal/src/Modal.d.ts +13 -7
- package/es/modal/src/Modal.mjs +5 -2
- package/es/modal/src/ModalEnvironment.d.ts +9 -5
- package/es/modal/src/presetProps.d.ts +1 -2
- package/es/modal/src/presetProps.mjs +0 -1
- package/es/pagination/src/Pagination.d.ts +70 -0
- package/es/pagination/styles/light.d.ts +7 -0
- package/es/time-picker/src/Panel.d.ts +14 -0
- package/es/time-picker/src/TimePicker.d.ts +70 -0
- package/es/time-picker/styles/light.d.ts +7 -0
- package/es/tooltip/index.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +84 -70
- package/es/tooltip/src/Tooltip.mjs +18 -3
- package/es/transfer/src/Transfer.d.ts +70 -0
- package/es/transfer/src/TransferFilter.d.ts +14 -0
- package/es/transfer/src/TransferList.d.ts +14 -0
- package/es/transfer/src/TransferListItem.d.ts +14 -0
- package/es/transfer/styles/light.d.ts +7 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/select-menu/src/SelectOption.js +8 -4
- package/lib/_utils/wrap-component.js +3 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +70 -0
- package/lib/auto-complete/styles/light.d.ts +7 -0
- package/lib/carousel/src/Carousel.js +26 -13
- package/lib/chat/src/Chat.d.ts +70 -0
- package/lib/chat/src/ChatListItems.d.ts +84 -0
- package/lib/chat/src/ChatMessages.d.ts +84 -0
- package/lib/chat/src/ChatParts/MainArea.js +53 -61
- package/lib/chat/src/ChatParts/Sidebar.d.ts +14 -0
- package/lib/chat/src/styles/index.cssr.js +24 -10
- package/lib/chat/styles/dark.d.ts +7 -0
- package/lib/chat/styles/light.d.ts +7 -0
- package/lib/chat/styles/light.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.d.ts +7 -0
- package/lib/color-picker/src/ColorPicker.d.ts +63 -0
- package/lib/color-picker/styles/light.d.ts +7 -0
- package/lib/components.d.ts +1042 -5
- package/lib/data-table/src/DataTable.d.ts +56 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
- package/lib/data-table/src/TableParts/Body.d.ts +28 -0
- package/lib/data-table/src/TableParts/Header.d.ts +28 -0
- package/lib/data-table/src/interface.d.ts +21 -0
- package/lib/data-table/styles/light.d.ts +7 -0
- package/lib/date-picker/src/DatePicker.d.ts +147 -0
- package/lib/date-picker/src/panel/date.d.ts +42 -0
- package/lib/date-picker/src/panel/daterange.d.ts +42 -0
- package/lib/date-picker/src/panel/datetime.d.ts +42 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +42 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +168 -0
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +42 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +168 -0
- package/lib/date-picker/src/panel/panelYearContent.d.ts +42 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +42 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +42 -0
- package/lib/date-picker/styles/light.d.ts +14 -0
- package/lib/date-picker-v2/src/DatePickerV2.d.ts +70 -0
- package/lib/date-picker-v2/styles/dark.d.ts +7 -0
- package/lib/date-picker-v2/styles/light.d.ts +7 -0
- package/lib/dialog/src/DialogEnvironment.js +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +70 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +14 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +14 -0
- package/lib/dynamic-input/styles/light.d.ts +7 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +70 -0
- package/lib/dynamic-tags/styles/light.d.ts +7 -0
- package/lib/input/src/Input.d.ts +77 -0
- package/lib/input/src/Input.js +9 -1
- package/lib/input/src/InputGroupLabel.d.ts +63 -0
- package/lib/input/src/styles/input.cssr.js +1 -1
- package/lib/input/styles/light.d.ts +7 -0
- package/lib/input/styles/light.js +11 -1
- package/lib/input-number/src/InputNumber.d.ts +70 -0
- package/lib/input-number/styles/light.d.ts +7 -0
- package/lib/input-otp/src/InputOtp.d.ts +70 -0
- package/lib/input-otp/styles/light.d.ts +7 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +70 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +14 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +14 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +14 -0
- package/lib/legacy-transfer/styles/light.d.ts +7 -0
- package/lib/mapping-card/src/MappingCard.d.ts +9 -0
- package/lib/mapping-card/src/MappingCardParts/Header.js +2 -2
- package/lib/mapping-card/src/interface.d.ts +5 -0
- package/lib/mapping-card/src/interface.js +4 -0
- package/lib/mention/src/Mention.d.ts +70 -0
- package/lib/mention/styles/light.d.ts +7 -0
- package/lib/modal/src/BodyWrapper.d.ts +0 -3
- package/lib/modal/src/Modal.d.ts +13 -7
- package/lib/modal/src/Modal.js +5 -2
- package/lib/modal/src/ModalEnvironment.d.ts +9 -5
- package/lib/modal/src/presetProps.d.ts +1 -2
- package/lib/modal/src/presetProps.js +1 -1
- package/lib/pagination/src/Pagination.d.ts +70 -0
- package/lib/pagination/styles/light.d.ts +7 -0
- package/lib/time-picker/src/Panel.d.ts +14 -0
- package/lib/time-picker/src/TimePicker.d.ts +70 -0
- package/lib/time-picker/styles/light.d.ts +7 -0
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +84 -70
- package/lib/tooltip/src/Tooltip.js +9 -3
- package/lib/transfer/src/Transfer.d.ts +70 -0
- package/lib/transfer/src/TransferFilter.d.ts +14 -0
- package/lib/transfer/src/TransferList.d.ts +14 -0
- package/lib/transfer/src/TransferListItem.d.ts +14 -0
- package/lib/transfer/styles/light.d.ts +7 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +39 -3
|
@@ -51,21 +51,27 @@ export default defineComponent({
|
|
|
51
51
|
const {
|
|
52
52
|
value: pendingTmNode
|
|
53
53
|
} = pendingTmNodeRef;
|
|
54
|
-
if (!pendingTmNode)
|
|
54
|
+
if (!pendingTmNode) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
55
57
|
return props.tmNode.key === pendingTmNode.key;
|
|
56
58
|
});
|
|
57
59
|
function handleClick(e) {
|
|
58
60
|
const {
|
|
59
61
|
tmNode
|
|
60
62
|
} = props;
|
|
61
|
-
if (tmNode.disabled)
|
|
63
|
+
if (tmNode.disabled) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
62
66
|
handleOptionClick(e, tmNode);
|
|
63
67
|
}
|
|
64
68
|
function handleMouseEnter(e) {
|
|
65
69
|
const {
|
|
66
70
|
tmNode
|
|
67
71
|
} = props;
|
|
68
|
-
if (tmNode.disabled)
|
|
72
|
+
if (tmNode.disabled) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
69
75
|
handleOptionMouseEnter(e, tmNode);
|
|
70
76
|
}
|
|
71
77
|
function handleMouseMove(e) {
|
|
@@ -75,7 +81,9 @@ export default defineComponent({
|
|
|
75
81
|
const {
|
|
76
82
|
value: isPending
|
|
77
83
|
} = isPendingRef;
|
|
78
|
-
if (tmNode.disabled || isPending)
|
|
84
|
+
if (tmNode.disabled || isPending) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
79
87
|
handleOptionMouseEnter(e, tmNode);
|
|
80
88
|
}
|
|
81
89
|
return {
|
|
@@ -39,8 +39,10 @@ export function wrap(component) {
|
|
|
39
39
|
wrapped.__wrapped__ = true;
|
|
40
40
|
// Preserve internal markers used by parent components' runtime logic,
|
|
41
41
|
// e.g. Grid -> GridItem (`__GRID_ITEM__`) and DescriptionsItem flags.
|
|
42
|
+
// Also preserve `alias` so component aliases (e.g. UEl → UElement) are
|
|
43
|
+
// registered correctly by the global install function in create.ts.
|
|
42
44
|
for (const key of Object.keys(component)) {
|
|
43
|
-
if (/^__.*__$/.test(key) || key.endsWith('_FLAG')) {
|
|
45
|
+
if (/^__.*__$/.test(key) || key.endsWith('_FLAG') || key === 'alias') {
|
|
44
46
|
;
|
|
45
47
|
wrapped[key] = component[key];
|
|
46
48
|
}
|
|
@@ -175,6 +175,13 @@ export declare const autoCompleteProps: {
|
|
|
175
175
|
borderFocus: string;
|
|
176
176
|
boxShadowFocus: string;
|
|
177
177
|
loadingColor: string;
|
|
178
|
+
loadingColorSuccess: string;
|
|
179
|
+
borderSuccess: string;
|
|
180
|
+
borderHoverSuccess: string;
|
|
181
|
+
colorFocusSuccess: string;
|
|
182
|
+
borderFocusSuccess: string;
|
|
183
|
+
boxShadowFocusSuccess: string;
|
|
184
|
+
caretColorSuccess: string;
|
|
178
185
|
loadingColorWarning: string;
|
|
179
186
|
borderWarning: string;
|
|
180
187
|
borderHoverWarning: string;
|
|
@@ -308,6 +315,13 @@ export declare const autoCompleteProps: {
|
|
|
308
315
|
borderFocus: string;
|
|
309
316
|
boxShadowFocus: string;
|
|
310
317
|
loadingColor: string;
|
|
318
|
+
loadingColorSuccess: string;
|
|
319
|
+
borderSuccess: string;
|
|
320
|
+
borderHoverSuccess: string;
|
|
321
|
+
colorFocusSuccess: string;
|
|
322
|
+
borderFocusSuccess: string;
|
|
323
|
+
boxShadowFocusSuccess: string;
|
|
324
|
+
caretColorSuccess: string;
|
|
311
325
|
loadingColorWarning: string;
|
|
312
326
|
borderWarning: string;
|
|
313
327
|
borderHoverWarning: string;
|
|
@@ -441,6 +455,13 @@ export declare const autoCompleteProps: {
|
|
|
441
455
|
borderFocus: string;
|
|
442
456
|
boxShadowFocus: string;
|
|
443
457
|
loadingColor: string;
|
|
458
|
+
loadingColorSuccess: string;
|
|
459
|
+
borderSuccess: string;
|
|
460
|
+
borderHoverSuccess: string;
|
|
461
|
+
colorFocusSuccess: string;
|
|
462
|
+
borderFocusSuccess: string;
|
|
463
|
+
boxShadowFocusSuccess: string;
|
|
464
|
+
caretColorSuccess: string;
|
|
444
465
|
loadingColorWarning: string;
|
|
445
466
|
borderWarning: string;
|
|
446
467
|
borderHoverWarning: string;
|
|
@@ -641,6 +662,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
641
662
|
borderFocus: string;
|
|
642
663
|
boxShadowFocus: string;
|
|
643
664
|
loadingColor: string;
|
|
665
|
+
loadingColorSuccess: string;
|
|
666
|
+
borderSuccess: string;
|
|
667
|
+
borderHoverSuccess: string;
|
|
668
|
+
colorFocusSuccess: string;
|
|
669
|
+
borderFocusSuccess: string;
|
|
670
|
+
boxShadowFocusSuccess: string;
|
|
671
|
+
caretColorSuccess: string;
|
|
644
672
|
loadingColorWarning: string;
|
|
645
673
|
borderWarning: string;
|
|
646
674
|
borderHoverWarning: string;
|
|
@@ -774,6 +802,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
774
802
|
borderFocus: string;
|
|
775
803
|
boxShadowFocus: string;
|
|
776
804
|
loadingColor: string;
|
|
805
|
+
loadingColorSuccess: string;
|
|
806
|
+
borderSuccess: string;
|
|
807
|
+
borderHoverSuccess: string;
|
|
808
|
+
colorFocusSuccess: string;
|
|
809
|
+
borderFocusSuccess: string;
|
|
810
|
+
boxShadowFocusSuccess: string;
|
|
811
|
+
caretColorSuccess: string;
|
|
777
812
|
loadingColorWarning: string;
|
|
778
813
|
borderWarning: string;
|
|
779
814
|
borderHoverWarning: string;
|
|
@@ -907,6 +942,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
907
942
|
borderFocus: string;
|
|
908
943
|
boxShadowFocus: string;
|
|
909
944
|
loadingColor: string;
|
|
945
|
+
loadingColorSuccess: string;
|
|
946
|
+
borderSuccess: string;
|
|
947
|
+
borderHoverSuccess: string;
|
|
948
|
+
colorFocusSuccess: string;
|
|
949
|
+
borderFocusSuccess: string;
|
|
950
|
+
boxShadowFocusSuccess: string;
|
|
951
|
+
caretColorSuccess: string;
|
|
910
952
|
loadingColorWarning: string;
|
|
911
953
|
borderWarning: string;
|
|
912
954
|
borderHoverWarning: string;
|
|
@@ -1119,6 +1161,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1119
1161
|
borderFocus: string;
|
|
1120
1162
|
boxShadowFocus: string;
|
|
1121
1163
|
loadingColor: string;
|
|
1164
|
+
loadingColorSuccess: string;
|
|
1165
|
+
borderSuccess: string;
|
|
1166
|
+
borderHoverSuccess: string;
|
|
1167
|
+
colorFocusSuccess: string;
|
|
1168
|
+
borderFocusSuccess: string;
|
|
1169
|
+
boxShadowFocusSuccess: string;
|
|
1170
|
+
caretColorSuccess: string;
|
|
1122
1171
|
loadingColorWarning: string;
|
|
1123
1172
|
borderWarning: string;
|
|
1124
1173
|
borderHoverWarning: string;
|
|
@@ -1363,6 +1412,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1363
1412
|
borderFocus: string;
|
|
1364
1413
|
boxShadowFocus: string;
|
|
1365
1414
|
loadingColor: string;
|
|
1415
|
+
loadingColorSuccess: string;
|
|
1416
|
+
borderSuccess: string;
|
|
1417
|
+
borderHoverSuccess: string;
|
|
1418
|
+
colorFocusSuccess: string;
|
|
1419
|
+
borderFocusSuccess: string;
|
|
1420
|
+
boxShadowFocusSuccess: string;
|
|
1421
|
+
caretColorSuccess: string;
|
|
1366
1422
|
loadingColorWarning: string;
|
|
1367
1423
|
borderWarning: string;
|
|
1368
1424
|
borderHoverWarning: string;
|
|
@@ -1496,6 +1552,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1496
1552
|
borderFocus: string;
|
|
1497
1553
|
boxShadowFocus: string;
|
|
1498
1554
|
loadingColor: string;
|
|
1555
|
+
loadingColorSuccess: string;
|
|
1556
|
+
borderSuccess: string;
|
|
1557
|
+
borderHoverSuccess: string;
|
|
1558
|
+
colorFocusSuccess: string;
|
|
1559
|
+
borderFocusSuccess: string;
|
|
1560
|
+
boxShadowFocusSuccess: string;
|
|
1561
|
+
caretColorSuccess: string;
|
|
1499
1562
|
loadingColorWarning: string;
|
|
1500
1563
|
borderWarning: string;
|
|
1501
1564
|
borderHoverWarning: string;
|
|
@@ -1629,6 +1692,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1629
1692
|
borderFocus: string;
|
|
1630
1693
|
boxShadowFocus: string;
|
|
1631
1694
|
loadingColor: string;
|
|
1695
|
+
loadingColorSuccess: string;
|
|
1696
|
+
borderSuccess: string;
|
|
1697
|
+
borderHoverSuccess: string;
|
|
1698
|
+
colorFocusSuccess: string;
|
|
1699
|
+
borderFocusSuccess: string;
|
|
1700
|
+
boxShadowFocusSuccess: string;
|
|
1701
|
+
caretColorSuccess: string;
|
|
1632
1702
|
loadingColorWarning: string;
|
|
1633
1703
|
borderWarning: string;
|
|
1634
1704
|
borderHoverWarning: string;
|
|
@@ -110,6 +110,13 @@ declare const autoCompleteLight: import("../../_mixins").Theme<"AutoComplete", {
|
|
|
110
110
|
borderFocus: string;
|
|
111
111
|
boxShadowFocus: string;
|
|
112
112
|
loadingColor: string;
|
|
113
|
+
loadingColorSuccess: string;
|
|
114
|
+
borderSuccess: string;
|
|
115
|
+
borderHoverSuccess: string;
|
|
116
|
+
colorFocusSuccess: string;
|
|
117
|
+
borderFocusSuccess: string;
|
|
118
|
+
boxShadowFocusSuccess: string;
|
|
119
|
+
caretColorSuccess: string;
|
|
113
120
|
loadingColorWarning: string;
|
|
114
121
|
borderWarning: string;
|
|
115
122
|
borderHoverWarning: string;
|
|
@@ -126,7 +126,9 @@ export default defineComponent({
|
|
|
126
126
|
const {
|
|
127
127
|
value: slidesEls
|
|
128
128
|
} = slideElsRef;
|
|
129
|
-
if (!slidesEls.length)
|
|
129
|
+
if (!slidesEls.length) {
|
|
130
|
+
return [];
|
|
131
|
+
}
|
|
130
132
|
// eslint-disable-next-line ts/no-unused-expressions
|
|
131
133
|
slideSizesTrigger.value;
|
|
132
134
|
const {
|
|
@@ -163,7 +165,9 @@ export default defineComponent({
|
|
|
163
165
|
const {
|
|
164
166
|
value: slideSizes
|
|
165
167
|
} = slideSizesRef;
|
|
166
|
-
if (!slideSizes.length)
|
|
168
|
+
if (!slideSizes.length) {
|
|
169
|
+
return [];
|
|
170
|
+
}
|
|
167
171
|
const {
|
|
168
172
|
centeredSlides,
|
|
169
173
|
spaceBetween
|
|
@@ -199,7 +203,9 @@ export default defineComponent({
|
|
|
199
203
|
const {
|
|
200
204
|
value: slidesEls
|
|
201
205
|
} = slideElsRef;
|
|
202
|
-
if (!slidesEls.length)
|
|
206
|
+
if (!slidesEls.length) {
|
|
207
|
+
return [];
|
|
208
|
+
}
|
|
203
209
|
const useComputedSize = !(autoSlideSizeRef.value || realSlidesPerViewRef.value === 1);
|
|
204
210
|
const getSlideSize = index => {
|
|
205
211
|
if (useComputedSize) {
|
|
@@ -251,7 +257,9 @@ export default defineComponent({
|
|
|
251
257
|
const {
|
|
252
258
|
length
|
|
253
259
|
} = slideSizes;
|
|
254
|
-
if (!length)
|
|
260
|
+
if (!length) {
|
|
261
|
+
return totalSlides;
|
|
262
|
+
}
|
|
255
263
|
const {
|
|
256
264
|
value: translates
|
|
257
265
|
} = slideTranlatesRef;
|
|
@@ -328,17 +336,25 @@ export default defineComponent({
|
|
|
328
336
|
}
|
|
329
337
|
function prev() {
|
|
330
338
|
const prevIndex = getRealPrevIndex();
|
|
331
|
-
if (prevIndex !== null)
|
|
339
|
+
if (prevIndex !== null) {
|
|
340
|
+
toRealIndex(prevIndex);
|
|
341
|
+
}
|
|
332
342
|
}
|
|
333
343
|
function next() {
|
|
334
344
|
const nextIndex = getRealNextIndex();
|
|
335
|
-
if (nextIndex !== null)
|
|
345
|
+
if (nextIndex !== null) {
|
|
346
|
+
toRealIndex(nextIndex);
|
|
347
|
+
}
|
|
336
348
|
}
|
|
337
349
|
function prevIfSlideTransitionEnd() {
|
|
338
|
-
if (!inTransition || !duplicatedableRef.value)
|
|
350
|
+
if (!inTransition || !duplicatedableRef.value) {
|
|
351
|
+
prev();
|
|
352
|
+
}
|
|
339
353
|
}
|
|
340
354
|
function nextIfSlideTransitionEnd() {
|
|
341
|
-
if (!inTransition || !duplicatedableRef.value)
|
|
355
|
+
if (!inTransition || !duplicatedableRef.value) {
|
|
356
|
+
next();
|
|
357
|
+
}
|
|
342
358
|
}
|
|
343
359
|
// Translate to
|
|
344
360
|
// record the translate of each slide, so that it can be restored at touch
|
|
@@ -429,11 +445,15 @@ export default defineComponent({
|
|
|
429
445
|
};
|
|
430
446
|
provideCarouselContext(carouselContext);
|
|
431
447
|
function addSlide(slide) {
|
|
432
|
-
if (!slide)
|
|
448
|
+
if (!slide) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
433
451
|
slideElsRef.value.push(slide);
|
|
434
452
|
}
|
|
435
453
|
function removeSlide(slide) {
|
|
436
|
-
if (!slide)
|
|
454
|
+
if (!slide) {
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
437
457
|
const index = getSlideIndex(slide);
|
|
438
458
|
if (index !== -1) {
|
|
439
459
|
slideElsRef.value.splice(index, 1);
|
|
@@ -490,7 +510,9 @@ export default defineComponent({
|
|
|
490
510
|
let dragStartTime = 0;
|
|
491
511
|
function handleTouchstart(event) {
|
|
492
512
|
var _a;
|
|
493
|
-
if (globalDragging)
|
|
513
|
+
if (globalDragging) {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
494
516
|
if (!((_a = slidesElRef.value) === null || _a === void 0 ? void 0 : _a.contains(getPreciseEventTarget(event)))) {
|
|
495
517
|
return;
|
|
496
518
|
}
|
|
@@ -614,7 +636,9 @@ export default defineComponent({
|
|
|
614
636
|
}
|
|
615
637
|
function handleMousewheel(event) {
|
|
616
638
|
event.preventDefault();
|
|
617
|
-
if (inTransition)
|
|
639
|
+
if (inTransition) {
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
618
642
|
let {
|
|
619
643
|
deltaX,
|
|
620
644
|
deltaY
|
|
@@ -691,7 +715,9 @@ export default defineComponent({
|
|
|
691
715
|
}
|
|
692
716
|
});
|
|
693
717
|
watch(realIndexRef, (realIndex, lastRealIndex) => {
|
|
694
|
-
if (realIndex === lastRealIndex)
|
|
718
|
+
if (realIndex === lastRealIndex) {
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
695
721
|
resetAutoplay();
|
|
696
722
|
if (sequenceLayoutRef.value) {
|
|
697
723
|
if (duplicatedableRef.value && displayTotalViewRef.value > 2) {
|
package/es/chat/src/Chat.d.ts
CHANGED
|
@@ -316,6 +316,13 @@ export declare const chatProps: {
|
|
|
316
316
|
borderFocus: string;
|
|
317
317
|
boxShadowFocus: string;
|
|
318
318
|
loadingColor: string;
|
|
319
|
+
loadingColorSuccess: string;
|
|
320
|
+
borderSuccess: string;
|
|
321
|
+
borderHoverSuccess: string;
|
|
322
|
+
colorFocusSuccess: string;
|
|
323
|
+
borderFocusSuccess: string;
|
|
324
|
+
boxShadowFocusSuccess: string;
|
|
325
|
+
caretColorSuccess: string;
|
|
319
326
|
loadingColorWarning: string;
|
|
320
327
|
borderWarning: string;
|
|
321
328
|
borderHoverWarning: string;
|
|
@@ -1014,6 +1021,13 @@ export declare const chatProps: {
|
|
|
1014
1021
|
borderFocus: string;
|
|
1015
1022
|
boxShadowFocus: string;
|
|
1016
1023
|
loadingColor: string;
|
|
1024
|
+
loadingColorSuccess: string;
|
|
1025
|
+
borderSuccess: string;
|
|
1026
|
+
borderHoverSuccess: string;
|
|
1027
|
+
colorFocusSuccess: string;
|
|
1028
|
+
borderFocusSuccess: string;
|
|
1029
|
+
boxShadowFocusSuccess: string;
|
|
1030
|
+
caretColorSuccess: string;
|
|
1017
1031
|
loadingColorWarning: string;
|
|
1018
1032
|
borderWarning: string;
|
|
1019
1033
|
borderHoverWarning: string;
|
|
@@ -1712,6 +1726,13 @@ export declare const chatProps: {
|
|
|
1712
1726
|
borderFocus: string;
|
|
1713
1727
|
boxShadowFocus: string;
|
|
1714
1728
|
loadingColor: string;
|
|
1729
|
+
loadingColorSuccess: string;
|
|
1730
|
+
borderSuccess: string;
|
|
1731
|
+
borderHoverSuccess: string;
|
|
1732
|
+
colorFocusSuccess: string;
|
|
1733
|
+
borderFocusSuccess: string;
|
|
1734
|
+
boxShadowFocusSuccess: string;
|
|
1735
|
+
caretColorSuccess: string;
|
|
1715
1736
|
loadingColorWarning: string;
|
|
1716
1737
|
borderWarning: string;
|
|
1717
1738
|
borderHoverWarning: string;
|
|
@@ -2649,6 +2670,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2649
2670
|
borderFocus: string;
|
|
2650
2671
|
boxShadowFocus: string;
|
|
2651
2672
|
loadingColor: string;
|
|
2673
|
+
loadingColorSuccess: string;
|
|
2674
|
+
borderSuccess: string;
|
|
2675
|
+
borderHoverSuccess: string;
|
|
2676
|
+
colorFocusSuccess: string;
|
|
2677
|
+
borderFocusSuccess: string;
|
|
2678
|
+
boxShadowFocusSuccess: string;
|
|
2679
|
+
caretColorSuccess: string;
|
|
2652
2680
|
loadingColorWarning: string;
|
|
2653
2681
|
borderWarning: string;
|
|
2654
2682
|
borderHoverWarning: string;
|
|
@@ -3347,6 +3375,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3347
3375
|
borderFocus: string;
|
|
3348
3376
|
boxShadowFocus: string;
|
|
3349
3377
|
loadingColor: string;
|
|
3378
|
+
loadingColorSuccess: string;
|
|
3379
|
+
borderSuccess: string;
|
|
3380
|
+
borderHoverSuccess: string;
|
|
3381
|
+
colorFocusSuccess: string;
|
|
3382
|
+
borderFocusSuccess: string;
|
|
3383
|
+
boxShadowFocusSuccess: string;
|
|
3384
|
+
caretColorSuccess: string;
|
|
3350
3385
|
loadingColorWarning: string;
|
|
3351
3386
|
borderWarning: string;
|
|
3352
3387
|
borderHoverWarning: string;
|
|
@@ -4045,6 +4080,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4045
4080
|
borderFocus: string;
|
|
4046
4081
|
boxShadowFocus: string;
|
|
4047
4082
|
loadingColor: string;
|
|
4083
|
+
loadingColorSuccess: string;
|
|
4084
|
+
borderSuccess: string;
|
|
4085
|
+
borderHoverSuccess: string;
|
|
4086
|
+
colorFocusSuccess: string;
|
|
4087
|
+
borderFocusSuccess: string;
|
|
4088
|
+
boxShadowFocusSuccess: string;
|
|
4089
|
+
caretColorSuccess: string;
|
|
4048
4090
|
loadingColorWarning: string;
|
|
4049
4091
|
borderWarning: string;
|
|
4050
4092
|
borderHoverWarning: string;
|
|
@@ -4748,6 +4790,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4748
4790
|
borderFocus: string;
|
|
4749
4791
|
boxShadowFocus: string;
|
|
4750
4792
|
loadingColor: string;
|
|
4793
|
+
loadingColorSuccess: string;
|
|
4794
|
+
borderSuccess: string;
|
|
4795
|
+
borderHoverSuccess: string;
|
|
4796
|
+
colorFocusSuccess: string;
|
|
4797
|
+
borderFocusSuccess: string;
|
|
4798
|
+
boxShadowFocusSuccess: string;
|
|
4799
|
+
caretColorSuccess: string;
|
|
4751
4800
|
loadingColorWarning: string;
|
|
4752
4801
|
borderWarning: string;
|
|
4753
4802
|
borderHoverWarning: string;
|
|
@@ -6057,6 +6106,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6057
6106
|
borderFocus: string;
|
|
6058
6107
|
boxShadowFocus: string;
|
|
6059
6108
|
loadingColor: string;
|
|
6109
|
+
loadingColorSuccess: string;
|
|
6110
|
+
borderSuccess: string;
|
|
6111
|
+
borderHoverSuccess: string;
|
|
6112
|
+
colorFocusSuccess: string;
|
|
6113
|
+
borderFocusSuccess: string;
|
|
6114
|
+
boxShadowFocusSuccess: string;
|
|
6115
|
+
caretColorSuccess: string;
|
|
6060
6116
|
loadingColorWarning: string;
|
|
6061
6117
|
borderWarning: string;
|
|
6062
6118
|
borderHoverWarning: string;
|
|
@@ -6755,6 +6811,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6755
6811
|
borderFocus: string;
|
|
6756
6812
|
boxShadowFocus: string;
|
|
6757
6813
|
loadingColor: string;
|
|
6814
|
+
loadingColorSuccess: string;
|
|
6815
|
+
borderSuccess: string;
|
|
6816
|
+
borderHoverSuccess: string;
|
|
6817
|
+
colorFocusSuccess: string;
|
|
6818
|
+
borderFocusSuccess: string;
|
|
6819
|
+
boxShadowFocusSuccess: string;
|
|
6820
|
+
caretColorSuccess: string;
|
|
6758
6821
|
loadingColorWarning: string;
|
|
6759
6822
|
borderWarning: string;
|
|
6760
6823
|
borderHoverWarning: string;
|
|
@@ -7453,6 +7516,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7453
7516
|
borderFocus: string;
|
|
7454
7517
|
boxShadowFocus: string;
|
|
7455
7518
|
loadingColor: string;
|
|
7519
|
+
loadingColorSuccess: string;
|
|
7520
|
+
borderSuccess: string;
|
|
7521
|
+
borderHoverSuccess: string;
|
|
7522
|
+
colorFocusSuccess: string;
|
|
7523
|
+
borderFocusSuccess: string;
|
|
7524
|
+
boxShadowFocusSuccess: string;
|
|
7525
|
+
caretColorSuccess: string;
|
|
7456
7526
|
loadingColorWarning: string;
|
|
7457
7527
|
borderWarning: string;
|
|
7458
7528
|
borderHoverWarning: string;
|
|
@@ -126,6 +126,13 @@ export declare const chatListItemsProps: {
|
|
|
126
126
|
borderFocus: string;
|
|
127
127
|
boxShadowFocus: string;
|
|
128
128
|
loadingColor: string;
|
|
129
|
+
loadingColorSuccess: string;
|
|
130
|
+
borderSuccess: string;
|
|
131
|
+
borderHoverSuccess: string;
|
|
132
|
+
colorFocusSuccess: string;
|
|
133
|
+
borderFocusSuccess: string;
|
|
134
|
+
boxShadowFocusSuccess: string;
|
|
135
|
+
caretColorSuccess: string;
|
|
129
136
|
loadingColorWarning: string;
|
|
130
137
|
borderWarning: string;
|
|
131
138
|
borderHoverWarning: string;
|
|
@@ -824,6 +831,13 @@ export declare const chatListItemsProps: {
|
|
|
824
831
|
borderFocus: string;
|
|
825
832
|
boxShadowFocus: string;
|
|
826
833
|
loadingColor: string;
|
|
834
|
+
loadingColorSuccess: string;
|
|
835
|
+
borderSuccess: string;
|
|
836
|
+
borderHoverSuccess: string;
|
|
837
|
+
colorFocusSuccess: string;
|
|
838
|
+
borderFocusSuccess: string;
|
|
839
|
+
boxShadowFocusSuccess: string;
|
|
840
|
+
caretColorSuccess: string;
|
|
827
841
|
loadingColorWarning: string;
|
|
828
842
|
borderWarning: string;
|
|
829
843
|
borderHoverWarning: string;
|
|
@@ -1522,6 +1536,13 @@ export declare const chatListItemsProps: {
|
|
|
1522
1536
|
borderFocus: string;
|
|
1523
1537
|
boxShadowFocus: string;
|
|
1524
1538
|
loadingColor: string;
|
|
1539
|
+
loadingColorSuccess: string;
|
|
1540
|
+
borderSuccess: string;
|
|
1541
|
+
borderHoverSuccess: string;
|
|
1542
|
+
colorFocusSuccess: string;
|
|
1543
|
+
borderFocusSuccess: string;
|
|
1544
|
+
boxShadowFocusSuccess: string;
|
|
1545
|
+
caretColorSuccess: string;
|
|
1525
1546
|
loadingColorWarning: string;
|
|
1526
1547
|
borderWarning: string;
|
|
1527
1548
|
borderHoverWarning: string;
|
|
@@ -2267,6 +2288,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2267
2288
|
borderFocus: string;
|
|
2268
2289
|
boxShadowFocus: string;
|
|
2269
2290
|
loadingColor: string;
|
|
2291
|
+
loadingColorSuccess: string;
|
|
2292
|
+
borderSuccess: string;
|
|
2293
|
+
borderHoverSuccess: string;
|
|
2294
|
+
colorFocusSuccess: string;
|
|
2295
|
+
borderFocusSuccess: string;
|
|
2296
|
+
boxShadowFocusSuccess: string;
|
|
2297
|
+
caretColorSuccess: string;
|
|
2270
2298
|
loadingColorWarning: string;
|
|
2271
2299
|
borderWarning: string;
|
|
2272
2300
|
borderHoverWarning: string;
|
|
@@ -2965,6 +2993,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2965
2993
|
borderFocus: string;
|
|
2966
2994
|
boxShadowFocus: string;
|
|
2967
2995
|
loadingColor: string;
|
|
2996
|
+
loadingColorSuccess: string;
|
|
2997
|
+
borderSuccess: string;
|
|
2998
|
+
borderHoverSuccess: string;
|
|
2999
|
+
colorFocusSuccess: string;
|
|
3000
|
+
borderFocusSuccess: string;
|
|
3001
|
+
boxShadowFocusSuccess: string;
|
|
3002
|
+
caretColorSuccess: string;
|
|
2968
3003
|
loadingColorWarning: string;
|
|
2969
3004
|
borderWarning: string;
|
|
2970
3005
|
borderHoverWarning: string;
|
|
@@ -3663,6 +3698,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3663
3698
|
borderFocus: string;
|
|
3664
3699
|
boxShadowFocus: string;
|
|
3665
3700
|
loadingColor: string;
|
|
3701
|
+
loadingColorSuccess: string;
|
|
3702
|
+
borderSuccess: string;
|
|
3703
|
+
borderHoverSuccess: string;
|
|
3704
|
+
colorFocusSuccess: string;
|
|
3705
|
+
borderFocusSuccess: string;
|
|
3706
|
+
boxShadowFocusSuccess: string;
|
|
3707
|
+
caretColorSuccess: string;
|
|
3666
3708
|
loadingColorWarning: string;
|
|
3667
3709
|
borderWarning: string;
|
|
3668
3710
|
borderHoverWarning: string;
|
|
@@ -4366,6 +4408,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4366
4408
|
borderFocus: string;
|
|
4367
4409
|
boxShadowFocus: string;
|
|
4368
4410
|
loadingColor: string;
|
|
4411
|
+
loadingColorSuccess: string;
|
|
4412
|
+
borderSuccess: string;
|
|
4413
|
+
borderHoverSuccess: string;
|
|
4414
|
+
colorFocusSuccess: string;
|
|
4415
|
+
borderFocusSuccess: string;
|
|
4416
|
+
boxShadowFocusSuccess: string;
|
|
4417
|
+
caretColorSuccess: string;
|
|
4369
4418
|
loadingColorWarning: string;
|
|
4370
4419
|
borderWarning: string;
|
|
4371
4420
|
borderHoverWarning: string;
|
|
@@ -5321,6 +5370,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5321
5370
|
borderFocus: string;
|
|
5322
5371
|
boxShadowFocus: string;
|
|
5323
5372
|
loadingColor: string;
|
|
5373
|
+
loadingColorSuccess: string;
|
|
5374
|
+
borderSuccess: string;
|
|
5375
|
+
borderHoverSuccess: string;
|
|
5376
|
+
colorFocusSuccess: string;
|
|
5377
|
+
borderFocusSuccess: string;
|
|
5378
|
+
boxShadowFocusSuccess: string;
|
|
5379
|
+
caretColorSuccess: string;
|
|
5324
5380
|
loadingColorWarning: string;
|
|
5325
5381
|
borderWarning: string;
|
|
5326
5382
|
borderHoverWarning: string;
|
|
@@ -6276,6 +6332,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6276
6332
|
borderFocus: string;
|
|
6277
6333
|
boxShadowFocus: string;
|
|
6278
6334
|
loadingColor: string;
|
|
6335
|
+
loadingColorSuccess: string;
|
|
6336
|
+
borderSuccess: string;
|
|
6337
|
+
borderHoverSuccess: string;
|
|
6338
|
+
colorFocusSuccess: string;
|
|
6339
|
+
borderFocusSuccess: string;
|
|
6340
|
+
boxShadowFocusSuccess: string;
|
|
6341
|
+
caretColorSuccess: string;
|
|
6279
6342
|
loadingColorWarning: string;
|
|
6280
6343
|
borderWarning: string;
|
|
6281
6344
|
borderHoverWarning: string;
|
|
@@ -7299,6 +7362,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7299
7362
|
borderFocus: string;
|
|
7300
7363
|
boxShadowFocus: string;
|
|
7301
7364
|
loadingColor: string;
|
|
7365
|
+
loadingColorSuccess: string;
|
|
7366
|
+
borderSuccess: string;
|
|
7367
|
+
borderHoverSuccess: string;
|
|
7368
|
+
colorFocusSuccess: string;
|
|
7369
|
+
borderFocusSuccess: string;
|
|
7370
|
+
boxShadowFocusSuccess: string;
|
|
7371
|
+
caretColorSuccess: string;
|
|
7302
7372
|
loadingColorWarning: string;
|
|
7303
7373
|
borderWarning: string;
|
|
7304
7374
|
borderHoverWarning: string;
|
|
@@ -7997,6 +8067,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7997
8067
|
borderFocus: string;
|
|
7998
8068
|
boxShadowFocus: string;
|
|
7999
8069
|
loadingColor: string;
|
|
8070
|
+
loadingColorSuccess: string;
|
|
8071
|
+
borderSuccess: string;
|
|
8072
|
+
borderHoverSuccess: string;
|
|
8073
|
+
colorFocusSuccess: string;
|
|
8074
|
+
borderFocusSuccess: string;
|
|
8075
|
+
boxShadowFocusSuccess: string;
|
|
8076
|
+
caretColorSuccess: string;
|
|
8000
8077
|
loadingColorWarning: string;
|
|
8001
8078
|
borderWarning: string;
|
|
8002
8079
|
borderHoverWarning: string;
|
|
@@ -8695,6 +8772,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8695
8772
|
borderFocus: string;
|
|
8696
8773
|
boxShadowFocus: string;
|
|
8697
8774
|
loadingColor: string;
|
|
8775
|
+
loadingColorSuccess: string;
|
|
8776
|
+
borderSuccess: string;
|
|
8777
|
+
borderHoverSuccess: string;
|
|
8778
|
+
colorFocusSuccess: string;
|
|
8779
|
+
borderFocusSuccess: string;
|
|
8780
|
+
boxShadowFocusSuccess: string;
|
|
8781
|
+
caretColorSuccess: string;
|
|
8698
8782
|
loadingColorWarning: string;
|
|
8699
8783
|
borderWarning: string;
|
|
8700
8784
|
borderHoverWarning: string;
|