@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
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.type = exports.relationshipType = exports.recordPickerViewer = exports.recordPickerSelector = exports.operators = exports.defaultProps = exports.dateTimeProps = exports.dataSource = void 0;
8
+ exports.unique = exports.type = exports.reverseFieldProperties = exports.relationshipType = exports.recordPickerViewer = exports.recordPickerSelector = exports.operators = exports.defaultProps = exports.dateTimeProps = exports.dataSource = void 0;
9
9
 
10
10
  var _shared = require("@formily/shared");
11
11
 
@@ -17,6 +17,12 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
 
18
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
19
 
20
+ 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; }
21
+
22
+ 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; }
23
+
24
+ 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; }
25
+
20
26
  var type = {
21
27
  type: 'string',
22
28
  title: '{{t("Storage type")}}',
@@ -39,6 +45,9 @@ var type = {
39
45
  }, {
40
46
  label: 'Float',
41
47
  value: 'float'
48
+ }, {
49
+ label: 'Double',
50
+ value: 'double'
42
51
  }, {
43
52
  label: 'Decimal',
44
53
  value: 'decimal'
@@ -75,6 +84,13 @@ var type = {
75
84
  }]
76
85
  };
77
86
  exports.type = type;
87
+ var unique = {
88
+ type: 'boolean',
89
+ 'x-content': '{{t("Unique")}}',
90
+ 'x-decorator': 'FormItem',
91
+ 'x-component': 'Checkbox'
92
+ };
93
+ exports.unique = unique;
78
94
  var relationshipType = {
79
95
  type: 'string',
80
96
  title: '{{t("Relationship type")}}',
@@ -97,6 +113,83 @@ var relationshipType = {
97
113
  }]
98
114
  };
99
115
  exports.relationshipType = relationshipType;
116
+ var reverseFieldProperties = {
117
+ reverse: {
118
+ type: 'void',
119
+ 'x-component': 'div',
120
+ 'x-hidden': '{{ !showReverseFieldConfig }}',
121
+ properties: {
122
+ autoCreateReverseField: {
123
+ type: 'boolean',
124
+ default: true,
125
+ 'x-decorator': 'FormItem',
126
+ 'x-component': 'Checkbox',
127
+ 'x-content': '{{t("Create inverse field in the target collection")}}',
128
+ 'x-reactions': [{
129
+ target: 'reverseField.type',
130
+ when: '{{!!$self.value}}',
131
+ fulfill: {
132
+ state: {
133
+ hidden: false
134
+ }
135
+ },
136
+ otherwise: {
137
+ state: {
138
+ hidden: true
139
+ }
140
+ }
141
+ }, {
142
+ target: 'reverseField.uiSchema.title',
143
+ when: '{{!!$self.value}}',
144
+ fulfill: {
145
+ state: {
146
+ hidden: false
147
+ }
148
+ },
149
+ otherwise: {
150
+ state: {
151
+ hidden: true
152
+ }
153
+ }
154
+ }, {
155
+ target: 'reverseField.name',
156
+ when: '{{!!$self.value}}',
157
+ fulfill: {
158
+ state: {
159
+ hidden: false
160
+ }
161
+ },
162
+ otherwise: {
163
+ state: {
164
+ hidden: true
165
+ }
166
+ }
167
+ }]
168
+ },
169
+ 'reverseField.type': _objectSpread(_objectSpread({}, relationshipType), {}, {
170
+ title: '{{t("Inverse relationship type")}}'
171
+ }),
172
+ 'reverseField.uiSchema.title': {
173
+ type: 'string',
174
+ title: '{{t("Inverse field display name")}}',
175
+ default: '{{record.title}}',
176
+ required: true,
177
+ 'x-decorator': 'FormItem',
178
+ 'x-component': 'Input'
179
+ },
180
+ 'reverseField.name': {
181
+ type: 'string',
182
+ title: '{{t("Inverse field name")}}',
183
+ required: true,
184
+ 'x-decorator': 'FormItem',
185
+ 'x-component': 'Input',
186
+ 'x-validator': 'uid',
187
+ description: "{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"
188
+ }
189
+ }
190
+ }
191
+ };
192
+ exports.reverseFieldProperties = reverseFieldProperties;
100
193
  var dateTimeProps = {
101
194
  'uiSchema.x-component-props.dateFormat': {
102
195
  type: 'string',
@@ -0,0 +1,2 @@
1
+ import { IField } from './types';
2
+ export declare const sequence: IField;
@@ -0,0 +1,455 @@
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.sequence = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _antd = require("antd");
13
+
14
+ var _core = require("@formily/core");
15
+
16
+ var _react2 = require("@formily/react");
17
+
18
+ var _antd2 = require("@formily/antd");
19
+
20
+ var _reactI18next = require("react-i18next");
21
+
22
+ var _css = require("@emotion/css");
23
+
24
+ var _schemaComponent = require("../../schema-component");
25
+
26
+ var _properties = require("./properties");
27
+
28
+ var _templateObject, _templateObject2, _templateObject3, _cycle, _templateObject4, _templateObject5;
29
+
30
+ 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); }
31
+
32
+ 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; }
33
+
34
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
35
+
36
+ function 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; }
37
+
38
+ 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; }
39
+
40
+ 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; }
41
+
42
+ function RuleTypeSelect(props) {
43
+ var compile = (0, _schemaComponent.useCompile)();
44
+
45
+ var _useForm = (0, _react2.useForm)(),
46
+ setValuesIn = _useForm.setValuesIn;
47
+
48
+ var index = _antd2.ArrayTable.useIndex();
49
+
50
+ (0, _react2.useFormEffects)(function () {
51
+ (0, _core.onFieldValueChange)("patterns.".concat(index, ".type"), function (field) {
52
+ setValuesIn("patterns.".concat(index, ".options"), {});
53
+ });
54
+ });
55
+ return /*#__PURE__*/_react.default.createElement(_antd.Select, _objectSpread({}, props), Object.keys(RuleTypes).map(function (key) {
56
+ return /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
57
+ key: key,
58
+ value: key
59
+ }, compile(RuleTypes[key].title));
60
+ }));
61
+ }
62
+
63
+ function RuleOptions() {
64
+ var _ArrayTable$useRecord = _antd2.ArrayTable.useRecord(),
65
+ type = _ArrayTable$useRecord.type,
66
+ options = _ArrayTable$useRecord.options;
67
+
68
+ var ruleType = RuleTypes[type];
69
+ var compile = (0, _schemaComponent.useCompile)();
70
+ return /*#__PURE__*/_react.default.createElement("div", {
71
+ className: (0, _css.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n gap: 1em;\n flex-wrap: wrap;\n "])))
72
+ }, Object.keys(options).filter(function (key) {
73
+ return typeof options[key] !== 'undefined';
74
+ }).map(function (key) {
75
+ var Component = ruleType.optionRenders[key];
76
+ var title = ruleType.fieldset[key].title;
77
+ return Component ? /*#__PURE__*/_react.default.createElement("dl", {
78
+ key: key,
79
+ className: (0, _css.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0;\n padding: 0;\n "])))
80
+ }, /*#__PURE__*/_react.default.createElement("dt", null, compile(title)), /*#__PURE__*/_react.default.createElement("dd", {
81
+ className: (0, _css.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-bottom: 0;\n "])))
82
+ }, /*#__PURE__*/_react.default.createElement(Component, {
83
+ key: key,
84
+ value: options[key]
85
+ }))) : null;
86
+ }));
87
+ }
88
+
89
+ ;
90
+ var RuleTypes = {
91
+ string: {
92
+ title: '{{t("Fixed text")}}',
93
+ optionRenders: {
94
+ value: function value() {
95
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
96
+ value: ''
97
+ };
98
+ return /*#__PURE__*/_react.default.createElement("code", null, options.value);
99
+ }
100
+ },
101
+ fieldset: {
102
+ value: {
103
+ type: 'string',
104
+ title: '{{t("Text content")}}',
105
+ 'x-decorator': 'FormItem',
106
+ 'x-component': 'Input'
107
+ }
108
+ }
109
+ },
110
+ integer: {
111
+ title: '{{t("Autoincrement")}}',
112
+ optionRenders: {
113
+ digits: function digits(_ref) {
114
+ var value = _ref.value;
115
+
116
+ var _useTranslation = (0, _reactI18next.useTranslation)(),
117
+ t = _useTranslation.t;
118
+
119
+ return /*#__PURE__*/_react.default.createElement("span", null, t('{{value}} Digits', {
120
+ value: value
121
+ }));
122
+ },
123
+ start: function start(_ref2) {
124
+ var value = _ref2.value;
125
+
126
+ var _useTranslation2 = (0, _reactI18next.useTranslation)(),
127
+ t = _useTranslation2.t;
128
+
129
+ return /*#__PURE__*/_react.default.createElement("span", null, t('Starts from {{value}}', {
130
+ value: value
131
+ }));
132
+ },
133
+ cycle: function cycle(_ref3) {
134
+ var value = _ref3.value;
135
+ return /*#__PURE__*/_react.default.createElement(_schemaComponent.SchemaComponent, {
136
+ schema: {
137
+ type: 'string',
138
+ name: 'cycle',
139
+ 'x-component': 'Cron',
140
+ 'x-read-pretty': true
141
+ }
142
+ });
143
+ }
144
+ },
145
+ fieldset: {
146
+ digits: {
147
+ type: 'number',
148
+ title: '{{t("Digits")}}',
149
+ 'x-decorator': 'FormItem',
150
+ 'x-component': 'InputNumber',
151
+ 'x-component-props': {
152
+ min: 1,
153
+ max: 10
154
+ },
155
+ required: true,
156
+ default: 1
157
+ },
158
+ start: {
159
+ type: 'number',
160
+ title: '{{t("Start from")}}',
161
+ 'x-decorator': 'FormItem',
162
+ 'x-component': 'InputNumber',
163
+ 'x-component-props': {
164
+ min: 0
165
+ },
166
+ required: true,
167
+ default: 0
168
+ },
169
+ cycle: (_cycle = {
170
+ type: 'string',
171
+ title: '{{t("Reset cycle")}}',
172
+ 'x-decorator': 'FormItem'
173
+ }, _defineProperty(_cycle, 'x-component', function xComponent(_ref4) {
174
+ var value = _ref4.value,
175
+ _onChange = _ref4.onChange;
176
+ var shortValues = [{
177
+ label: '不重置',
178
+ value: 0
179
+ }, {
180
+ label: '每天',
181
+ value: 1,
182
+ cron: '0 0 * * *'
183
+ }, {
184
+ label: '每周一',
185
+ value: 2,
186
+ cron: '0 0 * * 1'
187
+ }, {
188
+ label: '每月',
189
+ value: 3,
190
+ cron: '0 0 1 * *'
191
+ }, {
192
+ label: '每年',
193
+ value: 4,
194
+ cron: '0 0 1 1 *'
195
+ }, {
196
+ label: '自定义',
197
+ value: 5,
198
+ cron: '* * * * *'
199
+ }];
200
+ var option = typeof value === 'undefined' ? shortValues[0] : shortValues.find(function (item) {
201
+ return item.cron == value;
202
+ }) || shortValues[5];
203
+ return /*#__PURE__*/_react.default.createElement("fieldset", null, /*#__PURE__*/_react.default.createElement(_antd.Select, {
204
+ value: option.value,
205
+ onChange: function onChange(v) {
206
+ return _onChange(shortValues[v].cron);
207
+ }
208
+ }, shortValues.map(function (item) {
209
+ return /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
210
+ key: item.value,
211
+ value: item.value
212
+ }, item.label);
213
+ })), option.value === 5 ? /*#__PURE__*/_react.default.createElement(_schemaComponent.Cron, {
214
+ value: value,
215
+ setValue: _onChange,
216
+ clearButton: false
217
+ }) : null);
218
+ }), _defineProperty(_cycle, "default", null), _cycle)
219
+ }
220
+ },
221
+ date: {
222
+ title: '{{t("Date")}}',
223
+ optionRenders: {
224
+ format: function format() {
225
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
226
+ value: 'YYYYMMDD'
227
+ };
228
+ return /*#__PURE__*/_react.default.createElement("code", null, options.value);
229
+ }
230
+ }
231
+ }
232
+ };
233
+
234
+ function RuleConfigForm() {
235
+ var _useTranslation3 = (0, _reactI18next.useTranslation)(),
236
+ t = _useTranslation3.t;
237
+
238
+ var compile = (0, _schemaComponent.useCompile)();
239
+ var schemaOptions = (0, _react.useContext)(_react2.SchemaOptionsContext);
240
+ var form = (0, _react2.useForm)();
241
+
242
+ var _ArrayTable$useRecord2 = _antd2.ArrayTable.useRecord(),
243
+ type = _ArrayTable$useRecord2.type,
244
+ options = _ArrayTable$useRecord2.options;
245
+
246
+ var index = _antd2.ArrayTable.useIndex();
247
+
248
+ var ruleType = RuleTypes[type];
249
+ return (ruleType === null || ruleType === void 0 ? void 0 : ruleType.fieldset) ? /*#__PURE__*/_react.default.createElement(_antd.Button, {
250
+ type: "link",
251
+ onClick: function onClick() {
252
+ (0, _antd2.FormDrawer)(compile(ruleType.title), function () {
253
+ return /*#__PURE__*/_react.default.createElement(_antd2.FormLayout, {
254
+ layout: "vertical"
255
+ }, /*#__PURE__*/_react.default.createElement(_schemaComponent.SchemaComponentOptions, {
256
+ scope: schemaOptions.scope,
257
+ components: schemaOptions.components
258
+ }, /*#__PURE__*/_react.default.createElement(_schemaComponent.SchemaComponent, {
259
+ schema: {
260
+ type: 'object',
261
+ 'x-component': 'fieldset',
262
+ properties: ruleType.fieldset
263
+ }
264
+ })), /*#__PURE__*/_react.default.createElement(_antd2.FormDrawer.Footer, null, /*#__PURE__*/_react.default.createElement(_antd2.FormButtonGroup, {
265
+ className: (0, _css.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n justify-content: flex-end;\n "])))
266
+ }, /*#__PURE__*/_react.default.createElement(_antd2.Submit, {
267
+ onSubmit: function onSubmit(values) {
268
+ return values;
269
+ }
270
+ }, t('Submit')))));
271
+ }).open({
272
+ initialValues: options
273
+ }).then(function (values) {
274
+ form.setValuesIn("patterns.".concat(index), {
275
+ type: type,
276
+ options: _objectSpread({}, values)
277
+ });
278
+ });
279
+ }
280
+ }, t('Configure')) : null;
281
+ }
282
+
283
+ var sequence = {
284
+ name: 'sequence',
285
+ type: 'object',
286
+ group: 'advanced',
287
+ order: 2,
288
+ title: '{{t("Sequence")}}',
289
+ sortable: true,
290
+ default: {
291
+ type: 'sequence',
292
+ uiSchema: {
293
+ type: 'string',
294
+ 'x-component': 'Input',
295
+ 'x-component-props': {
296
+ readOnly: true,
297
+ disabled: true
298
+ },
299
+ 'x-read-pretty': true
300
+ }
301
+ },
302
+ hasDefaultValue: false,
303
+ properties: _objectSpread(_objectSpread({}, _properties.defaultProps), {}, {
304
+ unique: _properties.unique,
305
+ patterns: {
306
+ type: 'array',
307
+ title: '{{t("Sequence rules")}}',
308
+ required: true,
309
+ 'x-decorator': 'FormItem',
310
+ 'x-component': 'ArrayTable',
311
+ items: {
312
+ type: 'object',
313
+ properties: {
314
+ sort: {
315
+ type: 'void',
316
+ 'x-component': 'ArrayTable.Column',
317
+ 'x-component-props': {
318
+ width: 50,
319
+ title: '',
320
+ align: 'center'
321
+ },
322
+ properties: {
323
+ sort: {
324
+ type: 'void',
325
+ 'x-component': 'ArrayTable.SortHandle'
326
+ }
327
+ }
328
+ },
329
+ type: {
330
+ type: 'void',
331
+ 'x-component': 'ArrayTable.Column',
332
+ 'x-component-props': {
333
+ title: '{{t("Type")}}'
334
+ },
335
+ // 'x-hidden': true,
336
+ properties: {
337
+ type: {
338
+ type: 'string',
339
+ name: 'type',
340
+ required: true,
341
+ 'x-decorator': 'FormItem',
342
+ 'x-component': RuleTypeSelect
343
+ }
344
+ }
345
+ },
346
+ options: {
347
+ type: 'void',
348
+ 'x-component': 'ArrayTable.Column',
349
+ 'x-component-props': {
350
+ title: '{{t("Rule content")}}'
351
+ },
352
+ properties: {
353
+ options: {
354
+ type: 'object',
355
+ name: 'options',
356
+ 'x-component': RuleOptions
357
+ }
358
+ }
359
+ },
360
+ operations: {
361
+ type: 'void',
362
+ 'x-component': 'ArrayTable.Column',
363
+ 'x-component-props': {
364
+ title: '{{t("Operations")}}',
365
+ dataIndex: 'operations',
366
+ fixed: 'right',
367
+ className: (0, _css.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n > *:not(:last-child){\n margin-right: .5em;\n }\n button{\n padding: 0;\n }\n "])))
368
+ },
369
+ properties: {
370
+ config: {
371
+ type: 'void',
372
+ // 'x-component': 'span',
373
+ properties: {
374
+ options: {
375
+ type: 'object',
376
+ 'x-component': RuleConfigForm
377
+ }
378
+ }
379
+ },
380
+ // configure: {
381
+ // type: 'void',
382
+ // title: '{{t("Configure")}}',
383
+ // 'x-component': 'Action.Link',
384
+ // properties: {
385
+ // drawer: {
386
+ // type: 'void',
387
+ // 'x-component': 'Action.Drawer',
388
+ // 'x-decorator': 'Form',
389
+ // 'x-decorator-props': {
390
+ // useValues: useRowOptions
391
+ // },
392
+ // title: '{{t("Configure")}}',
393
+ // properties: {
394
+ // options: {
395
+ // type: 'void',
396
+ // 'x-component': RuleConfig
397
+ // },
398
+ // actions: {
399
+ // type: 'void',
400
+ // 'x-component': 'Action.Drawer.Footer',
401
+ // properties: {
402
+ // cancel: {
403
+ // title: '{{t("Cancel")}}',
404
+ // 'x-component': 'Action',
405
+ // 'x-component-props': {
406
+ // // useAction: '{{ cm.useCancelAction }}',
407
+ // },
408
+ // },
409
+ // submit: {
410
+ // title: '{{t("Submit")}}',
411
+ // 'x-component': 'Action',
412
+ // 'x-component-props': {
413
+ // type: 'primary',
414
+ // async useAction() {
415
+ // const form = useForm();
416
+ // const ctx = useActionContext();
417
+ // await form.submit();
418
+ // console.log(form);
419
+ // ctx.setVisible(false);
420
+ // }
421
+ // }
422
+ // }
423
+ // }
424
+ // }
425
+ // }
426
+ // },
427
+ // },
428
+ // },
429
+ remove: {
430
+ type: 'void',
431
+ 'x-component': 'ArrayTable.Remove'
432
+ }
433
+ }
434
+ }
435
+ }
436
+ },
437
+ properties: {
438
+ add: {
439
+ type: 'void',
440
+ 'x-component': 'ArrayTable.Addition',
441
+ 'x-component-props': {
442
+ defaultValue: {
443
+ type: 'integer'
444
+ }
445
+ },
446
+ title: "{{t('Add rule')}}"
447
+ }
448
+ }
449
+ }
450
+ }),
451
+ filterable: {
452
+ operators: _properties.operators.string
453
+ }
454
+ };
455
+ exports.sequence = sequence;
@@ -555,5 +555,6 @@ declare const _default: {
555
555
  "View all plugins": string;
556
556
  Print: string;
557
557
  'Single select and radio fields can be used as the grouping field': string;
558
+ 'Sign up successfully, and automatically jump to the sign in page': string;
558
559
  };
559
560
  export default _default;
@@ -560,6 +560,7 @@ var _default = {
560
560
  "Enabled languages": "Enabled languages",
561
561
  "View all plugins": "View all plugins",
562
562
  "Print": "Print",
563
- 'Single select and radio fields can be used as the grouping field': 'Single select and radio fields can be used as the grouping field'
563
+ 'Single select and radio fields can be used as the grouping field': 'Single select and radio fields can be used as the grouping field',
564
+ 'Sign up successfully, and automatically jump to the sign in page': 'Sign up successfully, and automatically jump to the sign in page'
564
565
  };
565
566
  exports.default = _default;
@@ -7,12 +7,20 @@ exports.default = void 0;
7
7
 
8
8
  var _en_US = _interopRequireDefault(require("antd/lib/locale/en_US"));
9
9
 
10
+ var _ja_JP = _interopRequireDefault(require("antd/lib/locale/ja_JP"));
11
+
10
12
  var _zh_CN = _interopRequireDefault(require("antd/lib/locale/zh_CN"));
11
13
 
14
+ var _ru_RU = _interopRequireDefault(require("antd/lib/locale/ru_RU"));
15
+
12
16
  var _en_US2 = _interopRequireDefault(require("./en_US"));
13
17
 
18
+ var _ja_JP2 = _interopRequireDefault(require("./ja_JP"));
19
+
14
20
  var _zh_CN2 = _interopRequireDefault(require("./zh_CN"));
15
21
 
22
+ var _ru_RU2 = _interopRequireDefault(require("./ru_RU"));
23
+
16
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
25
 
18
26
  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; }
@@ -32,6 +40,16 @@ var _default = {
32
40
  client: _objectSpread({}, _en_US2.default)
33
41
  }
34
42
  },
43
+ 'ja-JP': {
44
+ label: '日本語',
45
+ // https://github.com/moment/moment/blob/develop/locale/ja.js
46
+ moment: 'ja',
47
+ // https://github.com/ant-design/ant-design/tree/master/components/locale/ja_JP
48
+ antd: _ja_JP.default,
49
+ resources: {
50
+ client: _objectSpread({}, _ja_JP2.default)
51
+ }
52
+ },
35
53
  'zh-CN': {
36
54
  label: '简体中文',
37
55
  // https://github.com/moment/moment/blob/develop/locale/zh-cn.js
@@ -42,6 +60,16 @@ var _default = {
42
60
  resources: {
43
61
  client: _objectSpread({}, _zh_CN2.default)
44
62
  }
63
+ },
64
+ 'ru-RU': {
65
+ label: 'Русский',
66
+ // https://github.com/moment/moment/blob/develop/locale/ru.js
67
+ moment: 'ru',
68
+ // https://github.com/ant-design/ant-design/tree/master/components/locale/ru_RU
69
+ antd: _ru_RU.default,
70
+ resources: {
71
+ client: _objectSpread({}, _ru_RU2.default)
72
+ }
45
73
  }
46
74
  };
47
75
  exports.default = _default;