@uzum-tech/ui 1.9.1 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/index.js +5316 -804
  2. package/dist/index.prod.js +12 -3
  3. package/es/_internal/scrollbar/src/Scrollbar.js +19 -38
  4. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  5. package/es/cascader/src/Cascader.d.ts +1 -1
  6. package/es/chat/src/ChatListItems.js +16 -1
  7. package/es/chat/src/ChatParts/MainArea.js +31 -21
  8. package/es/components.d.ts +2 -0
  9. package/es/components.js +2 -0
  10. package/es/config-provider/src/internal-interface.d.ts +4 -0
  11. package/es/crop/index.d.ts +3 -0
  12. package/es/crop/index.js +1 -0
  13. package/es/crop/src/Crop.d.ts +222 -0
  14. package/es/crop/src/Crop.js +157 -0
  15. package/es/crop/src/interface.d.ts +6 -0
  16. package/es/crop/src/interface.js +7 -0
  17. package/es/crop/src/styles/index.cssr.d.ts +2 -0
  18. package/es/crop/src/styles/index.cssr.js +333 -0
  19. package/es/crop/styles/_common.d.ts +4 -0
  20. package/es/crop/styles/_common.js +3 -0
  21. package/es/crop/styles/dark.d.ts +3 -0
  22. package/es/crop/styles/dark.js +9 -0
  23. package/es/crop/styles/index.d.ts +3 -0
  24. package/es/crop/styles/index.js +2 -0
  25. package/es/crop/styles/light.d.ts +14 -0
  26. package/es/crop/styles/light.js +14 -0
  27. package/es/date-picker/src/panel/panelMonth.d.ts +1 -1
  28. package/es/date-picker/src/panel/panelYear.d.ts +1 -1
  29. package/es/dynamic-tags/src/DynamicTags.d.ts +30 -0
  30. package/es/dynamic-tags/styles/light.d.ts +3 -0
  31. package/es/infinite-scroll/src/InfiniteScroll.d.ts +16 -0
  32. package/es/infinite-scroll/src/InfiniteScroll.js +45 -12
  33. package/es/input/src/Input.d.ts +1 -1
  34. package/es/input-number/src/InputNumber.d.ts +1 -1
  35. package/es/legacy-transfer/src/Transfer.d.ts +1 -1
  36. package/es/modal-fullscreen/index.d.ts +2 -0
  37. package/es/modal-fullscreen/index.js +1 -0
  38. package/es/modal-fullscreen/src/ModalFull.d.ts +953 -0
  39. package/es/modal-fullscreen/src/ModalFull.js +250 -0
  40. package/es/modal-fullscreen/src/interface.d.ts +0 -0
  41. package/es/modal-fullscreen/src/interface.js +1 -0
  42. package/es/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
  43. package/es/modal-fullscreen/src/styles/index.cssr.js +85 -0
  44. package/es/modal-fullscreen/styles/_common.d.ts +12 -0
  45. package/es/modal-fullscreen/styles/_common.js +11 -0
  46. package/es/modal-fullscreen/styles/dark.d.ts +3 -0
  47. package/es/modal-fullscreen/styles/dark.js +14 -0
  48. package/es/modal-fullscreen/styles/index.d.ts +3 -0
  49. package/es/modal-fullscreen/styles/index.js +2 -0
  50. package/es/modal-fullscreen/styles/light.d.ts +100 -0
  51. package/es/modal-fullscreen/styles/light.js +19 -0
  52. package/es/rate/src/Rate.d.ts +1 -1
  53. package/es/select/src/Select.d.ts +1 -1
  54. package/es/slider/src/Slider.d.ts +1 -1
  55. package/es/switch/src/Switch.d.ts +1 -1
  56. package/es/tag/index.d.ts +2 -0
  57. package/es/tag/index.js +1 -0
  58. package/es/tag/src/Tag.d.ts +40 -0
  59. package/es/tag/src/Tag.js +3 -0
  60. package/es/tag/src/TagGroup.d.ts +644 -0
  61. package/es/tag/src/TagGroup.js +109 -0
  62. package/es/tag/src/styles/index.cssr.d.ts +1 -0
  63. package/es/tag/src/styles/index.cssr.js +8 -1
  64. package/es/tag/styles/light.d.ts +3 -0
  65. package/es/tag/styles/light.js +5 -0
  66. package/es/themes/dark.js +5 -1
  67. package/es/themes/light.js +5 -1
  68. package/es/time-picker/src/TimePicker.d.ts +1 -1
  69. package/es/transfer/src/Transfer.d.ts +1 -1
  70. package/es/tree-select/src/TreeSelect.d.ts +1 -1
  71. package/es/version.d.ts +1 -1
  72. package/es/version.js +1 -1
  73. package/es/virtual-list/index.d.ts +1 -1
  74. package/es/virtual-list/index.js +1 -1
  75. package/lib/_internal/scrollbar/src/Scrollbar.js +19 -38
  76. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  77. package/lib/cascader/src/Cascader.d.ts +1 -1
  78. package/lib/chat/src/ChatListItems.js +16 -1
  79. package/lib/chat/src/ChatParts/MainArea.js +31 -21
  80. package/lib/components.d.ts +2 -0
  81. package/lib/components.js +2 -0
  82. package/lib/config-provider/src/internal-interface.d.ts +4 -0
  83. package/lib/crop/index.d.ts +3 -0
  84. package/lib/crop/index.js +9 -0
  85. package/lib/crop/src/Crop.d.ts +222 -0
  86. package/lib/crop/src/Crop.js +163 -0
  87. package/lib/crop/src/interface.d.ts +6 -0
  88. package/lib/crop/src/interface.js +10 -0
  89. package/lib/crop/src/styles/index.cssr.d.ts +2 -0
  90. package/lib/crop/src/styles/index.cssr.js +338 -0
  91. package/lib/crop/styles/_common.d.ts +4 -0
  92. package/lib/crop/styles/_common.js +5 -0
  93. package/lib/crop/styles/dark.d.ts +3 -0
  94. package/lib/crop/styles/dark.js +11 -0
  95. package/lib/crop/styles/index.d.ts +3 -0
  96. package/lib/crop/styles/index.js +10 -0
  97. package/lib/crop/styles/light.d.ts +14 -0
  98. package/lib/crop/styles/light.js +21 -0
  99. package/lib/date-picker/src/panel/panelMonth.d.ts +1 -1
  100. package/lib/date-picker/src/panel/panelYear.d.ts +1 -1
  101. package/lib/dynamic-tags/src/DynamicTags.d.ts +30 -0
  102. package/lib/dynamic-tags/styles/light.d.ts +3 -0
  103. package/lib/infinite-scroll/src/InfiniteScroll.d.ts +16 -0
  104. package/lib/infinite-scroll/src/InfiniteScroll.js +44 -11
  105. package/lib/input/src/Input.d.ts +1 -1
  106. package/lib/input-number/src/InputNumber.d.ts +1 -1
  107. package/lib/legacy-transfer/src/Transfer.d.ts +1 -1
  108. package/lib/modal-fullscreen/index.d.ts +2 -0
  109. package/lib/modal-fullscreen/index.js +9 -0
  110. package/lib/modal-fullscreen/src/ModalFull.d.ts +953 -0
  111. package/lib/modal-fullscreen/src/ModalFull.js +256 -0
  112. package/lib/modal-fullscreen/src/interface.d.ts +0 -0
  113. package/lib/modal-fullscreen/src/interface.js +1 -0
  114. package/lib/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
  115. package/lib/modal-fullscreen/src/styles/index.cssr.js +90 -0
  116. package/lib/modal-fullscreen/styles/_common.d.ts +12 -0
  117. package/lib/modal-fullscreen/styles/_common.js +13 -0
  118. package/lib/modal-fullscreen/styles/dark.d.ts +3 -0
  119. package/lib/modal-fullscreen/styles/dark.js +16 -0
  120. package/lib/modal-fullscreen/styles/index.d.ts +3 -0
  121. package/lib/modal-fullscreen/styles/index.js +10 -0
  122. package/lib/modal-fullscreen/styles/light.d.ts +100 -0
  123. package/lib/modal-fullscreen/styles/light.js +26 -0
  124. package/lib/rate/src/Rate.d.ts +1 -1
  125. package/lib/select/src/Select.d.ts +1 -1
  126. package/lib/slider/src/Slider.d.ts +1 -1
  127. package/lib/switch/src/Switch.d.ts +1 -1
  128. package/lib/tag/index.d.ts +2 -0
  129. package/lib/tag/index.js +3 -1
  130. package/lib/tag/src/Tag.d.ts +40 -0
  131. package/lib/tag/src/Tag.js +3 -0
  132. package/lib/tag/src/TagGroup.d.ts +644 -0
  133. package/lib/tag/src/TagGroup.js +112 -0
  134. package/lib/tag/src/styles/index.cssr.d.ts +1 -0
  135. package/lib/tag/src/styles/index.cssr.js +9 -1
  136. package/lib/tag/styles/light.d.ts +3 -0
  137. package/lib/tag/styles/light.js +5 -0
  138. package/lib/themes/dark.js +5 -1
  139. package/lib/themes/light.js +5 -1
  140. package/lib/time-picker/src/TimePicker.d.ts +1 -1
  141. package/lib/transfer/src/Transfer.d.ts +1 -1
  142. package/lib/tree-select/src/TreeSelect.d.ts +1 -1
  143. package/lib/version.d.ts +1 -1
  144. package/lib/version.js +1 -1
  145. package/lib/virtual-list/index.d.ts +1 -1
  146. package/lib/virtual-list/index.js +2 -2
  147. package/package.json +7 -6
  148. package/volar.d.ts +4 -0
  149. package/web-types.json +387 -1
@@ -325,6 +325,9 @@ export declare const dynamicTagsProps: {
325
325
  rippleDuration: string;
326
326
  }, any>;
327
327
  Tag: import("../../_mixins").Theme<"Tag", {
328
+ gapSmall: string;
329
+ gapMedium: string;
330
+ gapLarge: string;
328
331
  closeIconSizeTiny: string;
329
332
  closeIconSizeSmall: string;
330
333
  closeIconSizeMedium: string;
@@ -676,6 +679,9 @@ export declare const dynamicTagsProps: {
676
679
  rippleDuration: string;
677
680
  }, any>;
678
681
  Tag: import("../../_mixins").Theme<"Tag", {
682
+ gapSmall: string;
683
+ gapMedium: string;
684
+ gapLarge: string;
679
685
  closeIconSizeTiny: string;
680
686
  closeIconSizeSmall: string;
681
687
  closeIconSizeMedium: string;
@@ -1027,6 +1033,9 @@ export declare const dynamicTagsProps: {
1027
1033
  rippleDuration: string;
1028
1034
  }, any>;
1029
1035
  Tag: import("../../_mixins").Theme<"Tag", {
1036
+ gapSmall: string;
1037
+ gapMedium: string;
1038
+ gapLarge: string;
1030
1039
  closeIconSizeTiny: string;
1031
1040
  closeIconSizeSmall: string;
1032
1041
  closeIconSizeMedium: string;
@@ -1416,6 +1425,9 @@ declare const _default: import("vue").DefineComponent<{
1416
1425
  rippleDuration: string;
1417
1426
  }, any>;
1418
1427
  Tag: import("../../_mixins").Theme<"Tag", {
1428
+ gapSmall: string;
1429
+ gapMedium: string;
1430
+ gapLarge: string;
1419
1431
  closeIconSizeTiny: string;
1420
1432
  closeIconSizeSmall: string;
1421
1433
  closeIconSizeMedium: string;
@@ -1767,6 +1779,9 @@ declare const _default: import("vue").DefineComponent<{
1767
1779
  rippleDuration: string;
1768
1780
  }, any>;
1769
1781
  Tag: import("../../_mixins").Theme<"Tag", {
1782
+ gapSmall: string;
1783
+ gapMedium: string;
1784
+ gapLarge: string;
1770
1785
  closeIconSizeTiny: string;
1771
1786
  closeIconSizeSmall: string;
1772
1787
  closeIconSizeMedium: string;
@@ -2118,6 +2133,9 @@ declare const _default: import("vue").DefineComponent<{
2118
2133
  rippleDuration: string;
2119
2134
  }, any>;
2120
2135
  Tag: import("../../_mixins").Theme<"Tag", {
2136
+ gapSmall: string;
2137
+ gapMedium: string;
2138
+ gapLarge: string;
2121
2139
  closeIconSizeTiny: string;
2122
2140
  closeIconSizeSmall: string;
2123
2141
  closeIconSizeMedium: string;
@@ -2502,6 +2520,9 @@ declare const _default: import("vue").DefineComponent<{
2502
2520
  rippleDuration: string;
2503
2521
  }, any>;
2504
2522
  Tag: import("../../_mixins").Theme<"Tag", {
2523
+ gapSmall: string;
2524
+ gapMedium: string;
2525
+ gapLarge: string;
2505
2526
  closeIconSizeTiny: string;
2506
2527
  closeIconSizeSmall: string;
2507
2528
  closeIconSizeMedium: string;
@@ -2918,6 +2939,9 @@ declare const _default: import("vue").DefineComponent<{
2918
2939
  rippleDuration: string;
2919
2940
  }, any>;
2920
2941
  Tag: import("../../_mixins").Theme<"Tag", {
2942
+ gapSmall: string;
2943
+ gapMedium: string;
2944
+ gapLarge: string;
2921
2945
  closeIconSizeTiny: string;
2922
2946
  closeIconSizeSmall: string;
2923
2947
  closeIconSizeMedium: string;
@@ -3269,6 +3293,9 @@ declare const _default: import("vue").DefineComponent<{
3269
3293
  rippleDuration: string;
3270
3294
  }, any>;
3271
3295
  Tag: import("../../_mixins").Theme<"Tag", {
3296
+ gapSmall: string;
3297
+ gapMedium: string;
3298
+ gapLarge: string;
3272
3299
  closeIconSizeTiny: string;
3273
3300
  closeIconSizeSmall: string;
3274
3301
  closeIconSizeMedium: string;
@@ -3620,6 +3647,9 @@ declare const _default: import("vue").DefineComponent<{
3620
3647
  rippleDuration: string;
3621
3648
  }, any>;
3622
3649
  Tag: import("../../_mixins").Theme<"Tag", {
3650
+ gapSmall: string;
3651
+ gapMedium: string;
3652
+ gapLarge: string;
3623
3653
  closeIconSizeTiny: string;
3624
3654
  closeIconSizeSmall: string;
3625
3655
  closeIconSizeMedium: string;
@@ -285,6 +285,9 @@ declare const dynamicTagsLight: import("../../_mixins").Theme<"DynamicTags", {
285
285
  rippleDuration: string;
286
286
  }, any>;
287
287
  Tag: import("../../_mixins").Theme<"Tag", {
288
+ gapSmall: string;
289
+ gapMedium: string;
290
+ gapLarge: string;
288
291
  closeIconSizeTiny: string;
289
292
  closeIconSizeSmall: string;
290
293
  closeIconSizeMedium: string;
@@ -6,7 +6,12 @@ export declare const infiniteScrollProps: {
6
6
  readonly type: NumberConstructor;
7
7
  readonly default: 0;
8
8
  };
9
+ readonly topDistance: {
10
+ readonly type: NumberConstructor;
11
+ readonly default: 0;
12
+ };
9
13
  readonly onLoad: PropType<() => Promise<void> | void>;
14
+ readonly onLoadTop: PropType<() => Promise<void> | void>;
10
15
  readonly scrollbarProps: PropType<ScrollbarProps>;
11
16
  };
12
17
  export type InfiniteScrollProps = ExtractPublicPropTypes<typeof infiniteScrollProps>;
@@ -15,7 +20,12 @@ declare const _default: import("vue").DefineComponent<{
15
20
  readonly type: NumberConstructor;
16
21
  readonly default: 0;
17
22
  };
23
+ readonly topDistance: {
24
+ readonly type: NumberConstructor;
25
+ readonly default: 0;
26
+ };
18
27
  readonly onLoad: PropType<() => Promise<void> | void>;
28
+ readonly onLoadTop: PropType<() => Promise<void> | void>;
19
29
  readonly scrollbarProps: PropType<ScrollbarProps>;
20
30
  }, {
21
31
  scrollbarInstRef: import("vue").Ref<{
@@ -37,9 +47,15 @@ declare const _default: import("vue").DefineComponent<{
37
47
  readonly type: NumberConstructor;
38
48
  readonly default: 0;
39
49
  };
50
+ readonly topDistance: {
51
+ readonly type: NumberConstructor;
52
+ readonly default: 0;
53
+ };
40
54
  readonly onLoad: PropType<() => Promise<void> | void>;
55
+ readonly onLoadTop: PropType<() => Promise<void> | void>;
41
56
  readonly scrollbarProps: PropType<ScrollbarProps>;
42
57
  }>>, {
43
58
  readonly distance: number;
59
+ readonly topDistance: number;
44
60
  }, {}>;
45
61
  export default _default;
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { defineComponent, h, ref } from 'vue';
10
+ import { defineComponent, h, ref, nextTick } from 'vue';
11
11
  import { UxScrollbar } from '../../_internal';
12
12
  import { resolveSlot } from '../../_utils';
13
13
  export const infiniteScrollProps = {
@@ -15,7 +15,12 @@ export const infiniteScrollProps = {
15
15
  type: Number,
16
16
  default: 0
17
17
  },
18
+ topDistance: {
19
+ type: Number,
20
+ default: 0
21
+ },
18
22
  onLoad: Function,
23
+ onLoadTop: Function,
19
24
  scrollbarProps: Object
20
25
  };
21
26
  export default defineComponent({
@@ -23,7 +28,8 @@ export default defineComponent({
23
28
  props: infiniteScrollProps,
24
29
  setup(props) {
25
30
  const scrollbarInstRef = ref(null);
26
- let loading = false;
31
+ let loadingBottom = false;
32
+ let loadingTop = false;
27
33
  const handleCheckBottom = () => __awaiter(this, void 0, void 0, function* () {
28
34
  var _a;
29
35
  const { value: scrollbarInst } = scrollbarInstRef;
@@ -37,30 +43,57 @@ export default defineComponent({
37
43
  clientHeight !== undefined &&
38
44
  scrollTop !== undefined) {
39
45
  if (scrollTop + clientHeight >= scrollHeight - props.distance) {
40
- loading = true;
46
+ loadingBottom = true;
41
47
  try {
42
48
  yield ((_a = props.onLoad) === null || _a === void 0 ? void 0 : _a.call(props));
43
49
  }
44
50
  catch (_b) { }
45
- loading = false;
51
+ loadingBottom = false;
52
+ }
53
+ }
54
+ }
55
+ });
56
+ const handleCheckTop = () => __awaiter(this, void 0, void 0, function* () {
57
+ var _a;
58
+ const { value: scrollbarInst } = scrollbarInstRef;
59
+ if (scrollbarInst) {
60
+ const { containerRef } = scrollbarInst;
61
+ const scrollTop = containerRef === null || containerRef === void 0 ? void 0 : containerRef.scrollTop;
62
+ if (containerRef && scrollTop !== undefined) {
63
+ if (scrollTop <= props.topDistance) {
64
+ loadingTop = true;
65
+ const oldScrollHeight = containerRef.scrollHeight;
66
+ const oldScrollTop = containerRef.scrollTop;
67
+ try {
68
+ yield ((_a = props.onLoadTop) === null || _a === void 0 ? void 0 : _a.call(props));
69
+ yield nextTick();
70
+ const newScrollHeight = containerRef.scrollHeight;
71
+ const heightDiff = newScrollHeight - oldScrollHeight;
72
+ if (heightDiff > 0) {
73
+ containerRef.scrollTop = oldScrollTop + heightDiff;
74
+ }
75
+ }
76
+ catch (_b) { }
77
+ loadingTop = false;
46
78
  }
47
79
  }
48
80
  }
49
81
  });
50
82
  const handleScroll = () => {
51
- if (loading) {
52
- return;
83
+ if (!loadingBottom) {
84
+ void handleCheckBottom();
85
+ }
86
+ if (!loadingTop) {
87
+ void handleCheckTop();
53
88
  }
54
- void handleCheckBottom();
55
89
  };
56
90
  const handleWheel = (e) => {
57
- if (e.deltaY <= 0) {
58
- return;
91
+ if (e.deltaY > 0 && !loadingBottom) {
92
+ void handleCheckBottom();
59
93
  }
60
- if (loading) {
61
- return;
94
+ if (e.deltaY < 0 && !loadingTop) {
95
+ void handleCheckTop();
62
96
  }
63
- void handleCheckBottom();
64
97
  };
65
98
  return {
66
99
  scrollbarInstRef,
@@ -1103,6 +1103,7 @@ declare const _default: import("vue").DefineComponent<{
1103
1103
  round: boolean;
1104
1104
  autofocus: boolean;
1105
1105
  uppercase: boolean;
1106
+ defaultValue: string | [string, string] | null;
1106
1107
  clearable: boolean;
1107
1108
  loadingSkeleton: boolean;
1108
1109
  autosize: boolean | {
@@ -1112,7 +1113,6 @@ declare const _default: import("vue").DefineComponent<{
1112
1113
  resizable: boolean;
1113
1114
  pair: boolean;
1114
1115
  autocomplete: boolean;
1115
- defaultValue: string | [string, string] | null;
1116
1116
  rows: string | number;
1117
1117
  copyable: boolean;
1118
1118
  readonly: string | boolean;
@@ -3104,12 +3104,12 @@ declare const _default: import("vue").DefineComponent<{
3104
3104
  bordered: boolean | undefined;
3105
3105
  step: string | number;
3106
3106
  autofocus: boolean;
3107
+ defaultValue: number | null;
3107
3108
  clearable: boolean;
3108
3109
  keyboard: {
3109
3110
  ArrowUp?: boolean;
3110
3111
  ArrowDown?: boolean;
3111
3112
  };
3112
- defaultValue: number | null;
3113
3113
  readonly: boolean;
3114
3114
  showButton: boolean;
3115
3115
  buttonPlacement: "right" | "both";
@@ -4079,8 +4079,8 @@ declare const _default: import("vue").DefineComponent<{
4079
4079
  readonly filter: Filter;
4080
4080
  readonly disabled: boolean | undefined;
4081
4081
  readonly virtualScroll: boolean;
4082
- readonly filterable: boolean;
4083
4082
  readonly defaultValue: OptionValue[] | null;
4083
+ readonly filterable: boolean;
4084
4084
  readonly options: Option[];
4085
4085
  }, {}>;
4086
4086
  export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as UModalFullscreen, modalFullscreenProps } from './src/ModalFull';
2
+ export type { ModalFullscreenProps } from './src/ModalFull';
@@ -0,0 +1 @@
1
+ export { default as UModalFullscreen, modalFullscreenProps } from './src/ModalFull';