@teamix/pro 1.6.0-beta.4 → 1.6.0-beta.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (536) hide show
  1. package/README.md +1 -1
  2. package/dist/pro.all.min.css +1 -0
  3. package/dist/pro.css +1 -1
  4. package/dist/pro.js +23217 -12214
  5. package/dist/pro.min.css +1 -1
  6. package/dist/pro.min.js +1 -1
  7. package/dist/pro.xconsole.min.css +1 -0
  8. package/es/actions/base.d.ts +24 -0
  9. package/es/actions/base.js +1 -1
  10. package/es/actions/confirm.d.ts +7 -0
  11. package/es/actions/danger-confirm.d.ts +7 -0
  12. package/es/actions/danger-pop-confirm.d.ts +5 -0
  13. package/es/actions/dialog-component.d.ts +10 -0
  14. package/es/actions/dialog-component.js +4 -1
  15. package/es/actions/dialog-form.d.ts +29 -0
  16. package/es/actions/dialog-form.js +8 -8
  17. package/es/actions/dialog-info.d.ts +9 -0
  18. package/es/actions/dialog-table.d.ts +9 -0
  19. package/es/actions/dialog.d.ts +40 -0
  20. package/es/actions/dialog.js +8 -7
  21. package/es/actions/drawer-form.d.ts +6 -0
  22. package/es/actions/drawer-info.d.ts +6 -0
  23. package/es/actions/drawer-table.d.ts +6 -0
  24. package/es/actions/drawer.d.ts +6 -0
  25. package/es/actions/error.d.ts +7 -0
  26. package/es/actions/index.d.ts +114 -0
  27. package/es/actions/index.js +51 -44
  28. package/es/actions/index.scss +6 -1
  29. package/es/actions/link.d.ts +8 -0
  30. package/es/actions/link.js +4 -3
  31. package/es/actions/notice.d.ts +7 -0
  32. package/es/actions/pop-confirm.d.ts +9 -0
  33. package/es/actions/quick.d.ts +2 -0
  34. package/es/actions/quick.js +26 -0
  35. package/es/actions/request.d.ts +9 -0
  36. package/es/actions/request.js +4 -3
  37. package/es/actions/utils.d.ts +1 -0
  38. package/es/card/card-container.d.ts +18 -0
  39. package/es/card/card-container.js +5 -12
  40. package/es/card/divider.d.ts +6 -0
  41. package/es/card/divider.js +4 -2
  42. package/es/card/index.d.ts +109 -0
  43. package/es/card/index.js +11 -22
  44. package/es/card/index.scss +15 -0
  45. package/es/card/selectable.d.ts +13 -0
  46. package/es/card/selectable.js +4 -2
  47. package/es/card/tab.d.ts +6 -0
  48. package/es/card/tab.js +4 -2
  49. package/es/card/utils.d.ts +9 -0
  50. package/es/card/xconsole.scss +3 -0
  51. package/es/field/index.d.ts +3 -0
  52. package/es/form/Components/Editable/index.d.ts +20 -0
  53. package/es/form/Components/Editable/index.js +2 -2
  54. package/es/form/Components/FormGroup/index.d.ts +14 -0
  55. package/es/form/Components/FormGroup/index.js +3 -4
  56. package/es/form/Components/LightFilter/componentMap.d.ts +3 -0
  57. package/es/form/Components/LightFilter/index.d.ts +17 -0
  58. package/es/form/Components/LightFilter/index.js +2 -11
  59. package/es/form/Components/ProField/index.d.ts +2 -0
  60. package/es/form/Components/ProField/index.js +4 -2
  61. package/es/form/Components/ProField/mapDateFormat.d.ts +3 -0
  62. package/es/form/Components/Text/index.d.ts +8 -0
  63. package/es/form/Components/Text/index.js +4 -2
  64. package/es/form/Filter/AdvancedFilter.d.ts +7 -0
  65. package/es/form/Filter/AdvancedFilter.js +14 -16
  66. package/es/form/Filter/Layout.d.ts +5 -0
  67. package/es/form/Filter/LightFilter.d.ts +7 -0
  68. package/es/form/Filter/LightFilter.js +9 -13
  69. package/es/form/Filter/SimpleFilter.d.ts +7 -0
  70. package/es/form/Filter/SimpleFilter.js +5 -8
  71. package/es/form/Filter/index.d.ts +9 -0
  72. package/es/form/Filter/index.js +19 -25
  73. package/es/form/Filter/index.scss +1 -0
  74. package/es/form/Filter/index2.d.ts +13 -0
  75. package/es/form/Filter/index2.js +17 -22
  76. package/es/form/Filter/index2.scss +1 -0
  77. package/es/form/Filter/useBindUrl.d.ts +2 -0
  78. package/es/form/Filter/useBindUrl.js +0 -3
  79. package/es/form/Filter/useSpecialProps.d.ts +6 -0
  80. package/es/form/Filter/useSpecialProps.js +0 -1
  81. package/es/form/ProForm/addCascadeEffect.d.ts +2 -0
  82. package/es/form/ProForm/customComponent.d.ts +3 -0
  83. package/es/form/ProForm/index.d.ts +5 -0
  84. package/es/form/ProForm/index.js +9 -7
  85. package/es/form/ProForm/useAutoLayout.d.ts +9 -0
  86. package/es/form/ProForm/useAutoLayout.js +0 -4
  87. package/es/form/ProForm/useAutoSubmit.d.ts +6 -0
  88. package/es/form/ProForm/useAutoSubmit.js +4 -3
  89. package/es/form/ProForm/useFieldRequest.d.ts +5 -0
  90. package/es/form/ProForm/useFormDisplayValues.d.ts +4 -0
  91. package/es/form/ProForm/useFormDisplayValues.js +0 -1
  92. package/es/form/ProForm/useInitialRequest.d.ts +6 -0
  93. package/es/form/SchemaForm/adapterComponent.d.ts +5 -0
  94. package/es/form/SchemaForm/adapterComponent.js +0 -1
  95. package/es/form/SchemaForm/adapterDecorator.d.ts +6 -0
  96. package/es/form/SchemaForm/adapterDecorator.js +0 -1
  97. package/es/form/SchemaForm/adapterType.d.ts +5 -0
  98. package/es/form/SchemaForm/adapterType.js +0 -1
  99. package/es/form/SchemaForm/index.d.ts +4 -0
  100. package/es/form/SchemaForm/index.js +0 -13
  101. package/es/form/SchemaForm/initializeArrayCards.d.ts +3 -0
  102. package/es/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
  103. package/es/form/SchemaForm/initializeArrayItems.d.ts +3 -0
  104. package/es/form/SchemaForm/initializeArrayTable.d.ts +3 -0
  105. package/es/form/SchemaForm/initializeDataSource.d.ts +15 -0
  106. package/es/form/SchemaForm/initializeDataSource.js +0 -7
  107. package/es/form/SchemaForm/initializeFormButton.d.ts +3 -0
  108. package/es/form/SchemaForm/initializeFormButton.js +0 -2
  109. package/es/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
  110. package/es/form/SchemaForm/initializeFormGroup.d.ts +3 -0
  111. package/es/form/SchemaForm/initializeFormStep.d.ts +5 -0
  112. package/es/form/SchemaForm/initializeFormTab.d.ts +3 -0
  113. package/es/form/SchemaForm/initializeReactions.d.ts +2 -0
  114. package/es/form/SchemaForm/initializeReactions.js +0 -1
  115. package/es/form/SchemaForm/initializeRequest.d.ts +11 -0
  116. package/es/form/SchemaForm/initializeRules.d.ts +11 -0
  117. package/es/form/SchemaForm/initializeSelectTable.d.ts +3 -0
  118. package/es/form/SchemaForm/initializeSelectTable.js +0 -1
  119. package/es/form/SchemaForm/reactions.d.ts +6 -0
  120. package/es/form/SchemaForm/reactions.js +0 -5
  121. package/es/form/docs/ActionResponse.d.ts +8 -0
  122. package/es/form/fieldTypeMap.d.ts +7 -0
  123. package/es/form/index.d.ts +125 -0
  124. package/es/form/index.js +0 -4
  125. package/es/form/locales/validate.d.ts +159 -0
  126. package/es/form/schemaNameMap.d.ts +5 -0
  127. package/es/form/typing.d.ts +194 -0
  128. package/es/form/utils/parseSchema.d.ts +3 -0
  129. package/es/form/utils/parseSchema.js +38 -0
  130. package/es/form/utils.d.ts +55 -0
  131. package/es/form/utils.js +0 -12
  132. package/es/form/warning.d.ts +3 -0
  133. package/es/form/warning.js +0 -2
  134. package/es/global.scss +3 -1
  135. package/es/hooks/index.d.ts +2 -0
  136. package/es/image/index.d.ts +22 -0
  137. package/es/image/index.js +73 -0
  138. package/es/image/index.scss +3 -0
  139. package/es/index-without-icon.d.ts +32 -0
  140. package/es/index.d.ts +34 -0
  141. package/es/index.js +14 -3
  142. package/es/info/components/InfoGroup/index.d.ts +5 -0
  143. package/es/info/components/InfoGroup/index.js +4 -2
  144. package/es/info/components/InfoValueItem/index.d.ts +5 -0
  145. package/es/info/components/InfoValueItem/index.js +20 -32
  146. package/es/info/components/ProInfoItem/index.d.ts +5 -0
  147. package/es/info/components/ProInfoItem/index.js +0 -1
  148. package/es/info/components/baseInfo/index.d.ts +8 -0
  149. package/es/info/components/baseInfo/index.js +4 -5
  150. package/es/info/components/headerInfo/index.d.ts +8 -0
  151. package/es/info/components/tableInfo/index.d.ts +7 -0
  152. package/es/info/components/tableInfo/index.js +4 -6
  153. package/es/info/index.d.ts +6 -0
  154. package/es/info/index.js +17 -21
  155. package/es/info/typing.d.ts +220 -0
  156. package/es/info/utils/index.d.ts +20 -0
  157. package/es/info/utils/index.js +0 -3
  158. package/es/info/utils/layout.d.ts +2 -0
  159. package/es/info/utils/utils.d.ts +1 -0
  160. package/es/layout/index.d.ts +2 -0
  161. package/es/layout/index.js +0 -2
  162. package/es/next-xconsole.scss +34 -0
  163. package/es/nocode/configurators/Card.d.ts +3 -0
  164. package/es/nocode/configurators/PageHeader.d.ts +3 -0
  165. package/es/nocode/configurators/ProTable.d.ts +3 -0
  166. package/es/nocode/configurators/ProTable.js +1 -22
  167. package/es/nocode/configurators/common.d.ts +280 -0
  168. package/es/nocode/configurators/index.d.ts +15 -0
  169. package/es/nocode/configurators/index.js +1 -0
  170. package/es/nocode/configurators/map.d.ts +2 -0
  171. package/es/nocode/index.d.ts +8 -0
  172. package/es/nocode/index.js +0 -2
  173. package/es/nocode/pages/editor.d.ts +12 -0
  174. package/es/nocode/pages/index.d.ts +14 -0
  175. package/es/nocode/pages/index.js +1 -29
  176. package/es/nocode/pages/playground.d.ts +11 -0
  177. package/es/nocode/pages/playground.js +5 -3
  178. package/es/nocode/pages/renderer.d.ts +10 -0
  179. package/es/nocode/pages/renderer.js +6 -4
  180. package/es/nocode/playground.d.ts +14 -0
  181. package/es/nocode/playground.js +4 -2
  182. package/es/page-container/index.d.ts +3 -0
  183. package/es/page-header/index.d.ts +74 -0
  184. package/es/page-header/index.js +13 -23
  185. package/es/page-header/index.scss +2 -1
  186. package/es/page-header/xconsole.scss +5 -0
  187. package/es/sidebar/components/sidebar-container/index.d.ts +5 -0
  188. package/es/sidebar/components/sidebar-container/index.js +7 -10
  189. package/es/sidebar/components/tree/index.d.ts +6 -0
  190. package/es/sidebar/components/tree/index.js +24 -28
  191. package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +15 -0
  192. package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +4 -3
  193. package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +12 -0
  194. package/es/sidebar/components/tree-node/components/IconAction/index.js +2 -4
  195. package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +23 -0
  196. package/es/sidebar/components/tree-node/components/IconSwitch/index.js +0 -1
  197. package/es/sidebar/components/tree-node/components/IconSwitch/index.scss +1 -1
  198. package/es/sidebar/components/tree-node/index.d.ts +7 -0
  199. package/es/sidebar/components/tree-node/index.js +16 -29
  200. package/es/sidebar/index.d.ts +9 -0
  201. package/es/sidebar/index.js +13 -18
  202. package/es/sidebar/typing.d.ts +145 -0
  203. package/es/sidebar/utils/action-ref.d.ts +3 -0
  204. package/es/sidebar/utils/index.d.ts +364 -0
  205. package/es/sidebar/utils/index.js +18 -19
  206. package/es/skeleton/index.d.ts +3 -0
  207. package/es/table/components/CardView/index.d.ts +5 -0
  208. package/es/table/components/CardView/index.js +387 -0
  209. package/es/table/components/CardView/index.scss +46 -0
  210. package/es/table/components/EmptyContent/index.d.ts +2 -0
  211. package/es/table/components/Filter/index.d.ts +12 -0
  212. package/es/table/components/Filter/index.js +110 -79
  213. package/es/table/components/Layout/index.d.ts +5 -0
  214. package/es/table/components/Layout/index.js +16 -16
  215. package/es/table/components/Layout/index.scss +1 -0
  216. package/es/table/components/LoadMore/index.d.ts +20 -0
  217. package/es/table/components/LoadMore/index.js +88 -0
  218. package/es/table/components/LoadMore/index.scss +19 -0
  219. package/es/table/components/Pagination/index.d.ts +8 -0
  220. package/es/table/components/Pagination/index.js +48 -31
  221. package/es/table/components/QuickAction/index.d.ts +11 -0
  222. package/es/table/components/QuickAction/index.js +2 -3
  223. package/es/table/components/ToolBar/CardSwitch.d.ts +8 -0
  224. package/es/table/components/ToolBar/CardSwitch.js +52 -0
  225. package/es/table/components/ToolBar/DensityIcon.d.ts +4 -0
  226. package/es/table/components/ToolBar/DensityIcon.js +2 -7
  227. package/es/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
  228. package/es/table/components/ToolBar/FilterColumnIcon.js +41 -35
  229. package/es/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
  230. package/es/table/components/ToolBar/FullScreenIcon.js +0 -1
  231. package/es/table/components/ToolBar/Fullscreen.d.ts +10 -0
  232. package/es/table/components/ToolBar/Fullscreen.js +10 -3
  233. package/es/table/components/ToolBar/RefreshIcon.d.ts +4 -0
  234. package/es/table/components/ToolBar/RefreshIcon.js +162 -26
  235. package/es/table/components/ToolBar/index.d.ts +5 -0
  236. package/es/table/components/ToolBar/index.js +65 -33
  237. package/es/table/components/ToolBar/index.scss +27 -1
  238. package/es/table/index.d.ts +6 -0
  239. package/es/table/index.js +299 -128
  240. package/es/table/index.scss +8 -0
  241. package/es/table/typing.d.ts +426 -0
  242. package/es/table/utils/columnRender.d.ts +13 -0
  243. package/es/table/utils/columnRender.js +32 -37
  244. package/es/table/utils/genProColumnToColumn.d.ts +13 -0
  245. package/es/table/utils/genProColumnToColumn.js +10 -3
  246. package/es/table/utils/getTableProps.d.ts +2 -0
  247. package/es/table/utils/getTableSortIcons.d.ts +3 -0
  248. package/es/table/utils/index.d.ts +19 -0
  249. package/es/table/utils/index.js +0 -6
  250. package/es/table/utils/pureColumnRender.d.ts +9 -0
  251. package/es/table/utils/pureColumnRender.js +1 -9
  252. package/es/table/utils/pureGenProColumnToColumn.d.ts +7 -0
  253. package/es/table/utils/useTableSelection.d.ts +3 -0
  254. package/es/table/utils/util.d.ts +5 -0
  255. package/es/table/utils/util.js +19 -0
  256. package/es/templates/Detail/index.d.ts +2 -0
  257. package/es/templates/Form/index.d.ts +2 -0
  258. package/es/templates/List/index.d.ts +9 -0
  259. package/es/templates/List/index.js +6 -4
  260. package/es/templates/index.d.ts +3 -0
  261. package/es/templates/index.js +1 -2
  262. package/es/timeline/ProTimeLineItem/index.d.ts +5 -0
  263. package/es/timeline/ProTimeLineItem/index.js +5 -9
  264. package/es/timeline/index.d.ts +10 -0
  265. package/es/timeline/index.js +5 -5
  266. package/es/timeline/typing.d.ts +107 -0
  267. package/es/utils/aspect.d.ts +2 -0
  268. package/es/utils/aspect.js +57 -0
  269. package/es/utils/index.d.ts +3 -0
  270. package/es/utils/message.d.ts +3 -0
  271. package/es/utils/message.js +5 -3
  272. package/es/xconsole.scss +526 -0
  273. package/lib/actions/base.d.ts +24 -0
  274. package/lib/actions/base.js +1 -1
  275. package/lib/actions/confirm.d.ts +7 -0
  276. package/lib/actions/danger-confirm.d.ts +7 -0
  277. package/lib/actions/danger-pop-confirm.d.ts +5 -0
  278. package/lib/actions/dialog-component.d.ts +10 -0
  279. package/lib/actions/dialog-component.js +4 -1
  280. package/lib/actions/dialog-form.d.ts +29 -0
  281. package/lib/actions/dialog-form.js +7 -9
  282. package/lib/actions/dialog-info.d.ts +9 -0
  283. package/lib/actions/dialog-table.d.ts +9 -0
  284. package/lib/actions/dialog.d.ts +40 -0
  285. package/lib/actions/dialog.js +7 -8
  286. package/lib/actions/drawer-form.d.ts +6 -0
  287. package/lib/actions/drawer-info.d.ts +6 -0
  288. package/lib/actions/drawer-table.d.ts +6 -0
  289. package/lib/actions/drawer.d.ts +6 -0
  290. package/lib/actions/error.d.ts +7 -0
  291. package/lib/actions/index.d.ts +114 -0
  292. package/lib/actions/index.js +73 -44
  293. package/lib/actions/index.scss +6 -1
  294. package/lib/actions/link.d.ts +8 -0
  295. package/lib/actions/link.js +2 -3
  296. package/lib/actions/notice.d.ts +7 -0
  297. package/lib/actions/pop-confirm.d.ts +9 -0
  298. package/lib/actions/quick.d.ts +2 -0
  299. package/lib/actions/quick.js +33 -0
  300. package/lib/actions/request.d.ts +9 -0
  301. package/lib/actions/request.js +2 -3
  302. package/lib/actions/utils.d.ts +1 -0
  303. package/lib/card/card-container.d.ts +18 -0
  304. package/lib/card/card-container.js +4 -6
  305. package/lib/card/divider.d.ts +6 -0
  306. package/lib/card/divider.js +4 -2
  307. package/lib/card/index.d.ts +109 -0
  308. package/lib/card/index.js +10 -20
  309. package/lib/card/index.scss +15 -0
  310. package/lib/card/selectable.d.ts +13 -0
  311. package/lib/card/selectable.js +4 -2
  312. package/lib/card/tab.d.ts +6 -0
  313. package/lib/card/tab.js +4 -2
  314. package/lib/card/utils.d.ts +9 -0
  315. package/lib/card/xconsole.scss +3 -0
  316. package/lib/field/index.d.ts +3 -0
  317. package/lib/form/Components/Editable/index.d.ts +20 -0
  318. package/lib/form/Components/Editable/index.js +2 -2
  319. package/lib/form/Components/FormGroup/index.d.ts +14 -0
  320. package/lib/form/Components/FormGroup/index.js +3 -4
  321. package/lib/form/Components/LightFilter/componentMap.d.ts +3 -0
  322. package/lib/form/Components/LightFilter/index.d.ts +17 -0
  323. package/lib/form/Components/LightFilter/index.js +2 -11
  324. package/lib/form/Components/ProField/index.d.ts +2 -0
  325. package/lib/form/Components/ProField/index.js +4 -2
  326. package/lib/form/Components/ProField/mapDateFormat.d.ts +3 -0
  327. package/lib/form/Components/Text/index.d.ts +8 -0
  328. package/lib/form/Components/Text/index.js +4 -2
  329. package/lib/form/Filter/AdvancedFilter.d.ts +7 -0
  330. package/lib/form/Filter/AdvancedFilter.js +14 -16
  331. package/lib/form/Filter/Layout.d.ts +5 -0
  332. package/lib/form/Filter/LightFilter.d.ts +7 -0
  333. package/lib/form/Filter/LightFilter.js +9 -13
  334. package/lib/form/Filter/SimpleFilter.d.ts +7 -0
  335. package/lib/form/Filter/SimpleFilter.js +5 -8
  336. package/lib/form/Filter/index.d.ts +9 -0
  337. package/lib/form/Filter/index.js +19 -25
  338. package/lib/form/Filter/index.scss +1 -0
  339. package/lib/form/Filter/index2.d.ts +13 -0
  340. package/lib/form/Filter/index2.js +17 -22
  341. package/lib/form/Filter/index2.scss +1 -0
  342. package/lib/form/Filter/useBindUrl.d.ts +2 -0
  343. package/lib/form/Filter/useBindUrl.js +0 -3
  344. package/lib/form/Filter/useSpecialProps.d.ts +6 -0
  345. package/lib/form/ProForm/addCascadeEffect.d.ts +2 -0
  346. package/lib/form/ProForm/customComponent.d.ts +3 -0
  347. package/lib/form/ProForm/index.d.ts +5 -0
  348. package/lib/form/ProForm/index.js +9 -7
  349. package/lib/form/ProForm/useAutoLayout.d.ts +9 -0
  350. package/lib/form/ProForm/useAutoLayout.js +0 -4
  351. package/lib/form/ProForm/useAutoSubmit.d.ts +6 -0
  352. package/lib/form/ProForm/useAutoSubmit.js +2 -3
  353. package/lib/form/ProForm/useFieldRequest.d.ts +5 -0
  354. package/lib/form/ProForm/useFormDisplayValues.d.ts +4 -0
  355. package/lib/form/ProForm/useFormDisplayValues.js +0 -1
  356. package/lib/form/ProForm/useInitialRequest.d.ts +6 -0
  357. package/lib/form/SchemaForm/adapterComponent.d.ts +5 -0
  358. package/lib/form/SchemaForm/adapterComponent.js +0 -1
  359. package/lib/form/SchemaForm/adapterDecorator.d.ts +6 -0
  360. package/lib/form/SchemaForm/adapterType.d.ts +5 -0
  361. package/lib/form/SchemaForm/adapterType.js +0 -1
  362. package/lib/form/SchemaForm/index.d.ts +4 -0
  363. package/lib/form/SchemaForm/index.js +0 -13
  364. package/lib/form/SchemaForm/initializeArrayCards.d.ts +3 -0
  365. package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
  366. package/lib/form/SchemaForm/initializeArrayItems.d.ts +3 -0
  367. package/lib/form/SchemaForm/initializeArrayTable.d.ts +3 -0
  368. package/lib/form/SchemaForm/initializeDataSource.d.ts +15 -0
  369. package/lib/form/SchemaForm/initializeDataSource.js +2 -9
  370. package/lib/form/SchemaForm/initializeFormButton.d.ts +3 -0
  371. package/lib/form/SchemaForm/initializeFormButton.js +0 -2
  372. package/lib/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
  373. package/lib/form/SchemaForm/initializeFormGroup.d.ts +3 -0
  374. package/lib/form/SchemaForm/initializeFormStep.d.ts +5 -0
  375. package/lib/form/SchemaForm/initializeFormTab.d.ts +3 -0
  376. package/lib/form/SchemaForm/initializeReactions.d.ts +2 -0
  377. package/lib/form/SchemaForm/initializeReactions.js +0 -1
  378. package/lib/form/SchemaForm/initializeRequest.d.ts +11 -0
  379. package/lib/form/SchemaForm/initializeRules.d.ts +11 -0
  380. package/lib/form/SchemaForm/initializeSelectTable.d.ts +3 -0
  381. package/lib/form/SchemaForm/reactions.d.ts +6 -0
  382. package/lib/form/SchemaForm/reactions.js +0 -5
  383. package/lib/form/docs/ActionResponse.d.ts +8 -0
  384. package/lib/form/fieldTypeMap.d.ts +7 -0
  385. package/lib/form/index.d.ts +125 -0
  386. package/lib/form/locales/validate.d.ts +159 -0
  387. package/lib/form/schemaNameMap.d.ts +5 -0
  388. package/lib/form/typing.d.ts +194 -0
  389. package/lib/form/typing.js +5 -1
  390. package/lib/form/utils/parseSchema.d.ts +3 -0
  391. package/lib/form/utils/parseSchema.js +45 -0
  392. package/lib/form/utils.d.ts +55 -0
  393. package/lib/form/utils.js +0 -11
  394. package/lib/form/warning.d.ts +3 -0
  395. package/lib/form/warning.js +0 -2
  396. package/lib/global.scss +3 -1
  397. package/lib/hooks/index.d.ts +2 -0
  398. package/lib/image/index.d.ts +22 -0
  399. package/lib/image/index.js +83 -0
  400. package/lib/image/index.scss +3 -0
  401. package/lib/index-without-icon.d.ts +32 -0
  402. package/lib/index.d.ts +34 -0
  403. package/lib/index.js +31 -2
  404. package/lib/info/components/InfoGroup/index.d.ts +5 -0
  405. package/lib/info/components/InfoGroup/index.js +4 -2
  406. package/lib/info/components/InfoValueItem/index.d.ts +5 -0
  407. package/lib/info/components/InfoValueItem/index.js +20 -32
  408. package/lib/info/components/ProInfoItem/index.d.ts +5 -0
  409. package/lib/info/components/ProInfoItem/index.js +0 -1
  410. package/lib/info/components/baseInfo/index.d.ts +8 -0
  411. package/lib/info/components/baseInfo/index.js +4 -5
  412. package/lib/info/components/headerInfo/index.d.ts +8 -0
  413. package/lib/info/components/tableInfo/index.d.ts +7 -0
  414. package/lib/info/components/tableInfo/index.js +4 -6
  415. package/lib/info/index.d.ts +6 -0
  416. package/lib/info/index.js +16 -20
  417. package/lib/info/typing.d.ts +220 -0
  418. package/lib/info/typing.js +5 -1
  419. package/lib/info/utils/index.d.ts +20 -0
  420. package/lib/info/utils/index.js +0 -3
  421. package/lib/info/utils/layout.d.ts +2 -0
  422. package/lib/info/utils/utils.d.ts +1 -0
  423. package/lib/layout/index.d.ts +2 -0
  424. package/lib/next-xconsole.scss +34 -0
  425. package/lib/nocode/configurators/Card.d.ts +3 -0
  426. package/lib/nocode/configurators/PageHeader.d.ts +3 -0
  427. package/lib/nocode/configurators/ProTable.d.ts +3 -0
  428. package/lib/nocode/configurators/ProTable.js +1 -22
  429. package/lib/nocode/configurators/common.d.ts +280 -0
  430. package/lib/nocode/configurators/index.d.ts +15 -0
  431. package/lib/nocode/configurators/index.js +1 -0
  432. package/lib/nocode/configurators/map.d.ts +2 -0
  433. package/lib/nocode/index.d.ts +8 -0
  434. package/lib/nocode/pages/editor.d.ts +12 -0
  435. package/lib/nocode/pages/index.d.ts +14 -0
  436. package/lib/nocode/pages/index.js +2 -27
  437. package/lib/nocode/pages/playground.d.ts +11 -0
  438. package/lib/nocode/pages/playground.js +5 -3
  439. package/lib/nocode/pages/renderer.d.ts +10 -0
  440. package/lib/nocode/pages/renderer.js +6 -4
  441. package/lib/nocode/playground.d.ts +14 -0
  442. package/lib/nocode/playground.js +4 -2
  443. package/lib/page-container/index.d.ts +3 -0
  444. package/lib/page-header/index.d.ts +74 -0
  445. package/lib/page-header/index.js +11 -22
  446. package/lib/page-header/index.scss +2 -1
  447. package/lib/page-header/xconsole.scss +5 -0
  448. package/lib/sidebar/components/sidebar-container/index.d.ts +5 -0
  449. package/lib/sidebar/components/sidebar-container/index.js +7 -10
  450. package/lib/sidebar/components/tree/index.d.ts +6 -0
  451. package/lib/sidebar/components/tree/index.js +24 -28
  452. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +15 -0
  453. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +4 -3
  454. package/lib/sidebar/components/tree-node/components/IconAction/index.d.ts +12 -0
  455. package/lib/sidebar/components/tree-node/components/IconAction/index.js +2 -4
  456. package/lib/sidebar/components/tree-node/components/IconSwitch/index.d.ts +23 -0
  457. package/lib/sidebar/components/tree-node/components/IconSwitch/index.js +0 -1
  458. package/lib/sidebar/components/tree-node/components/IconSwitch/index.scss +1 -1
  459. package/lib/sidebar/components/tree-node/index.d.ts +7 -0
  460. package/lib/sidebar/components/tree-node/index.js +16 -29
  461. package/lib/sidebar/index.d.ts +9 -0
  462. package/lib/sidebar/index.js +20 -18
  463. package/lib/sidebar/typing.d.ts +145 -0
  464. package/lib/sidebar/typing.js +5 -1
  465. package/lib/sidebar/utils/action-ref.d.ts +3 -0
  466. package/lib/sidebar/utils/index.d.ts +364 -0
  467. package/lib/sidebar/utils/index.js +18 -19
  468. package/lib/skeleton/index.d.ts +3 -0
  469. package/lib/table/components/CardView/index.d.ts +5 -0
  470. package/lib/table/components/CardView/index.js +397 -0
  471. package/lib/table/components/CardView/index.scss +46 -0
  472. package/lib/table/components/EmptyContent/index.d.ts +2 -0
  473. package/lib/table/components/Filter/index.d.ts +12 -0
  474. package/lib/table/components/Filter/index.js +109 -78
  475. package/lib/table/components/Layout/index.d.ts +5 -0
  476. package/lib/table/components/Layout/index.js +17 -17
  477. package/lib/table/components/Layout/index.scss +1 -0
  478. package/lib/table/components/LoadMore/index.d.ts +20 -0
  479. package/lib/table/components/LoadMore/index.js +99 -0
  480. package/lib/table/components/LoadMore/index.scss +19 -0
  481. package/lib/table/components/Pagination/index.d.ts +8 -0
  482. package/lib/table/components/Pagination/index.js +47 -30
  483. package/lib/table/components/QuickAction/index.d.ts +11 -0
  484. package/lib/table/components/QuickAction/index.js +2 -3
  485. package/lib/table/components/ToolBar/CardSwitch.d.ts +8 -0
  486. package/lib/table/components/ToolBar/CardSwitch.js +60 -0
  487. package/lib/table/components/ToolBar/DensityIcon.d.ts +4 -0
  488. package/lib/table/components/ToolBar/DensityIcon.js +2 -7
  489. package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
  490. package/lib/table/components/ToolBar/FilterColumnIcon.js +40 -34
  491. package/lib/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
  492. package/lib/table/components/ToolBar/FullScreenIcon.js +0 -1
  493. package/lib/table/components/ToolBar/Fullscreen.d.ts +10 -0
  494. package/lib/table/components/ToolBar/Fullscreen.js +10 -3
  495. package/lib/table/components/ToolBar/RefreshIcon.d.ts +4 -0
  496. package/lib/table/components/ToolBar/RefreshIcon.js +164 -29
  497. package/lib/table/components/ToolBar/index.d.ts +5 -0
  498. package/lib/table/components/ToolBar/index.js +64 -32
  499. package/lib/table/components/ToolBar/index.scss +27 -1
  500. package/lib/table/index.d.ts +6 -0
  501. package/lib/table/index.js +299 -128
  502. package/lib/table/index.scss +8 -0
  503. package/lib/table/typing.d.ts +426 -0
  504. package/lib/table/typing.js +5 -1
  505. package/lib/table/utils/columnRender.d.ts +13 -0
  506. package/lib/table/utils/columnRender.js +32 -36
  507. package/lib/table/utils/genProColumnToColumn.d.ts +13 -0
  508. package/lib/table/utils/genProColumnToColumn.js +10 -3
  509. package/lib/table/utils/getTableProps.d.ts +2 -0
  510. package/lib/table/utils/getTableSortIcons.d.ts +3 -0
  511. package/lib/table/utils/index.d.ts +19 -0
  512. package/lib/table/utils/index.js +0 -6
  513. package/lib/table/utils/pureColumnRender.d.ts +9 -0
  514. package/lib/table/utils/pureColumnRender.js +1 -9
  515. package/lib/table/utils/pureGenProColumnToColumn.d.ts +7 -0
  516. package/lib/table/utils/useTableSelection.d.ts +3 -0
  517. package/lib/table/utils/util.d.ts +5 -0
  518. package/lib/table/utils/util.js +25 -0
  519. package/lib/templates/Detail/index.d.ts +2 -0
  520. package/lib/templates/Form/index.d.ts +2 -0
  521. package/lib/templates/List/index.d.ts +9 -0
  522. package/lib/templates/List/index.js +6 -4
  523. package/lib/templates/index.d.ts +3 -0
  524. package/lib/timeline/ProTimeLineItem/index.d.ts +5 -0
  525. package/lib/timeline/ProTimeLineItem/index.js +5 -9
  526. package/lib/timeline/index.d.ts +10 -0
  527. package/lib/timeline/index.js +5 -5
  528. package/lib/timeline/typing.d.ts +107 -0
  529. package/lib/timeline/typing.js +5 -1
  530. package/lib/utils/aspect.d.ts +2 -0
  531. package/lib/utils/aspect.js +64 -0
  532. package/lib/utils/index.d.ts +3 -0
  533. package/lib/utils/message.d.ts +3 -0
  534. package/lib/utils/message.js +5 -3
  535. package/lib/xconsole.scss +526 -0
  536. package/package.json +9 -8
package/es/index.d.ts ADDED
@@ -0,0 +1,34 @@
1
+ import ProAction from './actions';
2
+ import ProCard from './card';
3
+ import ProField from './field';
4
+ import ProForm from './form';
5
+ import hooks from './hooks';
6
+ import ProInfo from './info';
7
+ import ProPageContainer from './page-container';
8
+ import ProPageHeader from './page-header';
9
+ import ProTable from './table';
10
+ import ProSkeleton from './skeleton';
11
+ import utils from './utils';
12
+ import ProSidebar from './sidebar';
13
+ import { ProTimeline } from './timeline';
14
+ import ProImage from './image';
15
+ import * as nocode from './nocode';
16
+ import * as templates from './templates';
17
+ import TeamixIcon from '@teamix/icon';
18
+ import './global.scss';
19
+ export * from './actions';
20
+ export * from './card';
21
+ export * from './field';
22
+ export * from './form';
23
+ export * from './info';
24
+ export * from './nocode';
25
+ export * from './page-container';
26
+ export * from './page-header';
27
+ export * from './skeleton';
28
+ export * from './table';
29
+ export * from './sidebar';
30
+ export * from './utils';
31
+ export * from './timeline';
32
+ export * from './image';
33
+ declare const version = "1.6.0-beta.5";
34
+ export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, ProImage, hooks, nocode, templates, utils, };
package/es/index.js CHANGED
@@ -13,11 +13,11 @@ import ProSkeleton from './skeleton';
13
13
  import utils from './utils';
14
14
  import ProSidebar from './sidebar';
15
15
  import { ProTimeline } from './timeline';
16
+ import ProImage from './image';
16
17
  import * as nocode from './nocode';
17
18
  import * as templates from './templates';
18
19
  import TeamixIcon from '@teamix/icon';
19
20
  import './global.scss';
20
-
21
21
  // 设置图标源
22
22
  // @ts-ignore
23
23
  if (!((_window = window) === null || _window === void 0 ? void 0 : _window.TEAMIXPRO_WITHOUT_ICON)) {
@@ -36,7 +36,18 @@ export * from './table';
36
36
  export * from './sidebar';
37
37
  export * from './utils';
38
38
  export * from './timeline';
39
- var version = '1.6.0-beta.1';
39
+ export * from './image';
40
+ var version = '1.6.0-beta.5';
41
+ // By TeamixTest
42
+ window.postMessage({
43
+ source: 'teamix-test-devtools',
44
+ url: window.location.href,
45
+ event: 'getModuleInfo',
46
+ moduleName: '@teamix/pro',
47
+ moduleVersion: version,
48
+ moduleType: 'TeamixPro',
49
+ componentName: 'TeamixPro'
50
+ }, '*');
40
51
  export { version, ProAction, ProCard, ProField, ProForm, ProInfo,
41
52
  // ProLayout,
42
- ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils };
53
+ ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, ProImage, hooks, nocode, templates, utils };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ProInfoGroupProps } from '../../typing';
3
+ import './index.scss';
4
+ declare const ProInfoGroup: React.FC<ProInfoGroupProps>;
5
+ export default ProInfoGroup;
@@ -1,5 +1,7 @@
1
1
  var _excluded = ["children", "url", "method", "params", "formatResult", "onSuccess", "onError", "formatParams", "beforeRequest", "extendParams", "className", "compacted", "divider", "style", "backgroundColor", "context"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ 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; }
3
+ 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; }
4
+ 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; }
3
5
  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; }
4
6
  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; }
5
7
  import React, { isValidElement, useRef } from 'react';
@@ -74,7 +76,7 @@ var ProInfoGroup = function ProInfoGroup(props) {
74
76
  return /*#__PURE__*/React.createElement("div", {
75
77
  className: proInfoClassName,
76
78
  key: index
77
- }, /*#__PURE__*/React.createElement(ProInfo, _extends({
79
+ }, /*#__PURE__*/React.createElement(ProInfo, _objectSpread({
78
80
  compacted: compacted
79
81
  }, item)));
80
82
  })), infoType === 'infoDom' && /*#__PURE__*/React.createElement("div", {
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './index.scss';
3
+ import { InfoValueItemProps } from '../../typing';
4
+ declare const InfoValueItem: React.FC<InfoValueItemProps>;
5
+ export default InfoValueItem;
@@ -1,5 +1,4 @@
1
1
  var _excluded = ["type", "value", "render", "infoItem", "record", "actionRef", "dataSource", "context", "props"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
3
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
4
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
@@ -53,7 +52,6 @@ var InfoValueItem = function InfoValueItem(props) {
53
52
  valueType = infoItem.valueType,
54
53
  _infoItem$editProForm = infoItem.editProFormProps,
55
54
  editProFormProps = _infoItem$editProForm === void 0 ? {} : _infoItem$editProForm;
56
-
57
55
  // 获取配置
58
56
  var getInfoItemProps = function getInfoItemProps(prop) {
59
57
  if (typeof prop === 'function') {
@@ -61,16 +59,15 @@ var InfoValueItem = function InfoValueItem(props) {
61
59
  }
62
60
  return prop;
63
61
  };
64
-
65
62
  // 获取处理过的 render
66
63
  var getRender = function getRender() {
67
- var _ref, _ref2;
64
+ var _processRenderFunctio;
68
65
  if (typeof render === 'function') {
69
66
  return function () {
70
67
  return render(value, record);
71
68
  };
72
69
  }
73
- var newRender = processBuriedPoint((_ref = processRenderFunction((_ref2 = render) !== null && _ref2 !== void 0 ? _ref2 : {}, value, record)) !== null && _ref !== void 0 ? _ref : {}, value, record);
70
+ var newRender = processBuriedPoint((_processRenderFunctio = processRenderFunction(render !== null && render !== void 0 ? render : {}, value, record)) !== null && _processRenderFunctio !== void 0 ? _processRenderFunctio : {}, value, record);
74
71
  if (valueType === 'selectGroup') {
75
72
  newRender = _objectSpread(_objectSpread({
76
73
  maxShowNumber: 'auto',
@@ -93,7 +90,6 @@ var InfoValueItem = function InfoValueItem(props) {
93
90
  }
94
91
  return fieldProps;
95
92
  };
96
-
97
93
  // 获取处理过的 dataSource
98
94
  var getDataSource = function getDataSource() {
99
95
  var newDataSource = null;
@@ -101,10 +97,10 @@ var InfoValueItem = function InfoValueItem(props) {
101
97
  newDataSource = dataSource === null || dataSource === void 0 ? void 0 : dataSource(value, record);
102
98
  } else {
103
99
  newDataSource = (dataSource !== null && dataSource !== void 0 ? dataSource : []).map(function (item) {
104
- return Object.fromEntries(Object.entries(item).map(function (_ref3) {
105
- var _ref4 = _slicedToArray(_ref3, 2),
106
- k = _ref4[0],
107
- v = _ref4[1];
100
+ return Object.fromEntries(Object.entries(item).map(function (_ref) {
101
+ var _ref2 = _slicedToArray(_ref, 2),
102
+ k = _ref2[0],
103
+ v = _ref2[1];
108
104
  return [k, getTargetValue(v, _objectSpread(_objectSpread({}, record), {}, {
109
105
  value: value
110
106
  }, context))];
@@ -113,7 +109,6 @@ var InfoValueItem = function InfoValueItem(props) {
113
109
  }
114
110
  return newDataSource;
115
111
  };
116
-
117
112
  // 浮层的显隐状态
118
113
  var _useState = useState(false),
119
114
  _useState2 = _slicedToArray(_useState, 2),
@@ -146,7 +141,6 @@ var InfoValueItem = function InfoValueItem(props) {
146
141
  }
147
142
  return /*#__PURE__*/React.createElement(React.Fragment, null);
148
143
  };
149
-
150
144
  /**
151
145
  * 处理 render 配置项是函数的情况
152
146
  * @param render ProFieldRender
@@ -156,10 +150,10 @@ var InfoValueItem = function InfoValueItem(props) {
156
150
  */
157
151
  var processRenderFunction = function processRenderFunction(render, value, record) {
158
152
  var external = ['linkOnClick', 'link', 'value'];
159
- return Object.fromEntries(Object.entries(render).map(function (_ref5) {
160
- var _ref6 = _slicedToArray(_ref5, 2),
161
- k = _ref6[0],
162
- v = _ref6[1];
153
+ return Object.fromEntries(Object.entries(render).map(function (_ref3) {
154
+ var _ref4 = _slicedToArray(_ref3, 2),
155
+ k = _ref4[0],
156
+ v = _ref4[1];
163
157
  if (typeof v === 'function') {
164
158
  var _v;
165
159
  if (external.includes(k)) {
@@ -175,7 +169,6 @@ var InfoValueItem = function InfoValueItem(props) {
175
169
  return [k, v];
176
170
  }));
177
171
  };
178
-
179
172
  /**
180
173
  * 处理 render 数据,取出 {{xxx}} 匹配值
181
174
  * @param render ProFieldRender
@@ -186,22 +179,21 @@ var InfoValueItem = function InfoValueItem(props) {
186
179
  return Object.fromEntries([
187
180
  // 默认 ellipsis、descriptionEllipsis 为 true
188
181
  // emptyText 默认为 '-'
189
- ['ellipsis', true], ['descriptionEllipsis', true], ['emptyText', '-']].concat(_toConsumableArray(Object.entries(render).map(function (_ref7) {
190
- var _ref8 = _slicedToArray(_ref7, 2),
191
- k = _ref8[0],
192
- v = _ref8[1];
182
+ ['ellipsis', true], ['descriptionEllipsis', true], ['emptyText', '-']].concat(_toConsumableArray(Object.entries(render).map(function (_ref5) {
183
+ var _ref6 = _slicedToArray(_ref5, 2),
184
+ k = _ref6[0],
185
+ v = _ref6[1];
193
186
  return [k, getTargetValue(v, _objectSpread(_objectSpread({}, record), {}, {
194
187
  record: record,
195
188
  value: value
196
189
  }))];
197
190
  }))));
198
191
  };
199
-
200
192
  // 重写编辑逻辑替代field原有逻辑
201
193
  if (getInfoItemProps(isEdit)) {
202
194
  // 渲染表单
203
195
  var renderContent = function renderContent() {
204
- return /*#__PURE__*/React.createElement(ProForm, _extends({
196
+ return /*#__PURE__*/React.createElement(ProForm, _objectSpread({
205
197
  schema: [{
206
198
  name: dataIndex,
207
199
  component: 'Input',
@@ -211,11 +203,9 @@ var InfoValueItem = function InfoValueItem(props) {
211
203
  form: dataFilterForm
212
204
  }, getInfoItemProps(editProFormProps)));
213
205
  };
214
-
215
206
  // 表单提交
216
207
  var onConfirm = function onConfirm(e) {
217
208
  var formData = toJS(dataFilterForm.values);
218
-
219
209
  // 如果传入了 editUrl 则内置请求
220
210
  if (editUrl) {
221
211
  setConfirmLoading(true);
@@ -251,7 +241,6 @@ var InfoValueItem = function InfoValueItem(props) {
251
241
  setEditVisible(!editVisible);
252
242
  }
253
243
  };
254
-
255
244
  // 取消
256
245
  var onCancel = function onCancel(e) {
257
246
  var formData = toJS(dataFilterForm.values);
@@ -272,12 +261,12 @@ var InfoValueItem = function InfoValueItem(props) {
272
261
  onMouseLeave: function onMouseLeave() {
273
262
  setEditVisible(false);
274
263
  }
275
- }, /*#__PURE__*/React.createElement(ProField, _extends({
264
+ }, /*#__PURE__*/React.createElement(ProField, _objectSpread(_objectSpread({
276
265
  type: type,
277
266
  value: value,
278
267
  render: getRender(),
279
268
  dataSource: getDataSource()
280
- }, others, getFieldProps())), /*#__PURE__*/React.createElement(PopConfirm, {
269
+ }, others), getFieldProps())), /*#__PURE__*/React.createElement(PopConfirm, {
281
270
  visible: popConfirmVisible,
282
271
  content: renderContent(),
283
272
  triggerType: "click",
@@ -290,9 +279,8 @@ var InfoValueItem = function InfoValueItem(props) {
290
279
  trigger: /*#__PURE__*/React.createElement(TeamixIcon, {
291
280
  type: "edit-line",
292
281
  size: "small",
293
- className: cls('edit-icon')
282
+ className: cls('edit-icon'),
294
283
  // 这里使用 opacity 是为了占位
295
- ,
296
284
  style: {
297
285
  opacity: editVisible || popConfirmVisible ? 1 : 0
298
286
  },
@@ -304,11 +292,11 @@ var InfoValueItem = function InfoValueItem(props) {
304
292
  }
305
293
  return /*#__PURE__*/React.createElement("div", {
306
294
  className: cls('item-value')
307
- }, /*#__PURE__*/React.createElement(ProField, _extends({
295
+ }, /*#__PURE__*/React.createElement(ProField, _objectSpread(_objectSpread({
308
296
  type: type,
309
297
  value: value,
310
298
  render: getRender(),
311
299
  dataSource: getDataSource()
312
- }, others, getFieldProps())), renderAction(), extra && extra);
300
+ }, others), getFieldProps())), renderAction(), extra && extra);
313
301
  };
314
302
  export default InfoValueItem;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { IProProInfoItem } from '../../typing';
3
+ import './index.scss';
4
+ declare const ProInfoItem: React.FC<IProProInfoItem>;
5
+ export default ProInfoItem;
@@ -18,7 +18,6 @@ var ProInfoItem = function ProInfoItem(prop) {
18
18
  valueType = prop.valueType,
19
19
  render = prop.render,
20
20
  alignItems = prop.alignItems;
21
-
22
21
  // 判断是否需要居中
23
22
  var isAlignItemsCenter = function isAlignItemsCenter() {
24
23
  if (typeof render !== 'function') {
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ProInfoBaseProps, ProInfoTransparentBase, ProInfoTransRequestResult } from '../../typing';
3
+ import './index.scss';
4
+ declare type ProBaseInfoProps = ProInfoBaseProps & ProInfoTransRequestResult & ProInfoTransparentBase & {
5
+ size?: any;
6
+ };
7
+ declare const ProBaseInfo: React.FC<ProBaseInfoProps>;
8
+ export default ProBaseInfo;
@@ -17,13 +17,13 @@ var ProBaseInfo = function ProBaseInfo(props) {
17
17
  actionRef = props.actionRef,
18
18
  layout = props.layout,
19
19
  size = props.size,
20
- context = props.context;
20
+ context = props.context,
21
+ _props$disabledAutoSi = props.disabledAutoSize,
22
+ disabledAutoSize = _props$disabledAutoSi === void 0 ? false : _props$disabledAutoSi;
21
23
  var defaultLayout = defaultLayoutMap[getLayout((_size$width = size === null || size === void 0 ? void 0 : size.width) !== null && _size$width !== void 0 ? _size$width : 0)];
22
-
23
24
  // 获取列内的布局参数
24
25
  var getFormItemLayout = function getFormItemLayout(colspan) {
25
26
  var formItemLayout = JSON.parse(JSON.stringify(defaultLayout.formItemLayout));
26
-
27
27
  // 自定义布局
28
28
  if (layout) {
29
29
  var _layout$labelCol, _layout$wrapperCol;
@@ -34,7 +34,6 @@ var ProBaseInfo = function ProBaseInfo(props) {
34
34
  }
35
35
  var newLabelSpan = formItemLayout.labelCol.span;
36
36
  var newWrapperSpan = formItemLayout.wrapperCol.span;
37
-
38
37
  // 计算合并列情况。label与wrapper需要重新计算
39
38
  if (colspan) {
40
39
  var _layout$span, _layout$span2;
@@ -87,7 +86,7 @@ var ProBaseInfo = function ProBaseInfo(props) {
87
86
  }));
88
87
  });
89
88
  };
90
- return /*#__PURE__*/React.createElement(React.Fragment, null, (size === null || size === void 0 ? void 0 : size.width) && /*#__PURE__*/React.createElement(Row, {
89
+ return /*#__PURE__*/React.createElement(React.Fragment, null, ((size === null || size === void 0 ? void 0 : size.width) || disabledAutoSize) && /*#__PURE__*/React.createElement(Row, {
91
90
  wrap: true,
92
91
  className: "teamix-pro-info-content-row",
93
92
  gutter: 20
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { IProHeaderInfo, ProInfoTransparentBase, ProInfoTransRequestResult } from '../../typing';
3
+ import './index.scss';
4
+ declare type ProHeaderInfoProps = IProHeaderInfo & ProInfoTransRequestResult & ProInfoTransparentBase & {
5
+ size?: any;
6
+ };
7
+ declare const ProHeaderInfo: React.FC<ProHeaderInfoProps>;
8
+ export default ProHeaderInfo;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './index.scss';
3
+ import { IProTableInfo, ProInfoTransparentBase, ProInfoTransRequestResult } from '../../typing';
4
+ import './index.scss';
5
+ declare type ProTableInfoProps = IProTableInfo & ProInfoTransRequestResult & ProInfoTransparentBase;
6
+ declare const ProTableInfo: React.FC<ProTableInfoProps>;
7
+ export default ProTableInfo;
@@ -25,11 +25,10 @@ var ProTableInfo = function ProTableInfo(props) {
25
25
  result = props.result,
26
26
  actionRef = props.actionRef,
27
27
  context = props.context;
28
- var _ref = layout,
29
- _ref$colNum = _ref.colNum,
30
- colNum = _ref$colNum === void 0 ? 2 : _ref$colNum,
31
- _ref$labelGutter = _ref.labelGutter,
32
- labelGutter = _ref$labelGutter === void 0 ? '80px' : _ref$labelGutter;
28
+ var _layout$colNum = layout.colNum,
29
+ colNum = _layout$colNum === void 0 ? 2 : _layout$colNum,
30
+ _layout$labelGutter = layout.labelGutter,
31
+ labelGutter = _layout$labelGutter === void 0 ? '80px' : _layout$labelGutter;
33
32
  var getNewColumns = function getNewColumns() {
34
33
  // 需要 fill 填充 否则有可能不执行
35
34
  return _toConsumableArray(new Array(colNum)).fill(1).map(function (_, index) {
@@ -64,7 +63,6 @@ var ProTableInfo = function ProTableInfo(props) {
64
63
  var columnsCopy = cloneDeep(columns).filter(function (item) {
65
64
  return !isHidden(item.hidden, getDataIndexValue(item.dataIndex, dataSource !== null && dataSource !== void 0 ? dataSource : result), dataSource !== null && dataSource !== void 0 ? dataSource : result, context);
66
65
  });
67
-
68
66
  // 取当前行的数据。直到取完
69
67
  while (columnsCopy.length > 0) {
70
68
  var filterColumns = [];
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import './index.scss';
3
+ import { ProInfoProps } from './typing';
4
+ export * from './typing';
5
+ declare const _default: React.FC<ProInfoProps>;
6
+ export default _default;
package/es/info/index.js CHANGED
@@ -1,6 +1,5 @@
1
- var _excluded = ["type", "url", "method", "formatResult", "formatParams", "params", "actionRef", "header", "onSuccess", "onError", "beforeRequest", "extendParams", "className", "style", "columns", "layout", "dataSource", "loading", "extra", "context"],
1
+ var _excluded = ["type", "url", "method", "formatResult", "formatParams", "params", "actionRef", "header", "onSuccess", "onError", "beforeRequest", "extendParams", "className", "style", "columns", "layout", "dataSource", "loading", "extra", "context", "disabledAutoSize"],
2
2
  _excluded2 = ["context"];
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
3
  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; }
5
4
  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; }
6
5
  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; }
@@ -19,9 +18,10 @@ import ProBaseInfo from './components/baseInfo';
19
18
  import ProInfoGroup from './components/InfoGroup';
20
19
  import './index.scss';
21
20
  import { ProInfoGroupContext, useActionType } from './utils';
22
- import { doCommonRequest, cls, getTestRequestData, getTestRequestParams } from '@teamix/utils';
21
+ import { doCommonRequest, cls } from '@teamix/utils';
23
22
  import { useSize } from '@teamix/hooks';
24
23
  import { ProCard } from '..';
24
+ import { ProComponentAspect } from '../utils/aspect';
25
25
  export * from './typing';
26
26
  var ProInfo = function ProInfo(props) {
27
27
  var _ref;
@@ -48,6 +48,7 @@ var ProInfo = function ProInfo(props) {
48
48
  userLoading = props.loading,
49
49
  extra = props.extra,
50
50
  infoContext = props.context,
51
+ disabledAutoSize = props.disabledAutoSize,
51
52
  others = _objectWithoutProperties(props, _excluded);
52
53
  var _useContext = useContext(ProInfoGroupContext),
53
54
  contextUrl = _useContext.url,
@@ -63,7 +64,6 @@ var ProInfo = function ProInfo(props) {
63
64
  contextExtendParams = _useContext.extendParams,
64
65
  _useContext$context = _useContext.context,
65
66
  contextContext = _useContext$context === void 0 ? {} : _useContext$context;
66
-
67
67
  // 获取容器宽度
68
68
  var ref = useRef();
69
69
  var size = contextVisible ? contextSize : useSize(ref);
@@ -100,7 +100,6 @@ var ProInfo = function ProInfo(props) {
100
100
  record: dataSource !== null && dataSource !== void 0 ? dataSource : data
101
101
  }, contextContext);
102
102
  }, [dataSource, data]);
103
-
104
103
  // 获取数据
105
104
  var request = function request() {
106
105
  setLoading(true);
@@ -111,12 +110,10 @@ var ProInfo = function ProInfo(props) {
111
110
  });
112
111
  };
113
112
  var actionRef = useRef();
114
-
115
113
  // 将 Actions 绑定到传入的 propsActionRef 中
116
114
  if (propsActionRef) {
117
115
  propsActionRef.current = actionRef.current;
118
116
  }
119
-
120
117
  // 绑定 Actions
121
118
  useActionType(actionRef, {
122
119
  refresh: function refresh() {
@@ -130,10 +127,9 @@ var ProInfo = function ProInfo(props) {
130
127
  if ( /*#__PURE__*/isValidElement(extra)) {
131
128
  return extra;
132
129
  }
133
- var _ref2 = extra,
134
- _ref2$context = _ref2.context,
135
- actionContext = _ref2$context === void 0 ? {} : _ref2$context,
136
- others = _objectWithoutProperties(_ref2, _excluded2);
130
+ var _extra$context = extra.context,
131
+ actionContext = _extra$context === void 0 ? {} : _extra$context,
132
+ others = _objectWithoutProperties(extra, _excluded2);
137
133
  return _objectSpread(_objectSpread({}, others), {}, {
138
134
  context: _objectSpread(_objectSpread({}, context), actionContext)
139
135
  });
@@ -141,16 +137,13 @@ var ProInfo = function ProInfo(props) {
141
137
  return /*#__PURE__*/React.createElement("div", {
142
138
  ref: ref,
143
139
  style: style,
144
- className: cls('teamix-pro-info', className, 'teamix-test-request'),
145
- "data-teamix-test-request": "url=".concat(url, "&formatResult=").concat(!!formatResult),
146
- "data-teamix-test-params": getTestRequestParams(params),
147
- "data-teamix-test-data": getTestRequestData(columns)
148
- }, /*#__PURE__*/React.createElement(ProCard, _extends({
140
+ className: cls('teamix-pro-info', className)
141
+ }, /*#__PURE__*/React.createElement(ProCard, _objectSpread(_objectSpread(_objectSpread({
149
142
  compacted: true,
150
143
  hoveredShadow: false,
151
144
  bordered: false,
152
145
  backgroundColor: "transparent"
153
- }, header, others, {
146
+ }, header), others), {}, {
154
147
  extra: getExtra()
155
148
  }), type === 'table' && /*#__PURE__*/React.createElement(ProTableInfo, {
156
149
  dataSource: dataSource,
@@ -159,7 +152,8 @@ var ProInfo = function ProInfo(props) {
159
152
  result: data,
160
153
  actionRef: actionRef,
161
154
  layout: layout,
162
- context: context
155
+ context: context,
156
+ disabledAutoSize: disabledAutoSize
163
157
  }), type === 'header' && /*#__PURE__*/React.createElement(ProHeaderInfo, {
164
158
  dataSource: dataSource,
165
159
  columns: columns,
@@ -169,7 +163,8 @@ var ProInfo = function ProInfo(props) {
169
163
  actionRef: actionRef,
170
164
  layout: layout,
171
165
  size: size,
172
- context: context
166
+ context: context,
167
+ disabledAutoSize: disabledAutoSize
173
168
  }), type === 'base' && /*#__PURE__*/React.createElement(ProBaseInfo, {
174
169
  dataSource: dataSource,
175
170
  columns: columns,
@@ -178,9 +173,10 @@ var ProInfo = function ProInfo(props) {
178
173
  actionRef: actionRef,
179
174
  layout: layout,
180
175
  size: size,
181
- context: context
176
+ context: context,
177
+ disabledAutoSize: disabledAutoSize
182
178
  })));
183
179
  };
184
180
  ProInfo.Group = ProInfoGroup;
185
181
  ProInfo.ProInfoGroup = ProInfoGroup;
186
- export default ProInfo;
182
+ export default ProComponentAspect(ProInfo, 'ProInfo');