@aloudata/aloudata-design 0.4.0-beta.9 → 0.4.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 (1112) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +22 -220
  3. package/dist/Alert/index.d.ts +4 -0
  4. package/dist/Alert/index.js +2 -0
  5. package/dist/Alert/style/index.js +2 -0
  6. package/dist/Avatar/component/Avatar/index.js +44 -0
  7. package/dist/Avatar/index.js +4 -0
  8. package/dist/Avatar/style/index.js +2 -0
  9. package/dist/Breadcrumb/index.js +47 -0
  10. package/dist/Breadcrumb/style/index.js +2 -0
  11. package/dist/Button/index.d.ts +58 -0
  12. package/dist/Button/index.js +116 -0
  13. package/dist/Button/style/index.js +2 -0
  14. package/dist/Card/index.js +3 -0
  15. package/dist/Card/style/index.js +2 -0
  16. package/dist/Checkbox/component/CheckboxGroup/index.js +28 -0
  17. package/dist/Checkbox/index.js +24 -0
  18. package/dist/Checkbox/style/index.js +2 -0
  19. package/dist/Col/index.js +4 -0
  20. package/dist/Col/style/index.js +2 -0
  21. package/dist/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
  22. package/dist/ConfigProvider/defaultRenderEmpty.js +37 -0
  23. package/dist/ConfigProvider/index.js +3 -0
  24. package/dist/ConfigProvider/sizeContext.d.ts +9 -0
  25. package/dist/ConfigProvider/style/index.js +2 -0
  26. package/dist/DatePicker/index.js +2 -0
  27. package/dist/DatePicker/style/index.js +2 -0
  28. package/dist/Divider/index.js +13 -0
  29. package/dist/Divider/style/index.js +2 -0
  30. package/dist/DoubleCircleIcon/index.d.ts +9 -0
  31. package/dist/DoubleCircleIcon/index.js +33 -0
  32. package/dist/DoubleCircleIcon/style/index.less +23 -0
  33. package/dist/Drawer/index.js +4 -0
  34. package/dist/Drawer/style/index.js +2 -0
  35. package/dist/Dropdown/Button.js +32 -0
  36. package/dist/Dropdown/index.js +24 -0
  37. package/dist/Dropdown/style/index.js +2 -0
  38. package/dist/Empty/image/Data.d.ts +3 -0
  39. package/dist/Empty/image/Data.js +222 -0
  40. package/dist/Empty/image/Search.d.ts +3 -0
  41. package/dist/Empty/image/Search.js +212 -0
  42. package/dist/Empty/image/SearchSmall.d.ts +3 -0
  43. package/dist/Empty/image/SearchSmall.js +20 -0
  44. package/dist/Empty/image/User.d.ts +3 -0
  45. package/dist/Empty/image/User.js +199 -0
  46. package/dist/Empty/image/WorkBook.d.ts +3 -0
  47. package/dist/Empty/image/WorkBook.js +205 -0
  48. package/dist/Empty/index.d.ts +23 -0
  49. package/dist/Empty/index.js +81 -0
  50. package/dist/Empty/style/index.js +1 -0
  51. package/dist/Empty/style/index.less +57 -0
  52. package/dist/Form/index.js +8 -0
  53. package/dist/Form/style/index.js +2 -0
  54. package/dist/Icon/components/Icon.js +29 -0
  55. package/dist/Icon/icons.js +1443 -0
  56. package/dist/Icon/index.js +2 -0
  57. package/dist/Icon/style/index.less +0 -0
  58. package/dist/Input/components/Group/index.js +24 -0
  59. package/dist/Input/components/Input/index.js +32 -0
  60. package/dist/Input/components/Password/index.js +40 -0
  61. package/dist/Input/components/TextArea/index.js +27 -0
  62. package/dist/Input/index.js +9 -0
  63. package/dist/Input/style/index.js +2 -0
  64. package/dist/InputNumber/index.js +33 -0
  65. package/dist/InputNumber/style/index.js +2 -0
  66. package/dist/InputNumber/type.d.ts +161 -0
  67. package/dist/Layout/index.js +2 -0
  68. package/dist/Layout/style/index.js +2 -0
  69. package/dist/Menu/Divider.js +6 -0
  70. package/dist/Menu/MenuItem.js +6 -0
  71. package/dist/Menu/SubMenu.js +23 -0
  72. package/dist/Menu/index.d.ts +23 -0
  73. package/dist/Menu/index.js +34 -0
  74. package/dist/Menu/style/index.js +2 -0
  75. package/dist/Menu/style/index.less +53 -0
  76. package/dist/Modal/index.d.ts +37 -0
  77. package/dist/Modal/index.js +212 -0
  78. package/dist/Modal/locale.js +20 -0
  79. package/dist/Modal/style/index.js +2 -0
  80. package/dist/Modal/style/index.less +88 -0
  81. package/dist/Navigator/components/Menu/index.js +53 -0
  82. package/dist/Navigator/index.js +35 -0
  83. package/dist/Navigator/style/index.js +2 -0
  84. package/dist/Popconfirm/index.d.ts +10 -0
  85. package/dist/Popconfirm/index.js +58 -0
  86. package/dist/Popconfirm/style/index.js +2 -0
  87. package/dist/Popconfirm/style/index.less +28 -0
  88. package/dist/Popover/index.js +23 -0
  89. package/dist/Popover/style/index.js +2 -0
  90. package/dist/Progress/index.js +3 -0
  91. package/dist/Progress/style/index.js +2 -0
  92. package/dist/Radio/components/Group/index.d.ts +6 -0
  93. package/dist/Radio/components/Radio/index.js +95 -0
  94. package/dist/Radio/index.js +5 -0
  95. package/dist/Radio/style/index.js +2 -0
  96. package/dist/Row/index.js +2 -0
  97. package/dist/Row/style/index.js +2 -0
  98. package/dist/Select/components/MultipleOption.d.ts +10 -0
  99. package/dist/Select/components/MultipleOption.js +23 -0
  100. package/dist/Select/components/SingleOption.d.ts +10 -0
  101. package/dist/Select/components/SingleOption.js +27 -0
  102. package/dist/Select/index.d.ts +9 -0
  103. package/dist/Select/index.js +222 -0
  104. package/dist/Select/style/index.js +2 -0
  105. package/dist/Select/style/index.less +109 -0
  106. package/dist/Select/style/multiple.less +43 -0
  107. package/dist/Select/style/single.less +28 -0
  108. package/dist/Select/style/size.less +159 -0
  109. package/dist/Select/style/status.less +33 -0
  110. package/dist/Select/style/variables.less +35 -0
  111. package/dist/Skeleton/index.js +3 -0
  112. package/dist/Skeleton/style/index.js +2 -0
  113. package/dist/Space/index.js +2 -0
  114. package/dist/Space/style/index.js +2 -0
  115. package/dist/Spin/CustomIcon/index.d.ts +8 -0
  116. package/dist/Spin/CustomIcon/index.js +26 -0
  117. package/dist/Spin/CustomIcon/index.less +125 -0
  118. package/dist/Spin/Icon/index.d.ts +4 -0
  119. package/dist/Spin/Icon/index.js +7 -0
  120. package/dist/Spin/Icon/index.less +41 -0
  121. package/dist/Spin/index.d.ts +7 -0
  122. package/dist/Spin/index.js +32 -0
  123. package/dist/Spin/style/index.js +2 -0
  124. package/dist/Spin/style/index.less +1 -0
  125. package/dist/Steps/components/CustomDot/index.d.ts +2 -0
  126. package/dist/Steps/components/CustomDot/index.js +8 -0
  127. package/dist/Steps/components/ProcessIcon/index.d.ts +6 -0
  128. package/dist/Steps/components/ProcessIcon/index.js +22 -0
  129. package/dist/Steps/components/Step/index.js +47 -0
  130. package/dist/Steps/index.d.ts +46 -0
  131. package/dist/Steps/index.js +34 -0
  132. package/dist/Steps/matchMedia.mock.d.ts +0 -0
  133. package/dist/Steps/matchMedia.mock.js +17 -0
  134. package/dist/Steps/style/index.js +2 -0
  135. package/dist/Steps/style/index.less +337 -0
  136. package/dist/Switch/index.js +70 -0
  137. package/dist/Switch/style/index.js +2 -0
  138. package/dist/Table/Table.js +401 -0
  139. package/dist/Table/components/Empty/index.js +16 -0
  140. package/dist/Table/components/Loading/index.js +14 -0
  141. package/dist/Table/components/TableBodyRowList/index.js +95 -0
  142. package/dist/Table/components/TableHead/index.js +262 -0
  143. package/dist/Table/constant.d.ts +0 -0
  144. package/dist/Table/constant.js +0 -0
  145. package/dist/Table/hooks/useFrame.js +90 -0
  146. package/dist/Table/index.js +2 -0
  147. package/dist/Table/style/index.js +2 -0
  148. package/dist/Table/style/index.less +243 -0
  149. package/dist/Table/style/variable.less +5 -0
  150. package/dist/Table/utils.d.ts +15 -0
  151. package/dist/Table/utils.js +139 -0
  152. package/dist/Tabs/TabPane.js +6 -0
  153. package/dist/Tabs/index.js +48 -0
  154. package/dist/Tabs/style/index.js +2 -0
  155. package/dist/Tabs/style/index.less +168 -0
  156. package/dist/Tooltip/style/index.js +2 -0
  157. package/dist/Tooltip/style/index.less +17 -0
  158. package/dist/Tree/demo/basic/index.d.ts +3 -0
  159. package/dist/Tree/demo/basic/index.js +34 -0
  160. package/dist/Tree/index.d.ts +8 -0
  161. package/dist/Tree/index.js +18 -0
  162. package/dist/Tree/style/index.js +2 -0
  163. package/dist/Tree/style/index.less +45 -0
  164. package/dist/Typography/index.js +2 -0
  165. package/dist/Typography/style/index.js +2 -0
  166. package/dist/Upload/index.js +2 -0
  167. package/dist/Upload/style/index.js +2 -0
  168. package/dist/_utils/hooks/useControlledState.d.ts +2 -0
  169. package/dist/_utils/hooks/usePrefixCls.d.ts +2 -0
  170. package/dist/_utils/hooks/usePrefixCls.js +13 -0
  171. package/dist/index.d.ts +78 -0
  172. package/dist/index.js +43 -0
  173. package/dist/locale/default.js +2 -0
  174. package/dist/locale-provider/context.d.ts +7 -0
  175. package/dist/locale-provider/default.js +2 -0
  176. package/dist/locale-provider/en_US.js +2 -0
  177. package/dist/locale-provider/index.d.ts +65 -0
  178. package/dist/locale-provider/index.js +105 -0
  179. package/dist/locale-provider/style/index.js +1 -0
  180. package/dist/locale-provider/zh_CN.js +2 -0
  181. package/dist/message/index.d.ts +14 -0
  182. package/dist/message/index.js +137 -0
  183. package/dist/message/style/color.less +55 -0
  184. package/dist/message/style/index.js +2 -0
  185. package/dist/message/style/index.less +32 -0
  186. package/dist/notification/index.d.ts +3 -0
  187. package/dist/notification/index.js +3 -0
  188. package/dist/notification/style/index.js +2 -0
  189. package/dist/style/index.js +1 -0
  190. package/dist/style/index.less +4 -0
  191. package/dist/style/themes/default/themeColor.module.less +439 -0
  192. package/package.json +74 -99
  193. package/es/Alert/index.d.ts +0 -4
  194. package/es/Alert/index.js +0 -3
  195. package/es/Alert/style/index.js +0 -2
  196. package/es/Avatar/component/Avatar/index.js +0 -42
  197. package/es/Avatar/index.js +0 -4
  198. package/es/Avatar/style/index.js +0 -2
  199. package/es/Breadcrumb/index.js +0 -46
  200. package/es/Breadcrumb/style/index.js +0 -2
  201. package/es/Button/index.d.ts +0 -49
  202. package/es/Button/index.js +0 -123
  203. package/es/Button/style/index.js +0 -2
  204. package/es/Card/index.js +0 -3
  205. package/es/Card/style/index.js +0 -2
  206. package/es/Checkbox/component/CheckboxGroup/index.js +0 -27
  207. package/es/Checkbox/index.js +0 -23
  208. package/es/Checkbox/style/index.js +0 -2
  209. package/es/Col/index.js +0 -3
  210. package/es/Col/style/index.js +0 -2
  211. package/es/ConfigProvider/defaultRenderEmpty.d.ts +0 -4
  212. package/es/ConfigProvider/defaultRenderEmpty.js +0 -37
  213. package/es/ConfigProvider/index.js +0 -4
  214. package/es/ConfigProvider/sizeContext.d.ts +0 -9
  215. package/es/ConfigProvider/style/index.js +0 -2
  216. package/es/DatePicker/index.js +0 -3
  217. package/es/DatePicker/style/index.js +0 -2
  218. package/es/Divider/index.js +0 -12
  219. package/es/Divider/style/index.js +0 -2
  220. package/es/Drawer/index.js +0 -3
  221. package/es/Drawer/style/index.js +0 -2
  222. package/es/Dropdown/Button.js +0 -34
  223. package/es/Dropdown/index.js +0 -26
  224. package/es/Dropdown/style/index.d.ts +0 -3
  225. package/es/Dropdown/style/index.js +0 -3
  226. package/es/Empty/image/Authority.d.ts +0 -3
  227. package/es/Empty/image/Authority.js +0 -360
  228. package/es/Empty/image/Dataspace.d.ts +0 -3
  229. package/es/Empty/image/Dataspace.js +0 -271
  230. package/es/Empty/image/Search.d.ts +0 -3
  231. package/es/Empty/image/Search.js +0 -156
  232. package/es/Empty/image/Simple.d.ts +0 -3
  233. package/es/Empty/image/Simple.js +0 -20
  234. package/es/Empty/image/Worksheet.d.ts +0 -3
  235. package/es/Empty/image/Worksheet.js +0 -270
  236. package/es/Empty/image/empty.d.ts +0 -3
  237. package/es/Empty/image/empty.js +0 -139
  238. package/es/Empty/index.d.ts +0 -23
  239. package/es/Empty/index.js +0 -86
  240. package/es/Empty/style/index.js +0 -1
  241. package/es/Empty/style/index.less +0 -69
  242. package/es/Form/index.js +0 -3
  243. package/es/Form/style/index.js +0 -2
  244. package/es/Icon/components/Icon.js +0 -27
  245. package/es/Icon/icons/AddLine.d.ts +0 -13
  246. package/es/Icon/icons/AddLine.js +0 -66
  247. package/es/Icon/icons/AlertFill.d.ts +0 -13
  248. package/es/Icon/icons/AlertFill.js +0 -73
  249. package/es/Icon/icons/ArrowsDownLine.d.ts +0 -13
  250. package/es/Icon/icons/ArrowsDownLine.js +0 -66
  251. package/es/Icon/icons/CancelFill.d.ts +0 -13
  252. package/es/Icon/icons/CancelFill.js +0 -73
  253. package/es/Icon/icons/CheckFill.d.ts +0 -13
  254. package/es/Icon/icons/CheckFill.js +0 -73
  255. package/es/Icon/icons/CheckLine.d.ts +0 -13
  256. package/es/Icon/icons/CheckLine.js +0 -73
  257. package/es/Icon/icons/CloseLine.d.ts +0 -13
  258. package/es/Icon/icons/CloseLine.js +0 -66
  259. package/es/Icon/icons/DatabaseLine.d.ts +0 -13
  260. package/es/Icon/icons/DatabaseLine.js +0 -66
  261. package/es/Icon/icons/Deleteline.d.ts +0 -13
  262. package/es/Icon/icons/Deleteline.js +0 -66
  263. package/es/Icon/icons/DownloadLine.d.ts +0 -13
  264. package/es/Icon/icons/DownloadLine.js +0 -73
  265. package/es/Icon/icons/ErrorFill.d.ts +0 -13
  266. package/es/Icon/icons/ErrorFill.js +0 -73
  267. package/es/Icon/icons/EyeOffLine.d.ts +0 -13
  268. package/es/Icon/icons/EyeOffLine.js +0 -73
  269. package/es/Icon/icons/EyeOnLine.d.ts +0 -13
  270. package/es/Icon/icons/EyeOnLine.js +0 -66
  271. package/es/Icon/icons/FileLine.d.ts +0 -13
  272. package/es/Icon/icons/FileLine.js +0 -73
  273. package/es/Icon/icons/HomeFill.d.ts +0 -13
  274. package/es/Icon/icons/HomeFill.js +0 -73
  275. package/es/Icon/icons/IconBase.withSpan.tpl +0 -58
  276. package/es/Icon/icons/LightningLine.d.ts +0 -13
  277. package/es/Icon/icons/LightningLine.js +0 -66
  278. package/es/Icon/icons/Loading.d.ts +0 -13
  279. package/es/Icon/icons/Loading.js +0 -66
  280. package/es/Icon/icons/More.d.ts +0 -13
  281. package/es/Icon/icons/More.js +0 -66
  282. package/es/Icon/icons/NewWindowsLine.d.ts +0 -13
  283. package/es/Icon/icons/NewWindowsLine.js +0 -74
  284. package/es/Icon/icons/SearchLine.d.ts +0 -13
  285. package/es/Icon/icons/SearchLine.js +0 -73
  286. package/es/Icon/icons/SortAscendingLine.d.ts +0 -13
  287. package/es/Icon/icons/SortAscendingLine.js +0 -66
  288. package/es/Icon/icons/SortDescendingLine.d.ts +0 -13
  289. package/es/Icon/icons/SortDescendingLine.js +0 -66
  290. package/es/Icon/icons/TextLine.d.ts +0 -13
  291. package/es/Icon/icons/TextLine.js +0 -73
  292. package/es/Icon/icons/UserLine.d.ts +0 -13
  293. package/es/Icon/icons/UserLine.js +0 -73
  294. package/es/Icon/icons/style.css +0 -9
  295. package/es/Icon/icons/style.css.d.ts +0 -10
  296. package/es/Icon/icons.js +0 -1590
  297. package/es/Icon/index.js +0 -2
  298. package/es/Icon/style/index.d.ts +0 -1
  299. package/es/Icon/style/index.js +0 -1
  300. package/es/Input/components/Group/index.js +0 -22
  301. package/es/Input/components/Input/index.js +0 -30
  302. package/es/Input/components/Password/index.js +0 -41
  303. package/es/Input/components/TextArea/index.js +0 -25
  304. package/es/Input/index.js +0 -9
  305. package/es/Input/style/index.d.ts +0 -3
  306. package/es/Input/style/index.js +0 -3
  307. package/es/InputNumber/index.js +0 -32
  308. package/es/InputNumber/style/index.js +0 -2
  309. package/es/InputNumber/type.d.ts +0 -161
  310. package/es/Layout/index.js +0 -3
  311. package/es/Layout/style/index.js +0 -2
  312. package/es/Menu/Divider.js +0 -7
  313. package/es/Menu/MenuItem.js +0 -7
  314. package/es/Menu/SubMenu.js +0 -22
  315. package/es/Menu/index.d.ts +0 -23
  316. package/es/Menu/index.js +0 -24
  317. package/es/Menu/style/index.d.ts +0 -3
  318. package/es/Menu/style/index.js +0 -3
  319. package/es/Menu/style/index.less +0 -41
  320. package/es/Modal/index.d.ts +0 -21
  321. package/es/Modal/index.js +0 -99
  322. package/es/Modal/locale.js +0 -20
  323. package/es/Modal/style/index.js +0 -2
  324. package/es/Modal/style/index.less +0 -209
  325. package/es/Navigator/components/Menu/index.js +0 -51
  326. package/es/Navigator/index.js +0 -35
  327. package/es/Navigator/style/index.js +0 -2
  328. package/es/PageHeader/index.d.ts +0 -3
  329. package/es/PageHeader/index.js +0 -3
  330. package/es/PageHeader/style/index.js +0 -2
  331. package/es/Popconfirm/index.d.ts +0 -3
  332. package/es/Popconfirm/index.js +0 -2
  333. package/es/Popconfirm/style/index.js +0 -2
  334. package/es/Popover/index.js +0 -22
  335. package/es/Popover/style/index.js +0 -2
  336. package/es/Progress/index.js +0 -2
  337. package/es/Progress/style/index.js +0 -2
  338. package/es/Radio/components/Group/index.d.ts +0 -6
  339. package/es/Radio/components/Radio/index.js +0 -95
  340. package/es/Radio/index.js +0 -5
  341. package/es/Radio/style/index.js +0 -2
  342. package/es/Row/index.js +0 -3
  343. package/es/Row/style/index.js +0 -2
  344. package/es/Select/index.d.ts +0 -39
  345. package/es/Select/index.js +0 -156
  346. package/es/Select/rc-select/BaseSelect.d.ts +0 -116
  347. package/es/Select/rc-select/BaseSelect.js +0 -641
  348. package/es/Select/rc-select/OptGroup.d.ts +0 -12
  349. package/es/Select/rc-select/OptGroup.js +0 -7
  350. package/es/Select/rc-select/Option.d.ts +0 -14
  351. package/es/Select/rc-select/Option.js +0 -7
  352. package/es/Select/rc-select/OptionList.d.ts +0 -10
  353. package/es/Select/rc-select/OptionList.js +0 -401
  354. package/es/Select/rc-select/Select.d.ts +0 -109
  355. package/es/Select/rc-select/Select.js +0 -547
  356. package/es/Select/rc-select/SelectContext.d.ts +0 -20
  357. package/es/Select/rc-select/SelectContext.js +0 -4
  358. package/es/Select/rc-select/SelectTrigger.d.ts +0 -30
  359. package/es/Select/rc-select/SelectTrigger.js +0 -136
  360. package/es/Select/rc-select/Selector/Input.d.ts +0 -26
  361. package/es/Select/rc-select/Selector/Input.js +0 -114
  362. package/es/Select/rc-select/Selector/MultipleSelector.d.ts +0 -16
  363. package/es/Select/rc-select/Selector/MultipleSelector.js +0 -246
  364. package/es/Select/rc-select/Selector/SingleSelector.d.ts +0 -8
  365. package/es/Select/rc-select/Selector/SingleSelector.js +0 -112
  366. package/es/Select/rc-select/Selector/index.d.ts +0 -80
  367. package/es/Select/rc-select/Selector/index.js +0 -194
  368. package/es/Select/rc-select/TransBtn.d.ts +0 -12
  369. package/es/Select/rc-select/TransBtn.js +0 -42
  370. package/es/Select/rc-select/hooks/useBaseProps.d.ts +0 -13
  371. package/es/Select/rc-select/hooks/useBaseProps.js +0 -11
  372. package/es/Select/rc-select/hooks/useCache.d.ts +0 -7
  373. package/es/Select/rc-select/hooks/useCache.js +0 -49
  374. package/es/Select/rc-select/hooks/useDelayReset.d.ts +0 -5
  375. package/es/Select/rc-select/hooks/useDelayReset.js +0 -50
  376. package/es/Select/rc-select/hooks/useFilterOptions.d.ts +0 -3
  377. package/es/Select/rc-select/hooks/useFilterOptions.js +0 -75
  378. package/es/Select/rc-select/hooks/useId.d.ts +0 -5
  379. package/es/Select/rc-select/hooks/useId.js +0 -47
  380. package/es/Select/rc-select/hooks/useLayoutEffect.d.ts +0 -5
  381. package/es/Select/rc-select/hooks/useLayoutEffect.js +0 -17
  382. package/es/Select/rc-select/hooks/useLock.d.ts +0 -7
  383. package/es/Select/rc-select/hooks/useLock.js +0 -35
  384. package/es/Select/rc-select/hooks/useOptions.d.ts +0 -11
  385. package/es/Select/rc-select/hooks/useOptions.js +0 -53
  386. package/es/Select/rc-select/hooks/useRefFunc.d.ts +0 -5
  387. package/es/Select/rc-select/hooks/useRefFunc.js +0 -15
  388. package/es/Select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -1
  389. package/es/Select/rc-select/hooks/useSelectTriggerControl.js +0 -40
  390. package/es/Select/rc-select/index.d.ts +0 -10
  391. package/es/Select/rc-select/index.js +0 -7
  392. package/es/Select/rc-select/interface.d.ts +0 -10
  393. package/es/Select/rc-select/utils/commonUtil.d.ts +0 -4
  394. package/es/Select/rc-select/utils/commonUtil.js +0 -12
  395. package/es/Select/rc-select/utils/keyUtil.d.ts +0 -2
  396. package/es/Select/rc-select/utils/keyUtil.js +0 -8
  397. package/es/Select/rc-select/utils/legacyUtil.d.ts +0 -3
  398. package/es/Select/rc-select/utils/legacyUtil.js +0 -58
  399. package/es/Select/rc-select/utils/platformUtil.d.ts +0 -1
  400. package/es/Select/rc-select/utils/platformUtil.js +0 -4
  401. package/es/Select/rc-select/utils/valueUtil.d.ts +0 -22
  402. package/es/Select/rc-select/utils/valueUtil.js +0 -157
  403. package/es/Select/rc-select/utils/warningPropsUtil.d.ts +0 -3
  404. package/es/Select/rc-select/utils/warningPropsUtil.js +0 -114
  405. package/es/Select/style/index.d.ts +0 -3
  406. package/es/Select/style/index.js +0 -4
  407. package/es/Select/style/index.less +0 -340
  408. package/es/Select/style/multiple.less +0 -222
  409. package/es/Select/style/rtl.less +0 -168
  410. package/es/Select/style/select.less +0 -337
  411. package/es/Select/style/single.less +0 -179
  412. package/es/Select/style/status.less +0 -48
  413. package/es/Select/style/variables.less +0 -67
  414. package/es/Select/style/variables.less.d.ts +0 -190
  415. package/es/Select/utils/iconUtil.d.ts +0 -24
  416. package/es/Select/utils/iconUtil.js +0 -86
  417. package/es/Skeleton/index.js +0 -2
  418. package/es/Skeleton/style/index.js +0 -2
  419. package/es/Space/index.js +0 -2
  420. package/es/Space/style/index.js +0 -2
  421. package/es/Spin/index.d.ts +0 -4
  422. package/es/Spin/index.js +0 -2
  423. package/es/Spin/style/index.js +0 -2
  424. package/es/Steps/components/ProcessIcon/index.d.ts +0 -6
  425. package/es/Steps/components/ProcessIcon/index.js +0 -8
  426. package/es/Steps/components/Step/index.js +0 -45
  427. package/es/Steps/index.d.ts +0 -37
  428. package/es/Steps/index.js +0 -31
  429. package/es/Steps/matchMedia.mock.d.ts +0 -1
  430. package/es/Steps/matchMedia.mock.js +0 -17
  431. package/es/Steps/style/index.js +0 -2
  432. package/es/Steps/style/index.less +0 -258
  433. package/es/Switch/index.js +0 -72
  434. package/es/Switch/style/index.js +0 -2
  435. package/es/Table/Table.js +0 -388
  436. package/es/Table/components/Empty/index.js +0 -16
  437. package/es/Table/components/Loading/index.js +0 -18
  438. package/es/Table/components/TableBodyRowList/index.js +0 -91
  439. package/es/Table/components/TableHead/index.js +0 -261
  440. package/es/Table/constant.d.ts +0 -1
  441. package/es/Table/constant.js +0 -1
  442. package/es/Table/hooks/useFrame.js +0 -90
  443. package/es/Table/index.js +0 -2
  444. package/es/Table/interface.js +0 -1
  445. package/es/Table/style/index.js +0 -2
  446. package/es/Table/style/index.less +0 -238
  447. package/es/Table/style/variable.less +0 -5
  448. package/es/Table/style/variable.less.d.ts +0 -7
  449. package/es/Table/utils.d.ts +0 -15
  450. package/es/Table/utils.js +0 -138
  451. package/es/Tabs/TabPane.js +0 -6
  452. package/es/Tabs/index.js +0 -48
  453. package/es/Tabs/style/index.d.ts +0 -3
  454. package/es/Tabs/style/index.js +0 -3
  455. package/es/Tabs/style/index.less +0 -166
  456. package/es/Tooltip/style/index.js +0 -2
  457. package/es/Tooltip/style/index.less +0 -15
  458. package/es/Tree/index.d.ts +0 -5
  459. package/es/Tree/index.js +0 -2
  460. package/es/Tree/style/index.js +0 -2
  461. package/es/Tree/style/index.less +0 -1
  462. package/es/Typography/index.js +0 -3
  463. package/es/Typography/style/index.js +0 -2
  464. package/es/Typography/style/index.less +0 -1
  465. package/es/Upload/index.js +0 -3
  466. package/es/Upload/style/index.js +0 -2
  467. package/es/Upload/style/index.less +0 -1
  468. package/es/_utils/hooks/useControlledState.d.ts +0 -2
  469. package/es/_utils/hooks/usePrefixCls.d.ts +0 -2
  470. package/es/_utils/hooks/usePrefixCls.js +0 -14
  471. package/es/index.d.ts +0 -81
  472. package/es/index.js +0 -42
  473. package/es/locale/default.js +0 -2
  474. package/es/locale-provider/context.d.ts +0 -7
  475. package/es/locale-provider/default.js +0 -2
  476. package/es/locale-provider/en_US.js +0 -2
  477. package/es/locale-provider/index.d.ts +0 -65
  478. package/es/locale-provider/index.js +0 -102
  479. package/es/locale-provider/style/index.js +0 -1
  480. package/es/locale-provider/zh_CN.js +0 -2
  481. package/es/message/index.d.ts +0 -5
  482. package/es/message/index.js +0 -3
  483. package/es/message/style/index.js +0 -2
  484. package/es/message/style/index.less +0 -1
  485. package/es/notification/index.d.ts +0 -4
  486. package/es/notification/index.js +0 -3
  487. package/es/notification/style/index.js +0 -2
  488. package/es/notification/style/index.less +0 -1
  489. package/es/style/index.js +0 -1
  490. package/es/style/index.less +0 -5
  491. package/es/style/themes/default/themeColor.module.less +0 -445
  492. package/lib/Alert/index.d.ts +0 -4
  493. package/lib/Alert/index.js +0 -15
  494. package/lib/Alert/style/index.js +0 -5
  495. package/lib/Alert/style/index.less +0 -1
  496. package/lib/Avatar/component/Avatar/index.d.ts +0 -84
  497. package/lib/Avatar/component/Avatar/index.js +0 -61
  498. package/lib/Avatar/index.d.ts +0 -3
  499. package/lib/Avatar/index.js +0 -16
  500. package/lib/Avatar/style/index.js +0 -5
  501. package/lib/Avatar/style/index.less +0 -34
  502. package/lib/Breadcrumb/index.d.ts +0 -11
  503. package/lib/Breadcrumb/index.js +0 -59
  504. package/lib/Breadcrumb/style/index.js +0 -5
  505. package/lib/Breadcrumb/style/index.less +0 -36
  506. package/lib/Button/index.d.ts +0 -49
  507. package/lib/Button/index.js +0 -139
  508. package/lib/Button/style/index.js +0 -5
  509. package/lib/Button/style/index.less +0 -355
  510. package/lib/Button/style/variables.less +0 -67
  511. package/lib/Card/index.d.ts +0 -3
  512. package/lib/Card/index.js +0 -15
  513. package/lib/Card/style/index.d.ts +0 -2
  514. package/lib/Card/style/index.js +0 -5
  515. package/lib/Card/style/index.less +0 -1
  516. package/lib/Checkbox/component/CheckboxGroup/index.d.ts +0 -4
  517. package/lib/Checkbox/component/CheckboxGroup/index.js +0 -42
  518. package/lib/Checkbox/index.d.ts +0 -10
  519. package/lib/Checkbox/index.js +0 -37
  520. package/lib/Checkbox/style/index.d.ts +0 -2
  521. package/lib/Checkbox/style/index.js +0 -5
  522. package/lib/Checkbox/style/index.less +0 -133
  523. package/lib/Checkbox/type.d.ts +0 -94
  524. package/lib/Checkbox/type.js +0 -13
  525. package/lib/Col/index.d.ts +0 -4
  526. package/lib/Col/index.js +0 -15
  527. package/lib/Col/style/index.d.ts +0 -2
  528. package/lib/Col/style/index.js +0 -5
  529. package/lib/Col/style/index.less +0 -1
  530. package/lib/ConfigProvider/defaultRenderEmpty.d.ts +0 -4
  531. package/lib/ConfigProvider/defaultRenderEmpty.js +0 -55
  532. package/lib/ConfigProvider/index.d.ts +0 -4
  533. package/lib/ConfigProvider/index.js +0 -41
  534. package/lib/ConfigProvider/sizeContext.d.ts +0 -9
  535. package/lib/ConfigProvider/sizeContext.js +0 -30
  536. package/lib/ConfigProvider/style/index.d.ts +0 -2
  537. package/lib/ConfigProvider/style/index.js +0 -5
  538. package/lib/ConfigProvider/style/index.less +0 -1
  539. package/lib/DatePicker/index.d.ts +0 -4
  540. package/lib/DatePicker/index.js +0 -15
  541. package/lib/DatePicker/style/index.d.ts +0 -2
  542. package/lib/DatePicker/style/index.js +0 -5
  543. package/lib/DatePicker/style/index.less +0 -1
  544. package/lib/Divider/index.d.ts +0 -41
  545. package/lib/Divider/index.js +0 -25
  546. package/lib/Divider/style/index.d.ts +0 -2
  547. package/lib/Divider/style/index.js +0 -5
  548. package/lib/Divider/style/index.less +0 -5
  549. package/lib/Divider/style/index.less.d.ts +0 -183
  550. package/lib/Drawer/index.d.ts +0 -4
  551. package/lib/Drawer/index.js +0 -15
  552. package/lib/Drawer/style/index.d.ts +0 -2
  553. package/lib/Drawer/style/index.js +0 -5
  554. package/lib/Drawer/style/index.less +0 -1
  555. package/lib/Dropdown/Button.d.ts +0 -69
  556. package/lib/Dropdown/Button.js +0 -48
  557. package/lib/Dropdown/index.d.ts +0 -86
  558. package/lib/Dropdown/index.js +0 -39
  559. package/lib/Dropdown/style/index.d.ts +0 -3
  560. package/lib/Dropdown/style/index.js +0 -7
  561. package/lib/Dropdown/style/index.less +0 -73
  562. package/lib/Empty/image/Authority.d.ts +0 -3
  563. package/lib/Empty/image/Authority.js +0 -374
  564. package/lib/Empty/image/Dataspace.d.ts +0 -3
  565. package/lib/Empty/image/Dataspace.js +0 -285
  566. package/lib/Empty/image/Search.d.ts +0 -3
  567. package/lib/Empty/image/Search.js +0 -170
  568. package/lib/Empty/image/Simple.d.ts +0 -3
  569. package/lib/Empty/image/Simple.js +0 -34
  570. package/lib/Empty/image/Worksheet.d.ts +0 -3
  571. package/lib/Empty/image/Worksheet.js +0 -284
  572. package/lib/Empty/image/empty.d.ts +0 -3
  573. package/lib/Empty/image/empty.js +0 -153
  574. package/lib/Empty/index.d.ts +0 -23
  575. package/lib/Empty/index.js +0 -110
  576. package/lib/Empty/style/index.d.ts +0 -1
  577. package/lib/Empty/style/index.js +0 -3
  578. package/lib/Empty/style/index.less +0 -69
  579. package/lib/Form/index.d.ts +0 -8
  580. package/lib/Form/index.js +0 -15
  581. package/lib/Form/style/index.d.ts +0 -2
  582. package/lib/Form/style/index.js +0 -5
  583. package/lib/Form/style/index.less +0 -9
  584. package/lib/Icon/antdIconfont.d.ts +0 -4
  585. package/lib/Icon/antdIconfont.js +0 -13
  586. package/lib/Icon/components/Icon.d.ts +0 -32
  587. package/lib/Icon/components/Icon.js +0 -38
  588. package/lib/Icon/components/createFromScripts.d.ts +0 -1
  589. package/lib/Icon/components/createFromScripts.js +0 -41
  590. package/lib/Icon/iconSvgs/arrows_right_sm.svg +0 -3
  591. package/lib/Icon/icons/AddLine.d.ts +0 -13
  592. package/lib/Icon/icons/AddLine.js +0 -83
  593. package/lib/Icon/icons/AlertFill.d.ts +0 -13
  594. package/lib/Icon/icons/AlertFill.js +0 -90
  595. package/lib/Icon/icons/ArrowsDownLine.d.ts +0 -13
  596. package/lib/Icon/icons/ArrowsDownLine.js +0 -83
  597. package/lib/Icon/icons/CancelFill.d.ts +0 -13
  598. package/lib/Icon/icons/CancelFill.js +0 -90
  599. package/lib/Icon/icons/CheckFill.d.ts +0 -13
  600. package/lib/Icon/icons/CheckFill.js +0 -90
  601. package/lib/Icon/icons/CheckLine.d.ts +0 -13
  602. package/lib/Icon/icons/CheckLine.js +0 -90
  603. package/lib/Icon/icons/CloseLine.d.ts +0 -13
  604. package/lib/Icon/icons/CloseLine.js +0 -83
  605. package/lib/Icon/icons/DatabaseLine.d.ts +0 -13
  606. package/lib/Icon/icons/DatabaseLine.js +0 -83
  607. package/lib/Icon/icons/Deleteline.d.ts +0 -13
  608. package/lib/Icon/icons/Deleteline.js +0 -83
  609. package/lib/Icon/icons/DownloadLine.d.ts +0 -13
  610. package/lib/Icon/icons/DownloadLine.js +0 -90
  611. package/lib/Icon/icons/ErrorFill.d.ts +0 -13
  612. package/lib/Icon/icons/ErrorFill.js +0 -90
  613. package/lib/Icon/icons/EyeOffLine.d.ts +0 -13
  614. package/lib/Icon/icons/EyeOffLine.js +0 -90
  615. package/lib/Icon/icons/EyeOnLine.d.ts +0 -13
  616. package/lib/Icon/icons/EyeOnLine.js +0 -83
  617. package/lib/Icon/icons/FileLine.d.ts +0 -13
  618. package/lib/Icon/icons/FileLine.js +0 -90
  619. package/lib/Icon/icons/HomeFill.d.ts +0 -13
  620. package/lib/Icon/icons/HomeFill.js +0 -90
  621. package/lib/Icon/icons/IconBase.withSpan.tpl +0 -58
  622. package/lib/Icon/icons/LightningLine.d.ts +0 -13
  623. package/lib/Icon/icons/LightningLine.js +0 -83
  624. package/lib/Icon/icons/Loading.d.ts +0 -13
  625. package/lib/Icon/icons/Loading.js +0 -83
  626. package/lib/Icon/icons/More.d.ts +0 -13
  627. package/lib/Icon/icons/More.js +0 -83
  628. package/lib/Icon/icons/NewWindowsLine.d.ts +0 -13
  629. package/lib/Icon/icons/NewWindowsLine.js +0 -91
  630. package/lib/Icon/icons/SearchLine.d.ts +0 -13
  631. package/lib/Icon/icons/SearchLine.js +0 -90
  632. package/lib/Icon/icons/SortAscendingLine.d.ts +0 -13
  633. package/lib/Icon/icons/SortAscendingLine.js +0 -83
  634. package/lib/Icon/icons/SortDescendingLine.d.ts +0 -13
  635. package/lib/Icon/icons/SortDescendingLine.js +0 -83
  636. package/lib/Icon/icons/TextLine.d.ts +0 -13
  637. package/lib/Icon/icons/TextLine.js +0 -90
  638. package/lib/Icon/icons/UserLine.d.ts +0 -13
  639. package/lib/Icon/icons/UserLine.js +0 -90
  640. package/lib/Icon/icons/style.css +0 -9
  641. package/lib/Icon/icons/style.css.d.ts +0 -10
  642. package/lib/Icon/icons.d.ts +0 -9
  643. package/lib/Icon/icons.js +0 -1597
  644. package/lib/Icon/index.d.ts +0 -3
  645. package/lib/Icon/index.js +0 -13
  646. package/lib/Icon/index.less +0 -24
  647. package/lib/Icon/style/index.d.ts +0 -1
  648. package/lib/Icon/style/index.js +0 -1
  649. package/lib/Input/components/Group/index.d.ts +0 -18
  650. package/lib/Input/components/Group/index.js +0 -36
  651. package/lib/Input/components/Input/index.d.ts +0 -80
  652. package/lib/Input/components/Input/index.js +0 -46
  653. package/lib/Input/components/Password/index.d.ts +0 -22
  654. package/lib/Input/components/Password/index.js +0 -60
  655. package/lib/Input/components/TextArea/index.d.ts +0 -65
  656. package/lib/Input/components/TextArea/index.js +0 -40
  657. package/lib/Input/index.d.ts +0 -16
  658. package/lib/Input/index.js +0 -23
  659. package/lib/Input/style/index.d.ts +0 -3
  660. package/lib/Input/style/index.js +0 -7
  661. package/lib/Input/style/index.less +0 -490
  662. package/lib/InputNumber/index.d.ts +0 -4
  663. package/lib/InputNumber/index.js +0 -45
  664. package/lib/InputNumber/style/index.d.ts +0 -2
  665. package/lib/InputNumber/style/index.js +0 -5
  666. package/lib/InputNumber/style/index.less +0 -264
  667. package/lib/InputNumber/type.d.ts +0 -161
  668. package/lib/InputNumber/type.js +0 -5
  669. package/lib/Layout/index.d.ts +0 -4
  670. package/lib/Layout/index.js +0 -15
  671. package/lib/Layout/style/index.d.ts +0 -2
  672. package/lib/Layout/style/index.js +0 -5
  673. package/lib/Layout/style/index.less +0 -1
  674. package/lib/Menu/Divider.d.ts +0 -5
  675. package/lib/Menu/Divider.js +0 -20
  676. package/lib/Menu/MenuItem.d.ts +0 -30
  677. package/lib/Menu/MenuItem.js +0 -20
  678. package/lib/Menu/SubMenu.d.ts +0 -26
  679. package/lib/Menu/SubMenu.js +0 -36
  680. package/lib/Menu/index.d.ts +0 -23
  681. package/lib/Menu/index.js +0 -41
  682. package/lib/Menu/style/index.d.ts +0 -3
  683. package/lib/Menu/style/index.js +0 -7
  684. package/lib/Menu/style/index.less +0 -41
  685. package/lib/Modal/index.d.ts +0 -21
  686. package/lib/Modal/index.js +0 -128
  687. package/lib/Modal/locale.d.ts +0 -7
  688. package/lib/Modal/locale.js +0 -31
  689. package/lib/Modal/style/index.d.ts +0 -2
  690. package/lib/Modal/style/index.js +0 -5
  691. package/lib/Modal/style/index.less +0 -209
  692. package/lib/Navigator/components/Header/index.d.ts +0 -9
  693. package/lib/Navigator/components/Header/index.js +0 -28
  694. package/lib/Navigator/components/Menu/index.d.ts +0 -13
  695. package/lib/Navigator/components/Menu/index.js +0 -68
  696. package/lib/Navigator/components/MenuItem/index.d.ts +0 -21
  697. package/lib/Navigator/components/MenuItem/index.js +0 -56
  698. package/lib/Navigator/index.d.ts +0 -51
  699. package/lib/Navigator/index.js +0 -54
  700. package/lib/Navigator/style/bg.png +0 -0
  701. package/lib/Navigator/style/index.d.ts +0 -2
  702. package/lib/Navigator/style/index.js +0 -5
  703. package/lib/Navigator/style/index.less +0 -159
  704. package/lib/PageHeader/index.d.ts +0 -3
  705. package/lib/PageHeader/index.js +0 -15
  706. package/lib/PageHeader/style/index.d.ts +0 -2
  707. package/lib/PageHeader/style/index.js +0 -5
  708. package/lib/PageHeader/style/index.less +0 -1
  709. package/lib/Popconfirm/index.d.ts +0 -3
  710. package/lib/Popconfirm/index.js +0 -13
  711. package/lib/Popconfirm/style/index.d.ts +0 -2
  712. package/lib/Popconfirm/style/index.js +0 -5
  713. package/lib/Popconfirm/style/index.less +0 -1
  714. package/lib/Popover/index.d.ts +0 -5
  715. package/lib/Popover/index.js +0 -35
  716. package/lib/Popover/style/index.d.ts +0 -2
  717. package/lib/Popover/style/index.js +0 -5
  718. package/lib/Popover/style/index.less +0 -37
  719. package/lib/Progress/index.d.ts +0 -3
  720. package/lib/Progress/index.js +0 -13
  721. package/lib/Progress/style/index.d.ts +0 -2
  722. package/lib/Progress/style/index.js +0 -5
  723. package/lib/Progress/style/index.less +0 -1
  724. package/lib/Radio/components/Group/index.d.ts +0 -6
  725. package/lib/Radio/components/Group/index.js +0 -95
  726. package/lib/Radio/components/Radio/index.d.ts +0 -3
  727. package/lib/Radio/components/Radio/index.js +0 -115
  728. package/lib/Radio/index.d.ts +0 -10
  729. package/lib/Radio/index.js +0 -17
  730. package/lib/Radio/interface/radio.d.ts +0 -24
  731. package/lib/Radio/interface/radio.js +0 -5
  732. package/lib/Radio/interface/radioGroup.d.ts +0 -42
  733. package/lib/Radio/interface/radioGroup.js +0 -5
  734. package/lib/Radio/style/index.d.ts +0 -2
  735. package/lib/Radio/style/index.js +0 -5
  736. package/lib/Radio/style/index.less +0 -349
  737. package/lib/Row/index.d.ts +0 -3
  738. package/lib/Row/index.js +0 -15
  739. package/lib/Row/style/index.d.ts +0 -2
  740. package/lib/Row/style/index.js +0 -5
  741. package/lib/Row/style/index.less +0 -1
  742. package/lib/Select/index.d.ts +0 -39
  743. package/lib/Select/index.js +0 -181
  744. package/lib/Select/rc-select/BaseSelect.d.ts +0 -116
  745. package/lib/Select/rc-select/BaseSelect.js +0 -672
  746. package/lib/Select/rc-select/OptGroup.d.ts +0 -12
  747. package/lib/Select/rc-select/OptGroup.js +0 -15
  748. package/lib/Select/rc-select/Option.d.ts +0 -14
  749. package/lib/Select/rc-select/Option.js +0 -15
  750. package/lib/Select/rc-select/OptionList.d.ts +0 -10
  751. package/lib/Select/rc-select/OptionList.js +0 -428
  752. package/lib/Select/rc-select/Select.d.ts +0 -109
  753. package/lib/Select/rc-select/Select.js +0 -545
  754. package/lib/Select/rc-select/SelectContext.d.ts +0 -20
  755. package/lib/Select/rc-select/SelectContext.js +0 -19
  756. package/lib/Select/rc-select/SelectTrigger.d.ts +0 -30
  757. package/lib/Select/rc-select/SelectTrigger.js +0 -153
  758. package/lib/Select/rc-select/Selector/Input.d.ts +0 -26
  759. package/lib/Select/rc-select/Selector/Input.js +0 -132
  760. package/lib/Select/rc-select/Selector/MultipleSelector.d.ts +0 -16
  761. package/lib/Select/rc-select/Selector/MultipleSelector.js +0 -267
  762. package/lib/Select/rc-select/Selector/SingleSelector.d.ts +0 -8
  763. package/lib/Select/rc-select/Selector/SingleSelector.js +0 -129
  764. package/lib/Select/rc-select/Selector/index.d.ts +0 -80
  765. package/lib/Select/rc-select/Selector/index.js +0 -203
  766. package/lib/Select/rc-select/TransBtn.d.ts +0 -12
  767. package/lib/Select/rc-select/TransBtn.js +0 -59
  768. package/lib/Select/rc-select/hooks/useBaseProps.d.ts +0 -13
  769. package/lib/Select/rc-select/hooks/useBaseProps.js +0 -28
  770. package/lib/Select/rc-select/hooks/useCache.d.ts +0 -7
  771. package/lib/Select/rc-select/hooks/useCache.js +0 -63
  772. package/lib/Select/rc-select/hooks/useDelayReset.d.ts +0 -5
  773. package/lib/Select/rc-select/hooks/useDelayReset.js +0 -62
  774. package/lib/Select/rc-select/hooks/useFilterOptions.d.ts +0 -3
  775. package/lib/Select/rc-select/hooks/useFilterOptions.js +0 -91
  776. package/lib/Select/rc-select/hooks/useId.d.ts +0 -5
  777. package/lib/Select/rc-select/hooks/useId.js +0 -68
  778. package/lib/Select/rc-select/hooks/useLayoutEffect.d.ts +0 -5
  779. package/lib/Select/rc-select/hooks/useLayoutEffect.js +0 -32
  780. package/lib/Select/rc-select/hooks/useLock.d.ts +0 -7
  781. package/lib/Select/rc-select/hooks/useLock.js +0 -49
  782. package/lib/Select/rc-select/hooks/useOptions.d.ts +0 -11
  783. package/lib/Select/rc-select/hooks/useOptions.js +0 -68
  784. package/lib/Select/rc-select/hooks/useRefFunc.d.ts +0 -5
  785. package/lib/Select/rc-select/hooks/useRefFunc.js +0 -29
  786. package/lib/Select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -1
  787. package/lib/Select/rc-select/hooks/useSelectTriggerControl.js +0 -54
  788. package/lib/Select/rc-select/index.d.ts +0 -10
  789. package/lib/Select/rc-select/index.js +0 -45
  790. package/lib/Select/rc-select/interface.d.ts +0 -10
  791. package/lib/Select/rc-select/interface.js +0 -5
  792. package/lib/Select/rc-select/utils/commonUtil.d.ts +0 -4
  793. package/lib/Select/rc-select/utils/commonUtil.js +0 -23
  794. package/lib/Select/rc-select/utils/keyUtil.d.ts +0 -2
  795. package/lib/Select/rc-select/utils/keyUtil.js +0 -17
  796. package/lib/Select/rc-select/utils/legacyUtil.d.ts +0 -3
  797. package/lib/Select/rc-select/utils/legacyUtil.js +0 -73
  798. package/lib/Select/rc-select/utils/platformUtil.d.ts +0 -1
  799. package/lib/Select/rc-select/utils/platformUtil.js +0 -11
  800. package/lib/Select/rc-select/utils/valueUtil.d.ts +0 -22
  801. package/lib/Select/rc-select/utils/valueUtil.js +0 -172
  802. package/lib/Select/rc-select/utils/warningPropsUtil.d.ts +0 -3
  803. package/lib/Select/rc-select/utils/warningPropsUtil.js +0 -132
  804. package/lib/Select/style/index.d.ts +0 -3
  805. package/lib/Select/style/index.js +0 -7
  806. package/lib/Select/style/index.less +0 -340
  807. package/lib/Select/style/multiple.less +0 -222
  808. package/lib/Select/style/rtl.less +0 -168
  809. package/lib/Select/style/select.less +0 -337
  810. package/lib/Select/style/single.less +0 -179
  811. package/lib/Select/style/status.less +0 -48
  812. package/lib/Select/style/variables.less +0 -67
  813. package/lib/Select/style/variables.less.d.ts +0 -190
  814. package/lib/Select/utils/iconUtil.d.ts +0 -24
  815. package/lib/Select/utils/iconUtil.js +0 -108
  816. package/lib/Skeleton/index.d.ts +0 -3
  817. package/lib/Skeleton/index.js +0 -13
  818. package/lib/Skeleton/style/index.d.ts +0 -2
  819. package/lib/Skeleton/style/index.js +0 -5
  820. package/lib/Skeleton/style/index.less +0 -1
  821. package/lib/Space/index.d.ts +0 -4
  822. package/lib/Space/index.js +0 -17
  823. package/lib/Space/style/index.d.ts +0 -2
  824. package/lib/Space/style/index.js +0 -5
  825. package/lib/Space/style/index.less +0 -1
  826. package/lib/Spin/index.d.ts +0 -4
  827. package/lib/Spin/index.js +0 -13
  828. package/lib/Spin/style/index.d.ts +0 -2
  829. package/lib/Spin/style/index.js +0 -5
  830. package/lib/Spin/style/index.less +0 -1
  831. package/lib/Steps/components/ProcessIcon/index.d.ts +0 -6
  832. package/lib/Steps/components/ProcessIcon/index.js +0 -19
  833. package/lib/Steps/components/Step/index.d.ts +0 -20
  834. package/lib/Steps/components/Step/index.js +0 -61
  835. package/lib/Steps/index.d.ts +0 -37
  836. package/lib/Steps/index.js +0 -46
  837. package/lib/Steps/matchMedia.mock.d.ts +0 -1
  838. package/lib/Steps/matchMedia.mock.js +0 -17
  839. package/lib/Steps/style/index.d.ts +0 -2
  840. package/lib/Steps/style/index.js +0 -5
  841. package/lib/Steps/style/index.less +0 -258
  842. package/lib/Switch/index.d.ts +0 -48
  843. package/lib/Switch/index.js +0 -90
  844. package/lib/Switch/style/index.d.ts +0 -2
  845. package/lib/Switch/style/index.js +0 -5
  846. package/lib/Switch/style/index.less +0 -130
  847. package/lib/Table/Table.d.ts +0 -6
  848. package/lib/Table/Table.js +0 -419
  849. package/lib/Table/components/Empty/index.d.ts +0 -3
  850. package/lib/Table/components/Empty/index.js +0 -28
  851. package/lib/Table/components/Loading/index.d.ts +0 -3
  852. package/lib/Table/components/Loading/index.js +0 -31
  853. package/lib/Table/components/TableBodyRowList/index.d.ts +0 -13
  854. package/lib/Table/components/TableBodyRowList/index.js +0 -110
  855. package/lib/Table/components/TableHead/index.d.ts +0 -22
  856. package/lib/Table/components/TableHead/index.js +0 -285
  857. package/lib/Table/constant.d.ts +0 -1
  858. package/lib/Table/constant.js +0 -1
  859. package/lib/Table/hooks/useFrame.d.ts +0 -7
  860. package/lib/Table/hooks/useFrame.js +0 -98
  861. package/lib/Table/index.d.ts +0 -2
  862. package/lib/Table/index.js +0 -13
  863. package/lib/Table/interface.d.ts +0 -41
  864. package/lib/Table/interface.js +0 -5
  865. package/lib/Table/react-table-config.d.ts +0 -122
  866. package/lib/Table/style/index.d.ts +0 -2
  867. package/lib/Table/style/index.js +0 -5
  868. package/lib/Table/style/index.less +0 -238
  869. package/lib/Table/style/variable.less +0 -5
  870. package/lib/Table/style/variable.less.d.ts +0 -7
  871. package/lib/Table/utils.d.ts +0 -15
  872. package/lib/Table/utils.js +0 -154
  873. package/lib/Tabs/TabPane.d.ts +0 -21
  874. package/lib/Tabs/TabPane.js +0 -18
  875. package/lib/Tabs/index.d.ts +0 -47
  876. package/lib/Tabs/index.js +0 -64
  877. package/lib/Tabs/style/index.d.ts +0 -3
  878. package/lib/Tabs/style/index.js +0 -7
  879. package/lib/Tabs/style/index.less +0 -166
  880. package/lib/Tooltip/index.d.ts +0 -63
  881. package/lib/Tooltip/index.js +0 -44
  882. package/lib/Tooltip/style/index.d.ts +0 -2
  883. package/lib/Tooltip/style/index.js +0 -5
  884. package/lib/Tooltip/style/index.less +0 -15
  885. package/lib/Tree/index.d.ts +0 -5
  886. package/lib/Tree/index.js +0 -13
  887. package/lib/Tree/style/index.d.ts +0 -2
  888. package/lib/Tree/style/index.js +0 -5
  889. package/lib/Tree/style/index.less +0 -1
  890. package/lib/Typography/index.d.ts +0 -3
  891. package/lib/Typography/index.js +0 -15
  892. package/lib/Typography/style/index.d.ts +0 -2
  893. package/lib/Typography/style/index.js +0 -5
  894. package/lib/Typography/style/index.less +0 -1
  895. package/lib/Upload/index.d.ts +0 -4
  896. package/lib/Upload/index.js +0 -15
  897. package/lib/Upload/style/index.d.ts +0 -2
  898. package/lib/Upload/style/index.js +0 -5
  899. package/lib/Upload/style/index.less +0 -1
  900. package/lib/_utils/hooks/useControlledState.d.ts +0 -2
  901. package/lib/_utils/hooks/useControlledState.js +0 -63
  902. package/lib/_utils/hooks/useId.d.ts +0 -4
  903. package/lib/_utils/hooks/useId.js +0 -36
  904. package/lib/_utils/hooks/usePrefixCls.d.ts +0 -2
  905. package/lib/_utils/hooks/usePrefixCls.js +0 -27
  906. package/lib/index.d.ts +0 -81
  907. package/lib/index.js +0 -335
  908. package/lib/locale/default.d.ts +0 -2
  909. package/lib/locale/default.js +0 -13
  910. package/lib/locale/en_US.d.ts +0 -3
  911. package/lib/locale/en_US.js +0 -146
  912. package/lib/locale/zh_CN.d.ts +0 -3
  913. package/lib/locale/zh_CN.js +0 -145
  914. package/lib/locale-provider/LocaleReceiver.d.ts +0 -4
  915. package/lib/locale-provider/LocaleReceiver.js +0 -23
  916. package/lib/locale-provider/context.d.ts +0 -7
  917. package/lib/locale-provider/context.js +0 -12
  918. package/lib/locale-provider/default.d.ts +0 -2
  919. package/lib/locale-provider/default.js +0 -13
  920. package/lib/locale-provider/en_US.d.ts +0 -2
  921. package/lib/locale-provider/en_US.js +0 -13
  922. package/lib/locale-provider/index.d.ts +0 -65
  923. package/lib/locale-provider/index.js +0 -116
  924. package/lib/locale-provider/style/index.d.ts +0 -1
  925. package/lib/locale-provider/style/index.js +0 -3
  926. package/lib/locale-provider/style/index.less +0 -2
  927. package/lib/locale-provider/zh_CN.d.ts +0 -2
  928. package/lib/locale-provider/zh_CN.js +0 -13
  929. package/lib/message/index.d.ts +0 -5
  930. package/lib/message/index.js +0 -15
  931. package/lib/message/style/index.d.ts +0 -2
  932. package/lib/message/style/index.js +0 -5
  933. package/lib/message/style/index.less +0 -1
  934. package/lib/notification/index.d.ts +0 -4
  935. package/lib/notification/index.js +0 -15
  936. package/lib/notification/style/index.d.ts +0 -2
  937. package/lib/notification/style/index.js +0 -5
  938. package/lib/notification/style/index.less +0 -1
  939. package/lib/style/index.d.ts +0 -1
  940. package/lib/style/index.js +0 -3
  941. package/lib/style/index.less +0 -5
  942. package/lib/style/mixins/index.less +0 -8
  943. package/lib/style/themes/default/index.less +0 -36
  944. package/lib/style/themes/default/scrollBar.less +0 -16
  945. package/lib/style/themes/default/themeColor.module.less +0 -445
  946. package/lib/style/themes/default/themeColor.module.less.d.ts +0 -182
  947. /package/{es → dist}/Alert/style/index.d.ts +0 -0
  948. /package/{es → dist}/Alert/style/index.less +0 -0
  949. /package/{es → dist}/Avatar/component/Avatar/index.d.ts +0 -0
  950. /package/{es → dist}/Avatar/index.d.ts +0 -0
  951. /package/{es → dist}/Avatar/style/index.d.ts +0 -0
  952. /package/{es → dist}/Avatar/style/index.less +0 -0
  953. /package/{es → dist}/Breadcrumb/index.d.ts +0 -0
  954. /package/{es → dist}/Breadcrumb/style/index.d.ts +0 -0
  955. /package/{es → dist}/Breadcrumb/style/index.less +0 -0
  956. /package/{es → dist}/Button/style/index.d.ts +0 -0
  957. /package/{es → dist}/Button/style/index.less +0 -0
  958. /package/{es → dist}/Button/style/variables.less +0 -0
  959. /package/{es → dist}/Card/index.d.ts +0 -0
  960. /package/{es → dist}/Card/style/index.d.ts +0 -0
  961. /package/{es → dist}/Card/style/index.less +0 -0
  962. /package/{es → dist}/Checkbox/component/CheckboxGroup/index.d.ts +0 -0
  963. /package/{es → dist}/Checkbox/index.d.ts +0 -0
  964. /package/{es → dist}/Checkbox/style/index.d.ts +0 -0
  965. /package/{es → dist}/Checkbox/style/index.less +0 -0
  966. /package/{es → dist}/Checkbox/type.d.ts +0 -0
  967. /package/{es → dist}/Checkbox/type.js +0 -0
  968. /package/{es → dist}/Col/index.d.ts +0 -0
  969. /package/{es → dist}/Col/style/index.d.ts +0 -0
  970. /package/{es → dist}/Col/style/index.less +0 -0
  971. /package/{es → dist}/ConfigProvider/index.d.ts +0 -0
  972. /package/{es → dist}/ConfigProvider/sizeContext.js +0 -0
  973. /package/{es → dist}/ConfigProvider/style/index.d.ts +0 -0
  974. /package/{es → dist}/ConfigProvider/style/index.less +0 -0
  975. /package/{es → dist}/DatePicker/index.d.ts +0 -0
  976. /package/{es → dist}/DatePicker/style/index.d.ts +0 -0
  977. /package/{es → dist}/DatePicker/style/index.less +0 -0
  978. /package/{es → dist}/Divider/index.d.ts +0 -0
  979. /package/{es → dist}/Divider/style/index.d.ts +0 -0
  980. /package/{es → dist}/Divider/style/index.less +0 -0
  981. /package/{es → dist}/Divider/style/index.less.d.ts +0 -0
  982. /package/{es → dist}/Drawer/index.d.ts +0 -0
  983. /package/{es → dist}/Drawer/style/index.d.ts +0 -0
  984. /package/{es → dist}/Drawer/style/index.less +0 -0
  985. /package/{es → dist}/Dropdown/Button.d.ts +0 -0
  986. /package/{es → dist}/Dropdown/index.d.ts +0 -0
  987. /package/{es/Form → dist/Dropdown}/style/index.d.ts +0 -0
  988. /package/{es → dist}/Dropdown/style/index.less +0 -0
  989. /package/{es → dist}/Empty/style/index.d.ts +0 -0
  990. /package/{es → dist}/Form/index.d.ts +0 -0
  991. /package/{es/InputNumber → dist/Form}/style/index.d.ts +0 -0
  992. /package/{es → dist}/Form/style/index.less +0 -0
  993. /package/{es → dist}/Icon/antdIconfont.d.ts +0 -0
  994. /package/{es → dist}/Icon/antdIconfont.js +0 -0
  995. /package/{es → dist}/Icon/components/Icon.d.ts +0 -0
  996. /package/{es → dist}/Icon/components/createFromScripts.d.ts +0 -0
  997. /package/{es → dist}/Icon/components/createFromScripts.js +0 -0
  998. /package/{es → dist}/Icon/iconSvgs/arrows_right_sm.svg +0 -0
  999. /package/{es → dist}/Icon/icons.d.ts +0 -0
  1000. /package/{es → dist}/Icon/index.d.ts +0 -0
  1001. /package/{es → dist}/Icon/index.less +0 -0
  1002. /package/{es/Icon/style/index.less → dist/Icon/style/index.d.ts} +0 -0
  1003. /package/{lib/Icon/style/index.less → dist/Icon/style/index.js} +0 -0
  1004. /package/{es → dist}/Input/components/Group/index.d.ts +0 -0
  1005. /package/{es → dist}/Input/components/Input/index.d.ts +0 -0
  1006. /package/{es → dist}/Input/components/Password/index.d.ts +0 -0
  1007. /package/{es → dist}/Input/components/TextArea/index.d.ts +0 -0
  1008. /package/{es → dist}/Input/index.d.ts +0 -0
  1009. /package/{es/Layout → dist/Input}/style/index.d.ts +0 -0
  1010. /package/{es → dist}/Input/style/index.less +0 -0
  1011. /package/{es → dist}/InputNumber/index.d.ts +0 -0
  1012. /package/{es/Modal → dist/InputNumber}/style/index.d.ts +0 -0
  1013. /package/{es → dist}/InputNumber/style/index.less +0 -0
  1014. /package/{es → dist}/InputNumber/type.js +0 -0
  1015. /package/{es → dist}/Layout/index.d.ts +0 -0
  1016. /package/{es/Navigator → dist/Layout}/style/index.d.ts +0 -0
  1017. /package/{es → dist}/Layout/style/index.less +0 -0
  1018. /package/{es → dist}/Menu/Divider.d.ts +0 -0
  1019. /package/{es → dist}/Menu/MenuItem.d.ts +0 -0
  1020. /package/{es → dist}/Menu/SubMenu.d.ts +0 -0
  1021. /package/{es/PageHeader → dist/Menu}/style/index.d.ts +0 -0
  1022. /package/{es → dist}/Modal/locale.d.ts +0 -0
  1023. /package/{es/Popconfirm → dist/Modal}/style/index.d.ts +0 -0
  1024. /package/{es → dist}/Navigator/components/Header/index.d.ts +0 -0
  1025. /package/{es → dist}/Navigator/components/Header/index.js +0 -0
  1026. /package/{es → dist}/Navigator/components/Menu/index.d.ts +0 -0
  1027. /package/{es → dist}/Navigator/components/MenuItem/index.d.ts +0 -0
  1028. /package/{es → dist}/Navigator/components/MenuItem/index.js +0 -0
  1029. /package/{es → dist}/Navigator/index.d.ts +0 -0
  1030. /package/{es → dist}/Navigator/style/bg.png +0 -0
  1031. /package/{es/Popover → dist/Navigator}/style/index.d.ts +0 -0
  1032. /package/{es → dist}/Navigator/style/index.less +0 -0
  1033. /package/{es/Progress → dist/Popconfirm}/style/index.d.ts +0 -0
  1034. /package/{es → dist}/Popover/index.d.ts +0 -0
  1035. /package/{es/Radio → dist/Popover}/style/index.d.ts +0 -0
  1036. /package/{es → dist}/Popover/style/index.less +0 -0
  1037. /package/{es → dist}/Progress/index.d.ts +0 -0
  1038. /package/{es/Row → dist/Progress}/style/index.d.ts +0 -0
  1039. /package/{es/PageHeader → dist/Progress}/style/index.less +0 -0
  1040. /package/{es → dist}/Radio/components/Group/index.js +0 -0
  1041. /package/{es → dist}/Radio/components/Radio/index.d.ts +0 -0
  1042. /package/{es → dist}/Radio/index.d.ts +0 -0
  1043. /package/{es → dist}/Radio/interface/radio.d.ts +0 -0
  1044. /package/{es → dist}/Radio/interface/radio.js +0 -0
  1045. /package/{es → dist}/Radio/interface/radioGroup.d.ts +0 -0
  1046. /package/{es → dist}/Radio/interface/radioGroup.js +0 -0
  1047. /package/{es/Skeleton → dist/Radio}/style/index.d.ts +0 -0
  1048. /package/{es → dist}/Radio/style/index.less +0 -0
  1049. /package/{es → dist}/Row/index.d.ts +0 -0
  1050. /package/{es/Space → dist/Row}/style/index.d.ts +0 -0
  1051. /package/{es/Popconfirm → dist/Row}/style/index.less +0 -0
  1052. /package/{es/Spin → dist/Select}/style/index.d.ts +0 -0
  1053. /package/{es → dist}/Skeleton/index.d.ts +0 -0
  1054. /package/{es/Steps → dist/Skeleton}/style/index.d.ts +0 -0
  1055. /package/{es/Progress → dist/Skeleton}/style/index.less +0 -0
  1056. /package/{es → dist}/Space/index.d.ts +0 -0
  1057. /package/{es/Switch → dist/Space}/style/index.d.ts +0 -0
  1058. /package/{es/Row → dist/Space}/style/index.less +0 -0
  1059. /package/{es/Table → dist/Spin}/style/index.d.ts +0 -0
  1060. /package/{es → dist}/Steps/components/Step/index.d.ts +0 -0
  1061. /package/{es/Tooltip → dist/Steps}/style/index.d.ts +0 -0
  1062. /package/{es → dist}/Switch/index.d.ts +0 -0
  1063. /package/{es/Tree → dist/Switch}/style/index.d.ts +0 -0
  1064. /package/{es → dist}/Switch/style/index.less +0 -0
  1065. /package/{es → dist}/Table/Table.d.ts +0 -0
  1066. /package/{es → dist}/Table/components/Empty/index.d.ts +0 -0
  1067. /package/{es → dist}/Table/components/Loading/index.d.ts +0 -0
  1068. /package/{es → dist}/Table/components/TableBodyRowList/index.d.ts +0 -0
  1069. /package/{es → dist}/Table/components/TableHead/index.d.ts +0 -0
  1070. /package/{es → dist}/Table/hooks/useFrame.d.ts +0 -0
  1071. /package/{es → dist}/Table/index.d.ts +0 -0
  1072. /package/{es → dist}/Table/interface.d.ts +0 -0
  1073. /package/{es/Select/rc-select → dist/Table}/interface.js +0 -0
  1074. /package/{es → dist}/Table/react-table-config.d.ts +0 -0
  1075. /package/{es/Typography → dist/Table}/style/index.d.ts +0 -0
  1076. /package/{es → dist}/Tabs/TabPane.d.ts +0 -0
  1077. /package/{es → dist}/Tabs/index.d.ts +0 -0
  1078. /package/{es/Upload → dist/Tabs}/style/index.d.ts +0 -0
  1079. /package/{es → dist}/Tooltip/index.d.ts +0 -0
  1080. /package/{es → dist}/Tooltip/index.js +0 -0
  1081. /package/{es/message → dist/Tooltip}/style/index.d.ts +0 -0
  1082. /package/{es/notification → dist/Tree}/style/index.d.ts +0 -0
  1083. /package/{es → dist}/Typography/index.d.ts +0 -0
  1084. /package/{lib/Alert → dist/Typography}/style/index.d.ts +0 -0
  1085. /package/{es/Skeleton → dist/Typography}/style/index.less +0 -0
  1086. /package/{es → dist}/Upload/index.d.ts +0 -0
  1087. /package/{lib/Avatar → dist/Upload}/style/index.d.ts +0 -0
  1088. /package/{es/Space → dist/Upload}/style/index.less +0 -0
  1089. /package/{es → dist}/_utils/hooks/useControlledState.js +0 -0
  1090. /package/{es → dist}/_utils/hooks/useId.d.ts +0 -0
  1091. /package/{es → dist}/_utils/hooks/useId.js +0 -0
  1092. /package/{es → dist}/locale/default.d.ts +0 -0
  1093. /package/{es → dist}/locale/en_US.d.ts +0 -0
  1094. /package/{es → dist}/locale/en_US.js +0 -0
  1095. /package/{es → dist}/locale/zh_CN.d.ts +0 -0
  1096. /package/{es → dist}/locale/zh_CN.js +0 -0
  1097. /package/{es → dist}/locale-provider/LocaleReceiver.d.ts +0 -0
  1098. /package/{es → dist}/locale-provider/LocaleReceiver.js +0 -0
  1099. /package/{es → dist}/locale-provider/context.js +0 -0
  1100. /package/{es → dist}/locale-provider/default.d.ts +0 -0
  1101. /package/{es → dist}/locale-provider/en_US.d.ts +0 -0
  1102. /package/{es → dist}/locale-provider/style/index.d.ts +0 -0
  1103. /package/{es → dist}/locale-provider/style/index.less +0 -0
  1104. /package/{es → dist}/locale-provider/zh_CN.d.ts +0 -0
  1105. /package/{lib/Breadcrumb → dist/message}/style/index.d.ts +0 -0
  1106. /package/{lib/Button → dist/notification}/style/index.d.ts +0 -0
  1107. /package/{es/Spin → dist/notification}/style/index.less +0 -0
  1108. /package/{es → dist}/style/index.d.ts +0 -0
  1109. /package/{es → dist}/style/mixins/index.less +0 -0
  1110. /package/{es → dist}/style/themes/default/index.less +0 -0
  1111. /package/{es → dist}/style/themes/default/scrollBar.less +0 -0
  1112. /package/{es → dist}/style/themes/default/themeColor.module.less.d.ts +0 -0
@@ -1,419 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
-
10
- var _classnames4 = _interopRequireDefault(require("classnames"));
11
-
12
- var _react = _interopRequireWildcard(require("react"));
13
-
14
- var _usePrefixCls = _interopRequireDefault(require("../_utils/hooks/usePrefixCls"));
15
-
16
- var _rcResizeObserver = _interopRequireDefault(require("rc-resize-observer"));
17
-
18
- var _reactTable = require("react-table");
19
-
20
- var _utils = require("./utils");
21
-
22
- require("./style/index");
23
-
24
- var _message = _interopRequireDefault(require("../message"));
25
-
26
- var _Loading = _interopRequireDefault(require("./components/Loading"));
27
-
28
- var _Empty = _interopRequireDefault(require("./components/Empty"));
29
-
30
- var _TableHead = _interopRequireDefault(require("./components/TableHead"));
31
-
32
- var _TableBodyRowList = _interopRequireDefault(require("./components/TableBodyRowList"));
33
-
34
- var _useFrame = require("./hooks/useFrame");
35
-
36
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
-
38
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
39
-
40
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41
-
42
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
43
-
44
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
45
-
46
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
47
-
48
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
49
-
50
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
51
-
52
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
53
-
54
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
55
-
56
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
57
-
58
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
59
-
60
- var tableHeadRowHeight = 44;
61
- var SCROLLBAR_SIZE = 15;
62
- var ZERO = 0;
63
-
64
- function Table(props, ref) {
65
- var _classnames3;
66
-
67
- var tableKey = props.key,
68
- columns = props.columns,
69
- data = props.data,
70
- onRowSelected = props.onRowSelected,
71
- loadMore = props.loadMore,
72
- loading = props.loading,
73
- hasNextPage = props.hasNextPage,
74
- _props$sortable = props.sortable,
75
- sortable = _props$sortable === void 0 ? false : _props$sortable,
76
- defaultSort = props.defaultSort,
77
- _props$resizeColumn = props.resizeColumn,
78
- resizeColumn = _props$resizeColumn === void 0 ? false : _props$resizeColumn,
79
- allSortDirections = props.sortDirections,
80
- _props$onChange = props.onChange,
81
- onChange = _props$onChange === void 0 ? function () {} : _props$onChange,
82
- _props$scrollThreshol = props.scrollThreshold,
83
- scrollThreshold = _props$scrollThreshol === void 0 ? '150px' : _props$scrollThreshol,
84
- _props$rowClassName = props.rowClassName,
85
- rowClassName = _props$rowClassName === void 0 ? '' : _props$rowClassName,
86
- _props$ellipsis = props.ellipsis,
87
- ellipsis = _props$ellipsis === void 0 ? true : _props$ellipsis,
88
- rowKey = props.rowKey,
89
- height = props.height;
90
-
91
- var _useState = (0, _react.useState)(undefined),
92
- _useState2 = _slicedToArray(_useState, 2),
93
- tableClientWidth = _useState2[0],
94
- setTableClientWidth = _useState2[1];
95
-
96
- var _useState3 = (0, _react.useState)(undefined),
97
- _useState4 = _slicedToArray(_useState3, 2),
98
- tableClientHeight = _useState4[0],
99
- setTableClientHeight = _useState4[1];
100
-
101
- var prefixCls = (0, _usePrefixCls.default)('', 'ald-table');
102
- var tableRef = (0, _react.useRef)(null);
103
- var tableHeadRef = (0, _react.useRef)(null);
104
- var tableBodyRef = (0, _react.useRef)(null);
105
- var columnsWidthMapRef = (0, _react.useRef)();
106
- var columnsTotalWidthRef = (0, _react.useRef)(ZERO);
107
-
108
- var _useState5 = (0, _react.useState)(false),
109
- _useState6 = _slicedToArray(_useState5, 2),
110
- loadMoreLoading = _useState6[0],
111
- setLoadMoreLoading = _useState6[1];
112
-
113
- var lastOffsetLeftRef = (0, _react.useRef)(ZERO);
114
- var lastOffsetTopRef = (0, _react.useRef)(ZERO);
115
-
116
- var _useTimeoutLock = (0, _useFrame.useTimeoutLock)(),
117
- _useTimeoutLock2 = _slicedToArray(_useTimeoutLock, 2),
118
- setScrollTarget = _useTimeoutLock2[0],
119
- getScrollTarget = _useTimeoutLock2[1]; // 初始化进入时 渲染表格容器宽度
120
-
121
-
122
- (0, _react.useEffect)(function () {
123
- if (tableRef.current) {
124
- setTableClientWidth(tableRef.current.clientWidth);
125
- }
126
- }, []); // 转换外部传入的columns
127
-
128
- var newColumns = (0, _react.useMemo)(function () {
129
- if (!tableClientWidth) {
130
- return [];
131
- }
132
-
133
- var _getColumnsWidthMap = (0, _utils.getColumnsWidthMap)(columns, tableClientWidth, columnsWidthMapRef.current),
134
- columnsWidthMap = _getColumnsWidthMap.columnsWidthMap,
135
- totalColumnWidth = _getColumnsWidthMap.totalColumnWidth;
136
-
137
- columnsWidthMapRef.current = columnsWidthMap;
138
- columnsTotalWidthRef.current = totalColumnWidth;
139
- return columns.map(function (column, index) {
140
- var _columnsWidthMapRef$c, _columnsWidthMapRef$c2;
141
-
142
- var key = index.toString(); // 不设置dataIndex同时进行排序 则报错
143
-
144
- if (column.dataIndex === undefined && sortable) {
145
- _message.default.error('不支持未设置dataIndex时进行排序设置');
146
- }
147
-
148
- return _objectSpread(_objectSpread({}, column), {}, {
149
- width: (_columnsWidthMapRef$c = columnsWidthMapRef.current) === null || _columnsWidthMapRef$c === void 0 ? void 0 : (_columnsWidthMapRef$c2 = _columnsWidthMapRef$c.get(key)) === null || _columnsWidthMapRef$c2 === void 0 ? void 0 : _columnsWidthMapRef$c2.width,
150
- Header: column.title ? column.title : function () {
151
- return /*#__PURE__*/_react.default.createElement("span", null, "\xA0");
152
- },
153
- disableSortBy: !sortable || typeof column.sorter === 'boolean',
154
- accessor: column.dataIndex,
155
- Cell: function Cell(_ref) {
156
- var row = _ref.row,
157
- value = _ref.value;
158
- return typeof column.render === 'function' ? column.render(value, row.original, row.index) : value;
159
- }
160
- });
161
- });
162
- }, [columns, sortable, tableClientWidth]); // 将rowId转为React Table支持的值
163
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
164
-
165
- var transformRowId = function transformRowId(row, relativeIndex, parent) {
166
- if (rowKey && parent) {
167
- if (typeof rowKey === 'string') {
168
- return [rowKey, relativeIndex].join('.');
169
- }
170
-
171
- if (typeof rowKey === 'function') {
172
- return [rowKey(row), relativeIndex].join('.');
173
- }
174
- }
175
-
176
- return relativeIndex.toString();
177
- };
178
- /**
179
- * 计算初始传递给 React Table的排序字段
180
- * 1. 不存在 sortable 或者存在loadMore(内部滚动时),不进行排序操作防止内部滚动时冲突;
181
- * 2. 存在默认排序以及默认排序规则,以默认为准
182
- * 3. 如果给了排序但没有默认,则按第一行排序
183
- * @returns
184
- */
185
-
186
-
187
- var getTableInitSort = function getTableInitSort() {
188
- var EMPTY_SIZE = 0;
189
-
190
- if (!sortable || loadMore || newColumns.length === EMPTY_SIZE) {
191
- return [];
192
- }
193
-
194
- if (defaultSort && defaultSort.id) {
195
- return [defaultSort];
196
- }
197
-
198
- var firstColumnSortData = {
199
- id: newColumns[ZERO].accessor,
200
- desc: !!(newColumns[ZERO].sortOrder && newColumns[ZERO].sortOrder === 'descend')
201
- };
202
-
203
- if (firstColumnSortData.id) {
204
- return [firstColumnSortData];
205
- }
206
-
207
- return [];
208
- };
209
-
210
- var _useTable = (0, _reactTable.useTable)({
211
- columns: newColumns,
212
- data: data,
213
- disableMultiSort: true,
214
- disableSortBy: !sortable,
215
- getRowId: transformRowId,
216
- initialState: {
217
- sortBy: getTableInitSort()
218
- }
219
- }, _reactTable.useBlockLayout, _reactTable.useSortBy, _reactTable.useRowSelect, _reactTable.useResizeColumns),
220
- getTableProps = _useTable.getTableProps,
221
- getTableBodyProps = _useTable.getTableBodyProps,
222
- headerGroups = _useTable.headerGroups,
223
- rows = _useTable.rows,
224
- prepareRow = _useTable.prepareRow,
225
- setSortBy = _useTable.setSortBy;
226
-
227
- var scrollToTop = function scrollToTop() {
228
- var INITIAL_OFFSET_TOP = 0;
229
-
230
- if (tableBodyRef && tableBodyRef.current) {
231
- tableBodyRef.current.scrollTop = INITIAL_OFFSET_TOP;
232
- }
233
- };
234
-
235
- _react.default.useImperativeHandle(ref, function () {
236
- return {
237
- backToTop: function backToTop() {
238
- scrollToTop();
239
- }
240
- };
241
- });
242
-
243
- var tableHeadNode = /*#__PURE__*/_react.default.createElement(_TableHead.default, {
244
- canResizeColumn: resizeColumn,
245
- headerGroups: headerGroups,
246
- // tableContentWidth={columnsTotalWidthRef.current}
247
- defaultSort: defaultSort,
248
- sortable: sortable,
249
- columns: newColumns,
250
- sortDirections: allSortDirections,
251
- setSortBy: setSortBy,
252
- onChange: onChange,
253
- columnsWidthMapRef: columnsWidthMapRef,
254
- columnsTotalWidthRef: columnsTotalWidthRef
255
- });
256
-
257
- var tableRowListNode = /*#__PURE__*/_react.default.createElement(_TableBodyRowList.default, {
258
- data: data,
259
- rows: rows,
260
- prepareRow: prepareRow,
261
- columnsTotalWidthRef: columnsTotalWidthRef,
262
- rowClassName: rowClassName,
263
- ellipsis: ellipsis,
264
- onRowSelected: onRowSelected
265
- }); // 渲染没有设置高度的表格
266
-
267
-
268
- var renderTableWithoutHeight = function renderTableWithoutHeight() {
269
- var renderNoHeightTableBody = function renderNoHeightTableBody() {
270
- if (loading && !rows.length) {
271
- return /*#__PURE__*/_react.default.createElement(_Loading.default, null);
272
- }
273
-
274
- if (!loading && !rows.length) {
275
- return /*#__PURE__*/_react.default.createElement(_Empty.default, null);
276
- }
277
-
278
- return /*#__PURE__*/_react.default.createElement("div", {
279
- className: "".concat(prefixCls, "-list")
280
- }, tableRowListNode);
281
- };
282
-
283
- return /*#__PURE__*/_react.default.createElement("div", {
284
- className: (0, _classnames4.default)("".concat(prefixCls, "-inner-wrap"))
285
- }, tableHeadNode, /*#__PURE__*/_react.default.createElement("div", Object.assign({}, getTableBodyProps(), {
286
- className: (0, _classnames4.default)("".concat(prefixCls, "-tbody")),
287
- style: {
288
- width: columnsTotalWidthRef.current
289
- }
290
- }), renderNoHeightTableBody()));
291
- };
292
-
293
- var forceScroll = (0, _react.useCallback)(function (scrollLeftNum, target) {
294
- if (!target) {
295
- return;
296
- }
297
-
298
- if (typeof target === 'function') {
299
- target(scrollLeftNum);
300
- } else if (target.scrollLeft !== scrollLeftNum) {
301
- // eslint-disable-next-line no-param-reassign
302
- target.scrollLeft = scrollLeftNum;
303
- }
304
- }, []); // 内部滚动时 纵向的滚动
305
-
306
- var onBodyVerticalScroll = (0, _react.useCallback)(function (target) {
307
- if (!tableClientHeight) {
308
- return;
309
- }
310
-
311
- var scrollHeight = target.scrollHeight,
312
- clientHeight = target.clientHeight,
313
- scrollTop = target.scrollTop;
314
- var currentPosToBottomGap = scrollHeight - clientHeight - scrollTop; // 当前滚动条到底部的距离
315
-
316
- var scrollThresholdValue = (0, _utils.getValidScrollThreshold)(scrollThreshold, tableClientHeight);
317
-
318
- if (currentPosToBottomGap < scrollThresholdValue && hasNextPage && !loadMoreLoading) {
319
- var _loadMore;
320
-
321
- setLoadMoreLoading(true);
322
- (_loadMore = loadMore()) === null || _loadMore === void 0 ? void 0 : _loadMore.then(function () {
323
- setLoadMoreLoading(false);
324
- });
325
- }
326
-
327
- lastOffsetTopRef.current = scrollTop;
328
- }, [hasNextPage, loadMore, loadMoreLoading, scrollThreshold, tableClientHeight]); // 内部滚动 对于滚动的处理
329
-
330
- var onBodyScroll = (0, _react.useCallback)(function (e) {
331
- var currentTarget = e.target;
332
-
333
- if (!currentTarget) {
334
- return;
335
- }
336
-
337
- var scrollLeftNum = currentTarget.scrollLeft;
338
- var scrollTopNum = currentTarget.scrollTop; // 纵向滚动
339
-
340
- if (scrollTopNum !== lastOffsetLeftRef.current) {
341
- onBodyVerticalScroll(currentTarget);
342
- }
343
-
344
- if (scrollLeftNum === lastOffsetLeftRef.current) {
345
- return;
346
- }
347
-
348
- var compareTarget = currentTarget; // 横向滚动
349
-
350
- if (!getScrollTarget() || getScrollTarget() === compareTarget) {
351
- setScrollTarget(compareTarget);
352
- forceScroll(scrollLeftNum, tableBodyRef.current);
353
- forceScroll(scrollLeftNum, tableHeadRef.current);
354
- lastOffsetLeftRef.current = scrollLeftNum;
355
- }
356
- }, [forceScroll, getScrollTarget, onBodyVerticalScroll, setScrollTarget]);
357
- (0, _react.useEffect)(function () {
358
- if (!hasNextPage) {
359
- setLoadMoreLoading(false);
360
- }
361
- }, [hasNextPage]); // 渲染有设置高度的表格
362
-
363
- var renderTableWithHeight = function renderTableWithHeight() {
364
- if (!tableClientWidth || !tableClientHeight) {
365
- return null;
366
- }
367
-
368
- var renderNoHeightTableBody = function renderNoHeightTableBody() {
369
- if (loading && !rows.length) {
370
- return /*#__PURE__*/_react.default.createElement(_Loading.default, null);
371
- }
372
-
373
- if (!loading && !rows.length) {
374
- return /*#__PURE__*/_react.default.createElement(_Empty.default, null);
375
- }
376
-
377
- return /*#__PURE__*/_react.default.createElement("div", {
378
- style: {
379
- overflow: 'overlay',
380
- overflowX: tableClientWidth + SCROLLBAR_SIZE > columnsTotalWidthRef.current ? 'hidden' : 'unset',
381
- height: tableClientHeight - tableHeadRowHeight
382
- },
383
- ref: tableBodyRef,
384
- onScroll: onBodyScroll
385
- }, tableRowListNode, loadMoreLoading && /*#__PURE__*/_react.default.createElement(_Loading.default, null));
386
- };
387
-
388
- return /*#__PURE__*/_react.default.createElement("div", {
389
- className: (0, _classnames4.default)("".concat(prefixCls, "-inner-wrap"), _defineProperty({}, "".concat(prefixCls, "-innerScroll"), !!height))
390
- }, /*#__PURE__*/_react.default.createElement("div", {
391
- ref: tableHeadRef,
392
- className: "".concat(prefixCls, "-tableHeadScrollWrap")
393
- }, tableHeadNode), /*#__PURE__*/_react.default.createElement("div", Object.assign({}, getTableBodyProps(), {
394
- className: (0, _classnames4.default)("".concat(prefixCls, "-tbody"), _defineProperty({}, "".concat(prefixCls, "-tbody-innerScroll"), !!height))
395
- }), renderNoHeightTableBody()));
396
- };
397
-
398
- return /*#__PURE__*/_react.default.createElement("div", {
399
- key: tableKey,
400
- className: prefixCls,
401
- ref: tableRef,
402
- style: {
403
- height: !height ? 'unset' : height
404
- }
405
- }, /*#__PURE__*/_react.default.createElement(_rcResizeObserver.default, {
406
- onResize: function onResize(_ref2) {
407
- var clientWidth = _ref2.width,
408
- clientHeight = _ref2.height;
409
- setTableClientWidth(clientWidth);
410
- setTableClientHeight(clientHeight);
411
- }
412
- }, !tableClientWidth ? null : /*#__PURE__*/_react.default.createElement("div", Object.assign({}, getTableProps(), {
413
- className: (0, _classnames4.default)("".concat(prefixCls, "-table-wrap"), (_classnames3 = {}, _defineProperty(_classnames3, "".concat(prefixCls, "-init-loading"), data.length === ZERO && loading), _defineProperty(_classnames3, "".concat(prefixCls, "-empty"), data.length === ZERO && loading), _classnames3))
414
- }), height ? renderTableWithHeight() : renderTableWithoutHeight())));
415
- }
416
-
417
- var _default = /*#__PURE__*/_react.default.forwardRef(Table);
418
-
419
- exports.default = _default;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function LoadingNode(): JSX.Element;
3
- export default LoadingNode;
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _usePrefixCls = _interopRequireDefault(require("../../../_utils/hooks/usePrefixCls"));
11
-
12
- var _Empty = _interopRequireDefault(require("../../../Empty"));
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
- function LoadingNode() {
17
- var prefixCls = (0, _usePrefixCls.default)('', 'ald-table');
18
- return /*#__PURE__*/_react.default.createElement("div", {
19
- className: "".concat(prefixCls, "-empty-icon")
20
- }, /*#__PURE__*/_react.default.createElement(_Empty.default, {
21
- title: "No Data",
22
- size: "large",
23
- image: _Empty.default.PRESENTED_IMAGE_SIMPLE
24
- }));
25
- }
26
-
27
- var _default = LoadingNode;
28
- exports.default = _default;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function LoadingNode(): JSX.Element;
3
- export default LoadingNode;
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- require("@aloudata/icons-react/styles/index.less");
9
-
10
- var _LoadingLine2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/LoadingLine"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _usePrefixCls = _interopRequireDefault(require("../../../_utils/hooks/usePrefixCls"));
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- function LoadingNode() {
19
- var prefixCls = (0, _usePrefixCls.default)('', 'ald-table');
20
- return /*#__PURE__*/_react.default.createElement("div", {
21
- className: "".concat(prefixCls, "-loading")
22
- }, /*#__PURE__*/_react.default.createElement(_LoadingLine2.default, {
23
- size: 16,
24
- fill: "currentColor",
25
- spin: true,
26
- className: "".concat(prefixCls, "-loading-icon")
27
- }), "Loading");
28
- }
29
-
30
- var _default = LoadingNode;
31
- exports.default = _default;
@@ -1,13 +0,0 @@
1
- import { MutableRefObject } from 'react';
2
- import { Row } from 'react-table';
3
- interface ITableBodyRowListProps<T extends object> {
4
- data: T[];
5
- rows: Row<T>[];
6
- prepareRow: (row: Row<T>) => void;
7
- columnsTotalWidthRef: MutableRefObject<number>;
8
- rowClassName?: string;
9
- ellipsis?: boolean;
10
- onRowSelected?: (row: T) => void;
11
- }
12
- declare function TableBodyRowList<T extends object>(props: ITableBodyRowListProps<T>): JSX.Element;
13
- export default TableBodyRowList;
@@ -1,110 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _usePrefixCls = _interopRequireDefault(require("../../../_utils/hooks/usePrefixCls"));
13
-
14
- var _classnames2 = _interopRequireDefault(require("classnames"));
15
-
16
- var _utils = require("../../utils");
17
-
18
- var _excluded = ["style"];
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
-
24
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
-
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
-
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
-
30
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
-
32
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
33
-
34
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
35
-
36
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
37
-
38
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39
-
40
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
41
-
42
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
43
-
44
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
45
-
46
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
47
-
48
- function TableBodyRowList(props) {
49
- var _props$ellipsis = props.ellipsis,
50
- ellipsis = _props$ellipsis === void 0 ? true : _props$ellipsis,
51
- data = props.data,
52
- rows = props.rows,
53
- prepareRow = props.prepareRow,
54
- columnsTotalWidthRef = props.columnsTotalWidthRef,
55
- _props$rowClassName = props.rowClassName,
56
- rowClassName = _props$rowClassName === void 0 ? '' : _props$rowClassName,
57
- onRowSelected = props.onRowSelected;
58
-
59
- var _useState = (0, _react.useState)(null),
60
- _useState2 = _slicedToArray(_useState, 2),
61
- selectedRowId = _useState2[0],
62
- setSelectedRowId = _useState2[1];
63
-
64
- var prefixCls = (0, _usePrefixCls.default)('', 'ald-table');
65
- var onRowClick = (0, _react.useCallback)(function (row) {
66
- if (!onRowSelected) {
67
- return;
68
- }
69
-
70
- setSelectedRowId(row.id);
71
- onRowSelected(row.original);
72
- }, [onRowSelected, setSelectedRowId]);
73
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, data.map(function (item, index) {
74
- var _classnames;
75
-
76
- var row = rows[index];
77
- prepareRow(row);
78
-
79
- var _row$getRowProps = row.getRowProps(),
80
- rowStyle = _row$getRowProps.style,
81
- rowProps = _objectWithoutProperties(_row$getRowProps, _excluded);
82
-
83
- return /*#__PURE__*/_react.default.createElement("div", Object.assign({}, rowProps, {
84
- style: _objectSpread(_objectSpread({}, rowStyle), {}, {
85
- width: columnsTotalWidthRef.current
86
- }),
87
- className: (0, _classnames2.default)("".concat(prefixCls, "-row"), (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-row-selected"), row.id === selectedRowId), _defineProperty(_classnames, rowClassName, rowClassName), _defineProperty(_classnames, "".concat(prefixCls, "-row-ellipsis"), ellipsis), _classnames)),
88
- onClick: function onClick() {
89
- return onRowClick(row);
90
- },
91
- key: row.id
92
- }), row.cells.map(function (cell) {
93
- var _cell$getCellProps$st, _cell$getCellProps$st2;
94
-
95
- var currentRenderWidth = Number((_cell$getCellProps$st = cell.getCellProps().style) === null || _cell$getCellProps$st === void 0 ? void 0 : (_cell$getCellProps$st2 = _cell$getCellProps$st.width) === null || _cell$getCellProps$st2 === void 0 ? void 0 : _cell$getCellProps$st2.toString().replace('px', '')); // 表格内置计算的宽度 'px'
96
-
97
- return /*#__PURE__*/_react.default.createElement("div", Object.assign({}, cell.getCellProps(), {
98
- className: (0, _classnames2.default)("".concat(prefixCls, "-cell")),
99
- style: {
100
- width: (0, _utils.getValidWidthByNumber)(currentRenderWidth)
101
- }
102
- }), /*#__PURE__*/_react.default.createElement("div", {
103
- className: (0, _classnames2.default)("".concat(prefixCls, "-cell-container"))
104
- }, cell.render('Cell')));
105
- }));
106
- }));
107
- }
108
-
109
- var _default = TableBodyRowList;
110
- exports.default = _default;
@@ -1,22 +0,0 @@
1
- import { MutableRefObject } from 'react';
2
- import { HeaderGroup, SortingRule } from 'react-table';
3
- import { ISort, TSortOrder } from '../../interface';
4
- import { IWidthDetail } from '../../utils';
5
- interface ITableWithoutHeightProps<T extends object = {}> {
6
- headerGroups: HeaderGroup<T>[];
7
- canResizeColumn?: boolean;
8
- defaultSort?: ISort<T>;
9
- sortable?: boolean;
10
- columns?: {
11
- sortOrder?: TSortOrder;
12
- accessor: string;
13
- sorter?: boolean | 'string' | 'number' | 'basic' | 'datetime' | 'alphanumeric';
14
- }[];
15
- sortDirections?: Array<'ascend' | 'descend'>;
16
- setSortBy: (sortBy: SortingRule<T>[]) => void;
17
- onChange?: (sort: ISort<T>) => void;
18
- columnsWidthMapRef: MutableRefObject<Map<string, IWidthDetail> | undefined>;
19
- columnsTotalWidthRef: MutableRefObject<number>;
20
- }
21
- declare function TableHead<T extends object = {}>(props: ITableWithoutHeightProps<T>): JSX.Element;
22
- export default TableHead;