@nocobase/client 0.9.4-alpha.1 → 0.10.0-alpha.2

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 (1333) hide show
  1. package/.dumi/global.less +1 -0
  2. package/.dumi/theme/builtins/LangSwitch/index.tsx +11 -0
  3. package/.dumi/theme/builtins/Previewer/index.tsx +23 -0
  4. package/.dumirc.ts +56 -0
  5. package/contributing.md +1 -1
  6. package/docs/develop.md +5 -0
  7. package/{intro.md → docs/intro.md} +21 -27
  8. package/es/acl/ACLProvider.d.ts +6 -7
  9. package/es/acl/ACLProvider.js +6 -22
  10. package/es/acl/ACLShortcut.d.ts +2 -3
  11. package/es/acl/ACLShortcut.js +2 -61
  12. package/es/acl/Configuration/ConfigureCenter.d.ts +3 -2
  13. package/es/acl/Configuration/ConfigureCenter.js +7 -22
  14. package/es/acl/Configuration/FilterDynamicComponent.d.ts +2 -2
  15. package/es/acl/Configuration/MenuConfigure.d.ts +2 -1
  16. package/es/acl/Configuration/MenuItemsProvider.d.ts +2 -1
  17. package/es/acl/Configuration/PermisionProvider.d.ts +2 -2
  18. package/es/acl/Configuration/RoleConfigure.d.ts +2 -1
  19. package/es/acl/Configuration/RoleTable.d.ts +2 -1
  20. package/es/acl/Configuration/ScopeSelect.d.ts +2 -1
  21. package/es/acl/Configuration/schemas/scopes.d.ts +1 -0
  22. package/es/antd-config-provider/index.d.ts +1 -1
  23. package/es/api-client/APIClient.d.ts +1 -1
  24. package/es/api-client/APIClientProvider.d.ts +2 -1
  25. package/es/api-client/hooks/assign.d.ts +0 -1
  26. package/es/api-client/hooks/assign.js +1 -7
  27. package/es/api-client/hooks/useRequest.d.ts +1 -1
  28. package/es/api-client/hooks/useRequest.js +1 -1
  29. package/es/appInfo/CurrentAppInfoProvider.d.ts +1 -1
  30. package/es/application/Application.d.ts +2 -1
  31. package/es/application/Application.js +5 -4
  32. package/es/application/compose.d.ts +2 -1
  33. package/es/application-v2/Application.d.ts +31 -0
  34. package/es/application-v2/Application.js +139 -0
  35. package/es/application-v2/Plugin.d.ts +14 -0
  36. package/es/application-v2/Plugin.js +92 -0
  37. package/es/application-v2/PluginManager.d.ts +19 -0
  38. package/es/application-v2/PluginManager.js +242 -0
  39. package/es/application-v2/Router.d.ts +13 -0
  40. package/es/application-v2/Router.js +103 -0
  41. package/es/application-v2/components/AppComponent.d.ts +2 -0
  42. package/es/application-v2/components/AppComponent.js +20 -0
  43. package/es/application-v2/components/MainComponent.d.ts +6 -0
  44. package/es/application-v2/components/MainComponent.js +13 -0
  45. package/es/application-v2/components/RouterProvider.d.ts +14 -0
  46. package/es/application-v2/components/RouterProvider.js +105 -0
  47. package/es/application-v2/components/index.d.ts +13 -0
  48. package/es/application-v2/components/index.js +13 -0
  49. package/es/application-v2/compose.d.ts +2 -0
  50. package/es/application-v2/compose.js +41 -0
  51. package/es/application-v2/context.d.ts +3 -0
  52. package/es/application-v2/context.js +2 -0
  53. package/es/application-v2/hooks/index.d.ts +3 -0
  54. package/es/application-v2/hooks/index.js +3 -0
  55. package/es/application-v2/hooks/useApp.d.ts +1 -0
  56. package/es/application-v2/hooks/useApp.js +5 -0
  57. package/es/application-v2/hooks/useLoad.d.ts +1 -0
  58. package/es/application-v2/hooks/useLoad.js +38 -0
  59. package/es/application-v2/hooks/useRouter.d.ts +1 -0
  60. package/es/application-v2/hooks/useRouter.js +5 -0
  61. package/es/application-v2/index.d.ts +3 -0
  62. package/es/application-v2/index.js +3 -0
  63. package/es/application-v2/types.d.ts +26 -0
  64. package/es/application-v2/types.js +1 -0
  65. package/es/async-data-provider/index.d.ts +1 -1
  66. package/es/auth/OptionsComponent.d.ts +7 -0
  67. package/es/auth/OptionsComponent.js +20 -0
  68. package/es/auth/SigninPage.d.ts +23 -0
  69. package/es/auth/SigninPage.js +141 -0
  70. package/es/auth/SigninPageExtension.d.ts +22 -0
  71. package/es/auth/SigninPageExtension.js +30 -0
  72. package/es/auth/SignupPage.d.ts +24 -0
  73. package/es/auth/SignupPage.js +82 -0
  74. package/es/auth/index.d.ts +4 -0
  75. package/es/auth/index.js +4 -0
  76. package/es/block-provider/BlockProvider.d.ts +4 -3
  77. package/es/block-provider/BlockProvider.js +23 -6
  78. package/es/block-provider/CalendarBlockProvider.d.ts +1 -1
  79. package/es/block-provider/DetailsBlockProvider.d.ts +1 -1
  80. package/es/block-provider/DetailsBlockProvider.js +1 -13
  81. package/es/block-provider/FilterFormBlockProvider.d.ts +2 -1
  82. package/es/block-provider/FormBlockProvider.d.ts +1 -1
  83. package/es/block-provider/FormBlockProvider.js +10 -21
  84. package/es/block-provider/FormFieldProvider.d.ts +1 -1
  85. package/es/block-provider/GanttBlockProvider.d.ts +1 -1
  86. package/es/block-provider/KanbanBlockProvider.d.ts +1 -1
  87. package/es/block-provider/TableBlockProvider.d.ts +1 -2
  88. package/es/block-provider/TableBlockProvider.js +57 -82
  89. package/es/block-provider/TableFieldProvider.d.ts +1 -1
  90. package/es/block-provider/TableSelectorProvider.d.ts +2 -2
  91. package/es/block-provider/hooks/index.d.ts +10 -1
  92. package/es/block-provider/hooks/index.js +53 -137
  93. package/es/block-provider/index.d.ts +1 -0
  94. package/es/block-provider/index.js +2 -1
  95. package/es/board/Card.d.ts +2 -2
  96. package/es/board/CardAdder.d.ts +2 -2
  97. package/es/board/CardForm.d.ts +2 -2
  98. package/es/board/Column.d.ts +3 -3
  99. package/es/board/ColumnAdder.d.ts +2 -2
  100. package/es/board/ColumnForm.d.ts +2 -2
  101. package/es/board/DefaultCard.d.ts +2 -2
  102. package/es/board/DefaultColumnHeader.d.ts +2 -2
  103. package/es/board/Kanban.d.ts +2 -2
  104. package/es/board/withDroppable.d.ts +2 -1
  105. package/es/china-region/index.d.ts +2 -1
  106. package/es/collection-manager/CollectionField.d.ts +1 -1
  107. package/es/collection-manager/CollectionField.js +2 -1
  108. package/es/collection-manager/CollectionManagerProvider.d.ts +2 -2
  109. package/es/collection-manager/CollectionManagerShortcut.d.ts +2 -3
  110. package/es/collection-manager/CollectionManagerShortcut.js +3 -60
  111. package/es/collection-manager/Configuration/AddCategoryAction.d.ts +3 -2
  112. package/es/collection-manager/Configuration/AddCategoryAction.js +2 -2
  113. package/es/collection-manager/Configuration/AddCollectionAction.d.ts +3 -2
  114. package/es/collection-manager/Configuration/AddCollectionAction.js +2 -2
  115. package/es/collection-manager/Configuration/AddFieldAction.d.ts +3 -2
  116. package/es/collection-manager/Configuration/AddFieldAction.js +2 -2
  117. package/es/collection-manager/Configuration/AddSubFieldAction.d.ts +2 -1
  118. package/es/collection-manager/Configuration/AddSubFieldAction.js +2 -2
  119. package/es/collection-manager/Configuration/CollectionFields.d.ts +2 -1
  120. package/es/collection-manager/Configuration/CollectionFieldsTable.d.ts +2 -2
  121. package/es/collection-manager/Configuration/CollectionFieldsTable.js +3 -1
  122. package/es/collection-manager/Configuration/CollectionFieldsTableArray.d.ts +2 -2
  123. package/es/collection-manager/Configuration/CollectionFieldsTableArray.js +3 -1
  124. package/es/collection-manager/Configuration/ConfigurationTable.d.ts +2 -1
  125. package/es/collection-manager/Configuration/ConfigurationTabs.d.ts +2 -1
  126. package/es/collection-manager/Configuration/ConfigurationTabs.js +4 -0
  127. package/es/collection-manager/Configuration/EditCategoryAction.d.ts +3 -2
  128. package/es/collection-manager/Configuration/EditCategoryAction.js +2 -2
  129. package/es/collection-manager/Configuration/EditCollectionAction.d.ts +3 -2
  130. package/es/collection-manager/Configuration/EditCollectionAction.js +2 -2
  131. package/es/collection-manager/Configuration/EditFieldAction.d.ts +3 -2
  132. package/es/collection-manager/Configuration/EditFieldAction.js +2 -2
  133. package/es/collection-manager/Configuration/EditSubFieldAction.d.ts +2 -1
  134. package/es/collection-manager/Configuration/EditSubFieldAction.js +2 -2
  135. package/es/collection-manager/Configuration/OverridingCollectionField.d.ts +3 -2
  136. package/es/collection-manager/Configuration/OverridingCollectionField.js +2 -2
  137. package/es/collection-manager/Configuration/SyncFieldsAction.d.ts +3 -2
  138. package/es/collection-manager/Configuration/SyncFieldsAction.js +2 -2
  139. package/es/collection-manager/Configuration/ViewInheritedField.d.ts +3 -2
  140. package/es/collection-manager/Configuration/ViewInheritedField.js +2 -2
  141. package/es/collection-manager/Configuration/components/CollectionCategory.d.ts +1 -1
  142. package/es/collection-manager/Configuration/components/CollectionCategory.js +2 -0
  143. package/es/collection-manager/Configuration/components/CollectionFieldInterface.d.ts +1 -1
  144. package/es/collection-manager/Configuration/components/CollectionFieldInterface.js +2 -0
  145. package/es/collection-manager/Configuration/components/CollectionTemplate.d.ts +1 -1
  146. package/es/collection-manager/Configuration/components/CollectionTemplate.js +2 -0
  147. package/es/collection-manager/Configuration/components/FieldSummary.d.ts +1 -1
  148. package/es/collection-manager/Configuration/components/FieldSummary.js +4 -2
  149. package/es/collection-manager/Configuration/components/TemplateSummay.d.ts +1 -1
  150. package/es/collection-manager/Configuration/components/TemplateSummay.js +4 -2
  151. package/es/collection-manager/Configuration/components/index.d.ts +6 -6
  152. package/es/collection-manager/Configuration/components/index.js +12 -0
  153. package/es/collection-manager/Configuration/interfaces.d.ts +1 -0
  154. package/es/collection-manager/Configuration/templates.d.ts +1 -0
  155. package/es/collection-manager/ResourceActionProvider.d.ts +1 -1
  156. package/es/collection-manager/action-hooks.d.ts +1 -0
  157. package/es/collection-manager/action-hooks.js +168 -90
  158. package/es/collection-manager/index.d.ts +1 -1
  159. package/es/collection-manager/index.js +1 -1
  160. package/es/collection-manager/interfaces/components/index.d.ts +7 -6
  161. package/es/collection-manager/interfaces/index.d.ts +0 -1
  162. package/es/collection-manager/interfaces/index.js +0 -1
  163. package/es/collection-manager/interfaces/properties/index.d.ts +0 -1
  164. package/es/collection-manager/interfaces/properties/index.js +0 -40
  165. package/es/collection-manager/interfaces/url.js +0 -5
  166. package/es/collection-manager/sub-table.d.ts +2 -2
  167. package/es/collection-manager/sub-table.js +4 -0
  168. package/es/collection-manager/templates/components/PreviewFields.d.ts +1 -1
  169. package/es/collection-manager/templates/components/PreviewFields.js +2 -1
  170. package/es/collection-manager/templates/components/PreviewTable.d.ts +2 -1
  171. package/es/collection-manager/types.d.ts +2 -0
  172. package/es/filter-provider/FilterProvider.d.ts +5 -1
  173. package/es/filter-provider/FilterProvider.js +8 -3
  174. package/es/formula/Expression.d.ts +2 -1
  175. package/es/formula/Result.d.ts +2 -1
  176. package/es/formula/index.d.ts +2 -2
  177. package/es/hooks/index.d.ts +1 -0
  178. package/es/hooks/index.js +1 -0
  179. package/es/hooks/useViewport.d.ts +1 -0
  180. package/es/hooks/useViewport.js +41 -0
  181. package/es/i18n/i18n.js +0 -1
  182. package/es/icon/Icon.d.ts +2 -1
  183. package/es/index.d.ts +2 -0
  184. package/es/index.js +3 -1
  185. package/es/locale/en_US.d.ts +16 -21
  186. package/es/locale/en_US.js +19 -24
  187. package/es/locale/es_ES.d.ts +3 -1
  188. package/es/locale/es_ES.js +4 -2
  189. package/es/locale/ja_JP.d.ts +16 -19
  190. package/es/locale/ja_JP.js +17 -20
  191. package/es/locale/pt_BR.d.ts +2 -0
  192. package/es/locale/pt_BR.js +3 -1
  193. package/es/locale/ru_RU.d.ts +2 -18
  194. package/es/locale/ru_RU.js +3 -19
  195. package/es/locale/tr_TR.d.ts +0 -17
  196. package/es/locale/tr_TR.js +0 -17
  197. package/es/locale/zh_CN.d.ts +26 -24
  198. package/es/locale/zh_CN.js +28 -26
  199. package/es/plugin-manager/PinnedPluginListProvider.d.ts +1 -1
  200. package/es/plugin-manager/index.d.ts +1 -3
  201. package/es/plugin-manager/index.js +1 -3
  202. package/es/pm/Card.d.ts +8 -0
  203. package/es/pm/Card.js +364 -0
  204. package/es/pm/PluginManagerLink.d.ts +3 -2
  205. package/es/pm/PluginManagerLink.js +28 -20
  206. package/es/pm/index.d.ts +31 -2
  207. package/es/pm/index.js +82 -261
  208. package/es/powered-by/index.d.ts +2 -1
  209. package/es/route-switch/RouteSwitch.d.ts +2 -2
  210. package/es/route-switch/RouteSwitch.js +76 -45
  211. package/es/route-switch/RouteSwitchProvider.d.ts +3 -3
  212. package/es/route-switch/antd/admin-layout/index.d.ts +4 -2
  213. package/es/route-switch/antd/admin-layout/index.js +57 -53
  214. package/es/route-switch/antd/auth-layout/index.d.ts +2 -2
  215. package/es/route-switch/antd/auth-layout/index.js +2 -1
  216. package/es/route-switch/antd/route-schema-component/index.d.ts +2 -2
  217. package/es/route-switch/antd/route-schema-component/index.js +3 -3
  218. package/es/route-switch/context.d.ts +4 -0
  219. package/es/route-switch/context.js +5 -2
  220. package/es/route-switch/types.d.ts +2 -5
  221. package/es/schema-component/antd/AntdSchemaComponentProvider.d.ts +2 -1
  222. package/es/schema-component/antd/action/Action.Container.js +4 -0
  223. package/es/schema-component/antd/action/Action.Designer.d.ts +2 -1
  224. package/es/schema-component/antd/action/Action.Designer.js +208 -22
  225. package/es/schema-component/antd/action/Action.Drawer.js +15 -13
  226. package/es/schema-component/antd/action/Action.Link.js +3 -1
  227. package/es/schema-component/antd/action/Action.Modal.js +13 -12
  228. package/es/schema-component/antd/action/Action.Page.js +8 -2
  229. package/es/schema-component/antd/action/Action.js +28 -20
  230. package/es/schema-component/antd/action/ActionBar.d.ts +18 -2
  231. package/es/schema-component/antd/action/ActionBar.js +46 -20
  232. package/es/schema-component/antd/action/context.d.ts +8 -2
  233. package/es/schema-component/antd/action/context.js +15 -2
  234. package/es/schema-component/antd/action/hooks.d.ts +2 -0
  235. package/es/schema-component/antd/association-field/AssociationFieldProvider.d.ts +1 -1
  236. package/es/schema-component/antd/association-field/AssociationFieldProvider.js +100 -7
  237. package/es/schema-component/antd/association-field/AssociationSelect.js +89 -11
  238. package/es/schema-component/antd/association-field/Editable.d.ts +1 -1
  239. package/es/schema-component/antd/association-field/Editable.js +13 -44
  240. package/es/schema-component/antd/association-field/FileManager.d.ts +1 -1
  241. package/es/schema-component/antd/association-field/FileManager.js +14 -4
  242. package/es/schema-component/antd/association-field/InternalNester.d.ts +2 -1
  243. package/es/schema-component/antd/association-field/InternalNester.js +12 -1
  244. package/es/schema-component/antd/association-field/InternalPicker.d.ts +1 -1
  245. package/es/schema-component/antd/association-field/InternalPicker.js +10 -4
  246. package/es/schema-component/antd/association-field/InternalSubTable.d.ts +2 -1
  247. package/es/schema-component/antd/association-field/InternalSubTable.js +35 -6
  248. package/es/schema-component/antd/association-field/InternalViewer.js +10 -3
  249. package/es/schema-component/antd/association-field/Nester.d.ts +2 -1
  250. package/es/schema-component/antd/association-field/Nester.js +66 -15
  251. package/es/schema-component/antd/association-field/ReadPretty.d.ts +1 -1
  252. package/es/schema-component/antd/association-field/ReadPretty.js +4 -0
  253. package/es/schema-component/antd/association-field/SubTable.js +53 -12
  254. package/es/schema-component/antd/association-field/components/CreateRecordAction.d.ts +1 -1
  255. package/es/schema-component/antd/association-field/components/CreateRecordAction.js +4 -2
  256. package/es/schema-component/antd/association-field/context.d.ts +2 -0
  257. package/es/schema-component/antd/association-field/hooks.d.ts +2 -0
  258. package/es/schema-component/antd/association-field/schema.d.ts +3 -15
  259. package/es/schema-component/antd/association-field/schema.js +4 -16
  260. package/es/schema-component/antd/association-filter/ActionBarAssociationFilterAction.d.ts +2 -1
  261. package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +2 -1
  262. package/es/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +2 -1
  263. package/es/schema-component/antd/association-filter/AssociationFilter.Initializer.d.ts +2 -1
  264. package/es/schema-component/antd/association-filter/AssociationFilter.Item.Designer.d.ts +2 -1
  265. package/es/schema-component/antd/association-filter/AssociationFilter.Item.d.ts +2 -1
  266. package/es/schema-component/antd/association-filter/AssociationFilter.d.ts +7 -6
  267. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDelete.d.ts +2 -1
  268. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.d.ts +2 -1
  269. package/es/schema-component/antd/association-select/ReadPretty.d.ts +1 -1
  270. package/es/schema-component/antd/association-select/ReadPretty.js +2 -0
  271. package/es/schema-component/antd/block-item/BlockItem.js +6 -3
  272. package/es/schema-component/antd/block-item/TestDesigner.d.ts +2 -1
  273. package/es/schema-component/antd/calendar/Calendar.Designer.d.ts +2 -1
  274. package/es/schema-component/antd/calendar/Calendar.js +7 -5
  275. package/es/schema-component/antd/calendar/DeleteEvent.d.ts +1 -1
  276. package/es/schema-component/antd/calendar/DeleteEvent.js +2 -0
  277. package/es/schema-component/antd/calendar/Event.d.ts +1 -1
  278. package/es/schema-component/antd/calendar/Event.js +2 -0
  279. package/es/schema-component/antd/calendar/Nav.d.ts +1 -1
  280. package/es/schema-component/antd/calendar/Nav.js +5 -3
  281. package/es/schema-component/antd/calendar/Title.d.ts +1 -1
  282. package/es/schema-component/antd/calendar/Title.js +2 -0
  283. package/es/schema-component/antd/calendar/Today.d.ts +1 -1
  284. package/es/schema-component/antd/calendar/Today.js +4 -2
  285. package/es/schema-component/antd/calendar/ViewSelect.d.ts +1 -1
  286. package/es/schema-component/antd/calendar/ViewSelect.js +3 -0
  287. package/es/schema-component/antd/calendar/components/Header.d.ts +2 -1
  288. package/es/schema-component/antd/card-item/CardItem.js +1 -1
  289. package/es/schema-component/antd/cascader/Cascader.js +8 -1
  290. package/es/schema-component/antd/checkbox/Checkbox.d.ts +2 -1
  291. package/es/schema-component/antd/checkbox/Checkbox.js +14 -12
  292. package/es/schema-component/antd/collection-select/CollectionSelect.js +2 -0
  293. package/es/schema-component/antd/cron/Cron.d.ts +2 -1
  294. package/es/schema-component/antd/cron/Cron.js +3 -2
  295. package/es/schema-component/antd/date-picker/DatePicker.d.ts +4 -2
  296. package/es/schema-component/antd/date-picker/DatePicker.js +2 -1
  297. package/es/schema-component/antd/date-picker/ReadPretty.d.ts +1 -1
  298. package/es/schema-component/antd/date-picker/ReadPretty.js +1 -1
  299. package/es/schema-component/antd/error-fallback/ErrorFallback.d.ts +2 -1
  300. package/es/schema-component/antd/expand-action/Expand.Action.Design.d.ts +2 -1
  301. package/es/schema-component/antd/expand-action/Expand.Action.Design.js +2 -2
  302. package/es/schema-component/antd/expand-action/Expand.Action.d.ts +2 -1
  303. package/es/schema-component/antd/expand-action/Expand.Action.js +3 -6
  304. package/es/schema-component/antd/filter/DynamicComponent.d.ts +2 -1
  305. package/es/schema-component/antd/filter/Filter.Action.Designer.d.ts +2 -1
  306. package/es/schema-component/antd/filter/Filter.js +3 -1
  307. package/es/schema-component/antd/filter/FilterAction.d.ts +1 -1
  308. package/es/schema-component/antd/filter/FilterAction.js +5 -3
  309. package/es/schema-component/antd/filter/FilterItem.d.ts +1 -1
  310. package/es/schema-component/antd/filter/FilterItem.js +46 -41
  311. package/es/schema-component/antd/filter/FilterItems.d.ts +1 -1
  312. package/es/schema-component/antd/filter/FilterItems.js +2 -0
  313. package/es/schema-component/antd/filter/SaveDefaultValue.d.ts +2 -1
  314. package/es/schema-component/antd/filter/index.d.ts +1 -0
  315. package/es/schema-component/antd/filter/index.js +1 -0
  316. package/es/schema-component/antd/filter/useValues.js +3 -3
  317. package/es/schema-component/antd/form/Form.Designer.d.ts +2 -1
  318. package/es/schema-component/antd/form/Form.d.ts +1 -1
  319. package/es/schema-component/antd/form/Form.js +2 -0
  320. package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +2 -1
  321. package/es/schema-component/antd/form-item/FormItem.js +99 -34
  322. package/es/schema-component/antd/form-item/SchemaSettingOptions.d.ts +11 -10
  323. package/es/schema-component/antd/form-item/SchemaSettingOptions.js +1 -1
  324. package/es/schema-component/antd/form-v2/Form.Designer.d.ts +4 -3
  325. package/es/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +2 -1
  326. package/es/schema-component/antd/form-v2/Form.js +9 -2
  327. package/es/schema-component/antd/form-v2/FormField.js +2 -0
  328. package/es/schema-component/antd/form-v2/Templates.d.ts +7 -1
  329. package/es/schema-component/antd/form-v2/Templates.js +22 -4
  330. package/es/schema-component/antd/form-v2/index.js +2 -0
  331. package/es/schema-component/antd/g2plot/G2Plot.js +2 -0
  332. package/es/schema-component/antd/g2plot/G2PlotDesigner.d.ts +2 -1
  333. package/es/schema-component/antd/gantt/Gantt.Designer.d.ts +2 -1
  334. package/es/schema-component/antd/gantt/components/gantt/Event.d.ts +1 -1
  335. package/es/schema-component/antd/gantt/components/gantt/Event.js +2 -0
  336. package/es/schema-component/antd/gantt/components/gantt/gantt.js +2 -2
  337. package/es/schema-component/antd/grid/Block.d.ts +1 -1
  338. package/es/schema-component/antd/grid/Block.js +2 -0
  339. package/es/schema-component/antd/grid/Grid.js +25 -9
  340. package/es/schema-component/antd/grid-card/GridCard.Decorator.d.ts +1 -1
  341. package/es/schema-component/antd/grid-card/GridCard.Decorator.js +2 -12
  342. package/es/schema-component/antd/grid-card/GridCard.Designer.d.ts +2 -1
  343. package/es/schema-component/antd/grid-card/GridCard.Designer.js +1 -1
  344. package/es/schema-component/antd/grid-card/GridCard.Item.d.ts +2 -1
  345. package/es/schema-component/antd/grid-card/GridCard.d.ts +2 -1
  346. package/es/schema-component/antd/grid-card/GridCard.js +12 -8
  347. package/es/schema-component/antd/icon-picker/IconPicker.js +2 -2
  348. package/es/schema-component/antd/index.d.ts +1 -0
  349. package/es/schema-component/antd/index.js +1 -0
  350. package/es/schema-component/antd/index.less +20 -4
  351. package/es/schema-component/antd/input/EllipsisWithTooltip.js +2 -2
  352. package/es/schema-component/antd/input/Input.d.ts +2 -1
  353. package/es/schema-component/antd/input/Input.js +3 -2
  354. package/es/schema-component/antd/input/Json.d.ts +2 -2
  355. package/es/schema-component/antd/input/Json.js +43 -4
  356. package/es/schema-component/antd/input/ReadPretty.d.ts +1 -1
  357. package/es/schema-component/antd/input/ReadPretty.js +4 -4
  358. package/es/schema-component/antd/input-number/InputNumber.d.ts +5 -1
  359. package/es/schema-component/antd/input-number/InputNumber.js +2 -2
  360. package/es/schema-component/antd/input-number/ReadPretty.d.ts +2 -2
  361. package/es/schema-component/antd/input-number/ReadPretty.js +6 -2
  362. package/es/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +2 -1
  363. package/es/schema-component/antd/kanban/Kanban.Card.Designer.d.ts +2 -1
  364. package/es/schema-component/antd/kanban/Kanban.Card.js +5 -3
  365. package/es/schema-component/antd/kanban/Kanban.CardViewer.js +2 -0
  366. package/es/schema-component/antd/kanban/Kanban.Designer.d.ts +2 -1
  367. package/es/schema-component/antd/kanban/Kanban.js +3 -1
  368. package/es/schema-component/antd/list/List.Decorator.d.ts +1 -1
  369. package/es/schema-component/antd/list/List.Decorator.js +7 -12
  370. package/es/schema-component/antd/list/List.Designer.d.ts +2 -1
  371. package/es/schema-component/antd/list/List.Item.d.ts +2 -1
  372. package/es/schema-component/antd/list/List.Item.js +1 -1
  373. package/es/schema-component/antd/list/List.d.ts +2 -1
  374. package/es/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +2 -1
  375. package/es/schema-component/antd/markdown/Markdown.Void.js +2 -0
  376. package/es/schema-component/antd/markdown/Markdown.d.ts +2 -0
  377. package/es/schema-component/antd/markdown/Markdown.js +6 -2
  378. package/es/schema-component/antd/markdown/util.js +1 -1
  379. package/es/schema-component/antd/menu/Menu.Designer.d.ts +2 -1
  380. package/es/schema-component/antd/menu/Menu.js +46 -37
  381. package/es/schema-component/antd/menu/MenuItemInitializers/index.d.ts +2 -1
  382. package/es/schema-component/antd/page/FixedBlock.d.ts +2 -1
  383. package/es/schema-component/antd/page/FixedBlock.js +6 -2
  384. package/es/schema-component/antd/page/Page.d.ts +2 -1
  385. package/es/schema-component/antd/page/Page.js +25 -17
  386. package/es/schema-component/antd/page/PageTabDesigner.d.ts +3 -2
  387. package/es/schema-component/antd/pagination/index.d.ts +1 -1
  388. package/es/schema-component/antd/pagination/index.js +2 -0
  389. package/es/schema-component/antd/password/Password.d.ts +1 -1
  390. package/es/schema-component/antd/password/PasswordStrength.js +1 -144
  391. package/es/schema-component/antd/password/utils.d.ts +1 -0
  392. package/es/schema-component/antd/password/utils.js +144 -0
  393. package/es/schema-component/antd/percent/Percent.js +1 -1
  394. package/es/schema-component/antd/preview/Preview.d.ts +1 -1
  395. package/es/schema-component/antd/quick-edit/QuickEdit.d.ts +3 -0
  396. package/es/schema-component/antd/quick-edit/QuickEdit.js +88 -0
  397. package/es/schema-component/antd/quick-edit/index.d.ts +1 -0
  398. package/es/schema-component/antd/quick-edit/index.js +1 -0
  399. package/es/schema-component/antd/radio/Radio.d.ts +1 -1
  400. package/es/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -1
  401. package/es/schema-component/antd/record-picker/InputRecordPicker.js +5 -7
  402. package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +10 -4
  403. package/es/schema-component/antd/remote-select/ReadPretty.d.ts +1 -1
  404. package/es/schema-component/antd/remote-select/ReadPretty.js +2 -0
  405. package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  406. package/es/schema-component/antd/remote-select/RemoteSelect.js +56 -26
  407. package/es/schema-component/antd/select/ReadPretty.d.ts +1 -1
  408. package/es/schema-component/antd/select/ReadPretty.js +6 -6
  409. package/es/schema-component/antd/select/Select.d.ts +3 -0
  410. package/es/schema-component/antd/select/Select.js +33 -13
  411. package/es/schema-component/antd/select/index.d.ts +1 -1
  412. package/es/schema-component/antd/select/index.js +1 -1
  413. package/es/schema-component/antd/select/utils.d.ts +14 -0
  414. package/es/schema-component/antd/select/{shared.js → utils.js} +20 -18
  415. package/es/schema-component/antd/table/Table.Array.Designer.d.ts +2 -1
  416. package/es/schema-component/antd/table/Table.Array.d.ts +5 -5
  417. package/es/schema-component/antd/table/Table.Array.js +7 -5
  418. package/es/schema-component/antd/table/Table.Column.ActionBar.d.ts +1 -1
  419. package/es/schema-component/antd/table/Table.Column.ActionBar.js +2 -0
  420. package/es/schema-component/antd/table/Table.Column.Decorator.d.ts +2 -1
  421. package/es/schema-component/antd/table/Table.Column.Designer.d.ts +2 -1
  422. package/es/schema-component/antd/table/Table.Column.d.ts +2 -1
  423. package/es/schema-component/antd/table/Table.Designer.d.ts +2 -1
  424. package/es/schema-component/antd/table/Table.RowActionDesigner.d.ts +2 -1
  425. package/es/schema-component/antd/table/Table.RowSelection.d.ts +1 -1
  426. package/es/schema-component/antd/table/Table.RowSelection.js +2 -0
  427. package/es/schema-component/antd/table/Table.Void.Designer.d.ts +2 -1
  428. package/es/schema-component/antd/table/Table.Void.d.ts +1 -1
  429. package/es/schema-component/antd/table/Table.Void.js +2 -0
  430. package/es/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -2
  431. package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +2 -1
  432. package/es/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +1 -1
  433. package/es/schema-component/antd/table-v2/Table.Column.ActionBar.js +2 -0
  434. package/es/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +2 -1
  435. package/es/schema-component/antd/table-v2/Table.Column.Designer.d.ts +2 -1
  436. package/es/schema-component/antd/table-v2/Table.Column.Designer.js +101 -3
  437. package/es/schema-component/antd/table-v2/Table.Column.d.ts +2 -1
  438. package/es/schema-component/antd/table-v2/Table.Designer.d.ts +2 -1
  439. package/es/schema-component/antd/table-v2/Table.Index.d.ts +2 -1
  440. package/es/schema-component/antd/table-v2/Table.js +58 -27
  441. package/es/schema-component/antd/table-v2/TableBlockDesigner.d.ts +2 -1
  442. package/es/schema-component/antd/table-v2/TableBlockDesigner.js +53 -47
  443. package/es/schema-component/antd/table-v2/TableField.js +4 -0
  444. package/es/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +2 -1
  445. package/es/schema-component/antd/table-v2/index.d.ts +1 -0
  446. package/es/schema-component/antd/table-v2/index.js +1 -0
  447. package/es/schema-component/antd/table-v2/utils.js +1 -1
  448. package/es/schema-component/antd/tabs/Tabs.Designer.d.ts +2 -1
  449. package/es/schema-component/antd/tabs/Tabs.js +23 -5
  450. package/es/schema-component/antd/tabs/context.d.ts +8 -0
  451. package/es/schema-component/antd/tabs/context.js +15 -0
  452. package/es/schema-component/antd/tabs/index.d.ts +1 -0
  453. package/es/schema-component/antd/tabs/index.js +2 -1
  454. package/es/schema-component/antd/time-picker/ReadPretty.d.ts +1 -1
  455. package/es/schema-component/antd/time-picker/ReadPretty.js +1 -1
  456. package/es/schema-component/antd/time-picker/TimePicker.d.ts +1 -1
  457. package/es/schema-component/antd/time-picker/TimePicker.js +1 -1
  458. package/es/schema-component/antd/tree-select/ReadPretty.d.ts +1 -1
  459. package/es/schema-component/antd/tree-select/ReadPretty.js +3 -1
  460. package/es/schema-component/antd/upload/Upload.js +1 -1
  461. package/es/schema-component/antd/upload/shared.d.ts +3 -3
  462. package/es/schema-component/antd/upload/style.less +1 -2
  463. package/es/schema-component/antd/upload/type.d.ts +2 -2
  464. package/es/schema-component/antd/variable/Input.d.ts +2 -2
  465. package/es/schema-component/antd/variable/Input.js +182 -31
  466. package/es/schema-component/antd/variable/JSONInput.d.ts +2 -2
  467. package/es/schema-component/antd/variable/JSONInput.js +2 -23
  468. package/es/schema-component/antd/variable/TextArea.d.ts +2 -2
  469. package/es/schema-component/antd/variable/VariableSelect.d.ts +2 -2
  470. package/es/schema-component/common/dnd-context/index.d.ts +1 -1
  471. package/es/schema-component/common/dnd-context/index.js +11 -4
  472. package/es/schema-component/common/sortable-item/SortableItem.d.ts +11 -4
  473. package/es/schema-component/common/sortable-item/SortableItem.js +18 -8
  474. package/es/schema-component/common/utils/logic.js +64 -2
  475. package/es/schema-component/common/utils/uitls.js +48 -14
  476. package/es/schema-component/core/DesignableSwitch.d.ts +2 -1
  477. package/es/schema-component/core/SchemaComponent.d.ts +2 -1
  478. package/es/schema-component/core/SchemaComponentOptions.js +13 -8
  479. package/es/schema-component/core/SchemaComponentProvider.js +17 -6
  480. package/es/schema-component/hooks/useCompile.js +33 -5
  481. package/es/schema-component/hooks/useDesignable.d.ts +5 -4
  482. package/es/schema-component/hooks/useDesignable.js +30 -28
  483. package/es/schema-component/hooks/useFieldModeOptions.js +45 -21
  484. package/es/schema-component/hooks/useProps.d.ts +1 -10
  485. package/es/schema-component/hooks/useProps.js +20 -6
  486. package/es/schema-initializer/SchemaInitializer.d.ts +12 -3
  487. package/es/schema-initializer/SchemaInitializer.js +140 -14
  488. package/es/schema-initializer/SchemaInitializerProvider.d.ts +3 -3
  489. package/es/schema-initializer/SelectCollection.d.ts +2 -1
  490. package/es/schema-initializer/buttons/BlockInitializers.d.ts +2 -0
  491. package/es/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +2 -1
  492. package/es/schema-initializer/buttons/CreateFormBlockInitializers.d.ts +2 -1
  493. package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +2 -1
  494. package/es/schema-initializer/buttons/CustomFormItemInitializers.d.ts +2 -1
  495. package/es/schema-initializer/buttons/DetailsActionInitializers.d.ts +14 -0
  496. package/es/schema-initializer/buttons/DetailsActionInitializers.js +12 -0
  497. package/es/schema-initializer/buttons/FormItemInitializers.d.ts +3 -2
  498. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +16 -0
  499. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +21 -16
  500. package/es/schema-initializer/buttons/ReadPrettyFormItemInitializers.d.ts +2 -1
  501. package/es/schema-initializer/buttons/RecordBlockInitializers.d.ts +2 -1
  502. package/es/schema-initializer/buttons/RecordFormBlockInitializers.d.ts +2 -1
  503. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +4 -3
  504. package/es/schema-initializer/buttons/TabPaneInitializers.js +3 -3
  505. package/es/schema-initializer/buttons/TableActionColumnInitializers.d.ts +3 -2
  506. package/es/schema-initializer/buttons/TableActionColumnInitializers.js +12 -3
  507. package/es/schema-initializer/buttons/TableColumnInitializers.d.ts +2 -1
  508. package/es/schema-initializer/buttons/TableColumnInitializers.js +16 -9
  509. package/es/schema-initializer/buttons/TableSelectorInitializers.d.ts +2 -1
  510. package/es/schema-initializer/components/BulkEditField.d.ts +2 -1
  511. package/es/schema-initializer/components/CreateRecordAction.d.ts +2 -2
  512. package/es/schema-initializer/components/CreateRecordAction.js +6 -2
  513. package/es/schema-initializer/components/DeletedField.d.ts +2 -1
  514. package/es/schema-initializer/components/DuplicateAction.d.ts +3 -0
  515. package/es/schema-initializer/components/DuplicateAction.js +165 -0
  516. package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +2 -1
  517. package/es/schema-initializer/components/assigned-field/AssignedField.js +1 -1
  518. package/es/schema-initializer/components/index.d.ts +1 -0
  519. package/es/schema-initializer/components/index.js +2 -1
  520. package/es/schema-initializer/index.d.ts +1 -1
  521. package/es/schema-initializer/index.js +1 -1
  522. package/es/schema-initializer/items/ActionInitializer.d.ts +2 -1
  523. package/es/schema-initializer/items/BlockInitializer.d.ts +2 -1
  524. package/es/schema-initializer/items/BulkDestroyActionInitializer.d.ts +2 -1
  525. package/es/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +2 -1
  526. package/es/schema-initializer/items/CalendarBlockInitializer.d.ts +2 -1
  527. package/es/schema-initializer/items/CollectionFieldInitializer.d.ts +2 -1
  528. package/es/schema-initializer/items/CreateActionInitializer.d.ts +2 -1
  529. package/es/schema-initializer/items/CreateChildInitializer.d.ts +2 -1
  530. package/es/schema-initializer/items/CreateFilterActionInitializer.d.ts +2 -1
  531. package/es/schema-initializer/items/CreateFormBlockInitializer.d.ts +2 -1
  532. package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +2 -1
  533. package/es/schema-initializer/items/CreateResetActionInitializer.d.ts +2 -1
  534. package/es/schema-initializer/items/CreateSubmitActionInitializer.d.ts +2 -1
  535. package/es/schema-initializer/items/CustomizeActionInitializer.d.ts +2 -1
  536. package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +2 -1
  537. package/es/schema-initializer/items/DataBlockInitializer.d.ts +2 -1
  538. package/es/schema-initializer/items/DeleteEventActionInitializer.d.ts +2 -1
  539. package/es/schema-initializer/items/DestroyActionInitializer.d.ts +2 -1
  540. package/es/schema-initializer/items/DetailsBlockInitializer.d.ts +2 -1
  541. package/es/schema-initializer/items/DuplicateActionInitializer.d.ts +2 -0
  542. package/es/schema-initializer/items/DuplicateActionInitializer.js +61 -0
  543. package/es/schema-initializer/items/ExpandActionInitializer.d.ts +2 -1
  544. package/es/schema-initializer/items/ExpandActionInitializer.js +3 -3
  545. package/es/schema-initializer/items/FilterActionInitializer.d.ts +2 -1
  546. package/es/schema-initializer/items/FilterBlockInitializer.d.ts +2 -1
  547. package/es/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +2 -1
  548. package/es/schema-initializer/items/FilterFormBlockInitializer.d.ts +2 -1
  549. package/es/schema-initializer/items/FormBlockInitializer.d.ts +2 -1
  550. package/es/schema-initializer/items/G2PlotInitializer.d.ts +2 -1
  551. package/es/schema-initializer/items/GanttBlockInitializer.d.ts +2 -1
  552. package/es/schema-initializer/items/GridCardBlockInitializer.d.ts +2 -1
  553. package/es/schema-initializer/items/InitializerWithSwitch.d.ts +2 -1
  554. package/es/schema-initializer/items/KanbanBlockInitializer.d.ts +2 -1
  555. package/es/schema-initializer/items/ListBlockInitializer.d.ts +2 -1
  556. package/es/schema-initializer/items/MarkdownBlockInitializer.d.ts +2 -1
  557. package/es/schema-initializer/items/PrintActionInitializer.d.ts +2 -1
  558. package/es/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +2 -1
  559. package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +2 -1
  560. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +2 -1
  561. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +2 -1
  562. package/es/schema-initializer/items/RecordFormBlockInitializer.d.ts +2 -1
  563. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +2 -1
  564. package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +2 -1
  565. package/es/schema-initializer/items/RefreshActionInitializer.d.ts +2 -1
  566. package/es/schema-initializer/items/SelectActionInitializer.d.ts +2 -1
  567. package/es/schema-initializer/items/SubmitActionInitializer.d.ts +2 -1
  568. package/es/schema-initializer/items/TableActionColumnInitializer.d.ts +2 -1
  569. package/es/schema-initializer/items/TableBlockInitializer.d.ts +2 -1
  570. package/es/schema-initializer/items/TableCollectionFieldInitializer.d.ts +2 -1
  571. package/es/schema-initializer/items/TableSelectorInitializer.d.ts +2 -1
  572. package/es/schema-initializer/items/UpdateActionInitializer.d.ts +2 -1
  573. package/es/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +2 -1
  574. package/es/schema-initializer/items/ViewActionInitializer.d.ts +2 -1
  575. package/es/schema-initializer/items/index.d.ts +1 -0
  576. package/es/schema-initializer/items/index.js +1 -0
  577. package/es/schema-initializer/utils.d.ts +13 -0
  578. package/es/schema-initializer/utils.js +70 -43
  579. package/es/schema-items/GeneralSchemaItems.js +5 -3
  580. package/es/schema-items/OpenModeSchemaItems.js +14 -10
  581. package/es/schema-settings/DataTemplates/FormDataTemplates.d.ts +1 -1
  582. package/es/schema-settings/DataTemplates/FormDataTemplates.js +8 -6
  583. package/es/schema-settings/DataTemplates/TreeLabel.d.ts +2 -1
  584. package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.js +1 -1
  585. package/es/schema-settings/DataTemplates/components/DataTemplateTitle.js +11 -13
  586. package/es/schema-settings/DataTemplates/components/Designer.d.ts +1 -1
  587. package/es/schema-settings/DataTemplates/components/Designer.js +2 -0
  588. package/es/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +3 -3
  589. package/es/schema-settings/DataTemplates/hooks/useCollectionState.js +38 -57
  590. package/es/schema-settings/EnableChildCollections/index.d.ts +1 -1
  591. package/es/schema-settings/EnableChildCollections/index.js +2 -0
  592. package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  593. package/es/schema-settings/GeneralSchemaDesigner.js +3 -2
  594. package/es/schema-settings/LinkageRules/DynamicComponent.d.ts +2 -1
  595. package/es/schema-settings/LinkageRules/FilterDynamicComponent.d.ts +1 -1
  596. package/es/schema-settings/LinkageRules/LinkageRuleAction.d.ts +2 -2
  597. package/es/schema-settings/LinkageRules/LinkageRuleAction.js +14 -10
  598. package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.d.ts +2 -2
  599. package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.js +2 -0
  600. package/es/schema-settings/LinkageRules/ValueDynamicComponent.d.ts +2 -1
  601. package/es/schema-settings/LinkageRules/components/LinkageHeader.js +2 -0
  602. package/es/schema-settings/LinkageRules/index.d.ts +1 -1
  603. package/es/schema-settings/LinkageRules/index.js +3 -1
  604. package/es/schema-settings/SchemaSettings.d.ts +2 -1
  605. package/es/schema-settings/SchemaSettings.js +29 -18
  606. package/es/schema-settings/VariableInput/VariableInput.d.ts +1 -1
  607. package/es/schema-settings/VariableInput/VariableInput.js +1 -1
  608. package/es/schema-settings/VariableInput/hooks/useDateVariable.d.ts +12 -1
  609. package/es/schema-settings/VariableInput/hooks/useDateVariable.js +41 -36
  610. package/es/schema-settings/VariableInput/hooks/useUserVariable.d.ts +4 -4
  611. package/es/schema-settings/VariableInput/hooks/useUserVariable.js +66 -42
  612. package/es/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +12 -1
  613. package/es/schema-settings/VariableInput/hooks/useVariableOptions.js +6 -2
  614. package/es/schema-settings/VariableInput/type.d.ts +28 -0
  615. package/es/schema-settings/VariableInput/type.js +1 -0
  616. package/es/schema-settings/hooks/useIsShowMultipleSwitch.js +3 -2
  617. package/es/schema-templates/BlockTemplate.d.ts +1 -1
  618. package/es/schema-templates/BlockTemplate.js +4 -1
  619. package/es/schema-templates/BlockTemplateDetails.d.ts +2 -1
  620. package/es/schema-templates/BlockTemplateDetails.js +6 -6
  621. package/es/schema-templates/BlockTemplatePage.d.ts +3 -2
  622. package/es/schema-templates/SchemaTemplateManagerProvider.d.ts +5 -2
  623. package/es/schema-templates/SchemaTemplateManagerProvider.js +7 -0
  624. package/es/schema-templates/index.d.ts +0 -1
  625. package/es/schema-templates/index.js +1 -2
  626. package/es/settings-form/SettingsForm.js +8 -2
  627. package/es/system-settings/SystemSettingsProvider.d.ts +5 -3
  628. package/es/system-settings/SystemSettingsShortcut.d.ts +2 -3
  629. package/es/system-settings/SystemSettingsShortcut.js +33 -81
  630. package/es/test/collections.d.ts +1487 -0
  631. package/es/test/collections.js +1437 -0
  632. package/es/test/index.d.ts +3 -0
  633. package/es/test/index.js +3 -0
  634. package/es/test/mainCollections.d.ts +11359 -0
  635. package/es/test/mainCollections.js +3 -0
  636. package/es/test/mockAPIClient.d.ts +6 -0
  637. package/es/test/mockAPIClient.js +10 -0
  638. package/es/user/ChangePassword.d.ts +2 -1
  639. package/es/user/ChangePassword.js +2 -2
  640. package/es/user/CurrentUser.d.ts +7 -1
  641. package/es/user/CurrentUser.js +121 -114
  642. package/es/user/CurrentUserProvider.d.ts +1 -1
  643. package/es/user/CurrentUserProvider.js +4 -3
  644. package/es/user/EditProfile.d.ts +2 -1
  645. package/es/user/EditProfile.js +3 -3
  646. package/es/user/LanguageSettings.d.ts +2 -1
  647. package/es/user/SigninPage.d.ts +2 -1
  648. package/es/user/SigninPage.js +15 -7
  649. package/es/user/SigninPageExtension.d.ts +1 -1
  650. package/es/user/SignupPage.d.ts +2 -1
  651. package/es/user/SignupPage.js +5 -4
  652. package/es/user/SwitchRole.d.ts +2 -1
  653. package/es/user/SwitchRole.js +1 -3
  654. package/es/user/ThemeSettings.d.ts +2 -1
  655. package/es/user/VerificationCode.d.ts +2 -2
  656. package/es/user/index.d.ts +0 -3
  657. package/es/user/index.js +3 -3
  658. package/lib/acl/ACLProvider.d.ts +6 -7
  659. package/lib/acl/ACLProvider.js +6 -23
  660. package/lib/acl/ACLShortcut.d.ts +2 -3
  661. package/lib/acl/ACLShortcut.js +4 -64
  662. package/lib/acl/Configuration/ConfigureCenter.d.ts +3 -2
  663. package/lib/acl/Configuration/ConfigureCenter.js +8 -25
  664. package/lib/acl/Configuration/FilterDynamicComponent.d.ts +2 -2
  665. package/lib/acl/Configuration/MenuConfigure.d.ts +2 -1
  666. package/lib/acl/Configuration/MenuItemsProvider.d.ts +2 -1
  667. package/lib/acl/Configuration/PermisionProvider.d.ts +2 -2
  668. package/lib/acl/Configuration/RoleConfigure.d.ts +2 -1
  669. package/lib/acl/Configuration/RoleTable.d.ts +2 -1
  670. package/lib/acl/Configuration/ScopeSelect.d.ts +2 -1
  671. package/lib/acl/Configuration/schemas/scopes.d.ts +1 -0
  672. package/lib/antd-config-provider/index.d.ts +1 -1
  673. package/lib/api-client/APIClient.d.ts +1 -1
  674. package/lib/api-client/APIClientProvider.d.ts +2 -1
  675. package/lib/api-client/hooks/assign.d.ts +0 -1
  676. package/lib/api-client/hooks/assign.js +3 -10
  677. package/lib/api-client/hooks/useRequest.d.ts +1 -1
  678. package/lib/api-client/hooks/useRequest.js +1 -1
  679. package/lib/appInfo/CurrentAppInfoProvider.d.ts +1 -1
  680. package/lib/application/Application.d.ts +2 -1
  681. package/lib/application/Application.js +7 -6
  682. package/lib/application/compose.d.ts +2 -1
  683. package/lib/application-v2/Application.d.ts +31 -0
  684. package/lib/application-v2/Application.js +147 -0
  685. package/lib/application-v2/Plugin.d.ts +14 -0
  686. package/lib/application-v2/Plugin.js +99 -0
  687. package/lib/application-v2/PluginManager.d.ts +19 -0
  688. package/lib/application-v2/PluginManager.js +249 -0
  689. package/lib/application-v2/Router.d.ts +13 -0
  690. package/lib/application-v2/Router.js +111 -0
  691. package/lib/application-v2/components/AppComponent.d.ts +2 -0
  692. package/lib/application-v2/components/AppComponent.js +28 -0
  693. package/lib/application-v2/components/MainComponent.d.ts +6 -0
  694. package/lib/application-v2/components/MainComponent.js +23 -0
  695. package/lib/application-v2/components/RouterProvider.d.ts +14 -0
  696. package/lib/application-v2/components/RouterProvider.js +115 -0
  697. package/lib/application-v2/components/index.d.ts +13 -0
  698. package/lib/application-v2/components/index.js +56 -0
  699. package/lib/application-v2/compose.d.ts +2 -0
  700. package/lib/application-v2/compose.js +49 -0
  701. package/lib/application-v2/context.d.ts +3 -0
  702. package/lib/application-v2/context.js +9 -0
  703. package/lib/application-v2/hooks/index.d.ts +3 -0
  704. package/lib/application-v2/hooks/index.js +38 -0
  705. package/lib/application-v2/hooks/useApp.d.ts +1 -0
  706. package/lib/application-v2/hooks/useApp.js +12 -0
  707. package/lib/application-v2/hooks/useLoad.d.ts +1 -0
  708. package/lib/application-v2/hooks/useLoad.js +45 -0
  709. package/lib/application-v2/hooks/useRouter.d.ts +1 -0
  710. package/lib/application-v2/hooks/useRouter.js +12 -0
  711. package/lib/application-v2/index.d.ts +3 -0
  712. package/lib/application-v2/index.js +38 -0
  713. package/lib/application-v2/types.d.ts +26 -0
  714. package/lib/application-v2/types.js +5 -0
  715. package/lib/async-data-provider/index.d.ts +1 -1
  716. package/lib/auth/OptionsComponent.d.ts +7 -0
  717. package/lib/auth/OptionsComponent.js +32 -0
  718. package/lib/auth/SigninPage.d.ts +23 -0
  719. package/lib/auth/SigninPage.js +155 -0
  720. package/lib/auth/SigninPageExtension.d.ts +22 -0
  721. package/lib/auth/SigninPageExtension.js +42 -0
  722. package/lib/auth/SignupPage.d.ts +24 -0
  723. package/lib/auth/SignupPage.js +94 -0
  724. package/lib/auth/index.d.ts +4 -0
  725. package/lib/auth/index.js +49 -0
  726. package/lib/block-provider/BlockProvider.d.ts +4 -3
  727. package/lib/block-provider/BlockProvider.js +23 -5
  728. package/lib/block-provider/CalendarBlockProvider.d.ts +1 -1
  729. package/lib/block-provider/DetailsBlockProvider.d.ts +1 -1
  730. package/lib/block-provider/DetailsBlockProvider.js +1 -13
  731. package/lib/block-provider/FilterFormBlockProvider.d.ts +2 -1
  732. package/lib/block-provider/FormBlockProvider.d.ts +1 -1
  733. package/lib/block-provider/FormBlockProvider.js +10 -21
  734. package/lib/block-provider/FormFieldProvider.d.ts +1 -1
  735. package/lib/block-provider/GanttBlockProvider.d.ts +1 -1
  736. package/lib/block-provider/KanbanBlockProvider.d.ts +1 -1
  737. package/lib/block-provider/TableBlockProvider.d.ts +1 -2
  738. package/lib/block-provider/TableBlockProvider.js +57 -84
  739. package/lib/block-provider/TableFieldProvider.d.ts +1 -1
  740. package/lib/block-provider/TableSelectorProvider.d.ts +2 -2
  741. package/lib/block-provider/hooks/index.d.ts +10 -1
  742. package/lib/block-provider/hooks/index.js +50 -134
  743. package/lib/block-provider/index.d.ts +1 -0
  744. package/lib/block-provider/index.js +11 -0
  745. package/lib/board/Card.d.ts +2 -2
  746. package/lib/board/CardAdder.d.ts +2 -2
  747. package/lib/board/CardForm.d.ts +2 -2
  748. package/lib/board/Column.d.ts +3 -3
  749. package/lib/board/ColumnAdder.d.ts +2 -2
  750. package/lib/board/ColumnForm.d.ts +2 -2
  751. package/lib/board/DefaultCard.d.ts +2 -2
  752. package/lib/board/DefaultColumnHeader.d.ts +2 -2
  753. package/lib/board/Kanban.d.ts +2 -2
  754. package/lib/board/withDroppable.d.ts +2 -1
  755. package/lib/china-region/index.d.ts +2 -1
  756. package/lib/collection-manager/CollectionField.d.ts +1 -1
  757. package/lib/collection-manager/CollectionField.js +2 -1
  758. package/lib/collection-manager/CollectionManagerProvider.d.ts +2 -2
  759. package/lib/collection-manager/CollectionManagerShortcut.d.ts +2 -3
  760. package/lib/collection-manager/CollectionManagerShortcut.js +4 -63
  761. package/lib/collection-manager/Configuration/AddCategoryAction.d.ts +3 -2
  762. package/lib/collection-manager/Configuration/AddCategoryAction.js +1 -1
  763. package/lib/collection-manager/Configuration/AddCollectionAction.d.ts +3 -2
  764. package/lib/collection-manager/Configuration/AddCollectionAction.js +1 -1
  765. package/lib/collection-manager/Configuration/AddFieldAction.d.ts +3 -2
  766. package/lib/collection-manager/Configuration/AddFieldAction.js +1 -1
  767. package/lib/collection-manager/Configuration/AddSubFieldAction.d.ts +2 -1
  768. package/lib/collection-manager/Configuration/AddSubFieldAction.js +1 -1
  769. package/lib/collection-manager/Configuration/CollectionFields.d.ts +2 -1
  770. package/lib/collection-manager/Configuration/CollectionFieldsTable.d.ts +2 -2
  771. package/lib/collection-manager/Configuration/CollectionFieldsTable.js +3 -1
  772. package/lib/collection-manager/Configuration/CollectionFieldsTableArray.d.ts +2 -2
  773. package/lib/collection-manager/Configuration/CollectionFieldsTableArray.js +3 -1
  774. package/lib/collection-manager/Configuration/ConfigurationTable.d.ts +2 -1
  775. package/lib/collection-manager/Configuration/ConfigurationTabs.d.ts +2 -1
  776. package/lib/collection-manager/Configuration/ConfigurationTabs.js +4 -0
  777. package/lib/collection-manager/Configuration/EditCategoryAction.d.ts +3 -2
  778. package/lib/collection-manager/Configuration/EditCategoryAction.js +1 -1
  779. package/lib/collection-manager/Configuration/EditCollectionAction.d.ts +3 -2
  780. package/lib/collection-manager/Configuration/EditCollectionAction.js +1 -1
  781. package/lib/collection-manager/Configuration/EditFieldAction.d.ts +3 -2
  782. package/lib/collection-manager/Configuration/EditFieldAction.js +1 -1
  783. package/lib/collection-manager/Configuration/EditSubFieldAction.d.ts +2 -1
  784. package/lib/collection-manager/Configuration/EditSubFieldAction.js +1 -1
  785. package/lib/collection-manager/Configuration/OverridingCollectionField.d.ts +3 -2
  786. package/lib/collection-manager/Configuration/OverridingCollectionField.js +1 -1
  787. package/lib/collection-manager/Configuration/SyncFieldsAction.d.ts +3 -2
  788. package/lib/collection-manager/Configuration/SyncFieldsAction.js +1 -1
  789. package/lib/collection-manager/Configuration/ViewInheritedField.d.ts +3 -2
  790. package/lib/collection-manager/Configuration/ViewInheritedField.js +1 -1
  791. package/lib/collection-manager/Configuration/components/CollectionCategory.d.ts +1 -1
  792. package/lib/collection-manager/Configuration/components/CollectionCategory.js +2 -0
  793. package/lib/collection-manager/Configuration/components/CollectionFieldInterface.d.ts +1 -1
  794. package/lib/collection-manager/Configuration/components/CollectionFieldInterface.js +2 -0
  795. package/lib/collection-manager/Configuration/components/CollectionTemplate.d.ts +1 -1
  796. package/lib/collection-manager/Configuration/components/CollectionTemplate.js +2 -0
  797. package/lib/collection-manager/Configuration/components/FieldSummary.d.ts +1 -1
  798. package/lib/collection-manager/Configuration/components/FieldSummary.js +4 -2
  799. package/lib/collection-manager/Configuration/components/TemplateSummay.d.ts +1 -1
  800. package/lib/collection-manager/Configuration/components/TemplateSummay.js +4 -2
  801. package/lib/collection-manager/Configuration/components/index.d.ts +6 -6
  802. package/lib/collection-manager/Configuration/components/index.js +12 -0
  803. package/lib/collection-manager/Configuration/interfaces.d.ts +1 -0
  804. package/lib/collection-manager/Configuration/templates.d.ts +1 -0
  805. package/lib/collection-manager/ResourceActionProvider.d.ts +1 -1
  806. package/lib/collection-manager/action-hooks.d.ts +1 -0
  807. package/lib/collection-manager/action-hooks.js +171 -92
  808. package/lib/collection-manager/index.d.ts +1 -1
  809. package/lib/collection-manager/index.js +7 -0
  810. package/lib/collection-manager/interfaces/components/index.d.ts +7 -6
  811. package/lib/collection-manager/interfaces/index.d.ts +0 -1
  812. package/lib/collection-manager/interfaces/index.js +0 -11
  813. package/lib/collection-manager/interfaces/properties/index.d.ts +0 -1
  814. package/lib/collection-manager/interfaces/properties/index.js +1 -42
  815. package/lib/collection-manager/interfaces/url.js +0 -5
  816. package/lib/collection-manager/sub-table.d.ts +2 -2
  817. package/lib/collection-manager/sub-table.js +4 -0
  818. package/lib/collection-manager/templates/components/PreviewFields.d.ts +1 -1
  819. package/lib/collection-manager/templates/components/PreviewFields.js +2 -1
  820. package/lib/collection-manager/templates/components/PreviewTable.d.ts +2 -1
  821. package/lib/collection-manager/types.d.ts +2 -0
  822. package/lib/filter-provider/FilterProvider.d.ts +5 -1
  823. package/lib/filter-provider/FilterProvider.js +9 -4
  824. package/lib/formula/Expression.d.ts +2 -1
  825. package/lib/formula/Result.d.ts +2 -1
  826. package/lib/formula/index.d.ts +2 -2
  827. package/lib/hooks/index.d.ts +1 -0
  828. package/lib/hooks/index.js +16 -0
  829. package/lib/hooks/useViewport.d.ts +1 -0
  830. package/lib/hooks/useViewport.js +47 -0
  831. package/lib/i18n/i18n.js +0 -1
  832. package/lib/icon/Icon.d.ts +2 -1
  833. package/lib/index.d.ts +2 -0
  834. package/lib/index.js +22 -0
  835. package/lib/locale/en_US.d.ts +16 -21
  836. package/lib/locale/en_US.js +19 -24
  837. package/lib/locale/es_ES.d.ts +3 -1
  838. package/lib/locale/es_ES.js +4 -2
  839. package/lib/locale/ja_JP.d.ts +16 -19
  840. package/lib/locale/ja_JP.js +17 -20
  841. package/lib/locale/pt_BR.d.ts +2 -0
  842. package/lib/locale/pt_BR.js +3 -1
  843. package/lib/locale/ru_RU.d.ts +2 -18
  844. package/lib/locale/ru_RU.js +3 -19
  845. package/lib/locale/tr_TR.d.ts +0 -17
  846. package/lib/locale/tr_TR.js +0 -17
  847. package/lib/locale/zh_CN.d.ts +26 -24
  848. package/lib/locale/zh_CN.js +28 -26
  849. package/lib/plugin-manager/PinnedPluginListProvider.d.ts +1 -1
  850. package/lib/plugin-manager/index.d.ts +1 -3
  851. package/lib/plugin-manager/index.js +4 -26
  852. package/lib/pm/Card.d.ts +8 -0
  853. package/lib/pm/Card.js +375 -0
  854. package/lib/pm/PluginManagerLink.d.ts +3 -2
  855. package/lib/pm/PluginManagerLink.js +25 -17
  856. package/lib/pm/index.d.ts +31 -2
  857. package/lib/pm/index.js +77 -256
  858. package/lib/powered-by/index.d.ts +2 -1
  859. package/lib/route-switch/RouteSwitch.d.ts +2 -2
  860. package/lib/route-switch/RouteSwitch.js +78 -45
  861. package/lib/route-switch/RouteSwitchProvider.d.ts +3 -3
  862. package/lib/route-switch/antd/admin-layout/index.d.ts +4 -2
  863. package/lib/route-switch/antd/admin-layout/index.js +56 -51
  864. package/lib/route-switch/antd/auth-layout/index.d.ts +2 -2
  865. package/lib/route-switch/antd/auth-layout/index.js +2 -1
  866. package/lib/route-switch/antd/route-schema-component/index.d.ts +2 -2
  867. package/lib/route-switch/antd/route-schema-component/index.js +2 -2
  868. package/lib/route-switch/context.d.ts +4 -0
  869. package/lib/route-switch/context.js +6 -2
  870. package/lib/route-switch/types.d.ts +2 -5
  871. package/lib/schema-component/antd/AntdSchemaComponentProvider.d.ts +2 -1
  872. package/lib/schema-component/antd/action/Action.Container.js +4 -0
  873. package/lib/schema-component/antd/action/Action.Designer.d.ts +2 -1
  874. package/lib/schema-component/antd/action/Action.Designer.js +205 -19
  875. package/lib/schema-component/antd/action/Action.Drawer.js +15 -13
  876. package/lib/schema-component/antd/action/Action.Link.js +3 -1
  877. package/lib/schema-component/antd/action/Action.Modal.js +13 -12
  878. package/lib/schema-component/antd/action/Action.Page.js +8 -2
  879. package/lib/schema-component/antd/action/Action.js +27 -19
  880. package/lib/schema-component/antd/action/ActionBar.d.ts +18 -2
  881. package/lib/schema-component/antd/action/ActionBar.js +50 -21
  882. package/lib/schema-component/antd/action/context.d.ts +8 -2
  883. package/lib/schema-component/antd/action/context.js +19 -3
  884. package/lib/schema-component/antd/action/hooks.d.ts +2 -0
  885. package/lib/schema-component/antd/association-field/AssociationFieldProvider.d.ts +1 -1
  886. package/lib/schema-component/antd/association-field/AssociationFieldProvider.js +98 -6
  887. package/lib/schema-component/antd/association-field/AssociationSelect.js +88 -9
  888. package/lib/schema-component/antd/association-field/Editable.d.ts +1 -1
  889. package/lib/schema-component/antd/association-field/Editable.js +14 -46
  890. package/lib/schema-component/antd/association-field/FileManager.d.ts +1 -1
  891. package/lib/schema-component/antd/association-field/FileManager.js +13 -3
  892. package/lib/schema-component/antd/association-field/InternalNester.d.ts +2 -1
  893. package/lib/schema-component/antd/association-field/InternalNester.js +11 -1
  894. package/lib/schema-component/antd/association-field/InternalPicker.d.ts +1 -1
  895. package/lib/schema-component/antd/association-field/InternalPicker.js +9 -3
  896. package/lib/schema-component/antd/association-field/InternalSubTable.d.ts +2 -1
  897. package/lib/schema-component/antd/association-field/InternalSubTable.js +32 -4
  898. package/lib/schema-component/antd/association-field/InternalViewer.js +9 -2
  899. package/lib/schema-component/antd/association-field/Nester.d.ts +2 -1
  900. package/lib/schema-component/antd/association-field/Nester.js +64 -13
  901. package/lib/schema-component/antd/association-field/ReadPretty.d.ts +1 -1
  902. package/lib/schema-component/antd/association-field/ReadPretty.js +4 -0
  903. package/lib/schema-component/antd/association-field/SubTable.js +53 -12
  904. package/lib/schema-component/antd/association-field/components/CreateRecordAction.d.ts +1 -1
  905. package/lib/schema-component/antd/association-field/components/CreateRecordAction.js +3 -1
  906. package/lib/schema-component/antd/association-field/context.d.ts +2 -0
  907. package/lib/schema-component/antd/association-field/hooks.d.ts +2 -0
  908. package/lib/schema-component/antd/association-field/schema.d.ts +3 -15
  909. package/lib/schema-component/antd/association-field/schema.js +4 -16
  910. package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.d.ts +2 -1
  911. package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +2 -1
  912. package/lib/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +2 -1
  913. package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.d.ts +2 -1
  914. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.d.ts +2 -1
  915. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.d.ts +2 -1
  916. package/lib/schema-component/antd/association-filter/AssociationFilter.d.ts +7 -6
  917. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.d.ts +2 -1
  918. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.d.ts +2 -1
  919. package/lib/schema-component/antd/association-select/ReadPretty.d.ts +1 -1
  920. package/lib/schema-component/antd/association-select/ReadPretty.js +2 -0
  921. package/lib/schema-component/antd/block-item/BlockItem.js +5 -2
  922. package/lib/schema-component/antd/block-item/TestDesigner.d.ts +2 -1
  923. package/lib/schema-component/antd/calendar/Calendar.Designer.d.ts +2 -1
  924. package/lib/schema-component/antd/calendar/Calendar.js +5 -3
  925. package/lib/schema-component/antd/calendar/DeleteEvent.d.ts +1 -1
  926. package/lib/schema-component/antd/calendar/DeleteEvent.js +2 -0
  927. package/lib/schema-component/antd/calendar/Event.d.ts +1 -1
  928. package/lib/schema-component/antd/calendar/Event.js +2 -0
  929. package/lib/schema-component/antd/calendar/Nav.d.ts +1 -1
  930. package/lib/schema-component/antd/calendar/Nav.js +5 -3
  931. package/lib/schema-component/antd/calendar/Title.d.ts +1 -1
  932. package/lib/schema-component/antd/calendar/Title.js +2 -0
  933. package/lib/schema-component/antd/calendar/Today.d.ts +1 -1
  934. package/lib/schema-component/antd/calendar/Today.js +4 -2
  935. package/lib/schema-component/antd/calendar/ViewSelect.d.ts +1 -1
  936. package/lib/schema-component/antd/calendar/ViewSelect.js +3 -0
  937. package/lib/schema-component/antd/calendar/components/Header.d.ts +2 -1
  938. package/lib/schema-component/antd/card-item/CardItem.js +1 -1
  939. package/lib/schema-component/antd/cascader/Cascader.js +8 -1
  940. package/lib/schema-component/antd/checkbox/Checkbox.d.ts +2 -1
  941. package/lib/schema-component/antd/checkbox/Checkbox.js +14 -12
  942. package/lib/schema-component/antd/collection-select/CollectionSelect.js +2 -0
  943. package/lib/schema-component/antd/cron/Cron.d.ts +2 -1
  944. package/lib/schema-component/antd/cron/Cron.js +3 -2
  945. package/lib/schema-component/antd/date-picker/DatePicker.d.ts +4 -2
  946. package/lib/schema-component/antd/date-picker/DatePicker.js +2 -1
  947. package/lib/schema-component/antd/date-picker/ReadPretty.d.ts +1 -1
  948. package/lib/schema-component/antd/date-picker/ReadPretty.js +1 -1
  949. package/lib/schema-component/antd/error-fallback/ErrorFallback.d.ts +2 -1
  950. package/lib/schema-component/antd/expand-action/Expand.Action.Design.d.ts +2 -1
  951. package/lib/schema-component/antd/expand-action/Expand.Action.Design.js +8 -8
  952. package/lib/schema-component/antd/expand-action/Expand.Action.d.ts +2 -1
  953. package/lib/schema-component/antd/expand-action/Expand.Action.js +9 -12
  954. package/lib/schema-component/antd/filter/DynamicComponent.d.ts +2 -1
  955. package/lib/schema-component/antd/filter/Filter.Action.Designer.d.ts +2 -1
  956. package/lib/schema-component/antd/filter/Filter.js +3 -1
  957. package/lib/schema-component/antd/filter/FilterAction.d.ts +1 -1
  958. package/lib/schema-component/antd/filter/FilterAction.js +5 -3
  959. package/lib/schema-component/antd/filter/FilterItem.d.ts +1 -1
  960. package/lib/schema-component/antd/filter/FilterItem.js +46 -41
  961. package/lib/schema-component/antd/filter/FilterItems.d.ts +1 -1
  962. package/lib/schema-component/antd/filter/FilterItems.js +2 -0
  963. package/lib/schema-component/antd/filter/SaveDefaultValue.d.ts +2 -1
  964. package/lib/schema-component/antd/filter/index.d.ts +1 -0
  965. package/lib/schema-component/antd/filter/index.js +11 -0
  966. package/lib/schema-component/antd/filter/useValues.js +5 -3
  967. package/lib/schema-component/antd/form/Form.Designer.d.ts +2 -1
  968. package/lib/schema-component/antd/form/Form.d.ts +1 -1
  969. package/lib/schema-component/antd/form/Form.js +2 -0
  970. package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +2 -1
  971. package/lib/schema-component/antd/form-item/FormItem.js +101 -36
  972. package/lib/schema-component/antd/form-item/SchemaSettingOptions.d.ts +11 -10
  973. package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +1 -1
  974. package/lib/schema-component/antd/form-v2/Form.Designer.d.ts +4 -3
  975. package/lib/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +2 -1
  976. package/lib/schema-component/antd/form-v2/Form.js +8 -1
  977. package/lib/schema-component/antd/form-v2/FormField.js +2 -0
  978. package/lib/schema-component/antd/form-v2/Templates.d.ts +7 -1
  979. package/lib/schema-component/antd/form-v2/Templates.js +22 -3
  980. package/lib/schema-component/antd/form-v2/index.js +3 -1
  981. package/lib/schema-component/antd/g2plot/G2Plot.js +2 -0
  982. package/lib/schema-component/antd/g2plot/G2PlotDesigner.d.ts +2 -1
  983. package/lib/schema-component/antd/gantt/Gantt.Designer.d.ts +2 -1
  984. package/lib/schema-component/antd/gantt/components/gantt/Event.d.ts +1 -1
  985. package/lib/schema-component/antd/gantt/components/gantt/Event.js +2 -0
  986. package/lib/schema-component/antd/gantt/components/gantt/gantt.js +1 -1
  987. package/lib/schema-component/antd/grid/Block.d.ts +1 -1
  988. package/lib/schema-component/antd/grid/Block.js +2 -0
  989. package/lib/schema-component/antd/grid/Grid.js +25 -9
  990. package/lib/schema-component/antd/grid-card/GridCard.Decorator.d.ts +1 -1
  991. package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +2 -12
  992. package/lib/schema-component/antd/grid-card/GridCard.Designer.d.ts +2 -1
  993. package/lib/schema-component/antd/grid-card/GridCard.Designer.js +1 -1
  994. package/lib/schema-component/antd/grid-card/GridCard.Item.d.ts +2 -1
  995. package/lib/schema-component/antd/grid-card/GridCard.d.ts +2 -1
  996. package/lib/schema-component/antd/grid-card/GridCard.js +11 -7
  997. package/lib/schema-component/antd/icon-picker/IconPicker.js +2 -2
  998. package/lib/schema-component/antd/index.d.ts +1 -0
  999. package/lib/schema-component/antd/index.js +11 -0
  1000. package/lib/schema-component/antd/index.less +20 -4
  1001. package/lib/schema-component/antd/input/EllipsisWithTooltip.js +2 -2
  1002. package/lib/schema-component/antd/input/Input.d.ts +2 -1
  1003. package/lib/schema-component/antd/input/Input.js +3 -2
  1004. package/lib/schema-component/antd/input/Json.d.ts +2 -2
  1005. package/lib/schema-component/antd/input/Json.js +49 -9
  1006. package/lib/schema-component/antd/input/ReadPretty.d.ts +1 -1
  1007. package/lib/schema-component/antd/input/ReadPretty.js +4 -4
  1008. package/lib/schema-component/antd/input-number/InputNumber.d.ts +5 -1
  1009. package/lib/schema-component/antd/input-number/InputNumber.js +1 -1
  1010. package/lib/schema-component/antd/input-number/ReadPretty.d.ts +2 -2
  1011. package/lib/schema-component/antd/input-number/ReadPretty.js +6 -2
  1012. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +2 -1
  1013. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.d.ts +2 -1
  1014. package/lib/schema-component/antd/kanban/Kanban.Card.js +4 -2
  1015. package/lib/schema-component/antd/kanban/Kanban.CardViewer.js +2 -0
  1016. package/lib/schema-component/antd/kanban/Kanban.Designer.d.ts +2 -1
  1017. package/lib/schema-component/antd/kanban/Kanban.js +3 -1
  1018. package/lib/schema-component/antd/list/List.Decorator.d.ts +1 -1
  1019. package/lib/schema-component/antd/list/List.Decorator.js +8 -13
  1020. package/lib/schema-component/antd/list/List.Designer.d.ts +2 -1
  1021. package/lib/schema-component/antd/list/List.Item.d.ts +2 -1
  1022. package/lib/schema-component/antd/list/List.Item.js +1 -1
  1023. package/lib/schema-component/antd/list/List.d.ts +2 -1
  1024. package/lib/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +2 -1
  1025. package/lib/schema-component/antd/markdown/Markdown.Void.js +2 -0
  1026. package/lib/schema-component/antd/markdown/Markdown.d.ts +2 -0
  1027. package/lib/schema-component/antd/markdown/Markdown.js +9 -4
  1028. package/lib/schema-component/antd/markdown/util.js +1 -1
  1029. package/lib/schema-component/antd/menu/Menu.Designer.d.ts +2 -1
  1030. package/lib/schema-component/antd/menu/Menu.js +46 -37
  1031. package/lib/schema-component/antd/menu/MenuItemInitializers/index.d.ts +2 -1
  1032. package/lib/schema-component/antd/page/FixedBlock.d.ts +2 -1
  1033. package/lib/schema-component/antd/page/FixedBlock.js +6 -2
  1034. package/lib/schema-component/antd/page/Page.d.ts +2 -1
  1035. package/lib/schema-component/antd/page/Page.js +22 -14
  1036. package/lib/schema-component/antd/page/PageTabDesigner.d.ts +3 -2
  1037. package/lib/schema-component/antd/pagination/index.d.ts +1 -1
  1038. package/lib/schema-component/antd/pagination/index.js +2 -0
  1039. package/lib/schema-component/antd/password/Password.d.ts +1 -1
  1040. package/lib/schema-component/antd/password/PasswordStrength.js +2 -145
  1041. package/lib/schema-component/antd/password/utils.d.ts +1 -0
  1042. package/lib/schema-component/antd/password/utils.js +151 -0
  1043. package/lib/schema-component/antd/percent/Percent.js +2 -2
  1044. package/lib/schema-component/antd/preview/Preview.d.ts +1 -1
  1045. package/lib/schema-component/antd/quick-edit/QuickEdit.d.ts +3 -0
  1046. package/lib/schema-component/antd/quick-edit/QuickEdit.js +98 -0
  1047. package/lib/schema-component/antd/quick-edit/index.d.ts +1 -0
  1048. package/lib/schema-component/antd/quick-edit/index.js +16 -0
  1049. package/lib/schema-component/antd/radio/Radio.d.ts +1 -1
  1050. package/lib/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -1
  1051. package/lib/schema-component/antd/record-picker/InputRecordPicker.js +4 -6
  1052. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +9 -4
  1053. package/lib/schema-component/antd/remote-select/ReadPretty.d.ts +1 -1
  1054. package/lib/schema-component/antd/remote-select/ReadPretty.js +2 -0
  1055. package/lib/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  1056. package/lib/schema-component/antd/remote-select/RemoteSelect.js +55 -25
  1057. package/lib/schema-component/antd/select/ReadPretty.d.ts +1 -1
  1058. package/lib/schema-component/antd/select/ReadPretty.js +7 -7
  1059. package/lib/schema-component/antd/select/Select.d.ts +3 -0
  1060. package/lib/schema-component/antd/select/Select.js +34 -14
  1061. package/lib/schema-component/antd/select/index.d.ts +1 -1
  1062. package/lib/schema-component/antd/select/index.js +4 -4
  1063. package/lib/schema-component/antd/select/utils.d.ts +14 -0
  1064. package/lib/schema-component/antd/select/{shared.js → utils.js} +22 -20
  1065. package/lib/schema-component/antd/table/Table.Array.Designer.d.ts +2 -1
  1066. package/lib/schema-component/antd/table/Table.Array.d.ts +5 -5
  1067. package/lib/schema-component/antd/table/Table.Array.js +7 -5
  1068. package/lib/schema-component/antd/table/Table.Column.ActionBar.d.ts +1 -1
  1069. package/lib/schema-component/antd/table/Table.Column.ActionBar.js +2 -0
  1070. package/lib/schema-component/antd/table/Table.Column.Decorator.d.ts +2 -1
  1071. package/lib/schema-component/antd/table/Table.Column.Designer.d.ts +2 -1
  1072. package/lib/schema-component/antd/table/Table.Column.d.ts +2 -1
  1073. package/lib/schema-component/antd/table/Table.Designer.d.ts +2 -1
  1074. package/lib/schema-component/antd/table/Table.RowActionDesigner.d.ts +2 -1
  1075. package/lib/schema-component/antd/table/Table.RowSelection.d.ts +1 -1
  1076. package/lib/schema-component/antd/table/Table.RowSelection.js +2 -0
  1077. package/lib/schema-component/antd/table/Table.Void.Designer.d.ts +2 -1
  1078. package/lib/schema-component/antd/table/Table.Void.d.ts +1 -1
  1079. package/lib/schema-component/antd/table/Table.Void.js +2 -0
  1080. package/lib/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -2
  1081. package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +2 -1
  1082. package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +1 -1
  1083. package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.js +2 -0
  1084. package/lib/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +2 -1
  1085. package/lib/schema-component/antd/table-v2/Table.Column.Designer.d.ts +2 -1
  1086. package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +100 -2
  1087. package/lib/schema-component/antd/table-v2/Table.Column.d.ts +2 -1
  1088. package/lib/schema-component/antd/table-v2/Table.Designer.d.ts +2 -1
  1089. package/lib/schema-component/antd/table-v2/Table.Index.d.ts +2 -1
  1090. package/lib/schema-component/antd/table-v2/Table.js +56 -25
  1091. package/lib/schema-component/antd/table-v2/TableBlockDesigner.d.ts +2 -1
  1092. package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +54 -47
  1093. package/lib/schema-component/antd/table-v2/TableField.js +4 -0
  1094. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +2 -1
  1095. package/lib/schema-component/antd/table-v2/index.d.ts +1 -0
  1096. package/lib/schema-component/antd/table-v2/index.js +12 -0
  1097. package/lib/schema-component/antd/table-v2/utils.js +1 -1
  1098. package/lib/schema-component/antd/tabs/Tabs.Designer.d.ts +2 -1
  1099. package/lib/schema-component/antd/tabs/Tabs.js +25 -5
  1100. package/lib/schema-component/antd/tabs/context.d.ts +8 -0
  1101. package/lib/schema-component/antd/tabs/context.js +24 -0
  1102. package/lib/schema-component/antd/tabs/index.d.ts +1 -0
  1103. package/lib/schema-component/antd/tabs/index.js +11 -0
  1104. package/lib/schema-component/antd/time-picker/ReadPretty.d.ts +1 -1
  1105. package/lib/schema-component/antd/time-picker/ReadPretty.js +1 -1
  1106. package/lib/schema-component/antd/time-picker/TimePicker.d.ts +1 -1
  1107. package/lib/schema-component/antd/time-picker/TimePicker.js +1 -1
  1108. package/lib/schema-component/antd/tree-select/ReadPretty.d.ts +1 -1
  1109. package/lib/schema-component/antd/tree-select/ReadPretty.js +3 -1
  1110. package/lib/schema-component/antd/upload/Upload.js +1 -1
  1111. package/lib/schema-component/antd/upload/shared.d.ts +3 -3
  1112. package/lib/schema-component/antd/upload/style.less +1 -2
  1113. package/lib/schema-component/antd/upload/type.d.ts +2 -2
  1114. package/lib/schema-component/antd/variable/Input.d.ts +2 -2
  1115. package/lib/schema-component/antd/variable/Input.js +183 -31
  1116. package/lib/schema-component/antd/variable/JSONInput.d.ts +2 -2
  1117. package/lib/schema-component/antd/variable/JSONInput.js +2 -23
  1118. package/lib/schema-component/antd/variable/TextArea.d.ts +2 -2
  1119. package/lib/schema-component/antd/variable/VariableSelect.d.ts +2 -2
  1120. package/lib/schema-component/common/dnd-context/index.d.ts +1 -1
  1121. package/lib/schema-component/common/dnd-context/index.js +11 -4
  1122. package/lib/schema-component/common/sortable-item/SortableItem.d.ts +11 -4
  1123. package/lib/schema-component/common/sortable-item/SortableItem.js +18 -8
  1124. package/lib/schema-component/common/utils/logic.js +64 -2
  1125. package/lib/schema-component/common/utils/uitls.js +47 -13
  1126. package/lib/schema-component/core/DesignableSwitch.d.ts +2 -1
  1127. package/lib/schema-component/core/SchemaComponent.d.ts +2 -1
  1128. package/lib/schema-component/core/SchemaComponentOptions.js +12 -7
  1129. package/lib/schema-component/core/SchemaComponentProvider.js +17 -6
  1130. package/lib/schema-component/hooks/useCompile.js +32 -4
  1131. package/lib/schema-component/hooks/useDesignable.d.ts +5 -4
  1132. package/lib/schema-component/hooks/useDesignable.js +30 -28
  1133. package/lib/schema-component/hooks/useFieldModeOptions.js +44 -20
  1134. package/lib/schema-component/hooks/useProps.d.ts +1 -10
  1135. package/lib/schema-component/hooks/useProps.js +20 -6
  1136. package/lib/schema-initializer/SchemaInitializer.d.ts +12 -3
  1137. package/lib/schema-initializer/SchemaInitializer.js +138 -12
  1138. package/lib/schema-initializer/SchemaInitializerProvider.d.ts +3 -3
  1139. package/lib/schema-initializer/SelectCollection.d.ts +2 -1
  1140. package/lib/schema-initializer/buttons/BlockInitializers.d.ts +2 -0
  1141. package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +2 -1
  1142. package/lib/schema-initializer/buttons/CreateFormBlockInitializers.d.ts +2 -1
  1143. package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +2 -1
  1144. package/lib/schema-initializer/buttons/CustomFormItemInitializers.d.ts +2 -1
  1145. package/lib/schema-initializer/buttons/DetailsActionInitializers.d.ts +14 -0
  1146. package/lib/schema-initializer/buttons/DetailsActionInitializers.js +12 -0
  1147. package/lib/schema-initializer/buttons/FormItemInitializers.d.ts +3 -2
  1148. package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +16 -0
  1149. package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +21 -16
  1150. package/lib/schema-initializer/buttons/ReadPrettyFormItemInitializers.d.ts +2 -1
  1151. package/lib/schema-initializer/buttons/RecordBlockInitializers.d.ts +2 -1
  1152. package/lib/schema-initializer/buttons/RecordFormBlockInitializers.d.ts +2 -1
  1153. package/lib/schema-initializer/buttons/TabPaneInitializers.d.ts +4 -3
  1154. package/lib/schema-initializer/buttons/TabPaneInitializers.js +3 -3
  1155. package/lib/schema-initializer/buttons/TableActionColumnInitializers.d.ts +3 -2
  1156. package/lib/schema-initializer/buttons/TableActionColumnInitializers.js +12 -3
  1157. package/lib/schema-initializer/buttons/TableColumnInitializers.d.ts +2 -1
  1158. package/lib/schema-initializer/buttons/TableColumnInitializers.js +16 -9
  1159. package/lib/schema-initializer/buttons/TableSelectorInitializers.d.ts +2 -1
  1160. package/lib/schema-initializer/components/BulkEditField.d.ts +2 -1
  1161. package/lib/schema-initializer/components/CreateRecordAction.d.ts +2 -2
  1162. package/lib/schema-initializer/components/CreateRecordAction.js +5 -1
  1163. package/lib/schema-initializer/components/DeletedField.d.ts +2 -1
  1164. package/lib/schema-initializer/components/DuplicateAction.d.ts +3 -0
  1165. package/lib/schema-initializer/components/DuplicateAction.js +174 -0
  1166. package/lib/schema-initializer/components/assigned-field/AssignedField.d.ts +2 -1
  1167. package/lib/schema-initializer/components/assigned-field/AssignedField.js +1 -1
  1168. package/lib/schema-initializer/components/index.d.ts +1 -0
  1169. package/lib/schema-initializer/components/index.js +11 -0
  1170. package/lib/schema-initializer/index.d.ts +1 -1
  1171. package/lib/schema-initializer/index.js +7 -0
  1172. package/lib/schema-initializer/items/ActionInitializer.d.ts +2 -1
  1173. package/lib/schema-initializer/items/BlockInitializer.d.ts +2 -1
  1174. package/lib/schema-initializer/items/BulkDestroyActionInitializer.d.ts +2 -1
  1175. package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +2 -1
  1176. package/lib/schema-initializer/items/CalendarBlockInitializer.d.ts +2 -1
  1177. package/lib/schema-initializer/items/CollectionFieldInitializer.d.ts +2 -1
  1178. package/lib/schema-initializer/items/CreateActionInitializer.d.ts +2 -1
  1179. package/lib/schema-initializer/items/CreateChildInitializer.d.ts +2 -1
  1180. package/lib/schema-initializer/items/CreateFilterActionInitializer.d.ts +2 -1
  1181. package/lib/schema-initializer/items/CreateFormBlockInitializer.d.ts +2 -1
  1182. package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +2 -1
  1183. package/lib/schema-initializer/items/CreateResetActionInitializer.d.ts +2 -1
  1184. package/lib/schema-initializer/items/CreateSubmitActionInitializer.d.ts +2 -1
  1185. package/lib/schema-initializer/items/CustomizeActionInitializer.d.ts +2 -1
  1186. package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +2 -1
  1187. package/lib/schema-initializer/items/DataBlockInitializer.d.ts +2 -1
  1188. package/lib/schema-initializer/items/DeleteEventActionInitializer.d.ts +2 -1
  1189. package/lib/schema-initializer/items/DestroyActionInitializer.d.ts +2 -1
  1190. package/lib/schema-initializer/items/DetailsBlockInitializer.d.ts +2 -1
  1191. package/lib/schema-initializer/items/DuplicateActionInitializer.d.ts +2 -0
  1192. package/lib/schema-initializer/items/DuplicateActionInitializer.js +69 -0
  1193. package/lib/schema-initializer/items/ExpandActionInitializer.d.ts +2 -1
  1194. package/lib/schema-initializer/items/ExpandActionInitializer.js +3 -3
  1195. package/lib/schema-initializer/items/FilterActionInitializer.d.ts +2 -1
  1196. package/lib/schema-initializer/items/FilterBlockInitializer.d.ts +2 -1
  1197. package/lib/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +2 -1
  1198. package/lib/schema-initializer/items/FilterFormBlockInitializer.d.ts +2 -1
  1199. package/lib/schema-initializer/items/FormBlockInitializer.d.ts +2 -1
  1200. package/lib/schema-initializer/items/G2PlotInitializer.d.ts +2 -1
  1201. package/lib/schema-initializer/items/GanttBlockInitializer.d.ts +2 -1
  1202. package/lib/schema-initializer/items/GridCardBlockInitializer.d.ts +2 -1
  1203. package/lib/schema-initializer/items/InitializerWithSwitch.d.ts +2 -1
  1204. package/lib/schema-initializer/items/KanbanBlockInitializer.d.ts +2 -1
  1205. package/lib/schema-initializer/items/ListBlockInitializer.d.ts +2 -1
  1206. package/lib/schema-initializer/items/MarkdownBlockInitializer.d.ts +2 -1
  1207. package/lib/schema-initializer/items/PrintActionInitializer.d.ts +2 -1
  1208. package/lib/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +2 -1
  1209. package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +2 -1
  1210. package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +2 -1
  1211. package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +2 -1
  1212. package/lib/schema-initializer/items/RecordFormBlockInitializer.d.ts +2 -1
  1213. package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +2 -1
  1214. package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +2 -1
  1215. package/lib/schema-initializer/items/RefreshActionInitializer.d.ts +2 -1
  1216. package/lib/schema-initializer/items/SelectActionInitializer.d.ts +2 -1
  1217. package/lib/schema-initializer/items/SubmitActionInitializer.d.ts +2 -1
  1218. package/lib/schema-initializer/items/TableActionColumnInitializer.d.ts +2 -1
  1219. package/lib/schema-initializer/items/TableBlockInitializer.d.ts +2 -1
  1220. package/lib/schema-initializer/items/TableCollectionFieldInitializer.d.ts +2 -1
  1221. package/lib/schema-initializer/items/TableSelectorInitializer.d.ts +2 -1
  1222. package/lib/schema-initializer/items/UpdateActionInitializer.d.ts +2 -1
  1223. package/lib/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +2 -1
  1224. package/lib/schema-initializer/items/ViewActionInitializer.d.ts +2 -1
  1225. package/lib/schema-initializer/items/index.d.ts +1 -0
  1226. package/lib/schema-initializer/items/index.js +11 -0
  1227. package/lib/schema-initializer/utils.d.ts +13 -0
  1228. package/lib/schema-initializer/utils.js +70 -43
  1229. package/lib/schema-items/GeneralSchemaItems.js +5 -3
  1230. package/lib/schema-items/OpenModeSchemaItems.js +14 -10
  1231. package/lib/schema-settings/DataTemplates/FormDataTemplates.d.ts +1 -1
  1232. package/lib/schema-settings/DataTemplates/FormDataTemplates.js +8 -6
  1233. package/lib/schema-settings/DataTemplates/TreeLabel.d.ts +2 -1
  1234. package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +1 -1
  1235. package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +12 -14
  1236. package/lib/schema-settings/DataTemplates/components/Designer.d.ts +1 -1
  1237. package/lib/schema-settings/DataTemplates/components/Designer.js +2 -0
  1238. package/lib/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +3 -3
  1239. package/lib/schema-settings/DataTemplates/hooks/useCollectionState.js +38 -58
  1240. package/lib/schema-settings/EnableChildCollections/index.d.ts +1 -1
  1241. package/lib/schema-settings/EnableChildCollections/index.js +2 -0
  1242. package/lib/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  1243. package/lib/schema-settings/GeneralSchemaDesigner.js +3 -2
  1244. package/lib/schema-settings/LinkageRules/DynamicComponent.d.ts +2 -1
  1245. package/lib/schema-settings/LinkageRules/FilterDynamicComponent.d.ts +1 -1
  1246. package/lib/schema-settings/LinkageRules/LinkageRuleAction.d.ts +2 -2
  1247. package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +14 -10
  1248. package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.d.ts +2 -2
  1249. package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.js +2 -0
  1250. package/lib/schema-settings/LinkageRules/ValueDynamicComponent.d.ts +2 -1
  1251. package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +2 -0
  1252. package/lib/schema-settings/LinkageRules/index.d.ts +1 -1
  1253. package/lib/schema-settings/LinkageRules/index.js +3 -1
  1254. package/lib/schema-settings/SchemaSettings.d.ts +2 -1
  1255. package/lib/schema-settings/SchemaSettings.js +28 -17
  1256. package/lib/schema-settings/VariableInput/VariableInput.d.ts +1 -1
  1257. package/lib/schema-settings/VariableInput/VariableInput.js +1 -1
  1258. package/lib/schema-settings/VariableInput/hooks/useDateVariable.d.ts +12 -1
  1259. package/lib/schema-settings/VariableInput/hooks/useDateVariable.js +41 -36
  1260. package/lib/schema-settings/VariableInput/hooks/useUserVariable.d.ts +4 -4
  1261. package/lib/schema-settings/VariableInput/hooks/useUserVariable.js +66 -42
  1262. package/lib/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +12 -1
  1263. package/lib/schema-settings/VariableInput/hooks/useVariableOptions.js +6 -2
  1264. package/lib/schema-settings/VariableInput/type.d.ts +28 -0
  1265. package/lib/schema-settings/VariableInput/type.js +5 -0
  1266. package/lib/schema-settings/hooks/useIsShowMultipleSwitch.js +3 -2
  1267. package/lib/schema-templates/BlockTemplate.d.ts +1 -1
  1268. package/lib/schema-templates/BlockTemplate.js +4 -1
  1269. package/lib/schema-templates/BlockTemplateDetails.d.ts +2 -1
  1270. package/lib/schema-templates/BlockTemplateDetails.js +5 -5
  1271. package/lib/schema-templates/BlockTemplatePage.d.ts +3 -2
  1272. package/lib/schema-templates/SchemaTemplateManagerProvider.d.ts +5 -2
  1273. package/lib/schema-templates/SchemaTemplateManagerProvider.js +7 -0
  1274. package/lib/schema-templates/index.d.ts +0 -1
  1275. package/lib/schema-templates/index.js +0 -11
  1276. package/lib/settings-form/SettingsForm.js +8 -2
  1277. package/lib/system-settings/SystemSettingsProvider.d.ts +5 -3
  1278. package/lib/system-settings/SystemSettingsShortcut.d.ts +2 -3
  1279. package/lib/system-settings/SystemSettingsShortcut.js +33 -85
  1280. package/lib/test/collections.d.ts +1487 -0
  1281. package/lib/test/collections.js +1444 -0
  1282. package/lib/test/index.d.ts +3 -0
  1283. package/lib/test/index.js +36 -0
  1284. package/lib/test/mainCollections.d.ts +11359 -0
  1285. package/lib/test/mainCollections.js +3 -0
  1286. package/lib/test/mockAPIClient.d.ts +6 -0
  1287. package/lib/test/mockAPIClient.js +18 -0
  1288. package/lib/user/ChangePassword.d.ts +2 -1
  1289. package/lib/user/ChangePassword.js +1 -1
  1290. package/lib/user/CurrentUser.d.ts +7 -1
  1291. package/lib/user/CurrentUser.js +123 -115
  1292. package/lib/user/CurrentUserProvider.d.ts +1 -1
  1293. package/lib/user/CurrentUserProvider.js +3 -2
  1294. package/lib/user/EditProfile.d.ts +2 -1
  1295. package/lib/user/EditProfile.js +2 -2
  1296. package/lib/user/LanguageSettings.d.ts +2 -1
  1297. package/lib/user/SigninPage.d.ts +2 -1
  1298. package/lib/user/SigninPage.js +14 -6
  1299. package/lib/user/SigninPageExtension.d.ts +1 -1
  1300. package/lib/user/SignupPage.d.ts +2 -1
  1301. package/lib/user/SignupPage.js +4 -3
  1302. package/lib/user/SwitchRole.d.ts +2 -1
  1303. package/lib/user/SwitchRole.js +1 -3
  1304. package/lib/user/ThemeSettings.d.ts +2 -1
  1305. package/lib/user/VerificationCode.d.ts +2 -2
  1306. package/lib/user/index.d.ts +0 -3
  1307. package/lib/user/index.js +0 -33
  1308. package/package.json +15 -15
  1309. package/tsconfig.json +2 -0
  1310. package/.umirc.ts +0 -24
  1311. package/develop.md +0 -5
  1312. package/es/collection-manager/interfaces/attachment.d.ts +0 -2
  1313. package/es/collection-manager/interfaces/attachment.js +0 -98
  1314. package/es/plugin-manager/PluginManager.d.ts +0 -23
  1315. package/es/plugin-manager/PluginManager.js +0 -166
  1316. package/es/plugin-manager/PluginManagerProvider.d.ts +0 -2
  1317. package/es/plugin-manager/PluginManagerProvider.js +0 -11
  1318. package/es/schema-component/antd/select/shared.d.ts +0 -7
  1319. package/es/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +0 -22
  1320. package/es/schema-component/antd/table-v2/hooks/useUserVariable.js +0 -65
  1321. package/es/schema-templates/SchemaTemplateShortcut.d.ts +0 -1
  1322. package/es/schema-templates/SchemaTemplateShortcut.js +0 -17
  1323. package/lib/collection-manager/interfaces/attachment.d.ts +0 -2
  1324. package/lib/collection-manager/interfaces/attachment.js +0 -105
  1325. package/lib/plugin-manager/PluginManager.d.ts +0 -23
  1326. package/lib/plugin-manager/PluginManager.js +0 -178
  1327. package/lib/plugin-manager/PluginManagerProvider.d.ts +0 -2
  1328. package/lib/plugin-manager/PluginManagerProvider.js +0 -19
  1329. package/lib/schema-component/antd/select/shared.d.ts +0 -7
  1330. package/lib/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +0 -22
  1331. package/lib/schema-component/antd/table-v2/hooks/useUserVariable.js +0 -73
  1332. package/lib/schema-templates/SchemaTemplateShortcut.d.ts +0 -1
  1333. package/lib/schema-templates/SchemaTemplateShortcut.js +0 -25
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Application = require("./Application");
7
+ Object.keys(_Application).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Application[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function get() {
13
+ return _Application[key];
14
+ }
15
+ });
16
+ });
17
+ var _Plugin = require("./Plugin");
18
+ Object.keys(_Plugin).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _Plugin[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _Plugin[key];
25
+ }
26
+ });
27
+ });
28
+ var _compose = require("./compose");
29
+ Object.keys(_compose).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _compose[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function get() {
35
+ return _compose[key];
36
+ }
37
+ });
38
+ });
@@ -0,0 +1,26 @@
1
+ import { Plugin } from './Plugin';
2
+ export interface HashRouterOptions {
3
+ type: 'hash';
4
+ basename?: string;
5
+ }
6
+ export interface BrowserRouterOptions {
7
+ type: 'browser';
8
+ basename?: string;
9
+ }
10
+ export interface MemoryRouterOptions {
11
+ type: 'memory';
12
+ basename?: string;
13
+ }
14
+ export declare type RouterOptions = HashRouterOptions | BrowserRouterOptions | MemoryRouterOptions;
15
+ export interface PluginOptions {
16
+ name: string;
17
+ }
18
+ export declare type PluginNameOrClass = string | [typeof Plugin, PluginOptions];
19
+ export interface ApplicationOptions {
20
+ apiClient?: any;
21
+ plugins?: PluginNameOrClass[];
22
+ components?: any;
23
+ scopes?: Record<string, any>;
24
+ router?: RouterOptions;
25
+ importPlugins?: (name: string) => Promise<any>;
26
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1,4 +1,4 @@
1
- import { Result } from 'ahooks/lib/useRequest/src/types';
1
+ import { Result } from 'ahooks/es/useRequest/src/types';
2
2
  import React from 'react';
3
3
  export declare const AsyncDataContext: React.Context<Result<any, any> & {
4
4
  state?: any;
@@ -0,0 +1,7 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export declare const OptionsComponentProvider: React.FC<{
3
+ authType: string;
4
+ component: FunctionComponent;
5
+ }>;
6
+ export declare const useHasOptionsComponent: (authType: string) => React.FunctionComponent<{}>;
7
+ export declare const useOptionsComponent: (authType: string) => React.JSX.Element;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.useOptionsComponent = exports.useHasOptionsComponent = exports.OptionsComponentProvider = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _reactI18next = require("react-i18next");
10
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
+ var OptionsComponentContext = /*#__PURE__*/(0, _react.createContext)({});
13
+ var OptionsComponentProvider = function OptionsComponentProvider(props) {
14
+ var components = (0, _react.useContext)(OptionsComponentContext);
15
+ components[props.authType] = props.component;
16
+ return /*#__PURE__*/_react.default.createElement(OptionsComponentContext.Provider, {
17
+ value: components
18
+ }, props.children);
19
+ };
20
+ exports.OptionsComponentProvider = OptionsComponentProvider;
21
+ var useHasOptionsComponent = function useHasOptionsComponent(authType) {
22
+ var components = (0, _react.useContext)(OptionsComponentContext);
23
+ return components[authType];
24
+ };
25
+ exports.useHasOptionsComponent = useHasOptionsComponent;
26
+ var useOptionsComponent = function useOptionsComponent(authType) {
27
+ var _useTranslation = (0, _reactI18next.useTranslation)(),
28
+ t = _useTranslation.t;
29
+ var component = useHasOptionsComponent(authType);
30
+ return component ? /*#__PURE__*/(0, _react.createElement)(component) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
31
+ };
32
+ exports.useOptionsComponent = useOptionsComponent;
@@ -0,0 +1,23 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export declare const SigninPageProvider: React.FC<{
3
+ authType: string;
4
+ component: FunctionComponent<{
5
+ authenticator: Authenticator;
6
+ }>;
7
+ tabTitle?: string;
8
+ }>;
9
+ export declare type Authenticator = {
10
+ name: string;
11
+ authType: string;
12
+ title?: string;
13
+ options?: {
14
+ [key: string]: any;
15
+ };
16
+ sort?: number;
17
+ };
18
+ export declare const AuthenticatorsContext: React.Context<Authenticator[]>;
19
+ export declare function useRedirect(next?: string): () => void;
20
+ export declare const useSignIn: (authenticator: any) => {
21
+ run(): Promise<void>;
22
+ };
23
+ export declare const SigninPage: () => React.JSX.Element;
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.SigninPageProvider = exports.SigninPage = exports.AuthenticatorsContext = void 0;
8
+ exports.useRedirect = useRedirect;
9
+ exports.useSignIn = void 0;
10
+ var _antd = require("antd");
11
+ var _react = _interopRequireWildcard(require("react"));
12
+ var _css = require("@emotion/css");
13
+ var _reactI18next = require("react-i18next");
14
+ var _reactRouterDom = require("react-router-dom");
15
+ var _ = require("..");
16
+ var _SigninPageExtension = require("./SigninPageExtension");
17
+ var _react2 = require("@formily/react");
18
+ var _templateObject, _templateObject2;
19
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
22
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
26
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
27
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
28
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
29
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
30
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
32
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
33
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
34
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
35
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
36
+ var SigninPageContext = /*#__PURE__*/(0, _react.createContext)({});
37
+ var SigninPageProvider = function SigninPageProvider(props) {
38
+ var components = (0, _react.useContext)(SigninPageContext);
39
+ components[props.authType] = {
40
+ component: props.component,
41
+ tabTitle: props.tabTitle
42
+ };
43
+ return /*#__PURE__*/_react.default.createElement(SigninPageContext.Provider, {
44
+ value: components
45
+ }, props.children);
46
+ };
47
+ exports.SigninPageProvider = SigninPageProvider;
48
+ var AuthenticatorsContext = /*#__PURE__*/(0, _react.createContext)([]);
49
+ exports.AuthenticatorsContext = AuthenticatorsContext;
50
+ function useRedirect() {
51
+ var next = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '/admin';
52
+ var navigate = (0, _reactRouterDom.useNavigate)();
53
+ var _useSearchParams = (0, _reactRouterDom.useSearchParams)(),
54
+ _useSearchParams2 = _slicedToArray(_useSearchParams, 1),
55
+ searchParams = _useSearchParams2[0];
56
+ return (0, _react.useCallback)(function () {
57
+ navigate(searchParams.get('redirect') || '/admin', {
58
+ replace: true
59
+ });
60
+ }, [navigate, searchParams]);
61
+ }
62
+ var useSignIn = function useSignIn(authenticator) {
63
+ var form = (0, _react2.useForm)();
64
+ var api = (0, _.useAPIClient)();
65
+ var redirect = useRedirect();
66
+ return {
67
+ run: function run() {
68
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
69
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
70
+ while (1) switch (_context.prev = _context.next) {
71
+ case 0:
72
+ _context.next = 2;
73
+ return form.submit();
74
+ case 2:
75
+ _context.next = 4;
76
+ return api.auth.signIn(form.values, authenticator);
77
+ case 4:
78
+ redirect();
79
+ case 5:
80
+ case "end":
81
+ return _context.stop();
82
+ }
83
+ }, _callee);
84
+ }))();
85
+ }
86
+ };
87
+ };
88
+ exports.useSignIn = useSignIn;
89
+ var SigninPage = function SigninPage() {
90
+ var _useTranslation = (0, _reactI18next.useTranslation)(),
91
+ t = _useTranslation.t;
92
+ (0, _.useCurrentDocumentTitle)('Signin');
93
+ (0, _.useViewport)();
94
+ var signInPages = (0, _react.useContext)(SigninPageContext);
95
+ var api = (0, _.useAPIClient)();
96
+ var _useState = (0, _react.useState)([]),
97
+ _useState2 = _slicedToArray(_useState, 2),
98
+ authenticators = _useState2[0],
99
+ setAuthenticators = _useState2[1];
100
+ var _useState3 = (0, _react.useState)([]),
101
+ _useState4 = _slicedToArray(_useState3, 2),
102
+ tabs = _useState4[0],
103
+ setTabs = _useState4[1];
104
+ var signinExtension = (0, _SigninPageExtension.useSigninPageExtension)(authenticators);
105
+ var handleAuthenticators = function handleAuthenticators(authenticators) {
106
+ var tabs = authenticators.map(function (authenticator) {
107
+ var page = signInPages[authenticator.authType];
108
+ if (!page) {
109
+ return;
110
+ }
111
+ return _objectSpread({
112
+ component: /*#__PURE__*/(0, _react.createElement)(page.component, {
113
+ authenticator: authenticator
114
+ }),
115
+ tabTitle: authenticator.title || page.tabTitle || authenticator.name
116
+ }, authenticator);
117
+ }).filter(function (i) {
118
+ return i;
119
+ });
120
+ setAuthenticators(authenticators);
121
+ setTabs(tabs);
122
+ };
123
+ (0, _.useRequest)(function () {
124
+ return api.resource('authenticators').publicList().then(function (res) {
125
+ var _res$data;
126
+ return (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.data) || [];
127
+ });
128
+ }, {
129
+ onSuccess: function onSuccess(data) {
130
+ handleAuthenticators(data);
131
+ }
132
+ });
133
+ if (!authenticators.length) {
134
+ return /*#__PURE__*/_react.default.createElement("div", {
135
+ style: {
136
+ color: '#ccc'
137
+ }
138
+ }, t('Oops! No authentication methods available.'));
139
+ }
140
+ return /*#__PURE__*/_react.default.createElement(AuthenticatorsContext.Provider, {
141
+ value: authenticators
142
+ }, /*#__PURE__*/_react.default.createElement(_antd.Space, {
143
+ direction: "vertical",
144
+ className: (0, _css.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n "])))
145
+ }, tabs.length > 1 ? /*#__PURE__*/_react.default.createElement(_antd.Tabs, null, tabs.map(function (tab) {
146
+ return /*#__PURE__*/_react.default.createElement(_antd.Tabs.TabPane, {
147
+ tab: tab.tabTitle,
148
+ key: tab.name
149
+ }, tab.component);
150
+ })) : tabs.length ? /*#__PURE__*/_react.default.createElement("div", null, tabs[0].component) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), /*#__PURE__*/_react.default.createElement(_antd.Space, {
151
+ direction: "vertical",
152
+ className: (0, _css.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n "])))
153
+ }, signinExtension)));
154
+ };
155
+ exports.SigninPage = SigninPage;
@@ -0,0 +1,22 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ import { Authenticator } from './SigninPage';
3
+ export interface SigninPageExtensionContextValue {
4
+ components: {
5
+ [authType: string]: FunctionComponent<{
6
+ authenticator: Authenticator;
7
+ [key: string]: any;
8
+ }>;
9
+ };
10
+ }
11
+ export declare const SigninPageExtensionContext: React.Context<SigninPageExtensionContextValue>;
12
+ export declare const useSigninPageExtension: (authenticators?: any[]) => React.FunctionComponentElement<{
13
+ [key: string]: any;
14
+ authenticator: Authenticator;
15
+ }>[];
16
+ export declare const SigninPageExtensionProvider: React.FC<{
17
+ authType: string;
18
+ component: FunctionComponent<{
19
+ authenticator: Authenticator;
20
+ [key: string]: any;
21
+ }>;
22
+ }>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.useSigninPageExtension = exports.SigninPageExtensionProvider = exports.SigninPageExtensionContext = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
11
+ var SigninPageExtensionContext = /*#__PURE__*/(0, _react.createContext)({
12
+ components: {}
13
+ });
14
+ exports.SigninPageExtensionContext = SigninPageExtensionContext;
15
+ var useSigninPageExtension = function useSigninPageExtension() {
16
+ var authenticators = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
17
+ var _useContext = (0, _react.useContext)(SigninPageExtensionContext),
18
+ components = _useContext.components;
19
+ var types = Object.keys(components);
20
+ return authenticators.filter(function (authenticator) {
21
+ return types.includes(authenticator.authType);
22
+ }).map(function (authenticator, index) {
23
+ return /*#__PURE__*/_react.default.createElement(components[authenticator.authType], {
24
+ key: index,
25
+ authenticator: authenticator
26
+ });
27
+ });
28
+ };
29
+ exports.useSigninPageExtension = useSigninPageExtension;
30
+ var SigninPageExtensionProvider = function SigninPageExtensionProvider(props) {
31
+ var _useContext2 = (0, _react.useContext)(SigninPageExtensionContext),
32
+ components = _useContext2.components;
33
+ if (!components[props.authType]) {
34
+ components[props.authType] = props.component;
35
+ }
36
+ return /*#__PURE__*/_react.default.createElement(SigninPageExtensionContext.Provider, {
37
+ value: {
38
+ components: components
39
+ }
40
+ }, props.children);
41
+ };
42
+ exports.SigninPageExtensionProvider = SigninPageExtensionProvider;
@@ -0,0 +1,24 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export declare const SignupPageContext: React.Context<{
3
+ [authType: string]: {
4
+ component: FunctionComponent<{
5
+ name: string;
6
+ }>;
7
+ };
8
+ }>;
9
+ export declare const SignupPageProvider: React.FC<{
10
+ authType: string;
11
+ component: FunctionComponent<{
12
+ name: string;
13
+ }>;
14
+ }>;
15
+ export interface UseSignupProps {
16
+ authenticator?: string;
17
+ message?: {
18
+ success?: string;
19
+ };
20
+ }
21
+ export declare const useSignup: (props?: UseSignupProps) => {
22
+ run(): Promise<void>;
23
+ };
24
+ export declare const SignupPage: () => React.JSX.Element;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.useSignup = exports.SignupPageProvider = exports.SignupPageContext = exports.SignupPage = void 0;
8
+ var _antd = require("antd");
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _reactI18next = require("react-i18next");
11
+ var _reactRouterDom = require("react-router-dom");
12
+ var _ = require("..");
13
+ var _react2 = require("@formily/react");
14
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
20
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
21
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
23
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
24
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
25
+ var SignupPageContext = /*#__PURE__*/(0, _react.createContext)({});
26
+ exports.SignupPageContext = SignupPageContext;
27
+ var SignupPageProvider = function SignupPageProvider(props) {
28
+ var components = (0, _react.useContext)(SignupPageContext);
29
+ components[props.authType] = {
30
+ component: props.component
31
+ };
32
+ return /*#__PURE__*/_react.default.createElement(SignupPageContext.Provider, {
33
+ value: components
34
+ }, props.children);
35
+ };
36
+ exports.SignupPageProvider = SignupPageProvider;
37
+ var useSignup = function useSignup(props) {
38
+ var navigate = (0, _reactRouterDom.useNavigate)();
39
+ var form = (0, _react2.useForm)();
40
+ var api = (0, _.useAPIClient)();
41
+ var _useTranslation = (0, _reactI18next.useTranslation)(),
42
+ t = _useTranslation.t;
43
+ return {
44
+ run: function run() {
45
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
46
+ var _props$message;
47
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
48
+ while (1) switch (_context.prev = _context.next) {
49
+ case 0:
50
+ _context.next = 2;
51
+ return form.submit();
52
+ case 2:
53
+ _context.next = 4;
54
+ return api.auth.signUp(form.values, props === null || props === void 0 ? void 0 : props.authenticator);
55
+ case 4:
56
+ _antd.message.success((props === null || props === void 0 ? void 0 : (_props$message = props.message) === null || _props$message === void 0 ? void 0 : _props$message.success) || t('Sign up successfully, and automatically jump to the sign in page'));
57
+ setTimeout(function () {
58
+ navigate('/signin');
59
+ }, 2000);
60
+ case 6:
61
+ case "end":
62
+ return _context.stop();
63
+ }
64
+ }, _callee);
65
+ }))();
66
+ }
67
+ };
68
+ };
69
+ exports.useSignup = useSignup;
70
+ var SignupPage = function SignupPage() {
71
+ var _useTranslation2 = (0, _reactI18next.useTranslation)(),
72
+ t = _useTranslation2.t;
73
+ (0, _.useViewport)();
74
+ (0, _.useCurrentDocumentTitle)('Signup');
75
+ var _useSearchParams = (0, _reactRouterDom.useSearchParams)(),
76
+ _useSearchParams2 = _slicedToArray(_useSearchParams, 1),
77
+ searchParams = _useSearchParams2[0];
78
+ var authType = searchParams.get('authType');
79
+ var name = searchParams.get('name');
80
+ var signUpPages = (0, _react.useContext)(SignupPageContext);
81
+ if (!signUpPages[authType]) {
82
+ return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
83
+ style: {
84
+ color: '#ccc'
85
+ }
86
+ }, t('Oops! The authentication type does not allow sign-up.')), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Link, {
87
+ to: "/signin"
88
+ }, t('Return')));
89
+ }
90
+ return /*#__PURE__*/(0, _react.createElement)(signUpPages[authType].component, {
91
+ name: name
92
+ });
93
+ };
94
+ exports.SignupPage = SignupPage;
@@ -0,0 +1,4 @@
1
+ export * from './SigninPage';
2
+ export * from './SignupPage';
3
+ export * from './OptionsComponent';
4
+ export * from './SigninPageExtension';
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _SigninPage = require("./SigninPage");
7
+ Object.keys(_SigninPage).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _SigninPage[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function get() {
13
+ return _SigninPage[key];
14
+ }
15
+ });
16
+ });
17
+ var _SignupPage = require("./SignupPage");
18
+ Object.keys(_SignupPage).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _SignupPage[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _SignupPage[key];
25
+ }
26
+ });
27
+ });
28
+ var _OptionsComponent = require("./OptionsComponent");
29
+ Object.keys(_OptionsComponent).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _OptionsComponent[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function get() {
35
+ return _OptionsComponent[key];
36
+ }
37
+ });
38
+ });
39
+ var _SigninPageExtension = require("./SigninPageExtension");
40
+ Object.keys(_SigninPageExtension).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _SigninPageExtension[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function get() {
46
+ return _SigninPageExtension[key];
47
+ }
48
+ });
49
+ });
@@ -5,10 +5,11 @@ export declare const BlockRequestContext: React.Context<any>;
5
5
  export declare const useBlockResource: () => any;
6
6
  export declare const useAssociation: (props: any) => import("../").CollectionFieldOptions;
7
7
  export declare const useResourceAction: (props: any, opts?: {}) => import("ahooks/lib/useRequest/src/types").Result<unknown, any[]>;
8
- export declare const MaybeCollectionProvider: (props: any) => JSX.Element;
8
+ export declare const MaybeCollectionProvider: (props: any) => any;
9
+ export declare const BlockRequestProvider: (props: any) => React.JSX.Element;
9
10
  export declare const useBlockRequestContext: () => any;
10
11
  export declare const RenderChildrenWithAssociationFilter: React.FC<any>;
11
- export declare const BlockProvider: (props: any) => JSX.Element;
12
+ export declare const BlockProvider: (props: any) => React.JSX.Element;
12
13
  export declare const useBlockAssociationContext: () => any;
13
14
  export declare const useFilterByTk: () => any;
14
15
  export declare const useSourceIdFromRecord: () => any;
@@ -16,4 +17,4 @@ export declare const useSourceIdFromParentRecord: () => any;
16
17
  export declare const useParamsFromRecord: () => {
17
18
  filterByTk: any;
18
19
  };
19
- export declare const RecordLink: (props: any) => JSX.Element;
20
+ export declare const RecordLink: (props: any) => React.JSX.Element;