@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
@@ -12,8 +12,8 @@ var _antd = require("antd");
12
12
  var _react2 = _interopRequireWildcard(require("react"));
13
13
  var _reactI18next = require("react-i18next");
14
14
  var _ = require("../..");
15
- var _context = require("./context");
16
15
  var _DynamicComponent = require("./DynamicComponent");
16
+ var _context = require("./context");
17
17
  var _useValues2 = require("./useValues");
18
18
  var _templateObject, _templateObject2;
19
19
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -34,45 +34,50 @@ var FilterItem = (0, _react.observer)(function (props) {
34
34
  setOperator = _useValues.setOperator,
35
35
  value = _useValues.value,
36
36
  setValue = _useValues.setValue;
37
- return /*#__PURE__*/_react2.default.createElement("div", {
38
- style: {
39
- marginBottom: 8
40
- }
41
- }, /*#__PURE__*/_react2.default.createElement(_antd.Space, null, /*#__PURE__*/_react2.default.createElement(_antd.Cascader, {
42
- className: (0, _css.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 160px;\n "]))),
43
- fieldNames: {
44
- label: 'title',
45
- value: 'name',
46
- children: 'children'
47
- },
48
- changeOnSelect: false,
49
- value: dataIndex,
50
- options: compile(fields),
51
- onChange: function onChange(value) {
52
- setDataIndex(value);
53
- },
54
- placeholder: t('Select Field')
55
- }), /*#__PURE__*/_react2.default.createElement(_antd.Select, {
56
- className: (0, _css.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 110px;\n "]))),
57
- value: operator === null || operator === void 0 ? void 0 : operator.value,
58
- options: compile(operators),
59
- onChange: function onChange(value) {
60
- setOperator(value);
61
- },
62
- placeholder: t('Comparision')
63
- }), !(operator === null || operator === void 0 ? void 0 : operator.noValue) && /*#__PURE__*/_react2.default.createElement(_DynamicComponent.DynamicComponent, {
64
- value: value ? value : undefined,
65
- schema: schema,
66
- onChange: function onChange(value) {
67
- setValue(value);
68
- }
69
- }), !props.disabled && /*#__PURE__*/_react2.default.createElement("a", null, /*#__PURE__*/_react2.default.createElement(_icons.CloseCircleOutlined, {
70
- onClick: function onClick() {
71
- return remove();
72
- },
73
- style: {
74
- color: '#bfbfbf'
75
- }
76
- }))));
37
+ return (
38
+ /*#__PURE__*/
39
+ // 添加 nc-filter-item 类名是为了帮助编写测试时更容易选中该元素
40
+ _react2.default.createElement("div", {
41
+ style: {
42
+ marginBottom: 8
43
+ },
44
+ className: "nc-filter-item"
45
+ }, /*#__PURE__*/_react2.default.createElement(_antd.Space, null, /*#__PURE__*/_react2.default.createElement(_antd.Cascader, {
46
+ className: (0, _css.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 160px;\n "]))),
47
+ fieldNames: {
48
+ label: 'title',
49
+ value: 'name',
50
+ children: 'children'
51
+ },
52
+ changeOnSelect: false,
53
+ value: dataIndex,
54
+ options: compile(fields),
55
+ onChange: function onChange(value) {
56
+ setDataIndex(value);
57
+ },
58
+ placeholder: t('Select field')
59
+ }), /*#__PURE__*/_react2.default.createElement(_antd.Select, {
60
+ className: (0, _css.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 110px;\n "]))),
61
+ value: operator === null || operator === void 0 ? void 0 : operator.value,
62
+ options: compile(operators),
63
+ onChange: function onChange(value) {
64
+ setOperator(value);
65
+ },
66
+ placeholder: t('Comparision')
67
+ }), !(operator === null || operator === void 0 ? void 0 : operator.noValue) ? /*#__PURE__*/_react2.default.createElement(_DynamicComponent.DynamicComponent, {
68
+ value: value,
69
+ schema: schema,
70
+ onChange: setValue
71
+ }) : null, !props.disabled && /*#__PURE__*/_react2.default.createElement("a", null, /*#__PURE__*/_react2.default.createElement(_icons.CloseCircleOutlined, {
72
+ onClick: function onClick() {
73
+ return remove();
74
+ },
75
+ style: {
76
+ color: '#bfbfbf'
77
+ }
78
+ }))))
79
+ );
80
+ }, {
81
+ displayName: 'FilterItem'
77
82
  });
78
83
  exports.FilterItem = FilterItem;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const FilterItems: React.MemoExoticComponent<React.FunctionComponent<unknown>>;
2
+ export declare const FilterItems: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
@@ -24,5 +24,7 @@ var FilterItems = (0, _react.observer)(function (props) {
24
24
  component: [item.$and || item.$or ? _FilterGroup.FilterGroup : _FilterItem.FilterItem]
25
25
  }));
26
26
  }));
27
+ }, {
28
+ displayName: 'FilterItems'
27
29
  });
28
30
  exports.FilterItems = FilterItems;
@@ -1 +1,2 @@
1
- export declare const SaveDefaultValue: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const SaveDefaultValue: (props: any) => React.JSX.Element;
@@ -1,2 +1,3 @@
1
1
  export * from './Filter';
2
+ export * from './FilterAction';
2
3
  export * from './useFilterActionProps';
@@ -14,6 +14,17 @@ Object.keys(_Filter).forEach(function (key) {
14
14
  }
15
15
  });
16
16
  });
17
+ var _FilterAction = require("./FilterAction");
18
+ Object.keys(_FilterAction).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _FilterAction[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _FilterAction[key];
25
+ }
26
+ });
27
+ });
17
28
  var _useFilterActionProps = require("./useFilterActionProps");
18
29
  Object.keys(_useFilterActionProps).forEach(function (key) {
19
30
  if (key === "default" || key === "__esModule") return;
@@ -6,12 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useValues = void 0;
7
7
  var _react = require("@formily/react");
8
8
  var _shared = require("@formily/shared");
9
- var _flat = _interopRequireDefault(require("flat"));
9
+ var _flat = _interopRequireWildcard(require("flat"));
10
10
  var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
11
11
  var _get = _interopRequireDefault(require("lodash/get"));
12
12
  var _react2 = require("react");
13
13
  var _context = require("./context");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+ 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); }
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
17
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
16
18
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
19
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -53,7 +55,7 @@ var useValues = function useValues() {
53
55
  var value2data = function value2data() {
54
56
  var _operators$find;
55
57
  field.data = field.data || {};
56
- var values = (0, _flat.default)(field.value);
58
+ var values = (0, _flat.default)(field.value || {});
57
59
  var path = Object.keys(values).shift() || '';
58
60
  if (!path || !options) {
59
61
  return;
@@ -77,7 +79,7 @@ var useValues = function useValues() {
77
79
  field.data.operators = operators;
78
80
  field.data.operator = operator;
79
81
  field.data.schema = (0, _shared.merge)(option === null || option === void 0 ? void 0 : option.schema, operator === null || operator === void 0 ? void 0 : operator.schema);
80
- field.data.value = (0, _get.default)(field.value, "".concat(fieldPath, ".$").concat(operatorValue));
82
+ field.data.value = (0, _get.default)((0, _flat.unflatten)(field.value), "".concat(fieldPath, ".$").concat(operatorValue));
81
83
  };
82
84
  (0, _react2.useEffect)(value2data, [field.path.entire]);
83
85
  return _objectSpread(_objectSpread({
@@ -1 +1,2 @@
1
- export declare const FormDesigner: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const FormDesigner: () => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Options, Result } from 'ahooks/lib/useRequest/src/types';
1
+ import { Options, Result } from 'ahooks/es/useRequest/src/types';
2
2
  import React from 'react';
3
3
  declare type Opts = Options<any, any> & {
4
4
  uid?: string;
@@ -153,6 +153,8 @@ var Form = (0, _react.observer)(function (props) {
153
153
  }, others)) : /*#__PURE__*/_react2.default.createElement(FormComponent, _objectSpread({
154
154
  form: form
155
155
  }, others))));
156
+ }, {
157
+ displayName: 'Form'
156
158
  });
157
159
  exports.Form = Form;
158
160
  Form.Designer = function () {
@@ -1 +1,2 @@
1
- export declare const FilterFormDesigner: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const FilterFormDesigner: () => React.JSX.Element;
@@ -10,14 +10,14 @@ exports.isFileCollection = isFileCollection;
10
10
  var _css = require("@emotion/css");
11
11
  var _antd = require("@formily/antd");
12
12
  var _react = require("@formily/react");
13
- var _shared = require("@formily/shared");
14
13
  var _antd2 = require("antd");
15
14
  var _lodash = _interopRequireDefault(require("lodash"));
16
15
  var _moment = _interopRequireDefault(require("moment"));
17
16
  var _react2 = _interopRequireWildcard(require("react"));
18
17
  var _reactI18next = require("react-i18next");
19
18
  var _ACLProvider = require("../../../acl/ACLProvider");
20
- var _blockProvider = require("../../../block-provider");
19
+ var _BlockProvider = require("../../../block-provider/BlockProvider");
20
+ var _FormBlockProvider = require("../../../block-provider/FormBlockProvider");
21
21
  var _collectionManager = require("../../../collection-manager");
22
22
  var _CollectionFields = require("../../../collection-manager/Configuration/CollectionFields");
23
23
  var _GeneralSchemaItems = require("../../../schema-items/GeneralSchemaItems");
@@ -29,7 +29,7 @@ var _core = require("../../core");
29
29
  var _hooks = require("../../hooks");
30
30
  var _blockItem = require("../block-item");
31
31
  var _filter = require("../filter");
32
- var _shared2 = require("../input/shared");
32
+ var _shared = require("../input/shared");
33
33
  var _FilterDynamicComponent = require("../table-v2/FilterDynamicComponent");
34
34
  var _variable = require("../variable");
35
35
  var _FormItem = require("./FormItem.FilterFormDesigner");
@@ -48,20 +48,11 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
48
48
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
49
49
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
50
50
  var defaultInputStyle = (0, _css.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & > .nb-form-item {\n flex: 1;\n }\n"])));
51
- var divWrap = function divWrap(schema) {
52
- return {
53
- type: 'void',
54
- 'x-component': 'div',
55
- 'x-component-props': {
56
- className: 'nb-block-wrap'
57
- },
58
- properties: _defineProperty({}, schema.name || (0, _shared.uid)(), schema)
59
- };
60
- };
61
51
  var FormItem = (0, _react.observer)(function (props) {
52
+ var _schema$xDecoratorP, _schema$xDecoratorP2;
62
53
  (0, _SchemaSettingOptions.useEnsureOperatorsValid)();
63
54
  var field = (0, _react.useField)();
64
- var ctx = (0, _react2.useContext)(_blockProvider.BlockRequestContext);
55
+ var ctx = (0, _BlockProvider.useBlockRequestContext)();
65
56
  var schema = (0, _react.useFieldSchema)();
66
57
  var variablesCtx = (0, _uitls.useVariablesCtx)();
67
58
  (0, _react2.useEffect)(function () {
@@ -76,23 +67,25 @@ var FormItem = (0, _react.observer)(function (props) {
76
67
  }
77
68
  }
78
69
  }, []);
79
- var _props$showTitle = props.showTitle,
80
- showTitle = _props$showTitle === void 0 ? true : _props$showTitle;
70
+ var showTitle = (_schema$xDecoratorP = (_schema$xDecoratorP2 = schema['x-decorator-props']) === null || _schema$xDecoratorP2 === void 0 ? void 0 : _schema$xDecoratorP2.showTitle) !== null && _schema$xDecoratorP !== void 0 ? _schema$xDecoratorP : true;
81
71
  return /*#__PURE__*/_react2.default.createElement(_ACLProvider.ACLCollectionFieldProvider, null, /*#__PURE__*/_react2.default.createElement(_blockItem.BlockItem, {
82
72
  className: 'nb-form-item'
83
73
  }, /*#__PURE__*/_react2.default.createElement(_antd.FormItem, _objectSpread(_objectSpread({
84
- className: (0, _css.cx)((0, _css.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & .ant-space {\n flex-wrap: wrap;\n }\n "]))), _defineProperty({}, (0, _css.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n > .ant-formily-item-label {\n display: none;\n }\n "]))), showTitle === false))
74
+ className: (0, _css.cx)((0, _css.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & .ant-space {\n flex-wrap: wrap;\n }\n "]))), _defineProperty({}, (0, _css.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n > .ant-formily-item-label {\n display: none;\n }\n "]))), showTitle === false))
85
75
  }, props), {}, {
86
76
  extra: typeof field.description === 'string' ? /*#__PURE__*/_react2.default.createElement("div", {
87
77
  dangerouslySetInnerHTML: {
88
- __html: (0, _shared2.HTMLEncode)(field.description).split('\n').join('<br/>')
78
+ __html: (0, _shared.HTMLEncode)(field.description).split('\n').join('<br/>')
89
79
  }
90
80
  }) : field.description
91
81
  }))));
82
+ }, {
83
+ displayName: 'FormItem'
92
84
  });
93
85
  exports.FormItem = FormItem;
94
86
  FormItem.Designer = function Designer() {
95
- var _interfaceConfig$vali, _collectionField$uiSc, _getCollectionFields, _field$componentProps, _field$componentProps2, _field$componentProps3, _field$componentProps4, _field$componentProps5, _field$componentProps6, _field$componentProps7, _fieldSchema$xCompon, _fieldSchema$xCompon2, _fieldSchema$xCompon3, _fieldSchema$xCompon4, _fieldSchema$xCompon5, _fieldSchema$xCompon6, _fieldSchema$xCompon7, _fieldSchema$xCompon8, _fieldSchema$xCompon9, _fieldSchema$xCompon10, _field$componentProps8, _field$componentProps9;
87
+ var _interfaceConfig$vali, _collectionField$uiSc, _getCollectionFields, _field$componentProps, _field$componentProps2, _field$componentProps3, _field$componentProps4, _field$componentProps5, _field$componentProps6, _field$componentProps7, _fieldSchema$xCompon2, _fieldSchema$xCompon3, _fieldSchema$xCompon4, _fieldSchema$xCompon5, _fieldSchema$xCompon6, _fieldSchema$xCompon7, _fieldSchema$xCompon8, _field$componentProps8, _fieldSchema$xCompon9, _fieldSchema$xCompon10, _fieldSchema$xCompon11, _field$componentProps9, _field$componentProps10;
88
+ var targetField;
96
89
  var _useCollectionManager = (0, _collectionManager.useCollectionManager)(),
97
90
  getCollectionFields = _useCollectionManager.getCollectionFields,
98
91
  getInterface = _useCollectionManager.getInterface,
@@ -100,8 +93,9 @@ FormItem.Designer = function Designer() {
100
93
  getCollection = _useCollectionManager.getCollection;
101
94
  var _useCollection = (0, _collectionManager.useCollection)(),
102
95
  getField = _useCollection.getField;
103
- var _useFormBlockContext = (0, _blockProvider.useFormBlockContext)(),
96
+ var _useFormBlockContext = (0, _FormBlockProvider.useFormBlockContext)(),
104
97
  form = _useFormBlockContext.form;
98
+ var ctx = (0, _BlockProvider.useBlockRequestContext)();
105
99
  var field = (0, _react.useField)();
106
100
  var fieldSchema = (0, _react.useFieldSchema)();
107
101
  var _useTranslation = (0, _reactI18next.useTranslation)(),
@@ -114,13 +108,17 @@ FormItem.Designer = function Designer() {
114
108
  var variablesCtx = (0, _uitls.useVariablesCtx)();
115
109
  var IsShowMultipleSwitch = (0, _useIsShowMultipleSwitch.useIsShowMultipleSwitch)();
116
110
  var collectionField = getField(fieldSchema['name']) || getCollectionJoinField(fieldSchema['x-collection-field']);
111
+ if (collectionField === null || collectionField === void 0 ? void 0 : collectionField.target) {
112
+ var _fieldSchema$xCompon, _fieldSchema$xCompon$;
113
+ targetField = getCollectionJoinField("".concat(collectionField.target, ".").concat(((_fieldSchema$xCompon = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon === void 0 ? void 0 : (_fieldSchema$xCompon$ = _fieldSchema$xCompon.fieldNames) === null || _fieldSchema$xCompon$ === void 0 ? void 0 : _fieldSchema$xCompon$.label) || 'id'));
114
+ }
117
115
  var targetCollection = getCollection(collectionField === null || collectionField === void 0 ? void 0 : collectionField.target);
118
116
  var interfaceConfig = getInterface(collectionField === null || collectionField === void 0 ? void 0 : collectionField.interface);
119
117
  var validateSchema = interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$vali = interfaceConfig['validateSchema']) === null || _interfaceConfig$vali === void 0 ? void 0 : _interfaceConfig$vali.call(interfaceConfig, fieldSchema);
120
118
  var originalTitle = collectionField === null || collectionField === void 0 ? void 0 : (_collectionField$uiSc = collectionField.uiSchema) === null || _collectionField$uiSc === void 0 ? void 0 : _collectionField$uiSc.title;
121
119
  var targetFields = (collectionField === null || collectionField === void 0 ? void 0 : collectionField.target) ? getCollectionFields(collectionField === null || collectionField === void 0 ? void 0 : collectionField.target) : (_getCollectionFields = getCollectionFields(collectionField === null || collectionField === void 0 ? void 0 : collectionField.targetCollection)) !== null && _getCollectionFields !== void 0 ? _getCollectionFields : [];
122
120
  var fieldModeOptions = (0, _hooks.useFieldModeOptions)();
123
- var isAssociationField = ['belongsTo', 'hasOne', 'hasMany', 'belongsToMany'].includes(collectionField === null || collectionField === void 0 ? void 0 : collectionField.type);
121
+ var isAssociationField = ['obo', 'oho', 'o2o', 'o2m', 'm2m', 'm2o'].includes(collectionField === null || collectionField === void 0 ? void 0 : collectionField.interface);
124
122
  var isTableField = fieldSchema['x-component'] === 'TableField';
125
123
  var isFileField = isFileCollection(targetCollection);
126
124
  var initialValue = {
@@ -150,7 +148,7 @@ FormItem.Designer = function Designer() {
150
148
  var sortFields = (0, _collectionManager.useSortFields)(collectionField === null || collectionField === void 0 ? void 0 : collectionField.target);
151
149
  var defaultSort = ((_field$componentProps4 = field.componentProps) === null || _field$componentProps4 === void 0 ? void 0 : (_field$componentProps5 = _field$componentProps4.service) === null || _field$componentProps5 === void 0 ? void 0 : (_field$componentProps6 = _field$componentProps5.params) === null || _field$componentProps6 === void 0 ? void 0 : _field$componentProps6.sort) || [];
152
150
  var fieldMode = (field === null || field === void 0 ? void 0 : (_field$componentProps7 = field.componentProps) === null || _field$componentProps7 === void 0 ? void 0 : _field$componentProps7['mode']) || (isFileField ? 'FileManager' : 'Select');
153
- var isSelectFieldMode = fieldMode === 'Select';
151
+ var isSelectFieldMode = isAssociationField && fieldMode === 'Select';
154
152
  var sort = defaultSort === null || defaultSort === void 0 ? void 0 : defaultSort.map(function (item) {
155
153
  return (item === null || item === void 0 ? void 0 : item.startsWith('-')) ? {
156
154
  field: item.substring(1),
@@ -161,14 +159,14 @@ FormItem.Designer = function Designer() {
161
159
  };
162
160
  });
163
161
  var fieldSchemaWithoutRequired = _lodash.default.omit(fieldSchema, 'required');
164
- var isSubFormMode = ((_fieldSchema$xCompon = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon === void 0 ? void 0 : _fieldSchema$xCompon.mode) === 'Nester';
165
- var isPickerMode = ((_fieldSchema$xCompon2 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon2 === void 0 ? void 0 : _fieldSchema$xCompon2.mode) === 'Picker';
162
+ var isSubFormMode = ((_fieldSchema$xCompon2 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon2 === void 0 ? void 0 : _fieldSchema$xCompon2.mode) === 'Nester';
163
+ var isPickerMode = ((_fieldSchema$xCompon3 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon3 === void 0 ? void 0 : _fieldSchema$xCompon3.mode) === 'Picker';
166
164
  var showFieldMode = isAssociationField && fieldModeOptions && !isTableField;
167
165
  var showModeSelect = showFieldMode && isPickerMode;
168
166
  return /*#__PURE__*/_react2.default.createElement(_schemaSettings.GeneralSchemaDesigner, null, /*#__PURE__*/_react2.default.createElement(_GeneralSchemaItems.GeneralSchemaItems, null), !(form === null || form === void 0 ? void 0 : form.readPretty) && isFileField ? /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SwitchItem, {
169
167
  key: "quick-upload",
170
168
  title: t('Quick upload'),
171
- checked: ((_fieldSchema$xCompon3 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon3 === void 0 ? void 0 : _fieldSchema$xCompon3.quickUpload) !== false,
169
+ checked: ((_fieldSchema$xCompon4 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon4 === void 0 ? void 0 : _fieldSchema$xCompon4.quickUpload) !== false,
172
170
  onChange: function onChange(value) {
173
171
  var schema = _defineProperty({}, 'x-uid', fieldSchema['x-uid']);
174
172
  field.componentProps.quickUpload = value;
@@ -183,7 +181,7 @@ FormItem.Designer = function Designer() {
183
181
  }) : null, !(form === null || form === void 0 ? void 0 : form.readPretty) && isFileField ? /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SwitchItem, {
184
182
  key: "select-file",
185
183
  title: t('Select file'),
186
- checked: ((_fieldSchema$xCompon4 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon4 === void 0 ? void 0 : _fieldSchema$xCompon4.selectFile) !== false,
184
+ checked: ((_fieldSchema$xCompon5 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon5 === void 0 ? void 0 : _fieldSchema$xCompon5.selectFile) !== false,
187
185
  onChange: function onChange(value) {
188
186
  var schema = _defineProperty({}, 'x-uid', fieldSchema['x-uid']);
189
187
  field.componentProps.selectFile = value;
@@ -345,6 +343,7 @@ FormItem.Designer = function Designer() {
345
343
  default: (0, _variable.isInvariable)(interfaceConfig) ? _objectSpread(_objectSpread({}, fieldSchemaWithoutRequired || {}), {}, {
346
344
  'x-decorator': 'FormItem',
347
345
  'x-component-props': _objectSpread(_objectSpread({}, fieldSchema['x-component-props']), {}, {
346
+ targetField: targetField,
348
347
  component: (collectionField === null || collectionField === void 0 ? void 0 : collectionField.target) && (collectionField === null || collectionField === void 0 ? void 0 : collectionField.interface) !== 'chinaRegion' ? 'AssociationSelect' : undefined,
349
348
  service: {
350
349
  resource: collectionField === null || collectionField === void 0 ? void 0 : collectionField.target
@@ -363,6 +362,7 @@ FormItem.Designer = function Designer() {
363
362
  'x-decorator': 'FormItem',
364
363
  'x-component': 'VariableInput',
365
364
  'x-component-props': _objectSpread(_objectSpread({}, (fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-component-props']) || {}), {}, {
365
+ targetField: targetField,
366
366
  collectionName: collectionField === null || collectionField === void 0 ? void 0 : collectionField.collectionName,
367
367
  schema: collectionField === null || collectionField === void 0 ? void 0 : collectionField.uiSchema,
368
368
  className: defaultInputStyle,
@@ -412,12 +412,15 @@ FormItem.Designer = function Designer() {
412
412
  properties: {
413
413
  filter: {
414
414
  default: defaultFilter,
415
- // title: '数据范围',
416
415
  enum: dataSource,
417
416
  'x-component': 'Filter',
418
417
  'x-component-props': {
419
418
  dynamicComponent: function dynamicComponent(props) {
420
- return (0, _FilterDynamicComponent.FilterDynamicComponent)(_objectSpread({}, props));
419
+ return (0, _FilterDynamicComponent.FilterDynamicComponent)(_objectSpread(_objectSpread({}, props), {}, {
420
+ form: form,
421
+ collectionField: collectionField,
422
+ rootCollection: ctx.props.collection || ctx.props.resource
423
+ }));
421
424
  }
422
425
  }
423
426
  }
@@ -429,7 +432,6 @@ FormItem.Designer = function Designer() {
429
432
  filter = (0, _filter.removeNullCondition)(filter);
430
433
  _lodash.default.set(field.componentProps, 'service.params.filter', filter);
431
434
  fieldSchema['x-component-props'] = field.componentProps;
432
- field.componentProps = field.componentProps;
433
435
  dn.emit('patch', {
434
436
  schema: (_schema5 = {}, _defineProperty(_schema5, 'x-uid', fieldSchema['x-uid']), _defineProperty(_schema5, 'x-component-props', field.componentProps), _schema5)
435
437
  });
@@ -520,7 +522,7 @@ FormItem.Designer = function Designer() {
520
522
  }
521
523
  }), showFieldMode && /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SelectItem, {
522
524
  key: "field-mode",
523
- title: t('Field mode'),
525
+ title: t('Field component'),
524
526
  options: fieldModeOptions,
525
527
  value: fieldMode,
526
528
  onChange: function onChange(mode) {
@@ -557,7 +559,7 @@ FormItem.Designer = function Designer() {
557
559
  label: t('Large'),
558
560
  value: 'large'
559
561
  }],
560
- value: (_fieldSchema$xCompon5 = fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon6 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon6 === void 0 ? void 0 : _fieldSchema$xCompon6['openSize']) !== null && _fieldSchema$xCompon5 !== void 0 ? _fieldSchema$xCompon5 : (fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon7 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon7 === void 0 ? void 0 : _fieldSchema$xCompon7['openMode']) == 'modal' ? 'large' : 'middle',
562
+ value: (_fieldSchema$xCompon6 = fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon7 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon7 === void 0 ? void 0 : _fieldSchema$xCompon7['openSize']) !== null && _fieldSchema$xCompon6 !== void 0 ? _fieldSchema$xCompon6 : (fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon8 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon8 === void 0 ? void 0 : _fieldSchema$xCompon8['openMode']) == 'modal' ? 'large' : 'middle',
561
563
  onChange: function onChange(value) {
562
564
  field.componentProps.openSize = value;
563
565
  fieldSchema['x-component-props'] = field.componentProps;
@@ -573,7 +575,7 @@ FormItem.Designer = function Designer() {
573
575
  textAlign: 'right',
574
576
  minWidth: 100
575
577
  }
576
- }))), !field.readPretty && isAssociationField && ['Select', 'Picker'].includes(fieldMode) && /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SwitchItem, {
578
+ }))), !field.readPretty && isAssociationField && ['Picker'].includes(fieldMode) && /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SwitchItem, {
577
579
  key: "allowAddNew",
578
580
  title: t('Allow add new data'),
579
581
  checked: fieldSchema['x-add-new'],
@@ -608,10 +610,59 @@ FormItem.Designer = function Designer() {
608
610
  });
609
611
  refresh();
610
612
  }
611
- }), IsShowMultipleSwitch() ? /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SwitchItem, {
613
+ }), !field.readPretty && isAssociationField && ['Select'].includes(fieldMode) && /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SelectItem, {
614
+ key: "add-mode",
615
+ title: t('Quick create'),
616
+ options: [{
617
+ label: t('None'),
618
+ value: 'none'
619
+ }, {
620
+ label: t('Dropdown'),
621
+ value: 'quickAdd'
622
+ }, {
623
+ label: t('Pop-up'),
624
+ value: 'modalAdd'
625
+ }],
626
+ value: ((_field$componentProps8 = field.componentProps) === null || _field$componentProps8 === void 0 ? void 0 : _field$componentProps8.addMode) || 'none',
627
+ onChange: function onChange(mode) {
628
+ if (mode === 'modalAdd') {
629
+ var hasAddNew = fieldSchema.reduceProperties(function (buf, schema) {
630
+ if (schema['x-component'] === 'Action') {
631
+ return schema;
632
+ }
633
+ return buf;
634
+ }, null);
635
+ if (!hasAddNew) {
636
+ var addNewActionschema = {
637
+ 'x-action': 'create',
638
+ title: "{{t('Add new')}}",
639
+ 'x-designer': 'Action.Designer',
640
+ 'x-component': 'Action',
641
+ 'x-decorator': 'ACLActionProvider',
642
+ 'x-component-props': {
643
+ openMode: 'drawer',
644
+ type: 'default',
645
+ component: 'CreateRecordAction'
646
+ }
647
+ };
648
+ insertAdjacent('afterBegin', addNewActionschema);
649
+ }
650
+ }
651
+ var schema = _defineProperty({}, 'x-uid', fieldSchema['x-uid']);
652
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
653
+ fieldSchema['x-component-props']['addMode'] = mode;
654
+ schema['x-component-props'] = fieldSchema['x-component-props'];
655
+ field.componentProps = field.componentProps || {};
656
+ field.componentProps.addMode = mode;
657
+ dn.emit('patch', {
658
+ schema: schema
659
+ });
660
+ dn.refresh();
661
+ }
662
+ }), isAssociationField && IsShowMultipleSwitch() ? /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SwitchItem, {
612
663
  key: "multiple",
613
664
  title: t('Allow multiple'),
614
- checked: ((_fieldSchema$xCompon8 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon8 === void 0 ? void 0 : _fieldSchema$xCompon8.multiple) === undefined ? true : fieldSchema['x-component-props'].multiple,
665
+ checked: ((_fieldSchema$xCompon9 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon9 === void 0 ? void 0 : _fieldSchema$xCompon9.multiple) === undefined ? true : fieldSchema['x-component-props'].multiple,
615
666
  onChange: function onChange(value) {
616
667
  var schema = _defineProperty({}, 'x-uid', fieldSchema['x-uid']);
617
668
  fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
@@ -627,7 +678,7 @@ FormItem.Designer = function Designer() {
627
678
  }) : null, IsShowMultipleSwitch() && isSubFormMode ? /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SwitchItem, {
628
679
  key: "allowDissociate",
629
680
  title: t('Allow dissociate'),
630
- checked: ((_fieldSchema$xCompon9 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon9 === void 0 ? void 0 : _fieldSchema$xCompon9.allowDissociate) !== false,
681
+ checked: ((_fieldSchema$xCompon10 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon10 === void 0 ? void 0 : _fieldSchema$xCompon10.allowDissociate) !== false,
631
682
  onChange: function onChange(value) {
632
683
  var schema = _defineProperty({}, 'x-uid', fieldSchema['x-uid']);
633
684
  fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
@@ -642,7 +693,7 @@ FormItem.Designer = function Designer() {
642
693
  }
643
694
  }) : null, field.readPretty && options.length > 0 && fieldSchema['x-component'] === 'CollectionField' && !isFileField && /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SwitchItem, {
644
695
  title: t('Enable link'),
645
- checked: ((_fieldSchema$xCompon10 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon10 === void 0 ? void 0 : _fieldSchema$xCompon10.enableLink) !== false,
696
+ checked: ((_fieldSchema$xCompon11 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon11 === void 0 ? void 0 : _fieldSchema$xCompon11.enableLink) !== false,
646
697
  onChange: function onChange(flag) {
647
698
  fieldSchema['x-component-props'] = _objectSpread(_objectSpread({}, fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-component-props']), {}, {
648
699
  enableLink: flag
@@ -708,11 +759,11 @@ FormItem.Designer = function Designer() {
708
759
  });
709
760
  dn.refresh();
710
761
  }
711
- }), options.length > 0 && isAssociationField && /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SelectItem, {
762
+ }), options.length > 0 && isAssociationField && fieldMode !== 'SubTable' && /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SelectItem, {
712
763
  key: "title-field",
713
764
  title: t('Title field'),
714
765
  options: options,
715
- value: field === null || field === void 0 ? void 0 : (_field$componentProps8 = field.componentProps) === null || _field$componentProps8 === void 0 ? void 0 : (_field$componentProps9 = _field$componentProps8.fieldNames) === null || _field$componentProps9 === void 0 ? void 0 : _field$componentProps9.label,
766
+ value: field === null || field === void 0 ? void 0 : (_field$componentProps9 = field.componentProps) === null || _field$componentProps9 === void 0 ? void 0 : (_field$componentProps10 = _field$componentProps9.fieldNames) === null || _field$componentProps10 === void 0 ? void 0 : _field$componentProps10.label,
716
767
  onChange: function onChange(label) {
717
768
  var _collectionField$uiSc3, _collectionField$uiSc4;
718
769
  var schema = _defineProperty({}, 'x-uid', fieldSchema['x-uid']);
@@ -742,10 +793,14 @@ FormItem.Designer = function Designer() {
742
793
  function isFileCollection(collection) {
743
794
  return (collection === null || collection === void 0 ? void 0 : collection.template) === 'file';
744
795
  }
796
+ function extractFirstPart(path) {
797
+ var firstDotIndex = path.indexOf('.');
798
+ return firstDotIndex !== -1 ? path.slice(0, firstDotIndex) : path;
799
+ }
745
800
  FormItem.FilterFormDesigner = _FormItem.FilterFormDesigner;
746
801
  function getFieldDefaultValue(fieldSchema, collectionField) {
747
- var _collectionField$uiSc5;
748
- var result = (fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.default) || (collectionField === null || collectionField === void 0 ? void 0 : collectionField.defaultValue);
802
+ var _fieldSchema$default, _collectionField$uiSc5;
803
+ var result = (_fieldSchema$default = fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.default) !== null && _fieldSchema$default !== void 0 ? _fieldSchema$default : collectionField === null || collectionField === void 0 ? void 0 : collectionField.defaultValue;
749
804
  if ((collectionField === null || collectionField === void 0 ? void 0 : (_collectionField$uiSc5 = collectionField.uiSchema) === null || _collectionField$uiSc5 === void 0 ? void 0 : _collectionField$uiSc5['x-component']) === 'DatePicker' && result) {
750
805
  return (0, _moment.default)(result);
751
806
  }
@@ -1,4 +1,5 @@
1
1
  import { Schema } from '@formily/react';
2
+ import React from 'react';
2
3
  export declare const findFilterOperators: (schema: Schema) => {
3
4
  operators: any;
4
5
  uid: any;
@@ -6,18 +7,18 @@ export declare const findFilterOperators: (schema: Schema) => {
6
7
  operators?: undefined;
7
8
  uid?: undefined;
8
9
  };
9
- export declare const EditTitle: () => JSX.Element;
10
- export declare const EditDescription: () => JSX.Element;
11
- export declare const EditTooltip: () => JSX.Element;
12
- export declare const EditRequired: () => JSX.Element;
13
- export declare const EditValidationRules: () => JSX.Element;
14
- export declare const EditDefaultValue: () => JSX.Element;
15
- export declare const EditComponent: () => JSX.Element;
16
- export declare const EditPattern: () => JSX.Element;
10
+ export declare const EditTitle: () => React.JSX.Element;
11
+ export declare const EditDescription: () => React.JSX.Element;
12
+ export declare const EditTooltip: () => React.JSX.Element;
13
+ export declare const EditRequired: () => React.JSX.Element;
14
+ export declare const EditValidationRules: () => React.JSX.Element;
15
+ export declare const EditDefaultValue: () => React.JSX.Element;
16
+ export declare const EditComponent: () => React.JSX.Element;
17
+ export declare const EditPattern: () => React.JSX.Element;
17
18
  /**
18
19
  * 如果用户没有手动设置过 operator,那么在筛选的时候 operator 会是空的,
19
20
  * 该方法确保 operator 一定有值(需要在 FormItem 中调用)
20
21
  */
21
22
  export declare const useEnsureOperatorsValid: () => void;
22
- export declare const EditOperator: () => JSX.Element;
23
- export declare const EditTitleField: () => JSX.Element;
23
+ export declare const EditOperator: () => React.JSX.Element;
24
+ export declare const EditTitleField: () => React.JSX.Element;
@@ -421,7 +421,7 @@ var EditComponent = function EditComponent() {
421
421
  var isFileField = (0, _FormItem.isFileCollection)(targetCollection);
422
422
  return isAssociationField && fieldModeOptions ? /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SelectItem, {
423
423
  key: "field-mode",
424
- title: t('Field mode'),
424
+ title: t('Field component'),
425
425
  options: fieldModeOptions,
426
426
  value: (field === null || field === void 0 ? void 0 : (_field$componentProps = field.componentProps) === null || _field$componentProps === void 0 ? void 0 : _field$componentProps['mode']) || (isFileField ? 'FileManager' : 'Select'),
427
427
  onChange: function onChange(mode) {
@@ -1,3 +1,4 @@
1
- export declare const FormDesigner: () => JSX.Element;
2
- export declare const ReadPrettyFormDesigner: () => JSX.Element;
3
- export declare const DetailsDesigner: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const FormDesigner: () => React.JSX.Element;
3
+ export declare const ReadPrettyFormDesigner: () => React.JSX.Element;
4
+ export declare const DetailsDesigner: () => React.JSX.Element;
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  /**
2
3
  * 筛选区块所使用的表单设计器
3
4
  * @returns
4
5
  */
5
- export declare const FilterDesigner: () => JSX.Element;
6
+ export declare const FilterDesigner: () => React.JSX.Element;