@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 @@ 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": "角色名称",
@@ -523,6 +545,7 @@ export default {
523
545
  'Calculation result': '运算结果',
524
546
  'True': '真',
525
547
  'False': '假',
548
+ 'concat': '连接',
526
549
  'Condition': '条件判断',
527
550
  'Mode': '模式',
528
551
  'Continue when "Yes"': '“是”则继续',
@@ -600,5 +623,9 @@ export default {
600
623
  "Province/city/area name": "省市区名称",
601
624
  "Enabled languages": "启用的语言",
602
625
  "View all plugins": "查看所有插件",
603
- "Print": "打印"
626
+ "Print": "打印",
627
+ 'Sign up successfully, and automatically jump to the sign in page': '注册成功,即将跳转到登录页面',
628
+ 'Create inverse field in the target collection': '在目标数据表里创建反向关系字段',
629
+ 'Inverse field name': '反向关系字段标识',
630
+ 'Inverse field display name': '反向关系字段名称'
604
631
  };
@@ -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) {
@@ -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) {
@@ -1,4 +1,12 @@
1
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
1
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
2
+
3
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
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; }
2
10
 
3
11
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
12
 
@@ -12,24 +20,16 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
12
20
 
13
21
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
22
 
15
- 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; }
16
-
17
- 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; }
18
-
19
- 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; }
20
-
21
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
22
-
23
- import { useDndContext, useDndMonitor, useDroppable } from '@dnd-kit/core';
23
+ import { useDndContext, useDndMonitor, useDraggable, useDroppable } from '@dnd-kit/core';
24
24
  import { css } from '@emotion/css';
25
25
  import { observer, RecursionField, Schema, useField, useFieldSchema } from '@formily/react';
26
26
  import { uid } from '@formily/shared';
27
27
  import cls from 'classnames';
28
28
  import React, { createContext, useContext, useEffect, useRef, useState } from 'react';
29
- import { useFormBlockContext, useSchemaInitializer } from '../../../';
29
+ import { useDesignable, useFormBlockContext, useSchemaInitializer } from '../../../';
30
30
  import { DndContext } from '../../common/dnd-context';
31
- var GridRowContext = /*#__PURE__*/createContext(null);
32
- var GridColContext = /*#__PURE__*/createContext(null);
31
+ var GridRowContext = /*#__PURE__*/createContext({});
32
+ var GridColContext = /*#__PURE__*/createContext({});
33
33
  var GridContext = /*#__PURE__*/createContext({});
34
34
 
35
35
  var breakRemoveOnGrid = function breakRemoveOnGrid(s) {
@@ -50,6 +50,11 @@ var ColDivider = function ColDivider(props) {
50
50
  isOver = _useDroppable.isOver,
51
51
  setNodeRef = _useDroppable.setNodeRef;
52
52
 
53
+ var _useDesignable = useDesignable(),
54
+ dn = _useDesignable.dn,
55
+ designable = _useDesignable.designable;
56
+
57
+ var dividerRef = useRef();
53
58
  var droppableStyle = {
54
59
  backgroundColor: isOver ? 'rgba(241, 139, 98, .1)' : undefined
55
60
  };
@@ -68,11 +73,89 @@ var ColDivider = function ColDivider(props) {
68
73
  }
69
74
  }
70
75
 
76
+ var prevSchema = props.cols[props.index];
77
+ var nextSchema = props.cols[props.index + 1];
78
+
79
+ var _useDraggable = useDraggable({
80
+ disabled: props.first || props.last || !designable,
81
+ id: props.id,
82
+ data: {
83
+ dividerRef: dividerRef,
84
+ prevSchema: prevSchema,
85
+ nextSchema: nextSchema
86
+ }
87
+ }),
88
+ attributes = _useDraggable.attributes,
89
+ listeners = _useDraggable.listeners,
90
+ setDraggableNodeRef = _useDraggable.setNodeRef,
91
+ isDragging = _useDraggable.isDragging;
92
+
93
+ var _useState = useState([0, 0]),
94
+ _useState2 = _slicedToArray(_useState, 2),
95
+ clientWidths = _useState2[0],
96
+ setClientWidths = _useState2[1];
97
+
98
+ useDndMonitor({
99
+ onDragStart: function onDragStart(event) {
100
+ if (!isDragging) {
101
+ return;
102
+ }
103
+
104
+ var el = dividerRef.current;
105
+ var prev = el.previousElementSibling;
106
+ var next = el.nextElementSibling;
107
+ setClientWidths([prev.clientWidth, next.clientWidth]);
108
+ },
109
+ onDragMove: function onDragMove(event) {
110
+ if (!isDragging) {
111
+ return;
112
+ }
113
+
114
+ var el = dividerRef.current;
115
+ var prev = el.previousElementSibling;
116
+ var next = el.nextElementSibling;
117
+ prev.style.width = "calc(".concat(clientWidths[0], "px + ").concat(event.delta.x, "px)");
118
+ next.style.width = "calc(".concat(clientWidths[1], "px - ").concat(event.delta.x, "px)");
119
+ },
120
+ onDragEnd: function onDragEnd(event) {
121
+ var _ref, _ref2;
122
+
123
+ if (clientWidths[0] <= 0 || clientWidths[1] <= 0) {
124
+ return;
125
+ }
126
+
127
+ setClientWidths([0, 0]);
128
+
129
+ if (!prevSchema || !nextSchema) {
130
+ return;
131
+ }
132
+
133
+ var el = dividerRef.current;
134
+ var prev = el.previousElementSibling;
135
+ var next = el.nextElementSibling;
136
+ prevSchema['x-component-props'] = prevSchema['x-component-props'] || {};
137
+ nextSchema['x-component-props'] = nextSchema['x-component-props'] || {};
138
+ prevSchema['x-component-props']['width'] = 100 * ((prev === null || prev === void 0 ? void 0 : prev.clientWidth) + 24 + 24 / props.cols.length) / el.parentElement.clientWidth;
139
+ nextSchema['x-component-props']['width'] = 100 * ((next === null || next === void 0 ? void 0 : next.clientWidth) + 24 + 24 / props.cols.length) / el.parentElement.clientWidth;
140
+ dn.emit('batchPatch', {
141
+ schemas: [(_ref = {}, _defineProperty(_ref, 'x-uid', prevSchema['x-uid']), _defineProperty(_ref, 'x-component-props', _objectSpread({}, prevSchema['x-component-props'])), _ref), (_ref2 = {}, _defineProperty(_ref2, 'x-uid', nextSchema['x-uid']), _defineProperty(_ref2, 'x-component-props', _objectSpread({}, nextSchema['x-component-props'])), _ref2)]
142
+ });
143
+ }
144
+ });
71
145
  return /*#__PURE__*/React.createElement("div", {
72
- ref: visible ? setNodeRef : null,
146
+ ref: function ref(el) {
147
+ if (visible) {
148
+ setNodeRef(el);
149
+ dividerRef.current = el;
150
+ }
151
+ },
73
152
  className: cls('nb-col-divider', css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 24px;\n "])))),
74
153
  style: _objectSpread({}, droppableStyle)
75
- });
154
+ }, /*#__PURE__*/React.createElement("div", _objectSpread(_objectSpread(_objectSpread({
155
+ ref: setDraggableNodeRef
156
+ }, listeners), attributes), {}, {
157
+ className: props.first || props.last || !designable ? null : css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &::before {\n content: ' ';\n width: 12px;\n height: 100%;\n left: 6px;\n position: absolute;\n cursor: col-resize;\n }\n &:hover {\n &::before {\n background: rgba(241, 139, 98, 0.06) !important;\n }\n }\n width: 24px;\n height: 100%;\n position: absolute;\n cursor: col-resize;\n "])))
158
+ })));
76
159
  };
77
160
 
78
161
  var RowDivider = function RowDivider(props) {
@@ -91,10 +174,10 @@ var RowDivider = function RowDivider(props) {
91
174
  droppableStyle['backgroundColor'] = 'rgba(241, 139, 98, .1)';
92
175
  }
93
176
 
94
- var _useState = useState(false),
95
- _useState2 = _slicedToArray(_useState, 2),
96
- active = _useState2[0],
97
- setActive = _useState2[1];
177
+ var _useState3 = useState(false),
178
+ _useState4 = _slicedToArray(_useState3, 2),
179
+ active = _useState4[0],
180
+ setActive = _useState4[1];
98
181
 
99
182
  var dndContext = useDndContext();
100
183
  var currentSchema = props.rows[props.index];
@@ -128,7 +211,7 @@ var RowDivider = function RowDivider(props) {
128
211
  });
129
212
  return /*#__PURE__*/React.createElement("span", {
130
213
  ref: visible ? setNodeRef : null,
131
- className: cls('nb-row-divider', css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 24px;\n width: 100%;\n position: absolute;\n margin-top: -24px;\n "])))),
214
+ className: cls('nb-row-divider', css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: 24px;\n width: 100%;\n position: absolute;\n margin-top: -24px;\n "])))),
132
215
  style: _objectSpread({
133
216
  zIndex: active ? 1000 : -1
134
217
  }, droppableStyle)
@@ -275,10 +358,11 @@ Grid.Row = observer(function (props) {
275
358
  var cols = useColProperties();
276
359
  return /*#__PURE__*/React.createElement(GridRowContext.Provider, {
277
360
  value: {
361
+ schema: fieldSchema,
278
362
  cols: cols
279
363
  }
280
364
  }, /*#__PURE__*/React.createElement("div", {
281
- className: cls('nb-grid-row', css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin: 0 -24px;\n display: flex;\n position: relative;\n /* z-index: 0; */\n "]))))
365
+ className: cls('nb-grid-row', css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 0 -24px;\n display: flex;\n position: relative;\n /* z-index: 0; */\n "]))))
282
366
  }, /*#__PURE__*/React.createElement(ColDivider, {
283
367
  cols: cols,
284
368
  first: true,
@@ -298,6 +382,7 @@ Grid.Row = observer(function (props) {
298
382
  }), /*#__PURE__*/React.createElement(ColDivider, {
299
383
  cols: cols,
300
384
  index: index,
385
+ last: index === cols.length - 1,
301
386
  id: "".concat(addr, "_").concat(index + 1),
302
387
  data: {
303
388
  breakRemoveOn: breakRemoveOnRow,
@@ -309,15 +394,39 @@ Grid.Row = observer(function (props) {
309
394
  })));
310
395
  });
311
396
  Grid.Col = observer(function (props) {
397
+ var _schema$xComponentP;
398
+
312
399
  var _useContext = useContext(GridRowContext),
313
400
  cols = _useContext.cols;
314
401
 
315
- var w = props.width || 100 / cols.length;
402
+ var schema = useFieldSchema();
403
+ var field = useField();
404
+ var w = (schema === null || schema === void 0 ? void 0 : (_schema$xComponentP = schema['x-component-props']) === null || _schema$xComponentP === void 0 ? void 0 : _schema$xComponentP['width']) || 100 / cols.length;
316
405
  var width = "calc(".concat(w, "% - 24px - 24px / ").concat(cols.length, ")");
317
- return /*#__PURE__*/React.createElement("div", {
406
+
407
+ var _useDroppable3 = useDroppable({
408
+ id: field.address.toString(),
409
+ data: {
410
+ insertAdjacent: 'beforeEnd',
411
+ schema: schema,
412
+ wrapSchema: function wrapSchema(s) {
413
+ return s;
414
+ }
415
+ }
416
+ }),
417
+ isOver = _useDroppable3.isOver,
418
+ setNodeRef = _useDroppable3.setNodeRef;
419
+
420
+ return /*#__PURE__*/React.createElement(GridColContext.Provider, {
421
+ value: {
422
+ cols: cols,
423
+ schema: schema
424
+ }
425
+ }, /*#__PURE__*/React.createElement("div", {
426
+ ref: setNodeRef,
318
427
  style: {
319
428
  width: width
320
429
  },
321
- className: cls('nb-grid-col', css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n /* z-index: 0; */\n "]))))
322
- }, props.children);
430
+ className: cls('nb-grid-col', css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n /* z-index: 0; */\n "]))))
431
+ }, props.children));
323
432
  });
@@ -4,6 +4,7 @@ export * from './calendar';
4
4
  export * from './card-item';
5
5
  export * from './cascader';
6
6
  export * from './checkbox';
7
+ export * from './cron';
7
8
  export * from './color-select';
8
9
  export * from './date-picker';
9
10
  export * from './filter';
@@ -4,6 +4,7 @@ export * from './calendar';
4
4
  export * from './card-item';
5
5
  export * from './cascader';
6
6
  export * from './checkbox';
7
+ export * from './cron';
7
8
  export * from './color-select';
8
9
  export * from './date-picker';
9
10
  export * from './filter';
@@ -33,6 +33,7 @@ import { FormProvider, SchemaComponentOptions } from '../../core';
33
33
  import { useCompile } from '../../hooks';
34
34
  import { ActionContext, useActionContext } from '../action';
35
35
  import { useFieldNames } from './useFieldNames';
36
+ import { getLabelFormatValue, useLabelUiSchema } from './util';
36
37
  var RecordPickerContext = /*#__PURE__*/createContext(null);
37
38
 
38
39
  var useTableSelectorProps = function useTableSelectorProps() {
@@ -130,6 +131,7 @@ export var InputRecordPicker = function InputRecordPicker(props) {
130
131
  var fieldSchema = useFieldSchema();
131
132
  var collectionField = useAssociation(props);
132
133
  var compile = useCompile();
134
+ var labelUiSchema = useLabelUiSchema(collectionField, (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) || 'label');
133
135
 
134
136
  var _useState3 = useState([]),
135
137
  _useState4 = _slicedToArray(_useState3, 2),
@@ -145,12 +147,12 @@ export var InputRecordPicker = function InputRecordPicker(props) {
145
147
  if (value) {
146
148
  var opts = (Array.isArray(value) ? value : value ? [value] : []).map(function (option) {
147
149
  var label = option[fieldNames.label];
148
- return _objectSpread(_objectSpread({}, option), {}, _defineProperty({}, fieldNames.label, compile(label)));
150
+ return _objectSpread(_objectSpread({}, option), {}, _defineProperty({}, fieldNames.label, getLabelFormatValue(labelUiSchema, compile(label))));
149
151
  });
150
152
  setOptions(opts);
151
153
  setSelectedRows(opts);
152
154
  }
153
- }, [value]);
155
+ }, [value, fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label]);
154
156
 
155
157
  var getValue = function getValue() {
156
158
  if (multiple == null) return null; // console.log('getValue', multiple, value, Array.isArray(value));