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

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 (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
@@ -1,18 +1,17 @@
1
1
  var _excluded = ["type"],
2
- _excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "disabled", "onClick", "tooltip", "disabledTooltip", "tooltipProps"],
2
+ _excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "disabled", "onClick", "tooltip", "disabledTooltip", "tooltipProps", "data-teamix-spm"],
3
3
  _excluded3 = ["loading"],
4
4
  _excluded4 = ["icon", "iconSize", "label", "actions", "children", "context", "type", "className", "noArrow"],
5
5
  _excluded5 = ["context", "text"],
6
6
  _excluded6 = ["key", "actions"],
7
7
  _excluded7 = ["key", "config"],
8
- _excluded8 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className"];
8
+ _excluded8 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className", "data-teamix-spm"];
9
9
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
10
10
  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."); }
11
11
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
12
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
13
13
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
14
14
  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; }
15
- 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); }
16
15
  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; }
17
16
  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; }
18
17
  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; }
@@ -135,6 +134,7 @@ export var ProActionButton = function ProActionButton(props) {
135
134
  tooltip = props.tooltip,
136
135
  disabledTooltip = props.disabledTooltip,
137
136
  tooltipProps = props.tooltipProps,
137
+ dataTeamixSpm = props['data-teamix-spm'],
138
138
  others = _objectWithoutProperties(props, _excluded2);
139
139
  var actionProps = useAction(config, context);
140
140
  var buttonProps = _onClick ? _objectSpread(_objectSpread(_objectSpread({
@@ -146,7 +146,10 @@ export var ProActionButton = function ProActionButton(props) {
146
146
  }) : _objectSpread(_objectSpread({
147
147
  disabled: disabled
148
148
  }, actionProps), others);
149
- var content = /*#__PURE__*/React.createElement(Button, _extends({
149
+ if (dataTeamixSpm) {
150
+ buttonProps['data-teamix-spm'] = dataTeamixSpm;
151
+ }
152
+ var content = /*#__PURE__*/React.createElement(Button, _objectSpread({
150
153
  type: type
151
154
  }, buttonProps), buttonContent(children, icon, iconSize, context));
152
155
  var baseToolTipProps = _objectSpread({
@@ -157,22 +160,23 @@ export var ProActionButton = function ProActionButton(props) {
157
160
  if (tooltip || disabledTooltip) {
158
161
  if (tooltip && !disabledTooltip) {
159
162
  if (!disabled) {
160
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, tooltip);
163
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), tooltip);
161
164
  }
162
165
  } else if (!tooltip && disabledTooltip) {
163
166
  if (disabled) {
164
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, disabledTooltip);
167
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), disabledTooltip);
165
168
  }
166
169
  } else if (tooltip && disabledTooltip) {
167
170
  var showToolTip = disabled ? disabledTooltip : tooltip;
168
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, showToolTip);
171
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), showToolTip);
169
172
  }
170
173
  }
171
174
  return content;
172
175
  };
173
176
  var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
174
177
  var action = props.action,
175
- context = props.context;
178
+ context = props.context,
179
+ dataTeamixSpm = props['data-teamix-spm'];
176
180
  var config = action.config,
177
181
  btnContext = action.context,
178
182
  _onClick2 = action.onClick,
@@ -197,6 +201,9 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
197
201
  return _onClick2(e, context);
198
202
  }
199
203
  }) : _objectSpread({}, menuItemProps);
204
+ if (dataTeamixSpm) {
205
+ buttonProps['data-teamix-spm'] = dataTeamixSpm;
206
+ }
200
207
  var content = buttonContent(children, icon, undefined, context);
201
208
  var baseToolTipProps = _objectSpread({
202
209
  triggerType: 'hover',
@@ -206,22 +213,22 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
206
213
  if (tooltip || disabledTooltip) {
207
214
  if (tooltip && !disabledTooltip) {
208
215
  if (!disabled) {
209
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, tooltip);
216
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), tooltip);
210
217
  }
211
218
  } else if (!tooltip && disabledTooltip) {
212
219
  if (disabled) {
213
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, disabledTooltip);
220
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), disabledTooltip);
214
221
  }
215
222
  } else if (tooltip && disabledTooltip) {
216
223
  var showToolTip = disabled ? disabledTooltip : tooltip;
217
- content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, showToolTip);
224
+ content = /*#__PURE__*/React.createElement(Balloon.Tooltip, _objectSpread({}, baseToolTipProps), showToolTip);
218
225
  }
219
226
  }
220
- return /*#__PURE__*/React.createElement("div", _extends({
227
+ return /*#__PURE__*/React.createElement("div", _objectSpread({
221
228
  className: cls(_defineProperty({}, basePrefix('disabled'), disabled), basePrefix('menu-item'), prefixCls('menu-item'))
222
229
  }, buttonProps), content);
223
230
  };
224
- function renderCommonActionButtonMenuItem(action, key, context) {
231
+ function renderCommonActionButtonMenuItem(action, key, context, dataTeamixSpm) {
225
232
  if (action.type === 'divider') {
226
233
  return /*#__PURE__*/React.createElement(Menu.Divider, {
227
234
  key: key
@@ -233,13 +240,14 @@ function renderCommonActionButtonMenuItem(action, key, context) {
233
240
  key: key,
234
241
  label: menuBtn.label || menuBtn.children
235
242
  }, menuBtn.actions.map(function (a) {
236
- return renderCommonActionButtonMenuItem(a, a.key, context);
243
+ return renderCommonActionButtonMenuItem(a, a.key, context, a['data-teamix-spm']);
237
244
  }));
238
245
  }
239
246
  return /*#__PURE__*/React.createElement(ProActionMenuButtonItem, {
240
247
  key: key,
241
248
  action: action,
242
- context: context
249
+ context: context,
250
+ "data-teamix-spm": "".concat(dataTeamixSpm, "-").concat(key)
243
251
  });
244
252
  }
245
253
  export var ProActionMenuButton = function ProActionMenuButton(props) {
@@ -254,7 +262,7 @@ export var ProActionMenuButton = function ProActionMenuButton(props) {
254
262
  className = props.className,
255
263
  noArrow = props.noArrow,
256
264
  others = _objectWithoutProperties(props, _excluded4);
257
- return /*#__PURE__*/React.createElement(MenuButton, _extends({
265
+ return /*#__PURE__*/React.createElement(MenuButton, _objectSpread({
258
266
  popupTriggerType: "hover",
259
267
  autoWidth: false,
260
268
  menuProps: {
@@ -270,7 +278,7 @@ export var ProActionMenuButton = function ProActionMenuButton(props) {
270
278
  'teamix-pro-actions-text-menu-btn-no-arrow': noArrow
271
279
  })
272
280
  }, others), actions.map(function (action, i) {
273
- return renderCommonActionButtonMenuItem(action, action.key || i, context);
281
+ return renderCommonActionButtonMenuItem(action, action.key || i, context, others === null || others === void 0 ? void 0 : others['data-teamix-spm']);
274
282
  }));
275
283
  };
276
284
  // 超出 max,则折叠起来
@@ -284,7 +292,6 @@ function foldExtraActions(actions, max, moreConfig) {
284
292
  actions: actions.slice(max - 1)
285
293
  })]);
286
294
  }
287
-
288
295
  // 如果 actions 数量超过了 max,则把第 max 个和剩余超出部分折叠起来成为一个 menu
289
296
  // divider 不计数
290
297
  function formatGroupActions(actions, max, moreConfig) {
@@ -298,27 +305,28 @@ function formatGroupActions(actions, max, moreConfig) {
298
305
  }
299
306
  return foldExtraActions(actions, Math.max(index, MAX), moreConfig);
300
307
  }
301
-
302
308
  // 渲染一个 button 或者 menu button
303
- function renderCommonActionButton(button, context, isTypeText) {
309
+ function renderCommonActionButton(button, context, isTypeText, dataTeamixSpm) {
304
310
  if (button.type === 'divider') {
305
311
  return /*#__PURE__*/React.createElement(Divider, {
306
312
  key: button.key,
307
313
  direction: "ver"
308
314
  });
309
315
  }
310
- var _ref = button,
311
- buttonContext = _ref.context,
312
- text = _ref.text,
313
- others = _objectWithoutProperties(_ref, _excluded5);
316
+ var buttonContext = button.context,
317
+ text = button.text,
318
+ others = _objectWithoutProperties(button, _excluded5);
314
319
  var buttonProps = _objectSpread({
315
320
  context: Object.assign({}, context, buttonContext),
316
321
  text: text || isTypeText
317
322
  }, others);
323
+ if (dataTeamixSpm) {
324
+ buttonProps['data-teamix-spm'] = dataTeamixSpm;
325
+ }
318
326
  if (!button.actions) {
319
- return /*#__PURE__*/React.createElement(ProActionButton, buttonProps);
327
+ return /*#__PURE__*/React.createElement(ProActionButton, _objectSpread({}, buttonProps));
320
328
  }
321
- return /*#__PURE__*/React.createElement(ProActionMenuButton, buttonProps);
329
+ return /*#__PURE__*/React.createElement(ProActionMenuButton, _objectSpread({}, buttonProps));
322
330
  }
323
331
  function getDefaultMoreButton(type, more) {
324
332
  var defaultConfig = type === 'button' ? {
@@ -348,10 +356,9 @@ function getKey(index, key) {
348
356
  }
349
357
  function getActionConfig(action, index, context) {
350
358
  if (action.actions) {
351
- var _ref2 = action,
352
- _key = _ref2.key,
353
- actions = _ref2.actions,
354
- _others = _objectWithoutProperties(_ref2, _excluded6);
359
+ var _key = action.key,
360
+ actions = action.actions,
361
+ _others = _objectWithoutProperties(action, _excluded6);
355
362
  return _objectSpread({
356
363
  key: getKey(index, _key),
357
364
  actions: actions.map(function (a, j) {
@@ -361,10 +368,9 @@ function getActionConfig(action, index, context) {
361
368
  })
362
369
  }, getTargetValue(_others, context));
363
370
  }
364
- var _ref3 = action,
365
- key = _ref3.key,
366
- config = _ref3.config,
367
- others = _objectWithoutProperties(_ref3, _excluded7);
371
+ var key = action.key,
372
+ config = action.config,
373
+ others = _objectWithoutProperties(action, _excluded7);
368
374
  return _objectSpread({
369
375
  key: getKey(index, key),
370
376
  config: config
@@ -383,6 +389,7 @@ export function ProActionGroup(props) {
383
389
  _props$actions = props.actions,
384
390
  actions = _props$actions === void 0 ? [] : _props$actions,
385
391
  className = props.className,
392
+ dataTeamixSpm = props['data-teamix-spm'],
386
393
  containerProps = _objectWithoutProperties(props, _excluded8);
387
394
  var isTypeText = type === 'text';
388
395
  var filteredActions = actions.map(function (action, index) {
@@ -391,13 +398,19 @@ export function ProActionGroup(props) {
391
398
  return action.visible !== false;
392
399
  });
393
400
  var formatedActions = formatGroupActions(filteredActions, max, getDefaultMoreButton(type, more || moreText));
394
- return /*#__PURE__*/React.createElement("div", _extends({
401
+ return /*#__PURE__*/React.createElement("div", _objectSpread({
395
402
  className: cls('teamix-pro-actions', "teamix-pro-actions-type-".concat(type), className, {
396
403
  'teamix-pro-actions-divider': type === 'button' ? false : divider
397
404
  })
398
405
  }, containerProps), formatedActions.map(function (actionBtn, i) {
399
406
  var isLastOne = i === formatedActions.length - 1;
400
- return /*#__PURE__*/React.createElement(React.Fragment, {
407
+ if (dataTeamixSpm) {
408
+ return /*#__PURE__*/React.createElement(React.Fragment, {
409
+ key: actionBtn.key
410
+ }, renderCommonActionButton(actionBtn, context, isTypeText, "".concat(dataTeamixSpm, "-").concat(actionBtn.key || i)), isTypeText && divider && !isLastOne && /*#__PURE__*/React.createElement(Divider, {
411
+ direction: "ver"
412
+ }));
413
+ } else return /*#__PURE__*/React.createElement(React.Fragment, {
401
414
  key: actionBtn.key
402
415
  }, renderCommonActionButton(actionBtn, context, isTypeText), isTypeText && divider && !isLastOne && /*#__PURE__*/React.createElement(Divider, {
403
416
  direction: "ver"
@@ -408,22 +421,16 @@ var ProAction = function ProAction(props) {
408
421
  return renderCommonActionButton(props);
409
422
  };
410
423
  export default ProAction;
411
-
424
+ export * from './quick';
412
425
  /**
413
426
  * @deprecated 建议使用 ProActionGroup 代替
414
427
  */
415
428
  export var ActionGroup = ProActionGroup;
416
-
417
429
  /**
418
430
  * @deprecated 建议使用 ProActionButton 代替
419
431
  */
420
432
  export var ActionButton = ProActionButton;
421
-
422
433
  /**
423
434
  * @deprecated 建议使用 ProActionMenuButton 代替
424
435
  */
425
- export var ActionMenuButton = ProActionMenuButton;
426
-
427
- /**
428
- * @deprecated 建议使用 ProActionConfig 代替
429
- */
436
+ export var ActionMenuButton = ProActionMenuButton;
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  &.teamix-pro-actions-type-button {
13
- & > button {
13
+ & > button,& > span {
14
14
  &:not(:last-child) {
15
15
  margin-right: var(--s-2);
16
16
  }
@@ -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;
@@ -2,13 +2,14 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
2
2
  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; }
3
3
  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; }
4
4
  import { getTargetValue, goToLink } from '@teamix/utils';
5
- import { useNavigate } from 'react-router-dom';
5
+ // import { useHistory } from 'react-router-dom';
6
+ import { useRealHistory } from '@teamix/utils';
6
7
  import { eventHandler } from './base';
7
8
  export function useLinkAction(action, actionContext) {
8
- var navigate = useNavigate();
9
+ var history = useRealHistory();
9
10
  return _objectSpread({}, eventHandler(action, actionContext, function (context) {
10
11
  var linkAction = getTargetValue(action, context);
11
- goToLink(linkAction, navigate);
12
+ goToLink(linkAction, history);
12
13
  }));
13
14
  }
14
15
  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,2 @@
1
+ import { ProActionProps } from './';
2
+ export declare function createAction(props: ProActionProps): void;
@@ -0,0 +1,26 @@
1
+ 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; }
2
+ 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; }
3
+ 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; }
4
+ import ProAction from './';
5
+ import ReactDom from 'react-dom';
6
+ import React from 'react';
7
+ export function createAction(props) {
8
+ var parentDom = document.getElementById('teamix-pro-actions-identification-par');
9
+ if (!parentDom) {
10
+ parentDom = document.createElement('div');
11
+ parentDom.setAttribute('id', 'teamix-pro-actions-identification-par');
12
+ document.body.appendChild(parentDom);
13
+ } else {
14
+ parentDom.innerHTML = '';
15
+ }
16
+ var divDom = document.createElement('div');
17
+ divDom.style.display = 'none';
18
+ divDom.setAttribute('class', 'teamix-pro-actions-identification');
19
+ ReactDom.render( /*#__PURE__*/React.createElement(ProAction, _objectSpread({}, props)), divDom);
20
+ parentDom.appendChild(divDom);
21
+ setTimeout(function () {
22
+ var _divDom$children, _divDom$children$, _divDom$children$$cli;
23
+ // @ts-ignore
24
+ divDom === null || divDom === void 0 ? void 0 : (_divDom$children = divDom.children) === null || _divDom$children === void 0 ? void 0 : (_divDom$children$ = _divDom$children[0]) === null || _divDom$children$ === void 0 ? void 0 : (_divDom$children$$cli = _divDom$children$.click) === null || _divDom$children$$cli === void 0 ? void 0 : _divDom$children$$cli.call(_divDom$children$);
25
+ });
26
+ }
@@ -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;
@@ -12,7 +12,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12
12
  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; }
13
13
  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; }
14
14
  import { useState } from 'react';
15
- import { useNavigate } from 'react-router-dom';
15
+ // import { useHistory } from 'react-router-dom';
16
+ import { useRealHistory } from '@teamix/utils';
16
17
  import { doCommonRequest } from '@teamix/utils';
17
18
  import { eventHandler } from './base';
18
19
  // action 里的数据请求都默认是 post 类型
@@ -29,12 +30,12 @@ export function useRequestAction(action, actionContext) {
29
30
  _useState2 = _slicedToArray(_useState, 2),
30
31
  loading = _useState2[0],
31
32
  setLoading = _useState2[1];
32
- var navigate = useNavigate();
33
+ var history = useRealHistory();
33
34
  var onFinish = action.onFinish,
34
35
  others = _objectWithoutProperties(action, _excluded2);
35
36
  return _objectSpread(_objectSpread({}, eventHandler(action, actionContext, function (context) {
36
37
  setLoading(true);
37
- doRequest(_objectSpread({}, others), context, navigate).then(function () {
38
+ doRequest(_objectSpread({}, others), context, history).then(function () {
38
39
  setLoading(false);
39
40
  onFinish && onFinish();
40
41
  }).catch(function () {
@@ -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;
@@ -1,26 +1,19 @@
1
+ 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; }
2
+ 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; }
3
+ 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; }
1
4
  import React from 'react';
2
5
  import { ProCard } from './index';
3
-
4
- /**
5
- * @deprecated 建议使用 ProCardProps 代替
6
- */
7
-
8
6
  /**
9
7
  * @deprecated 建议使用 ProCard 代替
10
8
  */
11
9
  export var ProCardContainer = function ProCardContainer(props) {
12
- return /*#__PURE__*/React.createElement(ProCard, props);
10
+ return /*#__PURE__*/React.createElement(ProCard, _objectSpread({}, props));
13
11
  };
14
12
  ProCardContainer.defaultProps = {
15
13
  compacted: true,
16
14
  direction: 'column'
17
15
  };
18
-
19
16
  /**
20
17
  * @deprecated 建议使用 ProCardContainer 代替
21
18
  */
22
- export var CardContainer = ProCardContainer;
23
-
24
- /**
25
- * @deprecated 建议使用 ProCardContainerProps 代替
26
- */
19
+ export var CardContainer = ProCardContainer;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const ProCardDivider: {
3
+ (props: React.HTMLAttributes<HTMLElement>): JSX.Element;
4
+ isProCardDivider: boolean;
5
+ };
6
+ export default ProCardDivider;
@@ -1,7 +1,9 @@
1
- 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); }
1
+ 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; }
2
+ 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; }
3
+ 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; }
2
4
  import React from 'react';
3
5
  var ProCardDivider = function ProCardDivider(props) {
4
- return /*#__PURE__*/React.createElement("div", _extends({
6
+ return /*#__PURE__*/React.createElement("div", _objectSpread({
5
7
  className: "teamix-pro-card-divider"
6
8
  }, props));
7
9
  };
@@ -0,0 +1,109 @@
1
+ import React from 'react';
2
+ import { ProTagItem } from '../field';
3
+ import { ProMessageProps } from '../utils/message';
4
+ import { ProActionGroupProps } from '../actions';
5
+ import './index.scss';
6
+ export * from './card-container';
7
+ export interface ProCardProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
8
+ /** 内容部分 */
9
+ children?: React.ReactNode;
10
+ /**卡片标题 */
11
+ title?: React.ReactNode;
12
+ /**卡片副标题 */
13
+ subTitle?: React.ReactNode;
14
+ /** 标题右侧图标 hover 提示信息 */
15
+ tooltip?: React.ReactNode;
16
+ /** 标题右侧图标 */
17
+ tooltipIcon?: React.ReactNode;
18
+ /** 标签组 */
19
+ tags?: ProTagItem[];
20
+ /** 标题右侧描述 */
21
+ description?: React.ReactNode;
22
+ /** 额外信息区域,位于卡片右上角,可以配置一些常用轻量操作 */
23
+ extra?: React.ReactNode | ProActionGroupProps;
24
+ /** 卡片操作区域,位于卡片最下方,可以配置一些常用轻量操作 */
25
+ actions?: React.ReactNode | ProActionGroupProps;
26
+ /** 卡片背景图 */
27
+ image?: string;
28
+ /** 位于弹窗内容上方的消息提示区 */
29
+ message?: ProMessageProps;
30
+ /** 卡片标题下方是否有分割线 */
31
+ divider?: boolean;
32
+ /**
33
+ * @deprecated 建议使用 borderColor = 'none' 代替
34
+ */
35
+ bordered?: boolean;
36
+ /** 卡片在 hover 时拥有阴影效果 */
37
+ hoveredShadow?: boolean;
38
+ /** 卡片是否为紧凑模式,紧凑模式下卡片没有内边距和边框 */
39
+ compacted?: boolean;
40
+ /** 卡片内容是否居中展示 */
41
+ centered?: boolean;
42
+ /** 加载中状态 */
43
+ loading?: boolean;
44
+ /** 是否只是内容区加载,标题正常显示 */
45
+ contentLoading?: boolean;
46
+ /** 空状态 */
47
+ empty?: boolean;
48
+ /** 边框颜色 */
49
+ borderColor?: 'blue' | 'green' | 'red' | 'orange' | 'yellow' | 'grey' | 'transparent' | 'none';
50
+ /** 背景色 */
51
+ backgroundColor?: 'blue' | 'green' | 'red' | 'orange' | 'yellow' | 'grey' | 'transparent';
52
+ /** 内容区栅格排列 flex 方向,仅仅在卡片嵌套模式下生效 */
53
+ direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
54
+ /** 内容区栅格的间距,仅仅在卡片嵌套模式下生效 */
55
+ spacing?: [number, number] | number;
56
+ /** 内容区栅格超出部分是否换行展示,仅仅在卡片嵌套模式下生效 */
57
+ wrap?: boolean;
58
+ /** 卡片嵌套使用的模式下,子卡片分隔 */
59
+ split?: 'horizontal' | 'vertical';
60
+ /** 卡片嵌套使用的模式下,卡片占父卡片内容区域的栅格数量 */
61
+ col?: number | string;
62
+ /** 卡片是否可折叠 */
63
+ collapsible?: boolean;
64
+ /** 默认是否折叠,用于非受控模式 */
65
+ defaultCollapsed?: boolean;
66
+ /** 是否折叠,受控模式 */
67
+ collapsed?: boolean;
68
+ /** 折叠状态改变的回调函数 */
69
+ onCollapse?: (collapsed: boolean) => void;
70
+ /** 卡片 class */
71
+ className?: string;
72
+ /** 卡片样式 */
73
+ style?: React.CSSProperties;
74
+ /** 卡片内容 class */
75
+ contentClassName?: string;
76
+ /** 卡片内容样式 */
77
+ contentStyle?: React.CSSProperties;
78
+ /** 上下文 */
79
+ context?: any;
80
+ }
81
+ export declare const ProCard: {
82
+ (props: ProCardProps): JSX.Element;
83
+ defaultProps: {
84
+ bordered: boolean;
85
+ spacing: number;
86
+ direction: string;
87
+ };
88
+ Divider: {
89
+ (props: React.HTMLAttributes<HTMLElement>): JSX.Element;
90
+ isProCardDivider: boolean;
91
+ };
92
+ Selectable: {
93
+ (props: import("./selectable").ProCardSelectableProps): JSX.Element;
94
+ defaultProps: {
95
+ hoveredShadow: boolean;
96
+ };
97
+ isProCard: boolean;
98
+ };
99
+ Tab: {
100
+ (props: import("@alifd/next/types/tab").TabProps): JSX.Element;
101
+ Item: typeof import("@alifd/next/types/tab").Item;
102
+ };
103
+ isProCard: boolean;
104
+ };
105
+ export default ProCard;
106
+ /**
107
+ * @deprecated 建议使用 ProCardProps 代替
108
+ */
109
+ export declare type CardProps = ProCardProps;