@teamix/pro 1.5.1-aplha.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (445) hide show
  1. package/dist/pro.css +1 -1
  2. package/dist/pro.js +65730 -78948
  3. package/dist/pro.min.css +1 -1
  4. package/dist/pro.min.js +1 -1
  5. package/es/actions/base.d.ts +24 -0
  6. package/es/actions/confirm.d.ts +7 -0
  7. package/es/actions/danger-confirm.d.ts +7 -0
  8. package/es/actions/danger-pop-confirm.d.ts +5 -0
  9. package/es/actions/dialog-component.d.ts +10 -0
  10. package/es/actions/dialog-component.js +7 -1
  11. package/es/actions/dialog-form.d.ts +29 -0
  12. package/es/actions/dialog-form.js +3 -5
  13. package/es/actions/dialog-info.d.ts +9 -0
  14. package/es/actions/dialog-table.d.ts +9 -0
  15. package/es/actions/dialog.d.ts +40 -0
  16. package/es/actions/dialog.js +1 -1
  17. package/es/actions/drawer-form.d.ts +6 -0
  18. package/es/actions/drawer-info.d.ts +6 -0
  19. package/es/actions/drawer-table.d.ts +6 -0
  20. package/es/actions/drawer.d.ts +6 -0
  21. package/es/actions/error.d.ts +7 -0
  22. package/es/actions/index.d.ts +111 -0
  23. package/es/actions/index.js +23 -32
  24. package/es/actions/index.scss +5 -0
  25. package/es/actions/link.d.ts +8 -0
  26. package/es/actions/notice.d.ts +7 -0
  27. package/es/actions/pop-confirm.d.ts +9 -0
  28. package/es/actions/request.d.ts +9 -0
  29. package/es/actions/request.js +2 -2
  30. package/es/actions/utils.d.ts +1 -0
  31. package/es/card/card-container.d.ts +18 -0
  32. package/es/card/card-container.js +9 -9
  33. package/es/card/divider.d.ts +6 -0
  34. package/es/card/divider.js +6 -2
  35. package/es/card/index.d.ts +109 -0
  36. package/es/card/index.js +8 -14
  37. package/es/card/index.scss +7 -0
  38. package/es/card/selectable.d.ts +13 -0
  39. package/es/card/selectable.js +6 -2
  40. package/es/card/tab.d.ts +6 -0
  41. package/es/card/tab.js +6 -2
  42. package/es/card/utils.d.ts +9 -0
  43. package/es/field/index.d.ts +3 -0
  44. package/es/form/Components/Editable/index.d.ts +20 -0
  45. package/es/form/Components/Editable/index.js +1 -1
  46. package/es/form/Components/FormGroup/index.d.ts +13 -0
  47. package/es/form/Components/FormGroup/index.js +3 -5
  48. package/es/form/Components/LightFilter/componentMap.d.ts +3 -0
  49. package/es/form/Components/LightFilter/index.d.ts +17 -0
  50. package/es/form/Components/LightFilter/index.js +2 -8
  51. package/es/form/Components/ProField/index.d.ts +2 -0
  52. package/es/form/Components/ProField/index.js +6 -2
  53. package/es/form/Components/ProField/mapDateFormat.d.ts +3 -0
  54. package/es/form/Components/Text/index.d.ts +7 -0
  55. package/es/form/Components/Text/index.js +6 -2
  56. package/es/form/Filter/AdvancedFilter.d.ts +7 -0
  57. package/es/form/Filter/AdvancedFilter.js +15 -18
  58. package/es/form/Filter/Layout.d.ts +5 -0
  59. package/es/form/Filter/LightFilter.d.ts +7 -0
  60. package/es/form/Filter/LightFilter.js +10 -13
  61. package/es/form/Filter/SimpleFilter.d.ts +7 -0
  62. package/es/form/Filter/SimpleFilter.js +6 -10
  63. package/es/form/Filter/index.d.ts +9 -0
  64. package/es/form/Filter/index.js +10 -7
  65. package/es/form/Filter/index2.d.ts +13 -0
  66. package/es/form/Filter/index2.js +17 -21
  67. package/es/form/Filter/useBindUrl.d.ts +2 -0
  68. package/es/form/Filter/useSpecialProps.d.ts +6 -0
  69. package/es/form/ProForm/addCascadeEffect.d.ts +2 -0
  70. package/es/form/ProForm/customComponent.d.ts +3 -0
  71. package/es/form/ProForm/index.d.ts +5 -0
  72. package/es/form/ProForm/index.js +2 -4
  73. package/es/form/ProForm/useAutoLayout.d.ts +9 -0
  74. package/es/form/ProForm/useAutoSubmit.d.ts +6 -0
  75. package/es/form/ProForm/useFieldRequest.d.ts +5 -0
  76. package/es/form/ProForm/useFormDisplayValues.d.ts +4 -0
  77. package/es/form/ProForm/useFormDisplayValues.js +1 -1
  78. package/es/form/ProForm/useInitialRequest.d.ts +6 -0
  79. package/es/form/SchemaForm/adapterComponent.d.ts +5 -0
  80. package/es/form/SchemaForm/adapterDecorator.d.ts +6 -0
  81. package/es/form/SchemaForm/adapterType.d.ts +5 -0
  82. package/es/form/SchemaForm/index.d.ts +4 -0
  83. package/es/form/SchemaForm/initializeArrayCards.d.ts +3 -0
  84. package/es/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
  85. package/es/form/SchemaForm/initializeArrayItems.d.ts +3 -0
  86. package/es/form/SchemaForm/initializeArrayTable.d.ts +3 -0
  87. package/es/form/SchemaForm/initializeDataSource.d.ts +15 -0
  88. package/es/form/SchemaForm/initializeFormButton.d.ts +3 -0
  89. package/es/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
  90. package/es/form/SchemaForm/initializeFormGroup.d.ts +3 -0
  91. package/es/form/SchemaForm/initializeFormStep.d.ts +5 -0
  92. package/es/form/SchemaForm/initializeFormTab.d.ts +3 -0
  93. package/es/form/SchemaForm/initializeReactions.d.ts +2 -0
  94. package/es/form/SchemaForm/initializeRequest.d.ts +11 -0
  95. package/es/form/SchemaForm/initializeRules.d.ts +11 -0
  96. package/es/form/SchemaForm/initializeSelectTable.d.ts +3 -0
  97. package/es/form/SchemaForm/reactions.d.ts +6 -0
  98. package/es/form/SchemaForm/reactions.js +1 -2
  99. package/es/form/docs/ActionResponse.d.ts +7 -0
  100. package/es/form/fieldTypeMap.d.ts +7 -0
  101. package/es/form/index.d.ts +125 -0
  102. package/es/form/locales/validate.d.ts +159 -0
  103. package/es/form/schemaNameMap.d.ts +5 -0
  104. package/es/form/typing.d.ts +192 -0
  105. package/es/form/utils.d.ts +55 -0
  106. package/es/form/utils.js +1 -8
  107. package/es/form/warning.d.ts +3 -0
  108. package/es/hooks/index.d.ts +2 -0
  109. package/es/index-without-icon.d.ts +32 -0
  110. package/es/index.d.ts +32 -0
  111. package/es/index.js +1 -1
  112. package/es/info/components/InfoGroup/index.d.ts +5 -0
  113. package/es/info/components/InfoGroup/index.js +6 -2
  114. package/es/info/components/InfoValueItem/index.d.ts +5 -0
  115. package/es/info/components/InfoValueItem/index.js +21 -23
  116. package/es/info/components/ProInfoItem/index.d.ts +5 -0
  117. package/es/info/components/baseInfo/index.d.ts +8 -0
  118. package/es/info/components/headerInfo/index.d.ts +8 -0
  119. package/es/info/components/tableInfo/index.d.ts +7 -0
  120. package/es/info/components/tableInfo/index.js +4 -5
  121. package/es/info/index.d.ts +10 -0
  122. package/es/info/index.js +5 -8
  123. package/es/info/typing.d.ts +218 -0
  124. package/es/info/utils/index.d.ts +20 -0
  125. package/es/info/utils/layout.d.ts +2 -0
  126. package/es/info/utils/utils.d.ts +1 -0
  127. package/es/layout/index.d.ts +2 -0
  128. package/es/nocode/configurators/Card.d.ts +3 -0
  129. package/es/nocode/configurators/PageHeader.d.ts +3 -0
  130. package/es/nocode/configurators/ProTable.d.ts +3 -0
  131. package/es/nocode/configurators/common.d.ts +280 -0
  132. package/es/nocode/configurators/index.d.ts +15 -0
  133. package/es/nocode/configurators/map.d.ts +2 -0
  134. package/es/nocode/index.d.ts +8 -0
  135. package/es/nocode/index.js +2 -2
  136. package/es/nocode/pages/editor.d.ts +12 -0
  137. package/es/nocode/pages/index.d.ts +14 -0
  138. package/es/nocode/pages/index.js +3 -4
  139. package/es/nocode/pages/playground.d.ts +11 -0
  140. package/es/nocode/pages/playground.js +7 -3
  141. package/es/nocode/pages/renderer.d.ts +10 -0
  142. package/es/nocode/pages/renderer.js +8 -4
  143. package/es/nocode/playground.d.ts +14 -0
  144. package/es/nocode/playground.js +6 -2
  145. package/es/page-container/index.d.ts +3 -0
  146. package/es/page-header/index.d.ts +74 -0
  147. package/es/page-header/index.js +7 -12
  148. package/es/sidebar/components/sidebar-container/index.d.ts +5 -0
  149. package/es/sidebar/components/sidebar-container/index.js +9 -5
  150. package/es/sidebar/components/tree/index.d.ts +6 -0
  151. package/es/sidebar/components/tree/index.js +6 -2
  152. package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +15 -0
  153. package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +6 -2
  154. package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +12 -0
  155. package/es/sidebar/components/tree-node/components/IconAction/index.js +2 -4
  156. package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +23 -0
  157. package/es/sidebar/components/tree-node/components/IconSwitch/index.scss +1 -1
  158. package/es/sidebar/components/tree-node/index.d.ts +7 -0
  159. package/es/sidebar/components/tree-node/index.js +18 -21
  160. package/es/sidebar/index.d.ts +9 -0
  161. package/es/sidebar/index.js +8 -4
  162. package/es/sidebar/typing.d.ts +141 -0
  163. package/es/sidebar/utils/action-ref.d.ts +3 -0
  164. package/es/sidebar/utils/index.d.ts +361 -0
  165. package/es/sidebar/utils/index.js +11 -11
  166. package/es/skeleton/index.d.ts +3 -0
  167. package/es/table/components/CardView/index.d.ts +5 -0
  168. package/es/table/components/CardView/index.js +446 -0
  169. package/es/table/components/CardView/index.scss +46 -0
  170. package/es/table/components/EmptyContent/index.d.ts +2 -0
  171. package/es/table/components/Filter/index.d.ts +10 -0
  172. package/es/table/components/Filter/index.js +21 -14
  173. package/es/table/components/Layout/index.d.ts +5 -0
  174. package/es/table/components/Layout/index.js +8 -10
  175. package/es/table/components/LoadMore/index.d.ts +20 -0
  176. package/es/table/components/LoadMore/index.js +107 -0
  177. package/es/table/components/LoadMore/index.scss +19 -0
  178. package/es/table/components/Pagination/index.d.ts +7 -0
  179. package/es/table/components/Pagination/index.js +14 -10
  180. package/es/table/components/QuickAction/index.d.ts +11 -0
  181. package/es/table/components/QuickAction/index.js +2 -4
  182. package/es/table/components/ToolBar/CardSwitch.d.ts +8 -0
  183. package/es/table/components/ToolBar/CardSwitch.js +63 -0
  184. package/es/table/components/ToolBar/DensityIcon.d.ts +4 -0
  185. package/es/table/components/ToolBar/DensityIcon.js +3 -2
  186. package/es/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
  187. package/es/table/components/ToolBar/FilterColumnIcon.js +13 -2
  188. package/es/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
  189. package/es/table/components/ToolBar/Fullscreen.d.ts +10 -0
  190. package/es/table/components/ToolBar/Fullscreen.js +15 -2
  191. package/es/table/components/ToolBar/RefreshIcon.d.ts +4 -0
  192. package/es/table/components/ToolBar/RefreshIcon.js +1 -2
  193. package/es/table/components/ToolBar/index.d.ts +5 -0
  194. package/es/table/components/ToolBar/index.js +69 -34
  195. package/es/table/components/ToolBar/index.scss +10 -1
  196. package/es/table/index.d.ts +5 -0
  197. package/es/table/index.js +150 -59
  198. package/es/table/typing.d.ts +371 -0
  199. package/es/table/utils/columnRender.d.ts +13 -0
  200. package/es/table/utils/columnRender.js +28 -28
  201. package/es/table/utils/genProColumnToColumn.d.ts +13 -0
  202. package/es/table/utils/genProColumnToColumn.js +4 -2
  203. package/es/table/utils/getTableProps.d.ts +2 -0
  204. package/es/table/utils/getTableSortIcons.d.ts +3 -0
  205. package/es/table/utils/index.d.ts +19 -0
  206. package/es/table/utils/index.js +2 -2
  207. package/es/table/utils/pureColumnRender.d.ts +9 -0
  208. package/es/table/utils/pureColumnRender.js +2 -4
  209. package/es/table/utils/pureGenProColumnToColumn.d.ts +7 -0
  210. package/es/table/utils/pureGenProColumnToColumn.js +1 -1
  211. package/es/table/utils/useTableSelection.d.ts +3 -0
  212. package/es/templates/Detail/index.d.ts +2 -0
  213. package/es/templates/Form/index.d.ts +2 -0
  214. package/es/templates/List/index.d.ts +9 -0
  215. package/es/templates/List/index.js +8 -4
  216. package/es/templates/index.d.ts +3 -0
  217. package/es/templates/index.js +1 -2
  218. package/es/timeline/ProTimeLineItem/index.d.ts +5 -0
  219. package/es/timeline/ProTimeLineItem/index.js +6 -2
  220. package/es/timeline/index.d.ts +10 -0
  221. package/es/timeline/index.js +7 -3
  222. package/es/timeline/typing.d.ts +106 -0
  223. package/es/utils/index.d.ts +3 -0
  224. package/es/utils/message.d.ts +3 -0
  225. package/es/utils/message.js +7 -3
  226. package/lib/actions/base.d.ts +24 -0
  227. package/lib/actions/confirm.d.ts +7 -0
  228. package/lib/actions/danger-confirm.d.ts +7 -0
  229. package/lib/actions/danger-pop-confirm.d.ts +5 -0
  230. package/lib/actions/dialog-component.d.ts +10 -0
  231. package/lib/actions/dialog-component.js +7 -1
  232. package/lib/actions/dialog-form.d.ts +29 -0
  233. package/lib/actions/dialog-form.js +3 -5
  234. package/lib/actions/dialog-info.d.ts +9 -0
  235. package/lib/actions/dialog-table.d.ts +9 -0
  236. package/lib/actions/dialog.d.ts +40 -0
  237. package/lib/actions/dialog.js +1 -1
  238. package/lib/actions/drawer-form.d.ts +6 -0
  239. package/lib/actions/drawer-info.d.ts +6 -0
  240. package/lib/actions/drawer-table.d.ts +6 -0
  241. package/lib/actions/drawer.d.ts +6 -0
  242. package/lib/actions/error.d.ts +7 -0
  243. package/lib/actions/index.d.ts +111 -0
  244. package/lib/actions/index.js +23 -32
  245. package/lib/actions/index.scss +5 -0
  246. package/lib/actions/link.d.ts +8 -0
  247. package/lib/actions/notice.d.ts +7 -0
  248. package/lib/actions/pop-confirm.d.ts +9 -0
  249. package/lib/actions/request.d.ts +9 -0
  250. package/lib/actions/utils.d.ts +1 -0
  251. package/lib/card/card-container.d.ts +18 -0
  252. package/lib/card/card-container.js +7 -5
  253. package/lib/card/divider.d.ts +6 -0
  254. package/lib/card/divider.js +6 -2
  255. package/lib/card/index.d.ts +109 -0
  256. package/lib/card/index.js +7 -14
  257. package/lib/card/index.scss +7 -0
  258. package/lib/card/selectable.d.ts +13 -0
  259. package/lib/card/selectable.js +6 -2
  260. package/lib/card/tab.d.ts +6 -0
  261. package/lib/card/tab.js +6 -2
  262. package/lib/card/utils.d.ts +9 -0
  263. package/lib/field/index.d.ts +3 -0
  264. package/lib/form/Components/Editable/index.d.ts +20 -0
  265. package/lib/form/Components/Editable/index.js +1 -1
  266. package/lib/form/Components/FormGroup/index.d.ts +13 -0
  267. package/lib/form/Components/FormGroup/index.js +3 -5
  268. package/lib/form/Components/LightFilter/componentMap.d.ts +3 -0
  269. package/lib/form/Components/LightFilter/index.d.ts +17 -0
  270. package/lib/form/Components/LightFilter/index.js +2 -8
  271. package/lib/form/Components/ProField/index.d.ts +2 -0
  272. package/lib/form/Components/ProField/index.js +6 -2
  273. package/lib/form/Components/ProField/mapDateFormat.d.ts +3 -0
  274. package/lib/form/Components/Text/index.d.ts +7 -0
  275. package/lib/form/Components/Text/index.js +6 -2
  276. package/lib/form/Filter/AdvancedFilter.d.ts +7 -0
  277. package/lib/form/Filter/AdvancedFilter.js +14 -17
  278. package/lib/form/Filter/Layout.d.ts +5 -0
  279. package/lib/form/Filter/LightFilter.d.ts +7 -0
  280. package/lib/form/Filter/LightFilter.js +9 -12
  281. package/lib/form/Filter/SimpleFilter.d.ts +7 -0
  282. package/lib/form/Filter/SimpleFilter.js +5 -8
  283. package/lib/form/Filter/index.d.ts +9 -0
  284. package/lib/form/Filter/index.js +9 -6
  285. package/lib/form/Filter/index2.d.ts +13 -0
  286. package/lib/form/Filter/index2.js +17 -21
  287. package/lib/form/Filter/useBindUrl.d.ts +2 -0
  288. package/lib/form/Filter/useSpecialProps.d.ts +6 -0
  289. package/lib/form/ProForm/addCascadeEffect.d.ts +2 -0
  290. package/lib/form/ProForm/customComponent.d.ts +3 -0
  291. package/lib/form/ProForm/index.d.ts +5 -0
  292. package/lib/form/ProForm/index.js +2 -4
  293. package/lib/form/ProForm/useAutoLayout.d.ts +9 -0
  294. package/lib/form/ProForm/useAutoSubmit.d.ts +6 -0
  295. package/lib/form/ProForm/useFieldRequest.d.ts +5 -0
  296. package/lib/form/ProForm/useFormDisplayValues.d.ts +4 -0
  297. package/lib/form/ProForm/useInitialRequest.d.ts +6 -0
  298. package/lib/form/SchemaForm/adapterComponent.d.ts +5 -0
  299. package/lib/form/SchemaForm/adapterDecorator.d.ts +6 -0
  300. package/lib/form/SchemaForm/adapterType.d.ts +5 -0
  301. package/lib/form/SchemaForm/index.d.ts +4 -0
  302. package/lib/form/SchemaForm/initializeArrayCards.d.ts +3 -0
  303. package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
  304. package/lib/form/SchemaForm/initializeArrayItems.d.ts +3 -0
  305. package/lib/form/SchemaForm/initializeArrayTable.d.ts +3 -0
  306. package/lib/form/SchemaForm/initializeDataSource.d.ts +15 -0
  307. package/lib/form/SchemaForm/initializeFormButton.d.ts +3 -0
  308. package/lib/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
  309. package/lib/form/SchemaForm/initializeFormGroup.d.ts +3 -0
  310. package/lib/form/SchemaForm/initializeFormStep.d.ts +5 -0
  311. package/lib/form/SchemaForm/initializeFormTab.d.ts +3 -0
  312. package/lib/form/SchemaForm/initializeReactions.d.ts +2 -0
  313. package/lib/form/SchemaForm/initializeRequest.d.ts +11 -0
  314. package/lib/form/SchemaForm/initializeRules.d.ts +11 -0
  315. package/lib/form/SchemaForm/initializeSelectTable.d.ts +3 -0
  316. package/lib/form/SchemaForm/reactions.d.ts +6 -0
  317. package/lib/form/docs/ActionResponse.d.ts +7 -0
  318. package/lib/form/fieldTypeMap.d.ts +7 -0
  319. package/lib/form/index.d.ts +125 -0
  320. package/lib/form/locales/validate.d.ts +159 -0
  321. package/lib/form/schemaNameMap.d.ts +5 -0
  322. package/lib/form/typing.d.ts +192 -0
  323. package/lib/form/typing.js +5 -1
  324. package/lib/form/utils.d.ts +55 -0
  325. package/lib/form/utils.js +0 -7
  326. package/lib/form/warning.d.ts +3 -0
  327. package/lib/hooks/index.d.ts +2 -0
  328. package/lib/index-without-icon.d.ts +32 -0
  329. package/lib/index.d.ts +32 -0
  330. package/lib/index.js +1 -1
  331. package/lib/info/components/InfoGroup/index.d.ts +5 -0
  332. package/lib/info/components/InfoGroup/index.js +6 -2
  333. package/lib/info/components/InfoValueItem/index.d.ts +5 -0
  334. package/lib/info/components/InfoValueItem/index.js +21 -23
  335. package/lib/info/components/ProInfoItem/index.d.ts +5 -0
  336. package/lib/info/components/baseInfo/index.d.ts +8 -0
  337. package/lib/info/components/headerInfo/index.d.ts +8 -0
  338. package/lib/info/components/tableInfo/index.d.ts +7 -0
  339. package/lib/info/components/tableInfo/index.js +4 -5
  340. package/lib/info/index.d.ts +10 -0
  341. package/lib/info/index.js +5 -8
  342. package/lib/info/typing.d.ts +218 -0
  343. package/lib/info/typing.js +5 -1
  344. package/lib/info/utils/index.d.ts +20 -0
  345. package/lib/info/utils/layout.d.ts +2 -0
  346. package/lib/info/utils/utils.d.ts +1 -0
  347. package/lib/layout/index.d.ts +2 -0
  348. package/lib/nocode/configurators/Card.d.ts +3 -0
  349. package/lib/nocode/configurators/PageHeader.d.ts +3 -0
  350. package/lib/nocode/configurators/ProTable.d.ts +3 -0
  351. package/lib/nocode/configurators/common.d.ts +280 -0
  352. package/lib/nocode/configurators/index.d.ts +15 -0
  353. package/lib/nocode/configurators/map.d.ts +2 -0
  354. package/lib/nocode/index.d.ts +8 -0
  355. package/lib/nocode/pages/editor.d.ts +12 -0
  356. package/lib/nocode/pages/index.d.ts +14 -0
  357. package/lib/nocode/pages/index.js +2 -2
  358. package/lib/nocode/pages/playground.d.ts +11 -0
  359. package/lib/nocode/pages/playground.js +7 -3
  360. package/lib/nocode/pages/renderer.d.ts +10 -0
  361. package/lib/nocode/pages/renderer.js +8 -4
  362. package/lib/nocode/playground.d.ts +14 -0
  363. package/lib/nocode/playground.js +6 -2
  364. package/lib/page-container/index.d.ts +3 -0
  365. package/lib/page-header/index.d.ts +74 -0
  366. package/lib/page-header/index.js +6 -12
  367. package/lib/sidebar/components/sidebar-container/index.d.ts +5 -0
  368. package/lib/sidebar/components/sidebar-container/index.js +9 -5
  369. package/lib/sidebar/components/tree/index.d.ts +6 -0
  370. package/lib/sidebar/components/tree/index.js +6 -2
  371. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +15 -0
  372. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +6 -2
  373. package/lib/sidebar/components/tree-node/components/IconAction/index.d.ts +12 -0
  374. package/lib/sidebar/components/tree-node/components/IconAction/index.js +2 -4
  375. package/lib/sidebar/components/tree-node/components/IconSwitch/index.d.ts +23 -0
  376. package/lib/sidebar/components/tree-node/components/IconSwitch/index.scss +1 -1
  377. package/lib/sidebar/components/tree-node/index.d.ts +7 -0
  378. package/lib/sidebar/components/tree-node/index.js +18 -21
  379. package/lib/sidebar/index.d.ts +9 -0
  380. package/lib/sidebar/index.js +17 -4
  381. package/lib/sidebar/typing.d.ts +141 -0
  382. package/lib/sidebar/typing.js +5 -1
  383. package/lib/sidebar/utils/action-ref.d.ts +3 -0
  384. package/lib/sidebar/utils/index.d.ts +361 -0
  385. package/lib/sidebar/utils/index.js +11 -11
  386. package/lib/skeleton/index.d.ts +3 -0
  387. package/lib/table/components/CardView/index.d.ts +5 -0
  388. package/lib/table/components/CardView/index.js +468 -0
  389. package/lib/table/components/CardView/index.scss +46 -0
  390. package/lib/table/components/EmptyContent/index.d.ts +2 -0
  391. package/lib/table/components/Filter/index.d.ts +10 -0
  392. package/lib/table/components/Filter/index.js +21 -14
  393. package/lib/table/components/Layout/index.d.ts +5 -0
  394. package/lib/table/components/Layout/index.js +9 -11
  395. package/lib/table/components/LoadMore/index.d.ts +20 -0
  396. package/lib/table/components/LoadMore/index.js +128 -0
  397. package/lib/table/components/LoadMore/index.scss +19 -0
  398. package/lib/table/components/Pagination/index.d.ts +7 -0
  399. package/lib/table/components/Pagination/index.js +14 -10
  400. package/lib/table/components/QuickAction/index.d.ts +11 -0
  401. package/lib/table/components/QuickAction/index.js +2 -4
  402. package/lib/table/components/ToolBar/CardSwitch.d.ts +8 -0
  403. package/lib/table/components/ToolBar/CardSwitch.js +82 -0
  404. package/lib/table/components/ToolBar/DensityIcon.d.ts +4 -0
  405. package/lib/table/components/ToolBar/DensityIcon.js +3 -2
  406. package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
  407. package/lib/table/components/ToolBar/FilterColumnIcon.js +13 -2
  408. package/lib/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
  409. package/lib/table/components/ToolBar/Fullscreen.d.ts +10 -0
  410. package/lib/table/components/ToolBar/Fullscreen.js +15 -2
  411. package/lib/table/components/ToolBar/RefreshIcon.d.ts +4 -0
  412. package/lib/table/components/ToolBar/RefreshIcon.js +1 -2
  413. package/lib/table/components/ToolBar/index.d.ts +5 -0
  414. package/lib/table/components/ToolBar/index.js +70 -33
  415. package/lib/table/components/ToolBar/index.scss +10 -1
  416. package/lib/table/index.d.ts +5 -0
  417. package/lib/table/index.js +153 -60
  418. package/lib/table/typing.d.ts +371 -0
  419. package/lib/table/typing.js +5 -1
  420. package/lib/table/utils/columnRender.d.ts +13 -0
  421. package/lib/table/utils/columnRender.js +28 -28
  422. package/lib/table/utils/genProColumnToColumn.d.ts +13 -0
  423. package/lib/table/utils/genProColumnToColumn.js +3 -1
  424. package/lib/table/utils/getTableProps.d.ts +2 -0
  425. package/lib/table/utils/getTableSortIcons.d.ts +3 -0
  426. package/lib/table/utils/index.d.ts +19 -0
  427. package/lib/table/utils/pureColumnRender.d.ts +9 -0
  428. package/lib/table/utils/pureColumnRender.js +1 -3
  429. package/lib/table/utils/pureGenProColumnToColumn.d.ts +7 -0
  430. package/lib/table/utils/useTableSelection.d.ts +3 -0
  431. package/lib/templates/Detail/index.d.ts +2 -0
  432. package/lib/templates/Form/index.d.ts +2 -0
  433. package/lib/templates/List/index.d.ts +9 -0
  434. package/lib/templates/List/index.js +8 -4
  435. package/lib/templates/index.d.ts +3 -0
  436. package/lib/timeline/ProTimeLineItem/index.d.ts +5 -0
  437. package/lib/timeline/ProTimeLineItem/index.js +6 -2
  438. package/lib/timeline/index.d.ts +10 -0
  439. package/lib/timeline/index.js +7 -3
  440. package/lib/timeline/typing.d.ts +106 -0
  441. package/lib/timeline/typing.js +5 -1
  442. package/lib/utils/index.d.ts +3 -0
  443. package/lib/utils/message.d.ts +3 -0
  444. package/lib/utils/message.js +7 -3
  445. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import { MaybePromise } from '@teamix/utils';
3
+ export interface BaseAction {
4
+ /** 事件触发方式,默认是 onClick */
5
+ trigger?: string;
6
+ /** 事件发生时,是否执行 e.preventDefault() 方法 */
7
+ preventDefault?: boolean;
8
+ /** 事件发生时,是否执行 e.stopPropagation() 方法 */
9
+ stopPropagation?: boolean;
10
+ /** 事件执行前的处理函数
11
+ * 如果返回 false 或者 Promise<false>,则停止 Action 执行。
12
+ * 如果返回 true 或者 Promise<true>,则正常执行 Action。
13
+ * 如果返回其他对象,则正常执行 Action,并把返回的对象放到接下来 Action 的上下文中。
14
+ */
15
+ beforeAction?: () => MaybePromise<any>;
16
+ /** 事件开始执行后的回调函数 */
17
+ onTrigger?: () => void;
18
+ /** 事件开始执行完毕的回调函数 */
19
+ onFinish?: (params?: any) => any;
20
+ }
21
+ export declare function eventHandler(action: BaseAction, actionContext: any, onTrigger: (context: any, e: React.MouseEvent<HTMLElement>) => void): {
22
+ [x: string]: (e: React.MouseEvent<HTMLElement>) => Promise<void>;
23
+ };
24
+ export default eventHandler;
@@ -0,0 +1,7 @@
1
+ import { DialogAction } from './dialog';
2
+ export interface ConfirmAction extends DialogAction {
3
+ }
4
+ export declare function useConfirmAction(action: DialogAction, context?: any): {
5
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
6
+ };
7
+ export default useConfirmAction;
@@ -0,0 +1,7 @@
1
+ import { DialogAction } from './dialog';
2
+ export interface DangerConfirmAction extends DialogAction {
3
+ }
4
+ export declare function useDangerConfirmAction(action: DialogAction, context?: any): {
5
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
6
+ };
7
+ export default useDangerConfirmAction;
@@ -0,0 +1,5 @@
1
+ import { PopConfirmAction } from './pop-confirm';
2
+ export declare function useDangerPopConfirmAction(action: PopConfirmAction, context?: any): {
3
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
4
+ };
5
+ export default useDangerPopConfirmAction;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { DialogAction } from './dialog';
3
+ export interface DialogComponentAction extends DialogAction {
4
+ schema: any;
5
+ component: React.FC<any>;
6
+ }
7
+ export declare function useDialogComponentAction(action: DialogComponentAction, context?: any): {
8
+ [x: string]: (e: React.MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
9
+ };
10
+ export default useDialogComponentAction;
@@ -1,5 +1,11 @@
1
1
  var _excluded = ["schema", "component"];
2
2
 
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; }
4
+
5
+ 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
+
7
+ 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; }
8
+
3
9
  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
10
 
5
11
  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; }
@@ -13,7 +19,7 @@ export function useDialogComponentAction(action, context) {
13
19
  others = _objectWithoutProperties(action, _excluded);
14
20
 
15
21
  return useDialogAction(Object.assign({
16
- content: /*#__PURE__*/React.createElement(Component, addContext(schema, context)),
22
+ content: /*#__PURE__*/React.createElement(Component, _objectSpread({}, addContext(schema, context))),
17
23
  closeable: true
18
24
  }, others), context);
19
25
  }
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { ProFormProps, ProFormSchema, ProFormType } from '../form';
3
+ import { RequestAction } from './request';
4
+ import { DialogAction } from './dialog';
5
+ export interface DialogFormAction extends DialogAction {
6
+ /** 表单初始值 */
7
+ initialValues?: any;
8
+ /** 表单初始化数据请求 */
9
+ initialRequest?: RequestAction;
10
+ /** 表单提交发送数据请求时,是否携带全部表单数据。默认携带 */
11
+ useFieldValuesForRequest?: boolean;
12
+ /**
13
+ * @deprecated 建议使用 schema 配置 ProFormProps 代替
14
+ */
15
+ formProps?: Omit<ProFormProps, 'schema' | 'form'>;
16
+ /** 同时支持两种配置方式:
17
+ * 如果想完整定制表单,可使用完整的表单配置项 ProFormProps,但不可以传 form 字段,可以通过 formRef 获取内部 form 实例。
18
+ * 否则可以只配置 ProFormSchema
19
+ */
20
+ schema: ProFormSchema | Omit<ProFormProps, 'form'>;
21
+ /** 外部传来的 formRef,用于获取内置 form 实例 */
22
+ formRef?: React.MutableRefObject<ProFormType | undefined>;
23
+ /** 是否开启懒惰校验,只校验第一个非法规则,默认开启 */
24
+ validateFirst?: boolean;
25
+ }
26
+ export declare function useDialogFormAction(action: DialogFormAction, context?: any): {
27
+ [x: string]: (e: React.MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
28
+ };
29
+ export default useDialogFormAction;
@@ -7,8 +7,6 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
7
7
 
8
8
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
9
9
 
10
- function _extends() { _extends = Object.assign || 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); }
11
-
12
10
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
13
11
 
14
12
  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."); }
@@ -141,10 +139,10 @@ var DialogForm = function DialogForm(props) {
141
139
  style: {
142
140
  display: 'block'
143
141
  }
144
- }, /*#__PURE__*/React.createElement(ProForm, _extends({
142
+ }, /*#__PURE__*/React.createElement(ProForm, _objectSpread(_objectSpread({
145
143
  form: form,
146
144
  schema: formSchema
147
- }, getDefaultFormPropsByDialogSize(size), otherFormProps)));
145
+ }, getDefaultFormPropsByDialogSize(size)), otherFormProps)));
148
146
  };
149
147
 
150
148
  export function useDialogFormAction(action, context) {
@@ -176,7 +174,7 @@ export function useDialogFormAction(action, context) {
176
174
  formProps: formProps,
177
175
  context: contentContext
178
176
  };
179
- return /*#__PURE__*/React.createElement(DialogForm, _extends({
177
+ return /*#__PURE__*/React.createElement(DialogForm, _objectSpread({
180
178
  innerFormRef: innerFormRef,
181
179
  formRef: propsFormRef
182
180
  }, dialogFormProps));
@@ -0,0 +1,9 @@
1
+ import { DialogAction } from './dialog';
2
+ import { ProInfoProps } from '..';
3
+ export interface DialogInfoAction extends DialogAction {
4
+ schema: ProInfoProps;
5
+ }
6
+ export declare function useDialogInfoAction(action: DialogInfoAction, context?: any): {
7
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
8
+ };
9
+ export default useDialogInfoAction;
@@ -0,0 +1,9 @@
1
+ import { DialogAction } from './dialog';
2
+ import { ProTableProps } from '..';
3
+ export interface DialogTableAction extends DialogAction {
4
+ schema: ProTableProps;
5
+ }
6
+ export declare function useDialogTableAction(action: DialogTableAction, context?: any): {
7
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
8
+ };
9
+ export default useDialogTableAction;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import { QuickShowConfig } from '@alicloudfe/components/types/dialog';
3
+ import { quickShowDrawerProps } from '@alicloudfe/components/types/drawer';
4
+ import { ProFormSchema, ProFormSchemaItem } from '../form';
5
+ import { ProMessageProps } from '../utils/message';
6
+ import { RequestAction } from './request';
7
+ export interface DialogAction extends Omit<RequestAction, 'url'>, Omit<QuickShowConfig, 'onError' | 'type'>, Omit<quickShowDrawerProps, 'trigger' | 'animation' | 'height' | 'locale' | 'onError'> {
8
+ /** 点击「确认按钮」后的数据请求地址,非必填,不填就不发请求 */
9
+ url?: string;
10
+ /** 弹窗类型,支持普通弹窗和抽屉两种模式,默认为普通弹窗 */
11
+ dialogType?: 'dialog' | 'drawer' | 'pop';
12
+ /** 弹窗快捷调用类型 */
13
+ dialogQuickShowType?: 'alert' | 'confirm';
14
+ /** 弹窗消息类型 */
15
+ messageType?: 'success' | 'warning' | 'error' | 'notice' | 'help' | 'loading';
16
+ /** 位于弹窗内容最上方的自定义内容区 */
17
+ beforeContent?: React.ReactNode;
18
+ /** 位于弹窗内容上方的消息提示区 */
19
+ message?: ProMessageProps;
20
+ /** 位于弹窗内容下方的自定义内容区 */
21
+ afterContent?: React.ReactNode;
22
+ /** 弹窗页脚描述区,位于按钮组的对面 */
23
+ footerDescription?: React.ReactNode | ProFormSchema | ProFormSchemaItem;
24
+ /** 弹窗内容组件的 schema */
25
+ schema?: any;
26
+ /** 弹窗内容区的组件 */
27
+ component?: any;
28
+ /** 点击确定自定义回调函数 */
29
+ onOk?: any;
30
+ /** 点击取消自定义回调函数 */
31
+ onCancel?: any;
32
+ /** 隐藏footer区域 */
33
+ hideFooter?: boolean;
34
+ /** 支持通过传函数自定义底部按钮 */
35
+ footer?: any;
36
+ }
37
+ export declare function useDialogAction(action: DialogAction, actionContext?: any, hasForm?: boolean): {
38
+ [x: string]: (e: React.MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
39
+ };
40
+ export default useDialogAction;
@@ -229,7 +229,7 @@ export function useDialogAction(action, actionContext, hasForm) {
229
229
  var dialogContext = Object.assign({}, context, {
230
230
  hide: hide
231
231
  });
232
- var dialogContent = Component ? /*#__PURE__*/React.createElement(Component, addContext(componentProps, dialogContext)) : addContextForReactNode(content, dialogContext);
232
+ var dialogContent = Component ? /*#__PURE__*/React.createElement(Component, _objectSpread({}, addContext(componentProps, dialogContext))) : addContextForReactNode(content, dialogContext);
233
233
 
234
234
  var quickShowProps = _objectSpread(_objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, "".concat(isPop ? 'onConfirm' : 'onOk'), hideFooter && !isPop && isDrawer ? false : onOk), _defineProperty(_objectSpread2, "onCancel", hideFooter && !isPop && isDrawer ? false : function () {
235
235
  propsOnCancel && propsOnCancel(context);
@@ -0,0 +1,6 @@
1
+ import { DialogFormAction } from './dialog-form';
2
+ export declare type DrawerFormAction = DialogFormAction;
3
+ export declare function useDrawerFormAction(action: DrawerFormAction, context?: any): {
4
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
5
+ };
6
+ export default useDrawerFormAction;
@@ -0,0 +1,6 @@
1
+ import { DialogInfoAction } from './dialog-info';
2
+ export declare type DrawerInfoAction = DialogInfoAction;
3
+ export declare function useDrawerInfoAction(action: DrawerInfoAction, context?: any): {
4
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
5
+ };
6
+ export default useDrawerInfoAction;
@@ -0,0 +1,6 @@
1
+ import { DialogTableAction } from './dialog-table';
2
+ export declare type DrawerTableAction = DialogTableAction;
3
+ export declare function useDrawerTableAction(action: DrawerTableAction, context?: any): {
4
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
5
+ };
6
+ export default useDrawerTableAction;
@@ -0,0 +1,6 @@
1
+ import { DialogAction } from './dialog';
2
+ export declare type DrawerAction = Omit<DialogAction, 'dialogQuickShowType' | 'messageType'>;
3
+ export declare function useDrawerAction(action: DrawerAction, context?: any): {
4
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
5
+ };
6
+ export default useDrawerAction;
@@ -0,0 +1,7 @@
1
+ import { DialogAction } from './dialog';
2
+ export interface ErrorAction extends DialogAction {
3
+ }
4
+ export declare function useErrorAction(action: DialogAction, context?: any): {
5
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
6
+ };
7
+ export default useErrorAction;
@@ -0,0 +1,111 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { ButtonProps } from '@alicloudfe/components/types/button';
3
+ import { MenuButtonProps } from '@alicloudfe/components/types/menu-button';
4
+ import { TooltipProps } from '@alicloudfe/components/types/balloon';
5
+ import { LinkAction } from './link';
6
+ import { RequestAction } from './request';
7
+ import { DialogAction } from './dialog';
8
+ import { DialogFormAction } from './dialog-form';
9
+ import { DialogTableAction } from './dialog-table';
10
+ import { DialogInfoAction } from './dialog-info';
11
+ import { PopConfirmAction } from './pop-confirm';
12
+ import './index.scss';
13
+ export declare type ProActionConfig = ({
14
+ type: 'dialog-form' | 'drawer-form';
15
+ } & DialogFormAction) | ({
16
+ type: 'dialog-table' | 'drawer-table';
17
+ } & DialogTableAction) | ({
18
+ type: 'dialog-info' | 'drawer-info';
19
+ } & DialogInfoAction) | ({
20
+ type: 'pop-confirm' | 'danger-pop-confirm';
21
+ } & PopConfirmAction) | ({
22
+ type: 'dialog' | 'drawer' | 'confirm' | 'danger-confirm' | 'notice' | 'error';
23
+ } & DialogAction) | ({
24
+ type: 'request';
25
+ } & RequestAction) | ({
26
+ type: 'link';
27
+ } & LinkAction);
28
+ export declare function registerActionHandler(id: string, extendActionId: string, defaultConfig: any): void;
29
+ export declare function useAction(config?: ProActionConfig, context?: any): any;
30
+ export interface ProActionButtonProps extends ProActionCommonProps, ButtonProps {
31
+ config?: ProActionConfig;
32
+ disabled?: any;
33
+ tooltip?: ReactNode;
34
+ disabledTooltip?: ReactNode;
35
+ icon?: string;
36
+ tooltipProps?: TooltipProps;
37
+ onClick?: (event: React.MouseEvent<Element, MouseEvent>, context?: any) => void;
38
+ }
39
+ export declare const ProActionButton: (props: ProActionButtonProps) => JSX.Element;
40
+ export interface ProActionCommonProps {
41
+ key?: string | number;
42
+ visible?: any;
43
+ context?: any;
44
+ 'data-teamix-spm'?: string;
45
+ }
46
+ export interface ProActionMenuButtonProps extends ProActionCommonProps, Omit<MenuButtonProps, 'visible'> {
47
+ actions: ProActionProps[];
48
+ icon?: string;
49
+ noArrow?: boolean;
50
+ 'data-teamix-spm'?: string;
51
+ }
52
+ export declare const ProActionMenuButton: (props: ProActionMenuButtonProps) => JSX.Element;
53
+ export interface ProActionDividerProps extends ProActionCommonProps {
54
+ type: 'divider';
55
+ }
56
+ export declare type ProActionProps = ProActionButtonProps | ProActionMenuButtonProps | ProActionDividerProps;
57
+ export declare type ProActionGroupProps = {
58
+ /** 操作组类型:按钮、文字按钮 */
59
+ type?: 'button' | 'text';
60
+ /** 上下文 */
61
+ context?: any;
62
+ /** 操作项配置 */
63
+ actions: ProActionProps[];
64
+ /** 操作按钮最长数量,超出后折叠,默认为4 */
65
+ max?: number;
66
+ /**
67
+ * @deprecated 建议使用 more 代替
68
+ */
69
+ moreText?: string;
70
+ /** 更多按钮的配置,只有在actions数量超过max时才有效 */
71
+ more?: string | Omit<ProActionMenuButtonProps, 'actions'>;
72
+ /** 是否有分割线,只有type="text"时生效,默认有分割线 */
73
+ divider?: boolean;
74
+ /** 用于埋点 */
75
+ ['data-teamix-spm']?: string;
76
+ } & React.HTMLAttributes<HTMLElement>;
77
+ export declare function ProActionGroup(props: ProActionGroupProps): JSX.Element;
78
+ declare const ProAction: (props: ProActionProps) => JSX.Element;
79
+ export default ProAction;
80
+ /**
81
+ * @deprecated 建议使用 ProActionGroup 代替
82
+ */
83
+ export declare const ActionGroup: typeof ProActionGroup;
84
+ /**
85
+ * @deprecated 建议使用 ProActionButton 代替
86
+ */
87
+ export declare const ActionButton: (props: ProActionButtonProps) => JSX.Element;
88
+ /**
89
+ * @deprecated 建议使用 ProActionMenuButton 代替
90
+ */
91
+ export declare const ActionMenuButton: (props: ProActionMenuButtonProps) => JSX.Element;
92
+ /**
93
+ * @deprecated 建议使用 ProActionConfig 代替
94
+ */
95
+ export declare type ActionConfig = ProActionConfig;
96
+ /**
97
+ * @deprecated 建议使用 ProActionButtonProps 代替
98
+ */
99
+ export declare type IActionButton = ProActionButtonProps;
100
+ /**
101
+ * @deprecated 建议使用 ProActionMenuButtonProps 代替
102
+ */
103
+ export declare type IActionMenuButton = ProActionMenuButtonProps;
104
+ /**
105
+ * @deprecated 建议使用 ProActionGroupProps 代替
106
+ */
107
+ export declare type ActionGroupProps = ProActionGroupProps;
108
+ /**
109
+ * @deprecated 建议使用 ProActionProps 代替
110
+ */
111
+ export declare type ICommonActionButton = ProActionProps;
@@ -19,8 +19,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
19
19
 
20
20
  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; }
21
21
 
22
- function _extends() { _extends = Object.assign || 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); }
23
-
24
22
  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; }
25
23
 
26
24
  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; }
@@ -190,7 +188,7 @@ export var ProActionButton = function ProActionButton(props) {
190
188
  buttonProps['data-teamix-spm'] = dataTeamixSpm;
191
189
  }
192
190
 
193
- var content = /*#__PURE__*/React.createElement(Button, _extends({
191
+ var content = /*#__PURE__*/React.createElement(Button, _objectSpread({
194
192
  type: type
195
193
  }, buttonProps), buttonContent(children, icon, iconSize, context));
196
194
 
@@ -203,15 +201,15 @@ export var ProActionButton = function ProActionButton(props) {
203
201
  if (tooltip || disabledTooltip) {
204
202
  if (tooltip && !disabledTooltip) {
205
203
  if (!disabled) {
206
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, tooltip);
204
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), tooltip);
207
205
  }
208
206
  } else if (!tooltip && disabledTooltip) {
209
207
  if (disabled) {
210
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, disabledTooltip);
208
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), disabledTooltip);
211
209
  }
212
210
  } else if (tooltip && disabledTooltip) {
213
211
  var showToolTip = disabled ? disabledTooltip : tooltip;
214
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, showToolTip);
212
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), showToolTip);
215
213
  }
216
214
  }
217
215
 
@@ -264,19 +262,19 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
264
262
  if (tooltip || disabledTooltip) {
265
263
  if (tooltip && !disabledTooltip) {
266
264
  if (!disabled) {
267
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, tooltip);
265
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), tooltip);
268
266
  }
269
267
  } else if (!tooltip && disabledTooltip) {
270
268
  if (disabled) {
271
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, disabledTooltip);
269
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), disabledTooltip);
272
270
  }
273
271
  } else if (tooltip && disabledTooltip) {
274
272
  var showToolTip = disabled ? disabledTooltip : tooltip;
275
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, showToolTip);
273
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), showToolTip);
276
274
  }
277
275
  }
278
276
 
279
- return /*#__PURE__*/React.createElement("div", _extends({
277
+ return /*#__PURE__*/React.createElement("div", _objectSpread({
280
278
  className: cls(_defineProperty({}, basePrefix('disabled'), disabled), basePrefix('menu-item'), prefixCls('menu-item'))
281
279
  }, buttonProps), content);
282
280
  };
@@ -320,7 +318,7 @@ export var ProActionMenuButton = function ProActionMenuButton(props) {
320
318
  noArrow = props.noArrow,
321
319
  others = _objectWithoutProperties(props, _excluded4);
322
320
 
323
- return /*#__PURE__*/React.createElement(MenuButton, _extends({
321
+ return /*#__PURE__*/React.createElement(MenuButton, _objectSpread({
324
322
  popupTriggerType: "hover",
325
323
  autoWidth: false,
326
324
  menuProps: {
@@ -338,9 +336,8 @@ export var ProActionMenuButton = function ProActionMenuButton(props) {
338
336
  }, others), actions.map(function (action, i) {
339
337
  return renderCommonActionButtonMenuItem(action, action.key || i, context, others === null || others === void 0 ? void 0 : others['data-teamix-spm']);
340
338
  }));
341
- };
339
+ }; // 超出 max,则折叠起来
342
340
 
343
- // 超出 max,则折叠起来
344
341
  function foldExtraActions(actions, max, moreConfig) {
345
342
  if (actions.length <= max) {
346
343
  return actions;
@@ -378,10 +375,9 @@ function renderCommonActionButton(button, context, isTypeText, dataTeamixSpm) {
378
375
  });
379
376
  }
380
377
 
381
- var _ref = button,
382
- buttonContext = _ref.context,
383
- text = _ref.text,
384
- others = _objectWithoutProperties(_ref, _excluded5);
378
+ var buttonContext = button.context,
379
+ text = button.text,
380
+ others = _objectWithoutProperties(button, _excluded5);
385
381
 
386
382
  var buttonProps = _objectSpread({
387
383
  context: Object.assign({}, context, buttonContext),
@@ -393,10 +389,10 @@ function renderCommonActionButton(button, context, isTypeText, dataTeamixSpm) {
393
389
  }
394
390
 
395
391
  if (!button.actions) {
396
- return /*#__PURE__*/React.createElement(ProActionButton, buttonProps);
392
+ return /*#__PURE__*/React.createElement(ProActionButton, _objectSpread({}, buttonProps));
397
393
  }
398
394
 
399
- return /*#__PURE__*/React.createElement(ProActionMenuButton, buttonProps);
395
+ return /*#__PURE__*/React.createElement(ProActionMenuButton, _objectSpread({}, buttonProps));
400
396
  }
401
397
 
402
398
  function getDefaultMoreButton(type, more) {
@@ -435,10 +431,9 @@ function getKey(index, key) {
435
431
 
436
432
  function getActionConfig(action, index, context) {
437
433
  if (action.actions) {
438
- var _ref2 = action,
439
- _key = _ref2.key,
440
- actions = _ref2.actions,
441
- _others = _objectWithoutProperties(_ref2, _excluded6);
434
+ var _key = action.key,
435
+ actions = action.actions,
436
+ _others = _objectWithoutProperties(action, _excluded6);
442
437
 
443
438
  return _objectSpread({
444
439
  key: getKey(index, _key),
@@ -450,10 +445,9 @@ function getActionConfig(action, index, context) {
450
445
  }, getTargetValue(_others, context));
451
446
  }
452
447
 
453
- var _ref3 = action,
454
- key = _ref3.key,
455
- config = _ref3.config,
456
- others = _objectWithoutProperties(_ref3, _excluded7);
448
+ var key = action.key,
449
+ config = action.config,
450
+ others = _objectWithoutProperties(action, _excluded7);
457
451
 
458
452
  return _objectSpread({
459
453
  key: getKey(index, key),
@@ -484,7 +478,7 @@ export function ProActionGroup(props) {
484
478
  return action.visible !== false;
485
479
  });
486
480
  var formatedActions = formatGroupActions(filteredActions, max, getDefaultMoreButton(type, more || moreText));
487
- return /*#__PURE__*/React.createElement("div", _extends({
481
+ return /*#__PURE__*/React.createElement("div", _objectSpread({
488
482
  className: cls('teamix-pro-actions', "teamix-pro-actions-type-".concat(type), className, {
489
483
  'teamix-pro-actions-divider': type === 'button' ? false : divider
490
484
  })
@@ -524,7 +518,4 @@ export var ActionButton = ProActionButton;
524
518
  * @deprecated 建议使用 ProActionMenuButton 代替
525
519
  */
526
520
 
527
- export var ActionMenuButton = ProActionMenuButton;
528
- /**
529
- * @deprecated 建议使用 ProActionConfig 代替
530
- */
521
+ export var ActionMenuButton = ProActionMenuButton;
@@ -110,15 +110,20 @@
110
110
 
111
111
  .next-dialog-body {
112
112
  .teamix-pro-info {
113
+ padding-right: 16px;
113
114
  .next-card-content-container {
114
115
  margin-top: 10px;
115
116
  padding-bottom: 10px;
117
+ padding-right: 0;
116
118
  .next-col.next-col-24:last-child {
117
119
  .teamix-pro-info-item:last-child {
118
120
  padding-bottom: 0px;
119
121
  }
120
122
  }
121
123
  }
124
+ .teamix-pro-info-item-value {
125
+ padding-right: 0px;
126
+ }
122
127
  }
123
128
  }
124
129
 
@@ -0,0 +1,8 @@
1
+ import { LocationHistory } from '@teamix/utils';
2
+ import { BaseAction } from './base';
3
+ export interface LinkAction extends BaseAction, LocationHistory {
4
+ }
5
+ export declare function useLinkAction(action: LinkAction, actionContext?: any): {
6
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
7
+ };
8
+ export default useLinkAction;
@@ -0,0 +1,7 @@
1
+ import { DialogAction } from './dialog';
2
+ export interface NoticeAction extends DialogAction {
3
+ }
4
+ export declare function useNoticeAction(action: DialogAction, context?: any): {
5
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
6
+ };
7
+ export default useNoticeAction;
@@ -0,0 +1,9 @@
1
+ import { IPopConfirmProps } from '@teamix/pop-confirm';
2
+ import { DialogAction } from './dialog';
3
+ export declare type PopConfirmAction = DialogAction & Omit<IPopConfirmProps, 'type' | 'trigger'> & {
4
+ popType?: IPopConfirmProps['type'];
5
+ };
6
+ export declare function usePopConfirmAction(action: PopConfirmAction, context?: any): {
7
+ [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
8
+ };
9
+ export default usePopConfirmAction;
@@ -0,0 +1,9 @@
1
+ import { CommonRequestConfig } from '@teamix/utils';
2
+ import { BaseAction } from './base';
3
+ export interface RequestAction extends CommonRequestConfig, BaseAction {
4
+ }
5
+ export declare function doRequest(action: RequestAction, context?: any, history?: any, extraParams?: any): Promise<unknown>;
6
+ export declare function useRequestAction(action: RequestAction, actionContext?: any): {
7
+ loading: boolean;
8
+ };
9
+ export default useRequestAction;
@@ -26,8 +26,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
26
26
  import { useState } from 'react';
27
27
  import { useHistory } from 'react-router-dom';
28
28
  import { doCommonRequest } from '@teamix/utils';
29
- import { eventHandler } from './base';
30
- // action 里的数据请求都默认是 post 类型
29
+ import { eventHandler } from './base'; // action 里的数据请求都默认是 post 类型
30
+
31
31
  export function doRequest(action, context, history, extraParams) {
32
32
  var _action$method = action.method,
33
33
  method = _action$method === void 0 ? 'post' : _action$method,
@@ -0,0 +1 @@
1
+ export declare function addContext(props?: any, context?: any): any;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { ProCardProps } from './index';
3
+ /**
4
+ * @deprecated 建议使用 ProCardProps 代替
5
+ */
6
+ export declare type ProCardContainerProps = ProCardProps;
7
+ /**
8
+ * @deprecated 建议使用 ProCard 代替
9
+ */
10
+ export declare const ProCardContainer: React.FC<ProCardContainerProps>;
11
+ /**
12
+ * @deprecated 建议使用 ProCardContainer 代替
13
+ */
14
+ export declare const CardContainer: React.FC<ProCardProps>;
15
+ /**
16
+ * @deprecated 建议使用 ProCardContainerProps 代替
17
+ */
18
+ export declare type CardContainerProps = ProCardContainerProps;