@teamix/pro 1.1.3 → 1.1.7

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/README.md +97 -0
  2. package/dist/pro.css +1 -1
  3. package/dist/pro.js +1198 -1228
  4. package/dist/pro.min.css +1 -1
  5. package/dist/pro.min.js +1 -1
  6. package/dist/pro.min.js.LICENSE.txt +1 -1
  7. package/es/actions/base.d.ts +13 -0
  8. package/es/actions/base.js +23 -0
  9. package/es/actions/confirm.d.ts +7 -0
  10. package/es/actions/confirm.js +11 -0
  11. package/es/actions/danger-confirm.d.ts +7 -0
  12. package/es/actions/danger-confirm.js +14 -0
  13. package/es/actions/dialog-component.d.ts +10 -0
  14. package/es/actions/dialog-component.js +25 -0
  15. package/es/actions/dialog-form.d.ts +15 -0
  16. package/es/actions/dialog-form.js +129 -0
  17. package/es/actions/dialog-table.d.ts +9 -0
  18. package/es/actions/dialog-table.js +10 -0
  19. package/es/actions/dialog.d.ts +17 -0
  20. package/es/actions/dialog.js +197 -0
  21. package/es/actions/drawer-form.d.ts +6 -0
  22. package/es/actions/drawer-form.js +7 -0
  23. package/es/actions/drawer-table.d.ts +6 -0
  24. package/es/actions/drawer-table.js +7 -0
  25. package/es/actions/drawer.d.ts +6 -0
  26. package/es/actions/drawer.js +7 -0
  27. package/es/actions/error.d.ts +7 -0
  28. package/es/actions/error.js +11 -0
  29. package/es/actions/index.d.ts +71 -0
  30. package/es/actions/index.js +337 -0
  31. package/es/actions/index.scss +34 -0
  32. package/es/actions/link.d.ts +14 -0
  33. package/es/actions/link.js +45 -0
  34. package/es/actions/notice.d.ts +7 -0
  35. package/es/actions/notice.js +11 -0
  36. package/es/actions/request.d.ts +9 -0
  37. package/es/actions/request.js +60 -0
  38. package/es/card/index.d.ts +47 -0
  39. package/es/card/index.js +159 -0
  40. package/es/card/index.scss +98 -0
  41. package/es/field/index.d.ts +3 -0
  42. package/es/field/index.js +3 -0
  43. package/es/form/Components/Editable/index.d.ts +20 -0
  44. package/es/form/Components/Editable/index.js +228 -0
  45. package/es/form/Components/FormGroup/index.d.ts +13 -0
  46. package/es/form/Components/FormGroup/index.js +89 -0
  47. package/es/form/Components/FormGroup/index.scss +23 -0
  48. package/es/form/Components/ProField/index.d.ts +150 -0
  49. package/es/form/Components/ProField/index.js +53 -0
  50. package/es/form/Components/Query/index.d.ts +4 -0
  51. package/es/form/Components/Query/index.js +70 -0
  52. package/es/form/Components/Query/index.scss +90 -0
  53. package/es/form/Components/QueryFilter/index.d.ts +3 -0
  54. package/es/form/Components/QueryFilter/index.js +111 -0
  55. package/es/form/Components/Search/index.d.ts +11 -0
  56. package/es/form/Components/Search/index.js +89 -0
  57. package/es/form/Filter/index.d.ts +16 -0
  58. package/es/form/Filter/index.js +218 -0
  59. package/es/form/ProForm/index.d.ts +5 -0
  60. package/es/form/ProForm/index.js +100 -0
  61. package/es/form/ProForm/index.scss +254 -0
  62. package/es/form/SchemaForm/adapterComponent.d.ts +5 -0
  63. package/es/form/SchemaForm/adapterComponent.js +17 -0
  64. package/es/form/SchemaForm/adapterDecorator.d.ts +6 -0
  65. package/es/form/SchemaForm/adapterDecorator.js +28 -0
  66. package/es/form/SchemaForm/adapterType.d.ts +5 -0
  67. package/es/form/SchemaForm/adapterType.js +52 -0
  68. package/es/form/SchemaForm/index.d.ts +4 -0
  69. package/es/form/SchemaForm/index.js +259 -0
  70. package/es/form/SchemaForm/initializeArrayCards.d.ts +3 -0
  71. package/es/form/SchemaForm/initializeArrayCards.js +24 -0
  72. package/es/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
  73. package/es/form/SchemaForm/initializeArrayCollapse.js +24 -0
  74. package/es/form/SchemaForm/initializeArrayIcon.d.ts +3 -0
  75. package/es/form/SchemaForm/initializeArrayIcon.js +57 -0
  76. package/es/form/SchemaForm/initializeArrayItems.d.ts +3 -0
  77. package/es/form/SchemaForm/initializeArrayItems.js +38 -0
  78. package/es/form/SchemaForm/initializeArrayTable.d.ts +3 -0
  79. package/es/form/SchemaForm/initializeArrayTable.js +56 -0
  80. package/es/form/SchemaForm/initializeFormButton.d.ts +3 -0
  81. package/es/form/SchemaForm/initializeFormButton.js +75 -0
  82. package/es/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
  83. package/es/form/SchemaForm/initializeFormCollapse.js +43 -0
  84. package/es/form/SchemaForm/initializeFormGroup.d.ts +3 -0
  85. package/es/form/SchemaForm/initializeFormGroup.js +46 -0
  86. package/es/form/SchemaForm/initializeFormStep.d.ts +3 -0
  87. package/es/form/SchemaForm/initializeFormStep.js +48 -0
  88. package/es/form/SchemaForm/initializeFormTab.d.ts +3 -0
  89. package/es/form/SchemaForm/initializeFormTab.js +53 -0
  90. package/es/form/SchemaForm/initializeProField.d.ts +5 -0
  91. package/es/form/SchemaForm/initializeProField.js +67 -0
  92. package/es/form/SchemaForm/initializeRequest.d.ts +11 -0
  93. package/es/form/SchemaForm/initializeRequest.js +25 -0
  94. package/es/form/SchemaForm/reactions.d.ts +4 -0
  95. package/es/form/SchemaForm/reactions.js +62 -0
  96. package/es/form/index.d.ts +27 -0
  97. package/es/form/index.js +35 -0
  98. package/es/form/typing.d.ts +69 -0
  99. package/es/form/typing.js +1 -0
  100. package/es/form/utils.d.ts +9 -0
  101. package/es/form/utils.js +108 -0
  102. package/es/form/warning.d.ts +3 -0
  103. package/es/form/warning.js +16 -0
  104. package/es/hooks/index.d.ts +2 -0
  105. package/es/hooks/index.js +2 -0
  106. package/es/index.d.ts +24 -0
  107. package/es/index.js +29 -0
  108. package/es/info/components/FormItem/index.d.ts +5 -0
  109. package/es/info/components/FormItem/index.js +63 -0
  110. package/es/info/components/FormItem/index.scss +60 -0
  111. package/es/info/components/InfoGroup/index.d.ts +5 -0
  112. package/es/info/components/InfoGroup/index.js +47 -0
  113. package/es/info/components/InfoGroup/index.scss +14 -0
  114. package/es/info/components/InfoValueItem/index.d.ts +5 -0
  115. package/es/info/components/InfoValueItem/index.js +223 -0
  116. package/es/info/components/InfoValueItem/index.scss +21 -0
  117. package/es/info/components/baseInfo/index.d.ts +7 -0
  118. package/es/info/components/baseInfo/index.js +73 -0
  119. package/es/info/components/baseInfo/index.scss +3 -0
  120. package/es/info/components/headerInfo/index.d.ts +7 -0
  121. package/es/info/components/headerInfo/index.js +85 -0
  122. package/es/info/components/headerInfo/index.scss +0 -0
  123. package/es/info/components/tableInfo/index.d.ts +8 -0
  124. package/es/info/components/tableInfo/index.js +175 -0
  125. package/es/info/components/tableInfo/index.scss +18 -0
  126. package/es/info/index.d.ts +10 -0
  127. package/es/info/index.js +87 -0
  128. package/es/info/index.scss +12 -0
  129. package/es/info/typing.d.ts +157 -0
  130. package/es/info/typing.js +1 -0
  131. package/es/info/utils/index.d.ts +12 -0
  132. package/es/info/utils/index.js +33 -0
  133. package/es/info/utils/layout.d.ts +2 -0
  134. package/es/info/utils/layout.js +58 -0
  135. package/es/info/utils/useInfoRequest.d.ts +14 -0
  136. package/es/info/utils/useInfoRequest.js +73 -0
  137. package/es/info/utils/utils.d.ts +1 -0
  138. package/es/info/utils/utils.js +13 -0
  139. package/es/layout/index.d.ts +2 -0
  140. package/es/layout/index.js +3 -0
  141. package/es/nocode/configurators/Card.d.ts +3 -0
  142. package/es/nocode/configurators/Card.js +109 -0
  143. package/es/nocode/configurators/PageHeader.d.ts +3 -0
  144. package/es/nocode/configurators/PageHeader.js +202 -0
  145. package/es/nocode/configurators/ProTable.d.ts +3 -0
  146. package/es/nocode/configurators/ProTable.js +320 -0
  147. package/es/nocode/configurators/common.d.ts +188 -0
  148. package/es/nocode/configurators/common.js +318 -0
  149. package/es/nocode/configurators/index.d.ts +15 -0
  150. package/es/nocode/configurators/index.js +27 -0
  151. package/es/nocode/configurators/map.d.ts +2 -0
  152. package/es/nocode/configurators/map.js +8 -0
  153. package/es/nocode/index.d.ts +8 -0
  154. package/es/nocode/index.js +11 -0
  155. package/es/nocode/index.scss +93 -0
  156. package/es/nocode/pages/editor.d.ts +12 -0
  157. package/es/nocode/pages/editor.js +40 -0
  158. package/es/nocode/pages/index.d.ts +14 -0
  159. package/es/nocode/pages/index.js +41 -0
  160. package/es/nocode/pages/playground.d.ts +11 -0
  161. package/es/nocode/pages/playground.js +130 -0
  162. package/es/nocode/pages/renderer.d.ts +10 -0
  163. package/es/nocode/pages/renderer.js +144 -0
  164. package/es/nocode/playground.d.ts +14 -0
  165. package/es/nocode/playground.js +68 -0
  166. package/es/page-container/index.d.ts +3 -0
  167. package/es/page-container/index.js +3 -0
  168. package/es/page-header/index.d.ts +43 -0
  169. package/es/page-header/index.js +233 -0
  170. package/es/page-header/index.scss +169 -0
  171. package/es/skeleton/index.d.ts +3 -0
  172. package/es/skeleton/index.js +3 -0
  173. package/es/table/components/Filter/index.d.ts +9 -0
  174. package/es/table/components/Filter/index.js +223 -0
  175. package/es/table/components/Filter/index.scss +23 -0
  176. package/es/table/components/Layout/index.d.ts +5 -0
  177. package/es/table/components/Layout/index.js +242 -0
  178. package/es/table/components/Layout/index.scss +39 -0
  179. package/es/table/components/QuickAction/index.d.ts +10 -0
  180. package/es/table/components/QuickAction/index.js +53 -0
  181. package/es/table/components/QuickAction/index.scss +0 -0
  182. package/es/table/components/ToolBar/DensityIcon.d.ts +4 -0
  183. package/es/table/components/ToolBar/DensityIcon.js +117 -0
  184. package/es/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
  185. package/es/table/components/ToolBar/FilterColumnIcon.js +284 -0
  186. package/es/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
  187. package/es/table/components/ToolBar/FullScreenIcon.js +89 -0
  188. package/es/table/components/ToolBar/Fullscreen.d.ts +10 -0
  189. package/es/table/components/ToolBar/Fullscreen.js +68 -0
  190. package/es/table/components/ToolBar/RefreshIcon.d.ts +4 -0
  191. package/es/table/components/ToolBar/RefreshIcon.js +45 -0
  192. package/es/table/components/ToolBar/index.d.ts +5 -0
  193. package/es/table/components/ToolBar/index.js +79 -0
  194. package/es/table/components/ToolBar/index.scss +110 -0
  195. package/es/table/index.d.ts +6 -0
  196. package/es/table/index.js +607 -0
  197. package/es/table/index.scss +103 -0
  198. package/es/table/typing.d.ts +222 -0
  199. package/es/table/typing.js +1 -0
  200. package/es/table/utils/columnRender.d.ts +13 -0
  201. package/es/table/utils/columnRender.js +185 -0
  202. package/es/table/utils/genProColumnToColumn.d.ts +9 -0
  203. package/es/table/utils/genProColumnToColumn.js +51 -0
  204. package/es/table/utils/getTableProps.d.ts +2 -0
  205. package/es/table/utils/getTableProps.js +4 -0
  206. package/es/table/utils/getTableSortIcons.d.ts +3 -0
  207. package/es/table/utils/getTableSortIcons.js +21 -0
  208. package/es/table/utils/index.d.ts +4 -0
  209. package/es/table/utils/index.js +100 -0
  210. package/es/table/utils/useTableSelection.d.ts +3 -0
  211. package/es/table/utils/useTableSelection.js +107 -0
  212. package/es/templates/Detail/index.d.ts +2 -0
  213. package/es/templates/Detail/index.js +5 -0
  214. package/es/templates/Detail/index.scss +3 -0
  215. package/es/templates/Form/index.d.ts +2 -0
  216. package/es/templates/Form/index.js +5 -0
  217. package/es/templates/Form/index.scss +3 -0
  218. package/es/templates/List/index.d.ts +9 -0
  219. package/es/templates/List/index.js +45 -0
  220. package/es/templates/List/index.scss +3 -0
  221. package/es/templates/index.d.ts +5 -0
  222. package/es/templates/index.js +7 -0
  223. package/es/templates/index.scss +3 -0
  224. package/es/utils/index.d.ts +2 -0
  225. package/es/utils/index.js +2 -0
  226. package/lib/actions/base.d.ts +13 -0
  227. package/lib/actions/base.js +33 -0
  228. package/lib/actions/confirm.d.ts +7 -0
  229. package/lib/actions/confirm.js +25 -0
  230. package/lib/actions/danger-confirm.d.ts +7 -0
  231. package/lib/actions/danger-confirm.js +28 -0
  232. package/lib/actions/dialog-component.d.ts +10 -0
  233. package/lib/actions/dialog-component.js +39 -0
  234. package/lib/actions/dialog-form.d.ts +15 -0
  235. package/lib/actions/dialog-form.js +152 -0
  236. package/lib/actions/dialog-table.d.ts +9 -0
  237. package/lib/actions/dialog-table.js +24 -0
  238. package/lib/actions/dialog.d.ts +17 -0
  239. package/lib/actions/dialog.js +219 -0
  240. package/lib/actions/drawer-form.d.ts +6 -0
  241. package/lib/actions/drawer-form.js +18 -0
  242. package/lib/actions/drawer-table.d.ts +6 -0
  243. package/lib/actions/drawer-table.js +18 -0
  244. package/lib/actions/drawer.d.ts +6 -0
  245. package/lib/actions/drawer.js +20 -0
  246. package/lib/actions/error.d.ts +7 -0
  247. package/lib/actions/error.js +25 -0
  248. package/lib/actions/index.d.ts +71 -0
  249. package/lib/actions/index.js +380 -0
  250. package/lib/actions/index.scss +34 -0
  251. package/lib/actions/link.d.ts +14 -0
  252. package/lib/actions/link.js +60 -0
  253. package/lib/actions/notice.d.ts +7 -0
  254. package/lib/actions/notice.js +25 -0
  255. package/lib/actions/request.d.ts +9 -0
  256. package/lib/actions/request.js +75 -0
  257. package/lib/card/index.d.ts +47 -0
  258. package/lib/card/index.js +179 -0
  259. package/lib/card/index.scss +98 -0
  260. package/lib/field/index.d.ts +3 -0
  261. package/lib/field/index.js +30 -0
  262. package/lib/form/Components/Editable/index.d.ts +20 -0
  263. package/lib/form/Components/Editable/index.js +251 -0
  264. package/lib/form/Components/FormGroup/index.d.ts +13 -0
  265. package/lib/form/Components/FormGroup/index.js +103 -0
  266. package/lib/form/Components/FormGroup/index.scss +23 -0
  267. package/lib/form/Components/ProField/index.d.ts +150 -0
  268. package/lib/form/Components/ProField/index.js +68 -0
  269. package/lib/form/Components/Query/index.d.ts +4 -0
  270. package/lib/form/Components/Query/index.js +91 -0
  271. package/lib/form/Components/Query/index.scss +90 -0
  272. package/lib/form/Components/QueryFilter/index.d.ts +3 -0
  273. package/lib/form/Components/QueryFilter/index.js +130 -0
  274. package/lib/form/Components/Search/index.d.ts +11 -0
  275. package/lib/form/Components/Search/index.js +103 -0
  276. package/lib/form/Filter/index.d.ts +16 -0
  277. package/lib/form/Filter/index.js +242 -0
  278. package/lib/form/ProForm/index.d.ts +5 -0
  279. package/lib/form/ProForm/index.js +125 -0
  280. package/lib/form/ProForm/index.scss +254 -0
  281. package/lib/form/SchemaForm/adapterComponent.d.ts +5 -0
  282. package/lib/form/SchemaForm/adapterComponent.js +27 -0
  283. package/lib/form/SchemaForm/adapterDecorator.d.ts +6 -0
  284. package/lib/form/SchemaForm/adapterDecorator.js +34 -0
  285. package/lib/form/SchemaForm/adapterType.d.ts +5 -0
  286. package/lib/form/SchemaForm/adapterType.js +62 -0
  287. package/lib/form/SchemaForm/index.d.ts +4 -0
  288. package/lib/form/SchemaForm/index.js +302 -0
  289. package/lib/form/SchemaForm/initializeArrayCards.d.ts +3 -0
  290. package/lib/form/SchemaForm/initializeArrayCards.js +32 -0
  291. package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
  292. package/lib/form/SchemaForm/initializeArrayCollapse.js +32 -0
  293. package/lib/form/SchemaForm/initializeArrayIcon.d.ts +3 -0
  294. package/lib/form/SchemaForm/initializeArrayIcon.js +68 -0
  295. package/lib/form/SchemaForm/initializeArrayItems.d.ts +3 -0
  296. package/lib/form/SchemaForm/initializeArrayItems.js +46 -0
  297. package/lib/form/SchemaForm/initializeArrayTable.d.ts +3 -0
  298. package/lib/form/SchemaForm/initializeArrayTable.js +63 -0
  299. package/lib/form/SchemaForm/initializeFormButton.d.ts +3 -0
  300. package/lib/form/SchemaForm/initializeFormButton.js +82 -0
  301. package/lib/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
  302. package/lib/form/SchemaForm/initializeFormCollapse.js +50 -0
  303. package/lib/form/SchemaForm/initializeFormGroup.d.ts +3 -0
  304. package/lib/form/SchemaForm/initializeFormGroup.js +53 -0
  305. package/lib/form/SchemaForm/initializeFormStep.d.ts +3 -0
  306. package/lib/form/SchemaForm/initializeFormStep.js +55 -0
  307. package/lib/form/SchemaForm/initializeFormTab.d.ts +3 -0
  308. package/lib/form/SchemaForm/initializeFormTab.js +60 -0
  309. package/lib/form/SchemaForm/initializeProField.d.ts +5 -0
  310. package/lib/form/SchemaForm/initializeProField.js +74 -0
  311. package/lib/form/SchemaForm/initializeRequest.d.ts +11 -0
  312. package/lib/form/SchemaForm/initializeRequest.js +34 -0
  313. package/lib/form/SchemaForm/reactions.d.ts +4 -0
  314. package/lib/form/SchemaForm/reactions.js +72 -0
  315. package/lib/form/index.d.ts +27 -0
  316. package/lib/form/index.js +139 -0
  317. package/lib/form/typing.d.ts +69 -0
  318. package/lib/form/typing.js +5 -0
  319. package/lib/form/utils.d.ts +9 -0
  320. package/lib/form/utils.js +124 -0
  321. package/lib/form/warning.d.ts +3 -0
  322. package/lib/form/warning.js +24 -0
  323. package/lib/hooks/index.d.ts +2 -0
  324. package/lib/hooks/index.js +17 -0
  325. package/lib/index.d.ts +24 -0
  326. package/lib/index.js +244 -0
  327. package/lib/info/components/FormItem/index.d.ts +5 -0
  328. package/lib/info/components/FormItem/index.js +78 -0
  329. package/lib/info/components/FormItem/index.scss +60 -0
  330. package/lib/info/components/InfoGroup/index.d.ts +5 -0
  331. package/lib/info/components/InfoGroup/index.js +67 -0
  332. package/lib/info/components/InfoGroup/index.scss +14 -0
  333. package/lib/info/components/InfoValueItem/index.d.ts +5 -0
  334. package/lib/info/components/InfoValueItem/index.js +249 -0
  335. package/lib/info/components/InfoValueItem/index.scss +21 -0
  336. package/lib/info/components/baseInfo/index.d.ts +7 -0
  337. package/lib/info/components/baseInfo/index.js +100 -0
  338. package/lib/info/components/baseInfo/index.scss +3 -0
  339. package/lib/info/components/headerInfo/index.d.ts +7 -0
  340. package/lib/info/components/headerInfo/index.js +112 -0
  341. package/lib/info/components/headerInfo/index.scss +0 -0
  342. package/lib/info/components/tableInfo/index.d.ts +8 -0
  343. package/lib/info/components/tableInfo/index.js +197 -0
  344. package/lib/info/components/tableInfo/index.scss +18 -0
  345. package/lib/info/index.d.ts +10 -0
  346. package/lib/info/index.js +123 -0
  347. package/lib/info/index.scss +12 -0
  348. package/lib/info/typing.d.ts +157 -0
  349. package/lib/info/typing.js +5 -0
  350. package/lib/info/utils/index.d.ts +12 -0
  351. package/lib/info/utils/index.js +50 -0
  352. package/lib/info/utils/layout.d.ts +2 -0
  353. package/lib/info/utils/layout.js +65 -0
  354. package/lib/info/utils/useInfoRequest.d.ts +14 -0
  355. package/lib/info/utils/useInfoRequest.js +82 -0
  356. package/lib/info/utils/utils.d.ts +1 -0
  357. package/lib/info/utils/utils.js +20 -0
  358. package/lib/layout/index.d.ts +2 -0
  359. package/lib/layout/index.js +10 -0
  360. package/lib/nocode/configurators/Card.d.ts +3 -0
  361. package/lib/nocode/configurators/Card.js +116 -0
  362. package/lib/nocode/configurators/PageHeader.d.ts +3 -0
  363. package/lib/nocode/configurators/PageHeader.js +211 -0
  364. package/lib/nocode/configurators/ProTable.d.ts +3 -0
  365. package/lib/nocode/configurators/ProTable.js +329 -0
  366. package/lib/nocode/configurators/common.d.ts +188 -0
  367. package/lib/nocode/configurators/common.js +329 -0
  368. package/lib/nocode/configurators/index.d.ts +15 -0
  369. package/lib/nocode/configurators/index.js +44 -0
  370. package/lib/nocode/configurators/map.d.ts +2 -0
  371. package/lib/nocode/configurators/map.js +21 -0
  372. package/lib/nocode/index.d.ts +8 -0
  373. package/lib/nocode/index.js +76 -0
  374. package/lib/nocode/index.scss +93 -0
  375. package/lib/nocode/pages/editor.d.ts +12 -0
  376. package/lib/nocode/pages/editor.js +58 -0
  377. package/lib/nocode/pages/index.d.ts +14 -0
  378. package/lib/nocode/pages/index.js +93 -0
  379. package/lib/nocode/pages/playground.d.ts +11 -0
  380. package/lib/nocode/pages/playground.js +158 -0
  381. package/lib/nocode/pages/renderer.d.ts +10 -0
  382. package/lib/nocode/pages/renderer.js +164 -0
  383. package/lib/nocode/playground.d.ts +14 -0
  384. package/lib/nocode/playground.js +91 -0
  385. package/lib/page-container/index.d.ts +3 -0
  386. package/lib/page-container/index.js +30 -0
  387. package/lib/page-header/index.d.ts +43 -0
  388. package/lib/page-header/index.js +252 -0
  389. package/lib/page-header/index.scss +169 -0
  390. package/lib/skeleton/index.d.ts +3 -0
  391. package/lib/skeleton/index.js +30 -0
  392. package/lib/table/components/Filter/index.d.ts +9 -0
  393. package/lib/table/components/Filter/index.js +244 -0
  394. package/lib/table/components/Filter/index.scss +23 -0
  395. package/lib/table/components/Layout/index.d.ts +5 -0
  396. package/lib/table/components/Layout/index.js +266 -0
  397. package/lib/table/components/Layout/index.scss +39 -0
  398. package/lib/table/components/QuickAction/index.d.ts +10 -0
  399. package/lib/table/components/QuickAction/index.js +65 -0
  400. package/lib/table/components/QuickAction/index.scss +0 -0
  401. package/lib/table/components/ToolBar/DensityIcon.d.ts +4 -0
  402. package/lib/table/components/ToolBar/DensityIcon.js +135 -0
  403. package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
  404. package/lib/table/components/ToolBar/FilterColumnIcon.js +303 -0
  405. package/lib/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
  406. package/lib/table/components/ToolBar/FullScreenIcon.js +107 -0
  407. package/lib/table/components/ToolBar/Fullscreen.d.ts +10 -0
  408. package/lib/table/components/ToolBar/Fullscreen.js +85 -0
  409. package/lib/table/components/ToolBar/RefreshIcon.d.ts +4 -0
  410. package/lib/table/components/ToolBar/RefreshIcon.js +60 -0
  411. package/lib/table/components/ToolBar/index.d.ts +5 -0
  412. package/lib/table/components/ToolBar/index.js +96 -0
  413. package/lib/table/components/ToolBar/index.scss +110 -0
  414. package/lib/table/index.d.ts +6 -0
  415. package/lib/table/index.js +662 -0
  416. package/lib/table/index.scss +103 -0
  417. package/lib/table/typing.d.ts +222 -0
  418. package/lib/table/typing.js +5 -0
  419. package/lib/table/utils/columnRender.d.ts +13 -0
  420. package/lib/table/utils/columnRender.js +201 -0
  421. package/lib/table/utils/genProColumnToColumn.d.ts +9 -0
  422. package/lib/table/utils/genProColumnToColumn.js +62 -0
  423. package/lib/table/utils/getTableProps.d.ts +2 -0
  424. package/lib/table/utils/getTableProps.js +13 -0
  425. package/lib/table/utils/getTableSortIcons.d.ts +3 -0
  426. package/lib/table/utils/getTableSortIcons.js +34 -0
  427. package/lib/table/utils/index.d.ts +4 -0
  428. package/lib/table/utils/index.js +112 -0
  429. package/lib/table/utils/useTableSelection.d.ts +3 -0
  430. package/lib/table/utils/useTableSelection.js +112 -0
  431. package/lib/templates/Detail/index.d.ts +2 -0
  432. package/lib/templates/Detail/index.js +18 -0
  433. package/lib/templates/Detail/index.scss +3 -0
  434. package/lib/templates/Form/index.d.ts +2 -0
  435. package/lib/templates/Form/index.js +18 -0
  436. package/lib/templates/Form/index.scss +3 -0
  437. package/lib/templates/List/index.d.ts +9 -0
  438. package/lib/templates/List/index.js +67 -0
  439. package/lib/templates/List/index.scss +3 -0
  440. package/lib/templates/index.d.ts +5 -0
  441. package/lib/templates/index.js +59 -0
  442. package/lib/templates/index.scss +3 -0
  443. package/lib/utils/index.d.ts +2 -0
  444. package/lib/utils/index.js +17 -0
  445. package/package.json +5 -5
@@ -0,0 +1,329 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.actions = actions;
7
+ exports.array = array;
8
+ exports.filter = filter;
9
+
10
+ function array(title, name, fields, main, arrayTitle) {
11
+ return {
12
+ title: title,
13
+ children: [{
14
+ name: name,
15
+ title: arrayTitle,
16
+ component: 'ArrayItems',
17
+ items: {
18
+ type: 'object',
19
+ decorator: 'ArrayItems.Item',
20
+ children: [{
21
+ component: 'FormFlex',
22
+ children: [{
23
+ component: 'ArrayItems.SortHandle'
24
+ }, {
25
+ component: 'ArrayItems.Index'
26
+ }]
27
+ }, {
28
+ name: 'drawer',
29
+ component: 'Editable.Drawer',
30
+ type: 'void',
31
+ title: '编辑详情',
32
+ reactions: {
33
+ dependencies: [".drawer.layout.".concat(main ? main : fields[0].name)],
34
+ fulfill: {
35
+ schema: {
36
+ title: '{{$deps[0]}}'
37
+ }
38
+ }
39
+ },
40
+ children: [{
41
+ name: 'layout',
42
+ component: 'FormLayout',
43
+ props: {
44
+ layout: 'vertical',
45
+ labelAlign: 'left',
46
+ colon: false,
47
+ labelCol: 24,
48
+ wrapperCol: 24
49
+ },
50
+ children: fields
51
+ }]
52
+ }, {
53
+ component: 'ArrayItems.Remove'
54
+ }]
55
+ },
56
+ children: [{
57
+ component: 'ArrayItems.Addition',
58
+ props: {
59
+ title: '添加一条'
60
+ }
61
+ }]
62
+ }]
63
+ };
64
+ }
65
+
66
+ function actions(props) {
67
+ var _ref = props || {},
68
+ _ref$title = _ref.title,
69
+ title = _ref$title === void 0 ? '操作项' : _ref$title,
70
+ _ref$name = _ref.name,
71
+ name = _ref$name === void 0 ? 'actions' : _ref$name,
72
+ arrayTitle = _ref.arrayTitle;
73
+
74
+ return array(title, name, [{
75
+ name: 'children',
76
+ title: '文字',
77
+ component: 'Input',
78
+ default: '操作'
79
+ }, {
80
+ name: 'icon',
81
+ title: '图标',
82
+ component: 'IconPicker',
83
+ props: {
84
+ width: '100%'
85
+ }
86
+ }, {
87
+ name: 'type',
88
+ title: '按钮类型',
89
+ component: 'Select',
90
+ dataSource: [{
91
+ label: '普通',
92
+ value: 'normal'
93
+ }, {
94
+ label: '次要',
95
+ value: 'secondary'
96
+ }, {
97
+ label: '主要',
98
+ value: 'primary'
99
+ }]
100
+ }, {
101
+ name: 'config',
102
+ type: 'object',
103
+ children: [{
104
+ name: 'type',
105
+ title: '操作类型',
106
+ component: 'Select',
107
+ dataSource: [{
108
+ label: '数据请求',
109
+ value: 'request'
110
+ }, {
111
+ label: '跳转链接',
112
+ value: 'link'
113
+ }, {
114
+ label: '二次确认',
115
+ value: 'confirm'
116
+ }, {
117
+ label: '弹窗表单',
118
+ value: 'dialog-form'
119
+ }, {
120
+ label: '弹窗表格',
121
+ value: 'dialog-table'
122
+ }, {
123
+ label: '抽屉表单',
124
+ value: 'drawer-form'
125
+ }, {
126
+ label: '抽屉表格',
127
+ value: 'drawer-table'
128
+ }],
129
+ default: 'request'
130
+ }, {
131
+ name: 'to',
132
+ title: '链接地址',
133
+ component: 'Input',
134
+ reactions: {
135
+ dependencies: ['.type'],
136
+ fulfill: {
137
+ state: {
138
+ visible: "{{$deps[0] === 'link'}}"
139
+ }
140
+ }
141
+ }
142
+ }, {
143
+ name: 'blank',
144
+ title: '打开新页面',
145
+ component: 'Switch',
146
+ reactions: {
147
+ dependencies: ['.type'],
148
+ fulfill: {
149
+ state: {
150
+ visible: "{{$deps[0] === 'link'}}"
151
+ }
152
+ }
153
+ }
154
+ }, {
155
+ name: 'title',
156
+ title: '标题',
157
+ component: 'Input',
158
+ reactions: {
159
+ dependencies: ['.type'],
160
+ fulfill: {
161
+ state: {
162
+ visible: "{{$deps[0] !== 'link' && $deps[0] !== 'request'}}"
163
+ }
164
+ }
165
+ }
166
+ }, {
167
+ name: 'content',
168
+ title: '确认内容',
169
+ component: 'Input',
170
+ reactions: {
171
+ dependencies: ['.type'],
172
+ fulfill: {
173
+ state: {
174
+ visible: "{{$deps[0] === 'confirm'}}"
175
+ }
176
+ }
177
+ }
178
+ }, {
179
+ name: 'url',
180
+ title: '请求地址',
181
+ component: 'Input',
182
+ reactions: {
183
+ dependencies: ['.type'],
184
+ fulfill: {
185
+ state: {
186
+ visible: "{{$deps[0] !== 'link'}}"
187
+ }
188
+ }
189
+ }
190
+ }, {
191
+ name: 'method',
192
+ title: '请求方式',
193
+ component: 'Radio',
194
+ dataSource: [{
195
+ label: 'get',
196
+ value: 'get'
197
+ }, {
198
+ label: 'post',
199
+ value: 'post'
200
+ }],
201
+ reactions: {
202
+ dependencies: ['.type'],
203
+ fulfill: {
204
+ state: {
205
+ visible: "{{$deps[0] !== 'link'}}"
206
+ }
207
+ }
208
+ }
209
+ }, {
210
+ name: 'params',
211
+ title: '请求参数',
212
+ component: 'JsonInput',
213
+ reactions: {
214
+ dependencies: ['.type'],
215
+ fulfill: {
216
+ state: {
217
+ visible: "{{$deps[0] !== 'link'}}"
218
+ }
219
+ }
220
+ }
221
+ }, {
222
+ name: 'initialValues',
223
+ title: '表单初始值',
224
+ component: 'Input',
225
+ reactions: {
226
+ dependencies: ['.type'],
227
+ fulfill: {
228
+ state: {
229
+ visible: "{{$deps[0] === 'dialog-form' || $deps[0] === 'drawer-form'}}"
230
+ }
231
+ }
232
+ }
233
+ }, {
234
+ name: 'schema',
235
+ title: 'Schema',
236
+ component: 'JsonInput',
237
+ reactions: {
238
+ dependencies: ['.type'],
239
+ fulfill: {
240
+ state: {
241
+ visible: "{{$deps[0] !== 'link' && $deps[0] !== 'request' && $deps[0] !== 'confirm'}}"
242
+ }
243
+ }
244
+ }
245
+ }, {
246
+ name: 'successMsg',
247
+ title: '请求成功提示',
248
+ component: 'Input',
249
+ reactions: {
250
+ dependencies: ['.type'],
251
+ fulfill: {
252
+ state: {
253
+ visible: "{{$deps[0] !== 'link'}}"
254
+ }
255
+ }
256
+ }
257
+ }, {
258
+ name: 'onSuccess',
259
+ title: '请求成功回调',
260
+ component: 'Input',
261
+ reactions: {
262
+ dependencies: ['.type'],
263
+ fulfill: {
264
+ state: {
265
+ visible: "{{$deps[0] !== 'link'}}"
266
+ }
267
+ }
268
+ }
269
+ }]
270
+ }, {
271
+ name: 'visible',
272
+ title: '是否可见',
273
+ component: 'Input'
274
+ }, {
275
+ name: 'disabled',
276
+ title: '是否禁用',
277
+ component: 'Input'
278
+ }], 'children', arrayTitle);
279
+ }
280
+
281
+ function filter(name) {
282
+ return {
283
+ name: name,
284
+ type: 'object',
285
+ children: [array('表单项', 'schema', [{
286
+ name: 'name',
287
+ title: 'ID',
288
+ component: 'Input',
289
+ required: true
290
+ }, {
291
+ name: 'title',
292
+ title: '标题',
293
+ component: 'Input'
294
+ }, {
295
+ name: 'component',
296
+ title: '组件类型',
297
+ component: 'Select',
298
+ dataSource: [{
299
+ label: 'Input',
300
+ value: 'Input'
301
+ }, {
302
+ label: 'Select',
303
+ value: 'Select'
304
+ }]
305
+ }, array('数据源', 'dataSource', [{
306
+ name: 'value',
307
+ title: '值',
308
+ component: 'Input',
309
+ required: true
310
+ }, {
311
+ name: 'label',
312
+ title: '文案',
313
+ component: 'Input',
314
+ required: true
315
+ }, {
316
+ name: 'color',
317
+ title: '颜色',
318
+ component: 'ColorPicker'
319
+ }], undefined, '数据源'), {
320
+ name: 'required',
321
+ title: '是否必填',
322
+ component: 'Switch'
323
+ }, {
324
+ name: 'props',
325
+ title: '属性',
326
+ component: 'JsonInput'
327
+ }])]
328
+ };
329
+ }
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export declare type ConfiguratorSchema = any[];
3
+ export interface Configurator<T = any> {
4
+ schema: ConfiguratorSchema;
5
+ initialValues?: T;
6
+ defaultValues?: T;
7
+ }
8
+ export declare type ConfiguratorMap = {
9
+ [key: string]: Configurator;
10
+ };
11
+ export interface ConfiguratorProps<T = any> {
12
+ initialValues?: T;
13
+ onValuesChange?: (values: T) => void;
14
+ }
15
+ export declare const initConfigurator: <T>(schema: ConfiguratorSchema, defaultInitialValues?: T, defaultValues?: T) => React.FC<ConfiguratorProps<T>>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.initConfigurator = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _form = _interopRequireWildcard(require("../../form"));
13
+
14
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
+
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
+
18
+ var initConfigurator = function initConfigurator(schema, defaultInitialValues, defaultValues) {
19
+ return function (props) {
20
+ var initialValues = props.initialValues,
21
+ onValuesChange = props.onValuesChange;
22
+ var form = (0, _react.useMemo)(function () {
23
+ return (0, _form.createForm)({
24
+ initialValues: Object.assign({}, defaultValues, initialValues || defaultInitialValues)
25
+ });
26
+ }, []);
27
+
28
+ var onChange = function onChange(values) {
29
+ onValuesChange && onValuesChange(values);
30
+ };
31
+
32
+ return /*#__PURE__*/_react.default.createElement(_form.default, {
33
+ labelCol: 6,
34
+ wrapperCol: 18,
35
+ labelAlign: "left",
36
+ colon: false,
37
+ form: form,
38
+ schema: schema,
39
+ onChange: onChange
40
+ });
41
+ };
42
+ };
43
+
44
+ exports.initConfigurator = initConfigurator;
@@ -0,0 +1,2 @@
1
+ import { ConfiguratorMap } from '.';
2
+ export declare const ComponentConfiguratorMap: ConfiguratorMap;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ComponentConfiguratorMap = void 0;
7
+
8
+ var _Card = _interopRequireDefault(require("./Card"));
9
+
10
+ var _PageHeader = _interopRequireDefault(require("./PageHeader"));
11
+
12
+ var _ProTable = _interopRequireDefault(require("./ProTable"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ var ComponentConfiguratorMap = {
17
+ Card: _Card.default,
18
+ PageHeader: _PageHeader.default,
19
+ ProTable: _ProTable.default
20
+ };
21
+ exports.ComponentConfiguratorMap = ComponentConfiguratorMap;
@@ -0,0 +1,8 @@
1
+ import './index.scss';
2
+ import PageContainer from '../page-container';
3
+ export { PageContainer };
4
+ export type { PageProps } from '../page-container';
5
+ export * from './configurators';
6
+ export * from './configurators/map';
7
+ export * from './pages';
8
+ export * from './playground';
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ PageContainer: true
8
+ };
9
+ Object.defineProperty(exports, "PageContainer", {
10
+ enumerable: true,
11
+ get: function get() {
12
+ return _pageContainer.default;
13
+ }
14
+ });
15
+
16
+ require("./index.scss");
17
+
18
+ var _pageContainer = _interopRequireDefault(require("../page-container"));
19
+
20
+ var _configurators = require("./configurators");
21
+
22
+ Object.keys(_configurators).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
25
+ if (key in exports && exports[key] === _configurators[key]) return;
26
+ Object.defineProperty(exports, key, {
27
+ enumerable: true,
28
+ get: function get() {
29
+ return _configurators[key];
30
+ }
31
+ });
32
+ });
33
+
34
+ var _map = require("./configurators/map");
35
+
36
+ Object.keys(_map).forEach(function (key) {
37
+ if (key === "default" || key === "__esModule") return;
38
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
39
+ if (key in exports && exports[key] === _map[key]) return;
40
+ Object.defineProperty(exports, key, {
41
+ enumerable: true,
42
+ get: function get() {
43
+ return _map[key];
44
+ }
45
+ });
46
+ });
47
+
48
+ var _pages = require("./pages");
49
+
50
+ Object.keys(_pages).forEach(function (key) {
51
+ if (key === "default" || key === "__esModule") return;
52
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
53
+ if (key in exports && exports[key] === _pages[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _pages[key];
58
+ }
59
+ });
60
+ });
61
+
62
+ var _playground = require("./playground");
63
+
64
+ Object.keys(_playground).forEach(function (key) {
65
+ if (key === "default" || key === "__esModule") return;
66
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
67
+ if (key in exports && exports[key] === _playground[key]) return;
68
+ Object.defineProperty(exports, key, {
69
+ enumerable: true,
70
+ get: function get() {
71
+ return _playground[key];
72
+ }
73
+ });
74
+ });
75
+
76
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,93 @@
1
+ .teamix-nocode {
2
+ &-empty {
3
+ display: flex;
4
+ flex-direction: column;
5
+ align-items: center;
6
+ justify-content: center;
7
+ padding: 20px;
8
+
9
+ p {
10
+ color: var(--color-text1-8, #848484);
11
+ }
12
+ }
13
+
14
+ &-playground {
15
+ display: flex;
16
+ position: relative;
17
+ border: 1px solid var(--color-line1-1, #eaeaea);
18
+
19
+ &-component {
20
+ padding: 20px;
21
+ flex-grow: 1;
22
+ border-right: 1px solid var(--color-line1-1, #eaeaea);
23
+
24
+ &>.teamix-pro-page-container {
25
+ padding: 0;
26
+ }
27
+ }
28
+
29
+ &-configurator {
30
+ padding: 0;
31
+ flex-shrink: 0;
32
+ width: 360px;
33
+ overflow: auto;
34
+
35
+ --tab-item-margin-lr-size-m: 8px;
36
+
37
+ ul.next-tabs-nav {
38
+ padding: 0 16px;
39
+ --tab-item-text-size-m: 13px;
40
+ }
41
+
42
+ .next-collapse-panel-content {
43
+ padding: 16px 16px 0 !important;
44
+ }
45
+
46
+ .next-table-empty {
47
+ padding: 8px 0;
48
+ }
49
+
50
+ & > .next-formily-layout {
51
+ height: 100%;
52
+ & > form {
53
+ height: 100%;
54
+ & > .next-tabs {
55
+ height: 100%;
56
+ display: flex;
57
+ flex-direction: column;
58
+ & > .next-tabs-bar {
59
+ flex-shrink: 0;
60
+ }
61
+ & > .next-tabs-content {
62
+ flex-grow: 1;
63
+ overflow: auto;
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ .teamix-pro-field-icon {
70
+ button {
71
+ width: 100%;
72
+ }
73
+ }
74
+ }
75
+
76
+ &-tools {
77
+ position: absolute;
78
+ right: 20px;
79
+ bottom: 20px;
80
+
81
+ &>i {
82
+ cursor: pointer;
83
+ color: var(--color-text1-8, #848484);
84
+ background-color: rgba(0, 0, 0, 0.06);
85
+ padding: 8px;
86
+ border-radius: 4px;
87
+ &:hover {
88
+ color: var(--color-text1-3, #333333);
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,12 @@
1
+ import { Field } from '@alicloudfe/components';
2
+ import { ConfiguratorMap } from '../configurators';
3
+ import { PageMap, PageType, PageDefaultInitialValues } from '.';
4
+ export interface PageEditorProps {
5
+ type: PageType;
6
+ initialValues?: any;
7
+ field?: Field;
8
+ configuratorMap?: ConfiguratorMap;
9
+ pageMap?: PageMap;
10
+ pageDefaultInitialValues?: PageDefaultInitialValues;
11
+ }
12
+ export declare const PageEditor: (props: PageEditorProps) => JSX.Element;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PageEditor = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _svg = _interopRequireDefault(require("@teamix/svg"));
11
+
12
+ var _utils = require("@teamix/utils");
13
+
14
+ var _playground = require("./playground");
15
+
16
+ var _ = require(".");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ var cls = (0, _utils.baseClass)('teamix-pro-pager');
21
+
22
+ var PageEditor = function PageEditor(props) {
23
+ var type = props.type,
24
+ initialValues = props.initialValues,
25
+ field = props.field,
26
+ configuratorMap = props.configuratorMap,
27
+ pageMap = props.pageMap,
28
+ pageDefaultInitialValues = props.pageDefaultInitialValues;
29
+ var values = initialValues || _.PageDefaultInitialValues[type] || (pageDefaultInitialValues === null || pageDefaultInitialValues === void 0 ? void 0 : pageDefaultInitialValues[type]);
30
+
31
+ _react.default.useEffect(function () {
32
+ field && field.setValues(values);
33
+ }, []);
34
+
35
+ var onValuesChange = function onValuesChange(values) {
36
+ field && field.setValues(values);
37
+ };
38
+
39
+ var Page = _.PageMap[type] || (pageMap === null || pageMap === void 0 ? void 0 : pageMap[type]);
40
+
41
+ if (!Page) {
42
+ return /*#__PURE__*/_react.default.createElement("div", {
43
+ className: cls('empty')
44
+ }, /*#__PURE__*/_react.default.createElement(_svg.default.Status404, {
45
+ width: 160,
46
+ height: 160
47
+ }), /*#__PURE__*/_react.default.createElement("p", null, "\u9519\u8BEF\u7684\u9875\u9762\u7C7B\u578B"));
48
+ }
49
+
50
+ return /*#__PURE__*/_react.default.createElement(_playground.PagePlayground, {
51
+ page: Page,
52
+ initialValues: values,
53
+ onValuesChange: onValuesChange,
54
+ configuratorMap: configuratorMap
55
+ });
56
+ };
57
+
58
+ exports.PageEditor = PageEditor;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { PageProps } from '../../page-container';
3
+ export * from './editor';
4
+ export * from './playground';
5
+ export * from './renderer';
6
+ export declare type PageType = 'LIST' | 'DETAIL' | 'FORM' | string;
7
+ export declare type PageMap = {
8
+ [key in PageType]: React.FC<PageProps>;
9
+ };
10
+ export declare const PageMap: PageMap;
11
+ export declare type PageDefaultInitialValues = {
12
+ [key in PageType]: any;
13
+ };
14
+ export declare const PageDefaultInitialValues: PageDefaultInitialValues;