@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
@@ -49,6 +49,7 @@ var _default = {
49
49
  "Super admin": "超级管理员",
50
50
  "Language": "语言设置",
51
51
  "Allow sign up": "允许注册",
52
+ "Enable SMS authentication": "启用短信登录和注册",
52
53
  "Sign out": "注销",
53
54
  "Cancel": "取消",
54
55
  "Submit": "提交",
@@ -132,6 +133,20 @@ var _default = {
132
133
  "Password": "密码",
133
134
  "Formula": "公式",
134
135
  "Formula description": "基于同一条记录中的其他字段计算出一个值。",
136
+ "Sequence": "自动编码",
137
+ "Sequence rules": "编号规则",
138
+ "Add rule": "添加规则",
139
+ "Type": "类型",
140
+ "Autoincrement": "自增数字",
141
+ "Fixed text": "固定文本",
142
+ "Text content": "文本内容",
143
+ "Rule content": "规则内容",
144
+ "{{value}} Digits": "{{value}} 位数字",
145
+ "Digits": "位数",
146
+ "Start from": "起始于",
147
+ "Starts from {{value}}": "从 {{value}} 开始",
148
+ "Reset cycle": "重置周期",
149
+ "Operations": "操作",
135
150
  "Choices": "选择类型",
136
151
  "Checkbox": "勾选",
137
152
  "Single select": "下拉菜单(单选)",
@@ -163,7 +178,8 @@ var _default = {
163
178
  "Time format": "时间格式",
164
179
  "12 hour": "12 小时制",
165
180
  "24 hour": "24 小时制",
166
- "Relationship type": "关联类型",
181
+ "Relationship type": "关系类型",
182
+ "Inverse relationship type": "反向关系类型",
167
183
  "Source collection": "源数据表",
168
184
  "Source key": "源数据表字段标识",
169
185
  "Target collection": "目标数据表",
@@ -236,6 +252,7 @@ var _default = {
236
252
  "Custom column name": "自定义列名称",
237
253
  "Edit description": "编辑描述",
238
254
  "Required": "必填",
255
+ "Unique": "不允许重复",
239
256
  "Label field": "标签字段",
240
257
  "Default is the ID field": "默认为 ID 字段",
241
258
  "Set default sorting rules": "设置排序规则",
@@ -301,13 +318,18 @@ var _default = {
301
318
  "Saved successfully": "保存成功",
302
319
  "Nickname": "昵称",
303
320
  "Sign in": "登录",
321
+ "Sign in via account": "账号密码登录",
322
+ "Sign in via phone": "手机号登录",
304
323
  "Create an account": "注册账号",
305
324
  "Sign up": "注册",
306
325
  "Confirm password": "确认密码",
307
326
  "Log in with an existing account": "使用已有账号登录",
308
327
  "Signed up successfully. It will jump to the login page.": "注册成功,将跳转登录页。",
309
- "Password mismatch": "确认密码不匹配",
328
+ "Password mismatch": "重复密码不匹配",
310
329
  "Users": "用户",
330
+ "Verification code": "验证码",
331
+ "Send code": "发送验证码",
332
+ "Retry after {{count}} seconds": "{{count}} 秒后重试",
311
333
  "Roles": "角色",
312
334
  "Add role": "添加角色",
313
335
  "Role name": "角色名称",
@@ -453,11 +475,14 @@ var _default = {
453
475
  'Add storage': '添加文件存储',
454
476
  'Edit storage': '编辑文件存储',
455
477
  'Storage base URL': 'Base URL',
456
- 'Destination': '文件路径',
478
+ 'Destination': '存储路径(绝对)',
457
479
  'Use the built-in static file server': '使用内置静态文件服务',
458
480
  'Local storage': '本地存储',
459
481
  'Aliyun OSS': '阿里云 OSS',
460
482
  'Amazon S3': '亚马逊 S3',
483
+ 'Region': '区域',
484
+ 'Bucket': '存储桶',
485
+ 'Path': '路径(相对)',
461
486
  // plugins/workflow
462
487
  'Workflow': '工作流',
463
488
  'Execution History': '执行历史',
@@ -529,6 +554,7 @@ var _default = {
529
554
  'Calculation result': '运算结果',
530
555
  'True': '真',
531
556
  'False': '假',
557
+ 'concat': '连接',
532
558
  'Condition': '条件判断',
533
559
  'Mode': '模式',
534
560
  'Continue when "Yes"': '“是”则继续',
@@ -606,6 +632,10 @@ var _default = {
606
632
  "Province/city/area name": "省市区名称",
607
633
  "Enabled languages": "启用的语言",
608
634
  "View all plugins": "查看所有插件",
609
- "Print": "打印"
635
+ "Print": "打印",
636
+ 'Sign up successfully, and automatically jump to the sign in page': '注册成功,即将跳转到登录页面',
637
+ 'Create inverse field in the target collection': '在目标数据表里创建反向关系字段',
638
+ 'Inverse field name': '反向关系字段标识',
639
+ 'Inverse field display name': '反向关系字段名称'
610
640
  };
611
641
  exports.default = _default;
@@ -105,17 +105,32 @@ var MenuEditor = function MenuEditor(props) {
105
105
  var schema = filterByACL(data === null || data === void 0 ? void 0 : data.data, ctx);
106
106
 
107
107
  if (defaultSelectedUid) {
108
+ if (defaultSelectedUid.includes('/')) {
109
+ return;
110
+ }
111
+
108
112
  var s = (0, _.findByUid)(schema, defaultSelectedUid);
109
113
 
110
114
  if (s) {
111
115
  setTitle(s.title);
116
+ } else {
117
+ var _s = (0, _.findMenuItem)(schema);
118
+
119
+ if (_s) {
120
+ history.push("/admin/".concat(_s['x-uid']));
121
+ setTitle(_s.title);
122
+ } else {
123
+ history.push("/admin/");
124
+ }
112
125
  }
113
126
  } else {
114
- var _s = (0, _.findMenuItem)(schema);
127
+ var _s2 = (0, _.findMenuItem)(schema);
115
128
 
116
- if (_s) {
117
- history.push("/admin/".concat(_s['x-uid']));
118
- setTitle(_s.title);
129
+ if (_s2) {
130
+ history.push("/admin/".concat(_s2['x-uid']));
131
+ setTitle(_s2.title);
132
+ } else {
133
+ history.push("/admin/");
119
134
  }
120
135
  }
121
136
  }
@@ -115,6 +115,7 @@ var Action = (0, _react.observer)(function (props) {
115
115
 
116
116
  var fieldSchema = (0, _react.useFieldSchema)();
117
117
  var compile = (0, _hooks.useCompile)();
118
+ var form = (0, _react.useForm)();
118
119
  var designerProps = fieldSchema['x-designer-props'];
119
120
  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'];
120
121
 
@@ -126,6 +127,7 @@ var Action = (0, _react.observer)(function (props) {
126
127
  icon: /*#__PURE__*/_react2.default.createElement(_icon.Icon, {
127
128
  type: icon
128
129
  }),
130
+ disabled: form.disabled,
129
131
  onClick: function onClick(e) {
130
132
  e.preventDefault();
131
133
  e.stopPropagation();
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ActionBar = void 0;
7
7
 
8
+ var _css = require("@emotion/css");
9
+
8
10
  var _react = require("@formily/react");
9
11
 
10
12
  var _antd = require("antd");
@@ -15,10 +17,14 @@ var _schemaInitializer = require("../../../schema-initializer");
15
17
 
16
18
  var _common = require("../../common");
17
19
 
20
+ var _templateObject;
21
+
18
22
  var _excluded = ["layout", "style"];
19
23
 
20
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
25
 
26
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
27
+
22
28
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23
29
 
24
30
  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; }
@@ -62,9 +68,11 @@ var ActionBar = (0, _react.observer)(function (props) {
62
68
  style: _objectSpread({
63
69
  display: 'flex',
64
70
  justifyContent: 'space-between',
65
- alignItems: 'center'
71
+ alignItems: 'center',
72
+ overflowX: 'auto'
66
73
  }, style)
67
74
  }, others), /*#__PURE__*/_react2.default.createElement("div", {
75
+ className: (0, _css.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-space:last-child {\n margin-left: 8px;\n }\n "]))),
68
76
  style: {
69
77
  display: 'flex',
70
78
  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,67 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.Cron = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _react2 = require("@formily/react");
11
+
12
+ var _reactJsCron = require("react-js-cron");
13
+
14
+ var _cronstrue = _interopRequireDefault(require("cronstrue"));
15
+
16
+ require("cronstrue/locales/zh_CN");
17
+
18
+ var _css = require("@emotion/css");
19
+
20
+ var _zhCN = _interopRequireDefault(require("./locale/zh-CN"));
21
+
22
+ var _templateObject;
23
+
24
+ var _excluded = ["onChange"];
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
+
28
+ 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; }
29
+
30
+ 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; }
31
+
32
+ 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; }
33
+
34
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
35
+
36
+ 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; }
37
+
38
+ 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; }
39
+
40
+ var ComponentLocales = {
41
+ 'zh-CN': _zhCN.default
42
+ };
43
+ var ReadPrettyLocales = {
44
+ 'en-US': 'en',
45
+ 'zh-CN': 'zh_CN'
46
+ };
47
+ var Cron = (0, _react2.connect)(function (props) {
48
+ var onChange = props.onChange,
49
+ rest = _objectWithoutProperties(props, _excluded);
50
+
51
+ var locale = ComponentLocales[localStorage.getItem('NOCOBASE_LOCALE') || 'en-US'];
52
+ return /*#__PURE__*/_react.default.createElement("fieldset", {
53
+ className: (0, _css.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 "])))
54
+ }, /*#__PURE__*/_react.default.createElement(_reactJsCron.Cron, _objectSpread({
55
+ setValue: onChange,
56
+ locale: locale
57
+ }, rest)));
58
+ }, (0, _react2.mapReadPretty)(function (props) {
59
+ var locale = ReadPrettyLocales[localStorage.getItem('NOCOBASE_LOCALE') || 'en-US'];
60
+ return props.value ? /*#__PURE__*/_react.default.createElement("span", null, _cronstrue.default.toString(props.value, {
61
+ locale: locale,
62
+ use24HourTimeFormat: true
63
+ })) : null;
64
+ }));
65
+ exports.Cron = Cron;
66
+ var _default = Cron;
67
+ exports.default = _default;
@@ -0,0 +1 @@
1
+ export * from './Cron';
@@ -4,15 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var _FileStorageShortcut = require("./FileStorageShortcut");
7
+ var _Cron = require("./Cron");
8
8
 
9
- Object.keys(_FileStorageShortcut).forEach(function (key) {
9
+ Object.keys(_Cron).forEach(function (key) {
10
10
  if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _FileStorageShortcut[key]) return;
11
+ if (key in exports && exports[key] === _Cron[key]) return;
12
12
  Object.defineProperty(exports, key, {
13
13
  enumerable: true,
14
14
  get: function get() {
15
- return _FileStorageShortcut[key];
15
+ return _Cron[key];
16
16
  }
17
17
  });
18
18
  });
@@ -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,44 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = {
8
+ everyText: '每',
9
+ emptyMonths: '每月',
10
+ emptyMonthDays: '每日(月)',
11
+ emptyMonthDaysShort: '每日',
12
+ emptyWeekDays: '每天(周)',
13
+ emptyWeekDaysShort: '每天(周)',
14
+ emptyHours: '每小时',
15
+ emptyMinutes: '每分钟',
16
+ emptyMinutesForHourPeriod: '每',
17
+ yearOption: '年',
18
+ monthOption: '月',
19
+ weekOption: '周',
20
+ dayOption: '天',
21
+ hourOption: '小时',
22
+ minuteOption: '分钟',
23
+ rebootOption: '重启',
24
+ prefixPeriod: '每',
25
+ prefixMonths: '的',
26
+ prefixMonthDays: '的',
27
+ prefixWeekDays: '的',
28
+ prefixWeekDaysForMonthAndYearPeriod: '并且',
29
+ prefixHours: '的',
30
+ prefixMinutes: ':',
31
+ prefixMinutesForHourPeriod: '的',
32
+ suffixMinutesForHourPeriod: '分钟',
33
+ errorInvalidCron: '不符合 cron 规则的表达式',
34
+ clearButtonText: '清空',
35
+ weekDays: [// Order is important, the index will be used as value
36
+ '周日', '周一', '周二', '周三', '周四', '周五', '周六'],
37
+ months: [// Order is important, the index will be used as value
38
+ '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
39
+ altWeekDays: [// Order is important, the index will be used as value
40
+ '周日', '周一', '周二', '周三', '周四', '周五', '周六'],
41
+ altMonths: [// Order is important, the index will be used as value
42
+ '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
43
+ };
44
+ exports.default = _default;
@@ -80,6 +80,7 @@ var FilterActionDesigner = function FilterActionDesigner(props) {
80
80
 
81
81
  var checked = !nonfilterable.includes(field.name);
82
82
  return /*#__PURE__*/_react2.default.createElement(_schemaSettings.SchemaSettings.SwitchItem, {
83
+ key: field.name,
83
84
  checked: checked,
84
85
  title: compile(field === null || field === void 0 ? void 0 : (_field$uiSchema = field.uiSchema) === null || _field$uiSchema === void 0 ? void 0 : _field$uiSchema.title),
85
86
  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
  };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useFilterOptions = exports.useFilterActionProps = exports.mergeFilter = void 0;
6
+ exports.useFilterOptions = exports.useFilterFieldProps = exports.useFilterFieldOptions = exports.useFilterActionProps = exports.removeNullCondition = exports.mergeFilter = void 0;
7
7
 
8
8
  var _react = require("@formily/react");
9
9
 
@@ -36,16 +36,24 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
36
36
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
37
37
 
38
38
  var useFilterOptions = function useFilterOptions(collectionName) {
39
+ var _useCollectionManager = (0, _collectionManager.useCollectionManager)(),
40
+ getCollectionFields = _useCollectionManager.getCollectionFields;
41
+
42
+ var fields = getCollectionFields(collectionName);
43
+ return useFilterFieldOptions(fields);
44
+ };
45
+
46
+ exports.useFilterOptions = useFilterOptions;
47
+
48
+ var useFilterFieldOptions = function useFilterFieldOptions(fields) {
39
49
  var _fieldSchema$xCompon;
40
50
 
41
51
  var fieldSchema = (0, _react.useFieldSchema)();
42
52
  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) || [];
43
53
 
44
- var _useCollectionManager = (0, _collectionManager.useCollectionManager)(),
45
- getCollectionFields = _useCollectionManager.getCollectionFields,
46
- getInterface = _useCollectionManager.getInterface;
47
-
48
- var fields = getCollectionFields(collectionName);
54
+ var _useCollectionManager2 = (0, _collectionManager.useCollectionManager)(),
55
+ getCollectionFields = _useCollectionManager2.getCollectionFields,
56
+ getInterface = _useCollectionManager2.getInterface;
49
57
 
50
58
  var field2option = function field2option(field, depth) {
51
59
  var _field$uiSchema, _operators$filter;
@@ -119,7 +127,7 @@ var useFilterOptions = function useFilterOptions(collectionName) {
119
127
  return getOptions(fields, 1);
120
128
  };
121
129
 
122
- exports.useFilterOptions = useFilterOptions;
130
+ exports.useFilterFieldOptions = useFilterFieldOptions;
123
131
 
124
132
  var isEmpty = function isEmpty(obj) {
125
133
  return obj && Object.keys(obj).length === 0 && Object.getPrototypeOf(obj) === Object.prototype;
@@ -140,6 +148,8 @@ var removeNullCondition = function removeNullCondition(filter) {
140
148
  return _flat.default.unflatten(values);
141
149
  };
142
150
 
151
+ exports.removeNullCondition = removeNullCondition;
152
+
143
153
  var mergeFilter = function mergeFilter(filter1, filter2) {
144
154
  if (filter1 && filter2) {
145
155
  return {
@@ -170,18 +180,31 @@ var useFilterActionProps = function useFilterActionProps() {
170
180
  service = _useBlockRequestConte.service,
171
181
  props = _useBlockRequestConte.props;
172
182
 
173
- var field = (0, _react.useField)();
183
+ return useFilterFieldProps({
184
+ options: options,
185
+ service: service,
186
+ params: props.params
187
+ });
188
+ };
189
+
190
+ exports.useFilterActionProps = useFilterActionProps;
191
+
192
+ var useFilterFieldProps = function useFilterFieldProps(_ref) {
193
+ var options = _ref.options,
194
+ service = _ref.service,
195
+ params = _ref.params;
174
196
 
175
197
  var _useTranslation = (0, _reactI18next.useTranslation)(),
176
198
  t = _useTranslation.t;
177
199
 
200
+ var field = (0, _react.useField)();
178
201
  return {
179
202
  options: options,
180
203
  onSubmit: function onSubmit(values) {
181
204
  var _service$params;
182
205
 
183
206
  // filter parameter for the block
184
- var defaultFilter = removeNullCondition(props.params.filter); // filter parameter for the filter action
207
+ var defaultFilter = removeNullCondition(params.filter); // filter parameter for the filter action
185
208
 
186
209
  var filter = removeNullCondition(values === null || values === void 0 ? void 0 : values.filter);
187
210
  service.run(_objectSpread(_objectSpread({}, (_service$params = service.params) === null || _service$params === void 0 ? void 0 : _service$params[0]), {}, {
@@ -201,7 +224,7 @@ var useFilterActionProps = function useFilterActionProps() {
201
224
  onReset: function onReset() {
202
225
  var _service$params2;
203
226
 
204
- var filter = removeNullCondition(props.params.filter);
227
+ var filter = removeNullCondition(params.filter);
205
228
  service.run(_objectSpread(_objectSpread({}, (_service$params2 = service.params) === null || _service$params2 === void 0 ? void 0 : _service$params2[0]), {}, {
206
229
  filter: filter,
207
230
  page: 1
@@ -211,4 +234,4 @@ var useFilterActionProps = function useFilterActionProps() {
211
234
  };
212
235
  };
213
236
 
214
- exports.useFilterActionProps = useFilterActionProps;
237
+ exports.useFilterFieldProps = useFilterFieldProps;
@@ -103,7 +103,6 @@ var useValues = function useValues() {
103
103
  field.data.operator = operator;
104
104
  field.data.schema = (0, _shared.merge)(option === null || option === void 0 ? void 0 : option.schema, operator === null || operator === void 0 ? void 0 : operator.schema);
105
105
  field.data.value = (0, _get.default)(field.value, "".concat(fieldPath, ".$").concat(operatorValue));
106
- console.log('option', operator, field.data.value);
107
106
  };
108
107
 
109
108
  (0, _react2.useEffect)(function () {
@@ -59,7 +59,7 @@ var AntdCompute = function AntdCompute(props) {
59
59
 
60
60
  try {
61
61
  result = math.evaluate(expression, scope);
62
- result = math.round(result, 9);
62
+ result = Number.isFinite(result) ? math.round(result, 9) : null;
63
63
  } catch (_unused) {}
64
64
 
65
65
  if (onChange) {