@nocobase/client 0.7.4-alpha.7 → 0.7.6-alpha.1

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 (316) hide show
  1. package/es/application/Application.js +1 -3
  2. package/es/block-provider/TableBlockProvider.js +3 -3
  3. package/es/collection-manager/Configuration/AddFieldAction.js +38 -41
  4. package/es/collection-manager/Configuration/ConfigurationTable.js +8 -3
  5. package/es/collection-manager/Configuration/EditFieldAction.js +64 -41
  6. package/es/collection-manager/Configuration/schemas/collections.d.ts +2 -0
  7. package/es/collection-manager/Configuration/schemas/collections.js +23 -1
  8. package/es/collection-manager/action-hooks.d.ts +5 -0
  9. package/es/collection-manager/action-hooks.js +14 -1
  10. package/es/collection-manager/interfaces/email.js +4 -2
  11. package/es/collection-manager/interfaces/formula.js +1 -1
  12. package/es/collection-manager/interfaces/index.d.ts +1 -0
  13. package/es/collection-manager/interfaces/index.js +1 -0
  14. package/es/collection-manager/interfaces/input.js +4 -2
  15. package/es/collection-manager/interfaces/integer.js +4 -2
  16. package/es/collection-manager/interfaces/m2m.js +2 -2
  17. package/es/collection-manager/interfaces/m2o.js +7 -3
  18. package/es/collection-manager/interfaces/number.js +3 -2
  19. package/es/collection-manager/interfaces/o2m.js +8 -4
  20. package/es/collection-manager/interfaces/o2o.js +19 -6
  21. package/es/collection-manager/interfaces/password.js +4 -2
  22. package/es/collection-manager/interfaces/percent.js +2 -1
  23. package/es/collection-manager/interfaces/phone.js +4 -2
  24. package/es/collection-manager/interfaces/properties/index.d.ts +7 -0
  25. package/es/collection-manager/interfaces/properties/index.js +91 -0
  26. package/es/collection-manager/interfaces/sequence.d.ts +2 -0
  27. package/es/collection-manager/interfaces/sequence.js +431 -0
  28. package/es/index.d.ts +0 -1
  29. package/es/index.js +0 -1
  30. package/es/locale/en_US.d.ts +1 -0
  31. package/es/locale/en_US.js +2 -1
  32. package/es/locale/index.js +36 -0
  33. package/es/locale/ja_JP.d.ts +590 -0
  34. package/es/locale/ja_JP.js +591 -0
  35. package/es/locale/ru_RU.d.ts +560 -0
  36. package/es/locale/ru_RU.js +559 -0
  37. package/es/locale/tr_TR.d.ts +560 -0
  38. package/es/locale/tr_TR.js +559 -0
  39. package/es/locale/zh_CN.d.ts +30 -0
  40. package/es/locale/zh_CN.js +34 -4
  41. package/es/route-switch/antd/admin-layout/index.js +19 -4
  42. package/es/schema-component/antd/action/Action.js +3 -1
  43. package/es/schema-component/antd/action/ActionBar.js +8 -1
  44. package/es/schema-component/antd/cron/Cron.d.ts +6 -0
  45. package/es/schema-component/antd/cron/Cron.js +49 -0
  46. package/es/schema-component/antd/cron/index.d.ts +1 -0
  47. package/es/schema-component/antd/cron/index.js +1 -0
  48. package/es/schema-component/antd/cron/locale/zh-CN.d.ts +34 -0
  49. package/es/schema-component/antd/cron/locale/zh-CN.js +37 -0
  50. package/es/schema-component/antd/filter/Filter.Action.Designer.js +1 -0
  51. package/es/schema-component/antd/filter/useFilterActionProps.d.ts +12 -1
  52. package/es/schema-component/antd/filter/useFilterActionProps.js +24 -10
  53. package/es/schema-component/antd/filter/useValues.js +0 -1
  54. package/es/schema-component/antd/formula-input/Compute.js +1 -1
  55. package/es/schema-component/antd/grid/Grid.js +134 -25
  56. package/es/schema-component/antd/index.d.ts +1 -0
  57. package/es/schema-component/antd/index.js +1 -0
  58. package/es/schema-component/antd/record-picker/InputRecordPicker.js +4 -2
  59. package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +5 -2
  60. package/es/schema-component/antd/record-picker/util.d.ts +5 -0
  61. package/es/schema-component/antd/record-picker/util.js +37 -0
  62. package/es/schema-component/antd/upload/shared.js +6 -2
  63. package/es/schema-component/common/dnd-context/index.js +30 -4
  64. package/es/schema-component/hooks/useDesignable.d.ts +2 -2
  65. package/es/schema-component/hooks/useDesignable.js +130 -26
  66. package/es/schema-initializer/SchemaInitializer.d.ts +1 -0
  67. package/es/schema-initializer/SchemaInitializer.js +6 -2
  68. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +2 -1
  69. package/es/schema-initializer/buttons/TabPaneInitializers.js +9 -3
  70. package/es/schema-initializer/items/ActionInitializer.d.ts +1 -0
  71. package/es/schema-initializer/items/ActionInitializer.js +13 -0
  72. package/es/schema-initializer/items/BlockInitializer.d.ts +1 -0
  73. package/es/schema-initializer/items/BlockInitializer.js +18 -0
  74. package/es/schema-initializer/items/BulkDestroyActionInitializer.d.ts +1 -0
  75. package/es/schema-initializer/items/BulkDestroyActionInitializer.js +27 -0
  76. package/es/schema-initializer/items/CalendarBlockInitializer.d.ts +1 -0
  77. package/es/schema-initializer/items/CalendarBlockInitializer.js +124 -0
  78. package/es/schema-initializer/items/CollectionFieldInitializer.d.ts +1 -0
  79. package/es/schema-initializer/items/CollectionFieldInitializer.js +15 -0
  80. package/es/schema-initializer/items/CreateActionInitializer.d.ts +1 -0
  81. package/es/schema-initializer/items/CreateActionInitializer.js +60 -0
  82. package/es/schema-initializer/items/CreateFormBlockInitializer.d.ts +1 -0
  83. package/es/schema-initializer/items/CreateFormBlockInitializer.js +102 -0
  84. package/es/schema-initializer/items/CreateSubmitActionInitializer.d.ts +1 -0
  85. package/es/schema-initializer/items/CreateSubmitActionInitializer.js +24 -0
  86. package/es/schema-initializer/items/CustomizeActionInitializer.d.ts +1 -0
  87. package/es/schema-initializer/items/CustomizeActionInitializer.js +11 -0
  88. package/es/schema-initializer/items/DataBlockInitializer.d.ts +1 -0
  89. package/es/schema-initializer/items/DataBlockInitializer.js +88 -0
  90. package/es/schema-initializer/items/DestroyActionInitializer.d.ts +1 -0
  91. package/es/schema-initializer/items/DestroyActionInitializer.js +27 -0
  92. package/es/schema-initializer/items/DetailsBlockInitializer.d.ts +1 -0
  93. package/es/schema-initializer/items/DetailsBlockInitializer.js +55 -0
  94. package/es/schema-initializer/items/FilterActionInitializer.d.ts +1 -0
  95. package/es/schema-initializer/items/FilterActionInitializer.js +24 -0
  96. package/es/schema-initializer/items/FormBlockInitializer.d.ts +1 -0
  97. package/es/schema-initializer/items/FormBlockInitializer.js +30 -0
  98. package/es/schema-initializer/items/G2PlotInitializer.d.ts +1 -0
  99. package/es/schema-initializer/items/G2PlotInitializer.js +25 -0
  100. package/es/schema-initializer/items/InitializerWithSwitch.d.ts +1 -0
  101. package/es/schema-initializer/items/InitializerWithSwitch.js +32 -0
  102. package/es/schema-initializer/items/KanbanBlockInitializer.d.ts +1 -0
  103. package/es/schema-initializer/items/KanbanBlockInitializer.js +138 -0
  104. package/es/schema-initializer/items/MarkdownBlockInitializer.d.ts +1 -0
  105. package/es/schema-initializer/items/MarkdownBlockInitializer.js +32 -0
  106. package/es/schema-initializer/items/PrintActionInitializer.d.ts +1 -0
  107. package/es/schema-initializer/items/PrintActionInitializer.js +23 -0
  108. package/es/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +1 -0
  109. package/es/schema-initializer/items/RecordAssociationBlockInitializer.js +90 -0
  110. package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +1 -0
  111. package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.js +160 -0
  112. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +1 -0
  113. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +90 -0
  114. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +1 -0
  115. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.js +112 -0
  116. package/es/schema-initializer/items/RecordFormBlockInitializer.d.ts +1 -0
  117. package/es/schema-initializer/items/RecordFormBlockInitializer.js +109 -0
  118. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +1 -0
  119. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +116 -0
  120. package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +1 -0
  121. package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +114 -0
  122. package/es/schema-initializer/items/RefreshActionInitializer.d.ts +1 -0
  123. package/es/schema-initializer/items/RefreshActionInitializer.js +23 -0
  124. package/es/schema-initializer/items/SubmitActionInitializer.d.ts +1 -0
  125. package/es/schema-initializer/items/SubmitActionInitializer.js +24 -0
  126. package/es/schema-initializer/items/TableActionColumnInitializer.d.ts +1 -0
  127. package/es/schema-initializer/items/TableActionColumnInitializer.js +34 -0
  128. package/es/schema-initializer/items/TableBlockInitializer.d.ts +1 -0
  129. package/es/schema-initializer/items/TableBlockInitializer.js +55 -0
  130. package/es/schema-initializer/items/TableCollectionFieldInitializer.d.ts +1 -0
  131. package/es/schema-initializer/items/TableCollectionFieldInitializer.js +15 -0
  132. package/es/schema-initializer/items/TableSelectorInitializer.d.ts +1 -0
  133. package/es/schema-initializer/items/TableSelectorInitializer.js +67 -0
  134. package/es/schema-initializer/items/UpdateActionInitializer.d.ts +1 -0
  135. package/es/schema-initializer/items/UpdateActionInitializer.js +59 -0
  136. package/es/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +1 -0
  137. package/es/schema-initializer/items/UpdateSubmitActionInitializer.js +24 -0
  138. package/es/schema-initializer/items/ViewActionInitializer.d.ts +1 -0
  139. package/es/schema-initializer/items/ViewActionInitializer.js +58 -0
  140. package/es/schema-initializer/items/index.d.ts +35 -35
  141. package/es/schema-initializer/items/index.js +35 -1589
  142. package/es/schema-initializer/style.less +4 -0
  143. package/es/schema-templates/SchemaTemplateManagerProvider.js +2 -5
  144. package/es/system-settings/SystemSettingsShortcut.js +7 -0
  145. package/es/user/SigninPage.d.ts +11 -2
  146. package/es/user/SigninPage.js +140 -33
  147. package/es/user/SignupPage.d.ts +13 -2
  148. package/es/user/SignupPage.js +57 -11
  149. package/es/user/VerificationCode.d.ts +7 -0
  150. package/es/user/VerificationCode.js +129 -0
  151. package/lib/application/Application.js +1 -4
  152. package/lib/block-provider/TableBlockProvider.js +3 -3
  153. package/lib/collection-manager/Configuration/AddFieldAction.js +38 -40
  154. package/lib/collection-manager/Configuration/ConfigurationTable.js +7 -2
  155. package/lib/collection-manager/Configuration/EditFieldAction.js +65 -40
  156. package/lib/collection-manager/Configuration/schemas/collections.d.ts +2 -0
  157. package/lib/collection-manager/Configuration/schemas/collections.js +24 -1
  158. package/lib/collection-manager/action-hooks.d.ts +5 -0
  159. package/lib/collection-manager/action-hooks.js +31 -14
  160. package/lib/collection-manager/interfaces/email.js +3 -1
  161. package/lib/collection-manager/interfaces/formula.js +1 -1
  162. package/lib/collection-manager/interfaces/index.d.ts +1 -0
  163. package/lib/collection-manager/interfaces/index.js +13 -0
  164. package/lib/collection-manager/interfaces/input.js +3 -1
  165. package/lib/collection-manager/interfaces/integer.js +3 -1
  166. package/lib/collection-manager/interfaces/m2m.js +1 -1
  167. package/lib/collection-manager/interfaces/m2o.js +6 -2
  168. package/lib/collection-manager/interfaces/number.js +4 -3
  169. package/lib/collection-manager/interfaces/o2m.js +7 -3
  170. package/lib/collection-manager/interfaces/o2o.js +18 -5
  171. package/lib/collection-manager/interfaces/password.js +3 -1
  172. package/lib/collection-manager/interfaces/percent.js +1 -0
  173. package/lib/collection-manager/interfaces/phone.js +3 -1
  174. package/lib/collection-manager/interfaces/properties/index.d.ts +7 -0
  175. package/lib/collection-manager/interfaces/properties/index.js +94 -1
  176. package/lib/collection-manager/interfaces/sequence.d.ts +2 -0
  177. package/lib/collection-manager/interfaces/sequence.js +455 -0
  178. package/lib/index.d.ts +0 -1
  179. package/lib/index.js +0 -13
  180. package/lib/locale/en_US.d.ts +1 -0
  181. package/lib/locale/en_US.js +2 -1
  182. package/lib/locale/index.js +42 -0
  183. package/lib/locale/ja_JP.d.ts +590 -0
  184. package/lib/locale/ja_JP.js +598 -0
  185. package/lib/locale/ru_RU.d.ts +560 -0
  186. package/lib/locale/ru_RU.js +566 -0
  187. package/lib/locale/tr_TR.d.ts +560 -0
  188. package/lib/locale/tr_TR.js +566 -0
  189. package/lib/locale/zh_CN.d.ts +30 -0
  190. package/lib/locale/zh_CN.js +34 -4
  191. package/lib/route-switch/antd/admin-layout/index.js +19 -4
  192. package/lib/schema-component/antd/action/Action.js +2 -0
  193. package/lib/schema-component/antd/action/ActionBar.js +9 -1
  194. package/lib/schema-component/antd/cron/Cron.d.ts +6 -0
  195. package/lib/schema-component/antd/cron/Cron.js +67 -0
  196. package/lib/schema-component/antd/cron/index.d.ts +1 -0
  197. package/lib/{file-manager → schema-component/antd/cron}/index.js +4 -4
  198. package/lib/schema-component/antd/cron/locale/zh-CN.d.ts +34 -0
  199. package/lib/schema-component/antd/cron/locale/zh-CN.js +44 -0
  200. package/lib/schema-component/antd/filter/Filter.Action.Designer.js +1 -0
  201. package/lib/schema-component/antd/filter/useFilterActionProps.d.ts +12 -1
  202. package/lib/schema-component/antd/filter/useFilterActionProps.js +34 -11
  203. package/lib/schema-component/antd/filter/useValues.js +0 -1
  204. package/lib/schema-component/antd/formula-input/Compute.js +1 -1
  205. package/lib/schema-component/antd/grid/Grid.js +132 -23
  206. package/lib/schema-component/antd/index.d.ts +1 -0
  207. package/lib/schema-component/antd/index.js +13 -0
  208. package/lib/schema-component/antd/record-picker/InputRecordPicker.js +5 -2
  209. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +6 -2
  210. package/lib/schema-component/antd/record-picker/util.d.ts +5 -0
  211. package/lib/schema-component/antd/record-picker/util.js +55 -0
  212. package/lib/schema-component/antd/upload/shared.js +5 -1
  213. package/lib/schema-component/common/dnd-context/index.js +35 -5
  214. package/lib/schema-component/hooks/useDesignable.d.ts +2 -2
  215. package/lib/schema-component/hooks/useDesignable.js +132 -28
  216. package/lib/schema-initializer/SchemaInitializer.d.ts +1 -0
  217. package/lib/schema-initializer/SchemaInitializer.js +7 -2
  218. package/lib/schema-initializer/buttons/TabPaneInitializers.d.ts +2 -1
  219. package/lib/schema-initializer/buttons/TabPaneInitializers.js +13 -4
  220. package/lib/schema-initializer/items/ActionInitializer.d.ts +1 -0
  221. package/lib/schema-initializer/items/ActionInitializer.js +26 -0
  222. package/lib/schema-initializer/items/BlockInitializer.d.ts +1 -0
  223. package/lib/schema-initializer/items/BlockInitializer.js +31 -0
  224. package/lib/schema-initializer/items/BulkDestroyActionInitializer.d.ts +1 -0
  225. package/lib/schema-initializer/items/BulkDestroyActionInitializer.js +40 -0
  226. package/lib/schema-initializer/items/CalendarBlockInitializer.d.ts +1 -0
  227. package/lib/schema-initializer/items/CalendarBlockInitializer.js +148 -0
  228. package/lib/schema-initializer/items/CollectionFieldInitializer.d.ts +1 -0
  229. package/lib/schema-initializer/items/CollectionFieldInitializer.js +28 -0
  230. package/lib/schema-initializer/items/CreateActionInitializer.d.ts +1 -0
  231. package/lib/schema-initializer/items/CreateActionInitializer.js +73 -0
  232. package/lib/schema-initializer/items/CreateFormBlockInitializer.d.ts +1 -0
  233. package/lib/schema-initializer/items/CreateFormBlockInitializer.js +120 -0
  234. package/lib/schema-initializer/items/CreateSubmitActionInitializer.d.ts +1 -0
  235. package/lib/schema-initializer/items/CreateSubmitActionInitializer.js +37 -0
  236. package/lib/schema-initializer/items/CustomizeActionInitializer.d.ts +1 -0
  237. package/lib/schema-initializer/items/CustomizeActionInitializer.js +24 -0
  238. package/lib/schema-initializer/items/DataBlockInitializer.d.ts +1 -0
  239. package/lib/schema-initializer/items/DataBlockInitializer.js +104 -0
  240. package/lib/schema-initializer/items/DestroyActionInitializer.d.ts +1 -0
  241. package/lib/schema-initializer/items/DestroyActionInitializer.js +40 -0
  242. package/lib/schema-initializer/items/DetailsBlockInitializer.d.ts +1 -0
  243. package/lib/schema-initializer/items/DetailsBlockInitializer.js +71 -0
  244. package/lib/schema-initializer/items/FilterActionInitializer.d.ts +1 -0
  245. package/lib/schema-initializer/items/FilterActionInitializer.js +37 -0
  246. package/lib/schema-initializer/items/FormBlockInitializer.d.ts +1 -0
  247. package/lib/schema-initializer/items/FormBlockInitializer.js +45 -0
  248. package/lib/schema-initializer/items/G2PlotInitializer.d.ts +1 -0
  249. package/lib/schema-initializer/items/G2PlotInitializer.js +38 -0
  250. package/lib/schema-initializer/items/InitializerWithSwitch.d.ts +1 -0
  251. package/lib/schema-initializer/items/InitializerWithSwitch.js +47 -0
  252. package/lib/schema-initializer/items/KanbanBlockInitializer.d.ts +1 -0
  253. package/lib/schema-initializer/items/KanbanBlockInitializer.js +163 -0
  254. package/lib/schema-initializer/items/MarkdownBlockInitializer.d.ts +1 -0
  255. package/lib/schema-initializer/items/MarkdownBlockInitializer.js +47 -0
  256. package/lib/schema-initializer/items/PrintActionInitializer.d.ts +1 -0
  257. package/lib/schema-initializer/items/PrintActionInitializer.js +36 -0
  258. package/lib/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +1 -0
  259. package/lib/schema-initializer/items/RecordAssociationBlockInitializer.js +107 -0
  260. package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +1 -0
  261. package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.js +185 -0
  262. package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +1 -0
  263. package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +107 -0
  264. package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +1 -0
  265. package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.js +128 -0
  266. package/lib/schema-initializer/items/RecordFormBlockInitializer.d.ts +1 -0
  267. package/lib/schema-initializer/items/RecordFormBlockInitializer.js +127 -0
  268. package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +1 -0
  269. package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +133 -0
  270. package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +1 -0
  271. package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +132 -0
  272. package/lib/schema-initializer/items/RefreshActionInitializer.d.ts +1 -0
  273. package/lib/schema-initializer/items/RefreshActionInitializer.js +36 -0
  274. package/lib/schema-initializer/items/SubmitActionInitializer.d.ts +1 -0
  275. package/lib/schema-initializer/items/SubmitActionInitializer.js +37 -0
  276. package/lib/schema-initializer/items/TableActionColumnInitializer.d.ts +1 -0
  277. package/lib/schema-initializer/items/TableActionColumnInitializer.js +47 -0
  278. package/lib/schema-initializer/items/TableBlockInitializer.d.ts +1 -0
  279. package/lib/schema-initializer/items/TableBlockInitializer.js +71 -0
  280. package/lib/schema-initializer/items/TableCollectionFieldInitializer.d.ts +1 -0
  281. package/lib/schema-initializer/items/TableCollectionFieldInitializer.js +28 -0
  282. package/lib/schema-initializer/items/TableSelectorInitializer.d.ts +1 -0
  283. package/lib/schema-initializer/items/TableSelectorInitializer.js +84 -0
  284. package/lib/schema-initializer/items/UpdateActionInitializer.d.ts +1 -0
  285. package/lib/schema-initializer/items/UpdateActionInitializer.js +72 -0
  286. package/lib/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +1 -0
  287. package/lib/schema-initializer/items/UpdateSubmitActionInitializer.js +37 -0
  288. package/lib/schema-initializer/items/ViewActionInitializer.d.ts +1 -0
  289. package/lib/schema-initializer/items/ViewActionInitializer.js +71 -0
  290. package/lib/schema-initializer/items/index.d.ts +35 -35
  291. package/lib/schema-initializer/items/index.js +400 -1659
  292. package/lib/schema-initializer/style.less +4 -0
  293. package/lib/schema-templates/SchemaTemplateManagerProvider.js +2 -5
  294. package/lib/system-settings/SystemSettingsShortcut.js +7 -0
  295. package/lib/user/SigninPage.d.ts +11 -2
  296. package/lib/user/SigninPage.js +150 -34
  297. package/lib/user/SignupPage.d.ts +13 -2
  298. package/lib/user/SignupPage.js +59 -11
  299. package/lib/user/VerificationCode.d.ts +7 -0
  300. package/lib/user/VerificationCode.js +148 -0
  301. package/package.json +6 -4
  302. package/es/file-manager/FileStorageShortcut.d.ts +0 -1
  303. package/es/file-manager/FileStorageShortcut.js +0 -61
  304. package/es/file-manager/StorageOptions.d.ts +0 -2
  305. package/es/file-manager/StorageOptions.js +0 -121
  306. package/es/file-manager/index.d.ts +0 -1
  307. package/es/file-manager/index.js +0 -1
  308. package/es/file-manager/schemas/storage.d.ts +0 -2
  309. package/es/file-manager/schemas/storage.js +0 -349
  310. package/lib/file-manager/FileStorageShortcut.d.ts +0 -1
  311. package/lib/file-manager/FileStorageShortcut.js +0 -85
  312. package/lib/file-manager/StorageOptions.d.ts +0 -2
  313. package/lib/file-manager/StorageOptions.js +0 -138
  314. package/lib/file-manager/index.d.ts +0 -1
  315. package/lib/file-manager/schemas/storage.d.ts +0 -2
  316. package/lib/file-manager/schemas/storage.js +0 -360
@@ -43,6 +43,7 @@ export default {
43
43
  "Super admin": "超级管理员",
44
44
  "Language": "语言设置",
45
45
  "Allow sign up": "允许注册",
46
+ "Enable SMS authentication": "启用短信登录和注册",
46
47
  "Sign out": "注销",
47
48
  "Cancel": "取消",
48
49
  "Submit": "提交",
@@ -126,6 +127,20 @@ export default {
126
127
  "Password": "密码",
127
128
  "Formula": "公式",
128
129
  "Formula description": "基于同一条记录中的其他字段计算出一个值。",
130
+ "Sequence": "自动编码",
131
+ "Sequence rules": "编号规则",
132
+ "Add rule": "添加规则",
133
+ "Type": "类型",
134
+ "Autoincrement": "自增数字",
135
+ "Fixed text": "固定文本",
136
+ "Text content": "文本内容",
137
+ "Rule content": "规则内容",
138
+ "{{value}} Digits": "{{value}} 位数字",
139
+ "Digits": "位数",
140
+ "Start from": "起始于",
141
+ "Starts from {{value}}": "从 {{value}} 开始",
142
+ "Reset cycle": "重置周期",
143
+ "Operations": "操作",
129
144
  "Choices": "选择类型",
130
145
  "Checkbox": "勾选",
131
146
  "Single select": "下拉菜单(单选)",
@@ -157,7 +172,8 @@ export default {
157
172
  "Time format": "时间格式",
158
173
  "12 hour": "12 小时制",
159
174
  "24 hour": "24 小时制",
160
- "Relationship type": "关联类型",
175
+ "Relationship type": "关系类型",
176
+ "Inverse relationship type": "反向关系类型",
161
177
  "Source collection": "源数据表",
162
178
  "Source key": "源数据表字段标识",
163
179
  "Target collection": "目标数据表",
@@ -230,6 +246,7 @@ export default {
230
246
  "Custom column name": "自定义列名称",
231
247
  "Edit description": "编辑描述",
232
248
  "Required": "必填",
249
+ "Unique": "不允许重复",
233
250
  "Label field": "标签字段",
234
251
  "Default is the ID field": "默认为 ID 字段",
235
252
  "Set default sorting rules": "设置排序规则",
@@ -295,13 +312,18 @@ export default {
295
312
  "Saved successfully": "保存成功",
296
313
  "Nickname": "昵称",
297
314
  "Sign in": "登录",
315
+ "Sign in via account": "账号密码登录",
316
+ "Sign in via phone": "手机号登录",
298
317
  "Create an account": "注册账号",
299
318
  "Sign up": "注册",
300
319
  "Confirm password": "确认密码",
301
320
  "Log in with an existing account": "使用已有账号登录",
302
321
  "Signed up successfully. It will jump to the login page.": "注册成功,将跳转登录页。",
303
- "Password mismatch": "确认密码不匹配",
322
+ "Password mismatch": "重复密码不匹配",
304
323
  "Users": "用户",
324
+ "Verification code": "验证码",
325
+ "Send code": "发送验证码",
326
+ "Retry after {{count}} seconds": "{{count}} 秒后重试",
305
327
  "Roles": "角色",
306
328
  "Add role": "添加角色",
307
329
  "Role name": "角色名称",
@@ -447,11 +469,14 @@ export default {
447
469
  'Add storage': '添加文件存储',
448
470
  'Edit storage': '编辑文件存储',
449
471
  'Storage base URL': 'Base URL',
450
- 'Destination': '文件路径',
472
+ 'Destination': '存储路径(绝对)',
451
473
  'Use the built-in static file server': '使用内置静态文件服务',
452
474
  'Local storage': '本地存储',
453
475
  'Aliyun OSS': '阿里云 OSS',
454
476
  'Amazon S3': '亚马逊 S3',
477
+ 'Region': '区域',
478
+ 'Bucket': '存储桶',
479
+ 'Path': '路径(相对)',
455
480
  // plugins/workflow
456
481
  'Workflow': '工作流',
457
482
  'Execution History': '执行历史',
@@ -523,6 +548,7 @@ export default {
523
548
  'Calculation result': '运算结果',
524
549
  'True': '真',
525
550
  'False': '假',
551
+ 'concat': '连接',
526
552
  'Condition': '条件判断',
527
553
  'Mode': '模式',
528
554
  'Continue when "Yes"': '“是”则继续',
@@ -600,5 +626,9 @@ export default {
600
626
  "Province/city/area name": "省市区名称",
601
627
  "Enabled languages": "启用的语言",
602
628
  "View all plugins": "查看所有插件",
603
- "Print": "打印"
629
+ "Print": "打印",
630
+ 'Sign up successfully, and automatically jump to the sign in page': '注册成功,即将跳转到登录页面',
631
+ 'Create inverse field in the target collection': '在目标数据表里创建反向关系字段',
632
+ 'Inverse field name': '反向关系字段标识',
633
+ 'Inverse field display name': '反向关系字段名称'
604
634
  };
@@ -86,17 +86,32 @@ var MenuEditor = function MenuEditor(props) {
86
86
  var schema = filterByACL(data === null || data === void 0 ? void 0 : data.data, ctx);
87
87
 
88
88
  if (defaultSelectedUid) {
89
+ if (defaultSelectedUid.includes('/')) {
90
+ return;
91
+ }
92
+
89
93
  var s = findByUid(schema, defaultSelectedUid);
90
94
 
91
95
  if (s) {
92
96
  setTitle(s.title);
97
+ } else {
98
+ var _s = findMenuItem(schema);
99
+
100
+ if (_s) {
101
+ history.push("/admin/".concat(_s['x-uid']));
102
+ setTitle(_s.title);
103
+ } else {
104
+ history.push("/admin/");
105
+ }
93
106
  }
94
107
  } else {
95
- var _s = findMenuItem(schema);
108
+ var _s2 = findMenuItem(schema);
96
109
 
97
- if (_s) {
98
- history.push("/admin/".concat(_s['x-uid']));
99
- setTitle(_s.title);
110
+ if (_s2) {
111
+ history.push("/admin/".concat(_s2['x-uid']));
112
+ setTitle(_s2.title);
113
+ } else {
114
+ history.push("/admin/");
100
115
  }
101
116
  }
102
117
  }
@@ -27,7 +27,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
27
27
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
28
28
 
29
29
  import { css } from '@emotion/css';
30
- import { observer, RecursionField, useField, useFieldSchema } from '@formily/react';
30
+ import { observer, RecursionField, useField, useFieldSchema, useForm } from '@formily/react';
31
31
  import { Button, Modal, Popover } from 'antd';
32
32
  import classnames from 'classnames';
33
33
  import React, { useState } from 'react';
@@ -81,6 +81,7 @@ export var Action = observer(function (props) {
81
81
 
82
82
  var fieldSchema = useFieldSchema();
83
83
  var compile = useCompile();
84
+ var form = useForm();
84
85
  var designerProps = fieldSchema['x-designer-props'];
85
86
  var openMode = fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon === void 0 ? void 0 : _fieldSchema$xCompon['openMode'];
86
87
 
@@ -92,6 +93,7 @@ export var Action = observer(function (props) {
92
93
  icon: /*#__PURE__*/React.createElement(Icon, {
93
94
  type: icon
94
95
  }),
96
+ disabled: form.disabled,
95
97
  onClick: function onClick(e) {
96
98
  e.preventDefault();
97
99
  e.stopPropagation();
@@ -1,5 +1,9 @@
1
+ var _templateObject;
2
+
1
3
  var _excluded = ["layout", "style"];
2
4
 
5
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
6
+
3
7
  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; }
4
8
 
5
9
  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; }
@@ -10,6 +14,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
10
14
 
11
15
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
16
 
17
+ import { css } from '@emotion/css';
13
18
  import { observer, RecursionField, useFieldSchema } from '@formily/react';
14
19
  import { Space } from 'antd';
15
20
  import React from 'react';
@@ -48,9 +53,11 @@ export var ActionBar = observer(function (props) {
48
53
  style: _objectSpread({
49
54
  display: 'flex',
50
55
  justifyContent: 'space-between',
51
- alignItems: 'center'
56
+ alignItems: 'center',
57
+ overflowX: 'auto'
52
58
  }, style)
53
59
  }, others), /*#__PURE__*/React.createElement("div", {
60
+ className: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-space:last-child {\n margin-left: 8px;\n }\n "]))),
54
61
  style: {
55
62
  display: 'flex',
56
63
  justifyContent: 'space-between',
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { CronProps } from 'react-js-cron';
3
+ import 'cronstrue/locales/zh_CN';
4
+ declare type ComposedCron = React.FC<CronProps> & {};
5
+ export declare const Cron: ComposedCron;
6
+ export default Cron;
@@ -0,0 +1,49 @@
1
+ var _templateObject;
2
+
3
+ var _excluded = ["onChange"];
4
+
5
+ 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; }
6
+
7
+ 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; }
8
+
9
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
+
11
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
+
13
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
+
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
+
17
+ import React from 'react';
18
+ import { connect, mapReadPretty } from '@formily/react';
19
+ import { Cron as ReactCron } from 'react-js-cron';
20
+ import cronstrue from 'cronstrue';
21
+ import 'cronstrue/locales/zh_CN';
22
+ import { css } from '@emotion/css';
23
+ import localeZhCN from './locale/zh-CN';
24
+ var ComponentLocales = {
25
+ 'zh-CN': localeZhCN
26
+ };
27
+ var ReadPrettyLocales = {
28
+ 'en-US': 'en',
29
+ 'zh-CN': 'zh_CN'
30
+ };
31
+ export var Cron = connect(function (props) {
32
+ var onChange = props.onChange,
33
+ rest = _objectWithoutProperties(props, _excluded);
34
+
35
+ var locale = ComponentLocales[localStorage.getItem('NOCOBASE_LOCALE') || 'en-US'];
36
+ return /*#__PURE__*/React.createElement("fieldset", {
37
+ className: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .react-js-cron{\n padding: .5em .5em 0 .5em;\n border: 1px dashed #ccc;\n\n .react-js-cron-field{\n flex-shrink: 0;\n margin-bottom: .5em;\n\n > span{\n flex-shrink: 0;\n margin: 0 .5em 0 0;\n }\n\n > .react-js-cron-select{\n margin: 0 .5em 0 0;\n }\n }\n "])))
38
+ }, /*#__PURE__*/React.createElement(ReactCron, _objectSpread({
39
+ setValue: onChange,
40
+ locale: locale
41
+ }, rest)));
42
+ }, mapReadPretty(function (props) {
43
+ var locale = ReadPrettyLocales[localStorage.getItem('NOCOBASE_LOCALE') || 'en-US'];
44
+ return props.value ? /*#__PURE__*/React.createElement("span", null, cronstrue.toString(props.value, {
45
+ locale: locale,
46
+ use24HourTimeFormat: true
47
+ })) : null;
48
+ }));
49
+ export default Cron;
@@ -0,0 +1 @@
1
+ export * from './Cron';
@@ -0,0 +1 @@
1
+ export * from './Cron';
@@ -0,0 +1,34 @@
1
+ declare const _default: {
2
+ everyText: string;
3
+ emptyMonths: string;
4
+ emptyMonthDays: string;
5
+ emptyMonthDaysShort: string;
6
+ emptyWeekDays: string;
7
+ emptyWeekDaysShort: string;
8
+ emptyHours: string;
9
+ emptyMinutes: string;
10
+ emptyMinutesForHourPeriod: string;
11
+ yearOption: string;
12
+ monthOption: string;
13
+ weekOption: string;
14
+ dayOption: string;
15
+ hourOption: string;
16
+ minuteOption: string;
17
+ rebootOption: string;
18
+ prefixPeriod: string;
19
+ prefixMonths: string;
20
+ prefixMonthDays: string;
21
+ prefixWeekDays: string;
22
+ prefixWeekDaysForMonthAndYearPeriod: string;
23
+ prefixHours: string;
24
+ prefixMinutes: string;
25
+ prefixMinutesForHourPeriod: string;
26
+ suffixMinutesForHourPeriod: string;
27
+ errorInvalidCron: string;
28
+ clearButtonText: string;
29
+ weekDays: string[];
30
+ months: string[];
31
+ altWeekDays: string[];
32
+ altMonths: string[];
33
+ };
34
+ export default _default;
@@ -0,0 +1,37 @@
1
+ export default {
2
+ everyText: '每',
3
+ emptyMonths: '每月',
4
+ emptyMonthDays: '每日(月)',
5
+ emptyMonthDaysShort: '每日',
6
+ emptyWeekDays: '每天(周)',
7
+ emptyWeekDaysShort: '每天(周)',
8
+ emptyHours: '每小时',
9
+ emptyMinutes: '每分钟',
10
+ emptyMinutesForHourPeriod: '每',
11
+ yearOption: '年',
12
+ monthOption: '月',
13
+ weekOption: '周',
14
+ dayOption: '天',
15
+ hourOption: '小时',
16
+ minuteOption: '分钟',
17
+ rebootOption: '重启',
18
+ prefixPeriod: '每',
19
+ prefixMonths: '的',
20
+ prefixMonthDays: '的',
21
+ prefixWeekDays: '的',
22
+ prefixWeekDaysForMonthAndYearPeriod: '并且',
23
+ prefixHours: '的',
24
+ prefixMinutes: ':',
25
+ prefixMinutesForHourPeriod: '的',
26
+ suffixMinutesForHourPeriod: '分钟',
27
+ errorInvalidCron: '不符合 cron 规则的表达式',
28
+ clearButtonText: '清空',
29
+ weekDays: [// Order is important, the index will be used as value
30
+ '周日', '周一', '周二', '周三', '周四', '周五', '周六'],
31
+ months: [// Order is important, the index will be used as value
32
+ '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
33
+ altWeekDays: [// Order is important, the index will be used as value
34
+ '周日', '周一', '周二', '周三', '周四', '周五', '周六'],
35
+ altMonths: [// Order is important, the index will be used as value
36
+ '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
37
+ };
@@ -61,6 +61,7 @@ export var FilterActionDesigner = function FilterActionDesigner(props) {
61
61
 
62
62
  var checked = !nonfilterable.includes(field.name);
63
63
  return /*#__PURE__*/React.createElement(SchemaSettings.SwitchItem, {
64
+ key: field.name,
64
65
  checked: checked,
65
66
  title: compile(field === null || field === void 0 ? void 0 : (_field$uiSchema = field.uiSchema) === null || _field$uiSchema === void 0 ? void 0 : _field$uiSchema.title),
66
67
  onChange: function onChange(value) {
@@ -1,7 +1,18 @@
1
1
  export declare const useFilterOptions: (collectionName: string) => any[];
2
+ export declare const useFilterFieldOptions: (fields: any) => any[];
3
+ export declare const removeNullCondition: (filter: any) => any;
2
4
  export declare const mergeFilter: (filter1: any, filter2: any) => any;
3
5
  export declare const useFilterActionProps: () => {
4
- options: any[];
6
+ options: any;
7
+ onSubmit(values: any): void;
8
+ onReset(): void;
9
+ };
10
+ export declare const useFilterFieldProps: ({ options, service, params }: {
11
+ options: any;
12
+ service: any;
13
+ params: any;
14
+ }) => {
15
+ options: any;
5
16
  onSubmit(values: any): void;
6
17
  onReset(): void;
7
18
  };
@@ -22,16 +22,21 @@ import { useTranslation } from 'react-i18next';
22
22
  import { useBlockRequestContext } from '../../../block-provider';
23
23
  import { useCollection, useCollectionManager } from '../../../collection-manager';
24
24
  export var useFilterOptions = function useFilterOptions(collectionName) {
25
+ var _useCollectionManager = useCollectionManager(),
26
+ getCollectionFields = _useCollectionManager.getCollectionFields;
27
+
28
+ var fields = getCollectionFields(collectionName);
29
+ return useFilterFieldOptions(fields);
30
+ };
31
+ export var useFilterFieldOptions = function useFilterFieldOptions(fields) {
25
32
  var _fieldSchema$xCompon;
26
33
 
27
34
  var fieldSchema = useFieldSchema();
28
35
  var nonfilterable = (fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon === void 0 ? void 0 : _fieldSchema$xCompon.nonfilterable) || [];
29
36
 
30
- var _useCollectionManager = useCollectionManager(),
31
- getCollectionFields = _useCollectionManager.getCollectionFields,
32
- getInterface = _useCollectionManager.getInterface;
33
-
34
- var fields = getCollectionFields(collectionName);
37
+ var _useCollectionManager2 = useCollectionManager(),
38
+ getCollectionFields = _useCollectionManager2.getCollectionFields,
39
+ getInterface = _useCollectionManager2.getInterface;
35
40
 
36
41
  var field2option = function field2option(field, depth) {
37
42
  var _field$uiSchema, _operators$filter;
@@ -109,7 +114,7 @@ var isEmpty = function isEmpty(obj) {
109
114
  return obj && Object.keys(obj).length === 0 && Object.getPrototypeOf(obj) === Object.prototype;
110
115
  };
111
116
 
112
- var removeNullCondition = function removeNullCondition(filter) {
117
+ export var removeNullCondition = function removeNullCondition(filter) {
113
118
  var items = flat(filter || {});
114
119
  var values = {};
115
120
 
@@ -123,7 +128,6 @@ var removeNullCondition = function removeNullCondition(filter) {
123
128
 
124
129
  return flat.unflatten(values);
125
130
  };
126
-
127
131
  export var mergeFilter = function mergeFilter(filter1, filter2) {
128
132
  if (filter1 && filter2) {
129
133
  return {
@@ -151,18 +155,28 @@ export var useFilterActionProps = function useFilterActionProps() {
151
155
  service = _useBlockRequestConte.service,
152
156
  props = _useBlockRequestConte.props;
153
157
 
154
- var field = useField();
158
+ return useFilterFieldProps({
159
+ options: options,
160
+ service: service,
161
+ params: props.params
162
+ });
163
+ };
164
+ export var useFilterFieldProps = function useFilterFieldProps(_ref) {
165
+ var options = _ref.options,
166
+ service = _ref.service,
167
+ params = _ref.params;
155
168
 
156
169
  var _useTranslation = useTranslation(),
157
170
  t = _useTranslation.t;
158
171
 
172
+ var field = useField();
159
173
  return {
160
174
  options: options,
161
175
  onSubmit: function onSubmit(values) {
162
176
  var _service$params;
163
177
 
164
178
  // filter parameter for the block
165
- var defaultFilter = removeNullCondition(props.params.filter); // filter parameter for the filter action
179
+ var defaultFilter = removeNullCondition(params.filter); // filter parameter for the filter action
166
180
 
167
181
  var filter = removeNullCondition(values === null || values === void 0 ? void 0 : values.filter);
168
182
  service.run(_objectSpread(_objectSpread({}, (_service$params = service.params) === null || _service$params === void 0 ? void 0 : _service$params[0]), {}, {
@@ -182,7 +196,7 @@ export var useFilterActionProps = function useFilterActionProps() {
182
196
  onReset: function onReset() {
183
197
  var _service$params2;
184
198
 
185
- var filter = removeNullCondition(props.params.filter);
199
+ var filter = removeNullCondition(params.filter);
186
200
  service.run(_objectSpread(_objectSpread({}, (_service$params2 = service.params) === null || _service$params2 === void 0 ? void 0 : _service$params2[0]), {}, {
187
201
  filter: filter,
188
202
  page: 1
@@ -88,7 +88,6 @@ export var useValues = function useValues() {
88
88
  field.data.operator = operator;
89
89
  field.data.schema = merge(option === null || option === void 0 ? void 0 : option.schema, operator === null || operator === void 0 ? void 0 : operator.schema);
90
90
  field.data.value = get(field.value, "".concat(fieldPath, ".$").concat(operatorValue));
91
- console.log('option', operator, field.data.value);
92
91
  };
93
92
 
94
93
  useEffect(function () {
@@ -37,7 +37,7 @@ var AntdCompute = function AntdCompute(props) {
37
37
 
38
38
  try {
39
39
  result = math.evaluate(expression, scope);
40
- result = math.round(result, 9);
40
+ result = Number.isFinite(result) ? math.round(result, 9) : null;
41
41
  } catch (_unused) {}
42
42
 
43
43
  if (onChange) {