@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,138 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.StorageOptions = void 0;
9
-
10
- var _antd = require("@formily/antd");
11
-
12
- var _react = require("@formily/react");
13
-
14
- var _react2 = _interopRequireWildcard(require("react"));
15
-
16
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
-
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
-
20
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
-
22
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23
-
24
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
25
-
26
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
27
-
28
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
29
-
30
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
-
32
- var schema = {
33
- local: {
34
- properties: {
35
- documentRoot: {
36
- title: '{{t("Destination")}}',
37
- type: 'string',
38
- 'x-decorator': 'FormItem',
39
- 'x-component': 'Input',
40
- default: 'uploads'
41
- },
42
- serve: {
43
- type: 'string',
44
- 'x-decorator': 'FormItem',
45
- 'x-component': 'Checkbox',
46
- 'x-content': '{{t("Use the built-in static file server")}}',
47
- default: true
48
- }
49
- }
50
- },
51
- 'ali-oss': {
52
- properties: {
53
- region: {
54
- title: '{{t("Region")}}',
55
- type: 'string',
56
- 'x-decorator': 'FormItem',
57
- 'x-component': 'Input',
58
- required: true
59
- },
60
- accessKeyId: {
61
- title: '{{t("AccessKey ID")}}',
62
- type: 'string',
63
- 'x-decorator': 'FormItem',
64
- 'x-component': 'Input',
65
- required: true
66
- },
67
- accessKeySecret: {
68
- title: '{{t("AccessKey Secret")}}',
69
- type: 'string',
70
- 'x-decorator': 'FormItem',
71
- 'x-component': 'Password',
72
- required: true
73
- },
74
- bucket: {
75
- title: '{{t("Bucket")}}',
76
- type: 'string',
77
- 'x-decorator': 'FormItem',
78
- 'x-component': 'Input',
79
- required: true
80
- }
81
- }
82
- },
83
- s3: {
84
- properties: {
85
- region: {
86
- title: '{{t("Region")}}',
87
- type: 'string',
88
- 'x-decorator': 'FormItem',
89
- 'x-component': 'Input',
90
- required: true
91
- },
92
- accessKeyId: {
93
- title: '{{t("AccessKey ID")}}',
94
- type: 'string',
95
- 'x-decorator': 'FormItem',
96
- 'x-component': 'Input',
97
- required: true
98
- },
99
- secretAccessKey: {
100
- title: '{{t("AccessKey Secret")}}',
101
- type: 'string',
102
- 'x-decorator': 'FormItem',
103
- 'x-component': 'Password',
104
- required: true
105
- },
106
- bucket: {
107
- title: '{{t("Bucket")}}',
108
- type: 'string',
109
- 'x-decorator': 'FormItem',
110
- 'x-component': 'Input',
111
- required: true
112
- }
113
- }
114
- }
115
- };
116
- var StorageOptions = (0, _react.observer)(function (props) {
117
- var form = (0, _react.useForm)();
118
- var field = (0, _react.useField)();
119
-
120
- var _useState = (0, _react2.useState)(new _react.Schema({})),
121
- _useState2 = _slicedToArray(_useState, 2),
122
- s = _useState2[0],
123
- setSchema = _useState2[1];
124
-
125
- (0, _react2.useEffect)(function () {
126
- form.clearFormGraph('options.*');
127
- setSchema(new _react.Schema(schema[form.values.type] || {}));
128
- }, [form.values.type]);
129
- return /*#__PURE__*/_react2.default.createElement("div", null, /*#__PURE__*/_react2.default.createElement(_antd.FormLayout, {
130
- layout: 'vertical'
131
- }, /*#__PURE__*/_react2.default.createElement(_react.RecursionField, {
132
- key: form.values.type || 'local',
133
- basePath: field.address,
134
- onlyRenderProperties: true,
135
- schema: s
136
- })));
137
- });
138
- exports.StorageOptions = StorageOptions;
@@ -1 +0,0 @@
1
- export * from './FileStorageShortcut';
@@ -1,2 +0,0 @@
1
- import { ISchema } from '@formily/react';
2
- export declare const storageSchema: ISchema;
@@ -1,360 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.storageSchema = void 0;
7
-
8
- var _shared = require("@formily/shared");
9
-
10
- var _apiClient = require("../../api-client");
11
-
12
- var _schemaComponent = require("../../schema-component");
13
-
14
- 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; }
15
-
16
- 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; }
17
-
18
- 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; }
19
-
20
- var collection = {
21
- name: 'storages',
22
- fields: [{
23
- type: 'integer',
24
- name: 'title',
25
- interface: 'input',
26
- uiSchema: {
27
- title: '{{t("Storage display name")}}',
28
- type: 'string',
29
- 'x-component': 'Input',
30
- required: true
31
- }
32
- }, {
33
- type: 'string',
34
- name: 'name',
35
- interface: 'input',
36
- uiSchema: {
37
- title: '{{t("Storage name")}}',
38
- type: 'string',
39
- 'x-component': 'Input'
40
- }
41
- }, {
42
- type: 'string',
43
- name: 'type',
44
- interface: 'select',
45
- uiSchema: {
46
- title: '{{t("Storage type")}}',
47
- type: 'string',
48
- 'x-component': 'Select',
49
- required: true,
50
- enum: [{
51
- label: '{{t("Local storage")}}',
52
- value: 'local'
53
- }, {
54
- label: '{{t("Aliyun OSS")}}',
55
- value: 'ali-oss'
56
- }, {
57
- label: '{{t("Amazon S3")}}',
58
- value: 's3'
59
- }]
60
- }
61
- }, {
62
- type: 'string',
63
- name: 'baseUrl',
64
- interface: 'input',
65
- uiSchema: {
66
- title: '{{t("Storage base URL")}}',
67
- type: 'string',
68
- 'x-component': 'Input'
69
- }
70
- }, {
71
- type: 'boolean',
72
- name: 'default',
73
- interface: 'boolean',
74
- uiSchema: {
75
- title: '{{t("Default storage")}}',
76
- type: 'boolean',
77
- 'x-component': 'Checkbox'
78
- }
79
- }]
80
- };
81
- var storageSchema = {
82
- type: 'object',
83
- properties: {
84
- block1: {
85
- type: 'void',
86
- 'x-decorator': 'ResourceActionProvider',
87
- 'x-decorator-props': {
88
- collection: collection,
89
- resourceName: 'storages',
90
- request: {
91
- resource: 'storages',
92
- action: 'list',
93
- params: {
94
- pageSize: 50,
95
- sort: ['id'],
96
- appends: []
97
- }
98
- }
99
- },
100
- 'x-component': 'CollectionProvider',
101
- 'x-component-props': {
102
- collection: collection
103
- },
104
- properties: {
105
- actions: {
106
- type: 'void',
107
- 'x-component': 'ActionBar',
108
- 'x-component-props': {
109
- style: {
110
- marginBottom: 16
111
- }
112
- },
113
- properties: {
114
- delete: {
115
- type: 'void',
116
- title: '{{ t("Delete") }}',
117
- 'x-component': 'Action',
118
- 'x-component-props': {
119
- useAction: '{{ cm.useBulkDestroyAction }}',
120
- confirm: {
121
- title: "{{t('Delete storage')}}",
122
- content: "{{t('Are you sure you want to delete it?')}}"
123
- }
124
- }
125
- },
126
- create: {
127
- type: 'void',
128
- title: '{{t("Add storage")}}',
129
- 'x-component': 'Action',
130
- 'x-component-props': {
131
- type: 'primary'
132
- },
133
- properties: {
134
- drawer: {
135
- type: 'void',
136
- 'x-component': 'Action.Drawer',
137
- 'x-decorator': 'Form',
138
- 'x-decorator-props': {
139
- useValues: function useValues(options) {
140
- var ctx = (0, _schemaComponent.useActionContext)();
141
- return (0, _apiClient.useRequest)(function () {
142
- return Promise.resolve({
143
- data: {
144
- name: "s_".concat((0, _shared.uid)())
145
- }
146
- });
147
- }, _objectSpread(_objectSpread({}, options), {}, {
148
- refreshDeps: [ctx.visible]
149
- }));
150
- }
151
- },
152
- title: '{{t("Add storage")}}',
153
- properties: {
154
- title: {
155
- 'x-component': 'CollectionField',
156
- 'x-decorator': 'FormItem'
157
- },
158
- name: {
159
- 'x-component': 'CollectionField',
160
- 'x-decorator': 'FormItem',
161
- description: '{{t("Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.")}}'
162
- },
163
- baseUrl: {
164
- 'x-component': 'CollectionField',
165
- 'x-decorator': 'FormItem'
166
- },
167
- type: {
168
- 'x-component': 'CollectionField',
169
- 'x-decorator': 'FormItem'
170
- },
171
- options: {
172
- type: 'object',
173
- 'x-component': 'StorageOptions'
174
- },
175
- default: {
176
- 'x-component': 'CollectionField',
177
- 'x-decorator': 'FormItem',
178
- title: '',
179
- 'x-content': '{{t("Default storage")}}'
180
- },
181
- footer: {
182
- type: 'void',
183
- 'x-component': 'Action.Drawer.Footer',
184
- properties: {
185
- cancel: {
186
- title: '{{t("Cancel")}}',
187
- 'x-component': 'Action',
188
- 'x-component-props': {
189
- useAction: '{{ cm.useCancelAction }}'
190
- }
191
- },
192
- submit: {
193
- title: '{{t("Submit")}}',
194
- 'x-component': 'Action',
195
- 'x-component-props': {
196
- type: 'primary',
197
- useAction: '{{ cm.useCreateAction }}'
198
- }
199
- }
200
- }
201
- }
202
- }
203
- }
204
- }
205
- }
206
- }
207
- },
208
- table: {
209
- type: 'void',
210
- 'x-uid': 'input',
211
- 'x-component': 'Table.Void',
212
- 'x-component-props': {
213
- rowKey: 'id',
214
- rowSelection: {
215
- type: 'checkbox'
216
- },
217
- useDataSource: '{{ cm.useDataSourceFromRAC }}'
218
- },
219
- properties: {
220
- column1: {
221
- type: 'void',
222
- 'x-decorator': 'Table.Column.Decorator',
223
- 'x-component': 'Table.Column',
224
- properties: {
225
- title: {
226
- type: 'number',
227
- 'x-component': 'CollectionField',
228
- 'x-read-pretty': true
229
- }
230
- }
231
- },
232
- column2: {
233
- type: 'void',
234
- 'x-decorator': 'Table.Column.Decorator',
235
- 'x-component': 'Table.Column',
236
- properties: {
237
- name: {
238
- type: 'string',
239
- 'x-component': 'CollectionField',
240
- 'x-read-pretty': true
241
- }
242
- }
243
- },
244
- column3: {
245
- type: 'void',
246
- 'x-decorator': 'Table.Column.Decorator',
247
- 'x-component': 'Table.Column',
248
- properties: {
249
- default: {
250
- type: 'string',
251
- 'x-component': 'CollectionField',
252
- 'x-read-pretty': true
253
- }
254
- }
255
- },
256
- column4: {
257
- type: 'void',
258
- title: '{{t("Actions")}}',
259
- 'x-component': 'Table.Column',
260
- properties: {
261
- actions: {
262
- type: 'void',
263
- 'x-component': 'Space',
264
- 'x-component-props': {
265
- split: '|'
266
- },
267
- properties: {
268
- update: {
269
- type: 'void',
270
- title: '{{t("Edit")}}',
271
- 'x-component': 'Action.Link',
272
- 'x-component-props': {
273
- type: 'primary'
274
- },
275
- properties: {
276
- drawer: {
277
- type: 'void',
278
- 'x-component': 'Action.Drawer',
279
- 'x-decorator': 'Form',
280
- 'x-decorator-props': {
281
- useValues: '{{ cm.useValuesFromRecord }}'
282
- },
283
- title: '{{t("Edit storage")}}',
284
- properties: {
285
- title: {
286
- 'x-component': 'CollectionField',
287
- 'x-decorator': 'FormItem'
288
- },
289
- name: {
290
- 'x-component': 'CollectionField',
291
- 'x-decorator': 'FormItem',
292
- 'x-disabled': true
293
- },
294
- baseUrl: {
295
- 'x-component': 'CollectionField',
296
- 'x-decorator': 'FormItem'
297
- },
298
- type: {
299
- 'x-component': 'CollectionField',
300
- 'x-decorator': 'FormItem',
301
- 'x-disabled': true
302
- },
303
- options: {
304
- type: 'object',
305
- 'x-component': 'StorageOptions'
306
- },
307
- default: {
308
- title: '',
309
- 'x-component': 'CollectionField',
310
- 'x-decorator': 'FormItem',
311
- 'x-content': '{{t("Default storage")}}'
312
- },
313
- footer: {
314
- type: 'void',
315
- 'x-component': 'Action.Drawer.Footer',
316
- properties: {
317
- cancel: {
318
- title: '{{t("Cancel")}}',
319
- 'x-component': 'Action',
320
- 'x-component-props': {
321
- useAction: '{{ cm.useCancelAction }}'
322
- }
323
- },
324
- submit: {
325
- title: '{{t("Submit")}}',
326
- 'x-component': 'Action',
327
- 'x-component-props': {
328
- type: 'primary',
329
- useAction: '{{ cm.useUpdateAction }}'
330
- }
331
- }
332
- }
333
- }
334
- }
335
- }
336
- }
337
- },
338
- delete: {
339
- type: 'void',
340
- title: '{{ t("Delete") }}',
341
- 'x-component': 'Action.Link',
342
- 'x-component-props': {
343
- confirm: {
344
- title: "{{t('Delete role')}}",
345
- content: "{{t('Are you sure you want to delete it?')}}"
346
- },
347
- useAction: '{{cm.useDestroyAction}}'
348
- }
349
- }
350
- }
351
- }
352
- }
353
- }
354
- }
355
- }
356
- }
357
- }
358
- }
359
- };
360
- exports.storageSchema = storageSchema;