naive-ui 2.30.3 → 2.30.6

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 (279) hide show
  1. package/dist/index.js +1829 -1088
  2. package/dist/index.prod.js +2 -2
  3. package/es/_internal/scrollbar/src/Scrollbar.js +5 -18
  4. package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -0
  5. package/es/_internal/select-menu/src/SelectGroupHeader.js +5 -3
  6. package/es/_internal/select-menu/src/SelectMenu.d.ts +3 -3
  7. package/es/_internal/select-menu/src/SelectMenu.js +6 -8
  8. package/es/_internal/select-menu/src/SelectOption.d.ts +1 -0
  9. package/es/_internal/select-menu/src/SelectOption.js +11 -5
  10. package/es/_internal/select-menu/src/interface.d.ts +3 -1
  11. package/es/_internal/selection/src/Selection.d.ts +0 -2
  12. package/es/_internal/selection/src/Selection.js +7 -5
  13. package/es/_mixins/use-theme.js +1 -1
  14. package/es/_utils/composable/index.d.ts +3 -5
  15. package/es/_utils/composable/index.js +3 -111
  16. package/es/_utils/composable/use-collection.d.ts +4 -0
  17. package/es/_utils/composable/use-collection.js +87 -0
  18. package/es/_utils/composable/use-deferred-true.d.ts +2 -0
  19. package/es/_utils/composable/use-deferred-true.js +25 -0
  20. package/es/_utils/composable/use-reactivated.d.ts +3 -0
  21. package/es/_utils/composable/use-reactivated.js +20 -0
  22. package/es/_utils/dom/index.d.ts +1 -0
  23. package/es/_utils/dom/index.js +1 -0
  24. package/es/_utils/dom/is-document.d.ts +1 -0
  25. package/es/_utils/dom/is-document.js +3 -0
  26. package/es/_utils/event/index.d.ts +2 -0
  27. package/es/_utils/event/index.js +7 -0
  28. package/es/_utils/index.d.ts +3 -1
  29. package/es/_utils/index.js +3 -1
  30. package/es/_utils/vue/index.d.ts +3 -0
  31. package/es/_utils/vue/index.js +3 -0
  32. package/es/_utils/vue/is-node-v-show-false.d.ts +2 -0
  33. package/es/_utils/vue/is-node-v-show-false.js +6 -0
  34. package/es/_utils/vue/merge-handlers.d.ts +1 -0
  35. package/es/_utils/vue/merge-handlers.js +15 -0
  36. package/es/{_internal/scrollbar/src/Wrapper.d.ts → _utils/vue/wrapper.d.ts} +0 -0
  37. package/es/{_internal/scrollbar/src/Wrapper.js → _utils/vue/wrapper.js} +0 -0
  38. package/es/back-top/src/BackTop.d.ts +1 -1
  39. package/es/back-top/src/BackTop.js +24 -31
  40. package/es/button/src/Button.js +7 -2
  41. package/es/cascader/src/Cascader.d.ts +2 -3
  42. package/es/cascader/src/Cascader.js +26 -22
  43. package/es/cascader/src/CascaderMenu.d.ts +2 -2
  44. package/es/cascader/src/CascaderMenu.js +2 -4
  45. package/es/color-picker/src/ColorInputUnit.js +1 -1
  46. package/es/data-table/src/DataTable.d.ts +792 -2
  47. package/es/data-table/src/DataTable.js +10 -5
  48. package/es/data-table/src/HeaderButton/FilterButton.d.ts +142 -0
  49. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +142 -0
  50. package/es/data-table/src/MainTable.d.ts +2 -0
  51. package/es/data-table/src/MainTable.js +5 -1
  52. package/es/data-table/src/TableParts/Body.d.ts +144 -0
  53. package/es/data-table/src/TableParts/Body.js +15 -8
  54. package/es/data-table/src/TableParts/Cell.d.ts +295 -1
  55. package/es/data-table/src/TableParts/Cell.js +19 -6
  56. package/es/data-table/src/TableParts/Header.d.ts +143 -0
  57. package/es/data-table/src/TableParts/Header.js +6 -2
  58. package/es/data-table/src/interface.d.ts +14 -7
  59. package/es/data-table/src/styles/index.cssr.js +7 -2
  60. package/es/data-table/src/use-check.js +11 -3
  61. package/es/data-table/src/use-expand.d.ts +5 -3
  62. package/es/data-table/src/use-expand.js +22 -2
  63. package/es/data-table/src/utils.d.ts +2 -2
  64. package/es/data-table/src/utils.js +10 -8
  65. package/es/data-table/styles/light.d.ts +71 -0
  66. package/es/date-picker/src/DatePicker.d.ts +2 -1
  67. package/es/date-picker/src/DatePicker.js +20 -9
  68. package/es/date-picker/src/panel/month.js +3 -2
  69. package/es/drawer/src/Drawer.d.ts +1 -1
  70. package/es/drawer/src/Drawer.js +3 -3
  71. package/es/drawer/src/DrawerBodyWrapper.d.ts +2 -2
  72. package/es/dropdown/src/Dropdown.d.ts +4 -0
  73. package/es/dynamic-tags/src/DynamicTags.js +1 -1
  74. package/es/grid/src/Grid.d.ts +3 -0
  75. package/es/grid/src/Grid.js +47 -9
  76. package/es/grid/src/GridItem.js +2 -1
  77. package/es/image/src/Image.d.ts +10 -0
  78. package/es/image/src/Image.js +42 -8
  79. package/es/image/src/utils.d.ts +11 -0
  80. package/es/image/src/utils.js +81 -0
  81. package/es/input/src/Input.d.ts +6 -3
  82. package/es/input/src/Input.js +56 -31
  83. package/es/input/src/styles/input-group-label.cssr.js +2 -0
  84. package/es/input/src/utils.d.ts +7 -1
  85. package/es/input/src/utils.js +57 -2
  86. package/es/layout/src/Layout.d.ts +3 -1
  87. package/es/layout/src/Layout.js +22 -4
  88. package/es/layout/src/LayoutContent.d.ts +1 -0
  89. package/es/layout/src/LayoutSider.d.ts +1 -0
  90. package/es/layout/src/LayoutSider.js +22 -3
  91. package/es/menu/src/Menu.d.ts +1 -1
  92. package/es/modal/src/BodyWrapper.d.ts +15 -20
  93. package/es/modal/src/BodyWrapper.js +38 -33
  94. package/es/modal/src/Modal.js +14 -9
  95. package/es/pagination/src/Pagination.d.ts +806 -20
  96. package/es/pagination/src/Pagination.js +115 -52
  97. package/es/pagination/src/interface.d.ts +2 -2
  98. package/es/pagination/src/styles/index.cssr.js +12 -10
  99. package/es/pagination/src/utils.d.ts +15 -5
  100. package/es/pagination/src/utils.js +117 -50
  101. package/es/pagination/styles/dark.js +3 -1
  102. package/es/pagination/styles/light.d.ts +71 -0
  103. package/es/pagination/styles/light.js +3 -1
  104. package/es/popconfirm/src/Popconfirm.d.ts +4 -0
  105. package/es/popover/src/Popover.d.ts +5 -0
  106. package/es/popover/src/Popover.js +1 -0
  107. package/es/popover/src/PopoverBody.d.ts +4 -0
  108. package/es/popover/src/PopoverBody.js +18 -10
  109. package/es/popselect/src/Popselect.d.ts +24 -0
  110. package/es/popselect/src/Popselect.js +12 -7
  111. package/es/popselect/src/PopselectPanel.d.ts +22 -2
  112. package/es/popselect/src/PopselectPanel.js +12 -1
  113. package/es/select/src/Select.d.ts +1 -1
  114. package/es/select/src/Select.js +5 -2
  115. package/es/slider/src/Slider.d.ts +1 -1
  116. package/es/slider/src/Slider.js +13 -5
  117. package/es/slider/src/styles/index.cssr.js +26 -31
  118. package/es/space/src/Space.d.ts +26 -0
  119. package/es/space/src/Space.js +53 -43
  120. package/es/time-picker/src/TimePicker.d.ts +2 -1
  121. package/es/time-picker/src/TimePicker.js +18 -8
  122. package/es/tooltip/index.d.ts +1 -1
  123. package/es/tooltip/src/Tooltip.d.ts +4 -0
  124. package/es/tree/src/Tree.d.ts +2 -3
  125. package/es/tree/src/Tree.js +6 -8
  126. package/es/tree/src/TreeNode.js +4 -1
  127. package/es/tree/src/interface.d.ts +0 -1
  128. package/es/tree/src/keyboard.d.ts +0 -1
  129. package/es/tree/src/keyboard.js +6 -9
  130. package/es/tree-select/src/TreeSelect.d.ts +1 -3
  131. package/es/tree-select/src/TreeSelect.js +14 -16
  132. package/es/upload/src/UploadDragger.js +2 -2
  133. package/es/upload/src/UploadFile.d.ts +2 -2
  134. package/es/upload/src/UploadFile.js +9 -4
  135. package/es/upload/src/UploadTrigger.js +4 -3
  136. package/es/upload/src/styles/index.cssr.js +2 -2
  137. package/es/upload/src/utils.js +1 -15
  138. package/es/version.d.ts +1 -1
  139. package/es/version.js +1 -1
  140. package/lib/_internal/scrollbar/src/Scrollbar.js +6 -19
  141. package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -0
  142. package/lib/_internal/select-menu/src/SelectGroupHeader.js +5 -3
  143. package/lib/_internal/select-menu/src/SelectMenu.d.ts +3 -3
  144. package/lib/_internal/select-menu/src/SelectMenu.js +5 -7
  145. package/lib/_internal/select-menu/src/SelectOption.d.ts +1 -0
  146. package/lib/_internal/select-menu/src/SelectOption.js +10 -4
  147. package/lib/_internal/select-menu/src/interface.d.ts +3 -1
  148. package/lib/_internal/selection/src/Selection.d.ts +0 -2
  149. package/lib/_internal/selection/src/Selection.js +6 -4
  150. package/lib/_mixins/use-theme.js +1 -1
  151. package/lib/_utils/composable/index.d.ts +3 -5
  152. package/lib/_utils/composable/index.js +9 -116
  153. package/lib/_utils/composable/use-collection.d.ts +4 -0
  154. package/lib/_utils/composable/use-collection.js +93 -0
  155. package/lib/_utils/composable/use-deferred-true.d.ts +2 -0
  156. package/lib/_utils/composable/use-deferred-true.js +29 -0
  157. package/lib/_utils/composable/use-reactivated.d.ts +3 -0
  158. package/lib/_utils/composable/use-reactivated.js +24 -0
  159. package/lib/_utils/dom/index.d.ts +1 -0
  160. package/lib/_utils/dom/index.js +5 -0
  161. package/lib/_utils/dom/is-document.d.ts +1 -0
  162. package/lib/_utils/dom/is-document.js +7 -0
  163. package/lib/_utils/event/index.d.ts +2 -0
  164. package/lib/_utils/event/index.js +12 -0
  165. package/lib/_utils/index.d.ts +3 -1
  166. package/lib/_utils/index.js +8 -1
  167. package/lib/_utils/vue/index.d.ts +3 -0
  168. package/lib/_utils/vue/index.js +7 -1
  169. package/lib/_utils/vue/is-node-v-show-false.d.ts +2 -0
  170. package/lib/_utils/vue/is-node-v-show-false.js +10 -0
  171. package/lib/_utils/vue/merge-handlers.d.ts +1 -0
  172. package/lib/_utils/vue/merge-handlers.js +19 -0
  173. package/lib/{_internal/scrollbar/src/Wrapper.d.ts → _utils/vue/wrapper.d.ts} +0 -0
  174. package/lib/{_internal/scrollbar/src/Wrapper.js → _utils/vue/wrapper.js} +0 -0
  175. package/lib/back-top/src/BackTop.d.ts +1 -1
  176. package/lib/back-top/src/BackTop.js +23 -30
  177. package/lib/button/src/Button.js +7 -2
  178. package/lib/cascader/src/Cascader.d.ts +2 -3
  179. package/lib/cascader/src/Cascader.js +25 -21
  180. package/lib/cascader/src/CascaderMenu.d.ts +2 -2
  181. package/lib/cascader/src/CascaderMenu.js +2 -4
  182. package/lib/color-picker/src/ColorInputUnit.js +1 -1
  183. package/lib/data-table/src/DataTable.d.ts +792 -2
  184. package/lib/data-table/src/DataTable.js +10 -5
  185. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +142 -0
  186. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +142 -0
  187. package/lib/data-table/src/MainTable.d.ts +2 -0
  188. package/lib/data-table/src/MainTable.js +5 -1
  189. package/lib/data-table/src/TableParts/Body.d.ts +144 -0
  190. package/lib/data-table/src/TableParts/Body.js +15 -8
  191. package/lib/data-table/src/TableParts/Cell.d.ts +295 -1
  192. package/lib/data-table/src/TableParts/Cell.js +19 -6
  193. package/lib/data-table/src/TableParts/Header.d.ts +143 -0
  194. package/lib/data-table/src/TableParts/Header.js +6 -2
  195. package/lib/data-table/src/interface.d.ts +14 -7
  196. package/lib/data-table/src/styles/index.cssr.js +7 -2
  197. package/lib/data-table/src/use-check.js +11 -3
  198. package/lib/data-table/src/use-expand.d.ts +5 -3
  199. package/lib/data-table/src/use-expand.js +22 -2
  200. package/lib/data-table/src/utils.d.ts +2 -2
  201. package/lib/data-table/src/utils.js +11 -9
  202. package/lib/data-table/styles/light.d.ts +71 -0
  203. package/lib/date-picker/src/DatePicker.d.ts +2 -1
  204. package/lib/date-picker/src/DatePicker.js +19 -8
  205. package/lib/date-picker/src/panel/month.js +3 -2
  206. package/lib/drawer/src/Drawer.d.ts +1 -1
  207. package/lib/drawer/src/Drawer.js +2 -2
  208. package/lib/drawer/src/DrawerBodyWrapper.d.ts +2 -2
  209. package/lib/dropdown/src/Dropdown.d.ts +4 -0
  210. package/lib/dynamic-tags/src/DynamicTags.js +1 -1
  211. package/lib/grid/src/Grid.d.ts +3 -0
  212. package/lib/grid/src/Grid.js +45 -7
  213. package/lib/grid/src/GridItem.js +2 -1
  214. package/lib/image/src/Image.d.ts +10 -0
  215. package/lib/image/src/Image.js +41 -7
  216. package/lib/image/src/utils.d.ts +11 -0
  217. package/lib/image/src/utils.js +86 -0
  218. package/lib/input/src/Input.d.ts +6 -3
  219. package/lib/input/src/Input.js +55 -30
  220. package/lib/input/src/styles/input-group-label.cssr.js +2 -0
  221. package/lib/input/src/utils.d.ts +7 -1
  222. package/lib/input/src/utils.js +60 -4
  223. package/lib/layout/src/Layout.d.ts +3 -1
  224. package/lib/layout/src/Layout.js +22 -4
  225. package/lib/layout/src/LayoutContent.d.ts +1 -0
  226. package/lib/layout/src/LayoutSider.d.ts +1 -0
  227. package/lib/layout/src/LayoutSider.js +21 -2
  228. package/lib/menu/src/Menu.d.ts +1 -1
  229. package/lib/modal/src/BodyWrapper.d.ts +15 -20
  230. package/lib/modal/src/BodyWrapper.js +38 -33
  231. package/lib/modal/src/Modal.js +13 -8
  232. package/lib/pagination/src/Pagination.d.ts +806 -20
  233. package/lib/pagination/src/Pagination.js +114 -51
  234. package/lib/pagination/src/interface.d.ts +2 -2
  235. package/lib/pagination/src/styles/index.cssr.js +13 -11
  236. package/lib/pagination/src/utils.d.ts +15 -5
  237. package/lib/pagination/src/utils.js +118 -53
  238. package/lib/pagination/styles/dark.js +6 -4
  239. package/lib/pagination/styles/light.d.ts +71 -0
  240. package/lib/pagination/styles/light.js +6 -4
  241. package/lib/popconfirm/src/Popconfirm.d.ts +4 -0
  242. package/lib/popover/src/Popover.d.ts +5 -0
  243. package/lib/popover/src/Popover.js +1 -0
  244. package/lib/popover/src/PopoverBody.d.ts +4 -0
  245. package/lib/popover/src/PopoverBody.js +18 -10
  246. package/lib/popselect/src/Popselect.d.ts +24 -0
  247. package/lib/popselect/src/Popselect.js +10 -5
  248. package/lib/popselect/src/PopselectPanel.d.ts +22 -2
  249. package/lib/popselect/src/PopselectPanel.js +12 -1
  250. package/lib/select/src/Select.d.ts +1 -1
  251. package/lib/select/src/Select.js +4 -1
  252. package/lib/slider/src/Slider.d.ts +1 -1
  253. package/lib/slider/src/Slider.js +12 -4
  254. package/lib/slider/src/styles/index.cssr.js +26 -31
  255. package/lib/space/src/Space.d.ts +26 -0
  256. package/lib/space/src/Space.js +53 -43
  257. package/lib/time-picker/src/TimePicker.d.ts +2 -1
  258. package/lib/time-picker/src/TimePicker.js +17 -7
  259. package/lib/tooltip/index.d.ts +1 -1
  260. package/lib/tooltip/src/Tooltip.d.ts +4 -0
  261. package/lib/tree/src/Tree.d.ts +2 -3
  262. package/lib/tree/src/Tree.js +6 -8
  263. package/lib/tree/src/TreeNode.js +4 -1
  264. package/lib/tree/src/interface.d.ts +0 -1
  265. package/lib/tree/src/keyboard.d.ts +0 -1
  266. package/lib/tree/src/keyboard.js +6 -9
  267. package/lib/tree-select/src/TreeSelect.d.ts +1 -3
  268. package/lib/tree-select/src/TreeSelect.js +13 -15
  269. package/lib/upload/src/UploadDragger.js +2 -2
  270. package/lib/upload/src/UploadFile.d.ts +2 -2
  271. package/lib/upload/src/UploadFile.js +9 -4
  272. package/lib/upload/src/UploadTrigger.js +3 -2
  273. package/lib/upload/src/styles/index.cssr.js +2 -2
  274. package/lib/upload/src/utils.js +1 -15
  275. package/lib/version.d.ts +1 -1
  276. package/lib/version.js +1 -1
  277. package/package.json +2 -2
  278. package/volar.d.ts +0 -1
  279. package/web-types.json +73 -1
@@ -1,6 +1,10 @@
1
- import { PropType } from 'vue';
1
+ import { PropType, VNodeChild } from 'vue';
2
2
  import { TableBaseColumn, InternalRowData } from '../interface';
3
3
  declare const _default: import("vue").DefineComponent<{
4
+ clsPrefix: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
4
8
  row: {
5
9
  type: PropType<InternalRowData>;
6
10
  required: true;
@@ -699,6 +703,77 @@ declare const _default: import("vue").DefineComponent<{
699
703
  paddingLarge: string;
700
704
  clearSize: string;
701
705
  }, any>;
706
+ Popselect: import("../../../_mixins").Theme<"Popselect", {
707
+ menuBoxShadow: string;
708
+ }, {
709
+ Popover: import("../../../_mixins").Theme<"Popover", {
710
+ fontSize: string;
711
+ borderRadius: string;
712
+ color: string;
713
+ dividerColor: string;
714
+ textColor: string;
715
+ boxShadow: string;
716
+ space: string;
717
+ spaceArrow: string;
718
+ arrowOffset: string;
719
+ arrowOffsetVertical: string;
720
+ arrowHeight: string;
721
+ padding: string;
722
+ }, any>;
723
+ InternalSelectMenu: import("../../../_mixins").Theme<"InternalSelectMenu", {
724
+ optionFontSizeSmall: string;
725
+ optionFontSizeMedium: string;
726
+ optionFontSizeLarge: string;
727
+ optionFontSizeHuge: string;
728
+ optionHeightSmall: string;
729
+ optionHeightMedium: string;
730
+ optionHeightLarge: string;
731
+ optionHeightHuge: string;
732
+ borderRadius: string;
733
+ color: string;
734
+ groupHeaderTextColor: string;
735
+ actionDividerColor: string;
736
+ optionTextColor: string;
737
+ optionTextColorPressed: string;
738
+ optionTextColorDisabled: string;
739
+ optionTextColorActive: string;
740
+ optionOpacityDisabled: string;
741
+ optionCheckColor: string;
742
+ optionColorPending: string;
743
+ optionColorActive: string;
744
+ optionColorActivePending: string;
745
+ actionTextColor: string;
746
+ loadingColor: string;
747
+ height: string;
748
+ paddingSmall: string;
749
+ paddingMedium: string;
750
+ paddingLarge: string;
751
+ paddingHuge: string;
752
+ optionPaddingSmall: string;
753
+ optionPaddingMedium: string;
754
+ optionPaddingLarge: string;
755
+ optionPaddingHuge: string;
756
+ loadingSize: string;
757
+ }, {
758
+ Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
759
+ color: string;
760
+ colorHover: string;
761
+ }, any>;
762
+ Empty: import("../../../_mixins").Theme<"Empty", {
763
+ fontSizeSmall: string;
764
+ fontSizeMedium: string;
765
+ fontSizeLarge: string;
766
+ fontSizeHuge: string;
767
+ textColor: string;
768
+ iconColor: string;
769
+ extraTextColor: string;
770
+ iconSizeSmall: string;
771
+ iconSizeMedium: string;
772
+ iconSizeLarge: string;
773
+ iconSizeHuge: string;
774
+ }, any>;
775
+ }>;
776
+ }>;
702
777
  }>;
703
778
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
704
779
  color: string;
@@ -960,6 +1035,77 @@ declare const _default: import("vue").DefineComponent<{
960
1035
  paddingLarge: string;
961
1036
  clearSize: string;
962
1037
  }, any>> | undefined;
1038
+ Popselect?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Popselect", {
1039
+ menuBoxShadow: string;
1040
+ }, {
1041
+ Popover: import("../../../_mixins").Theme<"Popover", {
1042
+ fontSize: string;
1043
+ borderRadius: string;
1044
+ color: string;
1045
+ dividerColor: string;
1046
+ textColor: string;
1047
+ boxShadow: string;
1048
+ space: string;
1049
+ spaceArrow: string;
1050
+ arrowOffset: string;
1051
+ arrowOffsetVertical: string;
1052
+ arrowHeight: string;
1053
+ padding: string;
1054
+ }, any>;
1055
+ InternalSelectMenu: import("../../../_mixins").Theme<"InternalSelectMenu", {
1056
+ optionFontSizeSmall: string;
1057
+ optionFontSizeMedium: string;
1058
+ optionFontSizeLarge: string;
1059
+ optionFontSizeHuge: string;
1060
+ optionHeightSmall: string;
1061
+ optionHeightMedium: string;
1062
+ optionHeightLarge: string;
1063
+ optionHeightHuge: string;
1064
+ borderRadius: string;
1065
+ color: string;
1066
+ groupHeaderTextColor: string;
1067
+ actionDividerColor: string;
1068
+ optionTextColor: string;
1069
+ optionTextColorPressed: string;
1070
+ optionTextColorDisabled: string;
1071
+ optionTextColorActive: string;
1072
+ optionOpacityDisabled: string;
1073
+ optionCheckColor: string;
1074
+ optionColorPending: string;
1075
+ optionColorActive: string;
1076
+ optionColorActivePending: string;
1077
+ actionTextColor: string;
1078
+ loadingColor: string;
1079
+ height: string;
1080
+ paddingSmall: string;
1081
+ paddingMedium: string;
1082
+ paddingLarge: string;
1083
+ paddingHuge: string;
1084
+ optionPaddingSmall: string;
1085
+ optionPaddingMedium: string;
1086
+ optionPaddingLarge: string;
1087
+ optionPaddingHuge: string;
1088
+ loadingSize: string;
1089
+ }, {
1090
+ Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
1091
+ color: string;
1092
+ colorHover: string;
1093
+ }, any>;
1094
+ Empty: import("../../../_mixins").Theme<"Empty", {
1095
+ fontSizeSmall: string;
1096
+ fontSizeMedium: string;
1097
+ fontSizeLarge: string;
1098
+ fontSizeHuge: string;
1099
+ textColor: string;
1100
+ iconColor: string;
1101
+ extraTextColor: string;
1102
+ iconSizeSmall: string;
1103
+ iconSizeMedium: string;
1104
+ iconSizeLarge: string;
1105
+ iconSizeHuge: string;
1106
+ }, any>;
1107
+ }>;
1108
+ }>> | undefined;
963
1109
  } | undefined;
964
1110
  } | undefined;
965
1111
  Scrollbar?: {
@@ -1007,7 +1153,12 @@ declare const _default: import("vue").DefineComponent<{
1007
1153
  }>;
1008
1154
  required: true;
1009
1155
  };
1156
+ renderCell: PropType<(value: any, rowData: object, column: any) => VNodeChild>;
1010
1157
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1158
+ clsPrefix: {
1159
+ type: StringConstructor;
1160
+ required: true;
1161
+ };
1011
1162
  row: {
1012
1163
  type: PropType<InternalRowData>;
1013
1164
  required: true;
@@ -1706,6 +1857,77 @@ declare const _default: import("vue").DefineComponent<{
1706
1857
  paddingLarge: string;
1707
1858
  clearSize: string;
1708
1859
  }, any>;
1860
+ Popselect: import("../../../_mixins").Theme<"Popselect", {
1861
+ menuBoxShadow: string;
1862
+ }, {
1863
+ Popover: import("../../../_mixins").Theme<"Popover", {
1864
+ fontSize: string;
1865
+ borderRadius: string;
1866
+ color: string;
1867
+ dividerColor: string;
1868
+ textColor: string;
1869
+ boxShadow: string;
1870
+ space: string;
1871
+ spaceArrow: string;
1872
+ arrowOffset: string;
1873
+ arrowOffsetVertical: string;
1874
+ arrowHeight: string;
1875
+ padding: string;
1876
+ }, any>;
1877
+ InternalSelectMenu: import("../../../_mixins").Theme<"InternalSelectMenu", {
1878
+ optionFontSizeSmall: string;
1879
+ optionFontSizeMedium: string;
1880
+ optionFontSizeLarge: string;
1881
+ optionFontSizeHuge: string;
1882
+ optionHeightSmall: string;
1883
+ optionHeightMedium: string;
1884
+ optionHeightLarge: string;
1885
+ optionHeightHuge: string;
1886
+ borderRadius: string;
1887
+ color: string;
1888
+ groupHeaderTextColor: string;
1889
+ actionDividerColor: string;
1890
+ optionTextColor: string;
1891
+ optionTextColorPressed: string;
1892
+ optionTextColorDisabled: string;
1893
+ optionTextColorActive: string;
1894
+ optionOpacityDisabled: string;
1895
+ optionCheckColor: string;
1896
+ optionColorPending: string;
1897
+ optionColorActive: string;
1898
+ optionColorActivePending: string;
1899
+ actionTextColor: string;
1900
+ loadingColor: string;
1901
+ height: string;
1902
+ paddingSmall: string;
1903
+ paddingMedium: string;
1904
+ paddingLarge: string;
1905
+ paddingHuge: string;
1906
+ optionPaddingSmall: string;
1907
+ optionPaddingMedium: string;
1908
+ optionPaddingLarge: string;
1909
+ optionPaddingHuge: string;
1910
+ loadingSize: string;
1911
+ }, {
1912
+ Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
1913
+ color: string;
1914
+ colorHover: string;
1915
+ }, any>;
1916
+ Empty: import("../../../_mixins").Theme<"Empty", {
1917
+ fontSizeSmall: string;
1918
+ fontSizeMedium: string;
1919
+ fontSizeLarge: string;
1920
+ fontSizeHuge: string;
1921
+ textColor: string;
1922
+ iconColor: string;
1923
+ extraTextColor: string;
1924
+ iconSizeSmall: string;
1925
+ iconSizeMedium: string;
1926
+ iconSizeLarge: string;
1927
+ iconSizeHuge: string;
1928
+ }, any>;
1929
+ }>;
1930
+ }>;
1709
1931
  }>;
1710
1932
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
1711
1933
  color: string;
@@ -1967,6 +2189,77 @@ declare const _default: import("vue").DefineComponent<{
1967
2189
  paddingLarge: string;
1968
2190
  clearSize: string;
1969
2191
  }, any>> | undefined;
2192
+ Popselect?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Popselect", {
2193
+ menuBoxShadow: string;
2194
+ }, {
2195
+ Popover: import("../../../_mixins").Theme<"Popover", {
2196
+ fontSize: string;
2197
+ borderRadius: string;
2198
+ color: string;
2199
+ dividerColor: string;
2200
+ textColor: string;
2201
+ boxShadow: string;
2202
+ space: string;
2203
+ spaceArrow: string;
2204
+ arrowOffset: string;
2205
+ arrowOffsetVertical: string;
2206
+ arrowHeight: string;
2207
+ padding: string;
2208
+ }, any>;
2209
+ InternalSelectMenu: import("../../../_mixins").Theme<"InternalSelectMenu", {
2210
+ optionFontSizeSmall: string;
2211
+ optionFontSizeMedium: string;
2212
+ optionFontSizeLarge: string;
2213
+ optionFontSizeHuge: string;
2214
+ optionHeightSmall: string;
2215
+ optionHeightMedium: string;
2216
+ optionHeightLarge: string;
2217
+ optionHeightHuge: string;
2218
+ borderRadius: string;
2219
+ color: string;
2220
+ groupHeaderTextColor: string;
2221
+ actionDividerColor: string;
2222
+ optionTextColor: string;
2223
+ optionTextColorPressed: string;
2224
+ optionTextColorDisabled: string;
2225
+ optionTextColorActive: string;
2226
+ optionOpacityDisabled: string;
2227
+ optionCheckColor: string;
2228
+ optionColorPending: string;
2229
+ optionColorActive: string;
2230
+ optionColorActivePending: string;
2231
+ actionTextColor: string;
2232
+ loadingColor: string;
2233
+ height: string;
2234
+ paddingSmall: string;
2235
+ paddingMedium: string;
2236
+ paddingLarge: string;
2237
+ paddingHuge: string;
2238
+ optionPaddingSmall: string;
2239
+ optionPaddingMedium: string;
2240
+ optionPaddingLarge: string;
2241
+ optionPaddingHuge: string;
2242
+ loadingSize: string;
2243
+ }, {
2244
+ Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
2245
+ color: string;
2246
+ colorHover: string;
2247
+ }, any>;
2248
+ Empty: import("../../../_mixins").Theme<"Empty", {
2249
+ fontSizeSmall: string;
2250
+ fontSizeMedium: string;
2251
+ fontSizeLarge: string;
2252
+ fontSizeHuge: string;
2253
+ textColor: string;
2254
+ iconColor: string;
2255
+ extraTextColor: string;
2256
+ iconSizeSmall: string;
2257
+ iconSizeMedium: string;
2258
+ iconSizeLarge: string;
2259
+ iconSizeHuge: string;
2260
+ }, any>;
2261
+ }>;
2262
+ }>> | undefined;
1970
2263
  } | undefined;
1971
2264
  } | undefined;
1972
2265
  Scrollbar?: {
@@ -2014,6 +2307,7 @@ declare const _default: import("vue").DefineComponent<{
2014
2307
  }>;
2015
2308
  required: true;
2016
2309
  };
2310
+ renderCell: PropType<(value: any, rowData: object, column: any) => VNodeChild>;
2017
2311
  }>>, {
2018
2312
  isSummary: boolean;
2019
2313
  }>;
@@ -4,6 +4,10 @@ import { NEllipsis } from '../../../ellipsis';
4
4
  export default defineComponent({
5
5
  name: 'DataTableCell',
6
6
  props: {
7
+ clsPrefix: {
8
+ type: String,
9
+ required: true
10
+ },
7
11
  row: {
8
12
  type: Object,
9
13
  required: true
@@ -20,11 +24,13 @@ export default defineComponent({
20
24
  mergedTheme: {
21
25
  type: Object,
22
26
  required: true
23
- }
27
+ },
28
+ renderCell: Function
24
29
  },
25
30
  render() {
26
- const { isSummary, column: { render, key, ellipsis }, row } = this;
31
+ const { isSummary, column, row, renderCell } = this;
27
32
  let cell;
33
+ const { render, key, ellipsis } = column;
28
34
  if (render && !isSummary) {
29
35
  cell = render(row, this.index);
30
36
  }
@@ -33,12 +39,19 @@ export default defineComponent({
33
39
  cell = row[key].value;
34
40
  }
35
41
  else {
36
- cell = get(row, key);
42
+ cell = renderCell
43
+ ? renderCell(get(row, key), row, column)
44
+ : get(row, key);
37
45
  }
38
46
  }
39
- if (ellipsis && typeof ellipsis === 'object') {
40
- const { mergedTheme } = this;
41
- return (h(NEllipsis, Object.assign({}, ellipsis, { theme: mergedTheme.peers.Ellipsis, themeOverrides: mergedTheme.peerOverrides.Ellipsis }), { default: () => cell }));
47
+ if (ellipsis) {
48
+ if (typeof ellipsis === 'object') {
49
+ const { mergedTheme } = this;
50
+ return (h(NEllipsis, Object.assign({}, ellipsis, { theme: mergedTheme.peers.Ellipsis, themeOverrides: mergedTheme.peerOverrides.Ellipsis }), { default: () => cell }));
51
+ }
52
+ else {
53
+ return (h("span", { class: `${this.clsPrefix}-data-table-td__ellipsis` }, cell));
54
+ }
42
55
  }
43
56
  return cell;
44
57
  }
@@ -706,6 +706,77 @@ declare const _default: import("vue").DefineComponent<{
706
706
  paddingLarge: string;
707
707
  clearSize: string;
708
708
  }, any>;
709
+ Popselect: import("../../../_mixins").Theme<"Popselect", {
710
+ menuBoxShadow: string;
711
+ }, {
712
+ Popover: import("../../../_mixins").Theme<"Popover", {
713
+ fontSize: string;
714
+ borderRadius: string;
715
+ color: string;
716
+ dividerColor: string;
717
+ textColor: string;
718
+ boxShadow: string;
719
+ space: string;
720
+ spaceArrow: string;
721
+ arrowOffset: string;
722
+ arrowOffsetVertical: string;
723
+ arrowHeight: string;
724
+ padding: string;
725
+ }, any>;
726
+ InternalSelectMenu: import("../../../_mixins").Theme<"InternalSelectMenu", {
727
+ optionFontSizeSmall: string;
728
+ optionFontSizeMedium: string;
729
+ optionFontSizeLarge: string;
730
+ optionFontSizeHuge: string;
731
+ optionHeightSmall: string;
732
+ optionHeightMedium: string;
733
+ optionHeightLarge: string;
734
+ optionHeightHuge: string;
735
+ borderRadius: string;
736
+ color: string;
737
+ groupHeaderTextColor: string;
738
+ actionDividerColor: string;
739
+ optionTextColor: string;
740
+ optionTextColorPressed: string;
741
+ optionTextColorDisabled: string;
742
+ optionTextColorActive: string;
743
+ optionOpacityDisabled: string;
744
+ optionCheckColor: string;
745
+ optionColorPending: string;
746
+ optionColorActive: string;
747
+ optionColorActivePending: string;
748
+ actionTextColor: string;
749
+ loadingColor: string;
750
+ height: string;
751
+ paddingSmall: string;
752
+ paddingMedium: string;
753
+ paddingLarge: string;
754
+ paddingHuge: string;
755
+ optionPaddingSmall: string;
756
+ optionPaddingMedium: string;
757
+ optionPaddingLarge: string;
758
+ optionPaddingHuge: string;
759
+ loadingSize: string;
760
+ }, {
761
+ Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
762
+ color: string;
763
+ colorHover: string;
764
+ }, any>;
765
+ Empty: import("../../../_mixins").Theme<"Empty", {
766
+ fontSizeSmall: string;
767
+ fontSizeMedium: string;
768
+ fontSizeLarge: string;
769
+ fontSizeHuge: string;
770
+ textColor: string;
771
+ iconColor: string;
772
+ extraTextColor: string;
773
+ iconSizeSmall: string;
774
+ iconSizeMedium: string;
775
+ iconSizeLarge: string;
776
+ iconSizeHuge: string;
777
+ }, any>;
778
+ }>;
779
+ }>;
709
780
  }>;
710
781
  Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
711
782
  color: string;
@@ -967,6 +1038,77 @@ declare const _default: import("vue").DefineComponent<{
967
1038
  paddingLarge: string;
968
1039
  clearSize: string;
969
1040
  }, any>> | undefined;
1041
+ Popselect?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Popselect", {
1042
+ menuBoxShadow: string;
1043
+ }, {
1044
+ Popover: import("../../../_mixins").Theme<"Popover", {
1045
+ fontSize: string;
1046
+ borderRadius: string;
1047
+ color: string;
1048
+ dividerColor: string;
1049
+ textColor: string;
1050
+ boxShadow: string;
1051
+ space: string;
1052
+ spaceArrow: string;
1053
+ arrowOffset: string;
1054
+ arrowOffsetVertical: string;
1055
+ arrowHeight: string;
1056
+ padding: string;
1057
+ }, any>;
1058
+ InternalSelectMenu: import("../../../_mixins").Theme<"InternalSelectMenu", {
1059
+ optionFontSizeSmall: string;
1060
+ optionFontSizeMedium: string;
1061
+ optionFontSizeLarge: string;
1062
+ optionFontSizeHuge: string;
1063
+ optionHeightSmall: string;
1064
+ optionHeightMedium: string;
1065
+ optionHeightLarge: string;
1066
+ optionHeightHuge: string;
1067
+ borderRadius: string;
1068
+ color: string;
1069
+ groupHeaderTextColor: string;
1070
+ actionDividerColor: string;
1071
+ optionTextColor: string;
1072
+ optionTextColorPressed: string;
1073
+ optionTextColorDisabled: string;
1074
+ optionTextColorActive: string;
1075
+ optionOpacityDisabled: string;
1076
+ optionCheckColor: string;
1077
+ optionColorPending: string;
1078
+ optionColorActive: string;
1079
+ optionColorActivePending: string;
1080
+ actionTextColor: string;
1081
+ loadingColor: string;
1082
+ height: string;
1083
+ paddingSmall: string;
1084
+ paddingMedium: string;
1085
+ paddingLarge: string;
1086
+ paddingHuge: string;
1087
+ optionPaddingSmall: string;
1088
+ optionPaddingMedium: string;
1089
+ optionPaddingLarge: string;
1090
+ optionPaddingHuge: string;
1091
+ loadingSize: string;
1092
+ }, {
1093
+ Scrollbar: import("../../../_mixins").Theme<"Scrollbar", {
1094
+ color: string;
1095
+ colorHover: string;
1096
+ }, any>;
1097
+ Empty: import("../../../_mixins").Theme<"Empty", {
1098
+ fontSizeSmall: string;
1099
+ fontSizeMedium: string;
1100
+ fontSizeLarge: string;
1101
+ fontSizeHuge: string;
1102
+ textColor: string;
1103
+ iconColor: string;
1104
+ extraTextColor: string;
1105
+ iconSizeSmall: string;
1106
+ iconSizeMedium: string;
1107
+ iconSizeLarge: string;
1108
+ iconSizeHuge: string;
1109
+ }, any>;
1110
+ }>;
1111
+ }>> | undefined;
970
1112
  } | undefined;
971
1113
  } | undefined;
972
1114
  Scrollbar?: {
@@ -1016,6 +1158,7 @@ declare const _default: import("vue").DefineComponent<{
1016
1158
  mergedTableLayout: import("vue").Ref<"fixed" | "auto">;
1017
1159
  headerCheckboxDisabled: import("vue").Ref<boolean>;
1018
1160
  handleMouseenter: () => void;
1161
+ handleMouseleave: () => void;
1019
1162
  handleCheckboxUpdateChecked: () => void;
1020
1163
  handleColHeaderClick: (e: MouseEvent, column: TableBaseColumn) => void;
1021
1164
  handleTableHeaderScroll: (e: Event) => void;
@@ -45,6 +45,9 @@ export default defineComponent({
45
45
  function handleMouseenter() {
46
46
  scrollPartRef.value = 'head';
47
47
  }
48
+ function handleMouseleave() {
49
+ scrollPartRef.value = 'body';
50
+ }
48
51
  return {
49
52
  componentId,
50
53
  mergedSortState: mergedSortStateRef,
@@ -62,6 +65,7 @@ export default defineComponent({
62
65
  mergedTableLayout: mergedTableLayoutRef,
63
66
  headerCheckboxDisabled: headerCheckboxDisabledRef,
64
67
  handleMouseenter,
68
+ handleMouseleave,
65
69
  handleCheckboxUpdateChecked,
66
70
  handleColHeaderClick,
67
71
  handleTableHeaderScroll
@@ -115,8 +119,8 @@ export default defineComponent({
115
119
  if (!discrete) {
116
120
  return theadVNode;
117
121
  }
118
- const { handleTableHeaderScroll, handleMouseenter, scrollX } = this;
119
- return (h("div", { class: `${mergedClsPrefix}-data-table-base-table-header`, onScroll: handleTableHeaderScroll, onMouseenter: handleMouseenter },
122
+ const { handleTableHeaderScroll, handleMouseenter, handleMouseleave, scrollX } = this;
123
+ return (h("div", { class: `${mergedClsPrefix}-data-table-base-table-header`, onScroll: handleTableHeaderScroll, onMouseenter: handleMouseenter, onMouseleave: handleMouseleave },
120
124
  h("table", { ref: "body", class: `${mergedClsPrefix}-data-table-table`, style: {
121
125
  minWidth: formatLength(scrollX),
122
126
  tableLayout: mergedTableLayout
@@ -1,9 +1,10 @@
1
1
  import { TreeNode } from 'treemate';
2
2
  import { CSSProperties, Ref, VNodeChild, HTMLAttributes, Slots } from 'vue';
3
- import { EllipsisProps } from '../../ellipsis/src/Ellipsis';
4
- import { NLocale } from '../../locales';
5
- import { MergedTheme } from '../../_mixins';
6
- import { DataTableTheme } from '../styles';
3
+ import type { ScrollTo } from '../../scrollbar/src/Scrollbar';
4
+ import type { EllipsisProps } from '../../ellipsis/src/Ellipsis';
5
+ import type { NLocale } from '../../locales';
6
+ import type { MergedTheme } from '../../_mixins';
7
+ import type { DataTableTheme } from '../styles';
7
8
  import type { RowItem, ColItem } from './use-group-header';
8
9
  import type { DataTableSelectionOption } from './TableParts/SelectionMenu';
9
10
  export declare type FilterOptionValue = string | number;
@@ -31,7 +32,9 @@ export interface FilterOption {
31
32
  }
32
33
  export declare type TmNode = TreeNode<InternalRowData>;
33
34
  export declare type SortOrder = 'ascend' | 'descend' | false;
34
- export declare type Ellipsis = boolean | EllipsisProps;
35
+ export declare type Ellipsis = boolean | (EllipsisProps & {
36
+ style?: CSSProperties;
37
+ });
35
38
  export interface CommonColumnInfo<T = InternalRowData> {
36
39
  fixed?: 'left' | 'right';
37
40
  width?: number | string;
@@ -90,7 +93,7 @@ export declare type TableSelectionColumn<T = InternalRowData> = {
90
93
  rowSpan?: never;
91
94
  } & CommonColumnInfo<T>;
92
95
  export declare type RenderExpand<T = InternalRowData> = (row: T, index: number) => VNodeChild;
93
- export declare type Expandable<T = InternalRowData> = (row: T, index: number) => boolean;
96
+ export declare type Expandable<T = InternalRowData> = (row: T) => boolean;
94
97
  export interface TableExpandColumn<T = InternalRowData> extends Omit<TableSelectionColumn<T>, 'type'> {
95
98
  type: 'expand';
96
99
  title?: TableExpandColumnTitle;
@@ -172,6 +175,7 @@ export interface DataTableInjection {
172
175
  handleTableBodyScroll: (e: Event) => void;
173
176
  syncScrollState: (deltaX?: number, deltaY?: number) => void;
174
177
  setHeaderScrollLeft: (scrollLeft: number) => void;
178
+ renderCell: Ref<undefined | ((value: any, rowData: object, column: TableBaseColumn) => VNodeChild)>;
175
179
  }
176
180
  export declare const dataTableInjectionKey: import("vue").InjectionKey<DataTableInjection>;
177
181
  export interface MainTableInjection {
@@ -191,7 +195,7 @@ export declare type RenderFilterMenu = (actions: {
191
195
  hide: () => void;
192
196
  }) => VNodeChild;
193
197
  export declare type OnUpdateExpandedRowKeys = (keys: RowKey[]) => void;
194
- export declare type OnUpdateCheckedRowKeys = (keys: RowKey[]) => void;
198
+ export declare type OnUpdateCheckedRowKeys = (keys: RowKey[], row: InternalRowData[]) => void;
195
199
  export declare type OnUpdateSorter = (sortState: SortState & SortState[] & null) => void;
196
200
  export declare type OnUpdateSorterImpl = (sortState: SortState | SortState[] | null) => void;
197
201
  export declare type OnUpdateFilters = (filterState: FilterState, sourceColumn: TableBaseColumn) => void;
@@ -206,9 +210,11 @@ export interface FilterState {
206
210
  export interface MainTableRef {
207
211
  getHeaderElement: () => HTMLElement | null;
208
212
  getBodyElement: () => HTMLElement | null;
213
+ scrollTo: ScrollTo;
209
214
  }
210
215
  export interface MainTableBodyRef {
211
216
  getScrollContainer: () => HTMLElement | null;
217
+ scrollTo: ScrollTo;
212
218
  }
213
219
  export interface MainTableHeaderRef {
214
220
  $el: HTMLElement | null;
@@ -222,6 +228,7 @@ export interface DataTableInst {
222
228
  clearSorter: () => void;
223
229
  page: (page: number) => void;
224
230
  sort: (columnKey: ColumnKey, order: SortOrder) => void;
231
+ scrollTo: ScrollTo;
225
232
  /** @deprecated it but just leave it here, it does no harm */
226
233
  clearFilter: () => void;
227
234
  }