@nocobase/client 0.7.0-alpha.8 → 0.7.0-alpha.80

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 (2969) hide show
  1. package/.buildrc.ts +5 -0
  2. package/{esm → es}/acl/ACLProvider.d.ts +0 -0
  3. package/es/acl/ACLProvider.js +263 -0
  4. package/es/acl/ACLShortcut.d.ts +1 -0
  5. package/es/acl/ACLShortcut.js +60 -0
  6. package/es/acl/Configuration/MenuConfigure.d.ts +1 -0
  7. package/es/acl/Configuration/MenuConfigure.js +206 -0
  8. package/es/acl/Configuration/RoleConfigure.d.ts +1 -0
  9. package/es/acl/Configuration/RoleConfigure.js +94 -0
  10. package/es/acl/Configuration/RoleTable.d.ts +3 -0
  11. package/es/acl/Configuration/RoleTable.js +82 -0
  12. package/{esm → es}/acl/Configuration/RolesResourcesActions.d.ts +0 -0
  13. package/es/acl/Configuration/RolesResourcesActions.js +289 -0
  14. package/es/acl/Configuration/ScopeSelect.d.ts +2 -0
  15. package/es/acl/Configuration/ScopeSelect.js +56 -0
  16. package/{esm → es}/acl/Configuration/StrategyActions.d.ts +0 -0
  17. package/es/acl/Configuration/StrategyActions.js +146 -0
  18. package/{esm → es}/acl/Configuration/index.d.ts +0 -0
  19. package/es/acl/Configuration/index.js +5 -0
  20. package/{esm → es}/acl/Configuration/schemas/roleCollections.d.ts +0 -0
  21. package/es/acl/Configuration/schemas/roleCollections.js +214 -0
  22. package/{esm → es}/acl/Configuration/schemas/roles.d.ts +0 -0
  23. package/es/acl/Configuration/schemas/roles.js +355 -0
  24. package/{esm → es}/acl/Configuration/schemas/scopes.d.ts +0 -0
  25. package/es/acl/Configuration/schemas/scopes.js +360 -0
  26. package/{esm → es}/acl/Configuration/schemas/useRoleResourceValues.d.ts +0 -0
  27. package/es/acl/Configuration/schemas/useRoleResourceValues.js +39 -0
  28. package/{esm → es}/acl/Configuration/schemas/useSaveRoleResourceAction.d.ts +0 -0
  29. package/es/acl/Configuration/schemas/useSaveRoleResourceAction.js +50 -0
  30. package/{esm → es}/acl/index.d.ts +0 -0
  31. package/es/acl/index.js +2 -0
  32. package/es/action-logs/ActionLog.Designer.d.ts +1 -0
  33. package/es/action-logs/ActionLog.Designer.js +104 -0
  34. package/{esm → es}/action-logs/ActionLog.d.ts +0 -0
  35. package/es/action-logs/ActionLog.js +63 -0
  36. package/es/action-logs/ActionLogBlockInitializer.d.ts +1 -0
  37. package/es/action-logs/ActionLogBlockInitializer.js +33 -0
  38. package/es/action-logs/ActionLogProvider.d.ts +1 -0
  39. package/es/action-logs/ActionLogProvider.js +24 -0
  40. package/{esm → es}/action-logs/index.d.ts +0 -0
  41. package/es/action-logs/index.js +3 -0
  42. package/{esm → es}/action-logs/utils.d.ts +0 -0
  43. package/es/action-logs/utils.js +313 -0
  44. package/{esm → es}/antd-config-provider/index.d.ts +0 -0
  45. package/es/antd-config-provider/index.js +51 -0
  46. package/{esm → es}/api-client/APIClient.d.ts +0 -0
  47. package/es/api-client/APIClient.js +172 -0
  48. package/{esm → es}/api-client/APIClientProvider.d.ts +0 -0
  49. package/es/api-client/APIClientProvider.js +9 -0
  50. package/{esm → es}/api-client/context.d.ts +0 -0
  51. package/es/api-client/context.js +3 -0
  52. package/{esm → es}/api-client/hooks/assign.d.ts +0 -0
  53. package/es/api-client/hooks/assign.js +117 -0
  54. package/{esm → es}/api-client/hooks/index.d.ts +0 -0
  55. package/es/api-client/hooks/index.js +3 -0
  56. package/{esm → es}/api-client/hooks/useAPIClient.d.ts +0 -0
  57. package/es/api-client/hooks/useAPIClient.js +5 -0
  58. package/{esm → es}/api-client/hooks/useRequest.d.ts +0 -0
  59. package/es/api-client/hooks/useRequest.js +117 -0
  60. package/{esm → es}/api-client/hooks/useResource.d.ts +0 -0
  61. package/es/api-client/hooks/useResource.js +6 -0
  62. package/{esm → es}/api-client/index.d.ts +0 -0
  63. package/es/api-client/index.js +3 -0
  64. package/es/application/compose.d.ts +1 -0
  65. package/es/application/compose.js +52 -0
  66. package/{esm → es}/application/index.d.ts +0 -0
  67. package/es/application/index.js +1 -0
  68. package/{esm → es}/async-data-provider/index.d.ts +0 -0
  69. package/es/async-data-provider/index.js +35 -0
  70. package/{esm → es}/block-provider/BlockProvider.d.ts +0 -0
  71. package/es/block-provider/BlockProvider.js +232 -0
  72. package/{esm → es}/block-provider/BlockSchemaComponentProvider.d.ts +0 -0
  73. package/es/block-provider/BlockSchemaComponentProvider.js +43 -0
  74. package/{esm → es}/block-provider/CalendarBlockProvider.d.ts +0 -0
  75. package/es/block-provider/CalendarBlockProvider.js +62 -0
  76. package/{esm → es}/block-provider/DetailsBlockProvider.d.ts +0 -0
  77. package/es/block-provider/DetailsBlockProvider.js +67 -0
  78. package/{esm → es}/block-provider/FormBlockProvider.d.ts +0 -0
  79. package/es/block-provider/FormBlockProvider.js +59 -0
  80. package/{esm → es}/block-provider/KanbanBlockProvider.d.ts +0 -0
  81. package/es/block-provider/KanbanBlockProvider.js +154 -0
  82. package/{esm → es}/block-provider/TableBlockProvider.d.ts +0 -0
  83. package/es/block-provider/TableBlockProvider.js +176 -0
  84. package/{esm → es}/block-provider/TableFieldProvider.d.ts +0 -0
  85. package/es/block-provider/TableFieldProvider.js +303 -0
  86. package/{esm → es}/block-provider/TableSelectorProvider.d.ts +0 -0
  87. package/es/block-provider/TableSelectorProvider.js +147 -0
  88. package/es/block-provider/hooks/index.d.ts +30 -0
  89. package/es/block-provider/hooks/index.js +652 -0
  90. package/es/block-provider/index.d.ts +8 -0
  91. package/es/block-provider/index.js +8 -0
  92. package/{esm → es}/board/Board.d.ts +0 -0
  93. package/es/board/Board.js +418 -0
  94. package/{esm → es}/board/Card.d.ts +0 -0
  95. package/es/board/Card.js +29 -0
  96. package/{esm → es}/board/CardAdder.d.ts +0 -0
  97. package/es/board/CardAdder.js +43 -0
  98. package/{esm → es}/board/CardForm.d.ts +0 -0
  99. package/es/board/CardForm.js +51 -0
  100. package/{esm → es}/board/Column.d.ts +0 -0
  101. package/es/board/Column.js +88 -0
  102. package/{esm → es}/board/ColumnAdder.d.ts +0 -0
  103. package/es/board/ColumnAdder.js +49 -0
  104. package/{esm → es}/board/ColumnForm.d.ts +0 -0
  105. package/es/board/ColumnForm.js +38 -0
  106. package/{esm → es}/board/DefaultCard.d.ts +0 -0
  107. package/es/board/DefaultCard.js +24 -0
  108. package/{esm → es}/board/DefaultColumnHeader.d.ts +0 -0
  109. package/es/board/DefaultColumnHeader.js +97 -0
  110. package/{esm → es}/board/Kanban.d.ts +0 -0
  111. package/es/board/Kanban.js +121 -0
  112. package/{esm → es}/board/helpers.d.ts +0 -0
  113. package/es/board/helpers.js +165 -0
  114. package/{esm → es}/board/index.d.ts +0 -0
  115. package/es/board/index.js +1 -0
  116. package/{esm → es}/board/services.d.ts +0 -0
  117. package/es/board/services.js +59 -0
  118. package/es/board/style.less +153 -0
  119. package/{esm → es}/board/utils.d.ts +0 -0
  120. package/es/board/utils.js +89 -0
  121. package/es/board/withDroppable.d.ts +5 -0
  122. package/es/board/withDroppable.js +29 -0
  123. package/es/china-region/index.d.ts +1 -0
  124. package/es/china-region/index.js +98 -0
  125. package/{esm → es}/collection-manager/CollectionField.d.ts +0 -0
  126. package/es/collection-manager/CollectionField.js +88 -0
  127. package/{esm → es}/collection-manager/CollectionFieldProvider.d.ts +0 -0
  128. package/es/collection-manager/CollectionFieldProvider.js +21 -0
  129. package/{esm → es}/collection-manager/CollectionManagerProvider.d.ts +0 -0
  130. package/es/collection-manager/CollectionManagerProvider.js +137 -0
  131. package/{esm → es}/collection-manager/CollectionManagerSchemaComponentProvider.d.ts +0 -0
  132. package/es/collection-manager/CollectionManagerSchemaComponentProvider.js +29 -0
  133. package/es/collection-manager/CollectionManagerShortcut.d.ts +1 -0
  134. package/es/collection-manager/CollectionManagerShortcut.js +63 -0
  135. package/{esm → es}/collection-manager/CollectionProvider.d.ts +0 -0
  136. package/es/collection-manager/CollectionProvider.js +22 -0
  137. package/es/collection-manager/Configuration/AddFieldAction.d.ts +1 -0
  138. package/es/collection-manager/Configuration/AddFieldAction.js +211 -0
  139. package/es/collection-manager/Configuration/AddSubFieldAction.d.ts +1 -0
  140. package/es/collection-manager/Configuration/AddSubFieldAction.js +183 -0
  141. package/es/collection-manager/Configuration/ConfigurationTable.d.ts +1 -0
  142. package/es/collection-manager/Configuration/ConfigurationTable.js +247 -0
  143. package/es/collection-manager/Configuration/EditFieldAction.d.ts +1 -0
  144. package/es/collection-manager/Configuration/EditFieldAction.js +205 -0
  145. package/es/collection-manager/Configuration/EditSubFieldAction.d.ts +1 -0
  146. package/es/collection-manager/Configuration/EditSubFieldAction.js +199 -0
  147. package/{esm → es}/collection-manager/Configuration/index.d.ts +0 -0
  148. package/es/collection-manager/Configuration/index.js +3 -0
  149. package/{esm → es}/collection-manager/Configuration/interfaces.d.ts +0 -0
  150. package/es/collection-manager/Configuration/interfaces.js +47 -0
  151. package/{esm → es}/collection-manager/Configuration/schemas/collectionFields.d.ts +0 -0
  152. package/es/collection-manager/Configuration/schemas/collectionFields.js +193 -0
  153. package/{esm → es}/collection-manager/Configuration/schemas/collections.d.ts +0 -0
  154. package/es/collection-manager/Configuration/schemas/collections.js +271 -0
  155. package/{esm → es}/collection-manager/ResourceActionProvider.d.ts +0 -0
  156. package/es/collection-manager/ResourceActionProvider.js +170 -0
  157. package/{esm → es}/collection-manager/action-hooks.d.ts +0 -0
  158. package/es/collection-manager/action-hooks.js +718 -0
  159. package/{esm → es}/collection-manager/context.d.ts +0 -0
  160. package/es/collection-manager/context.js +7 -0
  161. package/{esm → es}/collection-manager/hooks/index.d.ts +0 -0
  162. package/es/collection-manager/hooks/index.js +4 -0
  163. package/es/collection-manager/hooks/useCollection.d.ts +12 -0
  164. package/es/collection-manager/hooks/useCollection.js +24 -0
  165. package/{esm → es}/collection-manager/hooks/useCollectionDataSource.d.ts +0 -0
  166. package/es/collection-manager/hooks/useCollectionDataSource.js +21 -0
  167. package/{esm → es}/collection-manager/hooks/useCollectionField.d.ts +0 -0
  168. package/es/collection-manager/hooks/useCollectionField.js +30 -0
  169. package/{esm → es}/collection-manager/hooks/useCollectionManager.d.ts +0 -0
  170. package/es/collection-manager/hooks/useCollectionManager.js +78 -0
  171. package/{esm → es}/collection-manager/index.d.ts +0 -0
  172. package/es/collection-manager/index.js +10 -0
  173. package/{esm → es}/collection-manager/interfaces/attachment.d.ts +0 -0
  174. package/es/collection-manager/interfaces/attachment.js +102 -0
  175. package/{esm → es}/collection-manager/interfaces/checkbox.d.ts +0 -0
  176. package/es/collection-manager/interfaces/checkbox.js +26 -0
  177. package/{esm → es}/collection-manager/interfaces/checkboxGroup.d.ts +0 -0
  178. package/es/collection-manager/interfaces/checkboxGroup.js +30 -0
  179. package/{esm → es}/collection-manager/interfaces/chinaRegion.d.ts +0 -0
  180. package/es/collection-manager/interfaces/chinaRegion.js +107 -0
  181. package/{esm → es}/collection-manager/interfaces/createdAt.d.ts +0 -0
  182. package/es/collection-manager/interfaces/createdAt.js +31 -0
  183. package/{esm → es}/collection-manager/interfaces/createdBy.d.ts +0 -0
  184. package/es/collection-manager/interfaces/createdBy.js +62 -0
  185. package/{esm → es}/collection-manager/interfaces/datetime.d.ts +0 -0
  186. package/es/collection-manager/interfaces/datetime.js +31 -0
  187. package/{esm → es}/collection-manager/interfaces/email.d.ts +0 -0
  188. package/es/collection-manager/interfaces/email.js +29 -0
  189. package/{esm → es}/collection-manager/interfaces/icon.d.ts +0 -0
  190. package/es/collection-manager/interfaces/icon.js +24 -0
  191. package/{esm → es}/collection-manager/interfaces/id.d.ts +0 -0
  192. package/es/collection-manager/interfaces/id.js +44 -0
  193. package/{esm → es}/collection-manager/interfaces/index.d.ts +0 -0
  194. package/es/collection-manager/interfaces/index.js +26 -0
  195. package/{esm → es}/collection-manager/interfaces/input.d.ts +0 -0
  196. package/es/collection-manager/interfaces/input.js +35 -0
  197. package/{esm → es}/collection-manager/interfaces/linkTo.d.ts +0 -0
  198. package/es/collection-manager/interfaces/linkTo.js +146 -0
  199. package/{esm → es}/collection-manager/interfaces/markdown.d.ts +0 -0
  200. package/es/collection-manager/interfaces/markdown.js +31 -0
  201. package/{esm → es}/collection-manager/interfaces/multipleSelect.d.ts +0 -0
  202. package/es/collection-manager/interfaces/multipleSelect.js +34 -0
  203. package/{esm → es}/collection-manager/interfaces/number.d.ts +0 -0
  204. package/es/collection-manager/interfaces/number.js +59 -0
  205. package/{esm → es}/collection-manager/interfaces/password.d.ts +0 -0
  206. package/es/collection-manager/interfaces/password.js +24 -0
  207. package/{esm → es}/collection-manager/interfaces/percent.d.ts +0 -0
  208. package/es/collection-manager/interfaces/percent.js +60 -0
  209. package/{esm → es}/collection-manager/interfaces/phone.d.ts +0 -0
  210. package/es/collection-manager/interfaces/phone.js +29 -0
  211. package/{esm → es}/collection-manager/interfaces/properties/index.d.ts +0 -0
  212. package/es/collection-manager/interfaces/properties/index.js +297 -0
  213. package/{esm → es}/collection-manager/interfaces/properties/operators.d.ts +0 -0
  214. package/es/collection-manager/interfaces/properties/operators.js +213 -0
  215. package/{esm → es}/collection-manager/interfaces/radioGroup.d.ts +0 -0
  216. package/es/collection-manager/interfaces/radioGroup.js +30 -0
  217. package/{esm → es}/collection-manager/interfaces/richText.d.ts +0 -0
  218. package/es/collection-manager/interfaces/richText.js +32 -0
  219. package/{esm → es}/collection-manager/interfaces/select.d.ts +0 -0
  220. package/es/collection-manager/interfaces/select.js +31 -0
  221. package/{esm → es}/collection-manager/interfaces/subTable.d.ts +0 -0
  222. package/es/collection-manager/interfaces/subTable.js +211 -0
  223. package/{esm → es}/collection-manager/interfaces/textarea.d.ts +0 -0
  224. package/es/collection-manager/interfaces/textarea.js +32 -0
  225. package/{esm → es}/collection-manager/interfaces/time.d.ts +0 -0
  226. package/es/collection-manager/interfaces/time.js +42 -0
  227. package/{esm → es}/collection-manager/interfaces/types.d.ts +0 -0
  228. package/es/collection-manager/interfaces/types.js +1 -0
  229. package/{esm → es}/collection-manager/interfaces/updatedAt.d.ts +0 -0
  230. package/es/collection-manager/interfaces/updatedAt.js +31 -0
  231. package/{esm → es}/collection-manager/interfaces/updatedBy.d.ts +0 -0
  232. package/es/collection-manager/interfaces/updatedBy.js +61 -0
  233. package/{esm → es}/collection-manager/sub-table.d.ts +0 -0
  234. package/es/collection-manager/sub-table.js +359 -0
  235. package/es/collection-manager/types.d.ts +33 -0
  236. package/es/collection-manager/types.js +1 -0
  237. package/es/document-title/index.d.ts +14 -0
  238. package/es/document-title/index.js +55 -0
  239. package/es/file-manager/FileStorageShortcut.d.ts +1 -0
  240. package/es/file-manager/FileStorageShortcut.js +61 -0
  241. package/{esm → es}/file-manager/StorageOptions.d.ts +0 -0
  242. package/es/file-manager/StorageOptions.js +121 -0
  243. package/{esm → es}/file-manager/index.d.ts +0 -0
  244. package/es/file-manager/index.js +1 -0
  245. package/{esm → es}/file-manager/schemas/storage.d.ts +0 -0
  246. package/es/file-manager/schemas/storage.js +349 -0
  247. package/es/global.less +27 -0
  248. package/{esm → es}/i18n/i18n.d.ts +0 -0
  249. package/es/i18n/i18n.js +35 -0
  250. package/{esm → es}/i18n/index.d.ts +0 -0
  251. package/es/i18n/index.js +1 -0
  252. package/es/icon/Icon.d.ts +15 -0
  253. package/es/icon/Icon.js +73 -0
  254. package/{esm → es}/icon/index.d.ts +0 -0
  255. package/es/icon/index.js +1 -0
  256. package/{esm → es}/index.d.ts +0 -0
  257. package/es/index.js +28 -0
  258. package/es/locale/en_US.d.ts +282 -0
  259. package/es/locale/en_US.js +282 -0
  260. package/es/locale/index.d.ts +752 -0
  261. package/es/locale/index.js +16 -0
  262. package/es/locale/zh_CN.d.ts +466 -0
  263. package/es/locale/zh_CN.js +466 -0
  264. package/es/plugin-manager/PluginManager.d.ts +22 -0
  265. package/es/plugin-manager/PluginManager.js +163 -0
  266. package/{esm → es}/plugin-manager/PluginManagerProvider.d.ts +0 -0
  267. package/es/plugin-manager/PluginManagerProvider.js +11 -0
  268. package/{esm → es}/plugin-manager/context.d.ts +0 -0
  269. package/es/plugin-manager/context.js +2 -0
  270. package/{esm → es}/plugin-manager/index.d.ts +0 -0
  271. package/es/plugin-manager/index.js +3 -0
  272. package/es/powered-by/index.d.ts +1 -0
  273. package/es/powered-by/index.js +21 -0
  274. package/{esm → es}/record-provider/index.d.ts +0 -0
  275. package/es/record-provider/index.js +47 -0
  276. package/{esm → es}/route-switch/RouteSwitch.d.ts +0 -0
  277. package/es/route-switch/RouteSwitch.js +62 -0
  278. package/{esm → es}/route-switch/RouteSwitchProvider.d.ts +0 -0
  279. package/es/route-switch/RouteSwitchProvider.js +36 -0
  280. package/es/route-switch/antd/admin-layout/index.d.ts +2 -0
  281. package/es/route-switch/antd/admin-layout/index.js +201 -0
  282. package/{esm → es}/route-switch/antd/auth-layout/index.d.ts +0 -0
  283. package/es/route-switch/antd/auth-layout/index.js +24 -0
  284. package/{esm → es}/route-switch/antd/index.d.ts +0 -0
  285. package/es/route-switch/antd/index.js +3 -0
  286. package/{esm → es}/route-switch/antd/route-schema-component/index.d.ts +0 -0
  287. package/es/route-switch/antd/route-schema-component/index.js +10 -0
  288. package/{esm → es}/route-switch/context.d.ts +0 -0
  289. package/es/route-switch/context.js +6 -0
  290. package/{esm → es}/route-switch/hooks.d.ts +0 -0
  291. package/es/route-switch/hooks.js +30 -0
  292. package/{esm → es}/route-switch/index.d.ts +0 -0
  293. package/es/route-switch/index.js +6 -0
  294. package/{esm → es}/route-switch/types.d.ts +0 -0
  295. package/es/route-switch/types.js +1 -0
  296. package/es/schema-component/antd/AntdSchemaComponentProvider.d.ts +1 -0
  297. package/es/schema-component/antd/AntdSchemaComponentProvider.js +20 -0
  298. package/{esm → es}/schema-component/antd/action/Action.Container.d.ts +0 -0
  299. package/es/schema-component/antd/action/Action.Container.js +42 -0
  300. package/es/schema-component/antd/action/Action.Designer.d.ts +1 -0
  301. package/es/schema-component/antd/action/Action.Designer.js +287 -0
  302. package/{esm → es}/schema-component/antd/action/Action.Drawer.d.ts +0 -0
  303. package/es/schema-component/antd/action/Action.Drawer.js +88 -0
  304. package/{esm → es}/schema-component/antd/action/Action.Link.d.ts +0 -0
  305. package/es/schema-component/antd/action/Action.Link.js +15 -0
  306. package/{esm → es}/schema-component/antd/action/Action.Modal.d.ts +0 -0
  307. package/es/schema-component/antd/action/Action.Modal.js +84 -0
  308. package/{esm → es}/schema-component/antd/action/Action.Page.d.ts +0 -0
  309. package/es/schema-component/antd/action/Action.Page.js +69 -0
  310. package/es/schema-component/antd/action/Action.Popover.d.ts +1 -0
  311. package/{esm/schema-component/antd/action/Action.Popover.d.ts → es/schema-component/antd/action/Action.Popover.js} +0 -0
  312. package/{esm → es}/schema-component/antd/action/Action.d.ts +0 -0
  313. package/es/schema-component/antd/action/Action.js +160 -0
  314. package/{esm → es}/schema-component/antd/action/ActionBar.d.ts +0 -0
  315. package/es/schema-component/antd/action/ActionBar.js +81 -0
  316. package/es/schema-component/antd/action/context.d.ts +11 -0
  317. package/es/schema-component/antd/action/context.js +2 -0
  318. package/es/schema-component/antd/action/hooks.d.ts +15 -0
  319. package/es/schema-component/antd/action/hooks.js +109 -0
  320. package/{esm → es}/schema-component/antd/action/index.d.ts +0 -0
  321. package/es/schema-component/antd/action/index.js +4 -0
  322. package/{esm → es}/schema-component/antd/action/types.d.ts +0 -0
  323. package/es/schema-component/antd/action/types.js +1 -0
  324. package/{esm → es}/schema-component/antd/block-item/BlockItem.d.ts +0 -0
  325. package/es/schema-component/antd/block-item/BlockItem.js +15 -0
  326. package/es/schema-component/antd/block-item/TestDesigner.d.ts +1 -0
  327. package/es/schema-component/antd/block-item/TestDesigner.js +13 -0
  328. package/{esm → es}/schema-component/antd/block-item/index.d.ts +0 -0
  329. package/es/schema-component/antd/block-item/index.js +2 -0
  330. package/es/schema-component/antd/calendar/Calendar.Designer.d.ts +1 -0
  331. package/es/schema-component/antd/calendar/Calendar.Designer.js +157 -0
  332. package/{esm/schema-component/antd/calendar-v2 → es/schema-component/antd/calendar}/Calendar.d.ts +0 -0
  333. package/es/schema-component/antd/calendar/Calendar.js +194 -0
  334. package/{esm/schema-component/antd/calendar-v2 → es/schema-component/antd/calendar}/Event.d.ts +0 -0
  335. package/es/schema-component/antd/calendar/Event.js +5 -0
  336. package/{esm/schema-component/antd/calendar-v2 → es/schema-component/antd/calendar}/Nav.d.ts +0 -0
  337. package/es/schema-component/antd/calendar/Nav.js +28 -0
  338. package/{esm/schema-component/antd/calendar-v2 → es/schema-component/antd/calendar}/Title.d.ts +0 -0
  339. package/es/schema-component/antd/calendar/Title.js +19 -0
  340. package/{esm/schema-component/antd/calendar-v2 → es/schema-component/antd/calendar}/Today.d.ts +0 -0
  341. package/es/schema-component/antd/calendar/Today.js +23 -0
  342. package/{esm/schema-component/antd/calendar-v2 → es/schema-component/antd/calendar}/ViewSelect.d.ts +0 -0
  343. package/es/schema-component/antd/calendar/ViewSelect.js +26 -0
  344. package/{esm/schema-component/antd/calendar-v2 → es/schema-component/antd/calendar}/context.d.ts +0 -0
  345. package/es/schema-component/antd/calendar/context.js +3 -0
  346. package/es/schema-component/antd/calendar/index.d.ts +3 -0
  347. package/es/schema-component/antd/calendar/index.js +18 -0
  348. package/{src/schema-component/antd/calendar-v2 → es/schema-component/antd/calendar}/style.less +0 -0
  349. package/{src/schema-component/antd/calendar-v2 → es/schema-component/antd/calendar}/types.d.ts +0 -0
  350. package/{esm/schema-component/antd/calendar-v2 → es/schema-component/antd/calendar}/utils.d.ts +0 -0
  351. package/es/schema-component/antd/calendar/utils.js +12 -0
  352. package/{esm → es}/schema-component/antd/card-item/CardItem.d.ts +0 -0
  353. package/es/schema-component/antd/card-item/CardItem.js +19 -0
  354. package/{esm → es}/schema-component/antd/card-item/index.d.ts +0 -0
  355. package/es/schema-component/antd/card-item/index.js +1 -0
  356. package/{esm → es}/schema-component/antd/cascader/Cascader.d.ts +0 -0
  357. package/es/schema-component/antd/cascader/Cascader.js +120 -0
  358. package/{esm → es}/schema-component/antd/cascader/ReadPretty.d.ts +0 -0
  359. package/es/schema-component/antd/cascader/ReadPretty.js +59 -0
  360. package/{esm → es}/schema-component/antd/cascader/defaultFieldNames.d.ts +0 -0
  361. package/es/schema-component/antd/cascader/defaultFieldNames.js +5 -0
  362. package/{esm → es}/schema-component/antd/cascader/index.d.ts +0 -0
  363. package/es/schema-component/antd/cascader/index.js +1 -0
  364. package/es/schema-component/antd/chart/Chart.d.ts +1 -0
  365. package/es/schema-component/antd/chart/Chart.js +4 -0
  366. package/{esm → es}/schema-component/antd/chart/index.d.ts +0 -0
  367. package/es/schema-component/antd/chart/index.js +1 -0
  368. package/{esm → es}/schema-component/antd/checkbox/Checkbox.d.ts +0 -0
  369. package/es/schema-component/antd/checkbox/Checkbox.js +52 -0
  370. package/{esm → es}/schema-component/antd/checkbox/index.d.ts +0 -0
  371. package/es/schema-component/antd/checkbox/index.js +1 -0
  372. package/{esm → es}/schema-component/antd/color-select/ColorSelect.d.ts +0 -0
  373. package/es/schema-component/antd/color-select/ColorSelect.js +51 -0
  374. package/{esm → es}/schema-component/antd/color-select/index.d.ts +0 -0
  375. package/es/schema-component/antd/color-select/index.js +1 -0
  376. package/{esm → es}/schema-component/antd/date-picker/DatePicker.d.ts +0 -0
  377. package/es/schema-component/antd/date-picker/DatePicker.js +7 -0
  378. package/{esm → es}/schema-component/antd/date-picker/ReadPretty.d.ts +0 -0
  379. package/es/schema-component/antd/date-picker/ReadPretty.js +41 -0
  380. package/{esm → es}/schema-component/antd/date-picker/index.d.ts +0 -0
  381. package/es/schema-component/antd/date-picker/index.js +1 -0
  382. package/{esm → es}/schema-component/antd/date-picker/util.d.ts +0 -0
  383. package/es/schema-component/antd/date-picker/util.js +47 -0
  384. package/es/schema-component/antd/filter/DynamicComponent.d.ts +1 -0
  385. package/es/schema-component/antd/filter/DynamicComponent.js +63 -0
  386. package/es/schema-component/antd/filter/Filter.Action.Designer.d.ts +2 -0
  387. package/es/schema-component/antd/filter/Filter.Action.Designer.js +132 -0
  388. package/{esm → es}/schema-component/antd/filter/Filter.d.ts +0 -0
  389. package/es/schema-component/antd/filter/Filter.js +57 -0
  390. package/{esm → es}/schema-component/antd/filter/FilterAction.d.ts +0 -0
  391. package/es/schema-component/antd/filter/FilterAction.js +178 -0
  392. package/{esm → es}/schema-component/antd/filter/FilterGroup.d.ts +0 -0
  393. package/es/schema-component/antd/filter/FilterGroup.js +103 -0
  394. package/{esm → es}/schema-component/antd/filter/FilterItem.d.ts +0 -0
  395. package/es/schema-component/antd/filter/FilterItem.js +66 -0
  396. package/{esm → es}/schema-component/antd/filter/FilterItems.d.ts +0 -0
  397. package/es/schema-component/antd/filter/FilterItems.js +20 -0
  398. package/es/schema-component/antd/filter/SaveDefaultValue.d.ts +1 -0
  399. package/es/schema-component/antd/filter/SaveDefaultValue.js +51 -0
  400. package/{esm → es}/schema-component/antd/filter/context.d.ts +0 -0
  401. package/es/schema-component/antd/filter/context.js +4 -0
  402. package/{esm → es}/schema-component/antd/filter/index.d.ts +0 -0
  403. package/es/schema-component/antd/filter/index.js +2 -0
  404. package/es/schema-component/antd/filter/style.less +18 -0
  405. package/{esm → es}/schema-component/antd/filter/useFilterActionProps.d.ts +0 -0
  406. package/es/schema-component/antd/filter/useFilterActionProps.js +191 -0
  407. package/{esm → es}/schema-component/antd/filter/useValues.d.ts +0 -0
  408. package/es/schema-component/antd/filter/useValues.js +132 -0
  409. package/es/schema-component/antd/form/Form.Designer.d.ts +1 -0
  410. package/es/schema-component/antd/form/Form.Designer.js +20 -0
  411. package/{esm → es}/schema-component/antd/form/Form.d.ts +0 -0
  412. package/es/schema-component/antd/form/Form.js +181 -0
  413. package/{esm → es}/schema-component/antd/form/index.d.ts +0 -0
  414. package/es/schema-component/antd/form/index.js +1 -0
  415. package/{esm → es}/schema-component/antd/form-item/FormItem.d.ts +0 -0
  416. package/es/schema-component/antd/form-item/FormItem.js +208 -0
  417. package/{esm → es}/schema-component/antd/form-item/index.d.ts +0 -0
  418. package/es/schema-component/antd/form-item/index.js +1 -0
  419. package/es/schema-component/antd/form-v2/Form.Designer.d.ts +3 -0
  420. package/es/schema-component/antd/form-v2/Form.Designer.js +236 -0
  421. package/{esm → es}/schema-component/antd/form-v2/Form.d.ts +0 -0
  422. package/es/schema-component/antd/form-v2/Form.js +135 -0
  423. package/{esm → es}/schema-component/antd/form-v2/index.d.ts +0 -0
  424. package/es/schema-component/antd/form-v2/index.js +5 -0
  425. package/{esm → es}/schema-component/antd/grid/Block.d.ts +0 -0
  426. package/es/schema-component/antd/grid/Block.js +15 -0
  427. package/es/schema-component/antd/grid/Grid.d.ts +3 -0
  428. package/es/schema-component/antd/grid/Grid.js +257 -0
  429. package/{esm → es}/schema-component/antd/grid/index.d.ts +0 -0
  430. package/es/schema-component/antd/grid/index.js +2 -0
  431. package/{esm → es}/schema-component/antd/icon-picker/IconPicker.d.ts +0 -0
  432. package/es/schema-component/antd/icon-picker/IconPicker.js +112 -0
  433. package/{esm → es}/schema-component/antd/icon-picker/index.d.ts +0 -0
  434. package/es/schema-component/antd/icon-picker/index.js +1 -0
  435. package/es/schema-component/antd/index.d.ts +35 -0
  436. package/es/schema-component/antd/index.js +35 -0
  437. package/es/schema-component/antd/index.less +4 -0
  438. package/es/schema-component/antd/input/EllipsisWithTooltip.d.ts +1 -0
  439. package/es/schema-component/antd/input/EllipsisWithTooltip.js +62 -0
  440. package/{esm → es}/schema-component/antd/input/Input.d.ts +0 -0
  441. package/es/schema-component/antd/input/Input.js +26 -0
  442. package/{esm → es}/schema-component/antd/input/ReadPretty.d.ts +0 -0
  443. package/es/schema-component/antd/input/ReadPretty.js +91 -0
  444. package/{esm → es}/schema-component/antd/input/index.d.ts +0 -0
  445. package/es/schema-component/antd/input/index.js +2 -0
  446. package/{esm → es}/schema-component/antd/input/shared.d.ts +0 -0
  447. package/es/schema-component/antd/input/shared.js +7 -0
  448. package/{esm → es}/schema-component/antd/input-number/InputNumber.d.ts +0 -0
  449. package/es/schema-component/antd/input-number/InputNumber.js +5 -0
  450. package/{esm → es}/schema-component/antd/input-number/ReadPretty.d.ts +0 -0
  451. package/es/schema-component/antd/input-number/ReadPretty.js +19 -0
  452. package/{esm → es}/schema-component/antd/input-number/index.d.ts +0 -0
  453. package/es/schema-component/antd/input-number/index.js +1 -0
  454. package/es/schema-component/antd/kanban/Kanban.Card.Designer.d.ts +1 -0
  455. package/es/schema-component/antd/kanban/Kanban.Card.Designer.js +108 -0
  456. package/{esm/schema-component/antd/kanban-v2 → es/schema-component/antd/kanban}/Kanban.Card.d.ts +0 -0
  457. package/es/schema-component/antd/kanban/Kanban.Card.js +92 -0
  458. package/{esm/schema-component/antd/kanban-v2 → es/schema-component/antd/kanban}/Kanban.CardViewer.d.ts +0 -0
  459. package/es/schema-component/antd/kanban/Kanban.CardViewer.js +4 -0
  460. package/es/schema-component/antd/kanban/Kanban.Designer.d.ts +1 -0
  461. package/es/schema-component/antd/kanban/Kanban.Designer.js +79 -0
  462. package/es/schema-component/antd/kanban/Kanban.d.ts +9 -0
  463. package/es/schema-component/antd/kanban/Kanban.js +224 -0
  464. package/{esm/schema-component/antd/kanban-v2 → es/schema-component/antd/kanban}/context.d.ts +0 -0
  465. package/es/schema-component/antd/kanban/context.js +3 -0
  466. package/es/schema-component/antd/kanban/index.d.ts +3 -0
  467. package/es/schema-component/antd/kanban/index.js +13 -0
  468. package/{src/schema-component/antd/kanban-v2 → es/schema-component/antd/kanban}/index.less +0 -0
  469. package/es/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +1 -0
  470. package/es/schema-component/antd/markdown/Markdown.Void.Designer.js +22 -0
  471. package/{esm → es}/schema-component/antd/markdown/Markdown.Void.d.ts +0 -0
  472. package/es/schema-component/antd/markdown/Markdown.Void.js +135 -0
  473. package/{esm → es}/schema-component/antd/markdown/Markdown.d.ts +0 -0
  474. package/es/schema-component/antd/markdown/Markdown.js +37 -0
  475. package/{esm → es}/schema-component/antd/markdown/index.d.ts +0 -0
  476. package/es/schema-component/antd/markdown/index.js +1 -0
  477. package/es/schema-component/antd/markdown/style.less +12 -0
  478. package/{esm → es}/schema-component/antd/markdown/util.d.ts +0 -0
  479. package/es/schema-component/antd/markdown/util.js +16 -0
  480. package/es/schema-component/antd/menu/Menu.Designer.d.ts +1 -0
  481. package/es/schema-component/antd/menu/Menu.Designer.js +405 -0
  482. package/{esm → es}/schema-component/antd/menu/Menu.d.ts +0 -0
  483. package/es/schema-component/antd/menu/Menu.js +336 -0
  484. package/es/schema-component/antd/menu/MenuItemInitializers/index.d.ts +4 -0
  485. package/es/schema-component/antd/menu/MenuItemInitializers/index.js +291 -0
  486. package/{esm → es}/schema-component/antd/menu/index.d.ts +0 -0
  487. package/es/schema-component/antd/menu/index.js +3 -0
  488. package/{esm → es}/schema-component/antd/menu/util.d.ts +0 -0
  489. package/es/schema-component/antd/menu/util.js +81 -0
  490. package/es/schema-component/antd/page/Page.d.ts +1 -0
  491. package/es/schema-component/antd/page/Page.js +40 -0
  492. package/{esm → es}/schema-component/antd/page/index.d.ts +0 -0
  493. package/es/schema-component/antd/page/index.js +1 -0
  494. package/{esm → es}/schema-component/antd/pagination/index.d.ts +0 -0
  495. package/es/schema-component/antd/pagination/index.js +27 -0
  496. package/{esm → es}/schema-component/antd/password/Password.d.ts +0 -0
  497. package/es/schema-component/antd/password/Password.js +80 -0
  498. package/{esm → es}/schema-component/antd/password/PasswordStrength.d.ts +0 -0
  499. package/es/schema-component/antd/password/PasswordStrength.js +185 -0
  500. package/{esm → es}/schema-component/antd/password/index.d.ts +0 -0
  501. package/es/schema-component/antd/password/index.js +1 -0
  502. package/{esm → es}/schema-component/antd/radio/Radio.d.ts +0 -0
  503. package/es/schema-component/antd/radio/Radio.js +31 -0
  504. package/{esm → es}/schema-component/antd/radio/index.d.ts +0 -0
  505. package/es/schema-component/antd/radio/index.js +1 -0
  506. package/{esm → es}/schema-component/antd/record-picker/InputRecordPicker.d.ts +0 -0
  507. package/es/schema-component/antd/record-picker/InputRecordPicker.js +184 -0
  508. package/{esm → es}/schema-component/antd/record-picker/ReadPrettyRecordPicker.d.ts +0 -0
  509. package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +78 -0
  510. package/{esm → es}/schema-component/antd/record-picker/RecordPicker.d.ts +0 -0
  511. package/es/schema-component/antd/record-picker/RecordPicker.js +5 -0
  512. package/{esm → es}/schema-component/antd/record-picker/index.d.ts +0 -0
  513. package/es/schema-component/antd/record-picker/index.js +5 -0
  514. package/{esm → es}/schema-component/antd/record-picker/useFieldNames.d.ts +0 -0
  515. package/es/schema-component/antd/record-picker/useFieldNames.js +17 -0
  516. package/{esm → es}/schema-component/antd/rich-text/RichText.d.ts +0 -0
  517. package/es/schema-component/antd/rich-text/RichText.js +31 -0
  518. package/{esm → es}/schema-component/antd/rich-text/index.d.ts +0 -0
  519. package/es/schema-component/antd/rich-text/index.js +1 -0
  520. package/es/schema-component/antd/rich-text/style.less +950 -0
  521. package/{esm → es}/schema-component/antd/select/ReadPretty.d.ts +0 -0
  522. package/es/schema-component/antd/select/ReadPretty.js +36 -0
  523. package/{esm → es}/schema-component/antd/select/Select.d.ts +0 -0
  524. package/es/schema-component/antd/select/Select.js +103 -0
  525. package/{esm → es}/schema-component/antd/select/index.d.ts +0 -0
  526. package/es/schema-component/antd/select/index.js +1 -0
  527. package/{esm → es}/schema-component/antd/select/shared.d.ts +0 -0
  528. package/es/schema-component/antd/select/shared.js +59 -0
  529. package/{esm → es}/schema-component/antd/space/index.d.ts +0 -0
  530. package/es/schema-component/antd/space/index.js +31 -0
  531. package/es/schema-component/antd/table/Table.Array.Designer.d.ts +1 -0
  532. package/es/schema-component/antd/table/Table.Array.Designer.js +10 -0
  533. package/{esm → es}/schema-component/antd/table/Table.Array.d.ts +0 -0
  534. package/es/schema-component/antd/table/Table.Array.js +289 -0
  535. package/{esm → es}/schema-component/antd/table/Table.Column.ActionBar.d.ts +0 -0
  536. package/es/schema-component/antd/table/Table.Column.ActionBar.js +15 -0
  537. package/es/schema-component/antd/table/Table.Column.Decorator.d.ts +12 -0
  538. package/es/schema-component/antd/table/Table.Column.Decorator.js +64 -0
  539. package/es/schema-component/antd/table/Table.Column.Designer.d.ts +1 -0
  540. package/es/schema-component/antd/table/Table.Column.Designer.js +190 -0
  541. package/es/schema-component/antd/table/Table.Column.d.ts +1 -0
  542. package/es/schema-component/antd/table/Table.Column.js +6 -0
  543. package/es/schema-component/antd/table/Table.Designer.d.ts +1 -0
  544. package/es/schema-component/antd/table/Table.Designer.js +17 -0
  545. package/es/schema-component/antd/table/Table.RowActionDesigner.d.ts +1 -0
  546. package/es/schema-component/antd/table/Table.RowActionDesigner.js +21 -0
  547. package/{esm → es}/schema-component/antd/table/Table.RowSelection.d.ts +0 -0
  548. package/es/schema-component/antd/table/Table.RowSelection.js +54 -0
  549. package/es/schema-component/antd/table/Table.Void.Designer.d.ts +1 -0
  550. package/es/schema-component/antd/table/Table.Void.Designer.js +226 -0
  551. package/{esm → es}/schema-component/antd/table/Table.Void.d.ts +0 -0
  552. package/es/schema-component/antd/table/Table.Void.js +154 -0
  553. package/{esm → es}/schema-component/antd/table/index.d.ts +0 -0
  554. package/es/schema-component/antd/table/index.js +25 -0
  555. package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +1 -0
  556. package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.js +21 -0
  557. package/{esm → es}/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +0 -0
  558. package/es/schema-component/antd/table-v2/Table.Column.ActionBar.js +15 -0
  559. package/es/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +12 -0
  560. package/es/schema-component/antd/table-v2/Table.Column.Decorator.js +64 -0
  561. package/es/schema-component/antd/table-v2/Table.Column.Designer.d.ts +1 -0
  562. package/es/schema-component/antd/table-v2/Table.Column.Designer.js +123 -0
  563. package/es/schema-component/antd/table-v2/Table.Column.d.ts +1 -0
  564. package/es/schema-component/antd/table-v2/Table.Column.js +6 -0
  565. package/es/schema-component/antd/table-v2/Table.Designer.d.ts +1 -0
  566. package/es/schema-component/antd/table-v2/Table.Designer.js +17 -0
  567. package/es/schema-component/antd/table-v2/Table.d.ts +12 -0
  568. package/es/schema-component/antd/table-v2/Table.js +277 -0
  569. package/es/schema-component/antd/table-v2/TableBlockDesigner.d.ts +1 -0
  570. package/es/schema-component/antd/table-v2/TableBlockDesigner.js +233 -0
  571. package/{esm → es}/schema-component/antd/table-v2/TableField.d.ts +0 -0
  572. package/es/schema-component/antd/table-v2/TableField.js +43 -0
  573. package/{esm → es}/schema-component/antd/table-v2/TableSelector.d.ts +0 -0
  574. package/es/schema-component/antd/table-v2/TableSelector.js +2 -0
  575. package/es/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +1 -0
  576. package/es/schema-component/antd/table-v2/TableSelectorDesigner.js +215 -0
  577. package/{esm → es}/schema-component/antd/table-v2/index.d.ts +0 -0
  578. package/es/schema-component/antd/table-v2/index.js +17 -0
  579. package/es/schema-component/antd/tabs/Tabs.Designer.d.ts +1 -0
  580. package/es/schema-component/antd/tabs/Tabs.Designer.js +52 -0
  581. package/{esm → es}/schema-component/antd/tabs/Tabs.d.ts +0 -0
  582. package/es/schema-component/antd/tabs/Tabs.js +47 -0
  583. package/{esm → es}/schema-component/antd/tabs/index.d.ts +0 -0
  584. package/es/schema-component/antd/tabs/index.js +1 -0
  585. package/{esm → es}/schema-component/antd/time-picker/ReadPretty.d.ts +0 -0
  586. package/es/schema-component/antd/time-picker/ReadPretty.js +18 -0
  587. package/{esm → es}/schema-component/antd/time-picker/TimePicker.d.ts +0 -0
  588. package/es/schema-component/antd/time-picker/TimePicker.js +30 -0
  589. package/{esm → es}/schema-component/antd/time-picker/index.d.ts +0 -0
  590. package/es/schema-component/antd/time-picker/index.js +1 -0
  591. package/{esm → es}/schema-component/antd/tree-select/ReadPretty.d.ts +0 -0
  592. package/es/schema-component/antd/tree-select/ReadPretty.js +70 -0
  593. package/{esm → es}/schema-component/antd/tree-select/TreeSelect.d.ts +0 -0
  594. package/es/schema-component/antd/tree-select/TreeSelect.js +19 -0
  595. package/{esm → es}/schema-component/antd/tree-select/index.d.ts +0 -0
  596. package/es/schema-component/antd/tree-select/index.js +1 -0
  597. package/{esm → es}/schema-component/antd/upload/ReadPretty.d.ts +0 -0
  598. package/es/schema-component/antd/upload/ReadPretty.js +146 -0
  599. package/{esm → es}/schema-component/antd/upload/Upload.d.ts +0 -0
  600. package/es/schema-component/antd/upload/Upload.js +241 -0
  601. package/{esm → es}/schema-component/antd/upload/index.d.ts +0 -0
  602. package/es/schema-component/antd/upload/index.js +1 -0
  603. package/{esm → es}/schema-component/antd/upload/placeholder.d.ts +0 -0
  604. package/es/schema-component/antd/upload/placeholder.js +46 -0
  605. package/{esm → es}/schema-component/antd/upload/shared.d.ts +0 -0
  606. package/es/schema-component/antd/upload/shared.js +270 -0
  607. package/es/schema-component/antd/upload/style.less +61 -0
  608. package/es/schema-component/antd/upload/type.d.ts +26 -0
  609. package/{esm → es}/schema-component/common/dnd-context/index.d.ts +0 -0
  610. package/es/schema-component/common/dnd-context/index.js +96 -0
  611. package/{esm → es}/schema-component/common/index.d.ts +0 -0
  612. package/es/schema-component/common/index.js +2 -0
  613. package/{esm → es}/schema-component/common/sortable-item/SortableItem.d.ts +0 -0
  614. package/es/schema-component/common/sortable-item/SortableItem.js +110 -0
  615. package/{esm → es}/schema-component/common/sortable-item/index.d.ts +0 -0
  616. package/es/schema-component/common/sortable-item/index.js +1 -0
  617. package/{esm → es}/schema-component/context.d.ts +0 -0
  618. package/es/schema-component/context.js +2 -0
  619. package/es/schema-component/core/DesignableSwitch.d.ts +1 -0
  620. package/es/schema-component/core/DesignableSwitch.js +29 -0
  621. package/{esm → es}/schema-component/core/FormProvider.d.ts +0 -0
  622. package/es/schema-component/core/FormProvider.js +37 -0
  623. package/{esm → es}/schema-component/core/RemoteSchemaComponent.d.ts +0 -0
  624. package/es/schema-component/core/RemoteSchemaComponent.js +75 -0
  625. package/es/schema-component/core/SchemaComponent.d.ts +4 -0
  626. package/es/schema-component/core/SchemaComponent.js +74 -0
  627. package/{esm → es}/schema-component/core/SchemaComponentOptions.d.ts +0 -0
  628. package/es/schema-component/core/SchemaComponentOptions.js +26 -0
  629. package/{esm → es}/schema-component/core/SchemaComponentProvider.d.ts +0 -0
  630. package/es/schema-component/core/SchemaComponentProvider.js +106 -0
  631. package/{esm → es}/schema-component/core/index.d.ts +0 -0
  632. package/es/schema-component/core/index.js +6 -0
  633. package/{esm → es}/schema-component/hooks/index.d.ts +0 -0
  634. package/es/schema-component/hooks/index.js +7 -0
  635. package/{esm → es}/schema-component/hooks/useAttach.d.ts +0 -0
  636. package/es/schema-component/hooks/useAttach.js +16 -0
  637. package/{esm → es}/schema-component/hooks/useCompile.d.ts +0 -0
  638. package/es/schema-component/hooks/useCompile.js +19 -0
  639. package/{esm → es}/schema-component/hooks/useComponent.d.ts +0 -0
  640. package/es/schema-component/hooks/useComponent.js +17 -0
  641. package/es/schema-component/hooks/useDesignable.d.ts +87 -0
  642. package/es/schema-component/hooks/useDesignable.js +889 -0
  643. package/{esm → es}/schema-component/hooks/useDesigner.d.ts +0 -0
  644. package/es/schema-component/hooks/useDesigner.js +15 -0
  645. package/{esm → es}/schema-component/hooks/useFieldProps.d.ts +0 -0
  646. package/es/schema-component/hooks/useFieldProps.js +20 -0
  647. package/{esm → es}/schema-component/hooks/useProps.d.ts +0 -0
  648. package/es/schema-component/hooks/useProps.js +14 -0
  649. package/{esm → es}/schema-component/hooks/useSchemaComponentContext.d.ts +0 -0
  650. package/es/schema-component/hooks/useSchemaComponentContext.js +5 -0
  651. package/{esm → es}/schema-component/index.d.ts +0 -0
  652. package/es/schema-component/index.js +7 -0
  653. package/{esm → es}/schema-component/types.d.ts +0 -0
  654. package/es/schema-component/types.js +1 -0
  655. package/{esm → es}/schema-initializer/SchemaInitializer.d.ts +0 -0
  656. package/es/schema-initializer/SchemaInitializer.js +262 -0
  657. package/{esm → es}/schema-initializer/SchemaInitializerProvider.d.ts +0 -0
  658. package/es/schema-initializer/SchemaInitializerProvider.js +68 -0
  659. package/{esm → es}/schema-initializer/buttons/BlockInitializers.d.ts +0 -0
  660. package/es/schema-initializer/buttons/BlockInitializers.js +48 -0
  661. package/{esm → es}/schema-initializer/buttons/CalendarActionInitializers.d.ts +0 -0
  662. package/es/schema-initializer/buttons/CalendarActionInitializers.js +72 -0
  663. package/es/schema-initializer/buttons/CreateFormBlockInitializers.d.ts +1 -0
  664. package/es/schema-initializer/buttons/CreateFormBlockInitializers.js +35 -0
  665. package/es/schema-initializer/buttons/CustomFormItemInitializers.d.ts +1 -0
  666. package/es/schema-initializer/buttons/CustomFormItemInitializers.js +24 -0
  667. package/{esm → es}/schema-initializer/buttons/DetailsActionInitializers.d.ts +0 -0
  668. package/es/schema-initializer/buttons/DetailsActionInitializers.js +32 -0
  669. package/es/schema-initializer/buttons/FormActionInitializers.d.ts +312 -0
  670. package/es/schema-initializer/buttons/FormActionInitializers.js +289 -0
  671. package/es/schema-initializer/buttons/FormItemInitializers.d.ts +1 -0
  672. package/es/schema-initializer/buttons/FormItemInitializers.js +40 -0
  673. package/{esm → es}/schema-initializer/buttons/KanbanActionInitializers.d.ts +0 -0
  674. package/es/schema-initializer/buttons/KanbanActionInitializers.js +30 -0
  675. package/es/schema-initializer/buttons/KanbanCardFormItemInitializers.d.ts +1 -0
  676. package/{esm/schema-initializer/buttons/KanbanCardFormItemInitializers.d.ts → es/schema-initializer/buttons/KanbanCardFormItemInitializers.js} +0 -0
  677. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +115 -0
  678. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +108 -0
  679. package/es/schema-initializer/buttons/ReadPrettyFormItemInitializers.d.ts +1 -0
  680. package/es/schema-initializer/buttons/ReadPrettyFormItemInitializers.js +39 -0
  681. package/es/schema-initializer/buttons/RecordBlockInitializers.d.ts +1 -0
  682. package/es/schema-initializer/buttons/RecordBlockInitializers.js +66 -0
  683. package/es/schema-initializer/buttons/RecordFormBlockInitializers.d.ts +1 -0
  684. package/es/schema-initializer/buttons/RecordFormBlockInitializers.js +31 -0
  685. package/{esm → es}/schema-initializer/buttons/SubTableActionInitializers.d.ts +0 -0
  686. package/es/schema-initializer/buttons/SubTableActionInitializers.js +34 -0
  687. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
  688. package/es/schema-initializer/buttons/TabPaneInitializers.js +145 -0
  689. package/es/schema-initializer/buttons/TableActionColumnInitializers.d.ts +1 -0
  690. package/es/schema-initializer/buttons/TableActionColumnInitializers.js +156 -0
  691. package/{esm → es}/schema-initializer/buttons/TableActionInitializers.d.ts +0 -0
  692. package/es/schema-initializer/buttons/TableActionInitializers.js +42 -0
  693. package/es/schema-initializer/buttons/TableColumnInitializers.d.ts +1 -0
  694. package/es/schema-initializer/buttons/TableColumnInitializers.js +47 -0
  695. package/es/schema-initializer/buttons/TableSelectorInitializers.d.ts +1 -0
  696. package/es/schema-initializer/buttons/TableSelectorInitializers.js +42 -0
  697. package/es/schema-initializer/buttons/index.d.ts +18 -0
  698. package/es/schema-initializer/buttons/index.js +18 -0
  699. package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +1 -0
  700. package/es/schema-initializer/components/assigned-field/AssignedField.js +109 -0
  701. package/es/schema-initializer/components/assigned-field/index.d.ts +1 -0
  702. package/es/schema-initializer/components/assigned-field/index.js +1 -0
  703. package/es/schema-initializer/components/index.d.ts +1 -0
  704. package/es/schema-initializer/components/index.js +1 -0
  705. package/{esm → es}/schema-initializer/index.d.ts +0 -0
  706. package/es/schema-initializer/index.js +3 -0
  707. package/es/schema-initializer/items/index.d.ts +28 -0
  708. package/es/schema-initializer/items/index.js +1117 -0
  709. package/{esm → es}/schema-initializer/types.d.ts +0 -0
  710. package/es/schema-initializer/types.js +1 -0
  711. package/es/schema-initializer/utils.d.ts +530 -0
  712. package/es/schema-initializer/utils.js +903 -0
  713. package/es/schema-settings/GeneralSchemaDesigner.d.ts +1 -0
  714. package/es/schema-settings/GeneralSchemaDesigner.js +87 -0
  715. package/{esm → es}/schema-settings/SchemaSettings.d.ts +0 -0
  716. package/es/schema-settings/SchemaSettings.js +796 -0
  717. package/{esm → es}/schema-settings/index.d.ts +0 -0
  718. package/es/schema-settings/index.js +2 -0
  719. package/{esm → es}/schema-templates/BlockTemplate.d.ts +0 -0
  720. package/es/schema-templates/BlockTemplate.js +35 -0
  721. package/es/schema-templates/BlockTemplateDetails.d.ts +1 -0
  722. package/es/schema-templates/BlockTemplateDetails.js +124 -0
  723. package/es/schema-templates/BlockTemplatePage.d.ts +1 -0
  724. package/es/schema-templates/BlockTemplatePage.js +24 -0
  725. package/{esm → es}/schema-templates/SchemaTemplateManagerProvider.d.ts +0 -0
  726. package/es/schema-templates/SchemaTemplateManagerProvider.js +300 -0
  727. package/es/schema-templates/SchemaTemplateShortcut.d.ts +1 -0
  728. package/es/schema-templates/SchemaTemplateShortcut.js +18 -0
  729. package/{esm → es}/schema-templates/collections/uiSchemaTemplates.d.ts +0 -0
  730. package/es/schema-templates/collections/uiSchemaTemplates.js +16 -0
  731. package/{esm → es}/schema-templates/index.d.ts +0 -0
  732. package/es/schema-templates/index.js +4 -0
  733. package/{esm → es}/schema-templates/schemas/uiSchemaTemplates.d.ts +0 -0
  734. package/es/schema-templates/schemas/uiSchemaTemplates.js +242 -0
  735. package/{esm → es}/settings-form/SettingsForm.d.ts +0 -0
  736. package/es/settings-form/SettingsForm.js +341 -0
  737. package/{esm → es}/settings-form/index.d.ts +0 -0
  738. package/es/settings-form/index.js +1 -0
  739. package/es/slate/RichText.d.ts +1 -0
  740. package/es/slate/RichText.js +305 -0
  741. package/{esm → es}/slate/Slate.d.ts +0 -0
  742. package/es/slate/Slate.js +40 -0
  743. package/{esm → es}/slate/components.d.ts +0 -0
  744. package/es/slate/components.js +95 -0
  745. package/{esm → es}/slate/index.d.ts +0 -0
  746. package/es/slate/index.js +1 -0
  747. package/es/slate/index.less +51 -0
  748. package/es/slate/materialicons.woff2 +0 -0
  749. package/{esm → es}/system-settings/SystemSettingsProvider.d.ts +0 -0
  750. package/es/system-settings/SystemSettingsProvider.js +20 -0
  751. package/es/system-settings/SystemSettingsShortcut.d.ts +1 -0
  752. package/es/system-settings/SystemSettingsShortcut.js +215 -0
  753. package/{esm → es}/system-settings/index.d.ts +0 -0
  754. package/es/system-settings/index.js +2 -0
  755. package/es/user/ChangePassword.d.ts +1 -0
  756. package/es/user/ChangePassword.js +199 -0
  757. package/{esm → es}/user/CurrentUser.d.ts +0 -0
  758. package/es/user/CurrentUser.js +98 -0
  759. package/{esm → es}/user/CurrentUserProvider.d.ts +0 -0
  760. package/es/user/CurrentUserProvider.js +34 -0
  761. package/es/user/EditProfile.d.ts +1 -0
  762. package/es/user/EditProfile.js +182 -0
  763. package/es/user/LanguageSettings.d.ts +1 -0
  764. package/es/user/LanguageSettings.js +90 -0
  765. package/es/user/SigninPage.d.ts +1 -0
  766. package/es/user/SigninPage.js +135 -0
  767. package/es/user/SignupPage.d.ts +1 -0
  768. package/es/user/SignupPage.js +158 -0
  769. package/es/user/SwitchRole.d.ts +1 -0
  770. package/es/user/SwitchRole.js +120 -0
  771. package/{esm → es}/user/index.d.ts +0 -0
  772. package/es/user/index.js +4 -0
  773. package/es/workflow/ExecutionResourceProvider.d.ts +4 -0
  774. package/es/workflow/ExecutionResourceProvider.js +35 -0
  775. package/{esm → es}/workflow/WorkflowCanvas.d.ts +0 -0
  776. package/es/workflow/WorkflowCanvas.js +374 -0
  777. package/es/workflow/WorkflowLink.d.ts +1 -0
  778. package/es/workflow/WorkflowLink.js +21 -0
  779. package/es/workflow/WorkflowPage.d.ts +1 -0
  780. package/es/workflow/WorkflowPage.js +43 -0
  781. package/es/workflow/WorkflowRouteProvider.d.ts +1 -0
  782. package/es/workflow/WorkflowRouteProvider.js +30 -0
  783. package/es/workflow/WorkflowShortcut.d.ts +1 -0
  784. package/es/workflow/WorkflowShortcut.js +62 -0
  785. package/es/workflow/calculators.d.ts +101 -0
  786. package/es/workflow/calculators.js +641 -0
  787. package/es/workflow/index.d.ts +5 -0
  788. package/es/workflow/index.js +5 -0
  789. package/es/workflow/nodes/calculation.d.ts +25 -0
  790. package/es/workflow/nodes/calculation.js +47 -0
  791. package/es/workflow/nodes/condition.d.ts +46 -0
  792. package/es/workflow/nodes/condition.js +255 -0
  793. package/es/workflow/nodes/create.d.ts +43 -0
  794. package/es/workflow/nodes/create.js +90 -0
  795. package/es/workflow/nodes/destroy.d.ts +52 -0
  796. package/es/workflow/nodes/destroy.js +27 -0
  797. package/es/workflow/nodes/index.d.ts +33 -0
  798. package/es/workflow/nodes/index.js +309 -0
  799. package/es/workflow/nodes/parallel.d.ts +24 -0
  800. package/es/workflow/nodes/parallel.js +132 -0
  801. package/es/workflow/nodes/query.d.ts +67 -0
  802. package/es/workflow/nodes/query.js +98 -0
  803. package/es/workflow/nodes/update.d.ts +57 -0
  804. package/es/workflow/nodes/update.js +29 -0
  805. package/es/workflow/schemas/collection.d.ts +39 -0
  806. package/es/workflow/schemas/collection.js +54 -0
  807. package/es/workflow/schemas/executions.d.ts +194 -0
  808. package/es/workflow/schemas/executions.js +132 -0
  809. package/{esm → es}/workflow/schemas/workflows.d.ts +0 -0
  810. package/es/workflow/schemas/workflows.js +334 -0
  811. package/es/workflow/style.d.ts +12 -0
  812. package/es/workflow/style.js +17 -0
  813. package/es/workflow/triggers/collection.d.ts +72 -0
  814. package/es/workflow/triggers/collection.js +134 -0
  815. package/{esm → es}/workflow/triggers/index.d.ts +0 -0
  816. package/es/workflow/triggers/index.js +165 -0
  817. package/lib/acl/ACLProvider.js +294 -167
  818. package/lib/acl/ACLShortcut.d.ts +0 -1
  819. package/lib/acl/ACLShortcut.js +77 -77
  820. package/lib/acl/Configuration/MenuConfigure.d.ts +0 -1
  821. package/lib/acl/Configuration/MenuConfigure.js +221 -187
  822. package/lib/acl/Configuration/RoleConfigure.d.ts +0 -1
  823. package/lib/acl/Configuration/RoleConfigure.js +108 -106
  824. package/lib/acl/Configuration/RoleTable.d.ts +0 -1
  825. package/lib/acl/Configuration/RoleTable.js +98 -66
  826. package/lib/acl/Configuration/RolesResourcesActions.js +300 -226
  827. package/lib/acl/Configuration/ScopeSelect.d.ts +0 -1
  828. package/lib/acl/Configuration/ScopeSelect.js +73 -56
  829. package/lib/acl/Configuration/StrategyActions.js +155 -114
  830. package/lib/acl/Configuration/index.js +44 -13
  831. package/lib/acl/Configuration/schemas/roleCollections.js +211 -199
  832. package/lib/acl/Configuration/schemas/roles.js +348 -347
  833. package/lib/acl/Configuration/schemas/scopes.js +358 -343
  834. package/lib/acl/Configuration/schemas/useRoleResourceValues.js +47 -40
  835. package/lib/acl/Configuration/schemas/useSaveRoleResourceAction.js +57 -76
  836. package/lib/acl/index.js +30 -14
  837. package/lib/action-logs/ActionLog.Designer.d.ts +0 -1
  838. package/lib/action-logs/ActionLog.Designer.js +119 -81
  839. package/lib/action-logs/ActionLog.js +74 -51
  840. package/lib/action-logs/ActionLogBlockInitializer.d.ts +0 -1
  841. package/lib/action-logs/ActionLogBlockInitializer.js +45 -31
  842. package/lib/action-logs/ActionLogProvider.d.ts +0 -1
  843. package/lib/action-logs/ActionLogProvider.js +37 -30
  844. package/lib/action-logs/index.js +43 -15
  845. package/lib/action-logs/utils.js +301 -298
  846. package/lib/antd-config-provider/index.js +64 -54
  847. package/lib/api-client/APIClient.js +181 -150
  848. package/lib/api-client/APIClientProvider.js +19 -19
  849. package/lib/api-client/context.js +11 -5
  850. package/lib/api-client/hooks/assign.js +116 -91
  851. package/lib/api-client/hooks/index.js +43 -15
  852. package/lib/api-client/hooks/useAPIClient.js +12 -8
  853. package/lib/api-client/hooks/useRequest.js +127 -137
  854. package/lib/api-client/hooks/useResource.js +13 -9
  855. package/lib/api-client/index.js +43 -15
  856. package/lib/application/compose.d.ts +0 -1
  857. package/lib/application/compose.js +59 -59
  858. package/lib/application/index.js +17 -13
  859. package/lib/async-data-provider/index.js +52 -38
  860. package/lib/block-provider/BlockProvider.js +260 -154
  861. package/lib/block-provider/BlockSchemaComponentProvider.js +67 -54
  862. package/lib/block-provider/CalendarBlockProvider.js +79 -49
  863. package/lib/block-provider/DetailsBlockProvider.js +86 -57
  864. package/lib/block-provider/FormBlockProvider.js +77 -52
  865. package/lib/block-provider/KanbanBlockProvider.js +170 -149
  866. package/lib/block-provider/TableBlockProvider.js +190 -162
  867. package/lib/block-provider/TableFieldProvider.js +304 -190
  868. package/lib/block-provider/TableSelectorProvider.js +163 -141
  869. package/lib/block-provider/hooks/index.d.ts +3 -0
  870. package/lib/block-provider/hooks/index.js +663 -380
  871. package/lib/block-provider/index.d.ts +1 -0
  872. package/lib/block-provider/index.js +108 -19
  873. package/lib/board/Board.js +429 -241
  874. package/lib/board/Card.js +38 -22
  875. package/lib/board/CardAdder.js +56 -42
  876. package/lib/board/CardForm.js +63 -27
  877. package/lib/board/Column.js +108 -38
  878. package/lib/board/ColumnAdder.js +63 -43
  879. package/lib/board/ColumnForm.js +50 -25
  880. package/lib/board/DefaultCard.js +32 -18
  881. package/lib/board/DefaultColumnHeader.js +105 -56
  882. package/lib/board/Kanban.js +133 -126
  883. package/lib/board/helpers.js +162 -107
  884. package/lib/board/index.js +14 -8
  885. package/lib/board/services.js +54 -39
  886. package/lib/board/style.less +153 -0
  887. package/lib/board/utils.js +82 -83
  888. package/lib/board/withDroppable.d.ts +0 -1
  889. package/lib/board/withDroppable.js +37 -31
  890. package/lib/china-region/index.d.ts +0 -1
  891. package/lib/china-region/index.js +104 -100
  892. package/lib/collection-manager/CollectionField.js +102 -95
  893. package/lib/collection-manager/CollectionFieldProvider.js +32 -25
  894. package/lib/collection-manager/CollectionManagerProvider.js +152 -143
  895. package/lib/collection-manager/CollectionManagerSchemaComponentProvider.js +47 -46
  896. package/lib/collection-manager/CollectionManagerShortcut.d.ts +0 -1
  897. package/lib/collection-manager/CollectionManagerShortcut.js +81 -58
  898. package/lib/collection-manager/CollectionProvider.js +33 -25
  899. package/lib/collection-manager/Configuration/AddFieldAction.d.ts +0 -1
  900. package/lib/collection-manager/Configuration/AddFieldAction.js +230 -180
  901. package/lib/collection-manager/Configuration/AddSubFieldAction.d.ts +0 -1
  902. package/lib/collection-manager/Configuration/AddSubFieldAction.js +200 -153
  903. package/lib/collection-manager/Configuration/ConfigurationTable.d.ts +0 -1
  904. package/lib/collection-manager/Configuration/ConfigurationTable.js +260 -224
  905. package/lib/collection-manager/Configuration/EditFieldAction.d.ts +0 -1
  906. package/lib/collection-manager/Configuration/EditFieldAction.js +223 -179
  907. package/lib/collection-manager/Configuration/EditSubFieldAction.d.ts +0 -1
  908. package/lib/collection-manager/Configuration/EditSubFieldAction.js +217 -171
  909. package/lib/collection-manager/Configuration/index.js +43 -15
  910. package/lib/collection-manager/Configuration/interfaces.js +53 -56
  911. package/lib/collection-manager/Configuration/schemas/collectionFields.js +189 -191
  912. package/lib/collection-manager/Configuration/schemas/collections.js +264 -263
  913. package/lib/collection-manager/ResourceActionProvider.js +188 -105
  914. package/lib/collection-manager/action-hooks.js +740 -497
  915. package/lib/collection-manager/context.js +16 -9
  916. package/lib/collection-manager/hooks/index.js +56 -16
  917. package/lib/collection-manager/hooks/useCollection.d.ts +1 -0
  918. package/lib/collection-manager/hooks/useCollection.js +33 -25
  919. package/lib/collection-manager/hooks/useCollectionDataSource.js +29 -18
  920. package/lib/collection-manager/hooks/useCollectionField.js +42 -32
  921. package/lib/collection-manager/hooks/useCollectionManager.js +87 -58
  922. package/lib/collection-manager/index.js +134 -22
  923. package/lib/collection-manager/interfaces/attachment.js +108 -97
  924. package/lib/collection-manager/interfaces/checkbox.js +32 -32
  925. package/lib/collection-manager/interfaces/checkboxGroup.js +36 -34
  926. package/lib/collection-manager/interfaces/chinaRegion.js +112 -95
  927. package/lib/collection-manager/interfaces/createdAt.js +37 -37
  928. package/lib/collection-manager/interfaces/createdBy.js +68 -70
  929. package/lib/collection-manager/interfaces/datetime.js +37 -37
  930. package/lib/collection-manager/interfaces/email.js +35 -35
  931. package/lib/collection-manager/interfaces/icon.js +30 -30
  932. package/lib/collection-manager/interfaces/id.js +48 -43
  933. package/lib/collection-manager/interfaces/index.js +342 -38
  934. package/lib/collection-manager/interfaces/input.js +41 -40
  935. package/lib/collection-manager/interfaces/linkTo.js +149 -138
  936. package/lib/collection-manager/interfaces/markdown.js +37 -36
  937. package/lib/collection-manager/interfaces/multipleSelect.js +40 -38
  938. package/lib/collection-manager/interfaces/number.js +65 -52
  939. package/lib/collection-manager/interfaces/password.js +30 -30
  940. package/lib/collection-manager/interfaces/percent.js +66 -53
  941. package/lib/collection-manager/interfaces/phone.js +35 -35
  942. package/lib/collection-manager/interfaces/properties/index.js +302 -271
  943. package/lib/collection-manager/interfaces/properties/operators.js +226 -123
  944. package/lib/collection-manager/interfaces/radioGroup.js +36 -34
  945. package/lib/collection-manager/interfaces/richText.js +38 -37
  946. package/lib/collection-manager/interfaces/select.js +37 -35
  947. package/lib/collection-manager/interfaces/subTable.js +213 -207
  948. package/lib/collection-manager/interfaces/textarea.js +38 -37
  949. package/lib/collection-manager/interfaces/time.js +48 -49
  950. package/lib/collection-manager/interfaces/types.js +4 -2
  951. package/lib/collection-manager/interfaces/updatedAt.js +37 -37
  952. package/lib/collection-manager/interfaces/updatedBy.js +67 -69
  953. package/lib/collection-manager/sub-table.js +361 -309
  954. package/lib/collection-manager/types.d.ts +1 -0
  955. package/lib/collection-manager/types.js +4 -2
  956. package/lib/document-title/index.d.ts +1 -0
  957. package/lib/document-title/index.js +77 -52
  958. package/lib/file-manager/FileStorageShortcut.d.ts +0 -1
  959. package/lib/file-manager/FileStorageShortcut.js +80 -57
  960. package/lib/file-manager/StorageOptions.js +133 -124
  961. package/lib/file-manager/index.js +17 -13
  962. package/lib/file-manager/schemas/storage.js +341 -338
  963. package/lib/global.less +27 -0
  964. package/lib/i18n/i18n.js +41 -29
  965. package/lib/i18n/index.js +17 -13
  966. package/lib/icon/Icon.d.ts +0 -1
  967. package/lib/icon/Icon.js +88 -81
  968. package/lib/icon/index.js +17 -13
  969. package/lib/index.js +356 -39
  970. package/lib/locale/en_US.d.ts +17 -0
  971. package/lib/locale/en_US.js +287 -265
  972. package/lib/locale/index.d.ts +115 -1
  973. package/lib/locale/index.js +25 -25
  974. package/lib/locale/zh_CN.d.ts +98 -1
  975. package/lib/locale/zh_CN.js +471 -369
  976. package/lib/plugin-manager/PluginManager.d.ts +1 -0
  977. package/lib/plugin-manager/PluginManager.js +183 -109
  978. package/lib/plugin-manager/PluginManagerProvider.js +21 -19
  979. package/lib/plugin-manager/context.js +9 -4
  980. package/lib/plugin-manager/index.js +43 -15
  981. package/lib/powered-by/index.d.ts +0 -1
  982. package/lib/powered-by/index.js +32 -29
  983. package/lib/record-provider/index.js +68 -39
  984. package/lib/route-switch/RouteSwitch.js +70 -37
  985. package/lib/route-switch/RouteSwitchProvider.js +47 -30
  986. package/lib/route-switch/antd/admin-layout/index.d.ts +0 -1
  987. package/lib/route-switch/antd/admin-layout/index.js +211 -118
  988. package/lib/route-switch/antd/auth-layout/index.js +35 -32
  989. package/lib/route-switch/antd/index.js +43 -15
  990. package/lib/route-switch/antd/route-schema-component/index.js +20 -10
  991. package/lib/route-switch/context.js +14 -8
  992. package/lib/route-switch/hooks.js +40 -24
  993. package/lib/route-switch/index.js +82 -18
  994. package/lib/route-switch/types.js +4 -2
  995. package/lib/schema-component/antd/AntdSchemaComponentProvider.d.ts +0 -1
  996. package/lib/schema-component/antd/AntdSchemaComponentProvider.js +38 -40
  997. package/lib/schema-component/antd/action/Action.Container.js +56 -34
  998. package/lib/schema-component/antd/action/Action.Designer.d.ts +0 -1
  999. package/lib/schema-component/antd/action/Action.Designer.js +306 -163
  1000. package/lib/schema-component/antd/action/Action.Drawer.js +104 -63
  1001. package/lib/schema-component/antd/action/Action.Link.js +25 -21
  1002. package/lib/schema-component/antd/action/Action.Modal.js +99 -63
  1003. package/lib/schema-component/antd/action/Action.Page.js +84 -63
  1004. package/lib/schema-component/antd/action/Action.Popover.d.ts +1 -0
  1005. package/lib/schema-component/antd/action/Action.Popover.js +1 -1
  1006. package/lib/schema-component/antd/action/Action.js +190 -106
  1007. package/lib/schema-component/antd/action/ActionBar.js +92 -48
  1008. package/lib/schema-component/antd/action/context.d.ts +2 -0
  1009. package/lib/schema-component/antd/action/context.js +9 -4
  1010. package/lib/schema-component/antd/action/hooks.d.ts +3 -1
  1011. package/lib/schema-component/antd/action/hooks.js +120 -83
  1012. package/lib/schema-component/antd/action/index.js +56 -16
  1013. package/lib/schema-component/antd/action/types.js +4 -2
  1014. package/lib/schema-component/antd/block-item/BlockItem.js +28 -30
  1015. package/lib/schema-component/antd/block-item/TestDesigner.d.ts +0 -1
  1016. package/lib/schema-component/antd/block-item/TestDesigner.js +24 -22
  1017. package/lib/schema-component/antd/block-item/index.js +30 -14
  1018. package/lib/schema-component/antd/calendar/Calendar.Designer.d.ts +0 -1
  1019. package/lib/schema-component/antd/calendar/Calendar.Designer.js +172 -114
  1020. package/lib/schema-component/antd/calendar/Calendar.js +212 -163
  1021. package/lib/schema-component/antd/calendar/Event.js +14 -6
  1022. package/lib/schema-component/antd/calendar/Nav.js +46 -25
  1023. package/lib/schema-component/antd/calendar/Title.js +34 -22
  1024. package/lib/schema-component/antd/calendar/Today.js +41 -28
  1025. package/lib/schema-component/antd/calendar/ViewSelect.js +42 -23
  1026. package/lib/schema-component/antd/calendar/context.d.ts +1 -1
  1027. package/lib/schema-component/antd/calendar/context.js +12 -6
  1028. package/lib/schema-component/antd/calendar/index.d.ts +3 -2
  1029. package/lib/schema-component/antd/calendar/index.js +33 -14
  1030. package/lib/schema-component/antd/calendar/style.less +767 -0
  1031. package/lib/schema-component/antd/calendar/types.d.ts +8 -0
  1032. package/lib/schema-component/antd/calendar/utils.d.ts +0 -1
  1033. package/lib/schema-component/antd/calendar/utils.js +21 -46
  1034. package/lib/schema-component/antd/card-item/CardItem.js +30 -19
  1035. package/lib/schema-component/antd/card-item/index.js +17 -13
  1036. package/lib/schema-component/antd/cascader/Cascader.js +135 -84
  1037. package/lib/schema-component/antd/cascader/ReadPretty.js +69 -50
  1038. package/lib/schema-component/antd/cascader/defaultFieldNames.js +9 -6
  1039. package/lib/schema-component/antd/cascader/index.js +17 -13
  1040. package/lib/schema-component/antd/chart/Chart.d.ts +0 -1
  1041. package/lib/schema-component/antd/chart/Chart.js +13 -6
  1042. package/lib/schema-component/antd/chart/index.js +17 -13
  1043. package/lib/schema-component/antd/checkbox/Checkbox.js +64 -47
  1044. package/lib/schema-component/antd/checkbox/index.js +17 -13
  1045. package/lib/schema-component/antd/color-select/ColorSelect.js +63 -44
  1046. package/lib/schema-component/antd/color-select/index.js +17 -13
  1047. package/lib/schema-component/antd/date-picker/DatePicker.js +19 -10
  1048. package/lib/schema-component/antd/date-picker/ReadPretty.js +54 -42
  1049. package/lib/schema-component/antd/date-picker/index.js +17 -13
  1050. package/lib/schema-component/antd/date-picker/util.js +54 -47
  1051. package/lib/schema-component/antd/filter/DynamicComponent.d.ts +0 -1
  1052. package/lib/schema-component/antd/filter/DynamicComponent.js +80 -70
  1053. package/lib/schema-component/antd/filter/Filter.Action.Designer.d.ts +0 -1
  1054. package/lib/schema-component/antd/filter/Filter.Action.Designer.js +148 -109
  1055. package/lib/schema-component/antd/filter/Filter.js +71 -39
  1056. package/lib/schema-component/antd/filter/FilterAction.js +197 -148
  1057. package/lib/schema-component/antd/filter/FilterGroup.js +119 -91
  1058. package/lib/schema-component/antd/filter/FilterItem.js +84 -64
  1059. package/lib/schema-component/antd/filter/FilterItems.js +32 -24
  1060. package/lib/schema-component/antd/filter/SaveDefaultValue.d.ts +0 -1
  1061. package/lib/schema-component/antd/filter/SaveDefaultValue.js +64 -49
  1062. package/lib/schema-component/antd/filter/context.js +14 -7
  1063. package/lib/schema-component/antd/filter/index.js +30 -14
  1064. package/lib/schema-component/antd/filter/style.less +18 -0
  1065. package/lib/schema-component/antd/filter/useFilterActionProps.js +199 -152
  1066. package/lib/schema-component/antd/filter/useValues.js +143 -111
  1067. package/lib/schema-component/antd/form/Form.Designer.d.ts +0 -1
  1068. package/lib/schema-component/antd/form/Form.Designer.js +31 -22
  1069. package/lib/schema-component/antd/form/Form.js +196 -131
  1070. package/lib/schema-component/antd/form/index.js +17 -13
  1071. package/lib/schema-component/antd/form-item/FormItem.js +223 -164
  1072. package/lib/schema-component/antd/form-item/index.js +17 -13
  1073. package/lib/schema-component/antd/form-v2/Form.Designer.d.ts +0 -1
  1074. package/lib/schema-component/antd/form-v2/Form.Designer.js +258 -184
  1075. package/lib/schema-component/antd/form-v2/Form.js +150 -59
  1076. package/lib/schema-component/antd/form-v2/index.js +23 -9
  1077. package/lib/schema-component/antd/grid/Block.js +25 -19
  1078. package/lib/schema-component/antd/grid/Grid.d.ts +2 -0
  1079. package/lib/schema-component/antd/grid/Grid.js +269 -168
  1080. package/lib/schema-component/antd/grid/index.js +30 -14
  1081. package/lib/schema-component/antd/icon-picker/IconPicker.js +129 -70
  1082. package/lib/schema-component/antd/icon-picker/index.js +17 -13
  1083. package/lib/schema-component/antd/index.d.ts +0 -2
  1084. package/lib/schema-component/antd/index.js +448 -50
  1085. package/lib/schema-component/antd/index.less +4 -0
  1086. package/lib/schema-component/antd/input/EllipsisWithTooltip.d.ts +0 -1
  1087. package/lib/schema-component/antd/input/EllipsisWithTooltip.js +74 -53
  1088. package/lib/schema-component/antd/input/Input.js +41 -30
  1089. package/lib/schema-component/antd/input/ReadPretty.js +110 -61
  1090. package/lib/schema-component/antd/input/index.js +30 -14
  1091. package/lib/schema-component/antd/input/shared.js +12 -10
  1092. package/lib/schema-component/antd/input-number/InputNumber.js +16 -8
  1093. package/lib/schema-component/antd/input-number/ReadPretty.js +31 -25
  1094. package/lib/schema-component/antd/input-number/index.js +17 -13
  1095. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.d.ts +0 -1
  1096. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.js +120 -85
  1097. package/lib/schema-component/antd/kanban/Kanban.Card.js +112 -60
  1098. package/lib/schema-component/antd/kanban/Kanban.CardViewer.js +10 -5
  1099. package/lib/schema-component/antd/kanban/Kanban.Designer.d.ts +0 -1
  1100. package/lib/schema-component/antd/kanban/Kanban.Designer.js +96 -63
  1101. package/lib/schema-component/antd/kanban/Kanban.d.ts +8 -1
  1102. package/lib/schema-component/antd/kanban/Kanban.js +243 -150
  1103. package/lib/schema-component/antd/kanban/context.js +11 -5
  1104. package/lib/schema-component/antd/kanban/index.d.ts +3 -1
  1105. package/lib/schema-component/antd/kanban/index.js +31 -13
  1106. package/lib/schema-component/antd/kanban/index.less +16 -0
  1107. package/lib/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +0 -1
  1108. package/lib/schema-component/antd/markdown/Markdown.Void.Designer.js +34 -15
  1109. package/lib/schema-component/antd/markdown/Markdown.Void.js +143 -106
  1110. package/lib/schema-component/antd/markdown/Markdown.js +55 -32
  1111. package/lib/schema-component/antd/markdown/index.js +17 -13
  1112. package/lib/schema-component/antd/markdown/style.less +12 -0
  1113. package/lib/schema-component/antd/markdown/util.js +22 -17
  1114. package/lib/schema-component/antd/menu/Menu.Designer.d.ts +0 -1
  1115. package/lib/schema-component/antd/menu/Menu.Designer.js +408 -299
  1116. package/lib/schema-component/antd/menu/Menu.js +349 -219
  1117. package/lib/schema-component/antd/menu/MenuItemInitializers/index.d.ts +0 -1
  1118. package/lib/schema-component/antd/menu/MenuItemInitializers/index.js +309 -245
  1119. package/lib/schema-component/antd/menu/index.js +43 -15
  1120. package/lib/schema-component/antd/menu/util.js +81 -68
  1121. package/lib/schema-component/antd/page/Page.d.ts +0 -1
  1122. package/lib/schema-component/antd/page/Page.js +56 -40
  1123. package/lib/schema-component/antd/page/index.js +17 -13
  1124. package/lib/schema-component/antd/pagination/index.js +38 -34
  1125. package/lib/schema-component/antd/password/Password.js +92 -60
  1126. package/lib/schema-component/antd/password/PasswordStrength.js +187 -155
  1127. package/lib/schema-component/antd/password/index.js +17 -13
  1128. package/lib/schema-component/antd/radio/Radio.js +43 -35
  1129. package/lib/schema-component/antd/radio/index.js +17 -13
  1130. package/lib/schema-component/antd/record-picker/InputRecordPicker.js +201 -115
  1131. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +100 -56
  1132. package/lib/schema-component/antd/record-picker/RecordPicker.js +14 -8
  1133. package/lib/schema-component/antd/record-picker/index.js +17 -8
  1134. package/lib/schema-component/antd/record-picker/useFieldNames.js +24 -20
  1135. package/lib/schema-component/antd/rich-text/RichText.js +42 -45
  1136. package/lib/schema-component/antd/rich-text/index.js +17 -13
  1137. package/lib/schema-component/antd/rich-text/style.less +950 -0
  1138. package/lib/schema-component/antd/select/ReadPretty.js +49 -32
  1139. package/lib/schema-component/antd/select/Select.js +116 -74
  1140. package/lib/schema-component/antd/select/index.js +17 -13
  1141. package/lib/schema-component/antd/select/shared.js +64 -69
  1142. package/lib/schema-component/antd/space/index.js +43 -30
  1143. package/lib/schema-component/antd/table/Table.Array.Designer.d.ts +0 -1
  1144. package/lib/schema-component/antd/table/Table.Array.Designer.js +20 -9
  1145. package/lib/schema-component/antd/table/Table.Array.js +300 -212
  1146. package/lib/schema-component/antd/table/Table.Column.ActionBar.js +28 -27
  1147. package/lib/schema-component/antd/table/Table.Column.Decorator.d.ts +0 -1
  1148. package/lib/schema-component/antd/table/Table.Column.Decorator.js +81 -52
  1149. package/lib/schema-component/antd/table/Table.Column.Designer.d.ts +0 -1
  1150. package/lib/schema-component/antd/table/Table.Column.Designer.js +199 -177
  1151. package/lib/schema-component/antd/table/Table.Column.d.ts +0 -1
  1152. package/lib/schema-component/antd/table/Table.Column.js +16 -8
  1153. package/lib/schema-component/antd/table/Table.Designer.d.ts +0 -1
  1154. package/lib/schema-component/antd/table/Table.Designer.js +28 -22
  1155. package/lib/schema-component/antd/table/Table.RowActionDesigner.d.ts +0 -1
  1156. package/lib/schema-component/antd/table/Table.RowActionDesigner.js +35 -24
  1157. package/lib/schema-component/antd/table/Table.RowSelection.js +63 -54
  1158. package/lib/schema-component/antd/table/Table.Void.Designer.d.ts +0 -1
  1159. package/lib/schema-component/antd/table/Table.Void.Designer.js +242 -194
  1160. package/lib/schema-component/antd/table/Table.Void.js +165 -94
  1161. package/lib/schema-component/antd/table/index.js +42 -25
  1162. package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +0 -1
  1163. package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.js +35 -24
  1164. package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.js +28 -27
  1165. package/lib/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +0 -1
  1166. package/lib/schema-component/antd/table-v2/Table.Column.Decorator.js +81 -52
  1167. package/lib/schema-component/antd/table-v2/Table.Column.Designer.d.ts +0 -1
  1168. package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +134 -89
  1169. package/lib/schema-component/antd/table-v2/Table.Column.d.ts +0 -1
  1170. package/lib/schema-component/antd/table-v2/Table.Column.js +16 -8
  1171. package/lib/schema-component/antd/table-v2/Table.Designer.d.ts +0 -1
  1172. package/lib/schema-component/antd/table-v2/Table.Designer.js +28 -22
  1173. package/lib/schema-component/antd/table-v2/Table.d.ts +0 -1
  1174. package/lib/schema-component/antd/table-v2/Table.js +284 -188
  1175. package/lib/schema-component/antd/table-v2/TableBlockDesigner.d.ts +0 -1
  1176. package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +250 -196
  1177. package/lib/schema-component/antd/table-v2/TableField.js +58 -38
  1178. package/lib/schema-component/antd/table-v2/TableSelector.js +9 -4
  1179. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +0 -1
  1180. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +232 -184
  1181. package/lib/schema-component/antd/table-v2/index.js +70 -28
  1182. package/lib/schema-component/antd/tabs/Tabs.Designer.d.ts +0 -1
  1183. package/lib/schema-component/antd/tabs/Tabs.Designer.js +65 -39
  1184. package/lib/schema-component/antd/tabs/Tabs.js +62 -44
  1185. package/lib/schema-component/antd/tabs/index.js +17 -13
  1186. package/lib/schema-component/antd/time-picker/ReadPretty.js +30 -29
  1187. package/lib/schema-component/antd/time-picker/TimePicker.js +39 -30
  1188. package/lib/schema-component/antd/time-picker/index.js +17 -13
  1189. package/lib/schema-component/antd/tree-select/ReadPretty.js +83 -70
  1190. package/lib/schema-component/antd/tree-select/TreeSelect.js +33 -24
  1191. package/lib/schema-component/antd/tree-select/index.js +17 -13
  1192. package/lib/schema-component/antd/upload/ReadPretty.js +167 -89
  1193. package/lib/schema-component/antd/upload/Upload.js +267 -137
  1194. package/lib/schema-component/antd/upload/index.js +17 -13
  1195. package/lib/schema-component/antd/upload/placeholder.js +51 -64
  1196. package/lib/schema-component/antd/upload/shared.js +297 -223
  1197. package/lib/schema-component/antd/upload/style.less +61 -0
  1198. package/lib/schema-component/antd/upload/type.d.ts +26 -0
  1199. package/lib/schema-component/common/dnd-context/index.js +107 -66
  1200. package/lib/schema-component/common/index.js +30 -14
  1201. package/lib/schema-component/common/sortable-item/SortableItem.js +130 -99
  1202. package/lib/schema-component/common/sortable-item/index.js +17 -13
  1203. package/lib/schema-component/context.js +9 -4
  1204. package/lib/schema-component/core/DesignableSwitch.d.ts +0 -1
  1205. package/lib/schema-component/core/DesignableSwitch.js +41 -17
  1206. package/lib/schema-component/core/FormProvider.js +53 -38
  1207. package/lib/schema-component/core/RemoteSchemaComponent.js +91 -45
  1208. package/lib/schema-component/core/SchemaComponent.d.ts +1 -2
  1209. package/lib/schema-component/core/SchemaComponent.js +83 -57
  1210. package/lib/schema-component/core/SchemaComponentOptions.js +40 -24
  1211. package/lib/schema-component/core/SchemaComponentProvider.js +125 -79
  1212. package/lib/schema-component/core/index.js +82 -18
  1213. package/lib/schema-component/hooks/index.js +95 -19
  1214. package/lib/schema-component/hooks/useAttach.js +23 -17
  1215. package/lib/schema-component/hooks/useCompile.js +27 -25
  1216. package/lib/schema-component/hooks/useComponent.js +26 -15
  1217. package/lib/schema-component/hooks/useDesignable.d.ts +0 -1
  1218. package/lib/schema-component/hooks/useDesignable.js +874 -588
  1219. package/lib/schema-component/hooks/useDesigner.js +22 -11
  1220. package/lib/schema-component/hooks/useFieldProps.js +28 -24
  1221. package/lib/schema-component/hooks/useProps.js +21 -19
  1222. package/lib/schema-component/hooks/useSchemaComponentContext.js +12 -8
  1223. package/lib/schema-component/index.js +95 -19
  1224. package/lib/schema-component/types.js +4 -2
  1225. package/lib/schema-initializer/SchemaInitializer.js +276 -141
  1226. package/lib/schema-initializer/SchemaInitializerProvider.js +87 -66
  1227. package/lib/schema-initializer/buttons/BlockInitializers.js +53 -59
  1228. package/lib/schema-initializer/buttons/CalendarActionInitializers.js +75 -79
  1229. package/lib/schema-initializer/buttons/CreateFormBlockInitializers.d.ts +0 -1
  1230. package/lib/schema-initializer/buttons/CreateFormBlockInitializers.js +47 -33
  1231. package/lib/schema-initializer/buttons/CustomFormItemInitializers.d.ts +1 -0
  1232. package/lib/schema-initializer/buttons/CustomFormItemInitializers.js +39 -0
  1233. package/lib/schema-initializer/buttons/DetailsActionInitializers.js +35 -37
  1234. package/lib/schema-initializer/buttons/FormActionInitializers.d.ts +204 -21
  1235. package/lib/schema-initializer/buttons/FormActionInitializers.js +284 -138
  1236. package/lib/schema-initializer/buttons/FormItemInitializers.d.ts +0 -1
  1237. package/lib/schema-initializer/buttons/FormItemInitializers.js +51 -45
  1238. package/lib/schema-initializer/buttons/KanbanActionInitializers.js +34 -36
  1239. package/lib/schema-initializer/buttons/KanbanCardFormItemInitializers.d.ts +1 -0
  1240. package/lib/schema-initializer/buttons/KanbanCardFormItemInitializers.js +1 -1
  1241. package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +85 -2
  1242. package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +110 -36
  1243. package/lib/schema-initializer/buttons/ReadPrettyFormItemInitializers.d.ts +0 -1
  1244. package/lib/schema-initializer/buttons/ReadPrettyFormItemInitializers.js +51 -45
  1245. package/lib/schema-initializer/buttons/RecordBlockInitializers.d.ts +0 -1
  1246. package/lib/schema-initializer/buttons/RecordBlockInitializers.js +76 -60
  1247. package/lib/schema-initializer/buttons/RecordFormBlockInitializers.d.ts +0 -1
  1248. package/lib/schema-initializer/buttons/RecordFormBlockInitializers.js +43 -33
  1249. package/lib/schema-initializer/buttons/SubTableActionInitializers.js +37 -39
  1250. package/lib/schema-initializer/buttons/TabPaneInitializers.d.ts +0 -1
  1251. package/lib/schema-initializer/buttons/TabPaneInitializers.js +153 -153
  1252. package/lib/schema-initializer/buttons/TableActionColumnInitializers.d.ts +0 -1
  1253. package/lib/schema-initializer/buttons/TableActionColumnInitializers.js +169 -69
  1254. package/lib/schema-initializer/buttons/TableActionInitializers.js +45 -48
  1255. package/lib/schema-initializer/buttons/TableColumnInitializers.d.ts +0 -1
  1256. package/lib/schema-initializer/buttons/TableColumnInitializers.js +58 -50
  1257. package/lib/schema-initializer/buttons/TableSelectorInitializers.d.ts +0 -1
  1258. package/lib/schema-initializer/buttons/TableSelectorInitializers.js +54 -44
  1259. package/lib/schema-initializer/buttons/index.d.ts +1 -0
  1260. package/lib/schema-initializer/buttons/index.js +238 -29
  1261. package/lib/schema-initializer/components/assigned-field/AssignedField.d.ts +1 -0
  1262. package/lib/schema-initializer/components/assigned-field/AssignedField.js +129 -0
  1263. package/lib/schema-initializer/components/assigned-field/index.d.ts +1 -0
  1264. package/lib/schema-initializer/components/assigned-field/index.js +18 -0
  1265. package/lib/schema-initializer/components/index.d.ts +1 -0
  1266. package/lib/schema-initializer/components/index.js +18 -0
  1267. package/lib/schema-initializer/index.js +43 -15
  1268. package/lib/schema-initializer/items/index.d.ts +0 -1
  1269. package/lib/schema-initializer/items/index.js +1145 -722
  1270. package/lib/schema-initializer/types.js +4 -2
  1271. package/lib/schema-initializer/utils.d.ts +2 -0
  1272. package/lib/schema-initializer/utils.js +927 -693
  1273. package/lib/schema-settings/GeneralSchemaDesigner.d.ts +0 -1
  1274. package/lib/schema-settings/GeneralSchemaDesigner.js +106 -49
  1275. package/lib/schema-settings/SchemaSettings.js +805 -417
  1276. package/lib/schema-settings/index.js +30 -14
  1277. package/lib/schema-templates/BlockTemplate.js +52 -30
  1278. package/lib/schema-templates/BlockTemplateDetails.d.ts +0 -1
  1279. package/lib/schema-templates/BlockTemplateDetails.js +136 -83
  1280. package/lib/schema-templates/BlockTemplatePage.d.ts +0 -1
  1281. package/lib/schema-templates/BlockTemplatePage.js +39 -24
  1282. package/lib/schema-templates/SchemaTemplateManagerProvider.js +316 -222
  1283. package/lib/schema-templates/SchemaTemplateShortcut.d.ts +0 -1
  1284. package/lib/schema-templates/SchemaTemplateShortcut.js +31 -14
  1285. package/lib/schema-templates/collections/uiSchemaTemplates.js +20 -19
  1286. package/lib/schema-templates/index.js +56 -16
  1287. package/lib/schema-templates/schemas/uiSchemaTemplates.js +241 -203
  1288. package/lib/settings-form/SettingsForm.js +351 -201
  1289. package/lib/settings-form/index.js +17 -13
  1290. package/lib/slate/RichText.d.ts +0 -1
  1291. package/lib/slate/RichText.js +321 -178
  1292. package/lib/slate/Slate.js +51 -34
  1293. package/lib/slate/components.js +117 -61
  1294. package/lib/slate/index.js +17 -13
  1295. package/lib/slate/index.less +51 -0
  1296. package/lib/slate/materialicons.woff2 +0 -0
  1297. package/lib/system-settings/SystemSettingsProvider.js +39 -30
  1298. package/lib/system-settings/SystemSettingsShortcut.d.ts +0 -1
  1299. package/lib/system-settings/SystemSettingsShortcut.js +227 -196
  1300. package/lib/system-settings/index.js +30 -14
  1301. package/lib/user/ChangePassword.d.ts +0 -1
  1302. package/lib/user/ChangePassword.js +212 -197
  1303. package/lib/user/CurrentUser.js +118 -95
  1304. package/lib/user/CurrentUserProvider.js +53 -37
  1305. package/lib/user/EditProfile.d.ts +0 -1
  1306. package/lib/user/EditProfile.js +193 -171
  1307. package/lib/user/LanguageSettings.d.ts +0 -1
  1308. package/lib/user/LanguageSettings.js +106 -101
  1309. package/lib/user/SigninPage.d.ts +0 -1
  1310. package/lib/user/SigninPage.js +143 -132
  1311. package/lib/user/SignupPage.d.ts +0 -1
  1312. package/lib/user/SignupPage.js +167 -155
  1313. package/lib/user/SwitchRole.d.ts +0 -1
  1314. package/lib/user/SwitchRole.js +132 -117
  1315. package/lib/user/index.js +56 -16
  1316. package/lib/workflow/ExecutionResourceProvider.d.ts +0 -1
  1317. package/lib/workflow/ExecutionResourceProvider.js +45 -33
  1318. package/lib/workflow/WorkflowCanvas.js +391 -205
  1319. package/lib/workflow/WorkflowLink.d.ts +0 -1
  1320. package/lib/workflow/WorkflowLink.js +33 -21
  1321. package/lib/workflow/WorkflowPage.d.ts +0 -1
  1322. package/lib/workflow/WorkflowPage.js +56 -105
  1323. package/lib/workflow/WorkflowRouteProvider.d.ts +0 -1
  1324. package/lib/workflow/WorkflowRouteProvider.js +44 -36
  1325. package/lib/workflow/WorkflowShortcut.d.ts +0 -1
  1326. package/lib/workflow/WorkflowShortcut.js +81 -112
  1327. package/lib/workflow/calculators.d.ts +1 -1
  1328. package/lib/workflow/calculators.js +657 -343
  1329. package/lib/workflow/index.d.ts +0 -1
  1330. package/lib/workflow/index.js +69 -18
  1331. package/lib/workflow/nodes/calculation.d.ts +1 -1
  1332. package/lib/workflow/nodes/calculation.js +58 -38
  1333. package/lib/workflow/nodes/condition.d.ts +2 -2
  1334. package/lib/workflow/nodes/condition.js +264 -123
  1335. package/lib/workflow/nodes/create.d.ts +9 -21
  1336. package/lib/workflow/nodes/create.js +104 -65
  1337. package/lib/workflow/nodes/destroy.d.ts +2 -2
  1338. package/lib/workflow/nodes/destroy.js +35 -27
  1339. package/lib/workflow/nodes/index.d.ts +1 -1
  1340. package/lib/workflow/nodes/index.js +341 -233
  1341. package/lib/workflow/nodes/parallel.d.ts +2 -2
  1342. package/lib/workflow/nodes/parallel.js +151 -78
  1343. package/lib/workflow/nodes/query.d.ts +3 -4
  1344. package/lib/workflow/nodes/query.js +111 -64
  1345. package/lib/workflow/nodes/update.d.ts +25 -38
  1346. package/lib/workflow/nodes/update.js +38 -30
  1347. package/lib/workflow/schemas/collection.d.ts +1 -5
  1348. package/lib/workflow/schemas/collection.js +62 -58
  1349. package/lib/workflow/schemas/executions.d.ts +4 -25
  1350. package/lib/workflow/schemas/executions.js +126 -116
  1351. package/lib/workflow/schemas/workflows.js +323 -283
  1352. package/lib/workflow/style.d.ts +2 -0
  1353. package/lib/workflow/style.js +36 -19
  1354. package/lib/workflow/triggers/collection.d.ts +72 -0
  1355. package/lib/workflow/triggers/collection.js +153 -0
  1356. package/lib/workflow/triggers/index.js +180 -133
  1357. package/package.json +10 -25
  1358. package/src/acl/Configuration/RoleConfigure.tsx +4 -4
  1359. package/src/acl/Configuration/schemas/roles.ts +1 -1
  1360. package/src/api-client/APIClient.ts +1 -0
  1361. package/src/block-provider/CalendarBlockProvider.tsx +1 -1
  1362. package/src/block-provider/KanbanBlockProvider.tsx +1 -1
  1363. package/src/block-provider/hooks/index.ts +87 -21
  1364. package/src/block-provider/index.tsx +1 -0
  1365. package/src/collection-manager/CollectionField.tsx +1 -0
  1366. package/src/collection-manager/Configuration/schemas/collections.ts +1 -1
  1367. package/src/collection-manager/interfaces/attachment.ts +1 -1
  1368. package/src/collection-manager/interfaces/linkTo.ts +3 -0
  1369. package/src/collection-manager/interfaces/properties/index.ts +4 -4
  1370. package/src/collection-manager/types.ts +1 -0
  1371. package/src/document-title/index.tsx +10 -0
  1372. package/src/locale/en_US.ts +22 -1
  1373. package/src/locale/zh_CN.ts +118 -4
  1374. package/src/plugin-manager/PluginManager.tsx +14 -1
  1375. package/src/powered-by/index.tsx +1 -1
  1376. package/src/route-switch/antd/admin-layout/index.tsx +10 -12
  1377. package/src/schema-component/antd/action/Action.Designer.tsx +261 -159
  1378. package/src/schema-component/antd/action/Action.Drawer.tsx +3 -1
  1379. package/src/schema-component/antd/action/Action.Modal.tsx +1 -1
  1380. package/src/schema-component/antd/action/Action.tsx +20 -5
  1381. package/src/schema-component/antd/action/context.tsx +2 -0
  1382. package/src/schema-component/antd/action/hooks.ts +20 -2
  1383. package/src/schema-component/antd/calendar/Calendar.Designer.tsx +62 -63
  1384. package/src/schema-component/antd/calendar/Calendar.tsx +104 -133
  1385. package/src/schema-component/antd/calendar/Nav.tsx +2 -2
  1386. package/src/schema-component/antd/calendar/Title.tsx +2 -2
  1387. package/src/schema-component/antd/calendar/Today.tsx +2 -2
  1388. package/src/schema-component/antd/calendar/ViewSelect.tsx +2 -2
  1389. package/src/schema-component/antd/calendar/context.ts +1 -1
  1390. package/src/schema-component/antd/{calendar-v2 → calendar}/demos/collections.ts +0 -0
  1391. package/src/schema-component/antd/{calendar-v2 → calendar}/demos/data.ts +0 -0
  1392. package/src/schema-component/antd/calendar/demos/demo1.tsx +10 -14
  1393. package/src/schema-component/antd/calendar/demos/demo2.tsx +92 -113
  1394. package/src/schema-component/antd/calendar/index.md +3 -9
  1395. package/src/schema-component/antd/calendar/index.ts +20 -2
  1396. package/src/schema-component/antd/calendar/utils.ts +0 -30
  1397. package/src/schema-component/antd/filter/Filter.Action.Designer.tsx +1 -1
  1398. package/src/schema-component/antd/filter/FilterAction.tsx +1 -1
  1399. package/src/schema-component/antd/filter/FilterGroup.tsx +14 -9
  1400. package/src/schema-component/antd/filter/FilterItem.tsx +1 -1
  1401. package/src/schema-component/antd/filter/useFilterActionProps.ts +2 -2
  1402. package/src/schema-component/antd/form-v2/Form.tsx +29 -3
  1403. package/src/schema-component/antd/grid/Grid.tsx +31 -20
  1404. package/src/schema-component/antd/index.ts +0 -5
  1405. package/src/schema-component/antd/kanban/Kanban.Card.Designer.tsx +1 -1
  1406. package/src/schema-component/antd/kanban/Kanban.Card.tsx +5 -1
  1407. package/src/schema-component/antd/kanban/Kanban.Designer.tsx +10 -10
  1408. package/src/schema-component/antd/kanban/Kanban.tsx +118 -130
  1409. package/src/schema-component/antd/{kanban-v2 → kanban}/demos/collections.ts +0 -0
  1410. package/src/schema-component/antd/{kanban-v2 → kanban}/demos/data.ts +0 -0
  1411. package/src/schema-component/antd/kanban/demos/demo1.tsx +59 -233
  1412. package/src/schema-component/antd/kanban/index.less +16 -0
  1413. package/src/schema-component/antd/kanban/index.md +1 -83
  1414. package/src/schema-component/antd/kanban/index.ts +16 -1
  1415. package/src/schema-component/antd/markdown/Markdown.Void.tsx +1 -1
  1416. package/src/schema-component/antd/menu/Menu.Designer.tsx +36 -26
  1417. package/src/schema-component/antd/menu/Menu.tsx +12 -2
  1418. package/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx +3 -1
  1419. package/src/schema-component/antd/table/Table.Void.Designer.tsx +1 -1
  1420. package/src/schema-component/antd/table-v2/Table.Column.Designer.tsx +1 -1
  1421. package/src/schema-component/antd/table-v2/TableBlockDesigner.tsx +4 -4
  1422. package/src/schema-component/antd/table-v2/TableSelectorDesigner.tsx +5 -5
  1423. package/src/schema-component/antd/tabs/Tabs.Designer.tsx +1 -1
  1424. package/src/schema-component/common/dnd-context/index.tsx +2 -1
  1425. package/src/schema-component/hooks/useDesignable.tsx +9 -0
  1426. package/src/schema-initializer/SchemaInitializerProvider.tsx +4 -1
  1427. package/src/schema-initializer/buttons/BlockInitializers.tsx +1 -1
  1428. package/src/schema-initializer/buttons/CreateFormBlockInitializers.tsx +4 -1
  1429. package/src/schema-initializer/buttons/CustomFormItemInitializers.tsx +26 -0
  1430. package/src/schema-initializer/buttons/FormActionInitializers.tsx +192 -22
  1431. package/src/schema-initializer/buttons/FormItemInitializers.tsx +5 -3
  1432. package/src/schema-initializer/buttons/ReadPrettyFormActionInitializers.tsx +82 -0
  1433. package/src/schema-initializer/buttons/ReadPrettyFormItemInitializers.tsx +5 -3
  1434. package/src/schema-initializer/buttons/RecordBlockInitializers.tsx +4 -1
  1435. package/src/schema-initializer/buttons/TableActionColumnInitializers.tsx +81 -0
  1436. package/src/schema-initializer/buttons/index.ts +1 -1
  1437. package/src/schema-initializer/components/assigned-field/AssignedField.tsx +70 -0
  1438. package/src/schema-initializer/components/assigned-field/index.ts +1 -0
  1439. package/src/schema-initializer/components/index.ts +1 -0
  1440. package/src/schema-initializer/items/index.tsx +1 -1
  1441. package/src/schema-initializer/utils.ts +50 -2
  1442. package/src/schema-settings/GeneralSchemaDesigner.tsx +20 -5
  1443. package/src/schema-settings/SchemaSettings.tsx +82 -6
  1444. package/src/schema-templates/schemas/uiSchemaTemplates.ts +23 -10
  1445. package/src/settings-form/SettingsForm.tsx +1 -1
  1446. package/src/user/CurrentUser.tsx +2 -0
  1447. package/src/workflow/WorkflowCanvas.tsx +133 -36
  1448. package/src/workflow/WorkflowLink.tsx +3 -1
  1449. package/src/workflow/WorkflowPage.tsx +26 -84
  1450. package/src/workflow/WorkflowShortcut.tsx +14 -23
  1451. package/src/workflow/calculators.tsx +110 -61
  1452. package/src/workflow/index.tsx +0 -2
  1453. package/src/workflow/nodes/calculation.tsx +8 -5
  1454. package/src/workflow/nodes/condition.tsx +41 -33
  1455. package/src/workflow/nodes/create.tsx +14 -17
  1456. package/src/workflow/nodes/destroy.tsx +5 -5
  1457. package/src/workflow/nodes/index.tsx +158 -123
  1458. package/src/workflow/nodes/parallel.tsx +31 -8
  1459. package/src/workflow/nodes/query.tsx +11 -9
  1460. package/src/workflow/nodes/update.tsx +8 -13
  1461. package/src/workflow/schemas/collection.ts +8 -18
  1462. package/src/workflow/schemas/executions.ts +38 -34
  1463. package/src/workflow/schemas/workflows.ts +63 -44
  1464. package/src/workflow/style.tsx +47 -0
  1465. package/src/workflow/triggers/collection.tsx +102 -0
  1466. package/src/workflow/triggers/index.tsx +46 -18
  1467. package/esm/acl/ACLProvider.js +0 -177
  1468. package/esm/acl/ACLProvider.js.map +0 -1
  1469. package/esm/acl/ACLShortcut.d.ts +0 -2
  1470. package/esm/acl/ACLShortcut.js +0 -60
  1471. package/esm/acl/ACLShortcut.js.map +0 -1
  1472. package/esm/acl/Configuration/MenuConfigure.d.ts +0 -2
  1473. package/esm/acl/Configuration/MenuConfigure.js +0 -190
  1474. package/esm/acl/Configuration/MenuConfigure.js.map +0 -1
  1475. package/esm/acl/Configuration/RoleConfigure.d.ts +0 -2
  1476. package/esm/acl/Configuration/RoleConfigure.js +0 -106
  1477. package/esm/acl/Configuration/RoleConfigure.js.map +0 -1
  1478. package/esm/acl/Configuration/RoleTable.d.ts +0 -4
  1479. package/esm/acl/Configuration/RoleTable.js +0 -70
  1480. package/esm/acl/Configuration/RoleTable.js.map +0 -1
  1481. package/esm/acl/Configuration/RolesResourcesActions.js +0 -235
  1482. package/esm/acl/Configuration/RolesResourcesActions.js.map +0 -1
  1483. package/esm/acl/Configuration/ScopeSelect.d.ts +0 -3
  1484. package/esm/acl/Configuration/ScopeSelect.js +0 -56
  1485. package/esm/acl/Configuration/ScopeSelect.js.map +0 -1
  1486. package/esm/acl/Configuration/StrategyActions.js +0 -117
  1487. package/esm/acl/Configuration/StrategyActions.js.map +0 -1
  1488. package/esm/acl/Configuration/index.js +0 -6
  1489. package/esm/acl/Configuration/index.js.map +0 -1
  1490. package/esm/acl/Configuration/schemas/roleCollections.js +0 -209
  1491. package/esm/acl/Configuration/schemas/roleCollections.js.map +0 -1
  1492. package/esm/acl/Configuration/schemas/roles.js +0 -363
  1493. package/esm/acl/Configuration/schemas/roles.js.map +0 -1
  1494. package/esm/acl/Configuration/schemas/scopes.js +0 -355
  1495. package/esm/acl/Configuration/schemas/scopes.js.map +0 -1
  1496. package/esm/acl/Configuration/schemas/useRoleResourceValues.js +0 -39
  1497. package/esm/acl/Configuration/schemas/useRoleResourceValues.js.map +0 -1
  1498. package/esm/acl/Configuration/schemas/useSaveRoleResourceAction.js +0 -76
  1499. package/esm/acl/Configuration/schemas/useSaveRoleResourceAction.js.map +0 -1
  1500. package/esm/acl/index.js +0 -3
  1501. package/esm/acl/index.js.map +0 -1
  1502. package/esm/action-logs/ActionLog.Designer.d.ts +0 -2
  1503. package/esm/action-logs/ActionLog.Designer.js +0 -80
  1504. package/esm/action-logs/ActionLog.Designer.js.map +0 -1
  1505. package/esm/action-logs/ActionLog.js +0 -53
  1506. package/esm/action-logs/ActionLog.js.map +0 -1
  1507. package/esm/action-logs/ActionLogBlockInitializer.d.ts +0 -2
  1508. package/esm/action-logs/ActionLogBlockInitializer.js +0 -30
  1509. package/esm/action-logs/ActionLogBlockInitializer.js.map +0 -1
  1510. package/esm/action-logs/ActionLogProvider.d.ts +0 -2
  1511. package/esm/action-logs/ActionLogProvider.js +0 -31
  1512. package/esm/action-logs/ActionLogProvider.js.map +0 -1
  1513. package/esm/action-logs/index.js +0 -4
  1514. package/esm/action-logs/index.js.map +0 -1
  1515. package/esm/action-logs/utils.js +0 -316
  1516. package/esm/action-logs/utils.js.map +0 -1
  1517. package/esm/antd-config-provider/index.js +0 -49
  1518. package/esm/antd-config-provider/index.js.map +0 -1
  1519. package/esm/api-client/APIClient.js +0 -151
  1520. package/esm/api-client/APIClient.js.map +0 -1
  1521. package/esm/api-client/APIClientProvider.js +0 -18
  1522. package/esm/api-client/APIClientProvider.js.map +0 -1
  1523. package/esm/api-client/__tests__/APIClient.test.d.ts +0 -1
  1524. package/esm/api-client/__tests__/APIClient.test.js +0 -24
  1525. package/esm/api-client/__tests__/APIClient.test.js.map +0 -1
  1526. package/esm/api-client/context.js +0 -4
  1527. package/esm/api-client/context.js.map +0 -1
  1528. package/esm/api-client/hooks/assign.js +0 -99
  1529. package/esm/api-client/hooks/assign.js.map +0 -1
  1530. package/esm/api-client/hooks/index.js +0 -4
  1531. package/esm/api-client/hooks/index.js.map +0 -1
  1532. package/esm/api-client/hooks/useAPIClient.js +0 -6
  1533. package/esm/api-client/hooks/useAPIClient.js.map +0 -1
  1534. package/esm/api-client/hooks/useRequest.js +0 -136
  1535. package/esm/api-client/hooks/useRequest.js.map +0 -1
  1536. package/esm/api-client/hooks/useResource.js +0 -7
  1537. package/esm/api-client/hooks/useResource.js.map +0 -1
  1538. package/esm/api-client/index.js +0 -4
  1539. package/esm/api-client/index.js.map +0 -1
  1540. package/esm/application/__tests__/compose.test.d.ts +0 -1
  1541. package/esm/application/__tests__/compose.test.js +0 -41
  1542. package/esm/application/__tests__/compose.test.js.map +0 -1
  1543. package/esm/application/compose.d.ts +0 -2
  1544. package/esm/application/compose.js +0 -59
  1545. package/esm/application/compose.js.map +0 -1
  1546. package/esm/application/index.js +0 -2
  1547. package/esm/application/index.js.map +0 -1
  1548. package/esm/async-data-provider/index.js +0 -38
  1549. package/esm/async-data-provider/index.js.map +0 -1
  1550. package/esm/block-provider/BlockProvider.js +0 -163
  1551. package/esm/block-provider/BlockProvider.js.map +0 -1
  1552. package/esm/block-provider/BlockSchemaComponentProvider.js +0 -35
  1553. package/esm/block-provider/BlockSchemaComponentProvider.js.map +0 -1
  1554. package/esm/block-provider/CalendarBlockProvider.js +0 -52
  1555. package/esm/block-provider/CalendarBlockProvider.js.map +0 -1
  1556. package/esm/block-provider/DetailsBlockProvider.js +0 -60
  1557. package/esm/block-provider/DetailsBlockProvider.js.map +0 -1
  1558. package/esm/block-provider/FormBlockProvider.js +0 -55
  1559. package/esm/block-provider/FormBlockProvider.js.map +0 -1
  1560. package/esm/block-provider/KanbanBlockProvider.js +0 -155
  1561. package/esm/block-provider/KanbanBlockProvider.js.map +0 -1
  1562. package/esm/block-provider/TableBlockProvider.js +0 -168
  1563. package/esm/block-provider/TableBlockProvider.js.map +0 -1
  1564. package/esm/block-provider/TableFieldProvider.js +0 -211
  1565. package/esm/block-provider/TableFieldProvider.js.map +0 -1
  1566. package/esm/block-provider/TableSelectorProvider.js +0 -145
  1567. package/esm/block-provider/TableSelectorProvider.js.map +0 -1
  1568. package/esm/block-provider/hooks/index.d.ts +0 -27
  1569. package/esm/block-provider/hooks/index.js +0 -397
  1570. package/esm/block-provider/hooks/index.js.map +0 -1
  1571. package/esm/block-provider/index.d.ts +0 -7
  1572. package/esm/block-provider/index.js +0 -8
  1573. package/esm/block-provider/index.js.map +0 -1
  1574. package/esm/board/Board.js +0 -231
  1575. package/esm/board/Board.js.map +0 -1
  1576. package/esm/board/Card.js +0 -22
  1577. package/esm/board/Card.js.map +0 -1
  1578. package/esm/board/CardAdder.js +0 -41
  1579. package/esm/board/CardAdder.js.map +0 -1
  1580. package/esm/board/CardForm.js +0 -28
  1581. package/esm/board/CardForm.js.map +0 -1
  1582. package/esm/board/Column.js +0 -35
  1583. package/esm/board/Column.js.map +0 -1
  1584. package/esm/board/ColumnAdder.js +0 -41
  1585. package/esm/board/ColumnAdder.js.map +0 -1
  1586. package/esm/board/ColumnForm.js +0 -26
  1587. package/esm/board/ColumnForm.js.map +0 -1
  1588. package/esm/board/DefaultCard.js +0 -18
  1589. package/esm/board/DefaultCard.js.map +0 -1
  1590. package/esm/board/DefaultColumnHeader.js +0 -60
  1591. package/esm/board/DefaultColumnHeader.js.map +0 -1
  1592. package/esm/board/Kanban.js +0 -127
  1593. package/esm/board/Kanban.js.map +0 -1
  1594. package/esm/board/helpers.js +0 -112
  1595. package/esm/board/helpers.js.map +0 -1
  1596. package/esm/board/index.js +0 -2
  1597. package/esm/board/index.js.map +0 -1
  1598. package/esm/board/services.js +0 -46
  1599. package/esm/board/services.js.map +0 -1
  1600. package/esm/board/utils.js +0 -92
  1601. package/esm/board/utils.js.map +0 -1
  1602. package/esm/board/withDroppable.d.ts +0 -6
  1603. package/esm/board/withDroppable.js +0 -32
  1604. package/esm/board/withDroppable.js.map +0 -1
  1605. package/esm/china-region/index.d.ts +0 -2
  1606. package/esm/china-region/index.js +0 -104
  1607. package/esm/china-region/index.js.map +0 -1
  1608. package/esm/collection-manager/CollectionField.js +0 -80
  1609. package/esm/collection-manager/CollectionField.js.map +0 -1
  1610. package/esm/collection-manager/CollectionFieldProvider.js +0 -24
  1611. package/esm/collection-manager/CollectionFieldProvider.js.map +0 -1
  1612. package/esm/collection-manager/CollectionManagerProvider.js +0 -128
  1613. package/esm/collection-manager/CollectionManagerProvider.js.map +0 -1
  1614. package/esm/collection-manager/CollectionManagerSchemaComponentProvider.js +0 -27
  1615. package/esm/collection-manager/CollectionManagerSchemaComponentProvider.js.map +0 -1
  1616. package/esm/collection-manager/CollectionManagerShortcut.d.ts +0 -2
  1617. package/esm/collection-manager/CollectionManagerShortcut.js +0 -59
  1618. package/esm/collection-manager/CollectionManagerShortcut.js.map +0 -1
  1619. package/esm/collection-manager/CollectionProvider.js +0 -24
  1620. package/esm/collection-manager/CollectionProvider.js.map +0 -1
  1621. package/esm/collection-manager/Configuration/AddFieldAction.d.ts +0 -2
  1622. package/esm/collection-manager/Configuration/AddFieldAction.js +0 -185
  1623. package/esm/collection-manager/Configuration/AddFieldAction.js.map +0 -1
  1624. package/esm/collection-manager/Configuration/AddSubFieldAction.d.ts +0 -2
  1625. package/esm/collection-manager/Configuration/AddSubFieldAction.js +0 -158
  1626. package/esm/collection-manager/Configuration/AddSubFieldAction.js.map +0 -1
  1627. package/esm/collection-manager/Configuration/ConfigurationTable.d.ts +0 -2
  1628. package/esm/collection-manager/Configuration/ConfigurationTable.js +0 -232
  1629. package/esm/collection-manager/Configuration/ConfigurationTable.js.map +0 -1
  1630. package/esm/collection-manager/Configuration/EditFieldAction.d.ts +0 -2
  1631. package/esm/collection-manager/Configuration/EditFieldAction.js +0 -181
  1632. package/esm/collection-manager/Configuration/EditFieldAction.js.map +0 -1
  1633. package/esm/collection-manager/Configuration/EditSubFieldAction.d.ts +0 -2
  1634. package/esm/collection-manager/Configuration/EditSubFieldAction.js +0 -173
  1635. package/esm/collection-manager/Configuration/EditSubFieldAction.js.map +0 -1
  1636. package/esm/collection-manager/Configuration/index.js +0 -4
  1637. package/esm/collection-manager/Configuration/index.js.map +0 -1
  1638. package/esm/collection-manager/Configuration/interfaces.js +0 -47
  1639. package/esm/collection-manager/Configuration/interfaces.js.map +0 -1
  1640. package/esm/collection-manager/Configuration/schemas/collectionFields.js +0 -201
  1641. package/esm/collection-manager/Configuration/schemas/collectionFields.js.map +0 -1
  1642. package/esm/collection-manager/Configuration/schemas/collections.js +0 -276
  1643. package/esm/collection-manager/Configuration/schemas/collections.js.map +0 -1
  1644. package/esm/collection-manager/ResourceActionProvider.js +0 -110
  1645. package/esm/collection-manager/ResourceActionProvider.js.map +0 -1
  1646. package/esm/collection-manager/action-hooks.js +0 -526
  1647. package/esm/collection-manager/action-hooks.js.map +0 -1
  1648. package/esm/collection-manager/context.js +0 -8
  1649. package/esm/collection-manager/context.js.map +0 -1
  1650. package/esm/collection-manager/hooks/index.js +0 -5
  1651. package/esm/collection-manager/hooks/index.js.map +0 -1
  1652. package/esm/collection-manager/hooks/useCollection.d.ts +0 -11
  1653. package/esm/collection-manager/hooks/useCollection.js +0 -24
  1654. package/esm/collection-manager/hooks/useCollection.js.map +0 -1
  1655. package/esm/collection-manager/hooks/useCollectionDataSource.js +0 -16
  1656. package/esm/collection-manager/hooks/useCollectionDataSource.js.map +0 -1
  1657. package/esm/collection-manager/hooks/useCollectionField.js +0 -31
  1658. package/esm/collection-manager/hooks/useCollectionField.js.map +0 -1
  1659. package/esm/collection-manager/hooks/useCollectionManager.js +0 -57
  1660. package/esm/collection-manager/hooks/useCollectionManager.js.map +0 -1
  1661. package/esm/collection-manager/index.js +0 -11
  1662. package/esm/collection-manager/index.js.map +0 -1
  1663. package/esm/collection-manager/interfaces/attachment.js +0 -98
  1664. package/esm/collection-manager/interfaces/attachment.js.map +0 -1
  1665. package/esm/collection-manager/interfaces/checkbox.js +0 -32
  1666. package/esm/collection-manager/interfaces/checkbox.js.map +0 -1
  1667. package/esm/collection-manager/interfaces/checkboxGroup.js +0 -34
  1668. package/esm/collection-manager/interfaces/checkboxGroup.js.map +0 -1
  1669. package/esm/collection-manager/interfaces/chinaRegion.js +0 -97
  1670. package/esm/collection-manager/interfaces/chinaRegion.js.map +0 -1
  1671. package/esm/collection-manager/interfaces/createdAt.js +0 -37
  1672. package/esm/collection-manager/interfaces/createdAt.js.map +0 -1
  1673. package/esm/collection-manager/interfaces/createdBy.js +0 -71
  1674. package/esm/collection-manager/interfaces/createdBy.js.map +0 -1
  1675. package/esm/collection-manager/interfaces/datetime.js +0 -37
  1676. package/esm/collection-manager/interfaces/datetime.js.map +0 -1
  1677. package/esm/collection-manager/interfaces/email.js +0 -35
  1678. package/esm/collection-manager/interfaces/email.js.map +0 -1
  1679. package/esm/collection-manager/interfaces/icon.js +0 -30
  1680. package/esm/collection-manager/interfaces/icon.js.map +0 -1
  1681. package/esm/collection-manager/interfaces/id.js +0 -45
  1682. package/esm/collection-manager/interfaces/id.js.map +0 -1
  1683. package/esm/collection-manager/interfaces/index.js +0 -27
  1684. package/esm/collection-manager/interfaces/index.js.map +0 -1
  1685. package/esm/collection-manager/interfaces/input.js +0 -40
  1686. package/esm/collection-manager/interfaces/input.js.map +0 -1
  1687. package/esm/collection-manager/interfaces/linkTo.js +0 -143
  1688. package/esm/collection-manager/interfaces/linkTo.js.map +0 -1
  1689. package/esm/collection-manager/interfaces/markdown.js +0 -36
  1690. package/esm/collection-manager/interfaces/markdown.js.map +0 -1
  1691. package/esm/collection-manager/interfaces/multipleSelect.js +0 -38
  1692. package/esm/collection-manager/interfaces/multipleSelect.js.map +0 -1
  1693. package/esm/collection-manager/interfaces/number.js +0 -52
  1694. package/esm/collection-manager/interfaces/number.js.map +0 -1
  1695. package/esm/collection-manager/interfaces/password.js +0 -30
  1696. package/esm/collection-manager/interfaces/password.js.map +0 -1
  1697. package/esm/collection-manager/interfaces/percent.js +0 -53
  1698. package/esm/collection-manager/interfaces/percent.js.map +0 -1
  1699. package/esm/collection-manager/interfaces/phone.js +0 -35
  1700. package/esm/collection-manager/interfaces/phone.js.map +0 -1
  1701. package/esm/collection-manager/interfaces/properties/index.js +0 -266
  1702. package/esm/collection-manager/interfaces/properties/index.js.map +0 -1
  1703. package/esm/collection-manager/interfaces/properties/operators.js +0 -121
  1704. package/esm/collection-manager/interfaces/properties/operators.js.map +0 -1
  1705. package/esm/collection-manager/interfaces/radioGroup.js +0 -34
  1706. package/esm/collection-manager/interfaces/radioGroup.js.map +0 -1
  1707. package/esm/collection-manager/interfaces/richText.js +0 -37
  1708. package/esm/collection-manager/interfaces/richText.js.map +0 -1
  1709. package/esm/collection-manager/interfaces/select.js +0 -35
  1710. package/esm/collection-manager/interfaces/select.js.map +0 -1
  1711. package/esm/collection-manager/interfaces/subTable.js +0 -212
  1712. package/esm/collection-manager/interfaces/subTable.js.map +0 -1
  1713. package/esm/collection-manager/interfaces/textarea.js +0 -37
  1714. package/esm/collection-manager/interfaces/textarea.js.map +0 -1
  1715. package/esm/collection-manager/interfaces/time.js +0 -49
  1716. package/esm/collection-manager/interfaces/time.js.map +0 -1
  1717. package/esm/collection-manager/interfaces/types.js +0 -2
  1718. package/esm/collection-manager/interfaces/types.js.map +0 -1
  1719. package/esm/collection-manager/interfaces/updatedAt.js +0 -37
  1720. package/esm/collection-manager/interfaces/updatedAt.js.map +0 -1
  1721. package/esm/collection-manager/interfaces/updatedBy.js +0 -70
  1722. package/esm/collection-manager/interfaces/updatedBy.js.map +0 -1
  1723. package/esm/collection-manager/sub-table.js +0 -327
  1724. package/esm/collection-manager/sub-table.js.map +0 -1
  1725. package/esm/collection-manager/types.d.ts +0 -32
  1726. package/esm/collection-manager/types.js +0 -2
  1727. package/esm/collection-manager/types.js.map +0 -1
  1728. package/esm/document-title/index.d.ts +0 -13
  1729. package/esm/document-title/index.js +0 -53
  1730. package/esm/document-title/index.js.map +0 -1
  1731. package/esm/file-manager/FileStorageShortcut.d.ts +0 -2
  1732. package/esm/file-manager/FileStorageShortcut.js +0 -58
  1733. package/esm/file-manager/FileStorageShortcut.js.map +0 -1
  1734. package/esm/file-manager/StorageOptions.js +0 -126
  1735. package/esm/file-manager/StorageOptions.js.map +0 -1
  1736. package/esm/file-manager/index.js +0 -2
  1737. package/esm/file-manager/index.js.map +0 -1
  1738. package/esm/file-manager/schemas/storage.js +0 -354
  1739. package/esm/file-manager/schemas/storage.js.map +0 -1
  1740. package/esm/i18n/i18n.js +0 -32
  1741. package/esm/i18n/i18n.js.map +0 -1
  1742. package/esm/i18n/index.js +0 -2
  1743. package/esm/i18n/index.js.map +0 -1
  1744. package/esm/icon/Icon.d.ts +0 -16
  1745. package/esm/icon/Icon.js +0 -69
  1746. package/esm/icon/Icon.js.map +0 -1
  1747. package/esm/icon/index.js +0 -2
  1748. package/esm/icon/index.js.map +0 -1
  1749. package/esm/index.js +0 -29
  1750. package/esm/index.js.map +0 -1
  1751. package/esm/locale/en_US.d.ts +0 -265
  1752. package/esm/locale/en_US.js +0 -265
  1753. package/esm/locale/en_US.js.map +0 -1
  1754. package/esm/locale/index.d.ts +0 -638
  1755. package/esm/locale/index.js +0 -22
  1756. package/esm/locale/index.js.map +0 -1
  1757. package/esm/locale/zh_CN.d.ts +0 -369
  1758. package/esm/locale/zh_CN.js +0 -369
  1759. package/esm/locale/zh_CN.js.map +0 -1
  1760. package/esm/plugin-manager/PluginManager.d.ts +0 -21
  1761. package/esm/plugin-manager/PluginManager.js +0 -110
  1762. package/esm/plugin-manager/PluginManager.js.map +0 -1
  1763. package/esm/plugin-manager/PluginManagerProvider.js +0 -18
  1764. package/esm/plugin-manager/PluginManagerProvider.js.map +0 -1
  1765. package/esm/plugin-manager/context.js +0 -3
  1766. package/esm/plugin-manager/context.js.map +0 -1
  1767. package/esm/plugin-manager/index.js +0 -4
  1768. package/esm/plugin-manager/index.js.map +0 -1
  1769. package/esm/powered-by/index.d.ts +0 -2
  1770. package/esm/powered-by/index.js +0 -28
  1771. package/esm/powered-by/index.js.map +0 -1
  1772. package/esm/record-provider/index.js +0 -41
  1773. package/esm/record-provider/index.js.map +0 -1
  1774. package/esm/route-switch/RouteSwitch.js +0 -38
  1775. package/esm/route-switch/RouteSwitch.js.map +0 -1
  1776. package/esm/route-switch/RouteSwitchProvider.js +0 -29
  1777. package/esm/route-switch/RouteSwitchProvider.js.map +0 -1
  1778. package/esm/route-switch/__tests__/RouteSwitch.test.d.ts +0 -1
  1779. package/esm/route-switch/__tests__/RouteSwitch.test.js +0 -35
  1780. package/esm/route-switch/__tests__/RouteSwitch.test.js.map +0 -1
  1781. package/esm/route-switch/antd/admin-layout/index.d.ts +0 -3
  1782. package/esm/route-switch/antd/admin-layout/index.js +0 -126
  1783. package/esm/route-switch/antd/admin-layout/index.js.map +0 -1
  1784. package/esm/route-switch/antd/auth-layout/index.js +0 -30
  1785. package/esm/route-switch/antd/auth-layout/index.js.map +0 -1
  1786. package/esm/route-switch/antd/index.js +0 -4
  1787. package/esm/route-switch/antd/index.js.map +0 -1
  1788. package/esm/route-switch/antd/route-schema-component/index.js +0 -8
  1789. package/esm/route-switch/antd/route-schema-component/index.js.map +0 -1
  1790. package/esm/route-switch/context.js +0 -7
  1791. package/esm/route-switch/context.js.map +0 -1
  1792. package/esm/route-switch/hooks.js +0 -21
  1793. package/esm/route-switch/hooks.js.map +0 -1
  1794. package/esm/route-switch/index.js +0 -7
  1795. package/esm/route-switch/index.js.map +0 -1
  1796. package/esm/route-switch/types.js +0 -2
  1797. package/esm/route-switch/types.js.map +0 -1
  1798. package/esm/schema-component/antd/AntdSchemaComponentProvider.d.ts +0 -2
  1799. package/esm/schema-component/antd/AntdSchemaComponentProvider.js +0 -21
  1800. package/esm/schema-component/antd/AntdSchemaComponentProvider.js.map +0 -1
  1801. package/esm/schema-component/antd/action/Action.Container.js +0 -34
  1802. package/esm/schema-component/antd/action/Action.Container.js.map +0 -1
  1803. package/esm/schema-component/antd/action/Action.Designer.d.ts +0 -2
  1804. package/esm/schema-component/antd/action/Action.Designer.js +0 -162
  1805. package/esm/schema-component/antd/action/Action.Designer.js.map +0 -1
  1806. package/esm/schema-component/antd/action/Action.Drawer.js +0 -60
  1807. package/esm/schema-component/antd/action/Action.Drawer.js.map +0 -1
  1808. package/esm/schema-component/antd/action/Action.Link.js +0 -18
  1809. package/esm/schema-component/antd/action/Action.Link.js.map +0 -1
  1810. package/esm/schema-component/antd/action/Action.Modal.js +0 -60
  1811. package/esm/schema-component/antd/action/Action.Modal.js.map +0 -1
  1812. package/esm/schema-component/antd/action/Action.Page.js +0 -64
  1813. package/esm/schema-component/antd/action/Action.Page.js.map +0 -1
  1814. package/esm/schema-component/antd/action/Action.Popover.js +0 -1
  1815. package/esm/schema-component/antd/action/Action.Popover.js.map +0 -1
  1816. package/esm/schema-component/antd/action/Action.js +0 -106
  1817. package/esm/schema-component/antd/action/Action.js.map +0 -1
  1818. package/esm/schema-component/antd/action/ActionBar.js +0 -49
  1819. package/esm/schema-component/antd/action/ActionBar.js.map +0 -1
  1820. package/esm/schema-component/antd/action/context.d.ts +0 -9
  1821. package/esm/schema-component/antd/action/context.js +0 -3
  1822. package/esm/schema-component/antd/action/context.js.map +0 -1
  1823. package/esm/schema-component/antd/action/hooks.d.ts +0 -13
  1824. package/esm/schema-component/antd/action/hooks.js +0 -86
  1825. package/esm/schema-component/antd/action/hooks.js.map +0 -1
  1826. package/esm/schema-component/antd/action/index.js +0 -5
  1827. package/esm/schema-component/antd/action/index.js.map +0 -1
  1828. package/esm/schema-component/antd/action/types.js +0 -2
  1829. package/esm/schema-component/antd/action/types.js.map +0 -1
  1830. package/esm/schema-component/antd/block-item/BlockItem.js +0 -26
  1831. package/esm/schema-component/antd/block-item/BlockItem.js.map +0 -1
  1832. package/esm/schema-component/antd/block-item/TestDesigner.d.ts +0 -2
  1833. package/esm/schema-component/antd/block-item/TestDesigner.js +0 -21
  1834. package/esm/schema-component/antd/block-item/TestDesigner.js.map +0 -1
  1835. package/esm/schema-component/antd/block-item/index.js +0 -3
  1836. package/esm/schema-component/antd/block-item/index.js.map +0 -1
  1837. package/esm/schema-component/antd/calendar/Calendar.Designer.d.ts +0 -2
  1838. package/esm/schema-component/antd/calendar/Calendar.Designer.js +0 -114
  1839. package/esm/schema-component/antd/calendar/Calendar.Designer.js.map +0 -1
  1840. package/esm/schema-component/antd/calendar/Calendar.d.ts +0 -2
  1841. package/esm/schema-component/antd/calendar/Calendar.js +0 -151
  1842. package/esm/schema-component/antd/calendar/Calendar.js.map +0 -1
  1843. package/esm/schema-component/antd/calendar/Event.d.ts +0 -2
  1844. package/esm/schema-component/antd/calendar/Event.js +0 -6
  1845. package/esm/schema-component/antd/calendar/Event.js.map +0 -1
  1846. package/esm/schema-component/antd/calendar/Nav.d.ts +0 -2
  1847. package/esm/schema-component/antd/calendar/Nav.js +0 -25
  1848. package/esm/schema-component/antd/calendar/Nav.js.map +0 -1
  1849. package/esm/schema-component/antd/calendar/Title.d.ts +0 -2
  1850. package/esm/schema-component/antd/calendar/Title.js +0 -22
  1851. package/esm/schema-component/antd/calendar/Title.js.map +0 -1
  1852. package/esm/schema-component/antd/calendar/Today.d.ts +0 -2
  1853. package/esm/schema-component/antd/calendar/Today.js +0 -28
  1854. package/esm/schema-component/antd/calendar/Today.js.map +0 -1
  1855. package/esm/schema-component/antd/calendar/ViewSelect.d.ts +0 -2
  1856. package/esm/schema-component/antd/calendar/ViewSelect.js +0 -23
  1857. package/esm/schema-component/antd/calendar/ViewSelect.js.map +0 -1
  1858. package/esm/schema-component/antd/calendar/context.d.ts +0 -4
  1859. package/esm/schema-component/antd/calendar/context.js +0 -4
  1860. package/esm/schema-component/antd/calendar/context.js.map +0 -1
  1861. package/esm/schema-component/antd/calendar/index.d.ts +0 -2
  1862. package/esm/schema-component/antd/calendar/index.js +0 -3
  1863. package/esm/schema-component/antd/calendar/index.js.map +0 -1
  1864. package/esm/schema-component/antd/calendar/utils.d.ts +0 -7
  1865. package/esm/schema-component/antd/calendar/utils.js +0 -43
  1866. package/esm/schema-component/antd/calendar/utils.js.map +0 -1
  1867. package/esm/schema-component/antd/calendar-v2/Calendar.Designer.d.ts +0 -2
  1868. package/esm/schema-component/antd/calendar-v2/Calendar.Designer.js +0 -122
  1869. package/esm/schema-component/antd/calendar-v2/Calendar.Designer.js.map +0 -1
  1870. package/esm/schema-component/antd/calendar-v2/Calendar.js +0 -133
  1871. package/esm/schema-component/antd/calendar-v2/Calendar.js.map +0 -1
  1872. package/esm/schema-component/antd/calendar-v2/Event.js +0 -6
  1873. package/esm/schema-component/antd/calendar-v2/Event.js.map +0 -1
  1874. package/esm/schema-component/antd/calendar-v2/Nav.js +0 -25
  1875. package/esm/schema-component/antd/calendar-v2/Nav.js.map +0 -1
  1876. package/esm/schema-component/antd/calendar-v2/Title.js +0 -22
  1877. package/esm/schema-component/antd/calendar-v2/Title.js.map +0 -1
  1878. package/esm/schema-component/antd/calendar-v2/Today.js +0 -28
  1879. package/esm/schema-component/antd/calendar-v2/Today.js.map +0 -1
  1880. package/esm/schema-component/antd/calendar-v2/ViewSelect.js +0 -23
  1881. package/esm/schema-component/antd/calendar-v2/ViewSelect.js.map +0 -1
  1882. package/esm/schema-component/antd/calendar-v2/context.js +0 -4
  1883. package/esm/schema-component/antd/calendar-v2/context.js.map +0 -1
  1884. package/esm/schema-component/antd/calendar-v2/index.d.ts +0 -3
  1885. package/esm/schema-component/antd/calendar-v2/index.js +0 -18
  1886. package/esm/schema-component/antd/calendar-v2/index.js.map +0 -1
  1887. package/esm/schema-component/antd/calendar-v2/utils.js +0 -13
  1888. package/esm/schema-component/antd/calendar-v2/utils.js.map +0 -1
  1889. package/esm/schema-component/antd/card-item/CardItem.js +0 -18
  1890. package/esm/schema-component/antd/card-item/CardItem.js.map +0 -1
  1891. package/esm/schema-component/antd/card-item/index.js +0 -2
  1892. package/esm/schema-component/antd/card-item/index.js.map +0 -1
  1893. package/esm/schema-component/antd/cascader/Cascader.js +0 -85
  1894. package/esm/schema-component/antd/cascader/Cascader.js.map +0 -1
  1895. package/esm/schema-component/antd/cascader/ReadPretty.js +0 -51
  1896. package/esm/schema-component/antd/cascader/ReadPretty.js.map +0 -1
  1897. package/esm/schema-component/antd/cascader/defaultFieldNames.js +0 -6
  1898. package/esm/schema-component/antd/cascader/defaultFieldNames.js.map +0 -1
  1899. package/esm/schema-component/antd/cascader/index.js +0 -2
  1900. package/esm/schema-component/antd/cascader/index.js.map +0 -1
  1901. package/esm/schema-component/antd/chart/Chart.d.ts +0 -2
  1902. package/esm/schema-component/antd/chart/Chart.js +0 -5
  1903. package/esm/schema-component/antd/chart/Chart.js.map +0 -1
  1904. package/esm/schema-component/antd/chart/index.js +0 -2
  1905. package/esm/schema-component/antd/chart/index.js.map +0 -1
  1906. package/esm/schema-component/antd/checkbox/Checkbox.js +0 -46
  1907. package/esm/schema-component/antd/checkbox/Checkbox.js.map +0 -1
  1908. package/esm/schema-component/antd/checkbox/index.js +0 -2
  1909. package/esm/schema-component/antd/checkbox/index.js.map +0 -1
  1910. package/esm/schema-component/antd/color-select/ColorSelect.js +0 -45
  1911. package/esm/schema-component/antd/color-select/ColorSelect.js.map +0 -1
  1912. package/esm/schema-component/antd/color-select/index.js +0 -2
  1913. package/esm/schema-component/antd/color-select/index.js.map +0 -1
  1914. package/esm/schema-component/antd/date-picker/DatePicker.js +0 -8
  1915. package/esm/schema-component/antd/date-picker/DatePicker.js.map +0 -1
  1916. package/esm/schema-component/antd/date-picker/ReadPretty.js +0 -39
  1917. package/esm/schema-component/antd/date-picker/ReadPretty.js.map +0 -1
  1918. package/esm/schema-component/antd/date-picker/index.js +0 -2
  1919. package/esm/schema-component/antd/date-picker/index.js.map +0 -1
  1920. package/esm/schema-component/antd/date-picker/util.js +0 -48
  1921. package/esm/schema-component/antd/date-picker/util.js.map +0 -1
  1922. package/esm/schema-component/antd/filter/DynamicComponent.d.ts +0 -2
  1923. package/esm/schema-component/antd/filter/DynamicComponent.js +0 -52
  1924. package/esm/schema-component/antd/filter/DynamicComponent.js.map +0 -1
  1925. package/esm/schema-component/antd/filter/Filter.Action.Designer.d.ts +0 -3
  1926. package/esm/schema-component/antd/filter/Filter.Action.Designer.js +0 -109
  1927. package/esm/schema-component/antd/filter/Filter.Action.Designer.js.map +0 -1
  1928. package/esm/schema-component/antd/filter/Filter.js +0 -40
  1929. package/esm/schema-component/antd/filter/Filter.js.map +0 -1
  1930. package/esm/schema-component/antd/filter/FilterAction.js +0 -151
  1931. package/esm/schema-component/antd/filter/FilterAction.js.map +0 -1
  1932. package/esm/schema-component/antd/filter/FilterGroup.js +0 -93
  1933. package/esm/schema-component/antd/filter/FilterGroup.js.map +0 -1
  1934. package/esm/schema-component/antd/filter/FilterItem.js +0 -46
  1935. package/esm/schema-component/antd/filter/FilterItem.js.map +0 -1
  1936. package/esm/schema-component/antd/filter/FilterItems.js +0 -24
  1937. package/esm/schema-component/antd/filter/FilterItems.js.map +0 -1
  1938. package/esm/schema-component/antd/filter/SaveDefaultValue.d.ts +0 -2
  1939. package/esm/schema-component/antd/filter/SaveDefaultValue.js +0 -49
  1940. package/esm/schema-component/antd/filter/SaveDefaultValue.js.map +0 -1
  1941. package/esm/schema-component/antd/filter/context.js +0 -5
  1942. package/esm/schema-component/antd/filter/context.js.map +0 -1
  1943. package/esm/schema-component/antd/filter/index.js +0 -3
  1944. package/esm/schema-component/antd/filter/index.js.map +0 -1
  1945. package/esm/schema-component/antd/filter/useFilterActionProps.js +0 -156
  1946. package/esm/schema-component/antd/filter/useFilterActionProps.js.map +0 -1
  1947. package/esm/schema-component/antd/filter/useValues.js +0 -110
  1948. package/esm/schema-component/antd/filter/useValues.js.map +0 -1
  1949. package/esm/schema-component/antd/form/Form.Designer.d.ts +0 -2
  1950. package/esm/schema-component/antd/form/Form.Designer.js +0 -21
  1951. package/esm/schema-component/antd/form/Form.Designer.js.map +0 -1
  1952. package/esm/schema-component/antd/form/Form.js +0 -136
  1953. package/esm/schema-component/antd/form/Form.js.map +0 -1
  1954. package/esm/schema-component/antd/form/index.js +0 -2
  1955. package/esm/schema-component/antd/form/index.js.map +0 -1
  1956. package/esm/schema-component/antd/form-item/FormItem.js +0 -166
  1957. package/esm/schema-component/antd/form-item/FormItem.js.map +0 -1
  1958. package/esm/schema-component/antd/form-item/index.js +0 -2
  1959. package/esm/schema-component/antd/form-item/index.js.map +0 -1
  1960. package/esm/schema-component/antd/form-v2/Form.Designer.d.ts +0 -4
  1961. package/esm/schema-component/antd/form-v2/Form.Designer.js +0 -185
  1962. package/esm/schema-component/antd/form-v2/Form.Designer.js.map +0 -1
  1963. package/esm/schema-component/antd/form-v2/Form.js +0 -63
  1964. package/esm/schema-component/antd/form-v2/Form.js.map +0 -1
  1965. package/esm/schema-component/antd/form-v2/index.js +0 -6
  1966. package/esm/schema-component/antd/form-v2/index.js.map +0 -1
  1967. package/esm/schema-component/antd/grid/Block.js +0 -19
  1968. package/esm/schema-component/antd/grid/Block.js.map +0 -1
  1969. package/esm/schema-component/antd/grid/Grid.d.ts +0 -1
  1970. package/esm/schema-component/antd/grid/Grid.js +0 -160
  1971. package/esm/schema-component/antd/grid/Grid.js.map +0 -1
  1972. package/esm/schema-component/antd/grid/index.js +0 -3
  1973. package/esm/schema-component/antd/grid/index.js.map +0 -1
  1974. package/esm/schema-component/antd/icon-picker/IconPicker.js +0 -72
  1975. package/esm/schema-component/antd/icon-picker/IconPicker.js.map +0 -1
  1976. package/esm/schema-component/antd/icon-picker/index.js +0 -2
  1977. package/esm/schema-component/antd/icon-picker/index.js.map +0 -1
  1978. package/esm/schema-component/antd/index.d.ts +0 -37
  1979. package/esm/schema-component/antd/index.js +0 -39
  1980. package/esm/schema-component/antd/index.js.map +0 -1
  1981. package/esm/schema-component/antd/input/EllipsisWithTooltip.d.ts +0 -2
  1982. package/esm/schema-component/antd/input/EllipsisWithTooltip.js +0 -55
  1983. package/esm/schema-component/antd/input/EllipsisWithTooltip.js.map +0 -1
  1984. package/esm/schema-component/antd/input/Input.js +0 -28
  1985. package/esm/schema-component/antd/input/Input.js.map +0 -1
  1986. package/esm/schema-component/antd/input/ReadPretty.js +0 -62
  1987. package/esm/schema-component/antd/input/ReadPretty.js.map +0 -1
  1988. package/esm/schema-component/antd/input/index.js +0 -3
  1989. package/esm/schema-component/antd/input/index.js.map +0 -1
  1990. package/esm/schema-component/antd/input/shared.js +0 -8
  1991. package/esm/schema-component/antd/input/shared.js.map +0 -1
  1992. package/esm/schema-component/antd/input-number/InputNumber.js +0 -6
  1993. package/esm/schema-component/antd/input-number/InputNumber.js.map +0 -1
  1994. package/esm/schema-component/antd/input-number/ReadPretty.js +0 -24
  1995. package/esm/schema-component/antd/input-number/ReadPretty.js.map +0 -1
  1996. package/esm/schema-component/antd/input-number/index.js +0 -2
  1997. package/esm/schema-component/antd/input-number/index.js.map +0 -1
  1998. package/esm/schema-component/antd/kanban/Kanban.Card.Designer.d.ts +0 -2
  1999. package/esm/schema-component/antd/kanban/Kanban.Card.Designer.js +0 -91
  2000. package/esm/schema-component/antd/kanban/Kanban.Card.Designer.js.map +0 -1
  2001. package/esm/schema-component/antd/kanban/Kanban.Card.d.ts +0 -1
  2002. package/esm/schema-component/antd/kanban/Kanban.Card.js +0 -61
  2003. package/esm/schema-component/antd/kanban/Kanban.Card.js.map +0 -1
  2004. package/esm/schema-component/antd/kanban/Kanban.CardViewer.d.ts +0 -1
  2005. package/esm/schema-component/antd/kanban/Kanban.CardViewer.js +0 -5
  2006. package/esm/schema-component/antd/kanban/Kanban.CardViewer.js.map +0 -1
  2007. package/esm/schema-component/antd/kanban/Kanban.Designer.d.ts +0 -2
  2008. package/esm/schema-component/antd/kanban/Kanban.Designer.js +0 -62
  2009. package/esm/schema-component/antd/kanban/Kanban.Designer.js.map +0 -1
  2010. package/esm/schema-component/antd/kanban/Kanban.d.ts +0 -2
  2011. package/esm/schema-component/antd/kanban/Kanban.js +0 -157
  2012. package/esm/schema-component/antd/kanban/Kanban.js.map +0 -1
  2013. package/esm/schema-component/antd/kanban/context.d.ts +0 -3
  2014. package/esm/schema-component/antd/kanban/context.js +0 -4
  2015. package/esm/schema-component/antd/kanban/context.js.map +0 -1
  2016. package/esm/schema-component/antd/kanban/hoooks/index.d.ts +0 -1
  2017. package/esm/schema-component/antd/kanban/hoooks/index.js +0 -2
  2018. package/esm/schema-component/antd/kanban/hoooks/index.js.map +0 -1
  2019. package/esm/schema-component/antd/kanban/hoooks/useCardItemInitializerFields.d.ts +0 -2
  2020. package/esm/schema-component/antd/kanban/hoooks/useCardItemInitializerFields.js +0 -28
  2021. package/esm/schema-component/antd/kanban/hoooks/useCardItemInitializerFields.js.map +0 -1
  2022. package/esm/schema-component/antd/kanban/index.d.ts +0 -1
  2023. package/esm/schema-component/antd/kanban/index.js +0 -2
  2024. package/esm/schema-component/antd/kanban/index.js.map +0 -1
  2025. package/esm/schema-component/antd/kanban/utils.d.ts +0 -8
  2026. package/esm/schema-component/antd/kanban/utils.js +0 -33
  2027. package/esm/schema-component/antd/kanban/utils.js.map +0 -1
  2028. package/esm/schema-component/antd/kanban-v2/Kanban.Card.Designer.d.ts +0 -2
  2029. package/esm/schema-component/antd/kanban-v2/Kanban.Card.Designer.js +0 -92
  2030. package/esm/schema-component/antd/kanban-v2/Kanban.Card.Designer.js.map +0 -1
  2031. package/esm/schema-component/antd/kanban-v2/Kanban.Card.js +0 -61
  2032. package/esm/schema-component/antd/kanban-v2/Kanban.Card.js.map +0 -1
  2033. package/esm/schema-component/antd/kanban-v2/Kanban.CardViewer.js +0 -5
  2034. package/esm/schema-component/antd/kanban-v2/Kanban.CardViewer.js.map +0 -1
  2035. package/esm/schema-component/antd/kanban-v2/Kanban.Designer.d.ts +0 -2
  2036. package/esm/schema-component/antd/kanban-v2/Kanban.Designer.js +0 -62
  2037. package/esm/schema-component/antd/kanban-v2/Kanban.Designer.js.map +0 -1
  2038. package/esm/schema-component/antd/kanban-v2/Kanban.d.ts +0 -9
  2039. package/esm/schema-component/antd/kanban-v2/Kanban.js +0 -196
  2040. package/esm/schema-component/antd/kanban-v2/Kanban.js.map +0 -1
  2041. package/esm/schema-component/antd/kanban-v2/context.js +0 -4
  2042. package/esm/schema-component/antd/kanban-v2/context.js.map +0 -1
  2043. package/esm/schema-component/antd/kanban-v2/index.d.ts +0 -2
  2044. package/esm/schema-component/antd/kanban-v2/index.js +0 -14
  2045. package/esm/schema-component/antd/kanban-v2/index.js.map +0 -1
  2046. package/esm/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +0 -2
  2047. package/esm/schema-component/antd/markdown/Markdown.Void.Designer.js +0 -14
  2048. package/esm/schema-component/antd/markdown/Markdown.Void.Designer.js.map +0 -1
  2049. package/esm/schema-component/antd/markdown/Markdown.Void.js +0 -115
  2050. package/esm/schema-component/antd/markdown/Markdown.Void.js.map +0 -1
  2051. package/esm/schema-component/antd/markdown/Markdown.js +0 -31
  2052. package/esm/schema-component/antd/markdown/Markdown.js.map +0 -1
  2053. package/esm/schema-component/antd/markdown/index.js +0 -2
  2054. package/esm/schema-component/antd/markdown/index.js.map +0 -1
  2055. package/esm/schema-component/antd/markdown/util.js +0 -16
  2056. package/esm/schema-component/antd/markdown/util.js.map +0 -1
  2057. package/esm/schema-component/antd/menu/Menu.Designer.d.ts +0 -2
  2058. package/esm/schema-component/antd/menu/Menu.Designer.js +0 -310
  2059. package/esm/schema-component/antd/menu/Menu.Designer.js.map +0 -1
  2060. package/esm/schema-component/antd/menu/Menu.js +0 -228
  2061. package/esm/schema-component/antd/menu/Menu.js.map +0 -1
  2062. package/esm/schema-component/antd/menu/MenuItemInitializers/index.d.ts +0 -5
  2063. package/esm/schema-component/antd/menu/MenuItemInitializers/index.js +0 -247
  2064. package/esm/schema-component/antd/menu/MenuItemInitializers/index.js.map +0 -1
  2065. package/esm/schema-component/antd/menu/index.js +0 -4
  2066. package/esm/schema-component/antd/menu/index.js.map +0 -1
  2067. package/esm/schema-component/antd/menu/util.js +0 -73
  2068. package/esm/schema-component/antd/menu/util.js.map +0 -1
  2069. package/esm/schema-component/antd/page/Page.d.ts +0 -2
  2070. package/esm/schema-component/antd/page/Page.js +0 -39
  2071. package/esm/schema-component/antd/page/Page.js.map +0 -1
  2072. package/esm/schema-component/antd/page/index.js +0 -2
  2073. package/esm/schema-component/antd/page/index.js.map +0 -1
  2074. package/esm/schema-component/antd/pagination/index.js +0 -34
  2075. package/esm/schema-component/antd/pagination/index.js.map +0 -1
  2076. package/esm/schema-component/antd/password/Password.js +0 -60
  2077. package/esm/schema-component/antd/password/Password.js.map +0 -1
  2078. package/esm/schema-component/antd/password/PasswordStrength.js +0 -165
  2079. package/esm/schema-component/antd/password/PasswordStrength.js.map +0 -1
  2080. package/esm/schema-component/antd/password/index.js +0 -2
  2081. package/esm/schema-component/antd/password/index.js.map +0 -1
  2082. package/esm/schema-component/antd/radio/Radio.js +0 -35
  2083. package/esm/schema-component/antd/radio/Radio.js.map +0 -1
  2084. package/esm/schema-component/antd/radio/index.js +0 -2
  2085. package/esm/schema-component/antd/radio/index.js.map +0 -1
  2086. package/esm/schema-component/antd/record-picker/InputRecordPicker.js +0 -118
  2087. package/esm/schema-component/antd/record-picker/InputRecordPicker.js.map +0 -1
  2088. package/esm/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +0 -56
  2089. package/esm/schema-component/antd/record-picker/ReadPrettyRecordPicker.js.map +0 -1
  2090. package/esm/schema-component/antd/record-picker/RecordPicker.js +0 -7
  2091. package/esm/schema-component/antd/record-picker/RecordPicker.js.map +0 -1
  2092. package/esm/schema-component/antd/record-picker/index.js +0 -6
  2093. package/esm/schema-component/antd/record-picker/index.js.map +0 -1
  2094. package/esm/schema-component/antd/record-picker/useFieldNames.js +0 -19
  2095. package/esm/schema-component/antd/record-picker/useFieldNames.js.map +0 -1
  2096. package/esm/schema-component/antd/rich-text/RichText.js +0 -43
  2097. package/esm/schema-component/antd/rich-text/RichText.js.map +0 -1
  2098. package/esm/schema-component/antd/rich-text/index.js +0 -2
  2099. package/esm/schema-component/antd/rich-text/index.js.map +0 -1
  2100. package/esm/schema-component/antd/select/ReadPretty.js +0 -32
  2101. package/esm/schema-component/antd/select/ReadPretty.js.map +0 -1
  2102. package/esm/schema-component/antd/select/Select.js +0 -75
  2103. package/esm/schema-component/antd/select/Select.js.map +0 -1
  2104. package/esm/schema-component/antd/select/index.js +0 -2
  2105. package/esm/schema-component/antd/select/index.js.map +0 -1
  2106. package/esm/schema-component/antd/select/shared.js +0 -72
  2107. package/esm/schema-component/antd/select/shared.js.map +0 -1
  2108. package/esm/schema-component/antd/space/index.js +0 -26
  2109. package/esm/schema-component/antd/space/index.js.map +0 -1
  2110. package/esm/schema-component/antd/table/Table.Array.Designer.d.ts +0 -2
  2111. package/esm/schema-component/antd/table/Table.Array.Designer.js +0 -8
  2112. package/esm/schema-component/antd/table/Table.Array.Designer.js.map +0 -1
  2113. package/esm/schema-component/antd/table/Table.Array.js +0 -220
  2114. package/esm/schema-component/antd/table/Table.Array.js.map +0 -1
  2115. package/esm/schema-component/antd/table/Table.Column.ActionBar.js +0 -26
  2116. package/esm/schema-component/antd/table/Table.Column.ActionBar.js.map +0 -1
  2117. package/esm/schema-component/antd/table/Table.Column.Decorator.d.ts +0 -13
  2118. package/esm/schema-component/antd/table/Table.Column.Decorator.js +0 -52
  2119. package/esm/schema-component/antd/table/Table.Column.Decorator.js.map +0 -1
  2120. package/esm/schema-component/antd/table/Table.Column.Designer.d.ts +0 -2
  2121. package/esm/schema-component/antd/table/Table.Column.Designer.js +0 -180
  2122. package/esm/schema-component/antd/table/Table.Column.Designer.js.map +0 -1
  2123. package/esm/schema-component/antd/table/Table.Column.d.ts +0 -2
  2124. package/esm/schema-component/antd/table/Table.Column.js +0 -7
  2125. package/esm/schema-component/antd/table/Table.Column.js.map +0 -1
  2126. package/esm/schema-component/antd/table/Table.Designer.d.ts +0 -2
  2127. package/esm/schema-component/antd/table/Table.Designer.js +0 -21
  2128. package/esm/schema-component/antd/table/Table.Designer.js.map +0 -1
  2129. package/esm/schema-component/antd/table/Table.RowActionDesigner.d.ts +0 -2
  2130. package/esm/schema-component/antd/table/Table.RowActionDesigner.js +0 -23
  2131. package/esm/schema-component/antd/table/Table.RowActionDesigner.js.map +0 -1
  2132. package/esm/schema-component/antd/table/Table.RowSelection.js +0 -55
  2133. package/esm/schema-component/antd/table/Table.RowSelection.js.map +0 -1
  2134. package/esm/schema-component/antd/table/Table.Void.Designer.d.ts +0 -2
  2135. package/esm/schema-component/antd/table/Table.Void.Designer.js +0 -194
  2136. package/esm/schema-component/antd/table/Table.Void.Designer.js.map +0 -1
  2137. package/esm/schema-component/antd/table/Table.Void.js +0 -100
  2138. package/esm/schema-component/antd/table/Table.Void.js.map +0 -1
  2139. package/esm/schema-component/antd/table/index.js +0 -24
  2140. package/esm/schema-component/antd/table/index.js.map +0 -1
  2141. package/esm/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +0 -2
  2142. package/esm/schema-component/antd/table-v2/Table.ActionColumnDesigner.js +0 -23
  2143. package/esm/schema-component/antd/table-v2/Table.ActionColumnDesigner.js.map +0 -1
  2144. package/esm/schema-component/antd/table-v2/Table.Column.ActionBar.js +0 -26
  2145. package/esm/schema-component/antd/table-v2/Table.Column.ActionBar.js.map +0 -1
  2146. package/esm/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +0 -13
  2147. package/esm/schema-component/antd/table-v2/Table.Column.Decorator.js +0 -52
  2148. package/esm/schema-component/antd/table-v2/Table.Column.Decorator.js.map +0 -1
  2149. package/esm/schema-component/antd/table-v2/Table.Column.Designer.d.ts +0 -2
  2150. package/esm/schema-component/antd/table-v2/Table.Column.Designer.js +0 -90
  2151. package/esm/schema-component/antd/table-v2/Table.Column.Designer.js.map +0 -1
  2152. package/esm/schema-component/antd/table-v2/Table.Column.d.ts +0 -2
  2153. package/esm/schema-component/antd/table-v2/Table.Column.js +0 -7
  2154. package/esm/schema-component/antd/table-v2/Table.Column.js.map +0 -1
  2155. package/esm/schema-component/antd/table-v2/Table.Designer.d.ts +0 -2
  2156. package/esm/schema-component/antd/table-v2/Table.Designer.js +0 -21
  2157. package/esm/schema-component/antd/table-v2/Table.Designer.js.map +0 -1
  2158. package/esm/schema-component/antd/table-v2/Table.d.ts +0 -13
  2159. package/esm/schema-component/antd/table-v2/Table.js +0 -195
  2160. package/esm/schema-component/antd/table-v2/Table.js.map +0 -1
  2161. package/esm/schema-component/antd/table-v2/TableBlockDesigner.d.ts +0 -2
  2162. package/esm/schema-component/antd/table-v2/TableBlockDesigner.js +0 -196
  2163. package/esm/schema-component/antd/table-v2/TableBlockDesigner.js.map +0 -1
  2164. package/esm/schema-component/antd/table-v2/TableField.js +0 -39
  2165. package/esm/schema-component/antd/table-v2/TableField.js.map +0 -1
  2166. package/esm/schema-component/antd/table-v2/TableSelector.js +0 -3
  2167. package/esm/schema-component/antd/table-v2/TableSelector.js.map +0 -1
  2168. package/esm/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +0 -2
  2169. package/esm/schema-component/antd/table-v2/TableSelectorDesigner.js +0 -184
  2170. package/esm/schema-component/antd/table-v2/TableSelectorDesigner.js.map +0 -1
  2171. package/esm/schema-component/antd/table-v2/index.js +0 -18
  2172. package/esm/schema-component/antd/table-v2/index.js.map +0 -1
  2173. package/esm/schema-component/antd/tabs/Tabs.Designer.d.ts +0 -2
  2174. package/esm/schema-component/antd/tabs/Tabs.Designer.js +0 -38
  2175. package/esm/schema-component/antd/tabs/Tabs.Designer.js.map +0 -1
  2176. package/esm/schema-component/antd/tabs/Tabs.js +0 -42
  2177. package/esm/schema-component/antd/tabs/Tabs.js.map +0 -1
  2178. package/esm/schema-component/antd/tabs/index.js +0 -2
  2179. package/esm/schema-component/antd/tabs/index.js.map +0 -1
  2180. package/esm/schema-component/antd/time-picker/ReadPretty.js +0 -25
  2181. package/esm/schema-component/antd/time-picker/ReadPretty.js.map +0 -1
  2182. package/esm/schema-component/antd/time-picker/TimePicker.js +0 -30
  2183. package/esm/schema-component/antd/time-picker/TimePicker.js.map +0 -1
  2184. package/esm/schema-component/antd/time-picker/index.js +0 -2
  2185. package/esm/schema-component/antd/time-picker/index.js.map +0 -1
  2186. package/esm/schema-component/antd/tree-select/ReadPretty.js +0 -67
  2187. package/esm/schema-component/antd/tree-select/ReadPretty.js.map +0 -1
  2188. package/esm/schema-component/antd/tree-select/TreeSelect.js +0 -23
  2189. package/esm/schema-component/antd/tree-select/TreeSelect.js.map +0 -1
  2190. package/esm/schema-component/antd/tree-select/index.js +0 -2
  2191. package/esm/schema-component/antd/tree-select/index.js.map +0 -1
  2192. package/esm/schema-component/antd/upload/ReadPretty.js +0 -86
  2193. package/esm/schema-component/antd/upload/ReadPretty.js.map +0 -1
  2194. package/esm/schema-component/antd/upload/Upload.js +0 -136
  2195. package/esm/schema-component/antd/upload/Upload.js.map +0 -1
  2196. package/esm/schema-component/antd/upload/index.js +0 -2
  2197. package/esm/schema-component/antd/upload/index.js.map +0 -1
  2198. package/esm/schema-component/antd/upload/placeholder.js +0 -63
  2199. package/esm/schema-component/antd/upload/placeholder.js.map +0 -1
  2200. package/esm/schema-component/antd/upload/shared.js +0 -239
  2201. package/esm/schema-component/antd/upload/shared.js.map +0 -1
  2202. package/esm/schema-component/common/dnd-context/index.js +0 -67
  2203. package/esm/schema-component/common/dnd-context/index.js.map +0 -1
  2204. package/esm/schema-component/common/index.js +0 -3
  2205. package/esm/schema-component/common/index.js.map +0 -1
  2206. package/esm/schema-component/common/sortable-item/SortableItem.js +0 -82
  2207. package/esm/schema-component/common/sortable-item/SortableItem.js.map +0 -1
  2208. package/esm/schema-component/common/sortable-item/index.js +0 -2
  2209. package/esm/schema-component/common/sortable-item/index.js.map +0 -1
  2210. package/esm/schema-component/context.js +0 -3
  2211. package/esm/schema-component/context.js.map +0 -1
  2212. package/esm/schema-component/core/DesignableSwitch.d.ts +0 -2
  2213. package/esm/schema-component/core/DesignableSwitch.js +0 -17
  2214. package/esm/schema-component/core/DesignableSwitch.js.map +0 -1
  2215. package/esm/schema-component/core/FormProvider.js +0 -37
  2216. package/esm/schema-component/core/FormProvider.js.map +0 -1
  2217. package/esm/schema-component/core/RemoteSchemaComponent.js +0 -46
  2218. package/esm/schema-component/core/RemoteSchemaComponent.js.map +0 -1
  2219. package/esm/schema-component/core/SchemaComponent.d.ts +0 -5
  2220. package/esm/schema-component/core/SchemaComponent.js +0 -61
  2221. package/esm/schema-component/core/SchemaComponent.js.map +0 -1
  2222. package/esm/schema-component/core/SchemaComponentOptions.js +0 -23
  2223. package/esm/schema-component/core/SchemaComponentOptions.js.map +0 -1
  2224. package/esm/schema-component/core/SchemaComponentProvider.js +0 -81
  2225. package/esm/schema-component/core/SchemaComponentProvider.js.map +0 -1
  2226. package/esm/schema-component/core/index.js +0 -7
  2227. package/esm/schema-component/core/index.js.map +0 -1
  2228. package/esm/schema-component/hooks/__tests__/designable.test.d.ts +0 -1
  2229. package/esm/schema-component/hooks/__tests__/designable.test.js +0 -467
  2230. package/esm/schema-component/hooks/__tests__/designable.test.js.map +0 -1
  2231. package/esm/schema-component/hooks/__tests__/splitWrapSchema.test.d.ts +0 -1
  2232. package/esm/schema-component/hooks/__tests__/splitWrapSchema.test.js +0 -104
  2233. package/esm/schema-component/hooks/__tests__/splitWrapSchema.test.js.map +0 -1
  2234. package/esm/schema-component/hooks/index.js +0 -8
  2235. package/esm/schema-component/hooks/index.js.map +0 -1
  2236. package/esm/schema-component/hooks/useAttach.js +0 -16
  2237. package/esm/schema-component/hooks/useAttach.js.map +0 -1
  2238. package/esm/schema-component/hooks/useCompile.js +0 -24
  2239. package/esm/schema-component/hooks/useCompile.js.map +0 -1
  2240. package/esm/schema-component/hooks/useComponent.js +0 -14
  2241. package/esm/schema-component/hooks/useComponent.js.map +0 -1
  2242. package/esm/schema-component/hooks/useDesignable.d.ts +0 -88
  2243. package/esm/schema-component/hooks/useDesignable.js +0 -628
  2244. package/esm/schema-component/hooks/useDesignable.js.map +0 -1
  2245. package/esm/schema-component/hooks/useDesigner.js +0 -10
  2246. package/esm/schema-component/hooks/useDesigner.js.map +0 -1
  2247. package/esm/schema-component/hooks/useFieldProps.js +0 -23
  2248. package/esm/schema-component/hooks/useFieldProps.js.map +0 -1
  2249. package/esm/schema-component/hooks/useProps.js +0 -18
  2250. package/esm/schema-component/hooks/useProps.js.map +0 -1
  2251. package/esm/schema-component/hooks/useSchemaComponentContext.js +0 -6
  2252. package/esm/schema-component/hooks/useSchemaComponentContext.js.map +0 -1
  2253. package/esm/schema-component/index.js +0 -8
  2254. package/esm/schema-component/index.js.map +0 -1
  2255. package/esm/schema-component/types.js +0 -2
  2256. package/esm/schema-component/types.js.map +0 -1
  2257. package/esm/schema-initializer/SchemaInitializer.js +0 -145
  2258. package/esm/schema-initializer/SchemaInitializer.js.map +0 -1
  2259. package/esm/schema-initializer/SchemaInitializerProvider.js +0 -50
  2260. package/esm/schema-initializer/SchemaInitializerProvider.js.map +0 -1
  2261. package/esm/schema-initializer/buttons/BlockInitializers.js +0 -60
  2262. package/esm/schema-initializer/buttons/BlockInitializers.js.map +0 -1
  2263. package/esm/schema-initializer/buttons/CalendarActionInitializers.js +0 -80
  2264. package/esm/schema-initializer/buttons/CalendarActionInitializers.js.map +0 -1
  2265. package/esm/schema-initializer/buttons/CreateFormBlockInitializers.d.ts +0 -2
  2266. package/esm/schema-initializer/buttons/CreateFormBlockInitializers.js +0 -32
  2267. package/esm/schema-initializer/buttons/CreateFormBlockInitializers.js.map +0 -1
  2268. package/esm/schema-initializer/buttons/DetailsActionInitializers.js +0 -38
  2269. package/esm/schema-initializer/buttons/DetailsActionInitializers.js.map +0 -1
  2270. package/esm/schema-initializer/buttons/FormActionInitializers.d.ts +0 -129
  2271. package/esm/schema-initializer/buttons/FormActionInitializers.js +0 -149
  2272. package/esm/schema-initializer/buttons/FormActionInitializers.js.map +0 -1
  2273. package/esm/schema-initializer/buttons/FormItemInitializers.d.ts +0 -2
  2274. package/esm/schema-initializer/buttons/FormItemInitializers.js +0 -45
  2275. package/esm/schema-initializer/buttons/FormItemInitializers.js.map +0 -1
  2276. package/esm/schema-initializer/buttons/KanbanActionInitializers.js +0 -36
  2277. package/esm/schema-initializer/buttons/KanbanActionInitializers.js.map +0 -1
  2278. package/esm/schema-initializer/buttons/KanbanCardFormItemInitializers.js +0 -1
  2279. package/esm/schema-initializer/buttons/KanbanCardFormItemInitializers.js.map +0 -1
  2280. package/esm/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +0 -32
  2281. package/esm/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +0 -38
  2282. package/esm/schema-initializer/buttons/ReadPrettyFormActionInitializers.js.map +0 -1
  2283. package/esm/schema-initializer/buttons/ReadPrettyFormItemInitializers.d.ts +0 -2
  2284. package/esm/schema-initializer/buttons/ReadPrettyFormItemInitializers.js +0 -44
  2285. package/esm/schema-initializer/buttons/ReadPrettyFormItemInitializers.js.map +0 -1
  2286. package/esm/schema-initializer/buttons/RecordBlockInitializers.d.ts +0 -2
  2287. package/esm/schema-initializer/buttons/RecordBlockInitializers.js +0 -60
  2288. package/esm/schema-initializer/buttons/RecordBlockInitializers.js.map +0 -1
  2289. package/esm/schema-initializer/buttons/RecordFormBlockInitializers.d.ts +0 -2
  2290. package/esm/schema-initializer/buttons/RecordFormBlockInitializers.js +0 -32
  2291. package/esm/schema-initializer/buttons/RecordFormBlockInitializers.js.map +0 -1
  2292. package/esm/schema-initializer/buttons/SubTableActionInitializers.js +0 -40
  2293. package/esm/schema-initializer/buttons/SubTableActionInitializers.js.map +0 -1
  2294. package/esm/schema-initializer/buttons/TabPaneInitializers.d.ts +0 -2
  2295. package/esm/schema-initializer/buttons/TabPaneInitializers.js +0 -155
  2296. package/esm/schema-initializer/buttons/TabPaneInitializers.js.map +0 -1
  2297. package/esm/schema-initializer/buttons/TableActionColumnInitializers.d.ts +0 -2
  2298. package/esm/schema-initializer/buttons/TableActionColumnInitializers.js +0 -70
  2299. package/esm/schema-initializer/buttons/TableActionColumnInitializers.js.map +0 -1
  2300. package/esm/schema-initializer/buttons/TableActionInitializers.js +0 -49
  2301. package/esm/schema-initializer/buttons/TableActionInitializers.js.map +0 -1
  2302. package/esm/schema-initializer/buttons/TableColumnInitializers.d.ts +0 -2
  2303. package/esm/schema-initializer/buttons/TableColumnInitializers.js +0 -50
  2304. package/esm/schema-initializer/buttons/TableColumnInitializers.js.map +0 -1
  2305. package/esm/schema-initializer/buttons/TableSelectorInitializers.d.ts +0 -2
  2306. package/esm/schema-initializer/buttons/TableSelectorInitializers.js +0 -43
  2307. package/esm/schema-initializer/buttons/TableSelectorInitializers.js.map +0 -1
  2308. package/esm/schema-initializer/buttons/index.d.ts +0 -17
  2309. package/esm/schema-initializer/buttons/index.js +0 -18
  2310. package/esm/schema-initializer/buttons/index.js.map +0 -1
  2311. package/esm/schema-initializer/index.js +0 -4
  2312. package/esm/schema-initializer/index.js.map +0 -1
  2313. package/esm/schema-initializer/items/index.d.ts +0 -29
  2314. package/esm/schema-initializer/items/index.js +0 -772
  2315. package/esm/schema-initializer/items/index.js.map +0 -1
  2316. package/esm/schema-initializer/types.js +0 -2
  2317. package/esm/schema-initializer/types.js.map +0 -1
  2318. package/esm/schema-initializer/utils.d.ts +0 -528
  2319. package/esm/schema-initializer/utils.js +0 -717
  2320. package/esm/schema-initializer/utils.js.map +0 -1
  2321. package/esm/schema-settings/GeneralSchemaDesigner.d.ts +0 -2
  2322. package/esm/schema-settings/GeneralSchemaDesigner.js +0 -45
  2323. package/esm/schema-settings/GeneralSchemaDesigner.js.map +0 -1
  2324. package/esm/schema-settings/SchemaSettings.js +0 -436
  2325. package/esm/schema-settings/SchemaSettings.js.map +0 -1
  2326. package/esm/schema-settings/index.js +0 -3
  2327. package/esm/schema-settings/index.js.map +0 -1
  2328. package/esm/schema-templates/BlockTemplate.js +0 -30
  2329. package/esm/schema-templates/BlockTemplate.js.map +0 -1
  2330. package/esm/schema-templates/BlockTemplateDetails.d.ts +0 -2
  2331. package/esm/schema-templates/BlockTemplateDetails.js +0 -86
  2332. package/esm/schema-templates/BlockTemplateDetails.js.map +0 -1
  2333. package/esm/schema-templates/BlockTemplatePage.d.ts +0 -2
  2334. package/esm/schema-templates/BlockTemplatePage.js +0 -23
  2335. package/esm/schema-templates/BlockTemplatePage.js.map +0 -1
  2336. package/esm/schema-templates/SchemaTemplateManagerProvider.js +0 -232
  2337. package/esm/schema-templates/SchemaTemplateManagerProvider.js.map +0 -1
  2338. package/esm/schema-templates/SchemaTemplateShortcut.d.ts +0 -2
  2339. package/esm/schema-templates/SchemaTemplateShortcut.js +0 -13
  2340. package/esm/schema-templates/SchemaTemplateShortcut.js.map +0 -1
  2341. package/esm/schema-templates/collections/uiSchemaTemplates.js +0 -19
  2342. package/esm/schema-templates/collections/uiSchemaTemplates.js.map +0 -1
  2343. package/esm/schema-templates/index.js +0 -5
  2344. package/esm/schema-templates/index.js.map +0 -1
  2345. package/esm/schema-templates/schemas/uiSchemaTemplates.js +0 -211
  2346. package/esm/schema-templates/schemas/uiSchemaTemplates.js.map +0 -1
  2347. package/esm/settings-form/SettingsForm.js +0 -212
  2348. package/esm/settings-form/SettingsForm.js.map +0 -1
  2349. package/esm/settings-form/index.js +0 -2
  2350. package/esm/settings-form/index.js.map +0 -1
  2351. package/esm/slate/RichText.d.ts +0 -2
  2352. package/esm/slate/RichText.js +0 -190
  2353. package/esm/slate/RichText.js.map +0 -1
  2354. package/esm/slate/Slate.js +0 -35
  2355. package/esm/slate/Slate.js.map +0 -1
  2356. package/esm/slate/components.js +0 -64
  2357. package/esm/slate/components.js.map +0 -1
  2358. package/esm/slate/index.js +0 -2
  2359. package/esm/slate/index.js.map +0 -1
  2360. package/esm/system-settings/SystemSettingsProvider.js +0 -29
  2361. package/esm/system-settings/SystemSettingsProvider.js.map +0 -1
  2362. package/esm/system-settings/SystemSettingsShortcut.d.ts +0 -2
  2363. package/esm/system-settings/SystemSettingsShortcut.js +0 -203
  2364. package/esm/system-settings/SystemSettingsShortcut.js.map +0 -1
  2365. package/esm/system-settings/index.js +0 -3
  2366. package/esm/system-settings/index.js.map +0 -1
  2367. package/esm/user/ChangePassword.d.ts +0 -2
  2368. package/esm/user/ChangePassword.js +0 -203
  2369. package/esm/user/ChangePassword.js.map +0 -1
  2370. package/esm/user/CurrentUser.js +0 -97
  2371. package/esm/user/CurrentUser.js.map +0 -1
  2372. package/esm/user/CurrentUserProvider.js +0 -37
  2373. package/esm/user/CurrentUserProvider.js.map +0 -1
  2374. package/esm/user/EditProfile.d.ts +0 -2
  2375. package/esm/user/EditProfile.js +0 -178
  2376. package/esm/user/EditProfile.js.map +0 -1
  2377. package/esm/user/LanguageSettings.d.ts +0 -2
  2378. package/esm/user/LanguageSettings.js +0 -100
  2379. package/esm/user/LanguageSettings.js.map +0 -1
  2380. package/esm/user/SigninPage.d.ts +0 -2
  2381. package/esm/user/SigninPage.js +0 -136
  2382. package/esm/user/SigninPage.js.map +0 -1
  2383. package/esm/user/SignupPage.d.ts +0 -2
  2384. package/esm/user/SignupPage.js +0 -160
  2385. package/esm/user/SignupPage.js.map +0 -1
  2386. package/esm/user/SwitchRole.d.ts +0 -2
  2387. package/esm/user/SwitchRole.js +0 -119
  2388. package/esm/user/SwitchRole.js.map +0 -1
  2389. package/esm/user/index.js +0 -5
  2390. package/esm/user/index.js.map +0 -1
  2391. package/esm/workflow/ExecutionResourceProvider.d.ts +0 -5
  2392. package/esm/workflow/ExecutionResourceProvider.js +0 -32
  2393. package/esm/workflow/ExecutionResourceProvider.js.map +0 -1
  2394. package/esm/workflow/WorkflowCanvas.js +0 -193
  2395. package/esm/workflow/WorkflowCanvas.js.map +0 -1
  2396. package/esm/workflow/WorkflowLink.d.ts +0 -2
  2397. package/esm/workflow/WorkflowLink.js +0 -20
  2398. package/esm/workflow/WorkflowLink.js.map +0 -1
  2399. package/esm/workflow/WorkflowPage.d.ts +0 -2
  2400. package/esm/workflow/WorkflowPage.js +0 -105
  2401. package/esm/workflow/WorkflowPage.js.map +0 -1
  2402. package/esm/workflow/WorkflowRouteProvider.d.ts +0 -2
  2403. package/esm/workflow/WorkflowRouteProvider.js +0 -35
  2404. package/esm/workflow/WorkflowRouteProvider.js.map +0 -1
  2405. package/esm/workflow/WorkflowShortcut.d.ts +0 -2
  2406. package/esm/workflow/WorkflowShortcut.js +0 -114
  2407. package/esm/workflow/WorkflowShortcut.js.map +0 -1
  2408. package/esm/workflow/WorkflowTable.d.ts +0 -2
  2409. package/esm/workflow/WorkflowTable.js +0 -12
  2410. package/esm/workflow/WorkflowTable.js.map +0 -1
  2411. package/esm/workflow/calculators.d.ts +0 -101
  2412. package/esm/workflow/calculators.js +0 -357
  2413. package/esm/workflow/calculators.js.map +0 -1
  2414. package/esm/workflow/index.d.ts +0 -6
  2415. package/esm/workflow/index.js +0 -7
  2416. package/esm/workflow/index.js.map +0 -1
  2417. package/esm/workflow/nodes/calculation.d.ts +0 -25
  2418. package/esm/workflow/nodes/calculation.js +0 -39
  2419. package/esm/workflow/nodes/calculation.js.map +0 -1
  2420. package/esm/workflow/nodes/condition.d.ts +0 -46
  2421. package/esm/workflow/nodes/condition.js +0 -132
  2422. package/esm/workflow/nodes/condition.js.map +0 -1
  2423. package/esm/workflow/nodes/create.d.ts +0 -55
  2424. package/esm/workflow/nodes/create.js +0 -66
  2425. package/esm/workflow/nodes/create.js.map +0 -1
  2426. package/esm/workflow/nodes/destroy.d.ts +0 -52
  2427. package/esm/workflow/nodes/destroy.js +0 -28
  2428. package/esm/workflow/nodes/destroy.js.map +0 -1
  2429. package/esm/workflow/nodes/index.d.ts +0 -33
  2430. package/esm/workflow/nodes/index.js +0 -216
  2431. package/esm/workflow/nodes/index.js.map +0 -1
  2432. package/esm/workflow/nodes/parallel.d.ts +0 -24
  2433. package/esm/workflow/nodes/parallel.js +0 -80
  2434. package/esm/workflow/nodes/parallel.js.map +0 -1
  2435. package/esm/workflow/nodes/query.d.ts +0 -68
  2436. package/esm/workflow/nodes/query.js +0 -66
  2437. package/esm/workflow/nodes/query.js.map +0 -1
  2438. package/esm/workflow/nodes/update.d.ts +0 -70
  2439. package/esm/workflow/nodes/update.js +0 -30
  2440. package/esm/workflow/nodes/update.js.map +0 -1
  2441. package/esm/workflow/schemas/collection.d.ts +0 -43
  2442. package/esm/workflow/schemas/collection.js +0 -60
  2443. package/esm/workflow/schemas/collection.js.map +0 -1
  2444. package/esm/workflow/schemas/executions.d.ts +0 -215
  2445. package/esm/workflow/schemas/executions.js +0 -126
  2446. package/esm/workflow/schemas/executions.js.map +0 -1
  2447. package/esm/workflow/schemas/workflows.js +0 -301
  2448. package/esm/workflow/schemas/workflows.js.map +0 -1
  2449. package/esm/workflow/style.d.ts +0 -10
  2450. package/esm/workflow/style.js +0 -17
  2451. package/esm/workflow/style.js.map +0 -1
  2452. package/esm/workflow/triggers/index.js +0 -133
  2453. package/esm/workflow/triggers/index.js.map +0 -1
  2454. package/esm/workflow/triggers/model.d.ts +0 -57
  2455. package/esm/workflow/triggers/model.js +0 -58
  2456. package/esm/workflow/triggers/model.js.map +0 -1
  2457. package/lib/acl/ACLProvider.js.map +0 -1
  2458. package/lib/acl/ACLShortcut.js.map +0 -1
  2459. package/lib/acl/Configuration/MenuConfigure.js.map +0 -1
  2460. package/lib/acl/Configuration/RoleConfigure.js.map +0 -1
  2461. package/lib/acl/Configuration/RoleTable.js.map +0 -1
  2462. package/lib/acl/Configuration/RolesResourcesActions.js.map +0 -1
  2463. package/lib/acl/Configuration/ScopeSelect.js.map +0 -1
  2464. package/lib/acl/Configuration/StrategyActions.js.map +0 -1
  2465. package/lib/acl/Configuration/index.js.map +0 -1
  2466. package/lib/acl/Configuration/schemas/roleCollections.js.map +0 -1
  2467. package/lib/acl/Configuration/schemas/roles.js.map +0 -1
  2468. package/lib/acl/Configuration/schemas/scopes.js.map +0 -1
  2469. package/lib/acl/Configuration/schemas/useRoleResourceValues.js.map +0 -1
  2470. package/lib/acl/Configuration/schemas/useSaveRoleResourceAction.js.map +0 -1
  2471. package/lib/acl/index.js.map +0 -1
  2472. package/lib/action-logs/ActionLog.Designer.js.map +0 -1
  2473. package/lib/action-logs/ActionLog.js.map +0 -1
  2474. package/lib/action-logs/ActionLogBlockInitializer.js.map +0 -1
  2475. package/lib/action-logs/ActionLogProvider.js.map +0 -1
  2476. package/lib/action-logs/index.js.map +0 -1
  2477. package/lib/action-logs/utils.js.map +0 -1
  2478. package/lib/antd-config-provider/index.js.map +0 -1
  2479. package/lib/api-client/APIClient.js.map +0 -1
  2480. package/lib/api-client/APIClientProvider.js.map +0 -1
  2481. package/lib/api-client/__tests__/APIClient.test.d.ts +0 -1
  2482. package/lib/api-client/__tests__/APIClient.test.js +0 -29
  2483. package/lib/api-client/__tests__/APIClient.test.js.map +0 -1
  2484. package/lib/api-client/context.js.map +0 -1
  2485. package/lib/api-client/hooks/assign.js.map +0 -1
  2486. package/lib/api-client/hooks/index.js.map +0 -1
  2487. package/lib/api-client/hooks/useAPIClient.js.map +0 -1
  2488. package/lib/api-client/hooks/useRequest.js.map +0 -1
  2489. package/lib/api-client/hooks/useResource.js.map +0 -1
  2490. package/lib/api-client/index.js.map +0 -1
  2491. package/lib/application/__tests__/compose.test.d.ts +0 -1
  2492. package/lib/application/__tests__/compose.test.js +0 -43
  2493. package/lib/application/__tests__/compose.test.js.map +0 -1
  2494. package/lib/application/compose.js.map +0 -1
  2495. package/lib/application/index.js.map +0 -1
  2496. package/lib/async-data-provider/index.js.map +0 -1
  2497. package/lib/block-provider/BlockProvider.js.map +0 -1
  2498. package/lib/block-provider/BlockSchemaComponentProvider.js.map +0 -1
  2499. package/lib/block-provider/CalendarBlockProvider.js.map +0 -1
  2500. package/lib/block-provider/DetailsBlockProvider.js.map +0 -1
  2501. package/lib/block-provider/FormBlockProvider.js.map +0 -1
  2502. package/lib/block-provider/KanbanBlockProvider.js.map +0 -1
  2503. package/lib/block-provider/TableBlockProvider.js.map +0 -1
  2504. package/lib/block-provider/TableFieldProvider.js.map +0 -1
  2505. package/lib/block-provider/TableSelectorProvider.js.map +0 -1
  2506. package/lib/block-provider/hooks/index.js.map +0 -1
  2507. package/lib/block-provider/index.js.map +0 -1
  2508. package/lib/board/Board.js.map +0 -1
  2509. package/lib/board/Card.js.map +0 -1
  2510. package/lib/board/CardAdder.js.map +0 -1
  2511. package/lib/board/CardForm.js.map +0 -1
  2512. package/lib/board/Column.js.map +0 -1
  2513. package/lib/board/ColumnAdder.js.map +0 -1
  2514. package/lib/board/ColumnForm.js.map +0 -1
  2515. package/lib/board/DefaultCard.js.map +0 -1
  2516. package/lib/board/DefaultColumnHeader.js.map +0 -1
  2517. package/lib/board/Kanban.js.map +0 -1
  2518. package/lib/board/helpers.js.map +0 -1
  2519. package/lib/board/index.js.map +0 -1
  2520. package/lib/board/services.js.map +0 -1
  2521. package/lib/board/utils.js.map +0 -1
  2522. package/lib/board/withDroppable.js.map +0 -1
  2523. package/lib/china-region/index.js.map +0 -1
  2524. package/lib/collection-manager/CollectionField.js.map +0 -1
  2525. package/lib/collection-manager/CollectionFieldProvider.js.map +0 -1
  2526. package/lib/collection-manager/CollectionManagerProvider.js.map +0 -1
  2527. package/lib/collection-manager/CollectionManagerSchemaComponentProvider.js.map +0 -1
  2528. package/lib/collection-manager/CollectionManagerShortcut.js.map +0 -1
  2529. package/lib/collection-manager/CollectionProvider.js.map +0 -1
  2530. package/lib/collection-manager/Configuration/AddFieldAction.js.map +0 -1
  2531. package/lib/collection-manager/Configuration/AddSubFieldAction.js.map +0 -1
  2532. package/lib/collection-manager/Configuration/ConfigurationTable.js.map +0 -1
  2533. package/lib/collection-manager/Configuration/EditFieldAction.js.map +0 -1
  2534. package/lib/collection-manager/Configuration/EditSubFieldAction.js.map +0 -1
  2535. package/lib/collection-manager/Configuration/index.js.map +0 -1
  2536. package/lib/collection-manager/Configuration/interfaces.js.map +0 -1
  2537. package/lib/collection-manager/Configuration/schemas/collectionFields.js.map +0 -1
  2538. package/lib/collection-manager/Configuration/schemas/collections.js.map +0 -1
  2539. package/lib/collection-manager/ResourceActionProvider.js.map +0 -1
  2540. package/lib/collection-manager/action-hooks.js.map +0 -1
  2541. package/lib/collection-manager/context.js.map +0 -1
  2542. package/lib/collection-manager/hooks/index.js.map +0 -1
  2543. package/lib/collection-manager/hooks/useCollection.js.map +0 -1
  2544. package/lib/collection-manager/hooks/useCollectionDataSource.js.map +0 -1
  2545. package/lib/collection-manager/hooks/useCollectionField.js.map +0 -1
  2546. package/lib/collection-manager/hooks/useCollectionManager.js.map +0 -1
  2547. package/lib/collection-manager/index.js.map +0 -1
  2548. package/lib/collection-manager/interfaces/attachment.js.map +0 -1
  2549. package/lib/collection-manager/interfaces/checkbox.js.map +0 -1
  2550. package/lib/collection-manager/interfaces/checkboxGroup.js.map +0 -1
  2551. package/lib/collection-manager/interfaces/chinaRegion.js.map +0 -1
  2552. package/lib/collection-manager/interfaces/createdAt.js.map +0 -1
  2553. package/lib/collection-manager/interfaces/createdBy.js.map +0 -1
  2554. package/lib/collection-manager/interfaces/datetime.js.map +0 -1
  2555. package/lib/collection-manager/interfaces/email.js.map +0 -1
  2556. package/lib/collection-manager/interfaces/icon.js.map +0 -1
  2557. package/lib/collection-manager/interfaces/id.js.map +0 -1
  2558. package/lib/collection-manager/interfaces/index.js.map +0 -1
  2559. package/lib/collection-manager/interfaces/input.js.map +0 -1
  2560. package/lib/collection-manager/interfaces/linkTo.js.map +0 -1
  2561. package/lib/collection-manager/interfaces/markdown.js.map +0 -1
  2562. package/lib/collection-manager/interfaces/multipleSelect.js.map +0 -1
  2563. package/lib/collection-manager/interfaces/number.js.map +0 -1
  2564. package/lib/collection-manager/interfaces/password.js.map +0 -1
  2565. package/lib/collection-manager/interfaces/percent.js.map +0 -1
  2566. package/lib/collection-manager/interfaces/phone.js.map +0 -1
  2567. package/lib/collection-manager/interfaces/properties/index.js.map +0 -1
  2568. package/lib/collection-manager/interfaces/properties/operators.js.map +0 -1
  2569. package/lib/collection-manager/interfaces/radioGroup.js.map +0 -1
  2570. package/lib/collection-manager/interfaces/richText.js.map +0 -1
  2571. package/lib/collection-manager/interfaces/select.js.map +0 -1
  2572. package/lib/collection-manager/interfaces/subTable.js.map +0 -1
  2573. package/lib/collection-manager/interfaces/textarea.js.map +0 -1
  2574. package/lib/collection-manager/interfaces/time.js.map +0 -1
  2575. package/lib/collection-manager/interfaces/types.js.map +0 -1
  2576. package/lib/collection-manager/interfaces/updatedAt.js.map +0 -1
  2577. package/lib/collection-manager/interfaces/updatedBy.js.map +0 -1
  2578. package/lib/collection-manager/sub-table.js.map +0 -1
  2579. package/lib/collection-manager/types.js.map +0 -1
  2580. package/lib/document-title/index.js.map +0 -1
  2581. package/lib/file-manager/FileStorageShortcut.js.map +0 -1
  2582. package/lib/file-manager/StorageOptions.js.map +0 -1
  2583. package/lib/file-manager/index.js.map +0 -1
  2584. package/lib/file-manager/schemas/storage.js.map +0 -1
  2585. package/lib/i18n/i18n.js.map +0 -1
  2586. package/lib/i18n/index.js.map +0 -1
  2587. package/lib/icon/Icon.js.map +0 -1
  2588. package/lib/icon/index.js.map +0 -1
  2589. package/lib/index.js.map +0 -1
  2590. package/lib/locale/en_US.js.map +0 -1
  2591. package/lib/locale/index.js.map +0 -1
  2592. package/lib/locale/zh_CN.js.map +0 -1
  2593. package/lib/plugin-manager/PluginManager.js.map +0 -1
  2594. package/lib/plugin-manager/PluginManagerProvider.js.map +0 -1
  2595. package/lib/plugin-manager/context.js.map +0 -1
  2596. package/lib/plugin-manager/index.js.map +0 -1
  2597. package/lib/powered-by/index.js.map +0 -1
  2598. package/lib/record-provider/index.js.map +0 -1
  2599. package/lib/route-switch/RouteSwitch.js.map +0 -1
  2600. package/lib/route-switch/RouteSwitchProvider.js.map +0 -1
  2601. package/lib/route-switch/__tests__/RouteSwitch.test.d.ts +0 -1
  2602. package/lib/route-switch/__tests__/RouteSwitch.test.js +0 -37
  2603. package/lib/route-switch/__tests__/RouteSwitch.test.js.map +0 -1
  2604. package/lib/route-switch/antd/admin-layout/index.js.map +0 -1
  2605. package/lib/route-switch/antd/auth-layout/index.js.map +0 -1
  2606. package/lib/route-switch/antd/index.js.map +0 -1
  2607. package/lib/route-switch/antd/route-schema-component/index.js.map +0 -1
  2608. package/lib/route-switch/context.js.map +0 -1
  2609. package/lib/route-switch/hooks.js.map +0 -1
  2610. package/lib/route-switch/index.js.map +0 -1
  2611. package/lib/route-switch/types.js.map +0 -1
  2612. package/lib/schema-component/antd/AntdSchemaComponentProvider.js.map +0 -1
  2613. package/lib/schema-component/antd/action/Action.Container.js.map +0 -1
  2614. package/lib/schema-component/antd/action/Action.Designer.js.map +0 -1
  2615. package/lib/schema-component/antd/action/Action.Drawer.js.map +0 -1
  2616. package/lib/schema-component/antd/action/Action.Link.js.map +0 -1
  2617. package/lib/schema-component/antd/action/Action.Modal.js.map +0 -1
  2618. package/lib/schema-component/antd/action/Action.Page.js.map +0 -1
  2619. package/lib/schema-component/antd/action/Action.Popover.js.map +0 -1
  2620. package/lib/schema-component/antd/action/Action.js.map +0 -1
  2621. package/lib/schema-component/antd/action/ActionBar.js.map +0 -1
  2622. package/lib/schema-component/antd/action/context.js.map +0 -1
  2623. package/lib/schema-component/antd/action/hooks.js.map +0 -1
  2624. package/lib/schema-component/antd/action/index.js.map +0 -1
  2625. package/lib/schema-component/antd/action/types.js.map +0 -1
  2626. package/lib/schema-component/antd/block-item/BlockItem.js.map +0 -1
  2627. package/lib/schema-component/antd/block-item/TestDesigner.js.map +0 -1
  2628. package/lib/schema-component/antd/block-item/index.js.map +0 -1
  2629. package/lib/schema-component/antd/calendar/Calendar.Designer.js.map +0 -1
  2630. package/lib/schema-component/antd/calendar/Calendar.js.map +0 -1
  2631. package/lib/schema-component/antd/calendar/Event.js.map +0 -1
  2632. package/lib/schema-component/antd/calendar/Nav.js.map +0 -1
  2633. package/lib/schema-component/antd/calendar/Title.js.map +0 -1
  2634. package/lib/schema-component/antd/calendar/Today.js.map +0 -1
  2635. package/lib/schema-component/antd/calendar/ViewSelect.js.map +0 -1
  2636. package/lib/schema-component/antd/calendar/context.js.map +0 -1
  2637. package/lib/schema-component/antd/calendar/index.js.map +0 -1
  2638. package/lib/schema-component/antd/calendar/utils.js.map +0 -1
  2639. package/lib/schema-component/antd/calendar-v2/Calendar.Designer.d.ts +0 -2
  2640. package/lib/schema-component/antd/calendar-v2/Calendar.Designer.js +0 -126
  2641. package/lib/schema-component/antd/calendar-v2/Calendar.Designer.js.map +0 -1
  2642. package/lib/schema-component/antd/calendar-v2/Calendar.d.ts +0 -2
  2643. package/lib/schema-component/antd/calendar-v2/Calendar.js +0 -158
  2644. package/lib/schema-component/antd/calendar-v2/Calendar.js.map +0 -1
  2645. package/lib/schema-component/antd/calendar-v2/Event.d.ts +0 -2
  2646. package/lib/schema-component/antd/calendar-v2/Event.js +0 -9
  2647. package/lib/schema-component/antd/calendar-v2/Event.js.map +0 -1
  2648. package/lib/schema-component/antd/calendar-v2/Nav.d.ts +0 -2
  2649. package/lib/schema-component/antd/calendar-v2/Nav.js +0 -28
  2650. package/lib/schema-component/antd/calendar-v2/Nav.js.map +0 -1
  2651. package/lib/schema-component/antd/calendar-v2/Title.d.ts +0 -2
  2652. package/lib/schema-component/antd/calendar-v2/Title.js +0 -25
  2653. package/lib/schema-component/antd/calendar-v2/Title.js.map +0 -1
  2654. package/lib/schema-component/antd/calendar-v2/Today.d.ts +0 -2
  2655. package/lib/schema-component/antd/calendar-v2/Today.js +0 -31
  2656. package/lib/schema-component/antd/calendar-v2/Today.js.map +0 -1
  2657. package/lib/schema-component/antd/calendar-v2/ViewSelect.d.ts +0 -2
  2658. package/lib/schema-component/antd/calendar-v2/ViewSelect.js +0 -26
  2659. package/lib/schema-component/antd/calendar-v2/ViewSelect.js.map +0 -1
  2660. package/lib/schema-component/antd/calendar-v2/context.d.ts +0 -4
  2661. package/lib/schema-component/antd/calendar-v2/context.js +0 -7
  2662. package/lib/schema-component/antd/calendar-v2/context.js.map +0 -1
  2663. package/lib/schema-component/antd/calendar-v2/index.d.ts +0 -3
  2664. package/lib/schema-component/antd/calendar-v2/index.js +0 -21
  2665. package/lib/schema-component/antd/calendar-v2/index.js.map +0 -1
  2666. package/lib/schema-component/antd/calendar-v2/utils.d.ts +0 -6
  2667. package/lib/schema-component/antd/calendar-v2/utils.js +0 -17
  2668. package/lib/schema-component/antd/calendar-v2/utils.js.map +0 -1
  2669. package/lib/schema-component/antd/card-item/CardItem.js.map +0 -1
  2670. package/lib/schema-component/antd/card-item/index.js.map +0 -1
  2671. package/lib/schema-component/antd/cascader/Cascader.js.map +0 -1
  2672. package/lib/schema-component/antd/cascader/ReadPretty.js.map +0 -1
  2673. package/lib/schema-component/antd/cascader/defaultFieldNames.js.map +0 -1
  2674. package/lib/schema-component/antd/cascader/index.js.map +0 -1
  2675. package/lib/schema-component/antd/chart/Chart.js.map +0 -1
  2676. package/lib/schema-component/antd/chart/index.js.map +0 -1
  2677. package/lib/schema-component/antd/checkbox/Checkbox.js.map +0 -1
  2678. package/lib/schema-component/antd/checkbox/index.js.map +0 -1
  2679. package/lib/schema-component/antd/color-select/ColorSelect.js.map +0 -1
  2680. package/lib/schema-component/antd/color-select/index.js.map +0 -1
  2681. package/lib/schema-component/antd/date-picker/DatePicker.js.map +0 -1
  2682. package/lib/schema-component/antd/date-picker/ReadPretty.js.map +0 -1
  2683. package/lib/schema-component/antd/date-picker/index.js.map +0 -1
  2684. package/lib/schema-component/antd/date-picker/util.js.map +0 -1
  2685. package/lib/schema-component/antd/filter/DynamicComponent.js.map +0 -1
  2686. package/lib/schema-component/antd/filter/Filter.Action.Designer.js.map +0 -1
  2687. package/lib/schema-component/antd/filter/Filter.js.map +0 -1
  2688. package/lib/schema-component/antd/filter/FilterAction.js.map +0 -1
  2689. package/lib/schema-component/antd/filter/FilterGroup.js.map +0 -1
  2690. package/lib/schema-component/antd/filter/FilterItem.js.map +0 -1
  2691. package/lib/schema-component/antd/filter/FilterItems.js.map +0 -1
  2692. package/lib/schema-component/antd/filter/SaveDefaultValue.js.map +0 -1
  2693. package/lib/schema-component/antd/filter/context.js.map +0 -1
  2694. package/lib/schema-component/antd/filter/index.js.map +0 -1
  2695. package/lib/schema-component/antd/filter/useFilterActionProps.js.map +0 -1
  2696. package/lib/schema-component/antd/filter/useValues.js.map +0 -1
  2697. package/lib/schema-component/antd/form/Form.Designer.js.map +0 -1
  2698. package/lib/schema-component/antd/form/Form.js.map +0 -1
  2699. package/lib/schema-component/antd/form/index.js.map +0 -1
  2700. package/lib/schema-component/antd/form-item/FormItem.js.map +0 -1
  2701. package/lib/schema-component/antd/form-item/index.js.map +0 -1
  2702. package/lib/schema-component/antd/form-v2/Form.Designer.js.map +0 -1
  2703. package/lib/schema-component/antd/form-v2/Form.js.map +0 -1
  2704. package/lib/schema-component/antd/form-v2/index.js.map +0 -1
  2705. package/lib/schema-component/antd/grid/Block.js.map +0 -1
  2706. package/lib/schema-component/antd/grid/Grid.js.map +0 -1
  2707. package/lib/schema-component/antd/grid/index.js.map +0 -1
  2708. package/lib/schema-component/antd/icon-picker/IconPicker.js.map +0 -1
  2709. package/lib/schema-component/antd/icon-picker/index.js.map +0 -1
  2710. package/lib/schema-component/antd/index.js.map +0 -1
  2711. package/lib/schema-component/antd/input/EllipsisWithTooltip.js.map +0 -1
  2712. package/lib/schema-component/antd/input/Input.js.map +0 -1
  2713. package/lib/schema-component/antd/input/ReadPretty.js.map +0 -1
  2714. package/lib/schema-component/antd/input/index.js.map +0 -1
  2715. package/lib/schema-component/antd/input/shared.js.map +0 -1
  2716. package/lib/schema-component/antd/input-number/InputNumber.js.map +0 -1
  2717. package/lib/schema-component/antd/input-number/ReadPretty.js.map +0 -1
  2718. package/lib/schema-component/antd/input-number/index.js.map +0 -1
  2719. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.js.map +0 -1
  2720. package/lib/schema-component/antd/kanban/Kanban.Card.js.map +0 -1
  2721. package/lib/schema-component/antd/kanban/Kanban.CardViewer.js.map +0 -1
  2722. package/lib/schema-component/antd/kanban/Kanban.Designer.js.map +0 -1
  2723. package/lib/schema-component/antd/kanban/Kanban.js.map +0 -1
  2724. package/lib/schema-component/antd/kanban/context.js.map +0 -1
  2725. package/lib/schema-component/antd/kanban/hoooks/index.d.ts +0 -1
  2726. package/lib/schema-component/antd/kanban/hoooks/index.js +0 -14
  2727. package/lib/schema-component/antd/kanban/hoooks/index.js.map +0 -1
  2728. package/lib/schema-component/antd/kanban/hoooks/useCardItemInitializerFields.d.ts +0 -2
  2729. package/lib/schema-component/antd/kanban/hoooks/useCardItemInitializerFields.js +0 -32
  2730. package/lib/schema-component/antd/kanban/hoooks/useCardItemInitializerFields.js.map +0 -1
  2731. package/lib/schema-component/antd/kanban/index.js.map +0 -1
  2732. package/lib/schema-component/antd/kanban/utils.d.ts +0 -8
  2733. package/lib/schema-component/antd/kanban/utils.js +0 -37
  2734. package/lib/schema-component/antd/kanban/utils.js.map +0 -1
  2735. package/lib/schema-component/antd/kanban-v2/Kanban.Card.Designer.d.ts +0 -2
  2736. package/lib/schema-component/antd/kanban-v2/Kanban.Card.Designer.js +0 -96
  2737. package/lib/schema-component/antd/kanban-v2/Kanban.Card.Designer.js.map +0 -1
  2738. package/lib/schema-component/antd/kanban-v2/Kanban.Card.d.ts +0 -1
  2739. package/lib/schema-component/antd/kanban-v2/Kanban.Card.js +0 -64
  2740. package/lib/schema-component/antd/kanban-v2/Kanban.Card.js.map +0 -1
  2741. package/lib/schema-component/antd/kanban-v2/Kanban.CardViewer.d.ts +0 -1
  2742. package/lib/schema-component/antd/kanban-v2/Kanban.CardViewer.js +0 -8
  2743. package/lib/schema-component/antd/kanban-v2/Kanban.CardViewer.js.map +0 -1
  2744. package/lib/schema-component/antd/kanban-v2/Kanban.Designer.d.ts +0 -2
  2745. package/lib/schema-component/antd/kanban-v2/Kanban.Designer.js +0 -66
  2746. package/lib/schema-component/antd/kanban-v2/Kanban.Designer.js.map +0 -1
  2747. package/lib/schema-component/antd/kanban-v2/Kanban.d.ts +0 -9
  2748. package/lib/schema-component/antd/kanban-v2/Kanban.js +0 -200
  2749. package/lib/schema-component/antd/kanban-v2/Kanban.js.map +0 -1
  2750. package/lib/schema-component/antd/kanban-v2/context.d.ts +0 -3
  2751. package/lib/schema-component/antd/kanban-v2/context.js +0 -7
  2752. package/lib/schema-component/antd/kanban-v2/context.js.map +0 -1
  2753. package/lib/schema-component/antd/kanban-v2/index.d.ts +0 -2
  2754. package/lib/schema-component/antd/kanban-v2/index.js +0 -17
  2755. package/lib/schema-component/antd/kanban-v2/index.js.map +0 -1
  2756. package/lib/schema-component/antd/markdown/Markdown.Void.Designer.js.map +0 -1
  2757. package/lib/schema-component/antd/markdown/Markdown.Void.js.map +0 -1
  2758. package/lib/schema-component/antd/markdown/Markdown.js.map +0 -1
  2759. package/lib/schema-component/antd/markdown/index.js.map +0 -1
  2760. package/lib/schema-component/antd/markdown/util.js.map +0 -1
  2761. package/lib/schema-component/antd/menu/Menu.Designer.js.map +0 -1
  2762. package/lib/schema-component/antd/menu/Menu.js.map +0 -1
  2763. package/lib/schema-component/antd/menu/MenuItemInitializers/index.js.map +0 -1
  2764. package/lib/schema-component/antd/menu/index.js.map +0 -1
  2765. package/lib/schema-component/antd/menu/util.js.map +0 -1
  2766. package/lib/schema-component/antd/page/Page.js.map +0 -1
  2767. package/lib/schema-component/antd/page/index.js.map +0 -1
  2768. package/lib/schema-component/antd/pagination/index.js.map +0 -1
  2769. package/lib/schema-component/antd/password/Password.js.map +0 -1
  2770. package/lib/schema-component/antd/password/PasswordStrength.js.map +0 -1
  2771. package/lib/schema-component/antd/password/index.js.map +0 -1
  2772. package/lib/schema-component/antd/radio/Radio.js.map +0 -1
  2773. package/lib/schema-component/antd/radio/index.js.map +0 -1
  2774. package/lib/schema-component/antd/record-picker/InputRecordPicker.js.map +0 -1
  2775. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js.map +0 -1
  2776. package/lib/schema-component/antd/record-picker/RecordPicker.js.map +0 -1
  2777. package/lib/schema-component/antd/record-picker/index.js.map +0 -1
  2778. package/lib/schema-component/antd/record-picker/useFieldNames.js.map +0 -1
  2779. package/lib/schema-component/antd/rich-text/RichText.js.map +0 -1
  2780. package/lib/schema-component/antd/rich-text/index.js.map +0 -1
  2781. package/lib/schema-component/antd/select/ReadPretty.js.map +0 -1
  2782. package/lib/schema-component/antd/select/Select.js.map +0 -1
  2783. package/lib/schema-component/antd/select/index.js.map +0 -1
  2784. package/lib/schema-component/antd/select/shared.js.map +0 -1
  2785. package/lib/schema-component/antd/space/index.js.map +0 -1
  2786. package/lib/schema-component/antd/table/Table.Array.Designer.js.map +0 -1
  2787. package/lib/schema-component/antd/table/Table.Array.js.map +0 -1
  2788. package/lib/schema-component/antd/table/Table.Column.ActionBar.js.map +0 -1
  2789. package/lib/schema-component/antd/table/Table.Column.Decorator.js.map +0 -1
  2790. package/lib/schema-component/antd/table/Table.Column.Designer.js.map +0 -1
  2791. package/lib/schema-component/antd/table/Table.Column.js.map +0 -1
  2792. package/lib/schema-component/antd/table/Table.Designer.js.map +0 -1
  2793. package/lib/schema-component/antd/table/Table.RowActionDesigner.js.map +0 -1
  2794. package/lib/schema-component/antd/table/Table.RowSelection.js.map +0 -1
  2795. package/lib/schema-component/antd/table/Table.Void.Designer.js.map +0 -1
  2796. package/lib/schema-component/antd/table/Table.Void.js.map +0 -1
  2797. package/lib/schema-component/antd/table/index.js.map +0 -1
  2798. package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.js.map +0 -1
  2799. package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.js.map +0 -1
  2800. package/lib/schema-component/antd/table-v2/Table.Column.Decorator.js.map +0 -1
  2801. package/lib/schema-component/antd/table-v2/Table.Column.Designer.js.map +0 -1
  2802. package/lib/schema-component/antd/table-v2/Table.Column.js.map +0 -1
  2803. package/lib/schema-component/antd/table-v2/Table.Designer.js.map +0 -1
  2804. package/lib/schema-component/antd/table-v2/Table.js.map +0 -1
  2805. package/lib/schema-component/antd/table-v2/TableBlockDesigner.js.map +0 -1
  2806. package/lib/schema-component/antd/table-v2/TableField.js.map +0 -1
  2807. package/lib/schema-component/antd/table-v2/TableSelector.js.map +0 -1
  2808. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js.map +0 -1
  2809. package/lib/schema-component/antd/table-v2/index.js.map +0 -1
  2810. package/lib/schema-component/antd/tabs/Tabs.Designer.js.map +0 -1
  2811. package/lib/schema-component/antd/tabs/Tabs.js.map +0 -1
  2812. package/lib/schema-component/antd/tabs/index.js.map +0 -1
  2813. package/lib/schema-component/antd/time-picker/ReadPretty.js.map +0 -1
  2814. package/lib/schema-component/antd/time-picker/TimePicker.js.map +0 -1
  2815. package/lib/schema-component/antd/time-picker/index.js.map +0 -1
  2816. package/lib/schema-component/antd/tree-select/ReadPretty.js.map +0 -1
  2817. package/lib/schema-component/antd/tree-select/TreeSelect.js.map +0 -1
  2818. package/lib/schema-component/antd/tree-select/index.js.map +0 -1
  2819. package/lib/schema-component/antd/upload/ReadPretty.js.map +0 -1
  2820. package/lib/schema-component/antd/upload/Upload.js.map +0 -1
  2821. package/lib/schema-component/antd/upload/index.js.map +0 -1
  2822. package/lib/schema-component/antd/upload/placeholder.js.map +0 -1
  2823. package/lib/schema-component/antd/upload/shared.js.map +0 -1
  2824. package/lib/schema-component/common/dnd-context/index.js.map +0 -1
  2825. package/lib/schema-component/common/index.js.map +0 -1
  2826. package/lib/schema-component/common/sortable-item/SortableItem.js.map +0 -1
  2827. package/lib/schema-component/common/sortable-item/index.js.map +0 -1
  2828. package/lib/schema-component/context.js.map +0 -1
  2829. package/lib/schema-component/core/DesignableSwitch.js.map +0 -1
  2830. package/lib/schema-component/core/FormProvider.js.map +0 -1
  2831. package/lib/schema-component/core/RemoteSchemaComponent.js.map +0 -1
  2832. package/lib/schema-component/core/SchemaComponent.js.map +0 -1
  2833. package/lib/schema-component/core/SchemaComponentOptions.js.map +0 -1
  2834. package/lib/schema-component/core/SchemaComponentProvider.js.map +0 -1
  2835. package/lib/schema-component/core/index.js.map +0 -1
  2836. package/lib/schema-component/hooks/__tests__/designable.test.d.ts +0 -1
  2837. package/lib/schema-component/hooks/__tests__/designable.test.js +0 -469
  2838. package/lib/schema-component/hooks/__tests__/designable.test.js.map +0 -1
  2839. package/lib/schema-component/hooks/__tests__/splitWrapSchema.test.d.ts +0 -1
  2840. package/lib/schema-component/hooks/__tests__/splitWrapSchema.test.js +0 -106
  2841. package/lib/schema-component/hooks/__tests__/splitWrapSchema.test.js.map +0 -1
  2842. package/lib/schema-component/hooks/index.js.map +0 -1
  2843. package/lib/schema-component/hooks/useAttach.js.map +0 -1
  2844. package/lib/schema-component/hooks/useCompile.js.map +0 -1
  2845. package/lib/schema-component/hooks/useComponent.js.map +0 -1
  2846. package/lib/schema-component/hooks/useDesignable.js.map +0 -1
  2847. package/lib/schema-component/hooks/useDesigner.js.map +0 -1
  2848. package/lib/schema-component/hooks/useFieldProps.js.map +0 -1
  2849. package/lib/schema-component/hooks/useProps.js.map +0 -1
  2850. package/lib/schema-component/hooks/useSchemaComponentContext.js.map +0 -1
  2851. package/lib/schema-component/index.js.map +0 -1
  2852. package/lib/schema-component/types.js.map +0 -1
  2853. package/lib/schema-initializer/SchemaInitializer.js.map +0 -1
  2854. package/lib/schema-initializer/SchemaInitializerProvider.js.map +0 -1
  2855. package/lib/schema-initializer/buttons/BlockInitializers.js.map +0 -1
  2856. package/lib/schema-initializer/buttons/CalendarActionInitializers.js.map +0 -1
  2857. package/lib/schema-initializer/buttons/CreateFormBlockInitializers.js.map +0 -1
  2858. package/lib/schema-initializer/buttons/DetailsActionInitializers.js.map +0 -1
  2859. package/lib/schema-initializer/buttons/FormActionInitializers.js.map +0 -1
  2860. package/lib/schema-initializer/buttons/FormItemInitializers.js.map +0 -1
  2861. package/lib/schema-initializer/buttons/KanbanActionInitializers.js.map +0 -1
  2862. package/lib/schema-initializer/buttons/KanbanCardFormItemInitializers.js.map +0 -1
  2863. package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.js.map +0 -1
  2864. package/lib/schema-initializer/buttons/ReadPrettyFormItemInitializers.js.map +0 -1
  2865. package/lib/schema-initializer/buttons/RecordBlockInitializers.js.map +0 -1
  2866. package/lib/schema-initializer/buttons/RecordFormBlockInitializers.js.map +0 -1
  2867. package/lib/schema-initializer/buttons/SubTableActionInitializers.js.map +0 -1
  2868. package/lib/schema-initializer/buttons/TabPaneInitializers.js.map +0 -1
  2869. package/lib/schema-initializer/buttons/TableActionColumnInitializers.js.map +0 -1
  2870. package/lib/schema-initializer/buttons/TableActionInitializers.js.map +0 -1
  2871. package/lib/schema-initializer/buttons/TableColumnInitializers.js.map +0 -1
  2872. package/lib/schema-initializer/buttons/TableSelectorInitializers.js.map +0 -1
  2873. package/lib/schema-initializer/buttons/index.js.map +0 -1
  2874. package/lib/schema-initializer/index.js.map +0 -1
  2875. package/lib/schema-initializer/items/index.js.map +0 -1
  2876. package/lib/schema-initializer/types.js.map +0 -1
  2877. package/lib/schema-initializer/utils.js.map +0 -1
  2878. package/lib/schema-settings/GeneralSchemaDesigner.js.map +0 -1
  2879. package/lib/schema-settings/SchemaSettings.js.map +0 -1
  2880. package/lib/schema-settings/index.js.map +0 -1
  2881. package/lib/schema-templates/BlockTemplate.js.map +0 -1
  2882. package/lib/schema-templates/BlockTemplateDetails.js.map +0 -1
  2883. package/lib/schema-templates/BlockTemplatePage.js.map +0 -1
  2884. package/lib/schema-templates/SchemaTemplateManagerProvider.js.map +0 -1
  2885. package/lib/schema-templates/SchemaTemplateShortcut.js.map +0 -1
  2886. package/lib/schema-templates/collections/uiSchemaTemplates.js.map +0 -1
  2887. package/lib/schema-templates/index.js.map +0 -1
  2888. package/lib/schema-templates/schemas/uiSchemaTemplates.js.map +0 -1
  2889. package/lib/settings-form/SettingsForm.js.map +0 -1
  2890. package/lib/settings-form/index.js.map +0 -1
  2891. package/lib/slate/RichText.js.map +0 -1
  2892. package/lib/slate/Slate.js.map +0 -1
  2893. package/lib/slate/components.js.map +0 -1
  2894. package/lib/slate/index.js.map +0 -1
  2895. package/lib/system-settings/SystemSettingsProvider.js.map +0 -1
  2896. package/lib/system-settings/SystemSettingsShortcut.js.map +0 -1
  2897. package/lib/system-settings/index.js.map +0 -1
  2898. package/lib/user/ChangePassword.js.map +0 -1
  2899. package/lib/user/CurrentUser.js.map +0 -1
  2900. package/lib/user/CurrentUserProvider.js.map +0 -1
  2901. package/lib/user/EditProfile.js.map +0 -1
  2902. package/lib/user/LanguageSettings.js.map +0 -1
  2903. package/lib/user/SigninPage.js.map +0 -1
  2904. package/lib/user/SignupPage.js.map +0 -1
  2905. package/lib/user/SwitchRole.js.map +0 -1
  2906. package/lib/user/index.js.map +0 -1
  2907. package/lib/workflow/ExecutionResourceProvider.js.map +0 -1
  2908. package/lib/workflow/WorkflowCanvas.js.map +0 -1
  2909. package/lib/workflow/WorkflowLink.js.map +0 -1
  2910. package/lib/workflow/WorkflowPage.js.map +0 -1
  2911. package/lib/workflow/WorkflowRouteProvider.js.map +0 -1
  2912. package/lib/workflow/WorkflowShortcut.js.map +0 -1
  2913. package/lib/workflow/WorkflowTable.d.ts +0 -2
  2914. package/lib/workflow/WorkflowTable.js +0 -16
  2915. package/lib/workflow/WorkflowTable.js.map +0 -1
  2916. package/lib/workflow/calculators.js.map +0 -1
  2917. package/lib/workflow/index.js.map +0 -1
  2918. package/lib/workflow/nodes/calculation.js.map +0 -1
  2919. package/lib/workflow/nodes/condition.js.map +0 -1
  2920. package/lib/workflow/nodes/create.js.map +0 -1
  2921. package/lib/workflow/nodes/destroy.js.map +0 -1
  2922. package/lib/workflow/nodes/index.js.map +0 -1
  2923. package/lib/workflow/nodes/parallel.js.map +0 -1
  2924. package/lib/workflow/nodes/query.js.map +0 -1
  2925. package/lib/workflow/nodes/update.js.map +0 -1
  2926. package/lib/workflow/schemas/collection.js.map +0 -1
  2927. package/lib/workflow/schemas/executions.js.map +0 -1
  2928. package/lib/workflow/schemas/workflows.js.map +0 -1
  2929. package/lib/workflow/style.js.map +0 -1
  2930. package/lib/workflow/triggers/index.js.map +0 -1
  2931. package/lib/workflow/triggers/model.d.ts +0 -57
  2932. package/lib/workflow/triggers/model.js +0 -60
  2933. package/lib/workflow/triggers/model.js.map +0 -1
  2934. package/src/schema-component/antd/calendar/demos/ActionInitializer.tsx +0 -163
  2935. package/src/schema-component/antd/calendar/demos/FooterActionInitializer.tsx +0 -138
  2936. package/src/schema-component/antd/calendar/demos/apiClient.ts +0 -34
  2937. package/src/schema-component/antd/calendar/demos/demo3.tsx +0 -167
  2938. package/src/schema-component/antd/calendar/demos/demo4.tsx +0 -276
  2939. package/src/schema-component/antd/calendar-v2/Calendar.Designer.tsx +0 -142
  2940. package/src/schema-component/antd/calendar-v2/Calendar.tsx +0 -156
  2941. package/src/schema-component/antd/calendar-v2/Event.tsx +0 -6
  2942. package/src/schema-component/antd/calendar-v2/Nav.tsx +0 -19
  2943. package/src/schema-component/antd/calendar-v2/Title.tsx +0 -15
  2944. package/src/schema-component/antd/calendar-v2/Today.tsx +0 -23
  2945. package/src/schema-component/antd/calendar-v2/ViewSelect.tsx +0 -25
  2946. package/src/schema-component/antd/calendar-v2/context.ts +0 -5
  2947. package/src/schema-component/antd/calendar-v2/demos/defaultValues.ts +0 -180
  2948. package/src/schema-component/antd/calendar-v2/demos/demo1.tsx +0 -67
  2949. package/src/schema-component/antd/calendar-v2/demos/demo2.tsx +0 -117
  2950. package/src/schema-component/antd/calendar-v2/index.md +0 -18
  2951. package/src/schema-component/antd/calendar-v2/index.ts +0 -19
  2952. package/src/schema-component/antd/calendar-v2/utils.ts +0 -13
  2953. package/src/schema-component/antd/kanban/hoooks/index.ts +0 -1
  2954. package/src/schema-component/antd/kanban/hoooks/useCardItemInitializerFields.tsx +0 -27
  2955. package/src/schema-component/antd/kanban/type.d.ts +0 -17
  2956. package/src/schema-component/antd/kanban/utils.ts +0 -30
  2957. package/src/schema-component/antd/kanban-v2/Kanban.Card.Designer.tsx +0 -104
  2958. package/src/schema-component/antd/kanban-v2/Kanban.Card.tsx +0 -98
  2959. package/src/schema-component/antd/kanban-v2/Kanban.CardViewer.tsx +0 -5
  2960. package/src/schema-component/antd/kanban-v2/Kanban.Designer.tsx +0 -64
  2961. package/src/schema-component/antd/kanban-v2/Kanban.tsx +0 -146
  2962. package/src/schema-component/antd/kanban-v2/context.ts +0 -4
  2963. package/src/schema-component/antd/kanban-v2/demos/demo1.tsx +0 -92
  2964. package/src/schema-component/antd/kanban-v2/index.md +0 -12
  2965. package/src/schema-component/antd/kanban-v2/index.ts +0 -16
  2966. package/src/workflow/WorkflowTable.tsx +0 -17
  2967. package/src/workflow/triggers/model.tsx +0 -61
  2968. package/tsconfig.build.json +0 -11
  2969. package/tsconfig.json +0 -8
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema-initializer/items/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAgE;AAChE,sCAAuD;AACvD,wCAA+D;AAC/D,0CAAwC;AACxC,+BAA0C;AAC1C,+CAA+C;AAC/C,+CAAgD;AAChD,uDAAkE;AAClE,+DAA+E;AAC/E,2DAAiF;AACjF,2DAAkE;AAClE,0DAAyD;AACzD,kCA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2C,KAAK,cAAhD,EAAE,iBAAiB,GAAwB,KAAK,kBAA7B,EAAE,MAAM,GAAgB,KAAK,OAArB,EAAK,MAAM,UAAK,KAAK,EAApF,uEAA4E,CAAF,CAAW;IACnF,IAAA,uBAAuB,GAAK,IAAA,2CAAwB,GAAE,wBAA/B,CAAgC;IAC/D,IAAM,UAAU,GAAG,IAAA,kCAAa,GAAE,CAAC;IACnC,OAAO,CACL,uBAAC,qCAAiB,CAAC,IAAI,aACrB,IAAI,EAAE,uBAAC,oBAAY,aAAG,IAClB,MAAM,IACV,OAAO,EAAE,UAAO,EAAQ;gBAAN,IAAI,UAAA;;;;oBACd,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBACzB,MAAM,CACJ,IAAA,iCAAyB,EAAC;wBACxB,MAAM,EAAE,UAAU,CAAC,eAAe;wBAClC,UAAU,EAAE,UAAU,CAAC,IAAI;wBAC3B,QAAQ,EAAE,UAAU,CAAC,IAAI;qBAC1B,CAAC,CACH,CAAC;;;;SACH,YACD,CACH,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,wBAAwB,4BAoBnC","sourcesContent":["import { FormOutlined, TableOutlined } from '@ant-design/icons';\nimport { FormDialog, FormLayout } from '@formily/antd';\nimport { ISchema, SchemaOptionsContext } from '@formily/react';\nimport { merge } from '@formily/shared';\nimport React, { useContext } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useAPIClient } from '../../api-client';\nimport { useBlockAssociationContext } from '../../block-provider';\nimport { useCollection, useCollectionManager } from '../../collection-manager';\nimport { SchemaComponent, SchemaComponentOptions } from '../../schema-component';\nimport { useSchemaTemplateManager } from '../../schema-templates';\nimport { SchemaInitializer } from '../SchemaInitializer';\nimport {\n createCalendarBlockSchema,\n createDetailsBlockSchema,\n createFormBlockSchema,\n createKanbanBlockSchema,\n createReadPrettyFormBlockSchema,\n createTableBlockSchema,\n createTableSelectorSchema,\n useCollectionDataSourceItems,\n useCurrentSchema,\n useRecordCollectionDataSourceItems\n} from '../utils';\n\n// Block\nexport const BlockInitializer = (props) => {\n const { item, insert } = props;\n return (\n <SchemaInitializer.Item\n onClick={() => {\n insert({\n ...item.schema,\n });\n }}\n />\n );\n};\n\nexport const CustomizeActionInitializer = (props) => {\n return <BlockInitializer {...props} />;\n};\n\nexport const InitializerWithSwitch = (props) => {\n const { type, schema, item, insert } = props;\n const { exists, remove } = useCurrentSchema(schema?.[type] || item?.schema?.[type], type, item.find, item.remove);\n return (\n <SchemaInitializer.SwitchItem\n checked={exists}\n title={item.title}\n onClick={() => {\n if (exists) {\n return remove();\n }\n const s = merge(schema || {}, item.schema || {});\n item?.schemaInitialize?.(s);\n insert(s);\n }}\n />\n );\n};\n\nexport const ActionInitializer = (props) => {\n return <InitializerWithSwitch {...props} type={'x-action'} />;\n};\n\nexport const DataBlockInitializer = (props) => {\n const { templateWrap, onCreateBlockSchema, componentType, createBlockSchema, insert, ...others } = props;\n const { getTemplateSchemaByMode } = useSchemaTemplateManager();\n return (\n <SchemaInitializer.Item\n icon={<TableOutlined />}\n {...others}\n onClick={async ({ item }) => {\n if (item.template) {\n const s = await getTemplateSchemaByMode(item);\n templateWrap ? insert(templateWrap(s, { item })) : insert(s);\n } else {\n if (onCreateBlockSchema) {\n onCreateBlockSchema({ item });\n } else if (createBlockSchema) {\n insert(createBlockSchema({ collection: item.name }));\n }\n }\n }}\n items={useCollectionDataSourceItems(componentType)}\n />\n );\n};\n\nexport const TableBlockInitializer = (props) => {\n const { insert } = props;\n const { getCollection } = useCollectionManager();\n return (\n <DataBlockInitializer\n {...props}\n icon={<TableOutlined />}\n componentType={'Table'}\n onCreateBlockSchema={async ({ item }) => {\n const collection = getCollection(item.name);\n const schema = createTableBlockSchema({ collection: item.name, rowKey: collection.filterTargetKey || 'id' });\n insert(schema);\n }}\n />\n );\n};\n\nexport const FormBlockInitializer = (props) => {\n return (\n <DataBlockInitializer\n {...props}\n icon={<FormOutlined />}\n componentType={'FormItem'}\n templateWrap={(templateSchema, { item }) => {\n const s = createFormBlockSchema({\n template: templateSchema,\n collection: item.name,\n });\n if (item.template && item.mode === 'reference') {\n s['x-template-key'] = item.template.key;\n }\n return s;\n }}\n createBlockSchema={createFormBlockSchema}\n />\n );\n};\n\nexport const DetailsBlockInitializer = (props) => {\n const { insert } = props;\n const { getCollection } = useCollectionManager();\n return (\n <DataBlockInitializer\n {...props}\n icon={<TableOutlined />}\n componentType={'Details'}\n onCreateBlockSchema={async ({ item }) => {\n const collection = getCollection(item.name);\n const schema = createDetailsBlockSchema({ collection: item.name, rowKey: collection.filterTargetKey || 'id' });\n insert(schema);\n }}\n />\n );\n};\n\nexport const CalendarBlockInitializer = (props) => {\n const { insert } = props;\n const { t } = useTranslation();\n const { getCollection } = useCollectionManager();\n const options = useContext(SchemaOptionsContext);\n return (\n <DataBlockInitializer\n {...props}\n componentType={'Calendar'}\n icon={<FormOutlined />}\n onCreateBlockSchema={async ({ item }) => {\n const collection = getCollection(item.name);\n const stringFields = collection?.fields\n ?.filter((field) => field.type === 'string')\n ?.map((field) => {\n return {\n label: field?.uiSchema?.title,\n value: field.name,\n };\n });\n const dateFields = collection?.fields\n ?.filter((field) => field.type === 'date')\n ?.map((field) => {\n return {\n label: field?.uiSchema?.title,\n value: field.name,\n };\n });\n const values = await FormDialog(t('Create calendar block'), () => {\n return (\n <SchemaComponentOptions scope={options.scope} components={{ ...options.components }}>\n <FormLayout layout={'vertical'}>\n <SchemaComponent\n schema={{\n properties: {\n title: {\n title: t('Title field'),\n enum: stringFields,\n required: true,\n 'x-component': 'Select',\n 'x-decorator': 'FormItem',\n },\n start: {\n title: t('Start date field'),\n enum: dateFields,\n required: true,\n default: 'createdAt',\n 'x-component': 'Select',\n 'x-decorator': 'FormItem',\n },\n end: {\n title: t('End date field'),\n enum: dateFields,\n 'x-component': 'Select',\n 'x-decorator': 'FormItem',\n },\n },\n }}\n />\n </FormLayout>\n </SchemaComponentOptions>\n );\n }).open({\n initialValues: {},\n });\n insert(\n createCalendarBlockSchema({\n collection: item.name,\n fieldNames: {\n ...values,\n },\n }),\n );\n }}\n />\n );\n};\n\nexport const KanbanBlockInitializer = (props) => {\n const { insert } = props;\n const { t } = useTranslation();\n const { getCollection } = useCollectionManager();\n const options = useContext(SchemaOptionsContext);\n const api = useAPIClient();\n return (\n <DataBlockInitializer\n {...props}\n componentType={'Kanban'}\n icon={<FormOutlined />}\n onCreateBlockSchema={async ({ item }) => {\n const collection = getCollection(item.name);\n const fields = collection?.fields\n ?.filter((field) => ['select', 'radioGroup'].includes(field.interface))\n ?.map((field) => {\n return {\n label: field?.uiSchema?.title,\n value: field.name,\n uiSchema: {\n ...field.uiSchema,\n name: field.name,\n },\n };\n });\n const values = await FormDialog(t('Create kanban block'), () => {\n return (\n <SchemaComponentOptions scope={options.scope} components={{ ...options.components }}>\n <FormLayout layout={'vertical'}>\n <SchemaComponent\n schema={{\n properties: {\n groupField: {\n title: t('Group field'),\n enum: fields,\n required: true,\n 'x-component': 'Select',\n 'x-component-props': {\n objectValue: true,\n fieldNames: { label: 'label', value: 'value' },\n },\n 'x-decorator': 'FormItem',\n },\n },\n }}\n />\n </FormLayout>\n </SchemaComponentOptions>\n );\n }).open({\n initialValues: {},\n });\n const sortName = `${values.groupField.value}_sort`;\n const exists = collection?.fields?.find((field) => field.name === sortName);\n if (!exists) {\n await api.resource('collections.fields', item.name).create({\n values: {\n type: 'sort',\n name: sortName,\n hidden: true,\n scopeKey: values.groupField.value,\n },\n });\n }\n insert(\n createKanbanBlockSchema({\n groupField: values.groupField.value,\n collection: item.name,\n params: {\n sort: [sortName],\n paginate: false,\n },\n }),\n );\n }}\n />\n );\n};\n\nexport const MarkdownBlockInitializer = (props) => {\n const { insert } = props;\n const { t } = useTranslation();\n return (\n <SchemaInitializer.Item\n {...props}\n icon={<FormOutlined />}\n onClick={() => {\n insert({\n type: 'void',\n 'x-designer': 'Markdown.Void.Designer',\n 'x-decorator': 'CardItem',\n 'x-component': 'Markdown.Void',\n 'x-editable': false,\n 'x-component-props': {\n content: t('This is a demo text, **supports Markdown syntax**.'),\n },\n });\n }}\n />\n );\n};\n\nexport const FilterActionInitializer = (props) => {\n const schema = {\n type: 'void',\n title: '{{ t(\"Filter\") }}',\n 'x-action': 'filter',\n 'x-designer': 'Filter.Action.Designer',\n 'x-component': 'Filter.Action',\n 'x-component-props': {\n icon: 'FilterOutlined',\n useProps: '{{ useFilterActionProps }}',\n },\n };\n return <ActionInitializer {...props} schema={schema} />;\n};\n\nexport const CreateActionInitializer = (props) => {\n const schema = {\n type: 'void',\n title: '{{ t(\"Add new\") }}',\n 'x-action': 'create',\n 'x-designer': 'Action.Designer',\n 'x-component': 'Action',\n 'x-component-props': {\n icon: 'PlusOutlined',\n openMode: 'drawer',\n type: 'primary',\n },\n properties: {\n drawer: {\n type: 'void',\n title: '{{ t(\"Add record\") }}',\n 'x-component': 'Action.Container',\n 'x-component-props': {\n className: 'nb-action-popup',\n },\n properties: {\n grid: {\n type: 'void',\n 'x-component': 'Grid',\n 'x-initializer': 'CreateFormBlockInitializers',\n properties: {},\n },\n },\n },\n },\n };\n return <ActionInitializer {...props} schema={schema} />;\n};\n\nexport const ViewActionInitializer = (props) => {\n const schema = {\n type: 'void',\n title: '{{ t(\"View\") }}',\n 'x-action': 'view',\n 'x-designer': 'Action.Designer',\n 'x-component': 'Action',\n 'x-component-props': {\n openMode: 'drawer',\n },\n properties: {\n drawer: {\n type: 'void',\n title: '{{ t(\"View record\") }}',\n 'x-component': 'Action.Container',\n 'x-component-props': {\n className: 'nb-action-popup',\n },\n properties: {\n tabs: {\n type: 'void',\n 'x-component': 'Tabs',\n 'x-component-props': {},\n 'x-initializer': 'TabPaneInitializers',\n properties: {\n tab1: {\n type: 'void',\n title: '{{t(\"Details\")}}',\n 'x-component': 'Tabs.TabPane',\n 'x-designer': 'Tabs.Designer',\n 'x-component-props': {},\n properties: {\n grid: {\n type: 'void',\n 'x-component': 'Grid',\n 'x-initializer': 'RecordBlockInitializers',\n properties: {},\n },\n },\n },\n },\n },\n },\n },\n },\n };\n return <ActionInitializer {...props} schema={schema} />;\n};\n\nexport const UpdateActionInitializer = (props) => {\n const schema = {\n type: 'void',\n title: '{{ t(\"Edit\") }}',\n 'x-action': 'update',\n 'x-designer': 'Action.Designer',\n 'x-component': 'Action',\n 'x-component-props': {\n openMode: 'drawer',\n icon: 'EditOutlined',\n },\n properties: {\n drawer: {\n type: 'void',\n title: '{{ t(\"Edit record\") }}',\n 'x-component': 'Action.Container',\n 'x-component-props': {\n className: 'nb-action-popup',\n },\n properties: {\n tabs: {\n type: 'void',\n 'x-component': 'Tabs',\n 'x-component-props': {},\n 'x-initializer': 'TabPaneInitializers',\n properties: {\n tab1: {\n type: 'void',\n title: '{{t(\"Edit\")}}',\n 'x-component': 'Tabs.TabPane',\n 'x-designer': 'Tabs.Designer',\n 'x-component-props': {},\n properties: {\n grid: {\n type: 'void',\n 'x-component': 'Grid',\n 'x-initializer': 'RecordBlockInitializers',\n properties: {},\n },\n },\n },\n },\n },\n },\n },\n },\n };\n return <ActionInitializer {...props} schema={schema} />;\n};\n\nexport const DestroyActionInitializer = (props) => {\n const schema = {\n title: '{{ t(\"Delete\") }}',\n 'x-action': 'destroy',\n 'x-component': 'Action',\n 'x-designer': 'Action.Designer',\n 'x-component-props': {\n icon: 'DeleteOutlined',\n confirm: {\n title: \"{{t('Delete record')}}\",\n content: \"{{t('Are you sure you want to delete it?')}}\",\n },\n useProps: '{{ useDestroyActionProps }}',\n },\n };\n return <ActionInitializer {...props} schema={schema} />;\n};\n\nexport const BulkDestroyActionInitializer = (props) => {\n const schema = {\n title: '{{ t(\"Delete\") }}',\n 'x-action': 'destroy',\n 'x-component': 'Action',\n 'x-designer': 'Action.Designer',\n 'x-component-props': {\n icon: 'DeleteOutlined',\n confirm: {\n title: \"{{t('Delete record')}}\",\n content: \"{{t('Are you sure you want to delete it?')}}\",\n },\n useProps: '{{ useBulkDestroyActionProps }}',\n },\n };\n return <ActionInitializer {...props} schema={schema} />;\n};\n\nexport const SubmitActionInitializer = (props) => {\n const schema = {\n title: '{{ t(\"Submit\") }}',\n 'x-action': 'submit',\n 'x-component': 'Action',\n 'x-designer': 'Action.Designer',\n 'x-component-props': {\n type: 'primary',\n htmlType: 'submit',\n // useProps: '{{ bp.useSubmitActionProps }}',\n },\n };\n return <ActionInitializer {...props} schema={schema} />;\n};\n\nexport const CreateSubmitActionInitializer = (props) => {\n const schema = {\n title: '{{ t(\"Submit\") }}',\n 'x-action': 'submit',\n 'x-component': 'Action',\n 'x-designer': 'Action.Designer',\n 'x-component-props': {\n type: 'primary',\n htmlType: 'submit',\n useProps: '{{ useCreateActionProps }}',\n },\n };\n return <ActionInitializer {...props} schema={schema} />;\n};\n\nexport const UpdateSubmitActionInitializer = (props) => {\n const schema = {\n title: '{{ t(\"Submit\") }}',\n 'x-action': 'submit',\n 'x-component': 'Action',\n 'x-designer': 'Action.Designer',\n 'x-component-props': {\n type: 'primary',\n htmlType: 'submit',\n useProps: '{{ useUpdateActionProps }}',\n },\n };\n return <ActionInitializer {...props} schema={schema} />;\n};\n\nexport const CreateFormBlockInitializer = (props) => {\n const { onCreateBlockSchema, componentType, createBlockSchema, insert, ...others } = props;\n const { getTemplateSchemaByMode } = useSchemaTemplateManager();\n const association = useBlockAssociationContext();\n const collection = useCollection();\n return (\n <SchemaInitializer.Item\n icon={<FormOutlined />}\n {...others}\n onClick={async ({ item }) => {\n if (item.template) {\n const s = await getTemplateSchemaByMode(item);\n if (item.template.componentName === 'FormItem') {\n const blockSchema = createFormBlockSchema({\n actionInitializers: 'CreateFormActionInitializers',\n association,\n collection: collection.name,\n template: s,\n });\n if (item.mode === 'reference') {\n blockSchema['x-template-key'] = item.template.key;\n }\n insert(blockSchema);\n } else {\n insert(s);\n }\n } else {\n insert(\n createFormBlockSchema({\n actionInitializers: 'CreateFormActionInitializers',\n association,\n collection: collection.name,\n }),\n );\n }\n }}\n items={useRecordCollectionDataSourceItems('FormItem')}\n />\n );\n};\n\nexport const RecordFormBlockInitializer = (props) => {\n const { onCreateBlockSchema, componentType, createBlockSchema, insert, ...others } = props;\n const { getTemplateSchemaByMode } = useSchemaTemplateManager();\n const collection = useCollection();\n const association = useBlockAssociationContext();\n return (\n <SchemaInitializer.Item\n icon={<FormOutlined />}\n {...others}\n onClick={async ({ item }) => {\n if (item.template) {\n const s = await getTemplateSchemaByMode(item);\n if (item.template.componentName === 'FormItem') {\n const blockSchema = createFormBlockSchema({\n association,\n collection: collection.name,\n action: 'get',\n useSourceId: '{{ useSourceIdFromParentRecord }}',\n useParams: '{{ useParamsFromRecord }}',\n actionInitializers: 'UpdateFormActionInitializers',\n template: s,\n });\n if (item.mode === 'reference') {\n blockSchema['x-template-key'] = item.template.key;\n }\n insert(blockSchema);\n } else {\n insert(s);\n }\n } else {\n insert(\n createFormBlockSchema({\n association,\n collection: collection.name,\n action: 'get',\n useSourceId: '{{ useSourceIdFromParentRecord }}',\n useParams: '{{ useParamsFromRecord }}',\n actionInitializers: 'UpdateFormActionInitializers',\n }),\n );\n }\n }}\n items={useRecordCollectionDataSourceItems('FormItem')}\n />\n );\n};\n\nexport const RecordReadPrettyFormBlockInitializer = (props) => {\n const { onCreateBlockSchema, componentType, createBlockSchema, insert, ...others } = props;\n const { getTemplateSchemaByMode } = useSchemaTemplateManager();\n const collection = useCollection();\n const association = useBlockAssociationContext();\n return (\n <SchemaInitializer.Item\n icon={<FormOutlined />}\n {...others}\n onClick={async ({ item }) => {\n if (item.template) {\n const s = await getTemplateSchemaByMode(item);\n if (item.template.componentName === 'ReadPrettyFormItem') {\n const blockSchema = createReadPrettyFormBlockSchema({\n association,\n collection: collection.name,\n action: 'get',\n useSourceId: '{{ useSourceIdFromParentRecord }}',\n useParams: '{{ useParamsFromRecord }}',\n template: s,\n });\n if (item.mode === 'reference') {\n blockSchema['x-template-key'] = item.template.key;\n }\n insert(blockSchema);\n } else {\n insert(s);\n }\n } else {\n insert(\n createReadPrettyFormBlockSchema({\n association,\n collection: collection.name,\n action: 'get',\n useSourceId: '{{ useSourceIdFromParentRecord }}',\n useParams: '{{ useParamsFromRecord }}',\n }),\n );\n }\n }}\n items={useRecordCollectionDataSourceItems('ReadPrettyFormItem')}\n />\n );\n};\n\nexport const RecordAssociationBlockInitializer = (props) => {\n const { item, onCreateBlockSchema, componentType, createBlockSchema, insert, ...others } = props;\n const { getTemplateSchemaByMode } = useSchemaTemplateManager();\n const { getCollection } = useCollectionManager();\n return (\n <SchemaInitializer.Item\n icon={<TableOutlined />}\n {...others}\n onClick={async ({ item }) => {\n console.log('RecordAssociationBlockInitializer', item);\n const field = item.field;\n const collection = getCollection(field.target);\n insert(\n createTableBlockSchema({\n rowKey: collection.filterTargetKey,\n collection: field.target,\n resource: `${field.collectionName}.${field.name}`,\n association: `${field.collectionName}.${field.name}`,\n }),\n );\n // if (item.template) {\n // const s = await getTemplateSchemaByMode(item);\n // insert(s);\n // } else {\n // insert(createTableBlockSchema({ collection: item.name }));\n // }\n }}\n // items={useRecordCollectionDataSourceItems('Table')}\n />\n );\n};\n\nexport const TableActionColumnInitializer = (props) => {\n const schema = {\n type: 'void',\n title: '{{ t(\"Actions\") }}',\n 'x-decorator': 'TableV2.Column.ActionBar',\n 'x-component': 'TableV2.Column',\n 'x-designer': 'TableV2.ActionColumnDesigner',\n 'x-initializer': 'TableActionColumnInitializers',\n 'x-action-column': 'actions',\n properties: {\n actions: {\n type: 'void',\n 'x-decorator': 'DndContext',\n 'x-component': 'Space',\n 'x-component-props': {\n split: '|',\n },\n properties: {},\n },\n },\n };\n return <InitializerWithSwitch {...props} schema={schema} type={'x-action-column'} />;\n};\n\nexport const TableCollectionFieldInitializer = (props) => {\n const schema: ISchema = {};\n return <InitializerWithSwitch {...props} schema={schema} type={'x-collection-field'} />;\n};\n\nexport const CollectionFieldInitializer = (props) => {\n const schema: ISchema = {};\n return <InitializerWithSwitch {...props} schema={schema} type={'x-collection-field'} />;\n};\n\nexport const TableSelectorInitializer = (props) => {\n const { onCreateBlockSchema, componentType, createBlockSchema, insert, ...others } = props;\n const { getTemplateSchemaByMode } = useSchemaTemplateManager();\n const collection = useCollection();\n return (\n <SchemaInitializer.Item\n icon={<FormOutlined />}\n {...others}\n onClick={async ({ item }) => {\n const field = item.field;\n insert(\n createTableSelectorSchema({\n rowKey: collection.filterTargetKey,\n collection: collection.name,\n resource: collection.name,\n }),\n );\n }}\n />\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/schema-initializer/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ISchema, Schema } from '@formily/react';\nimport { ButtonProps, DropDownProps, MenuItemProps } from 'antd';\n\nexport interface SchemaInitializerButtonProps extends ButtonProps {\n insert?: (s: ISchema) => void;\n wrap?: (s: ISchema) => ISchema;\n insertPosition?: 'beforeBegin' | 'afterBegin' | 'beforeEnd' | 'afterEnd';\n items?: SchemaInitializerItemOptions[];\n dropdown?: DropDownProps;\n component?: any;\n designable?: boolean;\n onSuccess?: any;\n}\n\nexport type SchemaInitializerItemOptions = ItemGroupOptions | SubMenuOptions | ItemOptions | DividerOptions;\n\ninterface ItemCommonOptions {\n title?: any;\n key?: string;\n}\n\ninterface ItemGroupOptions extends ItemCommonOptions {\n type: 'itemGroup';\n children?: SchemaInitializerItemOptions[];\n}\n\ninterface SubMenuOptions extends ItemCommonOptions {\n type: 'subMenu';\n children?: SchemaInitializerItemOptions[];\n}\n\ntype BreakFn = (s: ISchema) => boolean;\n\ninterface RemoveOptions {\n removeParentsIfNoChildren?: boolean;\n breakRemoveOn?: ISchema | BreakFn;\n}\n\ntype RemoveCallback = (s: Schema, options?: RemoveOptions) => void;\n\ninterface ItemOptions extends ItemCommonOptions {\n type: 'item';\n component?: any;\n schema?: ISchema;\n remove?: (schema: Schema, cb: RemoveCallback) => void;\n find?: (schema: Schema, key?: string, current?: string) => Schema | null | undefined;\n [key: string]: any;\n}\n\ninterface DividerOptions {\n type: 'divider';\n}\n\nexport type SchemaInitializerItemComponent = (props?: SchemaInitializerItemComponentProps) => any;\n\ninterface SchemaInitializerItemComponentProps {\n insert?: (s: ISchema) => void;\n item?: ItemOptions;\n}\n\nexport interface SchemaInitializerItemProps extends Omit<MenuItemProps, 'onClick'> {\n items?: SchemaInitializerItemOptions[];\n onClick?: MenuClickEventHandler;\n}\n\ntype MenuClickEventHandler = (info: MenuInfo) => void;\n\ninterface MenuInfo {\n // key: string;\n // keyPath: string[];\n item: ItemOptions;\n domEvent: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/schema-initializer/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wCAA0E;AAC1E,0CAAsC;AACtC,+CAA+C;AAE/C,4DAA4E;AAC5E,wDAAoD;AACpD,wDAA+D;AAExD,IAAM,UAAU,GAAG,UAAC,MAAM,EAAE,MAAM;IACvC,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAEK,IAAM,cAAc,GAAG,UAAC,MAAe;;IAC5C,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,aAAa,EAAE,UAAU;QACzB,UAAU;YACR,GAAC,IAAA,YAAG,GAAE,IAAG;gBACP,IAAI,EAAE,MAAM;gBACZ,aAAa,EAAE,UAAU;gBACzB,UAAU;oBACR,GAAC,MAAM,CAAC,IAAI,IAAI,IAAA,YAAG,GAAE,IAAG,MAAM;uBAC/B;aACF;eACF;KACF,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,cAAc,kBAczB;AAEK,IAAM,iBAAiB,GAAG,UAAC,MAAM,EAAE,EAAE;IAC1C,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACpB,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B;AAEK,IAAM,kBAAkB,GAAG,UAAC,MAAM,EAAE,EAAE;IAC3C,EAAE,CAAC,MAAM,EAAE;QACT,yBAAyB,EAA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E,UAAU,EAAE,KAAK,EAAE;6BAC3C;yBACF;qBACF;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,iBAAiB;wBACxB,YAAY,EAAE,iBAAiB;wBAC/B,aAAa,EAAE,qBAAqB;wBACpC,mBAAmB,EAAE;4BACnB,QAAQ,EAAE,QAAQ;yBACnB;wBACD,UAAU,EAAE;4BACV,MAAM,EAAE;gCACN,IAAI,EAAE,MAAM;gCACZ,KAAK,EAAE,wBAAwB;gCAC/B,aAAa,EAAE,kBAAkB;gCACjC,mBAAmB,EAAE;oCACnB,SAAS,EAAE,iBAAiB;iCAC7B;gCACD,UAAU,EAAE;oCACV,IAAI,EAAE;wCACJ,IAAI,EAAE,MAAM;wCACZ,aAAa,EAAE,MAAM;wCACrB,mBAAmB,EAAE,EAAE;wCACvB,eAAe,EAAE,qBAAqB;wCACtC,UAAU,EAAE;4CACV,IAAI,EAAE;gDACJ,IAAI,EAAE,MAAM;gDACZ,KAAK,EAAE,kBAAkB;gDACzB,aAAa,EAAE,cAAc;gDAC7B,YAAY,EAAE,eAAe;gDAC7B,mBAAmB,EAAE,EAAE;gDACvB,UAAU,EAAE;oDACV,IAAI,EAAE;wDACJ,IAAI,EAAE,MAAM;wDACZ,aAAa,EAAE,MAAM;wDACrB,eAAe,EAAE,yBAAyB;wDAC1C,UAAU,EAAE,EAAE;qDACf;iDACF;6CACF;yCACF;qCACF;iCACF;6BACF;yBACF;qBACF;iBACF;aACF;eACF;KACF,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AApGW,QAAA,uBAAuB,2BAoGlC","sourcesContent":["import { ISchema, Schema, useFieldSchema, useForm } from '@formily/react';\nimport { uid } from '@formily/shared';\nimport { useTranslation } from 'react-i18next';\nimport { SchemaInitializerItemOptions } from '../';\nimport { useCollection, useCollectionManager } from '../collection-manager';\nimport { useDesignable } from '../schema-component';\nimport { useSchemaTemplateManager } from '../schema-templates';\n\nexport const itemsMerge = (items1, items2) => {\n return items1;\n};\n\nexport const gridRowColWrap = (schema: ISchema) => {\n return {\n type: 'void',\n 'x-component': 'Grid.Row',\n properties: {\n [uid()]: {\n type: 'void',\n 'x-component': 'Grid.Col',\n properties: {\n [schema.name || uid()]: schema,\n },\n },\n },\n };\n};\n\nexport const removeTableColumn = (schema, cb) => {\n cb(schema.parent);\n};\n\nexport const removeGridFormItem = (schema, cb) => {\n cb(schema, {\n removeParentsIfNoChildren: true,\n breakRemoveOn: {\n 'x-component': 'Grid',\n },\n });\n};\n\nexport const findTableColumn = (schema: Schema, key: string, action: string, deepth: number = 0) => {\n return schema.reduceProperties((buf, s) => {\n if (s[key] === action) {\n return s;\n }\n const c = s.reduceProperties((buf, s) => {\n if (s[key] === action) {\n return s;\n }\n return buf;\n });\n if (c) {\n return c;\n }\n return buf;\n });\n};\n\nexport const useTableColumnInitializerFields = () => {\n const { name, fields = [] } = useCollection();\n const { getInterface } = useCollectionManager();\n return fields\n .filter((field) => field?.interface && field?.interface !== 'subTable')\n .map((field) => {\n const interfaceConfig = getInterface(field.interface);\n const schema = {\n name: field.name,\n 'x-collection-field': `${name}.${field.name}`,\n 'x-component': 'CollectionField',\n 'x-read-pretty': true,\n 'x-component-props': {},\n };\n // interfaceConfig?.schemaInitialize?.(schema, { field, readPretty: true, block: 'Table' });\n return {\n type: 'item',\n title: field?.uiSchema?.title || field.name,\n component: 'TableCollectionFieldInitializer',\n find: findTableColumn,\n remove: removeTableColumn,\n schemaInitialize: (s) => {\n interfaceConfig?.schemaInitialize?.(s, { field, readPretty: true, block: 'Table' });\n },\n field,\n schema,\n } as SchemaInitializerItemOptions;\n });\n};\n\nexport const useFormItemInitializerFields = (options?: any) => {\n const { name, fields } = useCollection();\n const { getInterface } = useCollectionManager();\n const form = useForm();\n const { readPretty = form.readPretty } = options || {};\n return fields\n ?.filter((field) => field?.interface)\n ?.map((field) => {\n const interfaceConfig = getInterface(field.interface);\n const schema = {\n type: 'string',\n name: field.name,\n // title: field?.uiSchema?.title || field.name,\n 'x-designer': 'FormItem.Designer',\n 'x-component': 'CollectionField',\n 'x-decorator': 'FormItem',\n 'x-collection-field': `${name}.${field.name}`,\n };\n // interfaceConfig?.schemaInitialize?.(schema, { field, block: 'Form', readPretty: form.readPretty });\n return {\n type: 'item',\n title: field?.uiSchema?.title || field.name,\n component: 'CollectionFieldInitializer',\n remove: removeGridFormItem,\n schemaInitialize: (s) => {\n interfaceConfig?.schemaInitialize?.(s, { field, block: 'Form', readPretty });\n },\n schema,\n } as SchemaInitializerItemOptions;\n });\n};\n\nconst findSchema = (schema: Schema, key: string, action: string) => {\n return schema.reduceProperties((buf, s) => {\n if (s[key] === action) {\n return s;\n }\n const c = findSchema(s, key, action);\n if (c) {\n return c;\n }\n return buf;\n });\n};\n\nconst removeSchema = (schema, cb) => {\n return cb(schema);\n};\n\nexport const useCurrentSchema = (action: string, key: string, find = findSchema, rm = removeSchema) => {\n const fieldSchema = useFieldSchema();\n const { remove } = useDesignable();\n const schema = find(fieldSchema, key, action);\n return {\n schema,\n exists: !!schema,\n remove() {\n schema && rm(schema, remove);\n },\n };\n};\n\nexport const useRecordCollectionDataSourceItems = (componentName) => {\n const { t } = useTranslation();\n const collection = useCollection();\n const { getTemplatesByCollection } = useSchemaTemplateManager();\n const templates = getTemplatesByCollection(collection.name).filter((template) => {\n return componentName && template.componentName === componentName;\n });\n if (!templates.length) {\n return [];\n }\n const index = 0;\n return [\n {\n type: 'item',\n name: collection.name,\n title: t('Blank block'),\n },\n {\n type: 'divider',\n },\n {\n key: `${componentName}_table_subMenu_${index}_copy`,\n type: 'subMenu',\n name: 'copy',\n title: t('Duplicate template'),\n children: templates.map((template) => {\n const templateName =\n template?.componentName === 'ReadPrettyFormItem' ? `${template?.name} ${t('(Fields only)')}` : template?.name;\n return {\n type: 'item',\n mode: 'copy',\n name: collection.name,\n template,\n title: templateName || t('Untitled'),\n };\n }),\n },\n {\n key: `${componentName}_table_subMenu_${index}_ref`,\n type: 'subMenu',\n name: 'ref',\n title: t('Reference template'),\n children: templates.map((template) => {\n const templateName =\n template?.componentName === 'ReadPrettyFormItem' ? `${template?.name} ${t('(Fields only)')}` : template?.name;\n return {\n type: 'item',\n mode: 'reference',\n name: collection.name,\n template,\n title: templateName || t('Untitled'),\n };\n }),\n },\n ];\n};\n\nexport const useCollectionDataSourceItems = (componentName) => {\n const { t } = useTranslation();\n const { collections } = useCollectionManager();\n const { getTemplatesByCollection } = useSchemaTemplateManager();\n return [\n {\n key: 'tableBlock',\n type: 'itemGroup',\n title: t('Select collection'),\n children: collections\n ?.filter((item) => !item.inherit)\n ?.map((item, index) => {\n const templates = getTemplatesByCollection(item.name).filter((template) => {\n return componentName && template.componentName === componentName;\n });\n if (!templates.length) {\n return {\n type: 'item',\n name: item.name,\n title: item.title,\n };\n }\n return {\n key: `${componentName}_table_subMenu_${index}`,\n type: 'subMenu',\n name: `${item.name}_${index}`,\n title: item.title,\n children: [\n {\n type: 'item',\n name: item.name,\n title: t('Blank block'),\n },\n {\n type: 'divider',\n },\n {\n key: `${componentName}_table_subMenu_${index}_copy`,\n type: 'subMenu',\n name: 'copy',\n title: t('Duplicate template'),\n children: templates.map((template) => {\n const templateName =\n template?.componentName === 'FormItem' ? `${template?.name} ${t('(Fields only)')}` : template?.name;\n return {\n type: 'item',\n mode: 'copy',\n name: item.name,\n template,\n title: templateName || t('Untitled'),\n };\n }),\n },\n {\n key: `${componentName}_table_subMenu_${index}_ref`,\n type: 'subMenu',\n name: 'ref',\n title: t('Reference template'),\n children: templates.map((template) => {\n const templateName =\n template?.componentName === 'FormItem' ? `${template?.name} ${t('(Fields only)')}` : template?.name;\n return {\n type: 'item',\n mode: 'reference',\n name: item.name,\n template,\n title: templateName || t('Untitled'),\n };\n }),\n },\n ],\n };\n }),\n },\n ];\n};\n\nexport const createDetailsBlockSchema = (options) => {\n const {\n formItemInitializers = 'ReadPrettyFormItemInitializers',\n actionInitializers = 'DetailsActionInitializers',\n collection,\n association,\n resource,\n template,\n ...others\n } = options;\n const resourceName = resource || association || collection;\n const schema: ISchema = {\n type: 'void',\n 'x-acl-action': `${resourceName}:get`,\n 'x-decorator': 'DetailsBlockProvider',\n 'x-decorator-props': {\n resource: resourceName,\n collection,\n association,\n readPretty: true,\n action: 'list',\n params: {\n pageSize: 1,\n },\n // useParams: '{{ useParamsFromRecord }}',\n ...others,\n },\n 'x-designer': 'DetailsDesigner',\n 'x-component': 'CardItem',\n properties: {\n [uid()]: {\n type: 'void',\n 'x-component': 'FormV2',\n 'x-read-pretty': true,\n 'x-component-props': {\n useProps: '{{ useDetailsBlockProps }}',\n },\n properties: {\n actions: {\n type: 'void',\n 'x-initializer': actionInitializers,\n 'x-component': 'ActionBar',\n 'x-component-props': {\n style: {\n marginBottom: 24,\n },\n },\n properties: {},\n },\n grid: template || {\n type: 'void',\n 'x-component': 'Grid',\n 'x-initializer': formItemInitializers,\n properties: {},\n },\n pagination: {\n type: 'void',\n 'x-component': 'Pagination',\n 'x-component-props': {\n useProps: '{{ useDetailsPaginationProps }}',\n },\n },\n },\n },\n },\n };\n console.log(JSON.stringify(schema, null, 2));\n return schema;\n};\n\nexport const createFormBlockSchema = (options) => {\n const {\n formItemInitializers = 'FormItemInitializers',\n actionInitializers = 'FormActionInitializers',\n collection,\n resource,\n association,\n action,\n template,\n ...others\n } = options;\n const resourceName = resource || association || collection;\n const schema: ISchema = {\n type: 'void',\n 'x-acl-action-props': {\n skipScopeCheck: !action,\n },\n 'x-acl-action': action ? `${resourceName}:update` : `${resourceName}:create`,\n 'x-decorator': 'FormBlockProvider',\n 'x-decorator-props': {\n ...others,\n action,\n resource: resourceName,\n collection,\n association,\n // action: 'get',\n // useParams: '{{ useParamsFromRecord }}',\n },\n 'x-designer': 'FormV2.Designer',\n 'x-component': 'CardItem',\n properties: {\n [uid()]: {\n type: 'void',\n 'x-component': 'FormV2',\n 'x-component-props': {\n useProps: '{{ useFormBlockProps }}',\n },\n properties: {\n grid: template || {\n type: 'void',\n 'x-component': 'Grid',\n 'x-initializer': formItemInitializers,\n properties: {},\n },\n actions: {\n type: 'void',\n 'x-initializer': actionInitializers,\n 'x-component': 'ActionBar',\n 'x-component-props': {\n layout: 'one-column',\n style: {\n marginTop: 24,\n },\n },\n properties: {},\n },\n },\n },\n },\n };\n console.log(JSON.stringify(schema, null, 2));\n return schema;\n};\n\nexport const createReadPrettyFormBlockSchema = (options) => {\n const {\n formItemInitializers = 'ReadPrettyFormItemInitializers',\n actionInitializers = 'ReadPrettyFormActionInitializers',\n collection,\n association,\n resource,\n template,\n ...others\n } = options;\n const resourceName = resource || association || collection;\n const schema: ISchema = {\n type: 'void',\n 'x-acl-action': `${resourceName}:get`,\n 'x-decorator': 'FormBlockProvider',\n 'x-decorator-props': {\n resource: resourceName,\n collection,\n association,\n readPretty: true,\n action: 'get',\n useParams: '{{ useParamsFromRecord }}',\n ...others,\n },\n 'x-designer': 'FormV2.ReadPrettyDesigner',\n 'x-component': 'CardItem',\n properties: {\n [uid()]: {\n type: 'void',\n 'x-component': 'FormV2',\n 'x-read-pretty': true,\n 'x-component-props': {\n useProps: '{{ useFormBlockProps }}',\n },\n properties: {\n actions: {\n type: 'void',\n 'x-initializer': actionInitializers,\n 'x-component': 'ActionBar',\n 'x-component-props': {\n style: {\n marginBottom: 24,\n },\n },\n properties: {},\n },\n grid: template || {\n type: 'void',\n 'x-component': 'Grid',\n 'x-initializer': formItemInitializers,\n properties: {},\n },\n },\n },\n },\n };\n console.log(JSON.stringify(schema, null, 2));\n return schema;\n};\n\nexport const createTableBlockSchema = (options) => {\n const { collection, resource, rowKey, ...others } = options;\n const schema: ISchema = {\n type: 'void',\n 'x-decorator': 'TableBlockProvider',\n 'x-acl-action': `${resource || collection}:list`,\n 'x-decorator-props': {\n collection,\n resource: resource || collection,\n action: 'list',\n params: {\n pageSize: 20,\n },\n rowKey,\n showIndex: true,\n dragSort: false,\n ...others,\n },\n 'x-designer': 'TableBlockDesigner',\n 'x-component': 'CardItem',\n properties: {\n actions: {\n type: 'void',\n 'x-initializer': 'TableActionInitializers',\n 'x-component': 'ActionBar',\n 'x-component-props': {\n style: {\n marginBottom: 16,\n },\n },\n properties: {},\n },\n [uid()]: {\n type: 'array',\n 'x-initializer': 'TableColumnInitializers',\n 'x-component': 'TableV2',\n 'x-component-props': {\n rowKey: 'id',\n rowSelection: {\n type: 'checkbox',\n },\n useProps: '{{ useTableBlockProps }}',\n },\n properties: {\n actions: {\n type: 'void',\n title: '{{ t(\"Actions\") }}',\n 'x-action-column': 'actions',\n 'x-decorator': 'TableV2.Column.ActionBar',\n 'x-component': 'TableV2.Column',\n 'x-designer': 'TableV2.ActionColumnDesigner',\n 'x-initializer': 'TableActionColumnInitializers',\n properties: {\n actions: {\n type: 'void',\n 'x-decorator': 'DndContext',\n 'x-component': 'Space',\n 'x-component-props': {\n split: '|',\n },\n properties: {},\n },\n },\n },\n },\n },\n },\n };\n console.log(JSON.stringify(schema, null, 2));\n return schema;\n};\n\nexport const createTableSelectorSchema = (options) => {\n const { collection, resource, rowKey, ...others } = options;\n const schema: ISchema = {\n type: 'void',\n 'x-acl-action': `${resource || collection}:list`,\n 'x-decorator': 'TableSelectorProvider',\n 'x-decorator-props': {\n collection,\n resource: resource || collection,\n action: 'list',\n params: {\n pageSize: 20,\n },\n rowKey,\n ...others,\n },\n 'x-designer': 'TableSelectorDesigner',\n 'x-component': 'BlockItem',\n properties: {\n actions: {\n type: 'void',\n 'x-initializer': 'TableActionInitializers',\n 'x-component': 'ActionBar',\n 'x-component-props': {\n style: {\n marginBottom: 16,\n },\n },\n properties: {},\n },\n value: {\n type: 'array',\n 'x-initializer': 'TableColumnInitializers',\n 'x-component': 'TableV2.Selector',\n 'x-component-props': {\n rowSelection: {\n type: 'checkbox',\n },\n useProps: '{{ useTableSelectorProps }}',\n },\n properties: {},\n },\n },\n };\n console.log(JSON.stringify(schema, null, 2));\n return schema;\n};\n\nexport const createCalendarBlockSchema = (options) => {\n const { collection, resource, fieldNames, ...others } = options;\n const schema: ISchema = {\n type: 'void',\n 'x-acl-action': `${resource || collection}:list`,\n 'x-decorator': 'CalendarBlockProvider',\n 'x-decorator-props': {\n collection: collection,\n resource: resource || collection,\n action: 'list',\n fieldNames: {\n id: 'id',\n ...fieldNames,\n },\n params: {\n paginate: false,\n },\n ...others,\n },\n 'x-designer': 'CalendarV2.Designer',\n 'x-component': 'CardItem',\n properties: {\n [uid()]: {\n type: 'void',\n 'x-component': 'CalendarV2',\n 'x-component-props': {\n useProps: '{{ useCalendarBlockProps }}',\n },\n properties: {\n toolBar: {\n type: 'void',\n 'x-component': 'CalendarV2.ActionBar',\n 'x-component-props': {\n style: {\n marginBottom: 24,\n },\n },\n 'x-initializer': 'CalendarActionInitializers',\n properties: {},\n },\n event: {\n type: 'void',\n 'x-component': 'CalendarV2.Event',\n properties: {\n drawer: {\n type: 'void',\n 'x-component': 'Action.Drawer',\n 'x-component-props': {\n className: 'nb-action-popup',\n },\n title: '{{ t(\"View record\") }}',\n properties: {\n tabs: {\n type: 'void',\n 'x-component': 'Tabs',\n 'x-component-props': {},\n 'x-initializer': 'TabPaneInitializers',\n properties: {\n tab1: {\n type: 'void',\n title: '{{t(\"Details\")}}',\n 'x-component': 'Tabs.TabPane',\n 'x-designer': 'Tabs.Designer',\n 'x-component-props': {},\n properties: {\n grid: {\n type: 'void',\n 'x-component': 'Grid',\n 'x-initializer': 'RecordBlockInitializers',\n properties: {},\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n };\n console.log(JSON.stringify(schema, null, 2));\n return schema;\n};\n\nexport const createKanbanBlockSchema = (options) => {\n const { collection, resource, groupField, ...others } = options;\n const schema: ISchema = {\n type: 'void',\n 'x-acl-action': `${resource || collection}:list`,\n 'x-decorator': 'KanbanBlockProvider',\n 'x-decorator-props': {\n collection: collection,\n resource: resource || collection,\n action: 'list',\n groupField,\n params: {\n paginate: false,\n },\n ...others,\n },\n 'x-designer': 'KanbanV2.Designer',\n 'x-component': 'CardItem',\n properties: {\n actions: {\n type: 'void',\n 'x-initializer': 'KanbanActionInitializers',\n 'x-component': 'ActionBar',\n 'x-component-props': {\n style: {\n marginBottom: 16,\n },\n },\n properties: {},\n },\n [uid()]: {\n type: 'array',\n 'x-component': 'KanbanV2',\n 'x-component-props': {\n useProps: '{{ useKanbanBlockProps }}',\n },\n properties: {\n card: {\n type: 'void',\n 'x-read-pretty': true,\n 'x-decorator': 'BlockItem',\n 'x-component': 'KanbanV2.Card',\n 'x-designer': 'KanbanV2.Card.Designer',\n properties: {\n grid: {\n type: 'void',\n 'x-component': 'Grid',\n 'x-component-props': { dndContext: false },\n },\n },\n },\n cardViewer: {\n type: 'void',\n title: '{{ t(\"View\") }}',\n 'x-designer': 'Action.Designer',\n 'x-component': 'KanbanV2.CardViewer',\n 'x-component-props': {\n openMode: 'drawer',\n },\n properties: {\n drawer: {\n type: 'void',\n title: '{{ t(\"View record\") }}',\n 'x-component': 'Action.Container',\n 'x-component-props': {\n className: 'nb-action-popup',\n },\n properties: {\n tabs: {\n type: 'void',\n 'x-component': 'Tabs',\n 'x-component-props': {},\n 'x-initializer': 'TabPaneInitializers',\n properties: {\n tab1: {\n type: 'void',\n title: '{{t(\"Details\")}}',\n 'x-component': 'Tabs.TabPane',\n 'x-designer': 'Tabs.Designer',\n 'x-component-props': {},\n properties: {\n grid: {\n type: 'void',\n 'x-component': 'Grid',\n 'x-initializer': 'RecordBlockInitializers',\n properties: {},\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n };\n return schema;\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"GeneralSchemaDesigner.js","sourceRoot":"","sources":["../../src/schema-settings/GeneralSchemaDesigner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,oCAAmC;AACnC,wCAA0D;AAC1D,6BAA6B;AAC7B,0DAAoC;AAEpC,+CAA+C;AAC/C,wDAA6E;AAC7E,mDAAkD;AAElD,IAAM,QAAQ,OAAG,SAAG,0cA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WAAW,iBAAG,CAAC,CAAC,oBAAoB,CAAC,QAAI,YAAY,IAAI,CAAC,CAAC,UAAU,CAAC,aAAQ,aACtG,YACJ,CACP,EACD,yCAAK,SAAS,EAAE,+BAA+B,gBAC7C,wBAAC,YAAK,aAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,iBAC5B,SAAS,IAAI,CACZ,uBAAC,8BAAW,cACV,uBAAC,oBAAY,aAAG,WACJ,CACf,EACD,uBAAC,+BAAc,aAAC,KAAK,EAAE,uBAAC,oBAAY,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,WAAI,IAAM,mBAAmB,cACzG,KAAK,CAAC,QAAQ,YACA,aACX,YACJ,aACF,CACP,CAAC;AACJ,CAAC,CAAC;AAxCW,QAAA,qBAAqB,yBAwChC","sourcesContent":["import { DragOutlined, MenuOutlined } from '@ant-design/icons';\nimport { css } from '@emotion/css';\nimport { useField, useFieldSchema } from '@formily/react';\nimport { Space } from 'antd';\nimport classNames from 'classnames';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { DragHandler, useCompile, useDesignable } from '../schema-component';\nimport { SchemaSettings } from './SchemaSettings';\n\nconst titleCss = css`\n pointer-events: none;\n position: absolute;\n font-size: 12px;\n /* background: #f18b62;\n color: #fff; */\n padding: 0;\n line-height: 16px;\n height: 16px;\n border-bottom-right-radius: 2px;\n border-radius: 2px;\n top: 2px;\n left: 2px;\n .title-tag {\n padding: 0 3px;\n border-radius: 2px;\n background: #f18b62;\n color: #fff;\n display: block;\n }\n`;\n\nexport const GeneralSchemaDesigner = (props: any) => {\n const { title, template, draggable = true } = props;\n const { dn, designable } = useDesignable();\n const field = useField();\n const { t } = useTranslation();\n const fieldSchema = useFieldSchema();\n const compile = useCompile();\n const schemaSettingsProps = {\n dn,\n field,\n fieldSchema,\n };\n if (!designable) {\n return null;\n }\n const templateName = ['FormItem', 'ReadPrettyFormItem'].includes(template?.componentName) ? `${template?.name} ${t('(Fields only)')}` : template?.name;\n return (\n <div className={'general-schema-designer'}>\n {title && (\n <div className={classNames('general-schema-designer-title', titleCss)}>\n <Space size={2}>\n <span className={'title-tag'}>{compile(title)}</span>\n {template && <span className={'title-tag'}>{t('Reference template')}: {templateName || t('Untitled')}</span>}\n </Space>\n </div>\n )}\n <div className={'general-schema-designer-icons'}>\n <Space size={2} align={'center'}>\n {draggable && (\n <DragHandler>\n <DragOutlined />\n </DragHandler>\n )}\n <SchemaSettings title={<MenuOutlined style={{ cursor: 'pointer', fontSize: 12 }} />} {...schemaSettingsProps}>\n {props.children}\n </SchemaSettings>\n </Space>\n </div>\n </div>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SchemaSettings.js","sourceRoot":"","sources":["../../src/schema-settings/SchemaSettings.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAAmC;AACnC,sCAAwE;AAExE,wCAAuE;AACvE,0CAAsC;AACtC,6BAA4E;AAC5E,0DAAoC;AACpC,+BAAmE;AACnE,+CAA+C;AAC/C,wBASY;AACZ,wDAA+D;AAC/D,mEAA4E;AAmB5E,IAAM,qBAAqB,GAAG,IAAA,qBAAa,EAA6B,IAAI,CAAC,CAAC;AAEvE,IAAM,iBAAiB,GAAG;IAC/B,OAAO,IAAA,kBAAU,EAAC,qBAAqB,CAAC,CAAC;AAC3C,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B;AA0BK,IAAM,sBAAsB,GAA0C,UAAC,KAAK;IACzE,IAAA,QAAQ,GAA6B,KAAK,SAAlC,EAAE,WAAW,GAAgB,KAAK,YAArB,EAAK,MAAM,UAAK,KAAK,EAA5C,2BAAoC,CAAF,CAAW;IAC3C,IAAA,mBAAmB,GAAK,IAAA,2CAAwB,GAAE,oBAA/B,CAAgC;IACnD,IAAA,I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M,GAAoF,KAAK,OAAzF,EAAE,KAAK,GAA6E,KAAK,MAAlF,EAAE,UAAU,GAAiE,KAAK,WAAtE,EAAE,KAAK,GAA0D,KAAK,MAA/D,EAAE,OAAO,GAAiD,KAAK,QAAtD,EAAE,MAAM,GAAyC,KAAK,OAA9C,EAAE,QAAQ,GAA+B,KAAK,SAApC,EAAE,aAAa,GAAgB,KAAK,cAArB,EAAK,MAAM,UAAK,KAAK,EAAjG,4FAAyF,CAAF,CAAW;IACxG,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAoB,CAAC,CAAC;IACjD,IAAI,MAAM,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IACD,OAAO,CACL,uBAAC,sBAAc,CAAC,IAAI,eACd,MAAM,IACV,OAAO,EAAE;YACP,IAAA,iBAAU,EAAC,MAAM,CAAC,KAAK,IAAI,KAAK,EAAE;gBAChC,OAAO,CACL,uBAAC,0BAAsB,aAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,gBAC1E,uBAAC,iBAAU,aAAC,MAAM,EAAE,UAAU,gBAC5B,uBAAC,mBAAe,IAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,WAAI,YAC9D,YACU,CAC1B,CAAC;YACJ,CAAC,CAAC;iBACC,IAAI,CAAC;gBACJ,aAAa,eAAA;gBACb,OAAO,SAAA;aACR,CAAC;iBACD,IAAI,CAAC,UAAC,MAAM;gBACX,QAAQ,CAAC,MAAM,CAAC,CAAC;YACnB,CAAC,CAAC,CAAC;QACP,CAAC,gBAEA,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,KAAK,YACV,CACvB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { css } from '@emotion/css';\nimport { FormDialog, FormItem, FormLayout, Input } from '@formily/antd';\nimport { GeneralField } from '@formily/core';\nimport { ISchema, Schema, SchemaOptionsContext } from '@formily/react';\nimport { uid } from '@formily/shared';\nimport { Dropdown, Menu, MenuItemProps, Modal, Select, Switch } from 'antd';\nimport classNames from 'classnames';\nimport React, { createContext, useContext, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n ActionContext,\n createDesignable,\n Designable,\n SchemaComponent,\n SchemaComponentOptions,\n useActionContext,\n useAPIClient,\n useCollection\n} from '..';\nimport { useSchemaTemplateManager } from '../schema-templates';\nimport { useBlockTemplateContext } from '../schema-templates/BlockTemplate';\n\ninterface SchemaSettingsProps {\n title?: any;\n dn?: Designable;\n field?: GeneralField;\n fieldSchema?: Schema;\n}\n\ninterface SchemaSettingsContextProps {\n dn?: Designable;\n field?: GeneralField;\n fieldSchema?: Schema;\n setVisible?: any;\n visible?: any;\n template?: any;\n collectionName?: any;\n}\n\nconst SchemaSettingsContext = createContext<SchemaSettingsContextProps>(null);\n\nexport const useSchemaSettings = () => {\n return useContext(SchemaSettingsContext);\n};\n\ninterface RemoveProps {\n confirm?: any;\n removeParentsIfNoChildren?: boolean;\n breakRemoveOn?: ISchema | ((s: ISchema) => boolean);\n}\n\ntype SchemaSettingsNested = {\n Remove?: React.FC<RemoveProps>;\n Item?: React.FC<MenuItemProps>;\n Divider?: React.FC;\n Popup?: React.FC<MenuItemProps & { schema?: ISchema }>;\n [key: string]: any;\n};\n\ninterface SchemaSettingsProviderProps {\n dn?: Designable;\n field?: GeneralField;\n fieldSchema?: Schema;\n setVisible?: any;\n visible?: any;\n template?: any;\n collectionName?: any;\n}\n\nexport const SchemaSettingsProvider: React.FC<SchemaSettingsProviderProps> = (props) => {\n const { children, fieldSchema, ...others } = props;\n const { getTemplateBySchema } = useSchemaTemplateManager();\n const { name } = useCollection();\n const template = getTemplateBySchema(fieldSchema);\n return (\n <SchemaSettingsContext.Provider value={{ collectionName: name, template, fieldSchema, ...others }}>\n {children}\n </SchemaSettingsContext.Provider>\n );\n};\n\nexport const SchemaSettings: React.FC<SchemaSettingsProps> & SchemaSettingsNested = (props) => {\n const { title, dn, ...others } = props;\n const [visible, setVisible] = useState(false);\n const DropdownMenu = (\n <Dropdown\n visible={visible}\n onVisibleChange={(visible) => {\n setVisible(visible);\n }}\n overlay={<Menu>{props.children}</Menu>}\n overlayClassName={classNames(\n 'nb-schema-initializer-button-overlay',\n css`\n .ant-dropdown-menu-item-group-list {\n max-height: 40vh;\n overflow: auto;\n }\n `,\n )}\n >\n {typeof title === 'string' ? <span>{title}</span> : title}\n </Dropdown>\n );\n if (dn) {\n return (\n <SchemaSettingsProvider visible={visible} setVisible={setVisible} dn={dn} {...others}>\n {DropdownMenu}\n </SchemaSettingsProvider>\n );\n }\n return DropdownMenu;\n};\n\nSchemaSettings.Template = (props) => {\n const { componentName, collectionName } = props;\n const { t } = useTranslation();\n const { dn, setVisible, template, fieldSchema } = useSchemaSettings();\n const api = useAPIClient();\n const { dn: tdn } = useBlockTemplateContext();\n const { saveAsTemplate, copyTemplateSchema } = useSchemaTemplateManager();\n if (!collectionName) {\n return null;\n }\n if (template) {\n return (\n <SchemaSettings.Item\n onClick={async () => {\n const schema = await copyTemplateSchema(template);\n const removed = tdn.removeWithoutEmit();\n tdn.insertAfterEnd(schema, {\n async onSuccess() {\n await api.request({\n url: `/uiSchemas:remove/${removed['x-uid']}`,\n });\n },\n });\n }}\n >\n {t('Convert reference to duplicate')}\n </SchemaSettings.Item>\n );\n }\n return (\n <SchemaSettings.Item\n onClick={async () => {\n setVisible(false);\n const values = await FormDialog(t('Save as template'), () => {\n return (\n <FormLayout layout={'vertical'}>\n <SchemaComponent\n components={{ Input, FormItem }}\n schema={{\n type: 'object',\n properties: {\n name: {\n title: t('Template name'),\n required: true,\n 'x-decorator': 'FormItem',\n 'x-component': 'Input',\n },\n },\n }}\n />\n </FormLayout>\n );\n }).open({});\n const sdn = createDesignable({\n t,\n api,\n refresh: dn.refresh.bind(dn),\n current: fieldSchema.parent,\n });\n sdn.loadAPIClientEvents();\n const { key } = await saveAsTemplate({\n collectionName,\n componentName,\n name: values.name,\n uid: fieldSchema['x-uid'],\n });\n sdn.removeWithoutEmit(fieldSchema);\n sdn.insertBeforeEnd({\n type: 'void',\n 'x-component': 'BlockTemplate',\n 'x-component-props': {\n templateId: key,\n },\n });\n }}\n >\n {t('Save as template')}\n </SchemaSettings.Item>\n );\n};\n\nconst findGridSchema = (fieldSchema) => {\n return fieldSchema.reduceProperties((buf, s) => {\n if (s['x-component'] === 'FormV2') {\n const f = s.reduceProperties((buf, s) => {\n if (s['x-component'] === 'Grid') {\n return s;\n }\n return buf;\n }, null);\n if (f) {\n return f;\n }\n }\n return buf;\n }, null);\n};\n\nconst findBlockTemplateSchema = (fieldSchema) => {\n return fieldSchema.reduceProperties((buf, s) => {\n if (s['x-component'] === 'FormV2') {\n const f = s.reduceProperties((buf, s) => {\n if (s['x-component'] === 'BlockTemplate') {\n return s;\n }\n return buf;\n }, null);\n if (f) {\n return f;\n }\n }\n return buf;\n }, null);\n};\n\nSchemaSettings.FormItemTemplate = (props) => {\n const { insertAdjacentPosition = 'afterBegin', componentName, collectionName } = props;\n const { t } = useTranslation();\n const { dn, setVisible, template, fieldSchema } = useSchemaSettings();\n const api = useAPIClient();\n const { saveAsTemplate, copyTemplateSchema } = useSchemaTemplateManager();\n if (!collectionName) {\n return null;\n }\n if (template) {\n return (\n <SchemaSettings.Item\n onClick={async () => {\n const schema = await copyTemplateSchema(template);\n const templateSchema = findBlockTemplateSchema(fieldSchema);\n const sdn = createDesignable({\n t,\n api,\n refresh: dn.refresh.bind(dn),\n current: templateSchema.parent,\n });\n sdn.loadAPIClientEvents();\n sdn.removeWithoutEmit(templateSchema);\n sdn.insertAdjacent(insertAdjacentPosition, schema, {\n async onSuccess() {\n await api.request({\n url: `/uiSchemas:remove/${templateSchema['x-uid']}`,\n });\n },\n });\n fieldSchema['x-template-key'] = null;\n await api.request({\n url: `uiSchemas:patch`,\n method: 'post',\n data: {\n 'x-uid': fieldSchema['x-uid'],\n 'x-template-key': null,\n },\n });\n dn.refresh();\n }}\n >\n {t('Convert reference to duplicate')}\n </SchemaSettings.Item>\n );\n }\n return (\n <SchemaSettings.Item\n onClick={async () => {\n setVisible(false);\n const gridSchema = findGridSchema(fieldSchema);\n console.log('gridSchema', gridSchema);\n const values = await FormDialog(t('Save as template'), () => {\n return (\n <FormLayout layout={'vertical'}>\n <SchemaComponent\n components={{ Input, FormItem }}\n schema={{\n type: 'object',\n properties: {\n name: {\n title: t('Template name'),\n required: true,\n 'x-decorator': 'FormItem',\n 'x-component': 'Input',\n },\n },\n }}\n />\n </FormLayout>\n );\n }).open({});\n const sdn = createDesignable({\n t,\n api,\n refresh: dn.refresh.bind(dn),\n current: gridSchema.parent,\n });\n sdn.loadAPIClientEvents();\n const { key } = await saveAsTemplate({\n collectionName,\n componentName,\n name: values.name,\n uid: gridSchema['x-uid'],\n });\n sdn.removeWithoutEmit(gridSchema);\n sdn.insertAdjacent(insertAdjacentPosition, {\n type: 'void',\n 'x-component': 'BlockTemplate',\n 'x-component-props': {\n templateId: key,\n },\n });\n fieldSchema['x-template-key'] = key;\n await api.request({\n url: `uiSchemas:patch`,\n method: 'post',\n data: {\n 'x-uid': fieldSchema['x-uid'],\n 'x-template-key': key,\n },\n });\n }}\n >\n {t('Save as template')}\n </SchemaSettings.Item>\n );\n};\n\nSchemaSettings.Item = (props) => {\n let { eventKey } = props;\n return (\n <Menu.Item\n key={eventKey}\n eventKey={eventKey as any}\n {...props}\n onClick={(info) => {\n info.domEvent.preventDefault();\n info.domEvent.stopPropagation();\n props?.onClick?.(info);\n }}\n style={{ minWidth: 120 }}\n >\n {props.children || props.title}\n </Menu.Item>\n );\n};\n\nSchemaSettings.ItemGroup = (props) => {\n return <Menu.ItemGroup {...props} />;\n};\n\nSchemaSettings.SubMenu = (props) => {\n return <Menu.SubMenu {...props} />;\n};\n\nSchemaSettings.Divider = (props) => {\n return <Menu.Divider {...props} />;\n};\n\nSchemaSettings.Remove = (props: any) => {\n const { confirm, removeParentsIfNoChildren, breakRemoveOn } = props;\n const { dn, template } = useSchemaSettings();\n const { t } = useTranslation();\n const ctx = useBlockTemplateContext();\n return (\n <SchemaSettings.Item\n onClick={() => {\n Modal.confirm({\n title: t('Delete block'),\n content: t('Are you sure you want to delete it?'),\n ...confirm,\n onOk() {\n const options = {\n removeParentsIfNoChildren,\n breakRemoveOn,\n };\n if (template && ctx?.dn) {\n ctx?.dn.remove(null, options);\n } else {\n dn.remove(null, options);\n }\n },\n });\n }}\n >\n {t('Delete')}\n </SchemaSettings.Item>\n );\n};\n\nSchemaSettings.SelectItem = (props) => {\n const { title, options, value, onChange, ...others } = props;\n return (\n <SchemaSettings.Item {...others}>\n <div style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>\n {title}\n <Select\n bordered={false}\n defaultValue={value}\n onChange={onChange}\n options={options}\n style={{ textAlign: 'right', minWidth: 100 }}\n />\n </div>\n </SchemaSettings.Item>\n );\n};\n\nSchemaSettings.SwitchItem = (props) => {\n const { title, onChange, ...others } = props;\n const [checked, setChecked] = useState(!!props.checked);\n return (\n <SchemaSettings.Item\n {...others}\n onClick={() => {\n onChange?.(!checked);\n setChecked(!checked);\n }}\n >\n <div style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>\n {title}\n <Switch size={'small'} checked={checked} style={{ marginLeft: 32 }} />\n </div>\n </SchemaSettings.Item>\n );\n};\n\nSchemaSettings.PopupItem = (props) => {\n const { schema, ...others } = props;\n const [visible, setVisible] = useState(false);\n const ctx = useContext(SchemaSettingsContext);\n const actx = useActionContext();\n return (\n <ActionContext.Provider value={{ visible, setVisible }}>\n <SchemaSettings.Item\n {...others}\n onClick={() => {\n // actx.setVisible(false);\n ctx.setVisible(false);\n setVisible(true);\n }}\n >\n {props.children || props.title}\n </SchemaSettings.Item>\n <SchemaComponent\n schema={{\n name: uid(),\n ...schema,\n }}\n />\n </ActionContext.Provider>\n );\n};\n\nSchemaSettings.ModalItem = (props) => {\n const { hidden, title, components, scope, effects, schema, onSubmit, initialValues, ...others } = props;\n const options = useContext(SchemaOptionsContext);\n if (hidden) {\n return null;\n }\n return (\n <SchemaSettings.Item\n {...others}\n onClick={() => {\n FormDialog(schema.title || title, () => {\n return (\n <SchemaComponentOptions scope={options.scope} components={options.components}>\n <FormLayout layout={'vertical'}>\n <SchemaComponent components={components} scope={scope} schema={schema} />\n </FormLayout>\n </SchemaComponentOptions>\n );\n })\n .open({\n initialValues,\n effects,\n })\n .then((values) => {\n onSubmit(values);\n });\n }}\n >\n {props.children || props.title}\n </SchemaSettings.Item>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema-settings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAwC;AACxC,mDAAiC","sourcesContent":["export * from './GeneralSchemaDesigner';\nexport * from './SchemaSettings';\n\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockTemplate.js","sourceRoot":"","sources":["../../src/schema-templates/BlockTemplate.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wCAAoE;AACpE,+BAAkE;AAClE,wBAA0D;AAC1D,iFAA2E;AAE3E,IAAM,oBAAoB,GAAG,IAAA,qBAAa,EAAM,EAAE,CAAC,CAAC;AAE7C,IAAM,uBAAuB,GAAG;IACrC,OAAO,IAAA,kBAAU,EAAC,oBAAoB,CAAC,CAAC;AAC1C,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEW,QAAA,aAAa,GAAG,IAAA,gBAAQ,EAAC,UAAC,KAAU;IACvC,IAAA,UAAU,GAAK,KAAK,WAAV,CAAW;IACrB,IAAA,eAAe,GAAK,IAAA,wDAAwB,GAAE,gBAA/B,CAAgC;IACvD,IAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IACzB,IAAM,WAAW,GAAG,IAAA,sBAAc,GAAE,CAAC;IAC7B,IAAA,EAAE,GAAK,IAAA,iBAAa,GAAE,GAApB,CAAqB;IAC/B,IAAM,QAAQ,GAAG,IAAA,eAAO,EAAC,cAAM,OAAA,eAAe,CAAC,UAAU,CAAC,EAA3B,CAA2B,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAC1E,OAAO,CACL,0CACE,uBAAC,oBAAoB,CAAC,QAAQ,aAAC,KAAK,EAAE,EAAE,EAAE,IAAA,EAAE,KAAK,OAAA,EAAE,WAAW,aAAA,EAAE,QAAQ,UAAA,EAAE,gBACxE,uBAAC,yBAAqB,IAAC,MAAM,QAAC,GAAG,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,GAAG,WAAI,YACtB,WAC5B,CACP,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { observer, useField, useFieldSchema } from '@formily/react';\nimport React, { createContext, useContext, useMemo } from 'react';\nimport { RemoteSchemaComponent, useDesignable } from '..';\nimport { useSchemaTemplateManager } from './SchemaTemplateManagerProvider';\n\nconst BlockTemplateContext = createContext<any>({});\n\nexport const useBlockTemplateContext = () => {\n return useContext(BlockTemplateContext);\n};\n\nexport const BlockTemplate = observer((props: any) => {\n const { templateId } = props;\n const { getTemplateById } = useSchemaTemplateManager();\n const field = useField();\n const fieldSchema = useFieldSchema();\n const { dn } = useDesignable();\n const template = useMemo(() => getTemplateById(templateId), [templateId]);\n return (\n <div>\n <BlockTemplateContext.Provider value={{ dn, field, fieldSchema, template }}>\n <RemoteSchemaComponent noForm uid={template?.uid} />\n </BlockTemplateContext.Provider>\n </div>\n );\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockTemplateDetails.js","sourceRoot":"","sources":["../../src/schema-templates/BlockTemplateDetails.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAAiE;AACjE,+BAAoD;AACpD,qDAA6D;AAC7D,wBAAwE;AACxE,wDAAoF;AAEpF,IAAM,aAAa,GAAG,UAAC,KAAK;IACpB,IAAA,KAAA,OAAoB,IAAA,gBAAQ,EAAC,KAAK,CAAC,KAAK,CAAC,IAAA,EAA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O,GAAG,IAAA,6BAAU,GAAE,CAAC;IAC7B,IAAM,KAAK,GAAG,IAAA,gCAAa,GAAO,CAAC;IACnC,IAAM,GAAG,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,GAAG,CAAC;IAC/B,IAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,yCAAsB,CAAC,CAAC;IAC3C,IAAA,KAAoB,IAAA,cAAU,EAAC;QACnC,QAAQ,EAAE,mBAAmB;QAC7B,MAAM,EAAE,KAAK;QACb,MAAM,EAAE;YACN,UAAU,EAAE,GAAG;SAChB;KACF,CAAC,EANM,IAAI,UAAA,EAAE,OAAO,aAMnB,CAAC;IACH,IAAI,OAAO,EAAE;QACX,OAAO,uBAAC,WAAI,aAAG,CAAC;KACjB;IACD,OAAO,CACL,4CACE,uBAAC,iBAAc,IACb,MAAM,EAAE;oBACN,OAAO,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;gBACjD,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,uBAAC,aAAa,IAAC,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,0CAAE,IAAI,WAAI,WAClE,EACF,yCAAK,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,gBACxB,uBAAC,yCAAsB,CAAC,QAAQ,aAAC,KAAK,wBAAO,KAAK,KAAE,UAAU,EAAE,IAAI,mBAClE,uBAAC,wCAAqB,IAAC,GAAG,EAAE,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,0CAAE,GAAG,WAAI,YACf,YAC9B,YACF,CACP,CAAC;AACJ,CAAC,CAAC;AA/BW,QAAA,oBAAoB,wBA+B/B","sourcesContent":["import { Input, PageHeader as AntdPageHeader, Spin } from 'antd';\nimport React, { useContext, useState } from 'react';\nimport { useHistory, useRouteMatch } from 'react-router-dom';\nimport { useAPIClient, useRequest, useSchemaTemplateManager } from '..';\nimport { RemoteSchemaComponent, SchemaComponentContext } from '../schema-component';\n\nconst EditableTitle = (props) => {\n const [title, setTitle] = useState(props.title);\n const [visible, setVisible] = useState(false);\n const { refresh } = useSchemaTemplateManager();\n const api = useAPIClient();\n const { run } = useRequest(\n {\n resource: 'uiSchemaTemplates',\n action: 'update',\n params: {\n filterByTk: props.filterByTk,\n },\n },\n {\n manual: true,\n debounceWait: 500,\n onSuccess() {\n refresh();\n },\n },\n );\n return (\n <div>\n {visible ? (\n <Input\n defaultValue={title}\n size={'large'}\n onBlur={() => {\n setVisible(false);\n }}\n onChange={(e) => {\n setTitle(e.target.value);\n run({\n filterByTk: props.filterByTk,\n values: {\n name: e.target.value,\n },\n });\n }}\n />\n ) : (\n <div\n onClick={() => {\n setVisible(true);\n }}\n >\n {title || <span style={{ color: '#bbb' }}>未命名</span>}\n </div>\n )}\n </div>\n );\n};\n\nexport const BlockTemplateDetails = () => {\n const history = useHistory();\n const match = useRouteMatch<any>();\n const key = match?.params?.key;\n const value = useContext(SchemaComponentContext);\n const { data, loading } = useRequest({\n resource: 'uiSchemaTemplates',\n action: 'get',\n params: {\n filterByTk: key,\n },\n });\n if (loading) {\n return <Spin />;\n }\n return (\n <div>\n <AntdPageHeader\n onBack={() => {\n history.push('/admin/plugins/block-templates');\n }}\n ghost={false}\n title={<EditableTitle filterByTk={key} title={data?.data?.name} />}\n />\n <div style={{ margin: 24 }}>\n <SchemaComponentContext.Provider value={{ ...value, designable: true }}>\n <RemoteSchemaComponent uid={data?.data?.uid} />\n </SchemaComponentContext.Provider>\n </div>\n </div>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockTemplatePage.js","sourceRoot":"","sources":["../../src/schema-templates/BlockTemplatePage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6BAAoD;AAEpD,+CAA+C;AAC/C,4DAAkE;AAClE,wDAAsD;AACtD,qEAA8E;AAC9E,iEAAsE;AAE/D,IAAM,iBAAiB,GAAG;IACvB,IAAA,CAAC,GAAK,IAAA,8BAAc,GAAE,EAArB,CAAsB;IAC/B,OAAO,CACL,4CACE,uBAAC,iBAAc,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,iBAAiB,CAAC,WAAI,EAC7D,yCAAK,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,gBACxB,uBAAC,8CAAyB,aAAC,WAAW,EAAE,CAAC,+CAA2B,CAAC,gBACnE,uBAAC,kCAAe,IAAC,MAAM,EAAE,2CAAuB,WAAI,YAC1B,YACxB,YACF,CACP,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,iBAAiB,qBAY5B","sourcesContent":["import { PageHeader as AntdPageHeader } from 'antd';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { CollectionManagerProvider } from '../collection-manager';\nimport { SchemaComponent } from '../schema-component';\nimport { uiSchemaTemplatesCollection } from './collections/uiSchemaTemplates';\nimport { uiSchemaTemplatesSchema } from './schemas/uiSchemaTemplates';\n\nexport const BlockTemplatePage = () => {\n const { t } = useTranslation();\n return (\n <div>\n <AntdPageHeader ghost={false} title={t('Block templates')} />\n <div style={{ margin: 24 }}>\n <CollectionManagerProvider collections={[uiSchemaTemplatesCollection]}>\n <SchemaComponent schema={uiSchemaTemplatesSchema} />\n </CollectionManagerProvider>\n </div>\n </div>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SchemaTemplateManagerProvider.js","sourceRoot":"","sources":["../../src/schema-templates/SchemaTemplateManagerProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wCAAyD;AACzD,0CAAsC;AACtC,6BAA4B;AAC5B,iCAAmC;AACnC,+BAAkE;AAClE,4CAAyD;AACzD,gDAAqD;AACrD,wDAA6D;AAC7D,iDAAgD;AAEnC,QAAA,4BAA4B,GAA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mBAAmB;QAC7B,MAAM,EAAE,MAAM;QACd,MAAM,EAAE;YACN,OAAO,EAAE,CAAC,YAAY,CAAC;YACvB,QAAQ,EAAE,KAAK;SAChB;KACF,CAAC;IACF,IAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,OAAO,CAAC,CAAC;IACpC,IAAI,OAAO,CAAC,OAAO,EAAE;QACnB,OAAO,uBAAC,WAAI,aAAG,CAAC;KACjB;IACD,OAAO,CACL,uBAAC,qCAA6B,aAC5B,OAAO,EAAE;;;;4BACU,qBAAM,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,EAAA;;wBAAnC,IAAI,GAAK,CAAA,SAA0B,CAAA,KAA/B;wBACZ,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;;;;aACtB,EACD,SAAS,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,0CAAE,IAAI,gBAE7B,KAAK,CAAC,QAAQ,YACe,CACjC,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,mCAAmC,uCAyB9C","sourcesContent":["import { ISchema, useFieldSchema } from '@formily/react';\nimport { uid } from '@formily/shared';\nimport { Spin } from 'antd';\nimport { cloneDeep } from 'lodash';\nimport React, { createContext, useContext, useMemo } from 'react';\nimport { useAPIClient, useRequest } from '../api-client';\nimport { RouteSwitchContext } from '../route-switch';\nimport { SchemaComponentOptions } from '../schema-component';\nimport { BlockTemplate } from './BlockTemplate';\n\nexport const SchemaTemplateManagerContext = createContext<any>({});\n\nconst SchemaTemplateRouteProvider = (props) => {\n const { routes, ...others } = useContext(RouteSwitchContext);\n routes[1].routes.unshift(\n {\n type: 'route',\n path: '/admin/plugins/block-templates/:key',\n component: 'BlockTemplateDetails',\n },\n {\n type: 'route',\n path: '/admin/plugins/block-templates',\n component: 'BlockTemplatePage',\n },\n );\n return <RouteSwitchContext.Provider value={{ ...others, routes }}>{props.children}</RouteSwitchContext.Provider>;\n};\n\nexport const SchemaTemplateManagerProvider: React.FC<any> = (props) => {\n const { templates, refresh } = props;\n return (\n <SchemaTemplateManagerContext.Provider value={{ templates, refresh }}>\n <SchemaTemplateRouteProvider>\n <SchemaComponentOptions components={{ BlockTemplate }}>{props.children}</SchemaComponentOptions>\n </SchemaTemplateRouteProvider>\n </SchemaTemplateManagerContext.Provider>\n );\n};\n\nconst regenerateUid = (s: ISchema) => {\n s['x-uid'] = uid();\n Object.keys(s.properties || {}).forEach((key) => {\n regenerateUid(s.properties[key]);\n });\n};\n\nexport const useSchemaTemplate = () => {\n const { getTemplateBySchema, templates } = useSchemaTemplateManager();\n const fieldSchema = useFieldSchema();\n const schemaId = fieldSchema['x-uid'];\n const templateKey = fieldSchema['x-template-key'];\n console.log('templateKey', { schemaId, templateKey })\n return useMemo(() => getTemplateBySchema(fieldSchema), [schemaId, templateKey]);\n};\n\nexport const useSchemaTemplateManager = () => {\n const { refresh, templates = [] } = useContext(SchemaTemplateManagerContext);\n const api = useAPIClient();\n return {\n templates,\n refresh,\n async getTemplateSchemaByMode(options) {\n const { mode, template } = options;\n if (mode === 'copy') {\n const { data } = await api.request({\n url: `/uiSchemas:getJsonSchema/${template.uid}?includeAsyncNode=true`,\n });\n const s = data?.data || {};\n regenerateUid(s);\n return cloneDeep(s);\n } else if (mode === 'reference') {\n return {\n type: 'void',\n 'x-component': 'BlockTemplate',\n 'x-component-props': {\n templateId: template.key,\n },\n };\n }\n },\n async copyTemplateSchema(template) {\n const { data } = await api.request({\n url: `/uiSchemas:getJsonSchema/${template.uid}?includeAsyncNode=true`,\n });\n const s = data?.data || {};\n regenerateUid(s);\n return cloneDeep(s);\n },\n async saveAsTemplate(values) {\n const { uid: schemaId } = values;\n const key = uid();\n await api.resource('uiSchemas').saveAsTemplate({\n filterByTk: schemaId,\n values: {\n key,\n ...values,\n },\n });\n await refresh();\n return { key };\n },\n getTemplateBySchema(schema) {\n const templateKey = schema['x-template-key'];\n if (templateKey) {\n return templates?.find((template) => template.key === templateKey);\n }\n const schemaId = schema['x-uid'];\n if (schemaId) {\n return templates?.find((template) => template.uid === schemaId);\n }\n },\n getTemplateBySchemaId(schemaId) {\n if (!schemaId) {\n return null;\n }\n return templates?.find((template) => template.uid === schemaId);\n },\n getTemplateById(key) {\n return templates?.find((template) => template.key === key);\n },\n getTemplatesByCollection(collectionName: string) {\n const items = templates?.filter?.((template) => template.collectionName === collectionName);\n return items || [];\n },\n };\n};\n\nexport const RemoteSchemaTemplateManagerProvider: React.FC = (props) => {\n const api = useAPIClient();\n const options = {\n resource: 'uiSchemaTemplates',\n action: 'list',\n params: {\n appends: ['collection'],\n paginate: false,\n },\n };\n const service = useRequest(options);\n if (service.loading) {\n return <Spin />;\n }\n return (\n <SchemaTemplateManagerProvider\n refresh={async () => {\n const { data } = await api.request(options);\n service.mutate(data);\n }}\n templates={service?.data?.data}\n >\n {props.children}\n </SchemaTemplateManagerProvider>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SchemaTemplateShortcut.js","sourceRoot":"","sources":["../../src/schema-templates/SchemaTemplateShortcut.tsx"],"names":[],"mappings":";;;;AAAA,2CAAmD;AAEnD,+CAA+C;AAC/C,qDAA8C;AAC9C,oDAAkD;AAE3C,IAAM,sBAAsB,GAAG;IAC5B,IAAA,CAAC,GAAK,IAAA,8BAAc,GAAE,EAArB,CAAsB;IAC/B,IAAM,OAAO,GAAG,IAAA,6BAAU,GAAE,CAAC;IAC7B,OAAO,CACL,uBAAC,8BAAa,CAAC,OAAO,CAAC,IAAI,IACzB,IAAI,EAAE,uBAAC,sBAAc,aAAG,EACxB,KAAK,EAAE,CAAC,CAAC,iBAAiB,CAAC,EAC3B,OAAO,EAAE;YACP,OAAO,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;QACjD,CAAC,WACD,CACH,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,sBAAsB,0BAYjC","sourcesContent":["import { LayoutOutlined } from '@ant-design/icons';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router-dom';\nimport { PluginManager } from '../plugin-manager';\n\nexport const SchemaTemplateShortcut = () => {\n const { t } = useTranslation();\n const history = useHistory();\n return (\n <PluginManager.Toolbar.Item\n icon={<LayoutOutlined />}\n title={t('Block templates')}\n onClick={() => {\n history.push('/admin/plugins/block-templates');\n }}\n />\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"uiSchemaTemplates.js","sourceRoot":"","sources":["../../../src/schema-templates/collections/uiSchemaTemplates.ts"],"names":[],"mappings":";;;AAEa,QAAA,2BAA2B,GAAsB;IAC5D,IAAI,EAAE,mBAAmB;IACzB,eAAe,EAAE,KAAK;IACtB,SAAS,EAAE,KAAK;IAChB,MAAM,EAAE;QACN;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,OAAO;YAClB,QAAQ,EAAE;gBACR,KAAK,EAAE,0BAA0B;gBACjC,IAAI,EAAE,QAAQ;gBACd,aAAa,EAAE,OAAO;gBACtB,QAAQ,EAAE,IAAI;aACf;SACF;KACF;CACF,CAAC","sourcesContent":["import { CollectionOptions } from '../../collection-manager';\n\nexport const uiSchemaTemplatesCollection: CollectionOptions = {\n name: 'uiSchemaTemplates',\n filterTargetKey: 'key',\n targetKey: 'key',\n fields: [\n {\n type: 'integer',\n name: 'name',\n interface: 'input',\n uiSchema: {\n title: '{{ t(\"Template name\") }}',\n type: 'number',\n 'x-component': 'Input',\n required: true,\n },\n },\n ],\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema-templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAuC;AACvC,sDAAoC;AACpC,kEAAgD;AAChD,2DAAyC","sourcesContent":["export * from './BlockTemplateDetails';\nexport * from './BlockTemplatePage';\nexport * from './SchemaTemplateManagerProvider';\nexport * from './SchemaTemplateShortcut';\n\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"uiSchemaTemplates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IAAI;oCACrB,mBAAmB,EAAE;wCACnB,QAAQ,EAAE,IAAI;qCACf;iCACF;6BACF;yBACF;wBACD,OAAO,EAAE;4BACP,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,kCAAkC;4BACzC,aAAa,EAAE,0BAA0B;4BACzC,aAAa,EAAE,gBAAgB;4BAC/B,UAAU,EAAE;gCACV,kBAAkB,EAAE;oCAClB,IAAI,EAAE,QAAQ;oCACd,oBAAoB,EAAE,8BAA8B;oCACpD,aAAa,EAAE,OAAO;oCACtB,eAAe,EAAE,IAAI;oCACrB,mBAAmB,EAAE;wCACnB,QAAQ,EAAE,IAAI;qCACf;iCACF;6BACF;yBACF;qBACF;iBACF;mBACF;SACF;WACF;CACF,CAAC","sourcesContent":["import { ISchema } from '@formily/react';\nimport { uid } from '@formily/shared';\n\nexport const uiSchemaTemplatesSchema: ISchema = {\n type: 'object',\n properties: {\n [uid()]: {\n type: 'void',\n 'x-decorator': 'TableBlockProvider',\n 'x-decorator-props': {\n collection: 'uiSchemaTemplates',\n resource: 'uiSchemaTemplates',\n action: 'list',\n params: {\n pageSize: 20,\n appends: ['collection'],\n sort: ['-createdAt'],\n },\n rowKey: 'key',\n showIndex: true,\n dragSort: false,\n },\n 'x-component': 'CardItem',\n properties: {\n actions: {\n type: 'void',\n 'x-component': 'ActionBar',\n 'x-component-props': {\n style: {\n marginBottom: 16,\n },\n },\n properties: {\n destroy: {\n title: '{{ t(\"Delete\") }}',\n 'x-action': 'destroy',\n 'x-component': 'Action',\n 'x-designer': 'Action.Designer',\n 'x-component-props': {\n icon: 'DeleteOutlined',\n confirm: {\n title: \"{{t('Delete record')}}\",\n content: \"{{t('Are you sure you want to delete it?')}}\",\n },\n useProps: '{{ useBulkDestroyActionProps }}',\n },\n },\n },\n },\n [uid()]: {\n type: 'array',\n 'x-component': 'TableV2',\n 'x-component-props': {\n rowSelection: {\n type: 'checkbox',\n },\n useProps: '{{ useTableBlockProps }}',\n },\n properties: {\n actions: {\n type: 'void',\n title: '{{ t(\"Actions\") }}',\n 'x-component': 'TableV2.Column',\n properties: {\n actions: {\n type: 'void',\n 'x-decorator': 'DndContext',\n 'x-component': 'Space',\n 'x-component-props': {\n split: '|',\n },\n properties: {\n view: {\n title: '{{ t(\"View\") }}',\n 'x-action': 'view',\n 'x-component': 'RecordLink',\n 'x-component-props': {\n to: '/admin/plugins/block-templates/${record.key}',\n },\n },\n edit: {\n type: 'void',\n title: '{{ t(\"Edit\") }}',\n 'x-action': 'update',\n 'x-component': 'Action.Link',\n 'x-component-props': {\n openMode: 'drawer',\n icon: 'EditOutlined',\n },\n properties: {\n drawer: {\n type: 'void',\n title: '{{ t(\"Edit record\") }}',\n 'x-component': 'Action.Container',\n 'x-component-props': {\n className: 'nb-action-popup',\n },\n properties: {\n form: {\n type: 'void',\n 'x-decorator': 'FormBlockProvider',\n 'x-decorator-props': {\n resource: 'uiSchemaTemplates',\n collection: 'uiSchemaTemplates',\n action: 'get',\n useParams: '{{ useParamsFromRecord }}',\n },\n 'x-component': 'CardItem',\n properties: {\n [uid()]: {\n type: 'void',\n 'x-component': 'FormV2',\n 'x-component-props': {\n useProps: '{{ useFormBlockProps }}',\n },\n properties: {\n name: {\n type: 'string',\n 'x-component': 'CollectionField',\n 'x-decorator': 'FormItem',\n 'x-collection-field': 'uiSchemaTemplates.name',\n required: true,\n },\n actions: {\n type: 'void',\n 'x-component': 'ActionBar',\n 'x-component-props': {\n layout: 'one-column',\n style: {\n marginTop: 24,\n },\n },\n properties: {\n submit: {\n title: 'Submit',\n 'x-action': 'submit',\n 'x-component': 'Action',\n 'x-component-props': {\n type: 'primary',\n htmlType: 'submit',\n useProps: '{{ useUpdateActionProps }}',\n },\n type: 'void',\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n destroy: {\n title: '{{ t(\"Delete\") }}',\n 'x-action': 'destroy',\n 'x-component': 'Action.Link',\n 'x-component-props': {\n icon: 'DeleteOutlined',\n confirm: {\n title: \"{{t('Delete record')}}\",\n content: \"{{t('Are you sure you want to delete it?')}}\",\n },\n useProps: '{{ useDestroyActionProps }}',\n },\n },\n },\n },\n },\n },\n column1: {\n type: 'void',\n 'x-decorator': 'TableV2.Column.Decorator',\n 'x-component': 'TableV2.Column',\n properties: {\n name: {\n type: 'string',\n 'x-collection-field': 'uiSchemaTemplates.name',\n 'x-component': 'CollectionField',\n 'x-read-pretty': true,\n 'x-component-props': {\n ellipsis: true,\n },\n },\n },\n },\n column2: {\n type: 'void',\n title: '{{t(\"Collection display name\")}}',\n 'x-decorator': 'TableV2.Column.Decorator',\n 'x-component': 'TableV2.Column',\n properties: {\n 'collection.title': {\n type: 'string',\n 'x-collection-field': 'uiSchemaTemplates.collection',\n 'x-component': 'Input',\n 'x-read-pretty': true,\n 'x-component-props': {\n ellipsis: true,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingsForm.js","sourceRoot":"","sources":["../../src/settings-form/SettingsForm.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAA6G;AAC7G,sCAAmF;AACnF,wCAUwB;AACxB,6BAA6D;AAC7D,+BAA4E;AAC5E,wBAAsE;AAUzD,QAAA,mBAAmB,GAAG,IAAA,qBAAa,EAA2B,IAAI,CAAC,CAAC;AAE1E,IAAM,sBAAsB,GAAG;IACpC,OAAO,IAAA,kBAAU,EAAC,2BAAmB,CAAC,CAAC;AACzC,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC;AAEW,QAAA,YAAY,GAAQ,IAAA,gBAAQ,EAAC,UAAC,KAAU;IACnD,IAAM,EAAE,GAAG,IAAA,iBAAa,GAAE,CAAC;IAC3B,IAAM,KAAK,GAAG,IAAA,gBAAQ,GAAS,CAAC;IAChC,IAAM,WAAW,GAAG,IAAA,sBAAc,GAAE,CAAC;IAC/B,IAAA,KAAA,OAAwC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CAAC;QACvD,CAAC,CAAC,YACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FormButtonGroup, FormDialog, FormDrawer, FormItem, FormLayout, Reset, Submit } from '@formily/antd';\nimport { createForm, Field, ObjectField, onFormValuesChange } from '@formily/core';\nimport {\n FieldContext,\n FormContext,\n observer,\n RecursionField,\n Schema,\n SchemaOptionsContext,\n useField,\n useFieldSchema,\n useForm\n} from '@formily/react';\nimport { Dropdown, Menu, Modal, Select, Switch } from 'antd';\nimport React, { createContext, useContext, useMemo, useState } from 'react';\nimport { SchemaComponentOptions, useAttach, useDesignable } from '..';\n\nexport interface SettingsFormContextProps {\n field?: Field;\n fieldSchema?: Schema;\n dropdownVisible?: boolean;\n setDropdownVisible?: (v: boolean) => void;\n dn?: any;\n}\n\nexport const SettingsFormContext = createContext<SettingsFormContextProps>(null);\n\nexport const useSettingsFormContext = () => {\n return useContext(SettingsFormContext);\n};\n\nexport const SettingsForm: any = observer((props: any) => {\n const dn = useDesignable();\n const field = useField<Field>();\n const fieldSchema = useFieldSchema();\n const [dropdownVisible, setDropdownVisible] = useState(false);\n const settingsFormSchema = useMemo(() => new Schema(props.schema), []);\n const form = useMemo(\n () =>\n createForm({\n initialValues: fieldSchema.toJSON(),\n effects(form) {\n onFormValuesChange((form) => {\n dn.patch(form.values);\n console.log('form.values', form.values);\n });\n },\n }),\n [],\n );\n const f = useAttach(form.createVoidField({ ...field.props, basePath: '' }));\n return (\n <SettingsFormContext.Provider value={{ dn, field, fieldSchema, dropdownVisible, setDropdownVisible }}>\n <SchemaComponentOptions components={{ SettingsForm }}>\n <FieldContext.Provider value={null}>\n <FormContext.Provider value={form}>\n <FieldContext.Provider value={f}>\n <Dropdown\n visible={dropdownVisible}\n onVisibleChange={(visible) => setDropdownVisible(visible)}\n overlayStyle={{ width: 200 }}\n overlay={\n <Menu>\n {settingsFormSchema.mapProperties((s, key) => {\n return <RecursionField name={key} schema={s} />;\n })}\n </Menu>\n }\n >\n <a>配置</a>\n </Dropdown>\n </FieldContext.Provider>\n </FormContext.Provider>\n </FieldContext.Provider>\n </SchemaComponentOptions>\n </SettingsFormContext.Provider>\n );\n});\n\nSettingsForm.Divider = () => {\n return <Menu.Divider />;\n};\n\nSettingsForm.Remove = (props) => {\n const field = useField();\n const { dn, setDropdownVisible } = useSettingsFormContext();\n return (\n <Menu.Item\n onClick={() => {\n setDropdownVisible(false);\n Modal.confirm({\n title: 'Are you sure delete this task?',\n content: 'Some descriptions',\n okText: 'Yes',\n okType: 'danger',\n cancelText: 'No',\n ...props.confirm,\n onOk() {\n dn.remove();\n console.log('OK');\n },\n onCancel() {\n console.log('Cancel');\n },\n });\n }}\n >\n {field.title}\n </Menu.Item>\n );\n};\n\nSettingsForm.Switch = observer(() => {\n const field = useField<Field>();\n return (\n <Menu.Item\n onClick={() => {\n field.value = !field.value;\n }}\n >\n <div style={{ display: 'flex', justifyContent: 'space-between' }}>\n {field.title} <Switch checked={!!field.value} />\n </div>\n </Menu.Item>\n );\n});\n\nSettingsForm.Select = observer((props) => {\n const field = useField<Field>();\n const [open, setOpen] = useState(false);\n return (\n <Menu.Item onClick={() => !open && setOpen(true)}>\n <div style={{ display: 'flex', justifyContent: 'space-between' }}>\n {field.title}\n <Select\n open={open}\n onDropdownVisibleChange={(open) => setOpen(open)}\n onSelect={() => {\n setOpen(false);\n }}\n onChange={(value) => {\n field.value = value;\n }}\n value={field.value}\n options={field.dataSource}\n style={{ width: '60%' }}\n size={'small'}\n bordered={false}\n />\n </div>\n </Menu.Item>\n );\n});\n\nSettingsForm.Modal = () => {\n const form = useForm();\n const field = useField<Field>();\n const fieldSchema = useFieldSchema();\n const options = useContext(SchemaOptionsContext);\n const { setDropdownVisible } = useSettingsFormContext();\n return (\n <Menu.Item\n style={{ width: 200 }}\n onClick={async () => {\n setDropdownVisible(false);\n const values = await FormDialog('Title', () => {\n return (\n <SchemaComponentOptions scope={options.scope} components={{ ...options.components, FormItem }}>\n <FormLayout layout={'vertical'}>\n <RecursionField schema={fieldSchema} onlyRenderProperties />\n </FormLayout>\n </SchemaComponentOptions>\n );\n }).open({\n initialValues: fieldSchema.type !== 'void' ? field.value : form.values,\n });\n if (fieldSchema.type !== 'void') {\n form.setValues(\n {\n [fieldSchema.name]: values,\n },\n 'deepMerge',\n );\n } else {\n form.setValues(values);\n }\n }}\n >\n {field.title}\n </Menu.Item>\n );\n};\n\nSettingsForm.Drawer = () => {\n const form = useForm();\n const field = useField<ObjectField>();\n const fieldSchema = useFieldSchema();\n const options = useContext(SchemaOptionsContext);\n const { setDropdownVisible } = useSettingsFormContext();\n return (\n <Menu.Item\n style={{ width: 200 }}\n onClick={async () => {\n setDropdownVisible(false);\n const values = await FormDrawer('Pop-up form', () => {\n return (\n <SchemaComponentOptions scope={options.scope} components={{ ...options.components, FormItem }}>\n <FormLayout layout={'vertical'}>\n <RecursionField schema={fieldSchema} onlyRenderProperties />\n <FormDrawer.Footer>\n <FormButtonGroup align=\"right\">\n <Reset>Reset</Reset>\n <Submit\n onSubmit={() => {\n return new Promise((resolve) => {\n setTimeout(resolve, 1000);\n });\n }}\n >\n Submit\n </Submit>\n </FormButtonGroup>\n </FormDrawer.Footer>\n </FormLayout>\n </SchemaComponentOptions>\n );\n }).open({\n initialValues: fieldSchema.type !== 'void' ? field.value : form.values,\n });\n if (fieldSchema.type !== 'void') {\n form.setValues(\n {\n [fieldSchema.name]: values,\n },\n 'deepMerge',\n );\n } else {\n form.setValues(values);\n }\n }}\n >\n {field.title}\n </Menu.Item>\n );\n};\n\nSettingsForm.SubMenu = () => {\n const field = useField();\n const fieldSchema = useFieldSchema();\n return (\n <Menu.SubMenu title={field.title}>\n {fieldSchema.mapProperties((schema, key) => {\n return <RecursionField name={key} schema={schema} />;\n })}\n </Menu.SubMenu>\n );\n};\n\nSettingsForm.ItemGroup = () => {\n const field = useField();\n const fieldSchema = useFieldSchema();\n return (\n <Menu.ItemGroup title={field.title}>\n {fieldSchema.mapProperties((schema, key) => {\n return <RecursionField name={key} schema={schema} />;\n })}\n </Menu.ItemGroup>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/settings-form/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B","sourcesContent":["export * from './SettingsForm';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../src/slate/RichText.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAAuC;AACvC,wDAAiC;AACjC,+BAAoD;AACpD,+BAAwF;AACxF,+CAA4C;AAE5C,2CAAmE;AACnE,0FAAyF;AACzF,2CAAqD;AAErD,IAAM,OAAO,GAAG;IACd,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,MAAM;CAChB,CAAC;AAEF,IAAM,UAAU,GAAG,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;AACtD,IAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AAChE,IAAM,aAAa,GAAG;IACpB;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;KACzB;CACF,CAAC;AAEK,IAAM,QAAQ,GAAG,UAAC,KAAU;IACzB,IAAA,KAAK,GAA8E,KAAK,MAAnF,EAAE,KAA4E,KAAK,YAAjE,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAAE,SAAS,GAAiD,KAAK,UAAtD,EAAE,QAAQ,GAAuC,KAAK,SAA5C,EAAE,KAAqC,KAAK,MAA9B,EAAZ,KAAK,mBAAG,IAAI,KAAA,EAAE,QAAQ,GAAe,KAAK,SAApB,EAAE,QAAQ,GAAK,KAAK,SAAV,CAAW;IACjG,IAAM,aAAa,GAAG,IAAA,mBAAW,EAAC,UAAC,KAAK,I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AAE,MAAM,CAAC,EACpC,WAAW,EAAE,UAAC,KAAK;YACjB,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B,CAAC,gBAED,uBAAC,iBAAI,cAAE,IAAI,WAAQ,YACZ,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { css, cx } from '@emotion/css';\nimport isHotkey from 'is-hotkey';\nimport React, { useCallback, useMemo } from 'react';\nimport { createEditor, Editor, Element as SlateElement, Node, Transforms } from 'slate';\nimport { withHistory } from 'slate-history';\nimport type { ReactEditor } from 'slate-react';\nimport { Editable, Slate, useSlate, withReact } from 'slate-react';\nimport { EllipsisWithTooltip } from '../schema-component/antd/input/EllipsisWithTooltip';\nimport { Button, Icon, Toolbar } from './components';\n\nconst HOTKEYS = {\n 'mod+b': 'bold',\n 'mod+i': 'italic',\n 'mod+u': 'underline',\n 'mod+`': 'code',\n};\n\nconst LIST_TYPES = ['numbered-list', 'bulleted-list'];\nconst TEXT_ALIGN_TYPES = ['left', 'center', 'right', 'justify'];\nconst DEFAULT_VALUE = [\n {\n type: 'paragraph',\n children: [{ text: '' }],\n },\n];\n\nexport const RichText = (props: any) => {\n const { value, placeholder = '', className, readOnly, autop = true, ellipsis, onChange } = props;\n const renderElement = useCallback((props) => <Element {...props} />, []);\n const renderLeaf = useCallback((props) => <Leaf {...props} />, []);\n const editor = useMemo(() => withHistory(withReact(createEditor() as ReactEditor)), []);\n const slateValue = useMemo(() => {\n editor.children = JSON.parse(JSON.stringify(value || DEFAULT_VALUE));\n Editor.normalize(editor, { force: true });\n return editor.children;\n }, [editor, value]);\n if (readOnly) {\n const slateContent = (\n <Slate editor={editor} value={slateValue}>\n <Editable renderElement={renderElement} renderLeaf={renderLeaf} spellCheck autoFocus readOnly={readOnly} />\n </Slate>\n );\n const slatePlainText = serialize(slateValue);\n const content = (\n <EllipsisWithTooltip ellipsis={ellipsis} popoverContent={autop ? slateContent : slatePlainText}>\n {ellipsis ? slatePlainText : slateContent}\n </EllipsisWithTooltip>\n );\n return content;\n }\n return (\n <div\n className={cx(\n className,\n 'slate',\n css`\n border: solid 1px #d2d2d2;\n border-radius: 2px;\n `,\n )}\n >\n <Slate editor={editor} value={slateValue} onChange={onChange}>\n <Toolbar>\n <MarkButton format=\"bold\" icon=\"format_bold\" />\n <MarkButton format=\"italic\" icon=\"format_italic\" />\n <MarkButton format=\"underline\" icon=\"format_underlined\" />\n <MarkButton format=\"code\" icon=\"code\" />\n <BlockButton format=\"block-quote\" icon=\"format_quote\" />\n <BlockButton format=\"numbered-list\" icon=\"format_list_numbered\" />\n <BlockButton format=\"bulleted-list\" icon=\"format_list_bulleted\" />\n </Toolbar>\n <div\n className={css`\n padding: 5px 11px;\n `}\n >\n <Editable\n renderElement={renderElement}\n renderLeaf={renderLeaf}\n placeholder={placeholder}\n spellCheck\n style={{ minHeight: '10em' }}\n readOnly={readOnly}\n onKeyDown={(event) => {\n for (const hotkey in HOTKEYS) {\n if (isHotkey(hotkey, event as any)) {\n event.preventDefault();\n const mark = HOTKEYS[hotkey];\n toggleMark(editor, mark);\n }\n }\n }}\n />\n </div>\n </Slate>\n </div>\n );\n};\n\nconst serialize = (nodes) => {\n return nodes.map((n) => Node.string(n)).join('\\n');\n};\nconst toggleBlock = (editor, format) => {\n const isActive = isBlockActive(editor, format, TEXT_ALIGN_TYPES.includes(format) ? 'align' : 'type');\n const isList = LIST_TYPES.includes(format);\n\n Transforms.unwrapNodes(editor, {\n match: (n: Node) =>\n !Editor.isEditor(n) &&\n SlateElement.isElement(n) &&\n LIST_TYPES.includes((n as any).type) &&\n !TEXT_ALIGN_TYPES.includes(format),\n split: true,\n });\n let newProperties: Partial<SlateElement & { align: any; type: string }>;\n if (TEXT_ALIGN_TYPES.includes(format)) {\n newProperties = {\n align: isActive ? undefined : format,\n };\n } else {\n newProperties = {\n type: isActive ? 'paragraph' : isList ? 'list-item' : format,\n };\n }\n Transforms.setNodes<SlateElement>(editor, newProperties);\n\n if (!isActive && isList) {\n const block = { type: format, children: [] };\n Transforms.wrapNodes(editor, block);\n }\n};\n\nconst toggleMark = (editor, format) => {\n const isActive = isMarkActive(editor, format);\n\n if (isActive) {\n Editor.removeMark(editor, format);\n } else {\n Editor.addMark(editor, format, true);\n }\n};\n\nconst isBlockActive = (editor, format, blockType = 'type') => {\n const { selection } = editor;\n if (!selection) return false;\n\n const [match] = Array.from(\n Editor.nodes(editor, {\n at: Editor.unhangRange(editor, selection),\n match: (n) => !Editor.isEditor(n) && SlateElement.isElement(n) && n[blockType] === format,\n }),\n );\n\n return !!match;\n};\n\nconst isMarkActive = (editor, format) => {\n const marks = Editor.marks(editor);\n return marks ? marks[format] === true : false;\n};\n\nconst Element = ({ attributes, children, element }) => {\n const style = { textAlign: element.align };\n switch (element.type) {\n case 'block-quote':\n return (\n <blockquote style={style} {...attributes}>\n {children}\n </blockquote>\n );\n case 'bulleted-list':\n return (\n <ul style={style} {...attributes}>\n {children}\n </ul>\n );\n case 'heading-one':\n return (\n <h1 style={style} {...attributes}>\n {children}\n </h1>\n );\n case 'heading-two':\n return (\n <h2 style={style} {...attributes}>\n {children}\n </h2>\n );\n case 'list-item':\n return (\n <li style={style} {...attributes}>\n {children}\n </li>\n );\n case 'numbered-list':\n return (\n <ol style={style} {...attributes}>\n {children}\n </ol>\n );\n default:\n return (\n <p style={style} {...attributes}>\n {children}\n </p>\n );\n }\n};\n\nconst Leaf = ({ attributes, children, leaf }) => {\n if (leaf.bold) {\n children = <strong>{children}</strong>;\n }\n\n if (leaf.code) {\n children = <code>{children}</code>;\n }\n\n if (leaf.italic) {\n children = <em>{children}</em>;\n }\n\n if (leaf.underline) {\n children = <u>{children}</u>;\n }\n\n return <span {...attributes}>{children}</span>;\n};\n\nconst BlockButton = ({ format, icon }) => {\n const editor = useSlate();\n return (\n <Button\n active={isBlockActive(editor, format, TEXT_ALIGN_TYPES.includes(format) ? 'align' : 'type')}\n onMouseDown={(event) => {\n event.preventDefault();\n toggleBlock(editor, format);\n }}\n >\n <Icon>{icon}</Icon>\n </Button>\n );\n};\n\nconst MarkButton = ({ format, icon }) => {\n const editor = useSlate();\n return (\n <Button\n active={isMarkActive(editor, format)}\n onMouseDown={(event) => {\n event.preventDefault();\n toggleMark(editor, format);\n }}\n >\n <Icon>{icon}</Icon>\n </Button>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Slate.js","sourceRoot":"","sources":["../../src/slate/Slate.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,wCAAkE;AAElE,+BAA6B;AAC7B,wBAAsB;AACtB,uCAAsC;AAE/B,IAAM,KAAK,GAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAC;AAAnB,QAAA,KAAK,SAAc;AAEhC,IAAM,SAAS,GAAG,UAAC,KAAK;;IACtB,OAAO,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,+CAAV,KAAK,EAAQ,UAAC,CAAC,IAAK,OAAA,YAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAd,CAAc,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,CAAC,CAAC;AACF,IAAM,aAAa,GAAG;IACpB;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;KACzB;CACF,CAAC;AAEF,aAAK,CAAC,QAAQ,GAAG,IAAA,eAAO,EACtB,mBAAQ,EACR,IAAA,gBAAQ,EAAC,UAAC,KAAK,EAAE,KAAY;IAC3B,qDAAqD;IACrD,qBAAqB;IACrB,6BAA6B;IAC7B,IAAI;IACJ,oBACK,KAAK,EACR;AACJ,CAAC,CAAC,EACF,IAAA,qBAAa,EAAC,UAAC,KAAU,IAAK,OAAA,uBAAC,mBAAQ,eAAK,KAAK,IAAE,QAAQ,kBAAG,EAAhC,CAAgC,CAAC,CAChE,CAAC","sourcesContent":["import { Field } from '@formily/core';\nimport { connect, mapProps, mapReadPretty } from '@formily/react';\nimport React from 'react';\nimport { Node } from 'slate';\nimport './index.less';\nimport { RichText } from './RichText';\n\nexport const Slate = () => null;\n\nconst serialize = (nodes) => {\n return nodes?.map?.((n) => Node.string(n)).join('');\n};\nconst DEFAULT_VALUE = [\n {\n type: 'paragraph',\n children: [{ text: '' }],\n },\n];\n\nSlate.RichText = connect(\n RichText,\n mapProps((props, field: Field) => {\n // const fieldValue = serialize(field.value)?.trim();\n // if (!fieldValue) {\n // field.value = undefined;\n // }\n return {\n ...props,\n };\n }),\n mapReadPretty((props: any) => <RichText {...props} readOnly />),\n);\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/slate/components.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAAuC;AACvC,gDAAsD;AACtD,wDAAiC;AAQpB,QAAA,MAAM,GAAG,eAAK,CAAC,UAAU,CACpC,UACE,EAUC,EACD,GAAiC;IAV/B,IAAA,SAAS,eAAA,EACT,MAAM,YAAA,EACN,QAAQ,cAAA,EACL,KAAK,cAJV,mCAKC,CADS;IAQP,OAAA,CACH,4CACM,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,QAAE,EACX,SAAS,MACT,SAAG,oIAAA,iDAEQ,EAAkE,aAC5E,KADU,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAE9E,YACD,CACH,CAAA;CAAA,CACF,CAAC;AAEW,QAAA,WAAW,GAAG,eAAK,CAAC,UAAU,CACzC,UACE,EAQC,EACD,GAAsB;IARpB,IAAA,SAAS,eAAA,EACT,KAAK,WAAA,EACF,KAAK,cAHV,sBAIC,CADS;IAQV,IAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,CA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T,SAAG,wNAAA,oJAOF,KACF,YACD,CACH,CAAA;CAAA,CACF,CAAC;AAEK,IAAM,MAAM,GAAG,UAAC,EAAY;QAAV,QAAQ,cAAA;IAC/B,OAAO,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,mBAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9F,CAAC,CAAC;AAFW,QAAA,MAAM,UAEjB;AAEW,QAAA,OAAO,GAAG,eAAK,CAAC,UAAU,CACrC,UAAC,EAAqD,EAAE,GAAgC;IAArF,IAAA,SAAS,eAAA,EAAK,KAAK,cAArB,aAAuB,CAAF;IAAuE,OAAA,CAC3F,uBAAC,YAAI,eACC,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,QAAE,EACX,SAAS,MACT,SAAG,mLAAA,+GAIF,KACF,YACD,CACH,CAAA;CAAA,CACF,CAAC","sourcesContent":["import { css, cx } from '@emotion/css';\nimport React, { PropsWithChildren, Ref } from 'react';\nimport ReactDOM from 'react-dom';\n\ninterface BaseProps {\n className: string;\n [key: string]: unknown;\n}\ntype OrNull<T> = T | null;\n\nexport const Button = React.forwardRef(\n (\n {\n className,\n active,\n reversed,\n ...props\n }: PropsWithChildren<\n {\n active: boolean;\n reversed: boolean;\n } & BaseProps\n >,\n ref: Ref<OrNull<HTMLSpanElement>>,\n ) => (\n <span\n {...props}\n ref={ref}\n className={cx(\n className,\n css`\n cursor: pointer;\n color: ${reversed ? (active ? 'white' : '#aaa') : active ? 'black' : '#ccc'};\n `,\n )}\n />\n ),\n);\n\nexport const EditorValue = React.forwardRef(\n (\n {\n className,\n value,\n ...props\n }: PropsWithChildren<\n {\n value: any;\n } & BaseProps\n >,\n ref: Ref<OrNull<null>>,\n ) => {\n const textLines = value.document.nodes\n .map((node) => node.text)\n .toArray()\n .join('\\n');\n return (\n <div\n ref={ref}\n {...props}\n className={cx(\n className,\n css`\n margin: 30px -20px 0;\n `,\n )}\n >\n <div\n className={css`\n font-size: 14px;\n padding: 5px 20px;\n color: #404040;\n border-top: 2px solid #eeeeee;\n background: #f8f8f8;\n `}\n >\n Slate's value as text\n </div>\n <div\n className={css`\n color: #404040;\n font: 12px monospace;\n white-space: pre-wrap;\n padding: 10px 20px;\n div {\n margin: 0 0 0.5em;\n }\n `}\n >\n {textLines}\n </div>\n </div>\n );\n },\n);\n\nexport const Icon = React.forwardRef(\n ({ className, ...props }: PropsWithChildren<BaseProps>, ref: Ref<OrNull<HTMLSpanElement>>) => (\n <span\n {...props}\n ref={ref}\n className={cx(\n 'material-icons',\n className,\n css`\n font-size: 18px;\n vertical-align: text-bottom;\n `,\n )}\n />\n ),\n);\n\nexport const Instruction = React.forwardRef(\n ({ className, ...props }: PropsWithChildren<BaseProps>, ref: Ref<OrNull<HTMLDivElement>>) => (\n <div\n {...props}\n ref={ref}\n className={cx(\n className,\n css`\n white-space: pre-wrap;\n margin: 0 -20px 10px;\n padding: 10px 20px;\n font-size: 14px;\n background: #f8f8e8;\n `,\n )}\n />\n ),\n);\n\nexport const Menu = React.forwardRef(\n ({ className, ...props }: PropsWithChildren<BaseProps>, ref: Ref<OrNull<HTMLDivElement>>) => (\n <div\n {...props}\n ref={ref}\n className={cx(\n className,\n css`\n & > * {\n display: inline-block;\n }\n & > * + * {\n margin-left: 15px;\n }\n `,\n )}\n />\n ),\n);\n\nexport const Portal = ({ children }) => {\n return typeof document === 'object' ? ReactDOM.createPortal(children, document.body) : null;\n};\n\nexport const Toolbar = React.forwardRef(\n ({ className, ...props }: PropsWithChildren<BaseProps>, ref: Ref<OrNull<HTMLDivElement>>) => (\n <Menu\n {...props}\n ref={ref}\n className={cx(\n className,\n css`\n position: relative;\n padding: 5px 11px;\n background-color: #f3f3f3;\n `,\n )}\n />\n ),\n);\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/slate/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB","sourcesContent":["export * from './Slate';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SystemSettingsProvider.js","sourceRoot":"","sources":["../../src/system-settings/SystemSettingsProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,6BAA4B;AAC5B,+BAAyD;AACzD,wBAAgC;AAEnB,QAAA,qBAAqB,GAAG,IAAA,qBAAa,EAAmB,IAAI,CAAC,CAAC;AAEpE,IAAM,iBAAiB,GAAG;IAC/B,OAAO,IAAA,kBAAU,EAAC,6BAAqB,CAAC,CAAC;AAC3C,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B;AAEK,IAAM,sBAAsB,GAAa,UAAC,KAAK;IACpD,IAAM,MAAM,GAAG,IAAA,cAAU,EAAC;QACxB,GAAG,EAAE,mCAAmC;KACzC,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,OAAO,EAAE;QAClB,OAAO,uBAAC,WAAI,aAAG,CAAC;KACjB;IACD,OAAO,uBAAC,6BAAqB,CAAC,QAAQ,aAAC,KAAK,EAAE,MAAM,gBAAG,KAAK,CAAC,QAAQ,YAAkC,CAAC;AAC1G,CAAC,CAAC;AARW,QAAA,sBAAsB,0BAQjC","sourcesContent":["import { Result } from 'ahooks/lib/useRequest/src/types';\nimport { Spin } from 'antd';\nimport React, { createContext, useContext } from 'react';\nimport { useRequest } from '..';\n\nexport const SystemSettingsContext = createContext<Result<any, any>>(null);\n\nexport const useSystemSettings = () => {\n return useContext(SystemSettingsContext);\n};\n\nexport const SystemSettingsProvider: React.FC = (props) => {\n const result = useRequest({\n url: 'systemSettings:get/1?appends=logo',\n });\n if (result.loading) {\n return <Spin />;\n }\n return <SystemSettingsContext.Provider value={result}>{props.children}</SystemSettingsContext.Provider>;\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SystemSettingsShortcut.js","sourceRoot":"","sources":["../../src/system-settings/SystemSettingsShortcut.tsx"],"names":[],"mappings":";;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sourcesContent":["import { SettingOutlined } from '@ant-design/icons';\nimport { ISchema, useForm } from '@formily/react';\nimport { uid } from '@formily/shared';\nimport React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useSystemSettings } from '.';\nimport { PluginManager, useAPIClient, useRequest } from '..';\nimport { ActionContext, SchemaComponent, useActionContext } from '../schema-component';\n\nconst useCloseAction = () => {\n const { setVisible } = useActionContext();\n return {\n async run() {\n setVisible(false);\n },\n };\n};\n\nconst useSystemSettingsValues = (options) => {\n const { visible } = useActionContext();\n const result = useSystemSettings();\n return useRequest(() => Promise.resolve(result.data), {\n ...options,\n refreshDeps: [visible],\n });\n};\n\nconst useSaveSystemSettingsValues = () => {\n const { setVisible } = useActionContext();\n const form = useForm();\n const { mutate, data } = useSystemSettings();\n const api = useAPIClient();\n return {\n async run() {\n await form.submit();\n setVisible(false);\n mutate({\n data: {\n ...data?.data,\n ...form.values,\n },\n });\n await api.request({\n url: 'systemSettings:update/1',\n method: 'post',\n data: form.values,\n });\n },\n };\n};\n\nconst schema: ISchema = {\n type: 'object',\n properties: {\n [uid()]: {\n 'x-decorator': 'Form',\n 'x-decorator-props': {\n useValues: '{{ useSystemSettingsValues }}',\n },\n 'x-component': 'Action.Drawer',\n type: 'void',\n title: '{{t(\"System settings\")}}',\n properties: {\n title: {\n type: 'string',\n title: \"{{t('System title')}}\",\n 'x-decorator': 'FormItem',\n 'x-component': 'Input',\n required: true,\n },\n logo: {\n type: 'string',\n title: \"{{t('Logo')}}\",\n 'x-decorator': 'FormItem',\n 'x-component': 'Upload.Attachment',\n 'x-component-props': {\n action: 'attachments:upload',\n multiple: false,\n // accept: 'jpg,png'\n },\n },\n appLang: {\n type: 'string',\n title: '{{t(\"Language\")}}',\n 'x-component': 'Select',\n 'x-decorator': 'FormItem',\n enum: [\n { label: 'English', value: 'en-US' },\n { label: '简体中文', value: 'zh-CN' },\n ],\n },\n allowSignUp: {\n type: 'boolean',\n default: true,\n 'x-content': '{{t(\"Allow sign up\")}}',\n 'x-component': 'Checkbox',\n 'x-decorator': 'FormItem',\n },\n footer1: {\n type: 'void',\n 'x-component': 'Action.Drawer.Footer',\n properties: {\n cancel: {\n title: 'Cancel',\n 'x-component': 'Action',\n 'x-component-props': {\n useAction: '{{ useCloseAction }}',\n },\n },\n submit: {\n title: 'Submit',\n 'x-component': 'Action',\n 'x-component-props': {\n type: 'primary',\n htmlType: 'submit',\n useAction: '{{ useSaveSystemSettingsValues }}',\n },\n },\n },\n },\n },\n },\n },\n};\n\nexport const SystemSettingsShortcut = () => {\n const [visible, setVisible] = useState(false);\n const { t } = useTranslation();\n return (\n <ActionContext.Provider value={{ visible, setVisible }}>\n <PluginManager.Toolbar.Item\n eventKey={'ACLAction'}\n onClick={() => {\n setVisible(true);\n }}\n icon={<SettingOutlined />}\n title={t('System settings')}\n />\n <SchemaComponent\n scope={{ useSaveSystemSettingsValues, useSystemSettingsValues, useCloseAction }}\n schema={schema}\n />\n </ActionContext.Provider>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system-settings/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAAyC;AACzC,2DAAyC","sourcesContent":["export * from './SystemSettingsProvider';\nexport * from './SystemSettingsShortcut';\n\n"]}