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

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 (1378) 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/MenuItemsProvider.js +3 -3
  18. package/es/acl/Configuration/PermisionProvider.d.ts +2 -2
  19. package/es/acl/Configuration/RoleConfigure.d.ts +2 -1
  20. package/es/acl/Configuration/RoleTable.d.ts +2 -1
  21. package/es/acl/Configuration/ScopeSelect.d.ts +2 -1
  22. package/es/acl/Configuration/schemas/scopes.d.ts +1 -0
  23. package/es/antd-config-provider/index.d.ts +1 -1
  24. package/es/api-client/APIClient.d.ts +1 -1
  25. package/es/api-client/APIClientProvider.d.ts +2 -1
  26. package/es/api-client/hooks/assign.d.ts +0 -1
  27. package/es/api-client/hooks/assign.js +1 -7
  28. package/es/api-client/hooks/useRequest.d.ts +1 -1
  29. package/es/api-client/hooks/useRequest.js +1 -1
  30. package/es/appInfo/CurrentAppInfoProvider.d.ts +1 -1
  31. package/es/application/Application.d.ts +2 -1
  32. package/es/application/Application.js +5 -4
  33. package/es/application/compose.d.ts +2 -1
  34. package/es/application-v2/Application.d.ts +31 -0
  35. package/es/application-v2/Application.js +139 -0
  36. package/es/application-v2/Plugin.d.ts +14 -0
  37. package/es/application-v2/Plugin.js +92 -0
  38. package/es/application-v2/PluginManager.d.ts +19 -0
  39. package/es/application-v2/PluginManager.js +242 -0
  40. package/es/application-v2/Router.d.ts +13 -0
  41. package/es/application-v2/Router.js +103 -0
  42. package/es/application-v2/components/AppComponent.d.ts +2 -0
  43. package/es/application-v2/components/AppComponent.js +20 -0
  44. package/es/application-v2/components/MainComponent.d.ts +6 -0
  45. package/es/application-v2/components/MainComponent.js +13 -0
  46. package/es/application-v2/components/RouterProvider.d.ts +14 -0
  47. package/es/application-v2/components/RouterProvider.js +105 -0
  48. package/es/application-v2/components/index.d.ts +13 -0
  49. package/es/application-v2/components/index.js +13 -0
  50. package/es/application-v2/compose.d.ts +2 -0
  51. package/es/application-v2/compose.js +41 -0
  52. package/es/application-v2/context.d.ts +3 -0
  53. package/es/application-v2/context.js +2 -0
  54. package/es/application-v2/hooks/index.d.ts +3 -0
  55. package/es/application-v2/hooks/index.js +3 -0
  56. package/es/application-v2/hooks/useApp.d.ts +1 -0
  57. package/es/application-v2/hooks/useApp.js +5 -0
  58. package/es/application-v2/hooks/useLoad.d.ts +1 -0
  59. package/es/application-v2/hooks/useLoad.js +38 -0
  60. package/es/application-v2/hooks/useRouter.d.ts +1 -0
  61. package/es/application-v2/hooks/useRouter.js +5 -0
  62. package/es/application-v2/index.d.ts +3 -0
  63. package/es/application-v2/index.js +3 -0
  64. package/es/application-v2/types.d.ts +26 -0
  65. package/es/application-v2/types.js +1 -0
  66. package/es/async-data-provider/index.d.ts +1 -1
  67. package/es/auth/OptionsComponent.d.ts +7 -0
  68. package/es/auth/OptionsComponent.js +20 -0
  69. package/es/auth/SigninPage.d.ts +23 -0
  70. package/es/{settings-form/SettingsForm.js → auth/SigninPage.js} +116 -275
  71. package/es/auth/SigninPageExtension.d.ts +22 -0
  72. package/es/auth/SigninPageExtension.js +30 -0
  73. package/es/auth/SignupPage.d.ts +24 -0
  74. package/es/auth/SignupPage.js +82 -0
  75. package/es/auth/index.d.ts +4 -0
  76. package/es/auth/index.js +4 -0
  77. package/es/block-provider/BlockProvider.d.ts +4 -3
  78. package/es/block-provider/BlockProvider.js +23 -6
  79. package/es/block-provider/CalendarBlockProvider.d.ts +1 -1
  80. package/es/block-provider/DetailsBlockProvider.d.ts +1 -1
  81. package/es/block-provider/DetailsBlockProvider.js +1 -13
  82. package/es/block-provider/FilterFormBlockProvider.d.ts +2 -1
  83. package/es/block-provider/FormBlockProvider.d.ts +1 -1
  84. package/es/block-provider/FormBlockProvider.js +10 -21
  85. package/es/block-provider/FormFieldProvider.d.ts +1 -1
  86. package/es/block-provider/GanttBlockProvider.d.ts +1 -1
  87. package/es/block-provider/KanbanBlockProvider.d.ts +1 -1
  88. package/es/block-provider/TableBlockProvider.d.ts +1 -2
  89. package/es/block-provider/TableBlockProvider.js +57 -82
  90. package/es/block-provider/TableFieldProvider.d.ts +1 -1
  91. package/es/block-provider/TableSelectorProvider.d.ts +2 -2
  92. package/es/block-provider/hooks/index.d.ts +10 -1
  93. package/es/block-provider/hooks/index.js +53 -137
  94. package/es/block-provider/index.d.ts +1 -0
  95. package/es/block-provider/index.js +2 -1
  96. package/es/board/Card.d.ts +2 -2
  97. package/es/board/CardAdder.d.ts +2 -2
  98. package/es/board/CardForm.d.ts +2 -2
  99. package/es/board/Column.d.ts +3 -3
  100. package/es/board/ColumnAdder.d.ts +2 -2
  101. package/es/board/ColumnForm.d.ts +2 -2
  102. package/es/board/DefaultCard.d.ts +2 -2
  103. package/es/board/DefaultColumnHeader.d.ts +2 -2
  104. package/es/board/Kanban.d.ts +2 -2
  105. package/es/board/withDroppable.d.ts +2 -1
  106. package/es/china-region/index.d.ts +2 -1
  107. package/es/collection-manager/CollectionField.d.ts +1 -1
  108. package/es/collection-manager/CollectionField.js +2 -1
  109. package/es/collection-manager/CollectionManagerProvider.d.ts +2 -2
  110. package/es/collection-manager/CollectionManagerShortcut.d.ts +2 -3
  111. package/es/collection-manager/CollectionManagerShortcut.js +3 -60
  112. package/es/collection-manager/Configuration/AddCategoryAction.d.ts +3 -2
  113. package/es/collection-manager/Configuration/AddCategoryAction.js +2 -2
  114. package/es/collection-manager/Configuration/AddCollectionAction.d.ts +3 -2
  115. package/es/collection-manager/Configuration/AddCollectionAction.js +33 -27
  116. package/es/collection-manager/Configuration/AddFieldAction.d.ts +3 -2
  117. package/es/collection-manager/Configuration/AddFieldAction.js +46 -33
  118. package/es/collection-manager/Configuration/AddSubFieldAction.d.ts +2 -1
  119. package/es/collection-manager/Configuration/AddSubFieldAction.js +25 -20
  120. package/es/collection-manager/Configuration/CollectionFields.d.ts +2 -1
  121. package/es/collection-manager/Configuration/CollectionFieldsTable.d.ts +2 -2
  122. package/es/collection-manager/Configuration/CollectionFieldsTable.js +3 -1
  123. package/es/collection-manager/Configuration/CollectionFieldsTableArray.d.ts +2 -2
  124. package/es/collection-manager/Configuration/CollectionFieldsTableArray.js +3 -1
  125. package/es/collection-manager/Configuration/ConfigurationTable.d.ts +2 -1
  126. package/es/collection-manager/Configuration/ConfigurationTabs.d.ts +2 -1
  127. package/es/collection-manager/Configuration/ConfigurationTabs.js +61 -50
  128. package/es/collection-manager/Configuration/EditCategoryAction.d.ts +3 -2
  129. package/es/collection-manager/Configuration/EditCategoryAction.js +2 -2
  130. package/es/collection-manager/Configuration/EditCollectionAction.d.ts +3 -2
  131. package/es/collection-manager/Configuration/EditCollectionAction.js +2 -2
  132. package/es/collection-manager/Configuration/EditFieldAction.d.ts +3 -2
  133. package/es/collection-manager/Configuration/EditFieldAction.js +2 -2
  134. package/es/collection-manager/Configuration/EditSubFieldAction.d.ts +2 -1
  135. package/es/collection-manager/Configuration/EditSubFieldAction.js +2 -2
  136. package/es/collection-manager/Configuration/OverridingCollectionField.d.ts +3 -2
  137. package/es/collection-manager/Configuration/OverridingCollectionField.js +2 -2
  138. package/es/collection-manager/Configuration/SyncFieldsAction.d.ts +3 -2
  139. package/es/collection-manager/Configuration/SyncFieldsAction.js +2 -2
  140. package/es/collection-manager/Configuration/ViewInheritedField.d.ts +3 -2
  141. package/es/collection-manager/Configuration/ViewInheritedField.js +2 -2
  142. package/es/collection-manager/Configuration/components/CollectionCategory.d.ts +1 -1
  143. package/es/collection-manager/Configuration/components/CollectionCategory.js +2 -0
  144. package/es/collection-manager/Configuration/components/CollectionFieldInterface.d.ts +1 -1
  145. package/es/collection-manager/Configuration/components/CollectionFieldInterface.js +2 -0
  146. package/es/collection-manager/Configuration/components/CollectionTemplate.d.ts +1 -1
  147. package/es/collection-manager/Configuration/components/CollectionTemplate.js +2 -0
  148. package/es/collection-manager/Configuration/components/FieldSummary.d.ts +1 -1
  149. package/es/collection-manager/Configuration/components/FieldSummary.js +4 -2
  150. package/es/collection-manager/Configuration/components/TemplateSummay.d.ts +1 -1
  151. package/es/collection-manager/Configuration/components/TemplateSummay.js +4 -2
  152. package/es/collection-manager/Configuration/components/index.d.ts +6 -6
  153. package/es/collection-manager/Configuration/components/index.js +12 -0
  154. package/es/collection-manager/Configuration/interfaces.d.ts +1 -0
  155. package/es/collection-manager/Configuration/templates.d.ts +1 -0
  156. package/es/collection-manager/ResourceActionProvider.d.ts +1 -1
  157. package/es/collection-manager/action-hooks.d.ts +1 -0
  158. package/es/collection-manager/action-hooks.js +168 -90
  159. package/es/collection-manager/hooks/useOptions.js +39 -36
  160. package/es/collection-manager/index.d.ts +1 -1
  161. package/es/collection-manager/index.js +1 -1
  162. package/es/collection-manager/interfaces/components/index.d.ts +7 -6
  163. package/es/collection-manager/interfaces/index.d.ts +0 -1
  164. package/es/collection-manager/interfaces/index.js +0 -1
  165. package/es/collection-manager/interfaces/integer.js +1 -1
  166. package/es/collection-manager/interfaces/number.js +3 -3
  167. package/es/collection-manager/interfaces/percent.js +3 -3
  168. package/es/collection-manager/interfaces/properties/index.d.ts +0 -1
  169. package/es/collection-manager/interfaces/properties/index.js +0 -40
  170. package/es/collection-manager/interfaces/url.js +0 -5
  171. package/es/collection-manager/sub-table.d.ts +2 -2
  172. package/es/collection-manager/sub-table.js +4 -0
  173. package/es/collection-manager/templates/components/PreviewFields.d.ts +1 -1
  174. package/es/collection-manager/templates/components/PreviewFields.js +2 -1
  175. package/es/collection-manager/templates/components/PreviewTable.d.ts +2 -1
  176. package/es/collection-manager/types.d.ts +2 -0
  177. package/es/filter-provider/FilterProvider.d.ts +5 -1
  178. package/es/filter-provider/FilterProvider.js +8 -3
  179. package/es/formula/Expression.d.ts +2 -1
  180. package/es/formula/Expression.js +66 -46
  181. package/es/formula/Result.d.ts +2 -1
  182. package/es/formula/index.d.ts +2 -2
  183. package/es/hooks/index.d.ts +2 -0
  184. package/es/hooks/index.js +2 -0
  185. package/es/hooks/useAdminSchemaUid.d.ts +1 -0
  186. package/es/hooks/useAdminSchemaUid.js +6 -0
  187. package/es/hooks/useMenuItem.d.ts +37 -0
  188. package/es/hooks/useMenuItem.js +90 -0
  189. package/es/hooks/useViewport.d.ts +1 -0
  190. package/es/hooks/useViewport.js +41 -0
  191. package/es/i18n/i18n.js +0 -1
  192. package/es/icon/Icon.d.ts +2 -1
  193. package/es/index.d.ts +3 -2
  194. package/es/index.js +3 -2
  195. package/es/locale/en_US.d.ts +19 -22
  196. package/es/locale/en_US.js +22 -25
  197. package/es/locale/es_ES.d.ts +4 -2
  198. package/es/locale/es_ES.js +5 -3
  199. package/es/locale/ja_JP.d.ts +19 -20
  200. package/es/locale/ja_JP.js +20 -21
  201. package/es/locale/pt_BR.d.ts +3 -1
  202. package/es/locale/pt_BR.js +4 -2
  203. package/es/locale/ru_RU.d.ts +3 -19
  204. package/es/locale/ru_RU.js +4 -20
  205. package/es/locale/tr_TR.d.ts +0 -17
  206. package/es/locale/tr_TR.js +0 -17
  207. package/es/locale/zh_CN.d.ts +28 -25
  208. package/es/locale/zh_CN.js +29 -26
  209. package/es/plugin-manager/PinnedPluginListProvider.d.ts +1 -1
  210. package/es/plugin-manager/index.d.ts +1 -3
  211. package/es/plugin-manager/index.js +1 -3
  212. package/es/pm/Card.d.ts +8 -0
  213. package/es/pm/Card.js +364 -0
  214. package/es/pm/PluginManagerLink.d.ts +3 -2
  215. package/es/pm/PluginManagerLink.js +22 -18
  216. package/es/pm/index.d.ts +33 -3
  217. package/es/pm/index.js +117 -282
  218. package/es/powered-by/index.d.ts +2 -1
  219. package/es/route-switch/RouteSwitch.d.ts +2 -2
  220. package/es/route-switch/RouteSwitch.js +76 -45
  221. package/es/route-switch/RouteSwitchProvider.d.ts +3 -3
  222. package/es/route-switch/antd/admin-layout/index.d.ts +4 -2
  223. package/es/route-switch/antd/admin-layout/index.js +60 -56
  224. package/es/route-switch/antd/auth-layout/index.d.ts +2 -2
  225. package/es/route-switch/antd/auth-layout/index.js +2 -1
  226. package/es/route-switch/antd/route-schema-component/index.d.ts +2 -2
  227. package/es/route-switch/antd/route-schema-component/index.js +3 -3
  228. package/es/route-switch/context.d.ts +4 -0
  229. package/es/route-switch/context.js +5 -2
  230. package/es/route-switch/types.d.ts +2 -5
  231. package/es/schema-component/antd/AntdSchemaComponentProvider.d.ts +2 -1
  232. package/es/schema-component/antd/action/Action.Container.js +4 -0
  233. package/es/schema-component/antd/action/Action.Designer.d.ts +2 -1
  234. package/es/schema-component/antd/action/Action.Designer.js +204 -20
  235. package/es/schema-component/antd/action/Action.Drawer.js +14 -12
  236. package/es/schema-component/antd/action/Action.Link.js +3 -1
  237. package/es/schema-component/antd/action/Action.Modal.js +13 -12
  238. package/es/schema-component/antd/action/Action.Page.js +8 -2
  239. package/es/schema-component/antd/action/Action.js +26 -18
  240. package/es/schema-component/antd/action/ActionBar.d.ts +18 -2
  241. package/es/schema-component/antd/action/ActionBar.js +47 -21
  242. package/es/schema-component/antd/action/context.d.ts +8 -2
  243. package/es/schema-component/antd/action/context.js +15 -2
  244. package/es/schema-component/antd/action/hooks.d.ts +2 -0
  245. package/es/schema-component/antd/association-field/AssociationFieldProvider.d.ts +1 -1
  246. package/es/schema-component/antd/association-field/AssociationFieldProvider.js +57 -6
  247. package/es/schema-component/antd/association-field/AssociationSelect.js +89 -11
  248. package/es/schema-component/antd/association-field/Editable.d.ts +1 -1
  249. package/es/schema-component/antd/association-field/Editable.js +12 -11
  250. package/es/schema-component/antd/association-field/FileManager.d.ts +1 -1
  251. package/es/schema-component/antd/association-field/FileManager.js +14 -4
  252. package/es/schema-component/antd/association-field/InternalNester.d.ts +2 -1
  253. package/es/schema-component/antd/association-field/InternalNester.js +12 -1
  254. package/es/schema-component/antd/association-field/InternalPicker.d.ts +1 -1
  255. package/es/schema-component/antd/association-field/InternalPicker.js +10 -4
  256. package/es/schema-component/antd/association-field/InternalSubTable.d.ts +2 -1
  257. package/es/schema-component/antd/association-field/InternalSubTable.js +35 -6
  258. package/es/schema-component/antd/association-field/InternalViewer.js +10 -3
  259. package/es/schema-component/antd/association-field/Nester.d.ts +2 -1
  260. package/es/schema-component/antd/association-field/Nester.js +58 -14
  261. package/es/schema-component/antd/association-field/ReadPretty.d.ts +1 -1
  262. package/es/schema-component/antd/association-field/ReadPretty.js +4 -0
  263. package/es/schema-component/antd/association-field/SubTable.js +53 -12
  264. package/es/schema-component/antd/association-field/components/CreateRecordAction.d.ts +1 -1
  265. package/es/schema-component/antd/association-field/components/CreateRecordAction.js +4 -2
  266. package/es/schema-component/antd/association-field/schema.d.ts +3 -15
  267. package/es/schema-component/antd/association-field/schema.js +4 -16
  268. package/es/schema-component/antd/association-filter/ActionBarAssociationFilterAction.d.ts +2 -1
  269. package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +2 -1
  270. package/es/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +2 -1
  271. package/es/schema-component/antd/association-filter/AssociationFilter.Initializer.d.ts +2 -1
  272. package/es/schema-component/antd/association-filter/AssociationFilter.Item.Designer.d.ts +2 -1
  273. package/es/schema-component/antd/association-filter/AssociationFilter.Item.d.ts +2 -1
  274. package/es/schema-component/antd/association-filter/AssociationFilter.d.ts +7 -6
  275. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDelete.d.ts +2 -1
  276. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.d.ts +2 -1
  277. package/es/schema-component/antd/association-select/ReadPretty.d.ts +1 -1
  278. package/es/schema-component/antd/association-select/ReadPretty.js +2 -0
  279. package/es/schema-component/antd/block-item/BlockItem.js +6 -3
  280. package/es/schema-component/antd/block-item/TestDesigner.d.ts +2 -1
  281. package/es/schema-component/antd/calendar/Calendar.Designer.d.ts +2 -1
  282. package/es/schema-component/antd/calendar/Calendar.js +7 -5
  283. package/es/schema-component/antd/calendar/DeleteEvent.d.ts +1 -1
  284. package/es/schema-component/antd/calendar/DeleteEvent.js +3 -1
  285. package/es/schema-component/antd/calendar/Event.d.ts +1 -1
  286. package/es/schema-component/antd/calendar/Event.js +2 -0
  287. package/es/schema-component/antd/calendar/Nav.d.ts +1 -1
  288. package/es/schema-component/antd/calendar/Nav.js +5 -3
  289. package/es/schema-component/antd/calendar/Title.d.ts +1 -1
  290. package/es/schema-component/antd/calendar/Title.js +2 -0
  291. package/es/schema-component/antd/calendar/Today.d.ts +1 -1
  292. package/es/schema-component/antd/calendar/Today.js +4 -2
  293. package/es/schema-component/antd/calendar/ViewSelect.d.ts +1 -1
  294. package/es/schema-component/antd/calendar/ViewSelect.js +3 -0
  295. package/es/schema-component/antd/calendar/components/Header.d.ts +2 -1
  296. package/es/schema-component/antd/card-item/CardItem.js +1 -1
  297. package/es/schema-component/antd/cascader/Cascader.js +8 -1
  298. package/es/schema-component/antd/checkbox/Checkbox.d.ts +2 -1
  299. package/es/schema-component/antd/checkbox/Checkbox.js +14 -12
  300. package/es/schema-component/antd/collection-select/CollectionSelect.js +2 -0
  301. package/es/schema-component/antd/cron/Cron.d.ts +2 -1
  302. package/es/schema-component/antd/cron/Cron.js +3 -2
  303. package/es/schema-component/antd/date-picker/DatePicker.d.ts +4 -2
  304. package/es/schema-component/antd/date-picker/DatePicker.js +2 -1
  305. package/es/schema-component/antd/date-picker/ReadPretty.d.ts +1 -1
  306. package/es/schema-component/antd/date-picker/ReadPretty.js +1 -1
  307. package/es/schema-component/antd/error-fallback/ErrorFallback.d.ts +2 -1
  308. package/es/schema-component/antd/expand-action/Expand.Action.Design.d.ts +2 -1
  309. package/es/schema-component/antd/expand-action/Expand.Action.Design.js +2 -2
  310. package/es/schema-component/antd/expand-action/Expand.Action.d.ts +2 -1
  311. package/es/schema-component/antd/expand-action/Expand.Action.js +3 -6
  312. package/es/schema-component/antd/filter/DynamicComponent.d.ts +2 -1
  313. package/es/schema-component/antd/filter/Filter.Action.Designer.d.ts +2 -1
  314. package/es/schema-component/antd/filter/Filter.js +3 -1
  315. package/es/schema-component/antd/filter/FilterAction.d.ts +1 -1
  316. package/es/schema-component/antd/filter/FilterAction.js +3 -1
  317. package/es/schema-component/antd/filter/FilterItem.d.ts +1 -1
  318. package/es/schema-component/antd/filter/FilterItem.js +46 -41
  319. package/es/schema-component/antd/filter/FilterItems.d.ts +1 -1
  320. package/es/schema-component/antd/filter/FilterItems.js +2 -0
  321. package/es/schema-component/antd/filter/SaveDefaultValue.d.ts +2 -1
  322. package/es/schema-component/antd/filter/index.d.ts +1 -0
  323. package/es/schema-component/antd/filter/index.js +1 -0
  324. package/es/schema-component/antd/filter/useValues.js +3 -3
  325. package/es/schema-component/antd/form/Form.Designer.d.ts +2 -1
  326. package/es/schema-component/antd/form/Form.d.ts +1 -1
  327. package/es/schema-component/antd/form/Form.js +2 -0
  328. package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +2 -1
  329. package/es/schema-component/antd/form-item/FormItem.js +93 -38
  330. package/es/schema-component/antd/form-item/SchemaSettingOptions.d.ts +11 -10
  331. package/es/schema-component/antd/form-item/SchemaSettingOptions.js +1 -1
  332. package/es/schema-component/antd/form-v2/Form.Designer.d.ts +4 -3
  333. package/es/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +2 -1
  334. package/es/schema-component/antd/form-v2/Form.js +9 -2
  335. package/es/schema-component/antd/form-v2/FormField.js +2 -0
  336. package/es/schema-component/antd/form-v2/Templates.d.ts +7 -1
  337. package/es/schema-component/antd/form-v2/Templates.js +20 -4
  338. package/es/schema-component/antd/form-v2/index.js +2 -0
  339. package/es/schema-component/antd/g2plot/G2Plot.js +2 -0
  340. package/es/schema-component/antd/g2plot/G2PlotDesigner.d.ts +2 -1
  341. package/es/schema-component/antd/gantt/Gantt.Designer.d.ts +2 -1
  342. package/es/schema-component/antd/gantt/components/gantt/Event.d.ts +1 -1
  343. package/es/schema-component/antd/gantt/components/gantt/Event.js +2 -0
  344. package/es/schema-component/antd/gantt/components/gantt/gantt.js +2 -2
  345. package/es/schema-component/antd/grid/Block.d.ts +1 -1
  346. package/es/schema-component/antd/grid/Block.js +2 -0
  347. package/es/schema-component/antd/grid/Grid.js +25 -9
  348. package/es/schema-component/antd/grid-card/GridCard.Decorator.d.ts +1 -1
  349. package/es/schema-component/antd/grid-card/GridCard.Decorator.js +2 -12
  350. package/es/schema-component/antd/grid-card/GridCard.Designer.d.ts +2 -1
  351. package/es/schema-component/antd/grid-card/GridCard.Designer.js +4 -5
  352. package/es/schema-component/antd/grid-card/GridCard.Item.d.ts +2 -1
  353. package/es/schema-component/antd/grid-card/GridCard.d.ts +2 -1
  354. package/es/schema-component/antd/grid-card/GridCard.js +12 -8
  355. package/es/schema-component/antd/index.d.ts +1 -0
  356. package/es/schema-component/antd/index.js +1 -0
  357. package/es/schema-component/antd/index.less +18 -4
  358. package/es/schema-component/antd/input/Input.d.ts +2 -1
  359. package/es/schema-component/antd/input/Input.js +3 -2
  360. package/es/schema-component/antd/input/Json.d.ts +2 -2
  361. package/es/schema-component/antd/input/Json.js +43 -4
  362. package/es/schema-component/antd/input/ReadPretty.d.ts +1 -1
  363. package/es/schema-component/antd/input/ReadPretty.js +4 -4
  364. package/es/schema-component/antd/input-number/InputNumber.d.ts +5 -1
  365. package/es/schema-component/antd/input-number/InputNumber.js +2 -2
  366. package/es/schema-component/antd/input-number/ReadPretty.d.ts +2 -2
  367. package/es/schema-component/antd/input-number/ReadPretty.js +6 -2
  368. package/es/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +2 -1
  369. package/es/schema-component/antd/kanban/Kanban.Card.Designer.d.ts +2 -1
  370. package/es/schema-component/antd/kanban/Kanban.Card.js +5 -3
  371. package/es/schema-component/antd/kanban/Kanban.CardViewer.js +2 -0
  372. package/es/schema-component/antd/kanban/Kanban.Designer.d.ts +2 -1
  373. package/es/schema-component/antd/kanban/Kanban.js +3 -1
  374. package/es/schema-component/antd/list/List.Decorator.d.ts +1 -1
  375. package/es/schema-component/antd/list/List.Decorator.js +7 -12
  376. package/es/schema-component/antd/list/List.Designer.d.ts +2 -1
  377. package/es/schema-component/antd/list/List.Item.d.ts +2 -1
  378. package/es/schema-component/antd/list/List.Item.js +1 -1
  379. package/es/schema-component/antd/list/List.d.ts +2 -1
  380. package/es/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +2 -1
  381. package/es/schema-component/antd/markdown/Markdown.Void.js +2 -0
  382. package/es/schema-component/antd/markdown/Markdown.d.ts +2 -0
  383. package/es/schema-component/antd/markdown/Markdown.js +6 -2
  384. package/es/schema-component/antd/markdown/util.js +1 -1
  385. package/es/schema-component/antd/menu/Menu.Designer.d.ts +2 -1
  386. package/es/schema-component/antd/menu/Menu.js +336 -177
  387. package/es/schema-component/antd/menu/MenuItemInitializers/index.d.ts +2 -1
  388. package/es/schema-component/antd/page/FixedBlock.d.ts +2 -1
  389. package/es/schema-component/antd/page/FixedBlock.js +6 -2
  390. package/es/schema-component/antd/page/Page.d.ts +2 -1
  391. package/es/schema-component/antd/page/Page.js +53 -39
  392. package/es/schema-component/antd/page/PageTabDesigner.d.ts +3 -2
  393. package/es/schema-component/antd/pagination/index.d.ts +1 -1
  394. package/es/schema-component/antd/pagination/index.js +2 -0
  395. package/es/schema-component/antd/password/Password.d.ts +1 -1
  396. package/es/schema-component/antd/password/PasswordStrength.js +1 -144
  397. package/es/schema-component/antd/password/utils.d.ts +1 -0
  398. package/es/schema-component/antd/password/utils.js +144 -0
  399. package/es/schema-component/antd/percent/Percent.js +1 -1
  400. package/es/schema-component/antd/preview/Preview.d.ts +1 -1
  401. package/es/schema-component/antd/quick-edit/QuickEdit.d.ts +3 -0
  402. package/es/schema-component/antd/quick-edit/QuickEdit.js +88 -0
  403. package/es/schema-component/antd/quick-edit/index.d.ts +1 -0
  404. package/es/schema-component/antd/quick-edit/index.js +1 -0
  405. package/es/schema-component/antd/radio/Radio.d.ts +1 -1
  406. package/es/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -1
  407. package/es/schema-component/antd/record-picker/InputRecordPicker.js +5 -7
  408. package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +10 -4
  409. package/es/schema-component/antd/remote-select/ReadPretty.d.ts +1 -1
  410. package/es/schema-component/antd/remote-select/ReadPretty.js +2 -0
  411. package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  412. package/es/schema-component/antd/remote-select/RemoteSelect.js +111 -33
  413. package/es/schema-component/antd/remote-select/utils.d.ts +4 -0
  414. package/es/schema-component/antd/remote-select/utils.js +31 -0
  415. package/es/schema-component/antd/select/ReadPretty.d.ts +1 -1
  416. package/es/schema-component/antd/select/ReadPretty.js +6 -6
  417. package/es/schema-component/antd/select/Select.d.ts +3 -0
  418. package/es/schema-component/antd/select/Select.js +22 -11
  419. package/es/schema-component/antd/select/index.d.ts +1 -1
  420. package/es/schema-component/antd/select/index.js +1 -1
  421. package/es/schema-component/antd/select/utils.d.ts +14 -0
  422. package/es/schema-component/antd/select/{shared.js → utils.js} +20 -18
  423. package/es/schema-component/antd/table/Table.Array.Designer.d.ts +2 -1
  424. package/es/schema-component/antd/table/Table.Array.d.ts +5 -5
  425. package/es/schema-component/antd/table/Table.Array.js +7 -5
  426. package/es/schema-component/antd/table/Table.Column.ActionBar.d.ts +1 -1
  427. package/es/schema-component/antd/table/Table.Column.ActionBar.js +2 -0
  428. package/es/schema-component/antd/table/Table.Column.Decorator.d.ts +2 -1
  429. package/es/schema-component/antd/table/Table.Column.Designer.d.ts +2 -1
  430. package/es/schema-component/antd/table/Table.Column.d.ts +2 -1
  431. package/es/schema-component/antd/table/Table.Designer.d.ts +2 -1
  432. package/es/schema-component/antd/table/Table.RowActionDesigner.d.ts +2 -1
  433. package/es/schema-component/antd/table/Table.RowSelection.d.ts +1 -1
  434. package/es/schema-component/antd/table/Table.RowSelection.js +2 -0
  435. package/es/schema-component/antd/table/Table.Void.Designer.d.ts +2 -1
  436. package/es/schema-component/antd/table/Table.Void.d.ts +1 -1
  437. package/es/schema-component/antd/table/Table.Void.js +2 -0
  438. package/es/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -2
  439. package/es/schema-component/antd/table-v2/FilterDynamicComponent.js +17 -2
  440. package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +2 -1
  441. package/es/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +1 -1
  442. package/es/schema-component/antd/table-v2/Table.Column.ActionBar.js +2 -0
  443. package/es/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +2 -1
  444. package/es/schema-component/antd/table-v2/Table.Column.Designer.d.ts +2 -1
  445. package/es/schema-component/antd/table-v2/Table.Column.Designer.js +148 -11
  446. package/es/schema-component/antd/table-v2/Table.Column.d.ts +2 -1
  447. package/es/schema-component/antd/table-v2/Table.Designer.d.ts +2 -1
  448. package/es/schema-component/antd/table-v2/Table.Index.d.ts +2 -1
  449. package/es/schema-component/antd/table-v2/Table.js +63 -30
  450. package/es/schema-component/antd/table-v2/TableBlockDesigner.d.ts +2 -1
  451. package/es/schema-component/antd/table-v2/TableBlockDesigner.js +53 -47
  452. package/es/schema-component/antd/table-v2/TableField.js +4 -0
  453. package/es/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +2 -1
  454. package/es/schema-component/antd/table-v2/index.d.ts +1 -0
  455. package/es/schema-component/antd/table-v2/index.js +1 -0
  456. package/es/schema-component/antd/table-v2/utils.js +1 -1
  457. package/es/schema-component/antd/tabs/Tabs.Designer.d.ts +2 -1
  458. package/es/schema-component/antd/tabs/Tabs.js +49 -18
  459. package/es/schema-component/antd/tabs/context.d.ts +8 -0
  460. package/es/schema-component/antd/tabs/context.js +15 -0
  461. package/es/schema-component/antd/tabs/index.d.ts +1 -0
  462. package/es/schema-component/antd/tabs/index.js +2 -1
  463. package/es/schema-component/antd/time-picker/ReadPretty.d.ts +1 -1
  464. package/es/schema-component/antd/time-picker/ReadPretty.js +1 -1
  465. package/es/schema-component/antd/time-picker/TimePicker.d.ts +1 -1
  466. package/es/schema-component/antd/time-picker/TimePicker.js +1 -1
  467. package/es/schema-component/antd/tree-select/ReadPretty.d.ts +1 -1
  468. package/es/schema-component/antd/tree-select/ReadPretty.js +3 -1
  469. package/es/schema-component/antd/upload/ReadPretty.js +7 -3
  470. package/es/schema-component/antd/upload/Upload.js +1 -1
  471. package/es/schema-component/antd/upload/shared.d.ts +3 -3
  472. package/es/schema-component/antd/upload/style.less +1 -2
  473. package/es/schema-component/antd/upload/type.d.ts +2 -2
  474. package/es/schema-component/antd/variable/Input.d.ts +2 -2
  475. package/es/schema-component/antd/variable/Input.js +182 -31
  476. package/es/schema-component/antd/variable/JSONInput.d.ts +2 -2
  477. package/es/schema-component/antd/variable/JSONInput.js +2 -23
  478. package/es/schema-component/antd/variable/TextArea.d.ts +2 -2
  479. package/es/schema-component/antd/variable/VariableSelect.d.ts +2 -2
  480. package/es/schema-component/antd/variable/VariableSelect.js +1 -1
  481. package/es/schema-component/common/dnd-context/index.d.ts +1 -1
  482. package/es/schema-component/common/dnd-context/index.js +11 -4
  483. package/es/schema-component/common/sortable-item/SortableItem.d.ts +11 -4
  484. package/es/schema-component/common/sortable-item/SortableItem.js +16 -5
  485. package/es/schema-component/common/utils/logic.js +64 -2
  486. package/es/schema-component/common/utils/uitls.d.ts +1 -0
  487. package/es/schema-component/common/utils/uitls.js +49 -15
  488. package/es/schema-component/core/DesignableSwitch.d.ts +2 -1
  489. package/es/schema-component/core/SchemaComponent.d.ts +2 -1
  490. package/es/schema-component/core/SchemaComponentOptions.js +13 -8
  491. package/es/schema-component/core/SchemaComponentProvider.js +17 -6
  492. package/es/schema-component/hooks/useCompile.js +33 -5
  493. package/es/schema-component/hooks/useDesignable.d.ts +5 -4
  494. package/es/schema-component/hooks/useDesignable.js +30 -28
  495. package/es/schema-component/hooks/useFieldModeOptions.js +45 -21
  496. package/es/schema-component/hooks/useProps.d.ts +1 -10
  497. package/es/schema-component/hooks/useProps.js +20 -6
  498. package/es/schema-initializer/SchemaInitializer.d.ts +18 -4
  499. package/es/schema-initializer/SchemaInitializer.js +278 -99
  500. package/es/schema-initializer/SchemaInitializerProvider.d.ts +3 -3
  501. package/es/schema-initializer/SelectCollection.d.ts +3 -3
  502. package/es/schema-initializer/SelectCollection.js +19 -16
  503. package/es/schema-initializer/buttons/BlockInitializers.d.ts +2 -0
  504. package/es/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +2 -1
  505. package/es/schema-initializer/buttons/CreateFormBlockInitializers.d.ts +2 -1
  506. package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +2 -1
  507. package/es/schema-initializer/buttons/CustomFormItemInitializers.d.ts +2 -1
  508. package/es/schema-initializer/buttons/DetailsActionInitializers.d.ts +14 -0
  509. package/es/schema-initializer/buttons/DetailsActionInitializers.js +12 -0
  510. package/es/schema-initializer/buttons/FormItemInitializers.d.ts +3 -2
  511. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +16 -0
  512. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +21 -16
  513. package/es/schema-initializer/buttons/ReadPrettyFormItemInitializers.d.ts +2 -1
  514. package/es/schema-initializer/buttons/RecordBlockInitializers.d.ts +2 -1
  515. package/es/schema-initializer/buttons/RecordFormBlockInitializers.d.ts +2 -1
  516. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +4 -3
  517. package/es/schema-initializer/buttons/TabPaneInitializers.js +3 -3
  518. package/es/schema-initializer/buttons/TableActionColumnInitializers.d.ts +3 -2
  519. package/es/schema-initializer/buttons/TableActionColumnInitializers.js +13 -4
  520. package/es/schema-initializer/buttons/TableActionInitializers.js +5 -5
  521. package/es/schema-initializer/buttons/TableColumnInitializers.d.ts +2 -1
  522. package/es/schema-initializer/buttons/TableColumnInitializers.js +17 -9
  523. package/es/schema-initializer/buttons/TableSelectorInitializers.d.ts +2 -1
  524. package/es/schema-initializer/components/BulkEditField.d.ts +2 -1
  525. package/es/schema-initializer/components/CreateRecordAction.d.ts +2 -2
  526. package/es/schema-initializer/components/CreateRecordAction.js +43 -29
  527. package/es/schema-initializer/components/DeletedField.d.ts +2 -1
  528. package/es/schema-initializer/components/DuplicateAction.d.ts +3 -0
  529. package/es/schema-initializer/components/DuplicateAction.js +165 -0
  530. package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +2 -1
  531. package/es/schema-initializer/components/assigned-field/AssignedField.js +3 -2
  532. package/es/schema-initializer/components/index.d.ts +1 -0
  533. package/es/schema-initializer/components/index.js +2 -1
  534. package/es/schema-initializer/index.d.ts +1 -1
  535. package/es/schema-initializer/index.js +1 -1
  536. package/es/schema-initializer/items/ActionInitializer.d.ts +2 -1
  537. package/es/schema-initializer/items/BlockInitializer.d.ts +2 -1
  538. package/es/schema-initializer/items/BulkDestroyActionInitializer.d.ts +2 -1
  539. package/es/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +2 -1
  540. package/es/schema-initializer/items/CalendarBlockInitializer.d.ts +2 -1
  541. package/es/schema-initializer/items/CalendarBlockInitializer.js +2 -2
  542. package/es/schema-initializer/items/CollectionFieldInitializer.d.ts +2 -1
  543. package/es/schema-initializer/items/CreateActionInitializer.d.ts +2 -1
  544. package/es/schema-initializer/items/CreateChildInitializer.d.ts +2 -1
  545. package/es/schema-initializer/items/CreateFilterActionInitializer.d.ts +2 -1
  546. package/es/schema-initializer/items/CreateFormBlockInitializer.d.ts +2 -1
  547. package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +2 -1
  548. package/es/schema-initializer/items/CreateResetActionInitializer.d.ts +2 -1
  549. package/es/schema-initializer/items/CreateSubmitActionInitializer.d.ts +2 -1
  550. package/es/schema-initializer/items/CustomizeActionInitializer.d.ts +2 -1
  551. package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +2 -1
  552. package/es/schema-initializer/items/DataBlockInitializer.d.ts +2 -1
  553. package/es/schema-initializer/items/DeleteEventActionInitializer.d.ts +2 -1
  554. package/es/schema-initializer/items/DestroyActionInitializer.d.ts +2 -1
  555. package/es/schema-initializer/items/DetailsBlockInitializer.d.ts +2 -1
  556. package/es/schema-initializer/items/DuplicateActionInitializer.d.ts +2 -0
  557. package/es/schema-initializer/items/DuplicateActionInitializer.js +61 -0
  558. package/es/schema-initializer/items/ExpandActionInitializer.d.ts +2 -1
  559. package/es/schema-initializer/items/ExpandActionInitializer.js +3 -3
  560. package/es/schema-initializer/items/FilterActionInitializer.d.ts +2 -1
  561. package/es/schema-initializer/items/FilterBlockInitializer.d.ts +2 -1
  562. package/es/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +2 -1
  563. package/es/schema-initializer/items/FilterFormBlockInitializer.d.ts +2 -1
  564. package/es/schema-initializer/items/FormBlockInitializer.d.ts +2 -1
  565. package/es/schema-initializer/items/G2PlotInitializer.d.ts +2 -1
  566. package/es/schema-initializer/items/GanttBlockInitializer.d.ts +2 -1
  567. package/es/schema-initializer/items/GridCardBlockInitializer.d.ts +2 -1
  568. package/es/schema-initializer/items/InitializerWithSwitch.d.ts +2 -1
  569. package/es/schema-initializer/items/KanbanBlockInitializer.d.ts +2 -1
  570. package/es/schema-initializer/items/ListBlockInitializer.d.ts +2 -1
  571. package/es/schema-initializer/items/MarkdownBlockInitializer.d.ts +2 -1
  572. package/es/schema-initializer/items/PrintActionInitializer.d.ts +2 -1
  573. package/es/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +2 -1
  574. package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +2 -1
  575. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +2 -1
  576. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +2 -1
  577. package/es/schema-initializer/items/RecordFormBlockInitializer.d.ts +2 -1
  578. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +2 -1
  579. package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +2 -1
  580. package/es/schema-initializer/items/RefreshActionInitializer.d.ts +2 -1
  581. package/es/schema-initializer/items/SelectActionInitializer.d.ts +2 -1
  582. package/es/schema-initializer/items/SubmitActionInitializer.d.ts +2 -1
  583. package/es/schema-initializer/items/TableActionColumnInitializer.d.ts +2 -1
  584. package/es/schema-initializer/items/TableBlockInitializer.d.ts +2 -1
  585. package/es/schema-initializer/items/TableCollectionFieldInitializer.d.ts +2 -1
  586. package/es/schema-initializer/items/TableSelectorInitializer.d.ts +2 -1
  587. package/es/schema-initializer/items/UpdateActionInitializer.d.ts +2 -1
  588. package/es/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +2 -1
  589. package/es/schema-initializer/items/ViewActionInitializer.d.ts +2 -1
  590. package/es/schema-initializer/items/index.d.ts +1 -0
  591. package/es/schema-initializer/items/index.js +1 -0
  592. package/es/schema-initializer/utils.d.ts +13 -1
  593. package/es/schema-initializer/utils.js +110 -68
  594. package/es/schema-items/GeneralSchemaItems.js +5 -3
  595. package/es/schema-items/OpenModeSchemaItems.js +14 -10
  596. package/es/schema-settings/DataTemplates/FormDataTemplates.d.ts +1 -1
  597. package/es/schema-settings/DataTemplates/FormDataTemplates.js +8 -6
  598. package/es/schema-settings/DataTemplates/TreeLabel.d.ts +2 -1
  599. package/es/schema-settings/DataTemplates/components/DataTemplateTitle.js +2 -0
  600. package/es/schema-settings/DataTemplates/components/Designer.d.ts +1 -1
  601. package/es/schema-settings/DataTemplates/components/Designer.js +2 -0
  602. package/es/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +3 -3
  603. package/es/schema-settings/DataTemplates/hooks/useCollectionState.js +38 -57
  604. package/es/schema-settings/EnableChildCollections/index.d.ts +1 -1
  605. package/es/schema-settings/EnableChildCollections/index.js +2 -0
  606. package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  607. package/es/schema-settings/GeneralSchemaDesigner.js +3 -2
  608. package/es/schema-settings/LinkageRules/DynamicComponent.d.ts +2 -1
  609. package/es/schema-settings/LinkageRules/FilterDynamicComponent.d.ts +1 -1
  610. package/es/schema-settings/LinkageRules/LinkageRuleAction.d.ts +2 -2
  611. package/es/schema-settings/LinkageRules/LinkageRuleAction.js +14 -10
  612. package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.d.ts +2 -2
  613. package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.js +2 -0
  614. package/es/schema-settings/LinkageRules/ValueDynamicComponent.d.ts +2 -1
  615. package/es/schema-settings/LinkageRules/components/LinkageHeader.js +2 -0
  616. package/es/schema-settings/LinkageRules/index.d.ts +1 -1
  617. package/es/schema-settings/LinkageRules/index.js +3 -1
  618. package/es/schema-settings/SchemaSettings.d.ts +2 -1
  619. package/es/schema-settings/SchemaSettings.js +150 -62
  620. package/es/schema-settings/VariableInput/VariableInput.d.ts +1 -1
  621. package/es/schema-settings/VariableInput/VariableInput.js +1 -1
  622. package/es/schema-settings/VariableInput/hooks/useDateVariable.d.ts +12 -1
  623. package/es/schema-settings/VariableInput/hooks/useDateVariable.js +41 -36
  624. package/es/schema-settings/VariableInput/hooks/useFormVariable.d.ts +19 -0
  625. package/es/schema-settings/VariableInput/hooks/useFormVariable.js +89 -0
  626. package/es/schema-settings/VariableInput/hooks/useIterationVariable.d.ts +8 -0
  627. package/es/schema-settings/VariableInput/hooks/useIterationVariable.js +77 -0
  628. package/es/schema-settings/VariableInput/hooks/useUserVariable.d.ts +4 -4
  629. package/es/schema-settings/VariableInput/hooks/useUserVariable.js +66 -42
  630. package/es/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +5 -1
  631. package/es/schema-settings/VariableInput/hooks/useVariableOptions.js +23 -3
  632. package/es/schema-settings/VariableInput/type.d.ts +28 -0
  633. package/es/schema-settings/VariableInput/type.js +1 -0
  634. package/es/schema-settings/hooks/useIsShowMultipleSwitch.js +3 -2
  635. package/es/schema-templates/BlockTemplate.d.ts +1 -1
  636. package/es/schema-templates/BlockTemplate.js +4 -1
  637. package/es/schema-templates/BlockTemplateDetails.d.ts +2 -1
  638. package/es/schema-templates/BlockTemplateDetails.js +11 -7
  639. package/es/schema-templates/BlockTemplatePage.d.ts +3 -2
  640. package/es/schema-templates/BlockTemplatePage.js +4 -1
  641. package/es/schema-templates/SchemaTemplateManagerProvider.d.ts +5 -2
  642. package/es/schema-templates/SchemaTemplateManagerProvider.js +7 -0
  643. package/es/schema-templates/index.d.ts +0 -1
  644. package/es/schema-templates/index.js +1 -2
  645. package/es/system-settings/SystemSettingsProvider.d.ts +5 -3
  646. package/es/system-settings/SystemSettingsShortcut.d.ts +2 -3
  647. package/es/system-settings/SystemSettingsShortcut.js +33 -81
  648. package/es/test/collections.d.ts +1487 -0
  649. package/es/test/collections.js +1437 -0
  650. package/es/test/index.d.ts +3 -0
  651. package/es/test/index.js +3 -0
  652. package/es/test/mainCollections.d.ts +11359 -0
  653. package/es/test/mainCollections.js +3 -0
  654. package/es/test/mockAPIClient.d.ts +6 -0
  655. package/es/test/mockAPIClient.js +10 -0
  656. package/es/user/ChangePassword.d.ts +1 -1
  657. package/es/user/ChangePassword.js +30 -26
  658. package/es/user/CurrentUser.d.ts +7 -1
  659. package/es/user/CurrentUser.js +126 -88
  660. package/es/user/CurrentUserProvider.d.ts +1 -1
  661. package/es/user/CurrentUserProvider.js +4 -3
  662. package/es/user/EditProfile.d.ts +1 -1
  663. package/es/user/EditProfile.js +31 -25
  664. package/es/user/LanguageSettings.d.ts +1 -1
  665. package/es/user/LanguageSettings.js +67 -64
  666. package/es/user/SigninPage.d.ts +2 -1
  667. package/es/user/SigninPage.js +40 -29
  668. package/es/user/SigninPageExtension.d.ts +1 -1
  669. package/es/user/SignupPage.d.ts +2 -1
  670. package/es/user/SignupPage.js +5 -4
  671. package/es/user/SwitchRole.d.ts +1 -1
  672. package/es/user/SwitchRole.js +54 -51
  673. package/es/user/ThemeSettings.d.ts +1 -1
  674. package/es/user/ThemeSettings.js +56 -52
  675. package/es/user/VerificationCode.d.ts +2 -2
  676. package/es/user/index.d.ts +0 -3
  677. package/es/user/index.js +3 -3
  678. package/lib/acl/ACLProvider.d.ts +6 -7
  679. package/lib/acl/ACLProvider.js +6 -23
  680. package/lib/acl/ACLShortcut.d.ts +2 -3
  681. package/lib/acl/ACLShortcut.js +4 -64
  682. package/lib/acl/Configuration/ConfigureCenter.d.ts +3 -2
  683. package/lib/acl/Configuration/ConfigureCenter.js +8 -25
  684. package/lib/acl/Configuration/FilterDynamicComponent.d.ts +2 -2
  685. package/lib/acl/Configuration/MenuConfigure.d.ts +2 -1
  686. package/lib/acl/Configuration/MenuItemsProvider.d.ts +2 -1
  687. package/lib/acl/Configuration/MenuItemsProvider.js +3 -3
  688. package/lib/acl/Configuration/PermisionProvider.d.ts +2 -2
  689. package/lib/acl/Configuration/RoleConfigure.d.ts +2 -1
  690. package/lib/acl/Configuration/RoleTable.d.ts +2 -1
  691. package/lib/acl/Configuration/ScopeSelect.d.ts +2 -1
  692. package/lib/acl/Configuration/schemas/scopes.d.ts +1 -0
  693. package/lib/antd-config-provider/index.d.ts +1 -1
  694. package/lib/api-client/APIClient.d.ts +1 -1
  695. package/lib/api-client/APIClientProvider.d.ts +2 -1
  696. package/lib/api-client/hooks/assign.d.ts +0 -1
  697. package/lib/api-client/hooks/assign.js +3 -10
  698. package/lib/api-client/hooks/useRequest.d.ts +1 -1
  699. package/lib/api-client/hooks/useRequest.js +1 -1
  700. package/lib/appInfo/CurrentAppInfoProvider.d.ts +1 -1
  701. package/lib/application/Application.d.ts +2 -1
  702. package/lib/application/Application.js +7 -6
  703. package/lib/application/compose.d.ts +2 -1
  704. package/lib/application-v2/Application.d.ts +31 -0
  705. package/lib/application-v2/Application.js +147 -0
  706. package/lib/application-v2/Plugin.d.ts +14 -0
  707. package/lib/application-v2/Plugin.js +99 -0
  708. package/lib/application-v2/PluginManager.d.ts +19 -0
  709. package/lib/application-v2/PluginManager.js +249 -0
  710. package/lib/application-v2/Router.d.ts +13 -0
  711. package/lib/application-v2/Router.js +111 -0
  712. package/lib/application-v2/components/AppComponent.d.ts +2 -0
  713. package/lib/application-v2/components/AppComponent.js +28 -0
  714. package/lib/application-v2/components/MainComponent.d.ts +6 -0
  715. package/lib/application-v2/components/MainComponent.js +23 -0
  716. package/lib/application-v2/components/RouterProvider.d.ts +14 -0
  717. package/lib/application-v2/components/RouterProvider.js +115 -0
  718. package/lib/application-v2/components/index.d.ts +13 -0
  719. package/lib/application-v2/components/index.js +56 -0
  720. package/lib/application-v2/compose.d.ts +2 -0
  721. package/lib/application-v2/compose.js +49 -0
  722. package/lib/application-v2/context.d.ts +3 -0
  723. package/lib/application-v2/context.js +9 -0
  724. package/lib/application-v2/hooks/index.d.ts +3 -0
  725. package/lib/application-v2/hooks/index.js +38 -0
  726. package/lib/application-v2/hooks/useApp.d.ts +1 -0
  727. package/lib/application-v2/hooks/useApp.js +12 -0
  728. package/lib/application-v2/hooks/useLoad.d.ts +1 -0
  729. package/lib/application-v2/hooks/useLoad.js +45 -0
  730. package/lib/application-v2/hooks/useRouter.d.ts +1 -0
  731. package/lib/application-v2/hooks/useRouter.js +12 -0
  732. package/lib/application-v2/index.d.ts +3 -0
  733. package/lib/application-v2/index.js +38 -0
  734. package/lib/application-v2/types.d.ts +26 -0
  735. package/lib/application-v2/types.js +5 -0
  736. package/lib/async-data-provider/index.d.ts +1 -1
  737. package/lib/auth/OptionsComponent.d.ts +7 -0
  738. package/lib/auth/OptionsComponent.js +32 -0
  739. package/lib/auth/SigninPage.d.ts +23 -0
  740. package/lib/{settings-form/SettingsForm.js → auth/SigninPage.js} +121 -277
  741. package/lib/auth/SigninPageExtension.d.ts +22 -0
  742. package/lib/auth/SigninPageExtension.js +42 -0
  743. package/lib/auth/SignupPage.d.ts +24 -0
  744. package/lib/auth/SignupPage.js +94 -0
  745. package/lib/auth/index.d.ts +4 -0
  746. package/lib/auth/index.js +49 -0
  747. package/lib/block-provider/BlockProvider.d.ts +4 -3
  748. package/lib/block-provider/BlockProvider.js +23 -5
  749. package/lib/block-provider/CalendarBlockProvider.d.ts +1 -1
  750. package/lib/block-provider/DetailsBlockProvider.d.ts +1 -1
  751. package/lib/block-provider/DetailsBlockProvider.js +1 -13
  752. package/lib/block-provider/FilterFormBlockProvider.d.ts +2 -1
  753. package/lib/block-provider/FormBlockProvider.d.ts +1 -1
  754. package/lib/block-provider/FormBlockProvider.js +10 -21
  755. package/lib/block-provider/FormFieldProvider.d.ts +1 -1
  756. package/lib/block-provider/GanttBlockProvider.d.ts +1 -1
  757. package/lib/block-provider/KanbanBlockProvider.d.ts +1 -1
  758. package/lib/block-provider/TableBlockProvider.d.ts +1 -2
  759. package/lib/block-provider/TableBlockProvider.js +57 -84
  760. package/lib/block-provider/TableFieldProvider.d.ts +1 -1
  761. package/lib/block-provider/TableSelectorProvider.d.ts +2 -2
  762. package/lib/block-provider/hooks/index.d.ts +10 -1
  763. package/lib/block-provider/hooks/index.js +50 -134
  764. package/lib/block-provider/index.d.ts +1 -0
  765. package/lib/block-provider/index.js +11 -0
  766. package/lib/board/Card.d.ts +2 -2
  767. package/lib/board/CardAdder.d.ts +2 -2
  768. package/lib/board/CardForm.d.ts +2 -2
  769. package/lib/board/Column.d.ts +3 -3
  770. package/lib/board/ColumnAdder.d.ts +2 -2
  771. package/lib/board/ColumnForm.d.ts +2 -2
  772. package/lib/board/DefaultCard.d.ts +2 -2
  773. package/lib/board/DefaultColumnHeader.d.ts +2 -2
  774. package/lib/board/Kanban.d.ts +2 -2
  775. package/lib/board/withDroppable.d.ts +2 -1
  776. package/lib/china-region/index.d.ts +2 -1
  777. package/lib/collection-manager/CollectionField.d.ts +1 -1
  778. package/lib/collection-manager/CollectionField.js +2 -1
  779. package/lib/collection-manager/CollectionManagerProvider.d.ts +2 -2
  780. package/lib/collection-manager/CollectionManagerShortcut.d.ts +2 -3
  781. package/lib/collection-manager/CollectionManagerShortcut.js +4 -63
  782. package/lib/collection-manager/Configuration/AddCategoryAction.d.ts +3 -2
  783. package/lib/collection-manager/Configuration/AddCategoryAction.js +1 -1
  784. package/lib/collection-manager/Configuration/AddCollectionAction.d.ts +3 -2
  785. package/lib/collection-manager/Configuration/AddCollectionAction.js +30 -24
  786. package/lib/collection-manager/Configuration/AddFieldAction.d.ts +3 -2
  787. package/lib/collection-manager/Configuration/AddFieldAction.js +43 -30
  788. package/lib/collection-manager/Configuration/AddSubFieldAction.d.ts +2 -1
  789. package/lib/collection-manager/Configuration/AddSubFieldAction.js +22 -17
  790. package/lib/collection-manager/Configuration/CollectionFields.d.ts +2 -1
  791. package/lib/collection-manager/Configuration/CollectionFieldsTable.d.ts +2 -2
  792. package/lib/collection-manager/Configuration/CollectionFieldsTable.js +3 -1
  793. package/lib/collection-manager/Configuration/CollectionFieldsTableArray.d.ts +2 -2
  794. package/lib/collection-manager/Configuration/CollectionFieldsTableArray.js +3 -1
  795. package/lib/collection-manager/Configuration/ConfigurationTable.d.ts +2 -1
  796. package/lib/collection-manager/Configuration/ConfigurationTabs.d.ts +2 -1
  797. package/lib/collection-manager/Configuration/ConfigurationTabs.js +61 -49
  798. package/lib/collection-manager/Configuration/EditCategoryAction.d.ts +3 -2
  799. package/lib/collection-manager/Configuration/EditCategoryAction.js +1 -1
  800. package/lib/collection-manager/Configuration/EditCollectionAction.d.ts +3 -2
  801. package/lib/collection-manager/Configuration/EditCollectionAction.js +1 -1
  802. package/lib/collection-manager/Configuration/EditFieldAction.d.ts +3 -2
  803. package/lib/collection-manager/Configuration/EditFieldAction.js +1 -1
  804. package/lib/collection-manager/Configuration/EditSubFieldAction.d.ts +2 -1
  805. package/lib/collection-manager/Configuration/EditSubFieldAction.js +1 -1
  806. package/lib/collection-manager/Configuration/OverridingCollectionField.d.ts +3 -2
  807. package/lib/collection-manager/Configuration/OverridingCollectionField.js +1 -1
  808. package/lib/collection-manager/Configuration/SyncFieldsAction.d.ts +3 -2
  809. package/lib/collection-manager/Configuration/SyncFieldsAction.js +1 -1
  810. package/lib/collection-manager/Configuration/ViewInheritedField.d.ts +3 -2
  811. package/lib/collection-manager/Configuration/ViewInheritedField.js +1 -1
  812. package/lib/collection-manager/Configuration/components/CollectionCategory.d.ts +1 -1
  813. package/lib/collection-manager/Configuration/components/CollectionCategory.js +2 -0
  814. package/lib/collection-manager/Configuration/components/CollectionFieldInterface.d.ts +1 -1
  815. package/lib/collection-manager/Configuration/components/CollectionFieldInterface.js +2 -0
  816. package/lib/collection-manager/Configuration/components/CollectionTemplate.d.ts +1 -1
  817. package/lib/collection-manager/Configuration/components/CollectionTemplate.js +2 -0
  818. package/lib/collection-manager/Configuration/components/FieldSummary.d.ts +1 -1
  819. package/lib/collection-manager/Configuration/components/FieldSummary.js +4 -2
  820. package/lib/collection-manager/Configuration/components/TemplateSummay.d.ts +1 -1
  821. package/lib/collection-manager/Configuration/components/TemplateSummay.js +4 -2
  822. package/lib/collection-manager/Configuration/components/index.d.ts +6 -6
  823. package/lib/collection-manager/Configuration/components/index.js +12 -0
  824. package/lib/collection-manager/Configuration/interfaces.d.ts +1 -0
  825. package/lib/collection-manager/Configuration/templates.d.ts +1 -0
  826. package/lib/collection-manager/ResourceActionProvider.d.ts +1 -1
  827. package/lib/collection-manager/action-hooks.d.ts +1 -0
  828. package/lib/collection-manager/action-hooks.js +171 -92
  829. package/lib/collection-manager/hooks/useOptions.js +39 -36
  830. package/lib/collection-manager/index.d.ts +1 -1
  831. package/lib/collection-manager/index.js +7 -0
  832. package/lib/collection-manager/interfaces/components/index.d.ts +7 -6
  833. package/lib/collection-manager/interfaces/index.d.ts +0 -1
  834. package/lib/collection-manager/interfaces/index.js +0 -11
  835. package/lib/collection-manager/interfaces/integer.js +1 -1
  836. package/lib/collection-manager/interfaces/number.js +3 -3
  837. package/lib/collection-manager/interfaces/percent.js +3 -3
  838. package/lib/collection-manager/interfaces/properties/index.d.ts +0 -1
  839. package/lib/collection-manager/interfaces/properties/index.js +1 -42
  840. package/lib/collection-manager/interfaces/url.js +0 -5
  841. package/lib/collection-manager/sub-table.d.ts +2 -2
  842. package/lib/collection-manager/sub-table.js +4 -0
  843. package/lib/collection-manager/templates/components/PreviewFields.d.ts +1 -1
  844. package/lib/collection-manager/templates/components/PreviewFields.js +2 -1
  845. package/lib/collection-manager/templates/components/PreviewTable.d.ts +2 -1
  846. package/lib/collection-manager/types.d.ts +2 -0
  847. package/lib/filter-provider/FilterProvider.d.ts +5 -1
  848. package/lib/filter-provider/FilterProvider.js +9 -4
  849. package/lib/formula/Expression.d.ts +2 -1
  850. package/lib/formula/Expression.js +64 -44
  851. package/lib/formula/Result.d.ts +2 -1
  852. package/lib/formula/index.d.ts +2 -2
  853. package/lib/hooks/index.d.ts +2 -0
  854. package/lib/hooks/index.js +27 -0
  855. package/lib/hooks/useAdminSchemaUid.d.ts +1 -0
  856. package/lib/hooks/useAdminSchemaUid.js +13 -0
  857. package/lib/hooks/useMenuItem.d.ts +37 -0
  858. package/lib/hooks/useMenuItem.js +104 -0
  859. package/lib/hooks/useViewport.d.ts +1 -0
  860. package/lib/hooks/useViewport.js +47 -0
  861. package/lib/i18n/i18n.js +0 -1
  862. package/lib/icon/Icon.d.ts +2 -1
  863. package/lib/index.d.ts +3 -2
  864. package/lib/index.js +33 -22
  865. package/lib/locale/en_US.d.ts +19 -22
  866. package/lib/locale/en_US.js +22 -25
  867. package/lib/locale/es_ES.d.ts +4 -2
  868. package/lib/locale/es_ES.js +5 -3
  869. package/lib/locale/ja_JP.d.ts +19 -20
  870. package/lib/locale/ja_JP.js +20 -21
  871. package/lib/locale/pt_BR.d.ts +3 -1
  872. package/lib/locale/pt_BR.js +4 -2
  873. package/lib/locale/ru_RU.d.ts +3 -19
  874. package/lib/locale/ru_RU.js +4 -20
  875. package/lib/locale/tr_TR.d.ts +0 -17
  876. package/lib/locale/tr_TR.js +0 -17
  877. package/lib/locale/zh_CN.d.ts +28 -25
  878. package/lib/locale/zh_CN.js +29 -26
  879. package/lib/plugin-manager/PinnedPluginListProvider.d.ts +1 -1
  880. package/lib/plugin-manager/index.d.ts +1 -3
  881. package/lib/plugin-manager/index.js +4 -26
  882. package/lib/pm/Card.d.ts +8 -0
  883. package/lib/pm/Card.js +375 -0
  884. package/lib/pm/PluginManagerLink.d.ts +3 -2
  885. package/lib/pm/PluginManagerLink.js +19 -14
  886. package/lib/pm/index.d.ts +33 -3
  887. package/lib/pm/index.js +113 -278
  888. package/lib/powered-by/index.d.ts +2 -1
  889. package/lib/route-switch/RouteSwitch.d.ts +2 -2
  890. package/lib/route-switch/RouteSwitch.js +78 -45
  891. package/lib/route-switch/RouteSwitchProvider.d.ts +3 -3
  892. package/lib/route-switch/antd/admin-layout/index.d.ts +4 -2
  893. package/lib/route-switch/antd/admin-layout/index.js +59 -54
  894. package/lib/route-switch/antd/auth-layout/index.d.ts +2 -2
  895. package/lib/route-switch/antd/auth-layout/index.js +2 -1
  896. package/lib/route-switch/antd/route-schema-component/index.d.ts +2 -2
  897. package/lib/route-switch/antd/route-schema-component/index.js +2 -2
  898. package/lib/route-switch/context.d.ts +4 -0
  899. package/lib/route-switch/context.js +6 -2
  900. package/lib/route-switch/types.d.ts +2 -5
  901. package/lib/schema-component/antd/AntdSchemaComponentProvider.d.ts +2 -1
  902. package/lib/schema-component/antd/action/Action.Container.js +4 -0
  903. package/lib/schema-component/antd/action/Action.Designer.d.ts +2 -1
  904. package/lib/schema-component/antd/action/Action.Designer.js +201 -17
  905. package/lib/schema-component/antd/action/Action.Drawer.js +14 -12
  906. package/lib/schema-component/antd/action/Action.Link.js +3 -1
  907. package/lib/schema-component/antd/action/Action.Modal.js +13 -12
  908. package/lib/schema-component/antd/action/Action.Page.js +8 -2
  909. package/lib/schema-component/antd/action/Action.js +25 -17
  910. package/lib/schema-component/antd/action/ActionBar.d.ts +18 -2
  911. package/lib/schema-component/antd/action/ActionBar.js +50 -21
  912. package/lib/schema-component/antd/action/context.d.ts +8 -2
  913. package/lib/schema-component/antd/action/context.js +19 -3
  914. package/lib/schema-component/antd/action/hooks.d.ts +2 -0
  915. package/lib/schema-component/antd/association-field/AssociationFieldProvider.d.ts +1 -1
  916. package/lib/schema-component/antd/association-field/AssociationFieldProvider.js +56 -6
  917. package/lib/schema-component/antd/association-field/AssociationSelect.js +88 -9
  918. package/lib/schema-component/antd/association-field/Editable.d.ts +1 -1
  919. package/lib/schema-component/antd/association-field/Editable.js +12 -11
  920. package/lib/schema-component/antd/association-field/FileManager.d.ts +1 -1
  921. package/lib/schema-component/antd/association-field/FileManager.js +13 -3
  922. package/lib/schema-component/antd/association-field/InternalNester.d.ts +2 -1
  923. package/lib/schema-component/antd/association-field/InternalNester.js +11 -1
  924. package/lib/schema-component/antd/association-field/InternalPicker.d.ts +1 -1
  925. package/lib/schema-component/antd/association-field/InternalPicker.js +9 -3
  926. package/lib/schema-component/antd/association-field/InternalSubTable.d.ts +2 -1
  927. package/lib/schema-component/antd/association-field/InternalSubTable.js +32 -4
  928. package/lib/schema-component/antd/association-field/InternalViewer.js +9 -2
  929. package/lib/schema-component/antd/association-field/Nester.d.ts +2 -1
  930. package/lib/schema-component/antd/association-field/Nester.js +56 -12
  931. package/lib/schema-component/antd/association-field/ReadPretty.d.ts +1 -1
  932. package/lib/schema-component/antd/association-field/ReadPretty.js +4 -0
  933. package/lib/schema-component/antd/association-field/SubTable.js +53 -12
  934. package/lib/schema-component/antd/association-field/components/CreateRecordAction.d.ts +1 -1
  935. package/lib/schema-component/antd/association-field/components/CreateRecordAction.js +3 -1
  936. package/lib/schema-component/antd/association-field/schema.d.ts +3 -15
  937. package/lib/schema-component/antd/association-field/schema.js +4 -16
  938. package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.d.ts +2 -1
  939. package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +2 -1
  940. package/lib/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +2 -1
  941. package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.d.ts +2 -1
  942. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.d.ts +2 -1
  943. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.d.ts +2 -1
  944. package/lib/schema-component/antd/association-filter/AssociationFilter.d.ts +7 -6
  945. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.d.ts +2 -1
  946. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.d.ts +2 -1
  947. package/lib/schema-component/antd/association-select/ReadPretty.d.ts +1 -1
  948. package/lib/schema-component/antd/association-select/ReadPretty.js +2 -0
  949. package/lib/schema-component/antd/block-item/BlockItem.js +5 -2
  950. package/lib/schema-component/antd/block-item/TestDesigner.d.ts +2 -1
  951. package/lib/schema-component/antd/calendar/Calendar.Designer.d.ts +2 -1
  952. package/lib/schema-component/antd/calendar/Calendar.js +5 -3
  953. package/lib/schema-component/antd/calendar/DeleteEvent.d.ts +1 -1
  954. package/lib/schema-component/antd/calendar/DeleteEvent.js +3 -1
  955. package/lib/schema-component/antd/calendar/Event.d.ts +1 -1
  956. package/lib/schema-component/antd/calendar/Event.js +2 -0
  957. package/lib/schema-component/antd/calendar/Nav.d.ts +1 -1
  958. package/lib/schema-component/antd/calendar/Nav.js +5 -3
  959. package/lib/schema-component/antd/calendar/Title.d.ts +1 -1
  960. package/lib/schema-component/antd/calendar/Title.js +2 -0
  961. package/lib/schema-component/antd/calendar/Today.d.ts +1 -1
  962. package/lib/schema-component/antd/calendar/Today.js +4 -2
  963. package/lib/schema-component/antd/calendar/ViewSelect.d.ts +1 -1
  964. package/lib/schema-component/antd/calendar/ViewSelect.js +3 -0
  965. package/lib/schema-component/antd/calendar/components/Header.d.ts +2 -1
  966. package/lib/schema-component/antd/card-item/CardItem.js +1 -1
  967. package/lib/schema-component/antd/cascader/Cascader.js +8 -1
  968. package/lib/schema-component/antd/checkbox/Checkbox.d.ts +2 -1
  969. package/lib/schema-component/antd/checkbox/Checkbox.js +14 -12
  970. package/lib/schema-component/antd/collection-select/CollectionSelect.js +2 -0
  971. package/lib/schema-component/antd/cron/Cron.d.ts +2 -1
  972. package/lib/schema-component/antd/cron/Cron.js +3 -2
  973. package/lib/schema-component/antd/date-picker/DatePicker.d.ts +4 -2
  974. package/lib/schema-component/antd/date-picker/DatePicker.js +2 -1
  975. package/lib/schema-component/antd/date-picker/ReadPretty.d.ts +1 -1
  976. package/lib/schema-component/antd/date-picker/ReadPretty.js +1 -1
  977. package/lib/schema-component/antd/error-fallback/ErrorFallback.d.ts +2 -1
  978. package/lib/schema-component/antd/expand-action/Expand.Action.Design.d.ts +2 -1
  979. package/lib/schema-component/antd/expand-action/Expand.Action.Design.js +8 -8
  980. package/lib/schema-component/antd/expand-action/Expand.Action.d.ts +2 -1
  981. package/lib/schema-component/antd/expand-action/Expand.Action.js +9 -12
  982. package/lib/schema-component/antd/filter/DynamicComponent.d.ts +2 -1
  983. package/lib/schema-component/antd/filter/Filter.Action.Designer.d.ts +2 -1
  984. package/lib/schema-component/antd/filter/Filter.js +3 -1
  985. package/lib/schema-component/antd/filter/FilterAction.d.ts +1 -1
  986. package/lib/schema-component/antd/filter/FilterAction.js +3 -1
  987. package/lib/schema-component/antd/filter/FilterItem.d.ts +1 -1
  988. package/lib/schema-component/antd/filter/FilterItem.js +46 -41
  989. package/lib/schema-component/antd/filter/FilterItems.d.ts +1 -1
  990. package/lib/schema-component/antd/filter/FilterItems.js +2 -0
  991. package/lib/schema-component/antd/filter/SaveDefaultValue.d.ts +2 -1
  992. package/lib/schema-component/antd/filter/index.d.ts +1 -0
  993. package/lib/schema-component/antd/filter/index.js +11 -0
  994. package/lib/schema-component/antd/filter/useValues.js +5 -3
  995. package/lib/schema-component/antd/form/Form.Designer.d.ts +2 -1
  996. package/lib/schema-component/antd/form/Form.d.ts +1 -1
  997. package/lib/schema-component/antd/form/Form.js +2 -0
  998. package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +2 -1
  999. package/lib/schema-component/antd/form-item/FormItem.js +95 -40
  1000. package/lib/schema-component/antd/form-item/SchemaSettingOptions.d.ts +11 -10
  1001. package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +1 -1
  1002. package/lib/schema-component/antd/form-v2/Form.Designer.d.ts +4 -3
  1003. package/lib/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +2 -1
  1004. package/lib/schema-component/antd/form-v2/Form.js +8 -1
  1005. package/lib/schema-component/antd/form-v2/FormField.js +2 -0
  1006. package/lib/schema-component/antd/form-v2/Templates.d.ts +7 -1
  1007. package/lib/schema-component/antd/form-v2/Templates.js +20 -3
  1008. package/lib/schema-component/antd/form-v2/index.js +3 -1
  1009. package/lib/schema-component/antd/g2plot/G2Plot.js +2 -0
  1010. package/lib/schema-component/antd/g2plot/G2PlotDesigner.d.ts +2 -1
  1011. package/lib/schema-component/antd/gantt/Gantt.Designer.d.ts +2 -1
  1012. package/lib/schema-component/antd/gantt/components/gantt/Event.d.ts +1 -1
  1013. package/lib/schema-component/antd/gantt/components/gantt/Event.js +2 -0
  1014. package/lib/schema-component/antd/gantt/components/gantt/gantt.js +1 -1
  1015. package/lib/schema-component/antd/grid/Block.d.ts +1 -1
  1016. package/lib/schema-component/antd/grid/Block.js +2 -0
  1017. package/lib/schema-component/antd/grid/Grid.js +25 -9
  1018. package/lib/schema-component/antd/grid-card/GridCard.Decorator.d.ts +1 -1
  1019. package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +2 -12
  1020. package/lib/schema-component/antd/grid-card/GridCard.Designer.d.ts +2 -1
  1021. package/lib/schema-component/antd/grid-card/GridCard.Designer.js +5 -6
  1022. package/lib/schema-component/antd/grid-card/GridCard.Item.d.ts +2 -1
  1023. package/lib/schema-component/antd/grid-card/GridCard.d.ts +2 -1
  1024. package/lib/schema-component/antd/grid-card/GridCard.js +11 -7
  1025. package/lib/schema-component/antd/index.d.ts +1 -0
  1026. package/lib/schema-component/antd/index.js +11 -0
  1027. package/lib/schema-component/antd/index.less +18 -4
  1028. package/lib/schema-component/antd/input/Input.d.ts +2 -1
  1029. package/lib/schema-component/antd/input/Input.js +3 -2
  1030. package/lib/schema-component/antd/input/Json.d.ts +2 -2
  1031. package/lib/schema-component/antd/input/Json.js +49 -9
  1032. package/lib/schema-component/antd/input/ReadPretty.d.ts +1 -1
  1033. package/lib/schema-component/antd/input/ReadPretty.js +4 -4
  1034. package/lib/schema-component/antd/input-number/InputNumber.d.ts +5 -1
  1035. package/lib/schema-component/antd/input-number/InputNumber.js +1 -1
  1036. package/lib/schema-component/antd/input-number/ReadPretty.d.ts +2 -2
  1037. package/lib/schema-component/antd/input-number/ReadPretty.js +6 -2
  1038. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +2 -1
  1039. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.d.ts +2 -1
  1040. package/lib/schema-component/antd/kanban/Kanban.Card.js +4 -2
  1041. package/lib/schema-component/antd/kanban/Kanban.CardViewer.js +2 -0
  1042. package/lib/schema-component/antd/kanban/Kanban.Designer.d.ts +2 -1
  1043. package/lib/schema-component/antd/kanban/Kanban.js +3 -1
  1044. package/lib/schema-component/antd/list/List.Decorator.d.ts +1 -1
  1045. package/lib/schema-component/antd/list/List.Decorator.js +8 -13
  1046. package/lib/schema-component/antd/list/List.Designer.d.ts +2 -1
  1047. package/lib/schema-component/antd/list/List.Item.d.ts +2 -1
  1048. package/lib/schema-component/antd/list/List.Item.js +1 -1
  1049. package/lib/schema-component/antd/list/List.d.ts +2 -1
  1050. package/lib/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +2 -1
  1051. package/lib/schema-component/antd/markdown/Markdown.Void.js +2 -0
  1052. package/lib/schema-component/antd/markdown/Markdown.d.ts +2 -0
  1053. package/lib/schema-component/antd/markdown/Markdown.js +9 -4
  1054. package/lib/schema-component/antd/markdown/util.js +1 -1
  1055. package/lib/schema-component/antd/menu/Menu.Designer.d.ts +2 -1
  1056. package/lib/schema-component/antd/menu/Menu.js +334 -175
  1057. package/lib/schema-component/antd/menu/MenuItemInitializers/index.d.ts +2 -1
  1058. package/lib/schema-component/antd/page/FixedBlock.d.ts +2 -1
  1059. package/lib/schema-component/antd/page/FixedBlock.js +6 -2
  1060. package/lib/schema-component/antd/page/Page.d.ts +2 -1
  1061. package/lib/schema-component/antd/page/Page.js +51 -37
  1062. package/lib/schema-component/antd/page/PageTabDesigner.d.ts +3 -2
  1063. package/lib/schema-component/antd/pagination/index.d.ts +1 -1
  1064. package/lib/schema-component/antd/pagination/index.js +2 -0
  1065. package/lib/schema-component/antd/password/Password.d.ts +1 -1
  1066. package/lib/schema-component/antd/password/PasswordStrength.js +2 -145
  1067. package/lib/schema-component/antd/password/utils.d.ts +1 -0
  1068. package/lib/schema-component/antd/password/utils.js +151 -0
  1069. package/lib/schema-component/antd/percent/Percent.js +2 -2
  1070. package/lib/schema-component/antd/preview/Preview.d.ts +1 -1
  1071. package/lib/schema-component/antd/quick-edit/QuickEdit.d.ts +3 -0
  1072. package/lib/schema-component/antd/quick-edit/QuickEdit.js +98 -0
  1073. package/lib/schema-component/antd/quick-edit/index.d.ts +1 -0
  1074. package/lib/{settings-form → schema-component/antd/quick-edit}/index.js +4 -4
  1075. package/lib/schema-component/antd/radio/Radio.d.ts +1 -1
  1076. package/lib/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -1
  1077. package/lib/schema-component/antd/record-picker/InputRecordPicker.js +4 -6
  1078. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +9 -4
  1079. package/lib/schema-component/antd/remote-select/ReadPretty.d.ts +1 -1
  1080. package/lib/schema-component/antd/remote-select/ReadPretty.js +2 -0
  1081. package/lib/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  1082. package/lib/schema-component/antd/remote-select/RemoteSelect.js +108 -30
  1083. package/lib/schema-component/antd/remote-select/utils.d.ts +4 -0
  1084. package/lib/schema-component/antd/remote-select/utils.js +41 -0
  1085. package/lib/schema-component/antd/select/ReadPretty.d.ts +1 -1
  1086. package/lib/schema-component/antd/select/ReadPretty.js +7 -7
  1087. package/lib/schema-component/antd/select/Select.d.ts +3 -0
  1088. package/lib/schema-component/antd/select/Select.js +23 -12
  1089. package/lib/schema-component/antd/select/index.d.ts +1 -1
  1090. package/lib/schema-component/antd/select/index.js +4 -4
  1091. package/lib/schema-component/antd/select/utils.d.ts +14 -0
  1092. package/lib/schema-component/antd/select/{shared.js → utils.js} +22 -20
  1093. package/lib/schema-component/antd/table/Table.Array.Designer.d.ts +2 -1
  1094. package/lib/schema-component/antd/table/Table.Array.d.ts +5 -5
  1095. package/lib/schema-component/antd/table/Table.Array.js +7 -5
  1096. package/lib/schema-component/antd/table/Table.Column.ActionBar.d.ts +1 -1
  1097. package/lib/schema-component/antd/table/Table.Column.ActionBar.js +2 -0
  1098. package/lib/schema-component/antd/table/Table.Column.Decorator.d.ts +2 -1
  1099. package/lib/schema-component/antd/table/Table.Column.Designer.d.ts +2 -1
  1100. package/lib/schema-component/antd/table/Table.Column.d.ts +2 -1
  1101. package/lib/schema-component/antd/table/Table.Designer.d.ts +2 -1
  1102. package/lib/schema-component/antd/table/Table.RowActionDesigner.d.ts +2 -1
  1103. package/lib/schema-component/antd/table/Table.RowSelection.d.ts +1 -1
  1104. package/lib/schema-component/antd/table/Table.RowSelection.js +2 -0
  1105. package/lib/schema-component/antd/table/Table.Void.Designer.d.ts +2 -1
  1106. package/lib/schema-component/antd/table/Table.Void.d.ts +1 -1
  1107. package/lib/schema-component/antd/table/Table.Void.js +2 -0
  1108. package/lib/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -2
  1109. package/lib/schema-component/antd/table-v2/FilterDynamicComponent.js +17 -2
  1110. package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +2 -1
  1111. package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +1 -1
  1112. package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.js +2 -0
  1113. package/lib/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +2 -1
  1114. package/lib/schema-component/antd/table-v2/Table.Column.Designer.d.ts +2 -1
  1115. package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +146 -9
  1116. package/lib/schema-component/antd/table-v2/Table.Column.d.ts +2 -1
  1117. package/lib/schema-component/antd/table-v2/Table.Designer.d.ts +2 -1
  1118. package/lib/schema-component/antd/table-v2/Table.Index.d.ts +2 -1
  1119. package/lib/schema-component/antd/table-v2/Table.js +61 -28
  1120. package/lib/schema-component/antd/table-v2/TableBlockDesigner.d.ts +2 -1
  1121. package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +54 -47
  1122. package/lib/schema-component/antd/table-v2/TableField.js +4 -0
  1123. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +2 -1
  1124. package/lib/schema-component/antd/table-v2/index.d.ts +1 -0
  1125. package/lib/schema-component/antd/table-v2/index.js +12 -0
  1126. package/lib/schema-component/antd/table-v2/utils.js +1 -1
  1127. package/lib/schema-component/antd/tabs/Tabs.Designer.d.ts +2 -1
  1128. package/lib/schema-component/antd/tabs/Tabs.js +51 -18
  1129. package/lib/schema-component/antd/tabs/context.d.ts +8 -0
  1130. package/lib/schema-component/antd/tabs/context.js +24 -0
  1131. package/lib/schema-component/antd/tabs/index.d.ts +1 -0
  1132. package/lib/schema-component/antd/tabs/index.js +11 -0
  1133. package/lib/schema-component/antd/time-picker/ReadPretty.d.ts +1 -1
  1134. package/lib/schema-component/antd/time-picker/ReadPretty.js +1 -1
  1135. package/lib/schema-component/antd/time-picker/TimePicker.d.ts +1 -1
  1136. package/lib/schema-component/antd/time-picker/TimePicker.js +1 -1
  1137. package/lib/schema-component/antd/tree-select/ReadPretty.d.ts +1 -1
  1138. package/lib/schema-component/antd/tree-select/ReadPretty.js +3 -1
  1139. package/lib/schema-component/antd/upload/ReadPretty.js +7 -3
  1140. package/lib/schema-component/antd/upload/Upload.js +1 -1
  1141. package/lib/schema-component/antd/upload/shared.d.ts +3 -3
  1142. package/lib/schema-component/antd/upload/style.less +1 -2
  1143. package/lib/schema-component/antd/upload/type.d.ts +2 -2
  1144. package/lib/schema-component/antd/variable/Input.d.ts +2 -2
  1145. package/lib/schema-component/antd/variable/Input.js +183 -31
  1146. package/lib/schema-component/antd/variable/JSONInput.d.ts +2 -2
  1147. package/lib/schema-component/antd/variable/JSONInput.js +2 -23
  1148. package/lib/schema-component/antd/variable/TextArea.d.ts +2 -2
  1149. package/lib/schema-component/antd/variable/VariableSelect.d.ts +2 -2
  1150. package/lib/schema-component/antd/variable/VariableSelect.js +1 -1
  1151. package/lib/schema-component/common/dnd-context/index.d.ts +1 -1
  1152. package/lib/schema-component/common/dnd-context/index.js +11 -4
  1153. package/lib/schema-component/common/sortable-item/SortableItem.d.ts +11 -4
  1154. package/lib/schema-component/common/sortable-item/SortableItem.js +16 -5
  1155. package/lib/schema-component/common/utils/logic.js +64 -2
  1156. package/lib/schema-component/common/utils/uitls.d.ts +1 -0
  1157. package/lib/schema-component/common/utils/uitls.js +50 -14
  1158. package/lib/schema-component/core/DesignableSwitch.d.ts +2 -1
  1159. package/lib/schema-component/core/SchemaComponent.d.ts +2 -1
  1160. package/lib/schema-component/core/SchemaComponentOptions.js +12 -7
  1161. package/lib/schema-component/core/SchemaComponentProvider.js +17 -6
  1162. package/lib/schema-component/hooks/useCompile.js +32 -4
  1163. package/lib/schema-component/hooks/useDesignable.d.ts +5 -4
  1164. package/lib/schema-component/hooks/useDesignable.js +30 -28
  1165. package/lib/schema-component/hooks/useFieldModeOptions.js +44 -20
  1166. package/lib/schema-component/hooks/useProps.d.ts +1 -10
  1167. package/lib/schema-component/hooks/useProps.js +20 -6
  1168. package/lib/schema-initializer/SchemaInitializer.d.ts +18 -4
  1169. package/lib/schema-initializer/SchemaInitializer.js +275 -96
  1170. package/lib/schema-initializer/SchemaInitializerProvider.d.ts +3 -3
  1171. package/lib/schema-initializer/SelectCollection.d.ts +3 -3
  1172. package/lib/schema-initializer/SelectCollection.js +22 -17
  1173. package/lib/schema-initializer/buttons/BlockInitializers.d.ts +2 -0
  1174. package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +2 -1
  1175. package/lib/schema-initializer/buttons/CreateFormBlockInitializers.d.ts +2 -1
  1176. package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +2 -1
  1177. package/lib/schema-initializer/buttons/CustomFormItemInitializers.d.ts +2 -1
  1178. package/lib/schema-initializer/buttons/DetailsActionInitializers.d.ts +14 -0
  1179. package/lib/schema-initializer/buttons/DetailsActionInitializers.js +12 -0
  1180. package/lib/schema-initializer/buttons/FormItemInitializers.d.ts +3 -2
  1181. package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +16 -0
  1182. package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +21 -16
  1183. package/lib/schema-initializer/buttons/ReadPrettyFormItemInitializers.d.ts +2 -1
  1184. package/lib/schema-initializer/buttons/RecordBlockInitializers.d.ts +2 -1
  1185. package/lib/schema-initializer/buttons/RecordFormBlockInitializers.d.ts +2 -1
  1186. package/lib/schema-initializer/buttons/TabPaneInitializers.d.ts +4 -3
  1187. package/lib/schema-initializer/buttons/TabPaneInitializers.js +3 -3
  1188. package/lib/schema-initializer/buttons/TableActionColumnInitializers.d.ts +3 -2
  1189. package/lib/schema-initializer/buttons/TableActionColumnInitializers.js +13 -4
  1190. package/lib/schema-initializer/buttons/TableActionInitializers.js +5 -5
  1191. package/lib/schema-initializer/buttons/TableColumnInitializers.d.ts +2 -1
  1192. package/lib/schema-initializer/buttons/TableColumnInitializers.js +17 -9
  1193. package/lib/schema-initializer/buttons/TableSelectorInitializers.d.ts +2 -1
  1194. package/lib/schema-initializer/components/BulkEditField.d.ts +2 -1
  1195. package/lib/schema-initializer/components/CreateRecordAction.d.ts +2 -2
  1196. package/lib/schema-initializer/components/CreateRecordAction.js +40 -26
  1197. package/lib/schema-initializer/components/DeletedField.d.ts +2 -1
  1198. package/lib/schema-initializer/components/DuplicateAction.d.ts +3 -0
  1199. package/lib/schema-initializer/components/DuplicateAction.js +174 -0
  1200. package/lib/schema-initializer/components/assigned-field/AssignedField.d.ts +2 -1
  1201. package/lib/schema-initializer/components/assigned-field/AssignedField.js +3 -2
  1202. package/lib/schema-initializer/components/index.d.ts +1 -0
  1203. package/lib/schema-initializer/components/index.js +11 -0
  1204. package/lib/schema-initializer/index.d.ts +1 -1
  1205. package/lib/schema-initializer/index.js +7 -0
  1206. package/lib/schema-initializer/items/ActionInitializer.d.ts +2 -1
  1207. package/lib/schema-initializer/items/BlockInitializer.d.ts +2 -1
  1208. package/lib/schema-initializer/items/BulkDestroyActionInitializer.d.ts +2 -1
  1209. package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +2 -1
  1210. package/lib/schema-initializer/items/CalendarBlockInitializer.d.ts +2 -1
  1211. package/lib/schema-initializer/items/CalendarBlockInitializer.js +9 -9
  1212. package/lib/schema-initializer/items/CollectionFieldInitializer.d.ts +2 -1
  1213. package/lib/schema-initializer/items/CreateActionInitializer.d.ts +2 -1
  1214. package/lib/schema-initializer/items/CreateChildInitializer.d.ts +2 -1
  1215. package/lib/schema-initializer/items/CreateFilterActionInitializer.d.ts +2 -1
  1216. package/lib/schema-initializer/items/CreateFormBlockInitializer.d.ts +2 -1
  1217. package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +2 -1
  1218. package/lib/schema-initializer/items/CreateResetActionInitializer.d.ts +2 -1
  1219. package/lib/schema-initializer/items/CreateSubmitActionInitializer.d.ts +2 -1
  1220. package/lib/schema-initializer/items/CustomizeActionInitializer.d.ts +2 -1
  1221. package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +2 -1
  1222. package/lib/schema-initializer/items/DataBlockInitializer.d.ts +2 -1
  1223. package/lib/schema-initializer/items/DeleteEventActionInitializer.d.ts +2 -1
  1224. package/lib/schema-initializer/items/DestroyActionInitializer.d.ts +2 -1
  1225. package/lib/schema-initializer/items/DetailsBlockInitializer.d.ts +2 -1
  1226. package/lib/schema-initializer/items/DuplicateActionInitializer.d.ts +2 -0
  1227. package/lib/schema-initializer/items/DuplicateActionInitializer.js +69 -0
  1228. package/lib/schema-initializer/items/ExpandActionInitializer.d.ts +2 -1
  1229. package/lib/schema-initializer/items/ExpandActionInitializer.js +3 -3
  1230. package/lib/schema-initializer/items/FilterActionInitializer.d.ts +2 -1
  1231. package/lib/schema-initializer/items/FilterBlockInitializer.d.ts +2 -1
  1232. package/lib/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +2 -1
  1233. package/lib/schema-initializer/items/FilterFormBlockInitializer.d.ts +2 -1
  1234. package/lib/schema-initializer/items/FormBlockInitializer.d.ts +2 -1
  1235. package/lib/schema-initializer/items/G2PlotInitializer.d.ts +2 -1
  1236. package/lib/schema-initializer/items/GanttBlockInitializer.d.ts +2 -1
  1237. package/lib/schema-initializer/items/GridCardBlockInitializer.d.ts +2 -1
  1238. package/lib/schema-initializer/items/InitializerWithSwitch.d.ts +2 -1
  1239. package/lib/schema-initializer/items/KanbanBlockInitializer.d.ts +2 -1
  1240. package/lib/schema-initializer/items/ListBlockInitializer.d.ts +2 -1
  1241. package/lib/schema-initializer/items/MarkdownBlockInitializer.d.ts +2 -1
  1242. package/lib/schema-initializer/items/PrintActionInitializer.d.ts +2 -1
  1243. package/lib/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +2 -1
  1244. package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +2 -1
  1245. package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +2 -1
  1246. package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +2 -1
  1247. package/lib/schema-initializer/items/RecordFormBlockInitializer.d.ts +2 -1
  1248. package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +2 -1
  1249. package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +2 -1
  1250. package/lib/schema-initializer/items/RefreshActionInitializer.d.ts +2 -1
  1251. package/lib/schema-initializer/items/SelectActionInitializer.d.ts +2 -1
  1252. package/lib/schema-initializer/items/SubmitActionInitializer.d.ts +2 -1
  1253. package/lib/schema-initializer/items/TableActionColumnInitializer.d.ts +2 -1
  1254. package/lib/schema-initializer/items/TableBlockInitializer.d.ts +2 -1
  1255. package/lib/schema-initializer/items/TableCollectionFieldInitializer.d.ts +2 -1
  1256. package/lib/schema-initializer/items/TableSelectorInitializer.d.ts +2 -1
  1257. package/lib/schema-initializer/items/UpdateActionInitializer.d.ts +2 -1
  1258. package/lib/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +2 -1
  1259. package/lib/schema-initializer/items/ViewActionInitializer.d.ts +2 -1
  1260. package/lib/schema-initializer/items/index.d.ts +1 -0
  1261. package/lib/schema-initializer/items/index.js +11 -0
  1262. package/lib/schema-initializer/utils.d.ts +13 -1
  1263. package/lib/schema-initializer/utils.js +111 -68
  1264. package/lib/schema-items/GeneralSchemaItems.js +5 -3
  1265. package/lib/schema-items/OpenModeSchemaItems.js +14 -10
  1266. package/lib/schema-settings/DataTemplates/FormDataTemplates.d.ts +1 -1
  1267. package/lib/schema-settings/DataTemplates/FormDataTemplates.js +8 -6
  1268. package/lib/schema-settings/DataTemplates/TreeLabel.d.ts +2 -1
  1269. package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +2 -0
  1270. package/lib/schema-settings/DataTemplates/components/Designer.d.ts +1 -1
  1271. package/lib/schema-settings/DataTemplates/components/Designer.js +2 -0
  1272. package/lib/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +3 -3
  1273. package/lib/schema-settings/DataTemplates/hooks/useCollectionState.js +38 -58
  1274. package/lib/schema-settings/EnableChildCollections/index.d.ts +1 -1
  1275. package/lib/schema-settings/EnableChildCollections/index.js +2 -0
  1276. package/lib/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  1277. package/lib/schema-settings/GeneralSchemaDesigner.js +3 -2
  1278. package/lib/schema-settings/LinkageRules/DynamicComponent.d.ts +2 -1
  1279. package/lib/schema-settings/LinkageRules/FilterDynamicComponent.d.ts +1 -1
  1280. package/lib/schema-settings/LinkageRules/LinkageRuleAction.d.ts +2 -2
  1281. package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +14 -10
  1282. package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.d.ts +2 -2
  1283. package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.js +2 -0
  1284. package/lib/schema-settings/LinkageRules/ValueDynamicComponent.d.ts +2 -1
  1285. package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +2 -0
  1286. package/lib/schema-settings/LinkageRules/index.d.ts +1 -1
  1287. package/lib/schema-settings/LinkageRules/index.js +3 -1
  1288. package/lib/schema-settings/SchemaSettings.d.ts +2 -1
  1289. package/lib/schema-settings/SchemaSettings.js +148 -60
  1290. package/lib/schema-settings/VariableInput/VariableInput.d.ts +1 -1
  1291. package/lib/schema-settings/VariableInput/VariableInput.js +1 -1
  1292. package/lib/schema-settings/VariableInput/hooks/useDateVariable.d.ts +12 -1
  1293. package/lib/schema-settings/VariableInput/hooks/useDateVariable.js +41 -36
  1294. package/lib/schema-settings/VariableInput/hooks/useFormVariable.d.ts +19 -0
  1295. package/lib/schema-settings/VariableInput/hooks/useFormVariable.js +96 -0
  1296. package/lib/schema-settings/VariableInput/hooks/useIterationVariable.d.ts +8 -0
  1297. package/lib/schema-settings/VariableInput/hooks/useIterationVariable.js +84 -0
  1298. package/lib/schema-settings/VariableInput/hooks/useUserVariable.d.ts +4 -4
  1299. package/lib/schema-settings/VariableInput/hooks/useUserVariable.js +66 -42
  1300. package/lib/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +5 -1
  1301. package/lib/schema-settings/VariableInput/hooks/useVariableOptions.js +23 -3
  1302. package/lib/schema-settings/VariableInput/type.d.ts +28 -0
  1303. package/lib/schema-settings/VariableInput/type.js +5 -0
  1304. package/lib/schema-settings/hooks/useIsShowMultipleSwitch.js +3 -2
  1305. package/lib/schema-templates/BlockTemplate.d.ts +1 -1
  1306. package/lib/schema-templates/BlockTemplate.js +4 -1
  1307. package/lib/schema-templates/BlockTemplateDetails.d.ts +2 -1
  1308. package/lib/schema-templates/BlockTemplateDetails.js +10 -6
  1309. package/lib/schema-templates/BlockTemplatePage.d.ts +3 -2
  1310. package/lib/schema-templates/BlockTemplatePage.js +5 -2
  1311. package/lib/schema-templates/SchemaTemplateManagerProvider.d.ts +5 -2
  1312. package/lib/schema-templates/SchemaTemplateManagerProvider.js +7 -0
  1313. package/lib/schema-templates/index.d.ts +0 -1
  1314. package/lib/schema-templates/index.js +0 -11
  1315. package/lib/system-settings/SystemSettingsProvider.d.ts +5 -3
  1316. package/lib/system-settings/SystemSettingsShortcut.d.ts +2 -3
  1317. package/lib/system-settings/SystemSettingsShortcut.js +33 -85
  1318. package/lib/test/collections.d.ts +1487 -0
  1319. package/lib/test/collections.js +1444 -0
  1320. package/lib/test/index.d.ts +3 -0
  1321. package/lib/test/index.js +36 -0
  1322. package/lib/test/mainCollections.d.ts +11359 -0
  1323. package/lib/test/mainCollections.js +3 -0
  1324. package/lib/test/mockAPIClient.d.ts +6 -0
  1325. package/lib/test/mockAPIClient.js +18 -0
  1326. package/lib/user/ChangePassword.d.ts +1 -1
  1327. package/lib/user/ChangePassword.js +30 -26
  1328. package/lib/user/CurrentUser.d.ts +7 -1
  1329. package/lib/user/CurrentUser.js +122 -83
  1330. package/lib/user/CurrentUserProvider.d.ts +1 -1
  1331. package/lib/user/CurrentUserProvider.js +3 -2
  1332. package/lib/user/EditProfile.d.ts +1 -1
  1333. package/lib/user/EditProfile.js +31 -25
  1334. package/lib/user/LanguageSettings.d.ts +1 -1
  1335. package/lib/user/LanguageSettings.js +66 -63
  1336. package/lib/user/SigninPage.d.ts +2 -1
  1337. package/lib/user/SigninPage.js +39 -28
  1338. package/lib/user/SigninPageExtension.d.ts +1 -1
  1339. package/lib/user/SignupPage.d.ts +2 -1
  1340. package/lib/user/SignupPage.js +4 -3
  1341. package/lib/user/SwitchRole.d.ts +1 -1
  1342. package/lib/user/SwitchRole.js +57 -53
  1343. package/lib/user/ThemeSettings.d.ts +1 -1
  1344. package/lib/user/ThemeSettings.js +59 -54
  1345. package/lib/user/VerificationCode.d.ts +2 -2
  1346. package/lib/user/index.d.ts +0 -3
  1347. package/lib/user/index.js +0 -33
  1348. package/package.json +16 -15
  1349. package/tsconfig.json +2 -0
  1350. package/.umirc.ts +0 -24
  1351. package/develop.md +0 -5
  1352. package/es/collection-manager/interfaces/attachment.d.ts +0 -2
  1353. package/es/collection-manager/interfaces/attachment.js +0 -98
  1354. package/es/plugin-manager/PluginManager.d.ts +0 -23
  1355. package/es/plugin-manager/PluginManager.js +0 -166
  1356. package/es/plugin-manager/PluginManagerProvider.d.ts +0 -2
  1357. package/es/plugin-manager/PluginManagerProvider.js +0 -11
  1358. package/es/schema-component/antd/select/shared.d.ts +0 -7
  1359. package/es/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +0 -22
  1360. package/es/schema-component/antd/table-v2/hooks/useUserVariable.js +0 -65
  1361. package/es/schema-templates/SchemaTemplateShortcut.d.ts +0 -1
  1362. package/es/schema-templates/SchemaTemplateShortcut.js +0 -17
  1363. package/es/settings-form/SettingsForm.d.ts +0 -13
  1364. package/es/settings-form/index.d.ts +0 -1
  1365. package/es/settings-form/index.js +0 -1
  1366. package/lib/collection-manager/interfaces/attachment.d.ts +0 -2
  1367. package/lib/collection-manager/interfaces/attachment.js +0 -105
  1368. package/lib/plugin-manager/PluginManager.d.ts +0 -23
  1369. package/lib/plugin-manager/PluginManager.js +0 -178
  1370. package/lib/plugin-manager/PluginManagerProvider.d.ts +0 -2
  1371. package/lib/plugin-manager/PluginManagerProvider.js +0 -19
  1372. package/lib/schema-component/antd/select/shared.d.ts +0 -7
  1373. package/lib/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +0 -22
  1374. package/lib/schema-component/antd/table-v2/hooks/useUserVariable.js +0 -73
  1375. package/lib/schema-templates/SchemaTemplateShortcut.d.ts +0 -1
  1376. package/lib/schema-templates/SchemaTemplateShortcut.js +0 -25
  1377. package/lib/settings-form/SettingsForm.d.ts +0 -13
  1378. package/lib/settings-form/index.d.ts +0 -1
@@ -0,0 +1,6 @@
1
+ import MockAdapter from 'axios-mock-adapter';
2
+ import { APIClient } from '../api-client';
3
+ export declare const mockAPIClient: () => {
4
+ apiClient: APIClient;
5
+ mockRequest: MockAdapter;
6
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mockAPIClient = void 0;
7
+ var _axiosMockAdapter = _interopRequireDefault(require("axios-mock-adapter"));
8
+ var _apiClient = require("../api-client");
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ var mockAPIClient = function mockAPIClient() {
11
+ var apiClient = new _apiClient.APIClient();
12
+ var mockRequest = new _axiosMockAdapter.default(apiClient.axios);
13
+ return {
14
+ apiClient: apiClient,
15
+ mockRequest: mockRequest
16
+ };
17
+ };
18
+ exports.mockAPIClient = mockAPIClient;
@@ -1 +1 @@
1
- export declare const ChangePassword: () => JSX.Element;
1
+ export declare const useChangePassword: () => import("antd/lib/menu/hooks/useItems").ItemType;
@@ -4,15 +4,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.ChangePassword = void 0;
7
+ exports.useChangePassword = void 0;
8
8
  var _react = require("@formily/react");
9
9
  var _shared = require("@formily/shared");
10
- var _antd = require("antd");
11
10
  var _react2 = _interopRequireWildcard(require("react"));
12
11
  var _reactI18next = require("react-i18next");
13
12
  var _ = require("../");
14
13
  var _apiClient = require("../api-client");
15
- var _CurrentUser = require("./CurrentUser");
16
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); }
17
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; }
18
16
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -159,33 +157,39 @@ var schema = {
159
157
  }
160
158
  })
161
159
  };
162
- var ChangePassword = function ChangePassword() {
160
+ var useChangePassword = function useChangePassword() {
161
+ var ctx = (0, _react2.useContext)(_.DropdownVisibleContext);
163
162
  var _useState = (0, _react2.useState)(false),
164
163
  _useState2 = _slicedToArray(_useState, 2),
165
164
  visible = _useState2[0],
166
165
  setVisible = _useState2[1];
167
166
  var _useTranslation = (0, _reactI18next.useTranslation)(),
168
167
  t = _useTranslation.t;
169
- var ctx = (0, _react2.useContext)(_CurrentUser.DropdownVisibleContext);
170
- return /*#__PURE__*/_react2.default.createElement(_.ActionContext.Provider, {
171
- value: {
172
- visible: visible,
173
- setVisible: setVisible
174
- }
175
- }, /*#__PURE__*/_react2.default.createElement(_antd.Menu.Item, {
176
- key: "password",
177
- eventKey: 'ChangePassword',
178
- onClick: function onClick() {
179
- var _ctx$setVisible;
180
- ctx === null || ctx === void 0 ? void 0 : (_ctx$setVisible = ctx.setVisible) === null || _ctx$setVisible === void 0 ? void 0 : _ctx$setVisible.call(ctx, false);
181
- setVisible(true);
182
- }
183
- }, t('Change password')), /*#__PURE__*/_react2.default.createElement(_.SchemaComponent, {
184
- scope: {
185
- useCloseAction: useCloseAction,
186
- useSaveCurrentUserValues: useSaveCurrentUserValues
187
- },
188
- schema: schema
189
- }));
168
+ return (0, _react2.useMemo)(function () {
169
+ return {
170
+ key: 'password',
171
+ eventKey: 'ChangePassword',
172
+ onClick: function onClick() {
173
+ setVisible(true);
174
+ ctx === null || ctx === void 0 ? void 0 : ctx.setVisible(false);
175
+ },
176
+ label: /*#__PURE__*/_react2.default.createElement(_react2.default.Fragment, null, t('Change password'), /*#__PURE__*/_react2.default.createElement(_.ActionContextProvider, {
177
+ value: {
178
+ visible: visible,
179
+ setVisible: setVisible
180
+ }
181
+ }, /*#__PURE__*/_react2.default.createElement("div", {
182
+ onClick: function onClick(e) {
183
+ return e.stopPropagation();
184
+ }
185
+ }, /*#__PURE__*/_react2.default.createElement(_.SchemaComponent, {
186
+ scope: {
187
+ useCloseAction: useCloseAction,
188
+ useSaveCurrentUserValues: useSaveCurrentUserValues
189
+ },
190
+ schema: schema
191
+ }))))
192
+ };
193
+ }, [visible]);
190
194
  };
191
- exports.ChangePassword = ChangePassword;
195
+ exports.useChangePassword = useChangePassword;
@@ -1,3 +1,9 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @note If you want to change here, Note the Setting block on the mobile side
4
+ */
5
+ export declare const SettingsMenu: React.FC<{
6
+ redirectUrl?: string;
7
+ }>;
2
8
  export declare const DropdownVisibleContext: React.Context<any>;
3
- export declare const CurrentUser: () => JSX.Element;
9
+ export declare const CurrentUser: () => React.JSX.Element;
@@ -4,8 +4,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.DropdownVisibleContext = exports.CurrentUser = void 0;
7
+ exports.SettingsMenu = exports.DropdownVisibleContext = exports.CurrentUser = void 0;
8
8
  var _css = require("@emotion/css");
9
+ var _client = require("@nocobase/utils/client");
9
10
  var _antd = require("antd");
10
11
  var _react = _interopRequireWildcard(require("react"));
11
12
  var _reactI18next = require("react-i18next");
@@ -21,91 +22,91 @@ var _templateObject;
21
22
  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); }
22
23
  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; }
23
24
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
24
- 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; }
25
- 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); } }
26
- 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); }); }; }
27
25
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
28
26
  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."); }
29
- 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); }
30
- 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; }
31
27
  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; } }
32
28
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33
- var ApplicationVersion = function ApplicationVersion() {
34
- var _data$data;
29
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
30
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31
+ 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); }
32
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
33
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
34
+ 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; }
35
+ 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; }
36
+ 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); } }
37
+ 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); }); }; }
38
+ var useApplicationVersion = function useApplicationVersion() {
39
+ var _data$data2;
35
40
  var data = (0, _CurrentAppInfoProvider.useCurrentAppInfo)();
36
- return /*#__PURE__*/_react.default.createElement(_antd.Menu.Item, {
37
- key: "version",
38
- disabled: true
39
- }, "Version ", data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.version);
41
+ return (0, _react.useMemo)(function () {
42
+ var _data$data;
43
+ return {
44
+ key: 'version',
45
+ disabled: true,
46
+ label: "Version ".concat(data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.version)
47
+ };
48
+ }, [data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.version]);
40
49
  };
41
- var DropdownVisibleContext = /*#__PURE__*/(0, _react.createContext)(null);
42
- exports.DropdownVisibleContext = DropdownVisibleContext;
43
- var CurrentUser = function CurrentUser() {
44
- var _data$data2, _data$data3;
45
- var history = (0, _reactRouterDom.useHistory)();
46
- var api = (0, _.useAPIClient)();
47
- var _useTranslation = (0, _reactI18next.useTranslation)(),
48
- t = _useTranslation.t;
49
- var _useState = (0, _react.useState)(false),
50
- _useState2 = _slicedToArray(_useState, 2),
51
- visible = _useState2[0],
52
- setVisible = _useState2[1];
53
- var _useCurrentUserContex = (0, _.useCurrentUserContext)(),
54
- data = _useCurrentUserContex.data;
50
+ /**
51
+ * @note If you want to change here, Note the Setting block on the mobile side
52
+ */
53
+ var SettingsMenu = function SettingsMenu(props) {
54
+ var _props$redirectUrl = props.redirectUrl,
55
+ redirectUrl = _props$redirectUrl === void 0 ? '' : _props$redirectUrl;
55
56
  var _useACLRoleContext = (0, _.useACLRoleContext)(),
56
57
  allowAll = _useACLRoleContext.allowAll,
57
58
  snippets = _useACLRoleContext.snippets;
58
59
  var appAllowed = allowAll || (snippets === null || snippets === void 0 ? void 0 : snippets.includes('app'));
60
+ var navigate = (0, _reactRouterDom.useNavigate)();
61
+ var api = (0, _.useAPIClient)();
62
+ var _useTranslation = (0, _reactI18next.useTranslation)(),
63
+ t = _useTranslation.t;
59
64
  var silenceApi = (0, _.useAPIClient)();
60
- var check = /*#__PURE__*/function () {
61
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
62
- return _regeneratorRuntime().wrap(function _callee$(_context) {
63
- while (1) switch (_context.prev = _context.next) {
64
- case 0:
65
- _context.next = 2;
66
- return new Promise(function (resolve) {
67
- var heartbeat = setInterval(function () {
68
- silenceApi.silent().resource('app').getInfo().then(function (res) {
69
- console.log(res);
70
- if ((res === null || res === void 0 ? void 0 : res.status) === 200) {
71
- resolve('ok');
72
- clearInterval(heartbeat);
73
- }
74
- return res;
75
- }).catch(function () {
76
- // ignore
77
- });
78
- }, 3000);
79
- });
80
- case 2:
81
- return _context.abrupt("return", _context.sent);
82
- case 3:
83
- case "end":
84
- return _context.stop();
85
- }
86
- }, _callee);
87
- }));
88
- return function check() {
89
- return _ref.apply(this, arguments);
65
+ var check = (0, _react.useCallback)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
66
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
67
+ while (1) switch (_context.prev = _context.next) {
68
+ case 0:
69
+ _context.next = 2;
70
+ return new Promise(function (resolve) {
71
+ var heartbeat = setInterval(function () {
72
+ silenceApi.silent().resource('app').getInfo().then(function (res) {
73
+ console.log(res);
74
+ if ((res === null || res === void 0 ? void 0 : res.status) === 200) {
75
+ resolve('ok');
76
+ clearInterval(heartbeat);
77
+ }
78
+ return res;
79
+ }).catch(function (err) {
80
+ (0, _client.error)(err);
81
+ });
82
+ }, 3000);
83
+ });
84
+ case 2:
85
+ return _context.abrupt("return", _context.sent);
86
+ case 3:
87
+ case "end":
88
+ return _context.stop();
89
+ }
90
+ }, _callee);
91
+ })), [silenceApi]);
92
+ var divider = (0, _react.useMemo)(function () {
93
+ return {
94
+ type: 'divider'
90
95
  };
91
- }();
92
- return /*#__PURE__*/_react.default.createElement("div", {
93
- style: {
94
- display: 'inline-flex',
95
- verticalAlign: 'top'
96
+ }, []);
97
+ var appVersion = useApplicationVersion();
98
+ var editProfile = (0, _EditProfile.useEditProfile)();
99
+ var changePassword = (0, _ChangePassword.useChangePassword)();
100
+ var switchRole = (0, _SwitchRole.useSwitchRole)();
101
+ var languageSettings = (0, _LanguageSettings.useLanguageSettings)();
102
+ var themeSettings = (0, _ThemeSettings.useThemeSettings)();
103
+ var controlApp = (0, _react.useMemo)(function () {
104
+ if (!appAllowed) {
105
+ return [];
96
106
  }
97
- }, /*#__PURE__*/_react.default.createElement(DropdownVisibleContext.Provider, {
98
- value: {
99
- visible: visible,
100
- setVisible: setVisible
101
- }
102
- }, /*#__PURE__*/_react.default.createElement(_antd.Dropdown, {
103
- open: visible,
104
- onOpenChange: function onOpenChange(visible) {
105
- setVisible(visible);
106
- },
107
- overlay: /*#__PURE__*/_react.default.createElement(_antd.Menu, null, /*#__PURE__*/_react.default.createElement(ApplicationVersion, null), /*#__PURE__*/_react.default.createElement(_antd.Menu.Divider, null), /*#__PURE__*/_react.default.createElement(_EditProfile.EditProfile, null), /*#__PURE__*/_react.default.createElement(_ChangePassword.ChangePassword, null), /*#__PURE__*/_react.default.createElement(_antd.Menu.Divider, null), /*#__PURE__*/_react.default.createElement(_SwitchRole.SwitchRole, null), /*#__PURE__*/_react.default.createElement(_LanguageSettings.LanguageSettings, null), /*#__PURE__*/_react.default.createElement(_ThemeSettings.ThemeSettings, null), /*#__PURE__*/_react.default.createElement(_antd.Menu.Divider, null), appAllowed && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_antd.Menu.Item, {
108
- key: "cache",
107
+ return [{
108
+ key: 'cache',
109
+ label: t('Clear cache'),
109
110
  onClick: function () {
110
111
  var _onClick = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
111
112
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -126,8 +127,9 @@ var CurrentUser = function CurrentUser() {
126
127
  }
127
128
  return onClick;
128
129
  }()
129
- }, t('Clear cache')), /*#__PURE__*/_react.default.createElement(_antd.Menu.Item, {
130
- key: "reboot",
130
+ }, {
131
+ key: 'reboot',
132
+ label: t('Reboot application'),
131
133
  onClick: function () {
132
134
  var _onClick2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
133
135
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
@@ -175,19 +177,22 @@ var CurrentUser = function CurrentUser() {
175
177
  }
176
178
  return onClick;
177
179
  }()
178
- }, t('Reboot application')), /*#__PURE__*/_react.default.createElement(_antd.Menu.Divider, null)), /*#__PURE__*/_react.default.createElement(_antd.Menu.Item, {
179
- key: "signout",
180
+ }, divider];
181
+ }, [appAllowed, check]);
182
+ var items = (0, _react.useMemo)(function () {
183
+ return [appVersion, divider, editProfile, changePassword, divider, switchRole, languageSettings, themeSettings, divider].concat(_toConsumableArray(controlApp), [{
184
+ key: 'signout',
185
+ label: t('Sign out'),
180
186
  onClick: function () {
181
187
  var _onClick3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
182
188
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
183
189
  while (1) switch (_context5.prev = _context5.next) {
184
190
  case 0:
185
191
  _context5.next = 2;
186
- return api.resource('users').signout();
192
+ return api.auth.signOut();
187
193
  case 2:
188
- api.auth.setToken(null);
189
- history.push('/signin');
190
- case 4:
194
+ navigate("/signin?redirect=".concat(encodeURIComponent(redirectUrl)));
195
+ case 3:
191
196
  case "end":
192
197
  return _context5.stop();
193
198
  }
@@ -198,7 +203,41 @@ var CurrentUser = function CurrentUser() {
198
203
  }
199
204
  return onClick;
200
205
  }()
201
- }, t('Sign out')))
206
+ }]);
207
+ }, [appVersion, changePassword, controlApp, divider, editProfile, history, languageSettings, switchRole, themeSettings]);
208
+ return /*#__PURE__*/_react.default.createElement(_antd.Menu, {
209
+ items: items
210
+ });
211
+ };
212
+ exports.SettingsMenu = SettingsMenu;
213
+ var DropdownVisibleContext = /*#__PURE__*/(0, _react.createContext)(null);
214
+ exports.DropdownVisibleContext = DropdownVisibleContext;
215
+ var CurrentUser = function CurrentUser() {
216
+ var _data$data3, _data$data4;
217
+ var _useState = (0, _react.useState)(false),
218
+ _useState2 = _slicedToArray(_useState, 2),
219
+ visible = _useState2[0],
220
+ setVisible = _useState2[1];
221
+ var _useCurrentUserContex = (0, _.useCurrentUserContext)(),
222
+ data = _useCurrentUserContex.data;
223
+ return /*#__PURE__*/_react.default.createElement("div", {
224
+ style: {
225
+ display: 'inline-flex',
226
+ verticalAlign: 'top'
227
+ }
228
+ }, /*#__PURE__*/_react.default.createElement(DropdownVisibleContext.Provider, {
229
+ value: {
230
+ visible: visible,
231
+ setVisible: setVisible
232
+ }
233
+ }, /*#__PURE__*/_react.default.createElement(_antd.Dropdown, {
234
+ open: visible,
235
+ onOpenChange: function onOpenChange(visible) {
236
+ setVisible(visible);
237
+ },
238
+ dropdownRender: function dropdownRender() {
239
+ return /*#__PURE__*/_react.default.createElement(SettingsMenu, null);
240
+ }
202
241
  }, /*#__PURE__*/_react.default.createElement("span", {
203
242
  className: (0, _css.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: 160px;\n overflow: hidden;\n display: inline-block;\n line-height: 12px;\n white-space: nowrap;\n text-overflow: ellipsis;\n "]))),
204
243
  style: {
@@ -207,6 +246,6 @@ var CurrentUser = function CurrentUser() {
207
246
  padding: '16px',
208
247
  color: 'rgba(255, 255, 255, 0.65)'
209
248
  }
210
- }, (data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.nickname) || (data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3.email)))));
249
+ }, (data === null || data === void 0 ? void 0 : (_data$data3 = data.data) === null || _data$data3 === void 0 ? void 0 : _data$data3.nickname) || (data === null || data === void 0 ? void 0 : (_data$data4 = data.data) === null || _data$data4 === void 0 ? void 0 : _data$data4.email)))));
211
250
  };
212
251
  exports.CurrentUser = CurrentUser;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const CurrentUserContext: React.Context<any>;
3
3
  export declare const useCurrentUserContext: () => any;
4
- export declare const CurrentUserProvider: (props: any) => JSX.Element;
4
+ export declare const CurrentUserProvider: (props: any) => React.JSX.Element;
@@ -21,7 +21,7 @@ var CurrentUserProvider = function CurrentUserProvider(props) {
21
21
  var _result$data, _result$data$data;
22
22
  var location = (0, _reactRouterDom.useLocation)();
23
23
  var result = (0, _apiClient.useRequest)({
24
- url: 'users:check'
24
+ url: 'auth:check'
25
25
  });
26
26
  if (result.loading) {
27
27
  return /*#__PURE__*/_react.default.createElement(_antd.Spin, null);
@@ -30,7 +30,8 @@ var CurrentUserProvider = function CurrentUserProvider(props) {
30
30
  search = location.search;
31
31
  var redirect = "?redirect=".concat(pathname).concat(search);
32
32
  if (!(result === null || result === void 0 ? void 0 : (_result$data = result.data) === null || _result$data === void 0 ? void 0 : (_result$data$data = _result$data.data) === null || _result$data$data === void 0 ? void 0 : _result$data$data.id)) {
33
- return /*#__PURE__*/_react.default.createElement(_reactRouterDom.Redirect, {
33
+ return /*#__PURE__*/_react.default.createElement(_reactRouterDom.Navigate, {
34
+ replace: true,
34
35
  to: "/signin".concat(redirect)
35
36
  });
36
37
  }
@@ -1 +1 @@
1
- export declare const EditProfile: () => JSX.Element;
1
+ export declare const useEditProfile: () => import("antd/lib/menu/hooks/useItems").ItemType;
@@ -4,10 +4,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.EditProfile = void 0;
7
+ exports.useEditProfile = void 0;
8
8
  var _react = require("@formily/react");
9
9
  var _shared = require("@formily/shared");
10
- var _antd = require("antd");
11
10
  var _react2 = _interopRequireWildcard(require("react"));
12
11
  var _reactI18next = require("react-i18next");
13
12
  var _ = require("../");
@@ -151,33 +150,40 @@ var schema = {
151
150
  }
152
151
  })
153
152
  };
154
- var EditProfile = function EditProfile() {
153
+ var useEditProfile = function useEditProfile() {
154
+ var ctx = (0, _react2.useContext)(_.DropdownVisibleContext);
155
155
  var _useState = (0, _react2.useState)(false),
156
156
  _useState2 = _slicedToArray(_useState, 2),
157
157
  visible = _useState2[0],
158
158
  setVisible = _useState2[1];
159
159
  var _useTranslation = (0, _reactI18next.useTranslation)(),
160
160
  t = _useTranslation.t;
161
- var ctx = (0, _react2.useContext)(_.DropdownVisibleContext);
162
- return /*#__PURE__*/_react2.default.createElement(_.ActionContext.Provider, {
163
- value: {
164
- visible: visible,
165
- setVisible: setVisible
166
- }
167
- }, /*#__PURE__*/_react2.default.createElement(_antd.Menu.Item, {
168
- key: "profile",
169
- eventKey: 'EditProfile',
170
- onClick: function onClick() {
171
- setVisible(true);
172
- ctx.setVisible(false);
173
- }
174
- }, t('Edit profile')), /*#__PURE__*/_react2.default.createElement(_.SchemaComponent, {
175
- scope: {
176
- useCurrentUserValues: useCurrentUserValues,
177
- useCloseAction: useCloseAction,
178
- useSaveCurrentUserValues: useSaveCurrentUserValues
179
- },
180
- schema: schema
181
- }));
161
+ return (0, _react2.useMemo)(function () {
162
+ return {
163
+ key: 'profile',
164
+ eventKey: 'EditProfile',
165
+ onClick: function onClick() {
166
+ setVisible(true);
167
+ ctx === null || ctx === void 0 ? void 0 : ctx.setVisible(false);
168
+ },
169
+ label: /*#__PURE__*/_react2.default.createElement(_react2.default.Fragment, null, t('Edit profile'), /*#__PURE__*/_react2.default.createElement(_.ActionContextProvider, {
170
+ value: {
171
+ visible: visible,
172
+ setVisible: setVisible
173
+ }
174
+ }, /*#__PURE__*/_react2.default.createElement("div", {
175
+ onClick: function onClick(e) {
176
+ return e.stopPropagation();
177
+ }
178
+ }, /*#__PURE__*/_react2.default.createElement(_.SchemaComponent, {
179
+ scope: {
180
+ useCurrentUserValues: useCurrentUserValues,
181
+ useCloseAction: useCloseAction,
182
+ useSaveCurrentUserValues: useSaveCurrentUserValues
183
+ },
184
+ schema: schema
185
+ }))))
186
+ };
187
+ }, [visible]);
182
188
  };
183
- exports.EditProfile = EditProfile;
189
+ exports.useEditProfile = useEditProfile;
@@ -1 +1 @@
1
- export declare const LanguageSettings: () => JSX.Element;
1
+ export declare const useLanguageSettings: () => import("antd/lib/menu/hooks/useItems").ItemType;