@uzum-tech/ui 1.8.2 → 1.9.0

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 (229) hide show
  1. package/dist/index.js +659 -115
  2. package/dist/index.prod.js +3 -3
  3. package/es/_internal/scrollbar/src/Scrollbar.d.ts +119 -17
  4. package/es/_internal/scrollbar/src/Scrollbar.js +120 -67
  5. package/es/_internal/scrollbar/src/styles/index.cssr.js +32 -15
  6. package/es/_internal/scrollbar/styles/common.d.ts +7 -0
  7. package/es/_internal/scrollbar/styles/common.js +7 -0
  8. package/es/_internal/scrollbar/styles/light.d.ts +8 -0
  9. package/es/_internal/scrollbar/styles/light.js +3 -5
  10. package/es/_internal/select-menu/src/SelectMenu.d.ts +57 -1
  11. package/es/_internal/select-menu/styles/light.d.ts +8 -0
  12. package/es/_internal/selection/src/Selection.d.ts +3 -1
  13. package/es/_internal/selection/src/Selection.js +3 -1
  14. package/es/_utils/css/index.d.ts +1 -0
  15. package/es/_utils/css/index.js +1 -0
  16. package/es/_utils/css/rtl-inset.d.ts +1 -0
  17. package/es/_utils/css/rtl-inset.js +5 -0
  18. package/es/_utils/index.d.ts +1 -1
  19. package/es/_utils/index.js +1 -1
  20. package/es/auto-complete/src/AutoComplete.d.ts +88 -0
  21. package/es/auto-complete/styles/light.d.ts +8 -0
  22. package/es/back-top/src/BackTop.d.ts +1 -1
  23. package/es/cascader/src/Cascader.d.ts +168 -0
  24. package/es/cascader/src/CascaderMenu.d.ts +24 -0
  25. package/es/cascader/src/CascaderOption.d.ts +24 -0
  26. package/es/cascader/src/CascaderSelectMenu.d.ts +24 -0
  27. package/es/cascader/src/CascaderSubmenu.d.ts +25 -1
  28. package/es/cascader/styles/light.d.ts +16 -0
  29. package/es/chat/src/Chat.d.ts +88 -0
  30. package/es/chat/src/ChatListItems.d.ts +104 -0
  31. package/es/chat/src/ChatMessages.d.ts +104 -0
  32. package/es/chat/styles/dark.d.ts +8 -0
  33. package/es/chat/styles/light.d.ts +8 -0
  34. package/es/components.d.ts +2 -0
  35. package/es/components.js +2 -0
  36. package/es/data-table/src/DataTable.d.ts +184 -0
  37. package/es/data-table/src/HeaderButton/FilterButton.d.ts +40 -0
  38. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +40 -0
  39. package/es/data-table/src/TableParts/Body.d.ts +41 -1
  40. package/es/data-table/src/TableParts/Header.d.ts +40 -0
  41. package/es/data-table/src/interface.d.ts +72 -0
  42. package/es/data-table/styles/light.d.ts +24 -0
  43. package/es/date-picker/src/DatePicker.d.ts +171 -3
  44. package/es/date-picker/src/panel/date.d.ts +25 -1
  45. package/es/date-picker/src/panel/daterange.d.ts +26 -2
  46. package/es/date-picker/src/panel/datetime.d.ts +25 -1
  47. package/es/date-picker/src/panel/datetimerange.d.ts +26 -2
  48. package/es/date-picker/src/panel/panelMonth.d.ts +50 -2
  49. package/es/date-picker/src/panel/panelMonthContent.d.ts +25 -1
  50. package/es/date-picker/src/panel/panelYear.d.ts +50 -2
  51. package/es/date-picker/src/panel/panelYearContent.d.ts +25 -1
  52. package/es/date-picker/src/panel/use-calendar.d.ts +24 -0
  53. package/es/date-picker/src/panel/use-dual-calendar.d.ts +24 -0
  54. package/es/date-picker/src/panel/use-panel-common.d.ts +24 -0
  55. package/es/date-picker/styles/light.d.ts +16 -0
  56. package/es/dialog/src/DialogProvider.d.ts +2 -2
  57. package/es/drawer/src/Drawer.d.ts +81 -1
  58. package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -1
  59. package/es/drawer/src/DrawerContent.d.ts +8 -0
  60. package/es/drawer/styles/light.d.ts +8 -0
  61. package/es/dropdown/src/Dropdown.d.ts +1 -1
  62. package/es/infinite-scroll/index.d.ts +2 -0
  63. package/es/infinite-scroll/index.js +1 -0
  64. package/es/infinite-scroll/src/InfiniteScroll.d.ts +45 -0
  65. package/es/infinite-scroll/src/InfiniteScroll.js +78 -0
  66. package/es/layout/src/Layout.d.ts +112 -0
  67. package/es/layout/src/LayoutContent.d.ts +56 -0
  68. package/es/layout/src/LayoutFooter.d.ts +72 -0
  69. package/es/layout/src/LayoutHeader.d.ts +48 -0
  70. package/es/layout/src/LayoutSider.d.ts +56 -0
  71. package/es/layout/styles/light.d.ts +8 -0
  72. package/es/legacy-transfer/src/Transfer.d.ts +80 -0
  73. package/es/legacy-transfer/src/TransferFilter.d.ts +8 -0
  74. package/es/legacy-transfer/src/TransferList.d.ts +9 -1
  75. package/es/legacy-transfer/src/TransferListItem.d.ts +8 -0
  76. package/es/legacy-transfer/styles/light.d.ts +8 -0
  77. package/es/log/src/Log.d.ts +80 -0
  78. package/es/log/styles/light.d.ts +8 -0
  79. package/es/mention/src/Mention.d.ts +88 -0
  80. package/es/mention/styles/light.d.ts +8 -0
  81. package/es/menu/src/Menu.d.ts +1 -1
  82. package/es/modal/src/BodyWrapper.d.ts +9 -1
  83. package/es/modal/src/Modal.d.ts +73 -1
  84. package/es/modal/styles/light.d.ts +8 -0
  85. package/es/notification/src/NotificationContainer.d.ts +8 -0
  86. package/es/notification/src/NotificationProvider.d.ts +72 -0
  87. package/es/notification/styles/light.d.ts +8 -0
  88. package/es/pagination/src/Pagination.d.ts +176 -0
  89. package/es/pagination/styles/light.d.ts +16 -0
  90. package/es/popselect/src/Popselect.d.ts +88 -0
  91. package/es/popselect/src/PopselectPanel.d.ts +16 -0
  92. package/es/popselect/styles/light.d.ts +8 -0
  93. package/es/scrollbar/src/Scrollbar.d.ts +72 -0
  94. package/es/select/src/Select.d.ts +88 -0
  95. package/es/select/styles/light.d.ts +8 -0
  96. package/es/time-picker/src/Panel.d.ts +8 -0
  97. package/es/time-picker/src/TimePicker.d.ts +80 -0
  98. package/es/time-picker/styles/light.d.ts +8 -0
  99. package/es/transfer/src/Transfer.d.ts +80 -0
  100. package/es/transfer/src/TransferFilter.d.ts +8 -0
  101. package/es/transfer/src/TransferList.d.ts +9 -1
  102. package/es/transfer/src/TransferListItem.d.ts +8 -0
  103. package/es/transfer/styles/light.d.ts +8 -0
  104. package/es/tree/src/Tree.d.ts +82 -2
  105. package/es/tree/src/TreeNodeCheckbox.d.ts +8 -0
  106. package/es/tree/styles/light.d.ts +8 -0
  107. package/es/tree-select/src/TreeSelect.d.ts +89 -1
  108. package/es/tree-select/styles/light.d.ts +8 -0
  109. package/es/version.d.ts +1 -1
  110. package/es/version.js +1 -1
  111. package/es/virtual-list/index.d.ts +2 -0
  112. package/es/virtual-list/index.js +1 -0
  113. package/es/virtual-list/src/VirtualList.d.ts +146 -0
  114. package/es/virtual-list/src/VirtualList.js +103 -0
  115. package/lib/_internal/scrollbar/src/Scrollbar.d.ts +119 -17
  116. package/lib/_internal/scrollbar/src/Scrollbar.js +117 -64
  117. package/lib/_internal/scrollbar/src/styles/index.cssr.js +32 -15
  118. package/lib/_internal/scrollbar/styles/common.d.ts +7 -0
  119. package/lib/_internal/scrollbar/styles/common.js +10 -0
  120. package/lib/_internal/scrollbar/styles/light.d.ts +8 -0
  121. package/lib/_internal/scrollbar/styles/light.js +3 -5
  122. package/lib/_internal/select-menu/src/SelectMenu.d.ts +57 -1
  123. package/lib/_internal/select-menu/styles/light.d.ts +8 -0
  124. package/lib/_internal/selection/src/Selection.d.ts +3 -1
  125. package/lib/_internal/selection/src/Selection.js +3 -1
  126. package/lib/_utils/css/index.d.ts +1 -0
  127. package/lib/_utils/css/index.js +3 -1
  128. package/lib/_utils/css/rtl-inset.d.ts +1 -0
  129. package/lib/_utils/css/rtl-inset.js +8 -0
  130. package/lib/_utils/index.d.ts +1 -1
  131. package/lib/_utils/index.js +2 -1
  132. package/lib/auto-complete/src/AutoComplete.d.ts +88 -0
  133. package/lib/auto-complete/styles/light.d.ts +8 -0
  134. package/lib/back-top/src/BackTop.d.ts +1 -1
  135. package/lib/cascader/src/Cascader.d.ts +168 -0
  136. package/lib/cascader/src/CascaderMenu.d.ts +24 -0
  137. package/lib/cascader/src/CascaderOption.d.ts +24 -0
  138. package/lib/cascader/src/CascaderSelectMenu.d.ts +24 -0
  139. package/lib/cascader/src/CascaderSubmenu.d.ts +25 -1
  140. package/lib/cascader/styles/light.d.ts +16 -0
  141. package/lib/chat/src/Chat.d.ts +88 -0
  142. package/lib/chat/src/ChatListItems.d.ts +104 -0
  143. package/lib/chat/src/ChatMessages.d.ts +104 -0
  144. package/lib/chat/styles/dark.d.ts +8 -0
  145. package/lib/chat/styles/light.d.ts +8 -0
  146. package/lib/components.d.ts +2 -0
  147. package/lib/components.js +2 -0
  148. package/lib/data-table/src/DataTable.d.ts +184 -0
  149. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +40 -0
  150. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +40 -0
  151. package/lib/data-table/src/TableParts/Body.d.ts +41 -1
  152. package/lib/data-table/src/TableParts/Header.d.ts +40 -0
  153. package/lib/data-table/src/interface.d.ts +72 -0
  154. package/lib/data-table/styles/light.d.ts +24 -0
  155. package/lib/date-picker/src/DatePicker.d.ts +171 -3
  156. package/lib/date-picker/src/panel/date.d.ts +25 -1
  157. package/lib/date-picker/src/panel/daterange.d.ts +26 -2
  158. package/lib/date-picker/src/panel/datetime.d.ts +25 -1
  159. package/lib/date-picker/src/panel/datetimerange.d.ts +26 -2
  160. package/lib/date-picker/src/panel/panelMonth.d.ts +50 -2
  161. package/lib/date-picker/src/panel/panelMonthContent.d.ts +25 -1
  162. package/lib/date-picker/src/panel/panelYear.d.ts +50 -2
  163. package/lib/date-picker/src/panel/panelYearContent.d.ts +25 -1
  164. package/lib/date-picker/src/panel/use-calendar.d.ts +24 -0
  165. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +24 -0
  166. package/lib/date-picker/src/panel/use-panel-common.d.ts +24 -0
  167. package/lib/date-picker/styles/light.d.ts +16 -0
  168. package/lib/dialog/src/DialogProvider.d.ts +2 -2
  169. package/lib/drawer/src/Drawer.d.ts +81 -1
  170. package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -1
  171. package/lib/drawer/src/DrawerContent.d.ts +8 -0
  172. package/lib/drawer/styles/light.d.ts +8 -0
  173. package/lib/dropdown/src/Dropdown.d.ts +1 -1
  174. package/lib/infinite-scroll/index.d.ts +2 -0
  175. package/lib/infinite-scroll/index.js +9 -0
  176. package/lib/infinite-scroll/src/InfiniteScroll.d.ts +45 -0
  177. package/lib/infinite-scroll/src/InfiniteScroll.js +81 -0
  178. package/lib/layout/src/Layout.d.ts +112 -0
  179. package/lib/layout/src/LayoutContent.d.ts +56 -0
  180. package/lib/layout/src/LayoutFooter.d.ts +72 -0
  181. package/lib/layout/src/LayoutHeader.d.ts +48 -0
  182. package/lib/layout/src/LayoutSider.d.ts +56 -0
  183. package/lib/layout/styles/light.d.ts +8 -0
  184. package/lib/legacy-transfer/src/Transfer.d.ts +80 -0
  185. package/lib/legacy-transfer/src/TransferFilter.d.ts +8 -0
  186. package/lib/legacy-transfer/src/TransferList.d.ts +9 -1
  187. package/lib/legacy-transfer/src/TransferListItem.d.ts +8 -0
  188. package/lib/legacy-transfer/styles/light.d.ts +8 -0
  189. package/lib/log/src/Log.d.ts +80 -0
  190. package/lib/log/styles/light.d.ts +8 -0
  191. package/lib/mention/src/Mention.d.ts +88 -0
  192. package/lib/mention/styles/light.d.ts +8 -0
  193. package/lib/menu/src/Menu.d.ts +1 -1
  194. package/lib/modal/src/BodyWrapper.d.ts +9 -1
  195. package/lib/modal/src/Modal.d.ts +73 -1
  196. package/lib/modal/styles/light.d.ts +8 -0
  197. package/lib/notification/src/NotificationContainer.d.ts +8 -0
  198. package/lib/notification/src/NotificationProvider.d.ts +72 -0
  199. package/lib/notification/styles/light.d.ts +8 -0
  200. package/lib/pagination/src/Pagination.d.ts +176 -0
  201. package/lib/pagination/styles/light.d.ts +16 -0
  202. package/lib/popselect/src/Popselect.d.ts +88 -0
  203. package/lib/popselect/src/PopselectPanel.d.ts +16 -0
  204. package/lib/popselect/styles/light.d.ts +8 -0
  205. package/lib/scrollbar/src/Scrollbar.d.ts +72 -0
  206. package/lib/select/src/Select.d.ts +88 -0
  207. package/lib/select/styles/light.d.ts +8 -0
  208. package/lib/time-picker/src/Panel.d.ts +8 -0
  209. package/lib/time-picker/src/TimePicker.d.ts +80 -0
  210. package/lib/time-picker/styles/light.d.ts +8 -0
  211. package/lib/transfer/src/Transfer.d.ts +80 -0
  212. package/lib/transfer/src/TransferFilter.d.ts +8 -0
  213. package/lib/transfer/src/TransferList.d.ts +9 -1
  214. package/lib/transfer/src/TransferListItem.d.ts +8 -0
  215. package/lib/transfer/styles/light.d.ts +8 -0
  216. package/lib/tree/src/Tree.d.ts +82 -2
  217. package/lib/tree/src/TreeNodeCheckbox.d.ts +8 -0
  218. package/lib/tree/styles/light.d.ts +8 -0
  219. package/lib/tree-select/src/TreeSelect.d.ts +89 -1
  220. package/lib/tree-select/styles/light.d.ts +8 -0
  221. package/lib/version.d.ts +1 -1
  222. package/lib/version.js +1 -1
  223. package/lib/virtual-list/index.d.ts +2 -0
  224. package/lib/virtual-list/index.js +9 -0
  225. package/lib/virtual-list/src/VirtualList.d.ts +146 -0
  226. package/lib/virtual-list/src/VirtualList.js +106 -0
  227. package/package.json +2 -2
  228. package/volar.d.ts +1 -0
  229. package/web-types.json +30 -1
@@ -489,8 +489,16 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
489
489
  iconColorDisabled: string;
490
490
  }, {
491
491
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
492
+ height: string;
493
+ width: string;
494
+ borderRadius: string;
492
495
  color: string;
493
496
  colorHover: string;
497
+ railInsetHorizontalBottom: string;
498
+ railInsetHorizontalTop: string;
499
+ railInsetVerticalRight: string;
500
+ railInsetVerticalLeft: string;
501
+ railColor: string;
494
502
  }, any>;
495
503
  Button: import("../../../_mixins").Theme<"Button", {
496
504
  heightTiny: string;
@@ -777,8 +785,16 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
777
785
  }, any>;
778
786
  }>;
779
787
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
788
+ height: string;
789
+ width: string;
790
+ borderRadius: string;
780
791
  color: string;
781
792
  colorHover: string;
793
+ railInsetHorizontalBottom: string;
794
+ railInsetHorizontalTop: string;
795
+ railInsetVerticalRight: string;
796
+ railInsetVerticalLeft: string;
797
+ railColor: string;
782
798
  }, any>;
783
799
  };
784
800
  peerOverrides: {
@@ -795,8 +811,16 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
795
811
  TimePicker?: {
796
812
  peers?: {
797
813
  Scrollbar?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Scrollbar", {
814
+ height: string;
815
+ width: string;
816
+ borderRadius: string;
798
817
  color: string;
799
818
  colorHover: string;
819
+ railInsetHorizontalBottom: string;
820
+ railInsetHorizontalTop: string;
821
+ railInsetVerticalRight: string;
822
+ railInsetVerticalLeft: string;
823
+ railColor: string;
800
824
  }, any>> | undefined;
801
825
  Button?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Button", {
802
826
  heightTiny: string;
@@ -433,8 +433,16 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
433
433
  iconColorDisabled: string;
434
434
  }, {
435
435
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
436
+ height: string;
437
+ width: string;
438
+ borderRadius: string;
436
439
  color: string;
437
440
  colorHover: string;
441
+ railInsetHorizontalBottom: string;
442
+ railInsetHorizontalTop: string;
443
+ railInsetVerticalRight: string;
444
+ railInsetVerticalLeft: string;
445
+ railColor: string;
438
446
  }, any>;
439
447
  Button: import("../../../_mixins").Theme<"Button", {
440
448
  heightTiny: string;
@@ -721,8 +729,16 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
721
729
  }, any>;
722
730
  }>;
723
731
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
732
+ height: string;
733
+ width: string;
734
+ borderRadius: string;
724
735
  color: string;
725
736
  colorHover: string;
737
+ railInsetHorizontalBottom: string;
738
+ railInsetHorizontalTop: string;
739
+ railInsetVerticalRight: string;
740
+ railInsetVerticalLeft: string;
741
+ railColor: string;
726
742
  }, any>;
727
743
  };
728
744
  peerOverrides: {
@@ -739,8 +755,16 @@ declare function usePanelCommon(props: UsePanelCommonProps): {
739
755
  TimePicker?: {
740
756
  peers?: {
741
757
  Scrollbar?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Scrollbar", {
758
+ height: string;
759
+ width: string;
760
+ borderRadius: string;
742
761
  color: string;
743
762
  colorHover: string;
763
+ railInsetHorizontalBottom: string;
764
+ railInsetHorizontalTop: string;
765
+ railInsetVerticalRight: string;
766
+ railInsetVerticalLeft: string;
767
+ railColor: string;
744
768
  }, any>> | undefined;
745
769
  Button?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Button", {
746
770
  heightTiny: string;
@@ -500,8 +500,16 @@ declare const datePickerLight: import("../../_mixins").Theme<"DatePicker", {
500
500
  iconColorDisabled: string;
501
501
  }, {
502
502
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
503
+ height: string;
504
+ width: string;
505
+ borderRadius: string;
503
506
  color: string;
504
507
  colorHover: string;
508
+ railInsetHorizontalBottom: string;
509
+ railInsetHorizontalTop: string;
510
+ railInsetVerticalRight: string;
511
+ railInsetVerticalLeft: string;
512
+ railColor: string;
505
513
  }, any>;
506
514
  Button: import("../../_mixins").Theme<"Button", {
507
515
  heightTiny: string;
@@ -788,8 +796,16 @@ declare const datePickerLight: import("../../_mixins").Theme<"DatePicker", {
788
796
  }, any>;
789
797
  }>;
790
798
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
799
+ height: string;
800
+ width: string;
801
+ borderRadius: string;
791
802
  color: string;
792
803
  colorHover: string;
804
+ railInsetHorizontalBottom: string;
805
+ railInsetHorizontalTop: string;
806
+ railInsetVerticalRight: string;
807
+ railInsetVerticalLeft: string;
808
+ railColor: string;
793
809
  }, any>;
794
810
  }>;
795
811
  export default datePickerLight;
@@ -57,8 +57,6 @@ export declare const UDialogProvider: import("vue").DefineComponent<{
57
57
  onAfterEnter?: (() => void) | undefined;
58
58
  transformOrigin?: "center" | "mouse" | undefined;
59
59
  onClose?: (() => Promise<unknown> | unknown) | undefined;
60
- autoFocus?: boolean | undefined;
61
- onEsc?: (() => void) | undefined;
62
60
  iconPlacement?: import("./interface").IconPlacement | undefined;
63
61
  positiveButtonProps?: {
64
62
  type?: import("../../button/src/interface").Type | undefined;
@@ -796,7 +794,9 @@ export declare const UDialogProvider: import("vue").DefineComponent<{
796
794
  } | undefined;
797
795
  onPositiveClick?: ((e: MouseEvent) => Promise<unknown> | unknown) | undefined;
798
796
  onNegativeClick?: ((e: MouseEvent) => Promise<unknown> | unknown) | undefined;
797
+ autoFocus?: boolean | undefined;
799
798
  blockScroll?: boolean | undefined;
799
+ onEsc?: (() => void) | undefined;
800
800
  onMaskClick?: ((e: MouseEvent) => void) | undefined;
801
801
  maskClosable?: boolean | undefined;
802
802
  closeOnEsc?: boolean | undefined;
@@ -116,8 +116,16 @@ export declare const drawerProps: {
116
116
  contentBorderRadius: string;
117
117
  }, {
118
118
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
119
+ height: string;
120
+ width: string;
121
+ borderRadius: string;
119
122
  color: string;
120
123
  colorHover: string;
124
+ railInsetHorizontalBottom: string;
125
+ railInsetHorizontalTop: string;
126
+ railInsetVerticalRight: string;
127
+ railInsetVerticalLeft: string;
128
+ railColor: string;
121
129
  }, any>;
122
130
  }>>;
123
131
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Drawer", {
@@ -153,8 +161,16 @@ export declare const drawerProps: {
153
161
  contentBorderRadius: string;
154
162
  }, {
155
163
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
164
+ height: string;
165
+ width: string;
166
+ borderRadius: string;
156
167
  color: string;
157
168
  colorHover: string;
169
+ railInsetHorizontalBottom: string;
170
+ railInsetHorizontalTop: string;
171
+ railInsetVerticalRight: string;
172
+ railInsetVerticalLeft: string;
173
+ railColor: string;
158
174
  }, any>;
159
175
  }>>>;
160
176
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Drawer", {
@@ -190,8 +206,16 @@ export declare const drawerProps: {
190
206
  contentBorderRadius: string;
191
207
  }, {
192
208
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
209
+ height: string;
210
+ width: string;
211
+ borderRadius: string;
193
212
  color: string;
194
213
  colorHover: string;
214
+ railInsetHorizontalBottom: string;
215
+ railInsetHorizontalTop: string;
216
+ railInsetVerticalRight: string;
217
+ railInsetVerticalLeft: string;
218
+ railColor: string;
195
219
  }, any>;
196
220
  }>>>;
197
221
  };
@@ -309,8 +333,16 @@ declare const _default: import("vue").DefineComponent<{
309
333
  contentBorderRadius: string;
310
334
  }, {
311
335
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
336
+ height: string;
337
+ width: string;
338
+ borderRadius: string;
312
339
  color: string;
313
340
  colorHover: string;
341
+ railInsetHorizontalBottom: string;
342
+ railInsetHorizontalTop: string;
343
+ railInsetVerticalRight: string;
344
+ railInsetVerticalLeft: string;
345
+ railColor: string;
314
346
  }, any>;
315
347
  }>>;
316
348
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Drawer", {
@@ -346,8 +378,16 @@ declare const _default: import("vue").DefineComponent<{
346
378
  contentBorderRadius: string;
347
379
  }, {
348
380
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
381
+ height: string;
382
+ width: string;
383
+ borderRadius: string;
349
384
  color: string;
350
385
  colorHover: string;
386
+ railInsetHorizontalBottom: string;
387
+ railInsetHorizontalTop: string;
388
+ railInsetVerticalRight: string;
389
+ railInsetVerticalLeft: string;
390
+ railColor: string;
351
391
  }, any>;
352
392
  }>>>;
353
393
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Drawer", {
@@ -383,8 +423,16 @@ declare const _default: import("vue").DefineComponent<{
383
423
  contentBorderRadius: string;
384
424
  }, {
385
425
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
426
+ height: string;
427
+ width: string;
428
+ borderRadius: string;
386
429
  color: string;
387
430
  colorHover: string;
431
+ railInsetHorizontalBottom: string;
432
+ railInsetHorizontalTop: string;
433
+ railInsetVerticalRight: string;
434
+ railInsetVerticalLeft: string;
435
+ railColor: string;
388
436
  }, any>;
389
437
  }>>>;
390
438
  }, {
@@ -429,8 +477,16 @@ declare const _default: import("vue").DefineComponent<{
429
477
  };
430
478
  peers: {
431
479
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
480
+ height: string;
481
+ width: string;
482
+ borderRadius: string;
432
483
  color: string;
433
484
  colorHover: string;
485
+ railInsetHorizontalBottom: string;
486
+ railInsetHorizontalTop: string;
487
+ railInsetVerticalRight: string;
488
+ railInsetVerticalLeft: string;
489
+ railColor: string;
434
490
  }, any>;
435
491
  };
436
492
  peerOverrides: {
@@ -592,8 +648,16 @@ declare const _default: import("vue").DefineComponent<{
592
648
  contentBorderRadius: string;
593
649
  }, {
594
650
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
651
+ height: string;
652
+ width: string;
653
+ borderRadius: string;
595
654
  color: string;
596
655
  colorHover: string;
656
+ railInsetHorizontalBottom: string;
657
+ railInsetHorizontalTop: string;
658
+ railInsetVerticalRight: string;
659
+ railInsetVerticalLeft: string;
660
+ railColor: string;
597
661
  }, any>;
598
662
  }>>;
599
663
  readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Drawer", {
@@ -629,8 +693,16 @@ declare const _default: import("vue").DefineComponent<{
629
693
  contentBorderRadius: string;
630
694
  }, {
631
695
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
696
+ height: string;
697
+ width: string;
698
+ borderRadius: string;
632
699
  color: string;
633
700
  colorHover: string;
701
+ railInsetHorizontalBottom: string;
702
+ railInsetHorizontalTop: string;
703
+ railInsetVerticalRight: string;
704
+ railInsetVerticalLeft: string;
705
+ railColor: string;
634
706
  }, any>;
635
707
  }>>>;
636
708
  readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Drawer", {
@@ -666,8 +738,16 @@ declare const _default: import("vue").DefineComponent<{
666
738
  contentBorderRadius: string;
667
739
  }, {
668
740
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
741
+ height: string;
742
+ width: string;
743
+ borderRadius: string;
669
744
  color: string;
670
745
  colorHover: string;
746
+ railInsetHorizontalBottom: string;
747
+ railInsetHorizontalTop: string;
748
+ railInsetVerticalRight: string;
749
+ railInsetVerticalLeft: string;
750
+ railColor: string;
671
751
  }, any>;
672
752
  }>>>;
673
753
  }>>, {
@@ -677,10 +757,10 @@ declare const _default: import("vue").DefineComponent<{
677
757
  readonly show: boolean;
678
758
  readonly displayDirective: "show" | "if";
679
759
  readonly placement: Placement;
680
- readonly autoFocus: boolean;
681
760
  readonly resizable: boolean;
682
761
  readonly rounded: boolean;
683
762
  readonly trapFocus: boolean;
763
+ readonly autoFocus: boolean;
684
764
  readonly blockScroll: boolean;
685
765
  readonly maskClosable: boolean;
686
766
  readonly closeOnEsc: boolean;
@@ -83,8 +83,16 @@ declare const _default: import("vue").DefineComponent<{
83
83
  };
84
84
  peers: {
85
85
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
86
+ height: string;
87
+ width: string;
88
+ borderRadius: string;
86
89
  color: string;
87
90
  colorHover: string;
91
+ railInsetHorizontalBottom: string;
92
+ railInsetHorizontalTop: string;
93
+ railInsetVerticalRight: string;
94
+ railInsetVerticalLeft: string;
95
+ railColor: string;
88
96
  }, any>;
89
97
  };
90
98
  peerOverrides: {
@@ -147,10 +155,10 @@ declare const _default: import("vue").DefineComponent<{
147
155
  onEsc: PropType<(e: KeyboardEvent) => void>;
148
156
  }>>, {
149
157
  show: boolean | undefined;
150
- autoFocus: boolean;
151
158
  resizable: boolean;
152
159
  rounded: boolean;
153
160
  trapFocus: boolean;
161
+ autoFocus: boolean;
154
162
  blockScroll: boolean;
155
163
  }, {}>;
156
164
  export default _default;
@@ -95,8 +95,16 @@ declare const _default: import("vue").DefineComponent<{
95
95
  };
96
96
  peers: {
97
97
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
98
+ height: string;
99
+ width: string;
100
+ borderRadius: string;
98
101
  color: string;
99
102
  colorHover: string;
103
+ railInsetHorizontalBottom: string;
104
+ railInsetHorizontalTop: string;
105
+ railInsetVerticalRight: string;
106
+ railInsetVerticalLeft: string;
107
+ railColor: string;
100
108
  }, any>;
101
109
  };
102
110
  peerOverrides: {
@@ -65,8 +65,16 @@ declare const drawerLight: import("../../_mixins").Theme<"Drawer", {
65
65
  contentBorderRadius: string;
66
66
  }, {
67
67
  Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
68
+ height: string;
69
+ width: string;
70
+ borderRadius: string;
68
71
  color: string;
69
72
  colorHover: string;
73
+ railInsetHorizontalBottom: string;
74
+ railInsetHorizontalTop: string;
75
+ railInsetVerticalRight: string;
76
+ railInsetVerticalLeft: string;
77
+ railColor: string;
70
78
  }, any>;
71
79
  }>;
72
80
  export default drawerLight;
@@ -1108,7 +1108,6 @@ declare const _default: import("vue").DefineComponent<{
1108
1108
  readonly trigger: import("../../popover").PopoverTrigger;
1109
1109
  readonly flip: boolean;
1110
1110
  readonly labelField: string;
1111
- readonly keyField: string;
1112
1111
  readonly overlap: boolean;
1113
1112
  readonly showArrow: boolean;
1114
1113
  readonly delay: number;
@@ -1127,5 +1126,6 @@ declare const _default: import("vue").DefineComponent<{
1127
1126
  readonly options: DropdownMixedOption[];
1128
1127
  readonly childrenField: string;
1129
1128
  readonly inverted: boolean;
1129
+ readonly keyField: string;
1130
1130
  }, {}>;
1131
1131
  export default _default;
@@ -0,0 +1,2 @@
1
+ export { infiniteScrollProps, default as UInfiniteScroll } from './src/InfiniteScroll';
2
+ export type { InfiniteScrollProps } from './src/InfiniteScroll';
@@ -0,0 +1 @@
1
+ export { infiniteScrollProps, default as UInfiniteScroll } from './src/InfiniteScroll';
@@ -0,0 +1,45 @@
1
+ import type { PropType } from 'vue';
2
+ import type { ExtractPublicPropTypes } from '../../_utils';
3
+ import type { ScrollbarProps } from '../../scrollbar/src/Scrollbar';
4
+ export declare const infiniteScrollProps: {
5
+ readonly distance: {
6
+ readonly type: NumberConstructor;
7
+ readonly default: 0;
8
+ };
9
+ readonly onLoad: PropType<() => Promise<void> | void>;
10
+ readonly scrollbarProps: PropType<ScrollbarProps>;
11
+ };
12
+ export type InfiniteScrollProps = ExtractPublicPropTypes<typeof infiniteScrollProps>;
13
+ declare const _default: import("vue").DefineComponent<{
14
+ readonly distance: {
15
+ readonly type: NumberConstructor;
16
+ readonly default: 0;
17
+ };
18
+ readonly onLoad: PropType<() => Promise<void> | void>;
19
+ readonly scrollbarProps: PropType<ScrollbarProps>;
20
+ }, {
21
+ scrollbarInstRef: import("vue").Ref<{
22
+ $el: HTMLElement;
23
+ containerRef: HTMLElement | null;
24
+ contentRef: HTMLElement | null;
25
+ containerScrollTop: number;
26
+ syncUnifiedContainer: () => void;
27
+ scrollTo: import("../../_internal/scrollbar/src/Scrollbar").ScrollTo;
28
+ scrollBy: import("../../_internal/scrollbar/src/Scrollbar").ScrollBy;
29
+ sync: () => void;
30
+ handleMouseEnterWrapper: () => void;
31
+ handleMouseLeaveWrapper: () => void;
32
+ } | null>;
33
+ handleScroll: () => void;
34
+ handleWheel: (e: WheelEvent) => void;
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ readonly distance: {
37
+ readonly type: NumberConstructor;
38
+ readonly default: 0;
39
+ };
40
+ readonly onLoad: PropType<() => Promise<void> | void>;
41
+ readonly scrollbarProps: PropType<ScrollbarProps>;
42
+ }>>, {
43
+ readonly distance: number;
44
+ }, {}>;
45
+ export default _default;
@@ -0,0 +1,78 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { defineComponent, h, ref } from 'vue';
11
+ import { UxScrollbar } from '../../_internal';
12
+ import { resolveSlot } from '../../_utils';
13
+ export const infiniteScrollProps = {
14
+ distance: {
15
+ type: Number,
16
+ default: 0
17
+ },
18
+ onLoad: Function,
19
+ scrollbarProps: Object
20
+ };
21
+ export default defineComponent({
22
+ name: 'InfiniteScroll',
23
+ props: infiniteScrollProps,
24
+ setup(props) {
25
+ const scrollbarInstRef = ref(null);
26
+ let loading = false;
27
+ const handleCheckBottom = () => __awaiter(this, void 0, void 0, function* () {
28
+ var _a;
29
+ const { value: scrollbarInst } = scrollbarInstRef;
30
+ if (scrollbarInst) {
31
+ const { containerRef } = scrollbarInst;
32
+ const scrollHeight = containerRef === null || containerRef === void 0 ? void 0 : containerRef.scrollHeight;
33
+ const clientHeight = containerRef === null || containerRef === void 0 ? void 0 : containerRef.clientHeight;
34
+ const scrollTop = containerRef === null || containerRef === void 0 ? void 0 : containerRef.scrollTop;
35
+ if (containerRef &&
36
+ scrollHeight !== undefined &&
37
+ clientHeight !== undefined &&
38
+ scrollTop !== undefined) {
39
+ if (scrollTop + clientHeight >= scrollHeight - props.distance) {
40
+ loading = true;
41
+ try {
42
+ yield ((_a = props.onLoad) === null || _a === void 0 ? void 0 : _a.call(props));
43
+ }
44
+ catch (_b) { }
45
+ loading = false;
46
+ }
47
+ }
48
+ }
49
+ });
50
+ const handleScroll = () => {
51
+ if (loading) {
52
+ return;
53
+ }
54
+ void handleCheckBottom();
55
+ };
56
+ const handleWheel = (e) => {
57
+ if (e.deltaY <= 0) {
58
+ return;
59
+ }
60
+ if (loading) {
61
+ return;
62
+ }
63
+ void handleCheckBottom();
64
+ };
65
+ return {
66
+ scrollbarInstRef,
67
+ handleScroll,
68
+ handleWheel
69
+ };
70
+ },
71
+ render() {
72
+ return (h(UxScrollbar, Object.assign({}, this.scrollbarProps, { ref: "scrollbarInstRef", onWheel: this.handleWheel, onScroll: this.handleScroll }), {
73
+ default: () => {
74
+ return resolveSlot(this.$slots.default, () => []);
75
+ }
76
+ }));
77
+ }
78
+ });