@nocobase/client 0.7.4-alpha.7 → 0.7.5-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 (275) hide show
  1. package/es/block-provider/TableBlockProvider.js +3 -3
  2. package/es/collection-manager/Configuration/AddFieldAction.js +38 -41
  3. package/es/collection-manager/Configuration/EditFieldAction.js +64 -41
  4. package/es/collection-manager/interfaces/email.js +4 -2
  5. package/es/collection-manager/interfaces/formula.js +1 -1
  6. package/es/collection-manager/interfaces/index.d.ts +1 -0
  7. package/es/collection-manager/interfaces/index.js +1 -0
  8. package/es/collection-manager/interfaces/input.js +4 -2
  9. package/es/collection-manager/interfaces/integer.js +4 -2
  10. package/es/collection-manager/interfaces/m2m.js +2 -2
  11. package/es/collection-manager/interfaces/m2o.js +7 -3
  12. package/es/collection-manager/interfaces/number.js +3 -2
  13. package/es/collection-manager/interfaces/o2m.js +8 -4
  14. package/es/collection-manager/interfaces/o2o.js +19 -6
  15. package/es/collection-manager/interfaces/password.js +4 -2
  16. package/es/collection-manager/interfaces/percent.js +2 -1
  17. package/es/collection-manager/interfaces/phone.js +4 -2
  18. package/es/collection-manager/interfaces/properties/index.d.ts +7 -0
  19. package/es/collection-manager/interfaces/properties/index.js +91 -0
  20. package/es/collection-manager/interfaces/sequence.d.ts +2 -0
  21. package/es/collection-manager/interfaces/sequence.js +431 -0
  22. package/es/locale/en_US.d.ts +1 -0
  23. package/es/locale/en_US.js +2 -1
  24. package/es/locale/index.js +24 -0
  25. package/es/locale/ja_JP.d.ts +590 -0
  26. package/es/locale/ja_JP.js +591 -0
  27. package/es/locale/ru_RU.d.ts +560 -0
  28. package/es/locale/ru_RU.js +559 -0
  29. package/es/locale/zh_CN.d.ts +27 -0
  30. package/es/locale/zh_CN.js +30 -3
  31. package/es/route-switch/antd/admin-layout/index.js +19 -4
  32. package/es/schema-component/antd/action/Action.js +3 -1
  33. package/es/schema-component/antd/action/ActionBar.js +8 -1
  34. package/es/schema-component/antd/cron/Cron.d.ts +6 -0
  35. package/es/schema-component/antd/cron/Cron.js +49 -0
  36. package/es/schema-component/antd/cron/index.d.ts +1 -0
  37. package/es/schema-component/antd/cron/index.js +1 -0
  38. package/es/schema-component/antd/cron/locale/zh-CN.d.ts +34 -0
  39. package/es/schema-component/antd/cron/locale/zh-CN.js +37 -0
  40. package/es/schema-component/antd/filter/Filter.Action.Designer.js +1 -0
  41. package/es/schema-component/antd/formula-input/Compute.js +1 -1
  42. package/es/schema-component/antd/grid/Grid.js +134 -25
  43. package/es/schema-component/antd/index.d.ts +1 -0
  44. package/es/schema-component/antd/index.js +1 -0
  45. package/es/schema-component/antd/record-picker/InputRecordPicker.js +4 -2
  46. package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +5 -2
  47. package/es/schema-component/antd/record-picker/util.d.ts +5 -0
  48. package/es/schema-component/antd/record-picker/util.js +37 -0
  49. package/es/schema-component/antd/upload/shared.js +6 -2
  50. package/es/schema-component/common/dnd-context/index.js +30 -4
  51. package/es/schema-component/hooks/useDesignable.d.ts +2 -2
  52. package/es/schema-component/hooks/useDesignable.js +130 -26
  53. package/es/schema-initializer/SchemaInitializer.d.ts +1 -0
  54. package/es/schema-initializer/SchemaInitializer.js +6 -2
  55. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +2 -1
  56. package/es/schema-initializer/buttons/TabPaneInitializers.js +9 -3
  57. package/es/schema-initializer/items/ActionInitializer.d.ts +1 -0
  58. package/es/schema-initializer/items/ActionInitializer.js +13 -0
  59. package/es/schema-initializer/items/BlockInitializer.d.ts +1 -0
  60. package/es/schema-initializer/items/BlockInitializer.js +18 -0
  61. package/es/schema-initializer/items/BulkDestroyActionInitializer.d.ts +1 -0
  62. package/es/schema-initializer/items/BulkDestroyActionInitializer.js +27 -0
  63. package/es/schema-initializer/items/CalendarBlockInitializer.d.ts +1 -0
  64. package/es/schema-initializer/items/CalendarBlockInitializer.js +124 -0
  65. package/es/schema-initializer/items/CollectionFieldInitializer.d.ts +1 -0
  66. package/es/schema-initializer/items/CollectionFieldInitializer.js +15 -0
  67. package/es/schema-initializer/items/CreateActionInitializer.d.ts +1 -0
  68. package/es/schema-initializer/items/CreateActionInitializer.js +60 -0
  69. package/es/schema-initializer/items/CreateFormBlockInitializer.d.ts +1 -0
  70. package/es/schema-initializer/items/CreateFormBlockInitializer.js +102 -0
  71. package/es/schema-initializer/items/CreateSubmitActionInitializer.d.ts +1 -0
  72. package/es/schema-initializer/items/CreateSubmitActionInitializer.js +24 -0
  73. package/es/schema-initializer/items/CustomizeActionInitializer.d.ts +1 -0
  74. package/es/schema-initializer/items/CustomizeActionInitializer.js +11 -0
  75. package/es/schema-initializer/items/DataBlockInitializer.d.ts +1 -0
  76. package/es/schema-initializer/items/DataBlockInitializer.js +88 -0
  77. package/es/schema-initializer/items/DestroyActionInitializer.d.ts +1 -0
  78. package/es/schema-initializer/items/DestroyActionInitializer.js +27 -0
  79. package/es/schema-initializer/items/DetailsBlockInitializer.d.ts +1 -0
  80. package/es/schema-initializer/items/DetailsBlockInitializer.js +55 -0
  81. package/es/schema-initializer/items/FilterActionInitializer.d.ts +1 -0
  82. package/es/schema-initializer/items/FilterActionInitializer.js +24 -0
  83. package/es/schema-initializer/items/FormBlockInitializer.d.ts +1 -0
  84. package/es/schema-initializer/items/FormBlockInitializer.js +30 -0
  85. package/es/schema-initializer/items/G2PlotInitializer.d.ts +1 -0
  86. package/es/schema-initializer/items/G2PlotInitializer.js +25 -0
  87. package/es/schema-initializer/items/InitializerWithSwitch.d.ts +1 -0
  88. package/es/schema-initializer/items/InitializerWithSwitch.js +32 -0
  89. package/es/schema-initializer/items/KanbanBlockInitializer.d.ts +1 -0
  90. package/es/schema-initializer/items/KanbanBlockInitializer.js +138 -0
  91. package/es/schema-initializer/items/MarkdownBlockInitializer.d.ts +1 -0
  92. package/es/schema-initializer/items/MarkdownBlockInitializer.js +32 -0
  93. package/es/schema-initializer/items/PrintActionInitializer.d.ts +1 -0
  94. package/es/schema-initializer/items/PrintActionInitializer.js +23 -0
  95. package/es/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +1 -0
  96. package/es/schema-initializer/items/RecordAssociationBlockInitializer.js +90 -0
  97. package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +1 -0
  98. package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.js +160 -0
  99. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +1 -0
  100. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +90 -0
  101. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +1 -0
  102. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.js +112 -0
  103. package/es/schema-initializer/items/RecordFormBlockInitializer.d.ts +1 -0
  104. package/es/schema-initializer/items/RecordFormBlockInitializer.js +109 -0
  105. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +1 -0
  106. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +116 -0
  107. package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +1 -0
  108. package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +114 -0
  109. package/es/schema-initializer/items/RefreshActionInitializer.d.ts +1 -0
  110. package/es/schema-initializer/items/RefreshActionInitializer.js +23 -0
  111. package/es/schema-initializer/items/SubmitActionInitializer.d.ts +1 -0
  112. package/es/schema-initializer/items/SubmitActionInitializer.js +24 -0
  113. package/es/schema-initializer/items/TableActionColumnInitializer.d.ts +1 -0
  114. package/es/schema-initializer/items/TableActionColumnInitializer.js +34 -0
  115. package/es/schema-initializer/items/TableBlockInitializer.d.ts +1 -0
  116. package/es/schema-initializer/items/TableBlockInitializer.js +55 -0
  117. package/es/schema-initializer/items/TableCollectionFieldInitializer.d.ts +1 -0
  118. package/es/schema-initializer/items/TableCollectionFieldInitializer.js +15 -0
  119. package/es/schema-initializer/items/TableSelectorInitializer.d.ts +1 -0
  120. package/es/schema-initializer/items/TableSelectorInitializer.js +67 -0
  121. package/es/schema-initializer/items/UpdateActionInitializer.d.ts +1 -0
  122. package/es/schema-initializer/items/UpdateActionInitializer.js +59 -0
  123. package/es/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +1 -0
  124. package/es/schema-initializer/items/UpdateSubmitActionInitializer.js +24 -0
  125. package/es/schema-initializer/items/ViewActionInitializer.d.ts +1 -0
  126. package/es/schema-initializer/items/ViewActionInitializer.js +58 -0
  127. package/es/schema-initializer/items/index.d.ts +35 -35
  128. package/es/schema-initializer/items/index.js +35 -1589
  129. package/es/schema-initializer/style.less +4 -0
  130. package/es/schema-templates/SchemaTemplateManagerProvider.js +2 -5
  131. package/es/system-settings/SystemSettingsShortcut.js +7 -0
  132. package/es/user/SigninPage.d.ts +11 -2
  133. package/es/user/SigninPage.js +140 -33
  134. package/es/user/SignupPage.d.ts +7 -1
  135. package/es/user/SignupPage.js +54 -10
  136. package/es/user/VerificationCode.d.ts +7 -0
  137. package/es/user/VerificationCode.js +129 -0
  138. package/lib/block-provider/TableBlockProvider.js +3 -3
  139. package/lib/collection-manager/Configuration/AddFieldAction.js +38 -40
  140. package/lib/collection-manager/Configuration/EditFieldAction.js +65 -40
  141. package/lib/collection-manager/interfaces/email.js +3 -1
  142. package/lib/collection-manager/interfaces/formula.js +1 -1
  143. package/lib/collection-manager/interfaces/index.d.ts +1 -0
  144. package/lib/collection-manager/interfaces/index.js +13 -0
  145. package/lib/collection-manager/interfaces/input.js +3 -1
  146. package/lib/collection-manager/interfaces/integer.js +3 -1
  147. package/lib/collection-manager/interfaces/m2m.js +1 -1
  148. package/lib/collection-manager/interfaces/m2o.js +6 -2
  149. package/lib/collection-manager/interfaces/number.js +4 -3
  150. package/lib/collection-manager/interfaces/o2m.js +7 -3
  151. package/lib/collection-manager/interfaces/o2o.js +18 -5
  152. package/lib/collection-manager/interfaces/password.js +3 -1
  153. package/lib/collection-manager/interfaces/percent.js +1 -0
  154. package/lib/collection-manager/interfaces/phone.js +3 -1
  155. package/lib/collection-manager/interfaces/properties/index.d.ts +7 -0
  156. package/lib/collection-manager/interfaces/properties/index.js +94 -1
  157. package/lib/collection-manager/interfaces/sequence.d.ts +2 -0
  158. package/lib/collection-manager/interfaces/sequence.js +455 -0
  159. package/lib/locale/en_US.d.ts +1 -0
  160. package/lib/locale/en_US.js +2 -1
  161. package/lib/locale/index.js +28 -0
  162. package/lib/locale/ja_JP.d.ts +590 -0
  163. package/lib/locale/ja_JP.js +598 -0
  164. package/lib/locale/ru_RU.d.ts +560 -0
  165. package/lib/locale/ru_RU.js +566 -0
  166. package/lib/locale/zh_CN.d.ts +27 -0
  167. package/lib/locale/zh_CN.js +30 -3
  168. package/lib/route-switch/antd/admin-layout/index.js +19 -4
  169. package/lib/schema-component/antd/action/Action.js +2 -0
  170. package/lib/schema-component/antd/action/ActionBar.js +9 -1
  171. package/lib/schema-component/antd/cron/Cron.d.ts +6 -0
  172. package/lib/schema-component/antd/cron/Cron.js +67 -0
  173. package/lib/schema-component/antd/cron/index.d.ts +1 -0
  174. package/lib/schema-component/antd/cron/index.js +18 -0
  175. package/lib/schema-component/antd/cron/locale/zh-CN.d.ts +34 -0
  176. package/lib/schema-component/antd/cron/locale/zh-CN.js +44 -0
  177. package/lib/schema-component/antd/filter/Filter.Action.Designer.js +1 -0
  178. package/lib/schema-component/antd/formula-input/Compute.js +1 -1
  179. package/lib/schema-component/antd/grid/Grid.js +132 -23
  180. package/lib/schema-component/antd/index.d.ts +1 -0
  181. package/lib/schema-component/antd/index.js +13 -0
  182. package/lib/schema-component/antd/record-picker/InputRecordPicker.js +5 -2
  183. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +6 -2
  184. package/lib/schema-component/antd/record-picker/util.d.ts +5 -0
  185. package/lib/schema-component/antd/record-picker/util.js +55 -0
  186. package/lib/schema-component/antd/upload/shared.js +5 -1
  187. package/lib/schema-component/common/dnd-context/index.js +35 -5
  188. package/lib/schema-component/hooks/useDesignable.d.ts +2 -2
  189. package/lib/schema-component/hooks/useDesignable.js +132 -28
  190. package/lib/schema-initializer/SchemaInitializer.d.ts +1 -0
  191. package/lib/schema-initializer/SchemaInitializer.js +7 -2
  192. package/lib/schema-initializer/buttons/TabPaneInitializers.d.ts +2 -1
  193. package/lib/schema-initializer/buttons/TabPaneInitializers.js +13 -4
  194. package/lib/schema-initializer/items/ActionInitializer.d.ts +1 -0
  195. package/lib/schema-initializer/items/ActionInitializer.js +26 -0
  196. package/lib/schema-initializer/items/BlockInitializer.d.ts +1 -0
  197. package/lib/schema-initializer/items/BlockInitializer.js +31 -0
  198. package/lib/schema-initializer/items/BulkDestroyActionInitializer.d.ts +1 -0
  199. package/lib/schema-initializer/items/BulkDestroyActionInitializer.js +40 -0
  200. package/lib/schema-initializer/items/CalendarBlockInitializer.d.ts +1 -0
  201. package/lib/schema-initializer/items/CalendarBlockInitializer.js +148 -0
  202. package/lib/schema-initializer/items/CollectionFieldInitializer.d.ts +1 -0
  203. package/lib/schema-initializer/items/CollectionFieldInitializer.js +28 -0
  204. package/lib/schema-initializer/items/CreateActionInitializer.d.ts +1 -0
  205. package/lib/schema-initializer/items/CreateActionInitializer.js +73 -0
  206. package/lib/schema-initializer/items/CreateFormBlockInitializer.d.ts +1 -0
  207. package/lib/schema-initializer/items/CreateFormBlockInitializer.js +120 -0
  208. package/lib/schema-initializer/items/CreateSubmitActionInitializer.d.ts +1 -0
  209. package/lib/schema-initializer/items/CreateSubmitActionInitializer.js +37 -0
  210. package/lib/schema-initializer/items/CustomizeActionInitializer.d.ts +1 -0
  211. package/lib/schema-initializer/items/CustomizeActionInitializer.js +24 -0
  212. package/lib/schema-initializer/items/DataBlockInitializer.d.ts +1 -0
  213. package/lib/schema-initializer/items/DataBlockInitializer.js +104 -0
  214. package/lib/schema-initializer/items/DestroyActionInitializer.d.ts +1 -0
  215. package/lib/schema-initializer/items/DestroyActionInitializer.js +40 -0
  216. package/lib/schema-initializer/items/DetailsBlockInitializer.d.ts +1 -0
  217. package/lib/schema-initializer/items/DetailsBlockInitializer.js +71 -0
  218. package/lib/schema-initializer/items/FilterActionInitializer.d.ts +1 -0
  219. package/lib/schema-initializer/items/FilterActionInitializer.js +37 -0
  220. package/lib/schema-initializer/items/FormBlockInitializer.d.ts +1 -0
  221. package/lib/schema-initializer/items/FormBlockInitializer.js +45 -0
  222. package/lib/schema-initializer/items/G2PlotInitializer.d.ts +1 -0
  223. package/lib/schema-initializer/items/G2PlotInitializer.js +38 -0
  224. package/lib/schema-initializer/items/InitializerWithSwitch.d.ts +1 -0
  225. package/lib/schema-initializer/items/InitializerWithSwitch.js +47 -0
  226. package/lib/schema-initializer/items/KanbanBlockInitializer.d.ts +1 -0
  227. package/lib/schema-initializer/items/KanbanBlockInitializer.js +163 -0
  228. package/lib/schema-initializer/items/MarkdownBlockInitializer.d.ts +1 -0
  229. package/lib/schema-initializer/items/MarkdownBlockInitializer.js +47 -0
  230. package/lib/schema-initializer/items/PrintActionInitializer.d.ts +1 -0
  231. package/lib/schema-initializer/items/PrintActionInitializer.js +36 -0
  232. package/lib/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +1 -0
  233. package/lib/schema-initializer/items/RecordAssociationBlockInitializer.js +107 -0
  234. package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +1 -0
  235. package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.js +185 -0
  236. package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +1 -0
  237. package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +107 -0
  238. package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +1 -0
  239. package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.js +128 -0
  240. package/lib/schema-initializer/items/RecordFormBlockInitializer.d.ts +1 -0
  241. package/lib/schema-initializer/items/RecordFormBlockInitializer.js +127 -0
  242. package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +1 -0
  243. package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +133 -0
  244. package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +1 -0
  245. package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +132 -0
  246. package/lib/schema-initializer/items/RefreshActionInitializer.d.ts +1 -0
  247. package/lib/schema-initializer/items/RefreshActionInitializer.js +36 -0
  248. package/lib/schema-initializer/items/SubmitActionInitializer.d.ts +1 -0
  249. package/lib/schema-initializer/items/SubmitActionInitializer.js +37 -0
  250. package/lib/schema-initializer/items/TableActionColumnInitializer.d.ts +1 -0
  251. package/lib/schema-initializer/items/TableActionColumnInitializer.js +47 -0
  252. package/lib/schema-initializer/items/TableBlockInitializer.d.ts +1 -0
  253. package/lib/schema-initializer/items/TableBlockInitializer.js +71 -0
  254. package/lib/schema-initializer/items/TableCollectionFieldInitializer.d.ts +1 -0
  255. package/lib/schema-initializer/items/TableCollectionFieldInitializer.js +28 -0
  256. package/lib/schema-initializer/items/TableSelectorInitializer.d.ts +1 -0
  257. package/lib/schema-initializer/items/TableSelectorInitializer.js +84 -0
  258. package/lib/schema-initializer/items/UpdateActionInitializer.d.ts +1 -0
  259. package/lib/schema-initializer/items/UpdateActionInitializer.js +72 -0
  260. package/lib/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +1 -0
  261. package/lib/schema-initializer/items/UpdateSubmitActionInitializer.js +37 -0
  262. package/lib/schema-initializer/items/ViewActionInitializer.d.ts +1 -0
  263. package/lib/schema-initializer/items/ViewActionInitializer.js +71 -0
  264. package/lib/schema-initializer/items/index.d.ts +35 -35
  265. package/lib/schema-initializer/items/index.js +400 -1659
  266. package/lib/schema-initializer/style.less +4 -0
  267. package/lib/schema-templates/SchemaTemplateManagerProvider.js +2 -5
  268. package/lib/system-settings/SystemSettingsShortcut.js +7 -0
  269. package/lib/user/SigninPage.d.ts +11 -2
  270. package/lib/user/SigninPage.js +150 -34
  271. package/lib/user/SignupPage.d.ts +7 -1
  272. package/lib/user/SignupPage.js +56 -10
  273. package/lib/user/VerificationCode.d.ts +7 -0
  274. package/lib/user/VerificationCode.js +148 -0
  275. package/package.json +6 -4
@@ -43,6 +43,7 @@ declare const _default: {
43
43
  "Super admin": string;
44
44
  Language: string;
45
45
  "Allow sign up": string;
46
+ "Enable SMS authentication": string;
46
47
  "Sign out": string;
47
48
  Cancel: string;
48
49
  Submit: string;
@@ -126,6 +127,20 @@ declare const _default: {
126
127
  Password: string;
127
128
  Formula: string;
128
129
  "Formula description": string;
130
+ Sequence: string;
131
+ "Sequence rules": string;
132
+ "Add rule": string;
133
+ Type: string;
134
+ Autoincrement: string;
135
+ "Fixed text": string;
136
+ "Text content": string;
137
+ "Rule content": string;
138
+ "{{value}} Digits": string;
139
+ Digits: string;
140
+ "Start from": string;
141
+ "Starts from {{value}}": string;
142
+ "Reset cycle": string;
143
+ Operations: string;
129
144
  Choices: string;
130
145
  Checkbox: string;
131
146
  "Single select": string;
@@ -158,6 +173,7 @@ declare const _default: {
158
173
  "12 hour": string;
159
174
  "24 hour": string;
160
175
  "Relationship type": string;
176
+ "Inverse relationship type": string;
161
177
  "Source collection": string;
162
178
  "Source key": string;
163
179
  "Target collection": string;
@@ -230,6 +246,7 @@ declare const _default: {
230
246
  "Custom column name": string;
231
247
  "Edit description": string;
232
248
  Required: string;
249
+ Unique: string;
233
250
  "Label field": string;
234
251
  "Default is the ID field": string;
235
252
  "Set default sorting rules": string;
@@ -295,6 +312,8 @@ declare const _default: {
295
312
  "Saved successfully": string;
296
313
  Nickname: string;
297
314
  "Sign in": string;
315
+ "Sign in via account": string;
316
+ "Sign in via phone": string;
298
317
  "Create an account": string;
299
318
  "Sign up": string;
300
319
  "Confirm password": string;
@@ -302,6 +321,9 @@ declare const _default: {
302
321
  "Signed up successfully. It will jump to the login page.": string;
303
322
  "Password mismatch": string;
304
323
  Users: string;
324
+ "Verification code": string;
325
+ "Send code": string;
326
+ "Retry after {{count}} seconds": string;
305
327
  Roles: string;
306
328
  "Add role": string;
307
329
  "Role name": string;
@@ -522,6 +544,7 @@ declare const _default: {
522
544
  'Calculation result': string;
523
545
  True: string;
524
546
  False: string;
547
+ concat: string;
525
548
  Condition: string;
526
549
  Mode: string;
527
550
  'Continue when "Yes"': string;
@@ -599,5 +622,9 @@ declare const _default: {
599
622
  "Enabled languages": string;
600
623
  "View all plugins": string;
601
624
  Print: string;
625
+ 'Sign up successfully, and automatically jump to the sign in page': string;
626
+ 'Create inverse field in the target collection': string;
627
+ 'Inverse field name': string;
628
+ 'Inverse field display name': string;
602
629
  };
603
630
  export default _default;
@@ -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": "角色名称",
@@ -529,6 +551,7 @@ var _default = {
529
551
  'Calculation result': '运算结果',
530
552
  'True': '真',
531
553
  'False': '假',
554
+ 'concat': '连接',
532
555
  'Condition': '条件判断',
533
556
  'Mode': '模式',
534
557
  'Continue when "Yes"': '“是”则继续',
@@ -606,6 +629,10 @@ var _default = {
606
629
  "Province/city/area name": "省市区名称",
607
630
  "Enabled languages": "启用的语言",
608
631
  "View all plugins": "查看所有插件",
609
- "Print": "打印"
632
+ "Print": "打印",
633
+ 'Sign up successfully, and automatically jump to the sign in page': '注册成功,即将跳转到登录页面',
634
+ 'Create inverse field in the target collection': '在目标数据表里创建反向关系字段',
635
+ 'Inverse field name': '反向关系字段标识',
636
+ 'Inverse field display name': '反向关系字段名称'
610
637
  };
611
638
  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';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _Cron = require("./Cron");
8
+
9
+ Object.keys(_Cron).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _Cron[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _Cron[key];
16
+ }
17
+ });
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) {
@@ -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) {