@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
@@ -1,7 +1,11 @@
1
+ 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; }
2
+
3
+ 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; }
4
+
1
5
  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
6
 
3
7
  import { cloneDeep } from 'lodash';
4
- import { recordPickerSelector, recordPickerViewer, relationshipType } from './properties';
8
+ import { recordPickerSelector, recordPickerViewer, relationshipType, reverseFieldProperties } from './properties';
5
9
  export var o2m = {
6
10
  name: 'o2m',
7
11
  type: 'object',
@@ -89,7 +93,7 @@ export var o2m = {
89
93
  };
90
94
  } else {
91
95
  schema['x-component'] = 'CollectionField';
92
- schema.type = 'object';
96
+ schema.type = 'array';
93
97
 
94
98
  if (block === 'Form') {
95
99
  schema['properties'] = {
@@ -123,7 +127,7 @@ export var o2m = {
123
127
  schema['x-component-props']['ellipsis'] = true;
124
128
  }
125
129
  },
126
- properties: {
130
+ properties: _objectSpread({
127
131
  'uiSchema.title': {
128
132
  type: 'string',
129
133
  title: '{{t("Field display name")}}',
@@ -244,7 +248,7 @@ export var o2m = {
244
248
  }
245
249
  }
246
250
  }
247
- },
251
+ }, reverseFieldProperties),
248
252
  filterable: {
249
253
  nested: true,
250
254
  children: [// {
@@ -1,7 +1,11 @@
1
+ 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; }
2
+
3
+ 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; }
4
+
1
5
  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
6
 
3
7
  import { cloneDeep } from 'lodash';
4
- import { recordPickerSelector, recordPickerViewer, relationshipType } from './properties';
8
+ import { recordPickerSelector, recordPickerViewer, relationshipType, reverseFieldProperties } from './properties';
5
9
 
6
10
  var internalSchameInitialize = function internalSchameInitialize(schema, _ref) {
7
11
  var field = _ref.field,
@@ -218,6 +222,15 @@ export var o2o = {
218
222
  }
219
223
  }
220
224
  }
225
+ },
226
+ 'reverseField.name': {
227
+ type: 'string',
228
+ title: '{{t("Inverse field name")}}',
229
+ // required: true,
230
+ 'x-hidden': '{{ !createOnly }}',
231
+ 'x-decorator': 'FormItem',
232
+ 'x-component': 'Input',
233
+ description: "{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"
221
234
  }
222
235
  },
223
236
  filterable: {
@@ -297,7 +310,7 @@ export var oho = {
297
310
  schema['x-component-props']['ellipsis'] = true;
298
311
  }
299
312
  },
300
- properties: {
313
+ properties: _objectSpread({
301
314
  'uiSchema.title': {
302
315
  type: 'string',
303
316
  title: '{{t("Field display name")}}',
@@ -390,7 +403,7 @@ export var oho = {
390
403
  }
391
404
  }
392
405
  }
393
- },
406
+ }, reverseFieldProperties),
394
407
  filterable: {
395
408
  nested: true,
396
409
  children: [// {
@@ -441,7 +454,7 @@ export var obo = {
441
454
  'x-component': 'RecordPicker',
442
455
  'x-component-props': {
443
456
  // mode: 'tags',
444
- multiple: true,
457
+ multiple: false,
445
458
  fieldNames: {
446
459
  label: 'id',
447
460
  value: 'id'
@@ -467,7 +480,7 @@ export var obo = {
467
480
  schema['x-component-props']['ellipsis'] = true;
468
481
  }
469
482
  },
470
- properties: {
483
+ properties: _objectSpread({
471
484
  'uiSchema.title': {
472
485
  type: 'string',
473
486
  title: '{{t("Field display name")}}',
@@ -561,7 +574,7 @@ export var obo = {
561
574
  }
562
575
  }
563
576
  }
564
- },
577
+ }, reverseFieldProperties),
565
578
  filterable: {
566
579
  nested: true,
567
580
  children: [// {
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  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; }
6
6
 
7
7
  import { i18n } from '../../i18n';
8
- import { defaultProps } from './properties';
8
+ import { defaultProps, unique } from './properties';
9
9
  export var password = {
10
10
  name: 'password',
11
11
  type: 'object',
@@ -23,7 +23,9 @@ export var password = {
23
23
  }
24
24
  },
25
25
  hasDefaultValue: true,
26
- properties: _objectSpread({}, defaultProps),
26
+ properties: _objectSpread(_objectSpread({}, defaultProps), {}, {
27
+ unique: unique
28
+ }),
27
29
  validateSchema: function validateSchema(fieldSchema) {
28
30
  return {
29
31
  max: {
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  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; }
6
6
 
7
- import { defaultProps, operators } from './properties';
7
+ import { defaultProps, operators, unique } from './properties';
8
8
  import { i18n } from '../../i18n';
9
9
  import { registerValidateRules } from '@formily/core';
10
10
  registerValidateRules({
@@ -71,6 +71,7 @@ export var percent = {
71
71
  },
72
72
  hasDefaultValue: true,
73
73
  properties: _objectSpread(_objectSpread({}, defaultProps), {}, {
74
+ unique: unique,
74
75
  'uiSchema.x-component-props.step': {
75
76
  type: 'string',
76
77
  title: '{{t("Precision")}}',
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  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; }
6
6
 
7
- import { defaultProps, operators } from './properties';
7
+ import { defaultProps, operators, unique } from './properties';
8
8
  export var phone = {
9
9
  name: 'phone',
10
10
  type: 'object',
@@ -26,7 +26,9 @@ export var phone = {
26
26
  }
27
27
  },
28
28
  hasDefaultValue: true,
29
- properties: _objectSpread({}, defaultProps),
29
+ properties: _objectSpread(_objectSpread({}, defaultProps), {}, {
30
+ unique: unique
31
+ }),
30
32
  filterable: {
31
33
  operators: operators.string
32
34
  }
@@ -1,7 +1,14 @@
1
1
  import { ISchema } from '@formily/react';
2
2
  export * as operators from './operators';
3
3
  export declare const type: ISchema;
4
+ export declare const unique: {
5
+ type: string;
6
+ 'x-content': string;
7
+ 'x-decorator': string;
8
+ 'x-component': string;
9
+ };
4
10
  export declare const relationshipType: ISchema;
11
+ export declare const reverseFieldProperties: Record<string, ISchema>;
5
12
  export declare const dateTimeProps: {
6
13
  [key: string]: ISchema;
7
14
  };
@@ -1,3 +1,9 @@
1
+ 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; }
2
+
3
+ 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; }
4
+
5
+ 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; }
6
+
1
7
  import { uid } from '@formily/shared';
2
8
  import * as _operators from './operators';
3
9
  export { _operators as operators };
@@ -23,6 +29,9 @@ export var type = {
23
29
  }, {
24
30
  label: 'Float',
25
31
  value: 'float'
32
+ }, {
33
+ label: 'Double',
34
+ value: 'double'
26
35
  }, {
27
36
  label: 'Decimal',
28
37
  value: 'decimal'
@@ -58,6 +67,12 @@ export var type = {
58
67
  value: 'belongsToMany'
59
68
  }]
60
69
  };
70
+ export var unique = {
71
+ type: 'boolean',
72
+ 'x-content': '{{t("Unique")}}',
73
+ 'x-decorator': 'FormItem',
74
+ 'x-component': 'Checkbox'
75
+ };
61
76
  export var relationshipType = {
62
77
  type: 'string',
63
78
  title: '{{t("Relationship type")}}',
@@ -79,6 +94,82 @@ export var relationshipType = {
79
94
  value: 'belongsToMany'
80
95
  }]
81
96
  };
97
+ export var reverseFieldProperties = {
98
+ reverse: {
99
+ type: 'void',
100
+ 'x-component': 'div',
101
+ 'x-hidden': '{{ !showReverseFieldConfig }}',
102
+ properties: {
103
+ autoCreateReverseField: {
104
+ type: 'boolean',
105
+ default: true,
106
+ 'x-decorator': 'FormItem',
107
+ 'x-component': 'Checkbox',
108
+ 'x-content': '{{t("Create inverse field in the target collection")}}',
109
+ 'x-reactions': [{
110
+ target: 'reverseField.type',
111
+ when: '{{!!$self.value}}',
112
+ fulfill: {
113
+ state: {
114
+ hidden: false
115
+ }
116
+ },
117
+ otherwise: {
118
+ state: {
119
+ hidden: true
120
+ }
121
+ }
122
+ }, {
123
+ target: 'reverseField.uiSchema.title',
124
+ when: '{{!!$self.value}}',
125
+ fulfill: {
126
+ state: {
127
+ hidden: false
128
+ }
129
+ },
130
+ otherwise: {
131
+ state: {
132
+ hidden: true
133
+ }
134
+ }
135
+ }, {
136
+ target: 'reverseField.name',
137
+ when: '{{!!$self.value}}',
138
+ fulfill: {
139
+ state: {
140
+ hidden: false
141
+ }
142
+ },
143
+ otherwise: {
144
+ state: {
145
+ hidden: true
146
+ }
147
+ }
148
+ }]
149
+ },
150
+ 'reverseField.type': _objectSpread(_objectSpread({}, relationshipType), {}, {
151
+ title: '{{t("Inverse relationship type")}}'
152
+ }),
153
+ 'reverseField.uiSchema.title': {
154
+ type: 'string',
155
+ title: '{{t("Inverse field display name")}}',
156
+ default: '{{record.title}}',
157
+ required: true,
158
+ 'x-decorator': 'FormItem',
159
+ 'x-component': 'Input'
160
+ },
161
+ 'reverseField.name': {
162
+ type: 'string',
163
+ title: '{{t("Inverse field name")}}',
164
+ required: true,
165
+ 'x-decorator': 'FormItem',
166
+ 'x-component': 'Input',
167
+ 'x-validator': 'uid',
168
+ description: "{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"
169
+ }
170
+ }
171
+ }
172
+ };
82
173
  export var dateTimeProps = {
83
174
  'uiSchema.x-component-props.dateFormat': {
84
175
  type: 'string',
@@ -0,0 +1,2 @@
1
+ import { IField } from './types';
2
+ export declare const sequence: IField;